SlideShare une entreprise Scribd logo
1  sur  20
TCP 3-way
Handshake
Process
Submitted To:-
Mrs. Pallavi T P
Submitted By :-
1AT17CS011 Ashutosh
1AT17CS040 Mohammad Ashar Nawab
Agenda
❏ Introduction to TCP/IP.
❏ Features of TCP/IP.
❏ Merits & Demerits of TCP/IP
❏ Connection Establishment and Termination.
❏ 3-Way Handshake Process.
Introduction to TCP/IP.
● The Transmission Control Protocol (TCP) is one of the main protocols of the Internet
protocol suite. It originated in the initial network implementation in which it
complemented the Internet Protocol (IP). Therefore, the entire suite is commonly
referred to as TCP/IP.
● TCP provides reliable, ordered, and error-checked delivery of a stream of octets
(bytes) between applications running on hosts communicating by an IPnetwork.
● Transmission Control Protocol/Internet Protocol (TCP/IP) is the language a computer
uses to access the internet. It consists of a suite of protocols designed to establish a
network of networks to provide a host with access tothe internet.
● TCP/IP is responsible for full-fledged data connectivity and transmitting the data end
to end by providing other functions, including addressing, mapping and
acknowledgment. TCP/IP contains four layers, which differ slightly from theOSI
model.
TCP/IP Model Protocols
Description of different TCP/IP protocols
❖ Layer 1: Host-to-network Layer
1. Lowest layer of the all.
2. Protocol is used to connect to the host, so that the packets can be sent overit.
3. Varies from host to host and network to network.
❖ Layer 2: Internet layer
1. Selection of a packet switching network whichis based on a connectionless
internetwork layer is called a internet layer.
2. It is the layer which holds the whole architecturetogether.
3. It helps the packet to travel independently to thedestination.
4. Order in which packets are received is different from the way they are sent.
5. IP (Internet Protocol) is used in thislayer.
cont...
6. The various functions performed by the Internet Layer are:
● Delivering IP packets
● Performing routing
● Avoiding congestion
❖ Layer 3: Transport Layer
1. It decides if data transmission should be on parallel path or singlepath.
2. Functions such as multiplexing, segmenting or splitting on the data is done bytransport
layer.
3. The applications can read and write to the transportlayer.
4. Transport layer adds header information to the data.
5. Transport layer breaks the message (data) into small units so that they arehandled
more efficiently by the network layer.
6. Transport layer also arrange the packets to be sent, in sequence.
cont...
❖ Layer 4: Application Layer
➔ The TCP/IP specifications described a lot of applications that were at the top of theprotocol
stack. Some of them were TELNET, FTP, SMTP, DNS etc.
1. TELNET is a two-way communication protocol which allows connecting to aremote
machine and run applications on it.
2. FTP(File Transfer Protocol) is a protocol, that allows File transfer amongst computer users
connected over a network. It is reliable, simple andefficient.
3. SMTP(Simple Mail Transport Protocol) is a protocol, which is used to transportelectronic
mail between a source and destination, directed via aroute.
4. DNS(Domain Name Server) resolves an IP address into a textual address for Hosts
connected over a network.
5. It allows peer entities to carry conversation.
6. It defines two end-to-end protocols: TCP andUDP.
➢ TCP(Transmission Control Protocol): It is a reliable connection-oriented protocol which handles byte-stream
from source to destination without error and flow control.
➢ UDP(User-Datagram Protocol): It is an unreliable connection-less protocol that do not want TCPs,
sequencing and flow control. Eg: One-shot request-reply kind of service.
cont...
➢ Merits of TCP/IP model
1. It operated independently.
2. It is scalable.
3. Client/server architecture.
4. Supports a number of routing protocols.
5. Can be used to establish a connection between twocomputers.
➢ Demerits of TCP/IP
1. In this, the transport layer does not guarantee delivery of packets.
2. The model cannot be used in any other application.
3. Replacing protocol is not easy.
4. It has not clearly separated its services, interfaces andprotocols.
Merits & Demerits of TCP/IP
Connection Establishment
❏ Establishes a virtual path between the source and destination.
❏ How TCP is connection-oriented while using IP (connection-less)?
➔ Connection is virtual.
➔ TCP uses the services of IP to deliver individual segments, butit
controls the connection itself.
➔ IP is unaware of retransmission, out-of-ordersegments
cont...
Client Server
SYN
SYN+ACK
ACK
cont...
❏ SYN :
➔ It is for synchronization of sequence numbers.
➔ It consumes 1 sequence number.
➔ Carries no real data .
❏ SYN+ACK:
➔ SYN segment for communication in other direction and ACK
for the received SYN .
➔ It consumes 1 sequence number.
❏ ACK:
➔ Just an ACK segment.
➔ Does not consume any sequence number.
Connection Termination
Client Server
FIN
FIN+ACK
ACK
cont...
➔ It consumes 1 sequence number
➔ May or may not carry real data.
❏ FIN:
❏ FIN+ACK:
➔ FIN segment to announce closing of connection in other
direction and ACK for the received FIN.
➔ It consumes 1 sequence number.
❏ ACK:
➔ Just an ACK segment.
➔ Does not consume any sequence number.
3-way Handshake Process
cont...
❏ A three-way handshake is a method used in a TCP/IP network to create a
connection between a local host/client and server. It is a three-step method that
requires both the client and server to exchange SYN and ACK (acknowledgment)
packets before actual data communicationbegins.
❏ A three-way handshake is also known as a TCPhandshake.
Steps...
❖ Step 1. Device A (Client) sends a TCP segment with SYN = 1,
ACK = 0, ISN (Initial Sequence Number) = 2000.
➔ The Active Open device (Device A) sends a segment with the SYN flag set to 1,
ACK flag set to 0 and an Initial Sequence Number 2000 (For Example), whichmarks
the beginning of the sequence numbers for data that device A will transmit. SYN is
short for SYNchronize. SYN flag announces an attempt to open a connection. The
first byte transmitted to Device B will have the sequence number ISN+1.
cont...
❖ Step 2. Device B (Server) receives Device A’s TCP segment and
returns a TCP segment with SYN = 1, ACK = 1, ISN = 5000 (Device B’s
Initial Sequence Number), Acknowledgment Number = 2001 (2000 +
1, the next sequence number Device B expecting from Device A).
❖ Step 3. Device A sends a TCP segment to Device B that
acknowledges receipt of Device B’s ISN, With flags set as SYN = 0,
ACK = 1, Sequence number = 2001, Acknowledgment number = 5001
(5000 + 1, the next sequence number Device A expecting from Device
B)
This handshaking technique is referred to as the Three-way handshake
or SYN, SYN-ACK, ACK.
cont...
Recap
❏ Step 1 (SYN) : In the first step, client wants to establish a connection with server, so
it sends a segment with SYN(Synchronize Sequence Number) which informs server
that client is likely to start communication and with what sequence number it starts
segments with.
❏ Step 2 (SYN + ACK): Server responds to the client request with SYN-ACK signal bits
set. Acknowledgement(ACK) signifies the response of segment it received and SYN
signifies withwhat sequence number it is likely to start the segments with
❏ Step 3 (ACK) : In the final part client acknowledges the response of server and they
both establish a reliable connection with which they will start eh actual data transfer
cont...
cont...
THANK YOU

