Suppose a TCP connection has a window size of eight segments and an RTT of 800 ms, the…
- User
Suppose a TCP connection has a window size of eight segments and an RTT of 800 ms, the sender sends segments at a regular rate of one every 100 ms, and the receiver sends ACKs back at the same rate without delay.
A segment is lost, and the loss is detected by the fast retransmit algorithm on the receipt of the third duplicate ACK. At the point when the ACK of the retransmitted segment finally arrives, how much total time has the sender lost (compared to lossless transmission) if a) The sender waits for the ACK from the retransmitted lost packet before sliding the window forward again? b) The sender uses the continued arrival of each duplicate ACK as an indication it may slide the window forward one segment?用中文回答
- Assistant
a) 如果发送方在滑动窗口前等待重传丢失的分段的 ACK,当接收到重传分段的 ACK 时,发送方损失的总时间为:
- 第一次发送分段时,需要等待一个 RTT 的时间才会收到 ACK;
- 第二次发送分段时,需要等待一个 RTT 的时间才会收到 ACK;
- 第三次发送分段时,需要等待一个 RTT 的时间才会收到第一个重复的 ACK;
- 之后,发送方等待重传丢失的分段的 ACK。因为分段丢失,接收方不会立即发送 ACK。在等待一段时间后,发送方检测到前三个 ACK 都是重复的,于是发送方重传分段。
- 重传分段时,需要等待一个 RTT 的时间才能够收到重传分段的 ACK。
所以发送方损失的总时间为 毫秒。
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.