Professional Documents
Culture Documents
Tcp works on timeout mechanisms. How do we decide time-out interval? How to estimate RTT? Time-out should obviously be greater than RTT, by how much? 1) We consider sample RTTs (not for re-transmitted segments) and take average. 2) New Estimated sample RTT = (1-alpha) estimated sample RTT + (alpha) average of samples, where alpha=0.875. 3) EWMA (exponential weighted moving average). 4) Due to lot of fluctuations, dev RTT = (1-beta) dev RTT + (beta) (sample RTT Estimated RTT), where beta = 0.25. 5) Therefore, time-out interval = Estimated RTT + 4 (Dev RTT).
Flow Control:
Speed matching mechanism. Udp cannot provide this, so buffer overflow and packets are lost. Receive window. 1) LASTBYTERCVD LASTBYTEREAD <= RCVBUFFER.
2) RWND = RCVBUFFER (LASTBYTERCVD LASTBYTEREAD). 3) LASTBYTESENT-LASTBYTEACKD <= RWND. 4) After RWND =0, we should keep sending 1 byte data, frequently to get updated regarding the free space in the receive buffer of the receiver.