Contenu connexe

Tendances

User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
Mohd Arif
 

Tendances (20)

Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
 
TCP/IP and UDP protocols
TCP/IP and UDP protocolsTCP/IP and UDP protocols
TCP/IP and UDP protocols
 
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
TCP & UDP ( Transmission Control Protocol and User Datagram Protocol)
 
Chap 12 tcp
Chap 12 tcpChap 12 tcp
Chap 12 tcp
 
Tcp udp
Tcp udpTcp udp
Tcp udp
 
TCP - Transmission Control Protocol
TCP - Transmission Control ProtocolTCP - Transmission Control Protocol
TCP - Transmission Control Protocol
 
Tcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerTcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication header
 
TCP/IP(networking)
TCP/IP(networking)TCP/IP(networking)
TCP/IP(networking)
 
Tcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport LayerTcp Udp Icmp And The Transport Layer
Tcp Udp Icmp And The Transport Layer
 
TCP/IP
TCP/IPTCP/IP
TCP/IP
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer services
 
Transport layer interface
Transport layer interface Transport layer interface
Transport layer interface
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol
 
Lecture 5
Lecture 5Lecture 5
Lecture 5
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocol
 
Transport Layer [Autosaved]
Transport Layer [Autosaved]Transport Layer [Autosaved]
Transport Layer [Autosaved]
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Transport layer udp and tcp network
Transport layer udp and tcp networkTransport layer udp and tcp network
Transport layer udp and tcp network
 
Client server examples for tcp abnormal conditions
Client server examples for tcp abnormal conditionsClient server examples for tcp abnormal conditions
Client server examples for tcp abnormal conditions
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram Protocol
 

