Chapter7-TCP Transport
Chapter7-TCP Transport
COURSE
BASIC COMPUTER NETWORK
3/29
/50 4/29
/50
2. TCP Header
2 TCP Header
5 6/29
/50
6 Bits 0 = OFF 1 = ON
o However, if A sets the PSH bit on each packet, then B should o Under normal conditions, the application at B would have to
release each packet immediately to the receiving application. finish processing all the pending data before getting to the
CNTL-C.
o However, if the URG bit is set, and the TCP Urgent
Pointer field points to the CNTL-C in the current packet, the
receiving application then skips ahead in its processing of the
arriving data stream until it reaches the urgent data.
11/29
/50 12/29
/50
3. TCP Connection Establishment
TCP connections are established via an exchange known as the three-
way handshake.
TCP Connection
3 Establishment
13 14/29
/50
15/29
/50 16/29
/50
3. TCP Connection Establishment 3. TCP Connection Establishment
Each side chooses its Initial Sequence Number (ISN), and sends If B had not been LISTENing at the port to which A sent its SYN, its
that in its initial SYN. response would have been RST meaning in this context
All further sequence numbers sent are the ISN chosen by that side connection refused .
plus the relative sequence number.
Similarly, if A sent data to B before the SYN packet, the response would
have been RST.
It helps with the allocation of a sequence number that does not conflict
with other data bytes transmitted over a TCP connection.
RST can be sent by either side at any time to abort the connection.
17/29
/50 18/29
/50
Once upon a time, TCP endpoints included just 512 bytes of data in
each packet that was not destined for local delivery,
4
to avoid fragmentation.
Path MTU Discovery
19 20/29
/50
4. Path MTU Discovery 4. Path MTU Discovery
The IPv4 strategy is to send an initial data packet with the IPv4 IPv6 has no DONT_FRAG bit.
DONT_FRAG bit set.
Path MTU Discovery over IPv6 involves the periodic sending of larger
packets; if the ICMPv6 message Packet Too Big is received, a smaller
If the ICMP message Frag_Required/DONT_FRAG_Set comes back, packet size must be used.
or if the packet times out, the sender tries a smaller size.
If the sender receives a TCP ACK for the packet, on the other hand,
indicating that it made it through to the other end, it might try a
larger size.
21/29
/50 22/29
/50
27 28/29
/50
THANK YOU FOR YOUR ATTENTION