Académique Documents
Professionnel Documents
Culture Documents
• Introduction to UDP
• Remote Procedure Call
• The Real-Time Transport
Protocol
6-31
TANENBAUM
Window management
Computer Networks II
in TCP. 29
TCP Transmission Policy
(cont’d)
• Sender and receiver are not forced to
transmit or receive as soon as they
receive data from the application. This
improves performance as follows:
– If one byte messages are sent (like in
TELNET) then use NAGLE’s algorithm
• Send first byte and keep the rest until ack comes
back
• As ack comes in send the rest and keep the further
incoming bytes until ack is received
TANENBAUM Computer Networks II 30
TCP Transmission Policy (2)
(a) Probability density of ACK arrival times in the data link layer.
(b) Probability density of ACK arrival times for TCP.
TANENBAUM Computer Networks II 39
Retransmission Timer (cont’d)
• M: The time to receive ack
• :Smoothing factor, usually 7/8
• RTT=RTT+(1-)M
• D=D+(1-)|RTT-M|
• Timeout=RTT+4D
• Karn’s Algorithm
– Do not update RTT on any segments that
have been retransmitted (difficult to figure out
for what segment the ack is)
TANENBAUM Computer Networks II 40
TCP Timers (cont’d)
• Persistence Timer
– Used to prevent deadlock when buffer
management messages are lost
• Keepalive Timer
– Check the other side if the line is idle for a
long time
• Timed Wait
– Used to close the connection
(a) TCP header. (b) IP header. In both cases, the shaded fields
are taken from the prototype without change.
TANENBAUM Computer Networks II 58
Optimizations for high speed
networks
• Buffer management
– Avoid unnecessary copying
• Timer Management
– Use linked list of timer events sorted by expiry
time
• At every clock tick, the counter in the head entry is
decremented
– Timer wheel
• More efficient if timer interval is known in advance
TANENBAUM Computer Networks II 59
Timer
Wheel