Similaire à Tcp3 wayhandshakeprocess

Similaire à Tcp3 wayhandshakeprocess (20)

Transport Layer
Transport LayerTransport Layer
Transport Layer
 
tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptx
 
TCP/IP Basics
TCP/IP BasicsTCP/IP Basics
TCP/IP Basics
 
Mod4
Mod4Mod4
Mod4
 
計概
計概計概
計概
 
Transport layer
Transport layerTransport layer
Transport layer
 
Transport_Layer_Protocols.pptx
Transport_Layer_Protocols.pptxTransport_Layer_Protocols.pptx
Transport_Layer_Protocols.pptx
 
TCP/IP
TCP/IPTCP/IP
TCP/IP
 
Unit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptxUnit 5.Transport Layer.pptx
Unit 5.Transport Layer.pptx
 
Chapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxChapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptx
 
Web and internet technology notes for BCA students
Web and internet technology notes for BCA studentsWeb and internet technology notes for BCA students
Web and internet technology notes for BCA students
 
Unit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptxUnit 4-Transport Layer Protocols-3.pptx
Unit 4-Transport Layer Protocols-3.pptx
 
Unit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxUnit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptx
 
presentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunicationspresentation on TCP/IP protocols data comunications
presentation on TCP/IP protocols data comunications
 
transport layer
transport layertransport layer
transport layer
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3
 
TCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptxTCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptx
 
08 coms 525 tcpip - tcp 1
08   coms 525 tcpip - tcp 108   coms 525 tcpip - tcp 1
08 coms 525 tcpip - tcp 1
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And Demultiplexing
 
the transport layer
the transport layerthe transport layer
the transport layer
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Dernier (20)

Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 

