Beruflich Dokumente
Kultur Dokumente
recitation #9
TCP New Reno Vs. Reno
Internet Networking
Fast because it doesnt wait for time out when not getting an ACK for a
segment
Internet Networking
Initial state
cwnd=7
Slow start
0
1
2
3
4
5
6
cwnd=8
Fast Retransmit
cwnd=8/2+3=7
ssthresh=8/2=4
=> Fast Recovery
7
8
Ack(1)
Ack(1)
Ack(1)
Ack(1)
Ack(1)
Ack(1)
Ack(1)
Ack(1)
1
cwnd=8
cwnd=9
Ack(9)
Ack(10)
cwnd=10 10
cwnd=11 11
12
Internet Networking
If cwnd size is too small (smaller than 4 packets) then its not
possible to get 3 duplicate acks and run the algorithm
Internet Networking
Sender
Initial State
cwnd=7
Slow Start
Flight Size =No. of
Unacknowledged
segments
Fast Retransmit
cwnd=8/2+3=7
ssthresh=8/2=4
=> Fast Recovery
0
1
2
3
4
5
6
cwnd=8
Receiver
Ack(1)
Ack(1)
Ack(1)
Ack(1)
7
8
Ack(1)
Ack(1)
1
Ack(3)
cwnd=8
cwnd=9
9
Ack(3)
TCP NewReno
The Idea: If the sender remembers the number of the last segment
that was sent before entering the Fast Retransmit phase
Then it can deal with a situation when a new ACK (which is not
duplicate ACK) does not cover the last remembered segment
(partial ACK)
This is a situation when more packets were lost before entering the
Fast Retransmit.
After discovering such situation the sender will retransmit the new
lost packet too and will stay at the Fast Recovery stage
The sender will finish the Fast Recovery stage when it will get ACK
that covers last segment sent before the Fast Retransmit
Internet Networking
Thus, the congestion window reflects the additional segment that has left
the network.
Internet Networking
Internet Networking
Sender
Initial State
cwnd=5
Slow Start
0
1
2
3
4
Ack(1)
Ack(1)
Ack(1)
cwnd=6 5
6
Fast Retransmit
cwnd=6/2+3=6
ssthresh=6/2=3
Recover=6
=> Fast Recovery
cwnd=7
Receiver
Ack(1)
Ack(1)
1
7
Ack(3)
Ack(3)
3
cwnd=7 8
Ack(8)
Ack(9)
10
TCP NewReno
Resetting the Retransmit Timer
Internet Networking
11
TCP NewReno
Resetting the Retransmit Timer
Internet Networking
12
13
If the SACK option is available, the TCP sender always has the
information to make intelligent decisions about which packets to
retransmit and which packets not to retransmit during Fast Recovery.
Internet Networking