Ask Your Question
0

Ack # of packet after retransmission

asked 2018-01-23 10:43:39 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

The recipient does not receive the packet with the expected sequence number (S1), so it sends 3 Dup ACK packets. But while the recipient was sending the Dup Ack packets, the sender has sent 2 packets with S2 and S3 sequence numbers and data length L each.

The sender sends Fast Retransmission packet with S1 sequence.What should be the Ack # in the immediate next packet from the recipient? Should it be (S3 + L) ?

Thanks very much in advance

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2018-01-24 08:40:32 +0000

updated 2018-01-24 08:52:49 +0000

Interesting question. Here is what I think. At first: if S2 and S3 are packets in sequence after S1, the situation you've described is unlikely to happen at all.

Why? You write:

"WHILE the recipient was sending the Dup Ack packets, the sender has sent 2 packets..."

Whereas generating Dup ACKs is not time-based event, it's event-driven. If the recipient doesn't get S2 and S3 - it will not send any ACKs at all after S0 (packet that had come before lost S1). So in your case even after receiving S2 and S3 recipient will generate only 2 Dup ACKs that will not cause (in most TCP stacks) Fast Retransmission.

But let's assume packet S4 came, and 3rd Dup Ack was sent to sender. In that case sender's and receiver's behaviour will be determined by TCP stacks they're using.

Most modern stacks are capable to do selective repeat. It that case you're right, the next Ack from recipient would be S4+len (remember, we added one more packet!).

But if tou deal with really old stack (or maybe some IOT stack) than can do only go-back-n, the recipient will discard any out-of-order packet and request S2, S3, S4 one more time until it receives all the packets in correct order.

edit flag offensive delete link more

Comments

Thanks very much for the explanation

Vindra gravatar imageVindra ( 2018-02-04 05:11:10 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-01-23 10:43:39 +0000

Seen: 489 times

Last updated: Jan 24 '18