0% found this document useful (0 votes)
68 views

TCP in TL

TCP is a connection-oriented transport protocol that creates virtual connections between two TCP endpoints to reliably send data in a full-duplex manner using sequence numbers, acknowledgments, and flow/error control. It numbers the bytes being transferred, with the sequence number field defining the number of the first byte in a segment and acknowledgment field defining the number of the next expected byte. TCP uses three-way handshaking for connection establishment and termination, consuming sequence numbers, and supports half-close connections.

Uploaded by

het shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
68 views

TCP in TL

TCP is a connection-oriented transport protocol that creates virtual connections between two TCP endpoints to reliably send data in a full-duplex manner using sequence numbers, acknowledgments, and flow/error control. It numbers the bytes being transferred, with the sequence number field defining the number of the first byte in a segment and acknowledgment field defining the number of the next expected byte. TCP uses three-way handshaking for connection establishment and termination, consuming sequence numbers, and supports half-close connections.

Uploaded by

het shah
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Transport Layer: TCP

Introduction
• TCP is a connection-
connection-oriented transport protocol
• It creates a virtual connection between two TCPs to
send data.
• In addition, TCP uses
– Date Segments in Stream of Bytes
– Flow and error control mechanisms at the transport level.
– Full--Duplex Communication
Full
– Congestion Control
– Reliable transport protocol
Stream Delivery
Sending and receiving buffer
Numbering System
• The bytes of data being transferred in each
connection are numbered by TCP.
• The numbering starts with a randomly
generated number.
Numbering System
• The value in the sequence number field of a
segment defines the number of the first data
byte contained in that segment.
• The value of the acknowledgment field in a
segment defines the number of the next byte
a party expects to receive.
• The acknowledgment number is cumulative.
TCP segment format
TCP Control Field
Connection establishment using three-
way handshaking
Connection establishment using three-
way handshaking
• A SYN segment cannot carry data, but it
consumes one sequence number.
• A SYN + ACK segment cannot carry data, but
does consume one sequence number.
• An ACK segment, if carrying no data,
consumes no sequence number.
Data transfer
Connection termination using three-
way handshaking
Connection termination using three-
way handshaking

• The FIN segment consumes one sequence


number if it does not carry data.
• The FIN + ACK segment consumes one
sequence number if it does not carry data.
Half-close

You might also like