SlideShare a Scribd company logo
1 of 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

More Related Content

What's hot

Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)k33a
 
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)Kruti Niranjan
 
TCP - Transmission Control Protocol
TCP - Transmission Control ProtocolTCP - Transmission Control Protocol
TCP - Transmission Control ProtocolPeter R. Egli
 
Tcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerTcp header/IP Header/Authentication header
Tcp header/IP Header/Authentication headerFaizan Shaikh
 
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 Layertmavroidis
 
Transport layer services
Transport layer servicesTransport layer services
Transport layer servicesMelvin Cabatuan
 
Transport layer interface
Transport layer interface Transport layer interface
Transport layer interface CEC Landran
 
TCP- Transmission Control Protocol
TCP-  Transmission Control Protocol TCP-  Transmission Control Protocol
TCP- Transmission Control Protocol Akhil .B
 
Lecture 5
Lecture 5Lecture 5
Lecture 5ntpc08
 
User datagram protocol
User datagram protocolUser datagram protocol
User datagram protocolMohd Arif
 
Transport Layer [Autosaved]
Transport Layer [Autosaved]Transport Layer [Autosaved]
Transport Layer [Autosaved]Ram Dutt Shukla
 
Transport layer udp and tcp network
Transport layer udp and tcp networkTransport layer udp and tcp network
Transport layer udp and tcp networkHamzahMohammed4
 
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 conditionsCEC Landran
 
UDP - User Datagram Protocol
UDP - User Datagram ProtocolUDP - User Datagram Protocol
UDP - User Datagram ProtocolPeter R. Egli
 

What's hot (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
 

Similar to TCP 3-Way Handshake Process Explained

tcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxtcp-ippresentation-150614172243-lva1-app6892.pptx
tcp-ippresentation-150614172243-lva1-app6892.pptxAlphaKoiSylvester
 
Transport_Layer_Protocols.pptx
Transport_Layer_Protocols.pptxTransport_Layer_Protocols.pptx
Transport_Layer_Protocols.pptxAnkitKumar891632
 
Chapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxChapter Five - Transport Layer.pptx
Chapter Five - Transport Layer.pptxGirT2
 
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 studentsnawejakhatar10063
 
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.pptxDESTROYER39
 
Unit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxUnit 4-Transport Layer Protocols.pptx
Unit 4-Transport Layer Protocols.pptxsarosh32
 
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 comunicationsAnyapuPranav
 
Networking essentials lect3
Networking essentials lect3Networking essentials lect3
Networking essentials lect3Roman Brovko
 
TCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptxTCP_NISCHAYBAHL.pptx
TCP_NISCHAYBAHL.pptxNischayBahl1
 
Transport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingTransport Layer Services : Multiplexing And Demultiplexing
Transport Layer Services : Multiplexing And DemultiplexingKeyur Vadodariya
 
the transport layer
the transport layerthe transport layer
the transport layertumetr1
 

Similar to TCP 3-Way Handshake Process Explained (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
 

Recently uploaded

भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentInMediaRes1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaVirag Sontakke
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 

Recently uploaded (20)

भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
Meghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media ComponentMeghan Sutherland In Media Res Media Component
Meghan Sutherland In Media Res Media Component
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Painted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of IndiaPainted Grey Ware.pptx, PGW Culture of India
Painted Grey Ware.pptx, PGW Culture of India
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 

TCP 3-Way Handshake Process Explained

  • 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.