Professional Documents
Culture Documents
Chap-15
Chap-15
Transmission
Control
Protocol
(TCP)
Stream of bytes
Segment N Segment 1
H H
Solution
The following shows the sequence number for each segment:
TCP
Application-layer data
header
IP
header
Frame
header
TCP payload
IP payload
Data-link layer payload
Passive
Active open
open seq: 8000
UAPRS F
SY N
seq: 15000
Connection ack: 8001
opened nd: 5000
U A P R S F rw
SYN + ACK
seq: 8000
ack: 15001
UAPRS F
rwnd: 10000
ACK
seq: 8001
Send
request ack: 15001
UAPRS F
Data Receive
bytes: 8001-9
000
Connection Termination
ex
2
Segements are pushed
4
Flow control feedback
1
cwnd
RTT
2
cwnd
RTT
4
cwnd
RTT
8
cwnd
The first segment in the figure is sent, but lost. The RTO timer
expires after 4.74 seconds. The segment is retransmitted and the
timer is set to 9.48, twice the previous value of RTO. This time an
ACK is received before the time-out. We wait until we send a new
segment and receive the ACK for it before recalculating the RTO
(Karn’s algorithm).
The SACK option announces this duplicate data first and then the
out-of-order block. This time, however, the duplicated block is not
yet acknowledged by ACK, but because it is part of the out-of-
order block (4001:5000 is part of 4001:6000), it is understood by
the sender that it defines the duplicate data.