163k views
0 votes
comparing go-back-n and selective repeat: assume that the timeout values for both the protocols are sufficiently long such that 5 consecutive data segments and their corresponding acks can be received (if not lost in the channel) by the receiving host (host b) and the sending host (host a) respectively. in other words, there is no possibility of early timeout. suppose host a sends 5 data segments to host b, and the 3rd segment (sent from a) is lost. in the end, all 5 data segments have been correctly received by host b. in each protocol, how many segments has host a sent in total and how many acks has host b sent in total? what are their sequence numbers? answer this question for both the protocols.

User Nullforce
by
8.2k points

1 Answer

2 votes

Answer: Your welcome!

Step-by-step explanation:

Go-Back-N:

Host A has sent a total of 5 data segments and Host B has sent a total of 5 acks. The sequence numbers of the data segments and acks sent by Host A and Host B respectively are: 0, 1, 2, 3, 4 and 0, 1, 2, 3, 4.

Selective Repeat:

Host A has sent a total of 5 data segments and Host B has sent a total of 3 acks. The sequence numbers of the data segments and acks sent by Host A and Host B respectively are: 0, 1, 2, 3, 4 and 0, 1, 3.

User Mad Matts
by
7.6k points