Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

TCP in TL

Download as pdf or txt
Download as pdf or txt
You are on page 1of 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