Question: Consider a TCP sender and receiver.
Assume bytes 0 .. 99 have been sent, received, and acknowledged (the sender has received ack's for them). Assume the sender sends the following segments (of 20 bytes each): 100, 120, 140, 160, 180, 200.
Assume these segments are received in the following order:
Show me what ack is generated by the receive after receiving each of these segments. Will the sender retransmit a packet? Which one and when?© BrainMass Inc. brainmass.com July 21, 2018, 4:13 am ad1c9bdddf
Ack: The ack will be the next byte sequence number the receiver expects to receive from the sender. So if the segment is of 20 bytes long, then if the receiver receives a segment with sequence number of X, then the ack will be X+20. So,
140 --> ack: 160
160 -->ack: 180
120 -->ack: 140
100 --> ack: 120
In 240 words, this solution provides an explanation of how to consider a TCP sender and receiver sequence and understand the pattern of retransmission.