Tcp3 wayhandshakeprocess

  • 1. TCP 3-way Handshake Process Submitted To:- Mrs. Pallavi T P Submitted By :- 1AT17CS011 Ashutosh 1AT17CS040 Mohammad Ashar Nawab
  • 2. Agenda ❏ Introduction to TCP/IP. ❏ Features of TCP/IP. ❏ Merits & Demerits of TCP/IP ❏ Connection Establishment and Termination. ❏ 3-Way Handshake Process.
  • 3. Introduction to TCP/IP. ● The Transmission Control Protocol (TCP) is one of the main protocols of the Internet protocol suite. It originated in the initial network implementation in which it complemented the Internet Protocol (IP). Therefore, the entire suite is commonly referred to as TCP/IP. ● TCP provides reliable, ordered, and error-checked delivery of a stream of octets (bytes) between applications running on hosts communicating by an IPnetwork. ● Transmission Control Protocol/Internet Protocol (TCP/IP) is the language a computer uses to access the internet. It consists of a suite of protocols designed to establish a network of networks to provide a host with access tothe internet. ● TCP/IP is responsible for full-fledged data connectivity and transmitting the data end to end by providing other functions, including addressing, mapping and acknowledgment. TCP/IP contains four layers, which differ slightly from theOSI model.
  • 5. Description of different TCP/IP protocols ❖ Layer 1: Host-to-network Layer 1. Lowest layer of the all. 2. Protocol is used to connect to the host, so that the packets can be sent overit. 3. Varies from host to host and network to network. ❖ Layer 2: Internet layer 1. Selection of a packet switching network whichis based on a connectionless internetwork layer is called a internet layer. 2. It is the layer which holds the whole architecturetogether. 3. It helps the packet to travel independently to thedestination. 4. Order in which packets are received is different from the way they are sent. 5. IP (Internet Protocol) is used in thislayer. cont...
  • 6. 6. The various functions performed by the Internet Layer are: ● Delivering IP packets ● Performing routing ● Avoiding congestion ❖ Layer 3: Transport Layer 1. It decides if data transmission should be on parallel path or singlepath. 2. Functions such as multiplexing, segmenting or splitting on the data is done bytransport layer. 3. The applications can read and write to the transportlayer. 4. Transport layer adds header information to the data. 5. Transport layer breaks the message (data) into small units so that they arehandled more efficiently by the network layer. 6. Transport layer also arrange the packets to be sent, in sequence. cont...
  • 7. ❖ Layer 4: Application Layer ➔ The TCP/IP specifications described a lot of applications that were at the top of theprotocol stack. Some of them were TELNET, FTP, SMTP, DNS etc. 1. TELNET is a two-way communication protocol which allows connecting to aremote machine and run applications on it. 2. FTP(File Transfer Protocol) is a protocol, that allows File transfer amongst computer users connected over a network. It is reliable, simple andefficient. 3. SMTP(Simple Mail Transport Protocol) is a protocol, which is used to transportelectronic mail between a source and destination, directed via aroute. 4. DNS(Domain Name Server) resolves an IP address into a textual address for Hosts connected over a network. 5. It allows peer entities to carry conversation. 6. It defines two end-to-end protocols: TCP andUDP. ➢ TCP(Transmission Control Protocol): It is a reliable connection-oriented protocol which handles byte-stream from source to destination without error and flow control. ➢ UDP(User-Datagram Protocol): It is an unreliable connection-less protocol that do not want TCPs, sequencing and flow control. Eg: One-shot request-reply kind of service. cont...
  • 8. ➢ Merits of TCP/IP model 1. It operated independently. 2. It is scalable. 3. Client/server architecture. 4. Supports a number of routing protocols. 5. Can be used to establish a connection between twocomputers. ➢ Demerits of TCP/IP 1. In this, the transport layer does not guarantee delivery of packets. 2. The model cannot be used in any other application. 3. Replacing protocol is not easy. 4. It has not clearly separated its services, interfaces andprotocols. Merits & Demerits of TCP/IP
  • 9. Connection Establishment ❏ Establishes a virtual path between the source and destination. ❏ How TCP is connection-oriented while using IP (connection-less)? ➔ Connection is virtual. ➔ TCP uses the services of IP to deliver individual segments, butit controls the connection itself. ➔ IP is unaware of retransmission, out-of-ordersegments cont...
  • 11. ❏ SYN : ➔ It is for synchronization of sequence numbers. ➔ It consumes 1 sequence number. ➔ Carries no real data . ❏ SYN+ACK: ➔ SYN segment for communication in other direction and ACK for the received SYN . ➔ It consumes 1 sequence number. ❏ ACK: ➔ Just an ACK segment. ➔ Does not consume any sequence number.
  • 13. ➔ It consumes 1 sequence number ➔ May or may not carry real data. ❏ FIN: ❏ FIN+ACK: ➔ FIN segment to announce closing of connection in other direction and ACK for the received FIN. ➔ It consumes 1 sequence number. ❏ ACK: ➔ Just an ACK segment. ➔ Does not consume any sequence number.
  • 15. ❏ A three-way handshake is a method used in a TCP/IP network to create a connection between a local host/client and server. It is a three-step method that requires both the client and server to exchange SYN and ACK (acknowledgment) packets before actual data communicationbegins. ❏ A three-way handshake is also known as a TCPhandshake.
  • 16. Steps... ❖ Step 1. Device A (Client) sends a TCP segment with SYN = 1, ACK = 0, ISN (Initial Sequence Number) = 2000. ➔ The Active Open device (Device A) sends a segment with the SYN flag set to 1, ACK flag set to 0 and an Initial Sequence Number 2000 (For Example), whichmarks the beginning of the sequence numbers for data that device A will transmit. SYN is short for SYNchronize. SYN flag announces an attempt to open a connection. The first byte transmitted to Device B will have the sequence number ISN+1. cont...
  • 17. ❖ Step 2. Device B (Server) receives Device A’s TCP segment and returns a TCP segment with SYN = 1, ACK = 1, ISN = 5000 (Device B’s Initial Sequence Number), Acknowledgment Number = 2001 (2000 + 1, the next sequence number Device B expecting from Device A). ❖ Step 3. Device A sends a TCP segment to Device B that acknowledges receipt of Device B’s ISN, With flags set as SYN = 0, ACK = 1, Sequence number = 2001, Acknowledgment number = 5001 (5000 + 1, the next sequence number Device A expecting from Device B) This handshaking technique is referred to as the Three-way handshake or SYN, SYN-ACK, ACK. cont...
  • 18. Recap ❏ Step 1 (SYN) : In the first step, client wants to establish a connection with server, so it sends a segment with SYN(Synchronize Sequence Number) which informs server that client is likely to start communication and with what sequence number it starts segments with. ❏ Step 2 (SYN + ACK): Server responds to the client request with SYN-ACK signal bits set. Acknowledgement(ACK) signifies the response of segment it received and SYN signifies withwhat sequence number it is likely to start the segments with ❏ Step 3 (ACK) : In the final part client acknowledges the response of server and they both establish a reliable connection with which they will start eh actual data transfer cont... cont...
  • 19.