Question

Hosts A and B are communicating over a TCP connection, and Host B has already received...

Hosts A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 126. Suppose Host A then sends two segments to Host B back-to-back. The first and second segments contain 80 and 40 bytes of data, respectively. In the first segment, the sequence number is 127, the source port number is 302, and the destination port number is 80. Host B sends an acknowledgment whenever it receives a segment from Host A.

(c) If the second segment arrives before the first segment, in the acknowledgment of the first arriving segment, what is the acknowledgment number?

(d) Suppose the two segments sent by A arrive in order at B. The first acknowledgment is lost and the second acknowledgment arrives after the first timeout interval. Draw a timing diagram, showing these segments and all other segments and acknowledgments sent. (Assume there is no additional packet loss.) For each segment in your figure, provide the sequence number and the number of bytes of data; for each acknowledgment that you add, provide the acknowledgment number

Homework Answers

Answer #1

Answer:

c) Suppose the second segment appears before the first segment, in the acknowledgment of the first arriving segment. In that case, the acknowledgment number is 127, meaning that it is already waiting for bytes 127 and onwards.

d) Following is the Timing Diagram for the given problem:

Here the Host A sends data of 80 bytes with sequence number 127. Acknowledgment 207 from Host B is lost while traveling to Host A. Then again Host sends data of 40 bytes with sequence number 207 and acknowledgment is reached to Host A from B after the end of the first timeout interval.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Host A and B are communicating over a TCP connection, and Host B has already received...
Host A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 126. Suppose Host A then sends two segments to Host B back-to-back. The first and second segments contain 80 and 40 bytes of data, respectively. In the first segment, the sequence number is 127, the source port number is 302, and the destination port number is 80. Host B sends an acknowledgment whenever it receives a segment...
Hosts A and B are communicating over a TCP connection, and Host B has already received...
Hosts A and B are communicating over a TCP connection, and Host B has already received from A all bytes up through byte 100. Suppose Host A then sends three segments to Host B. The first, second, third segments contain 10, 20, and 30 bytes of data respectively. Host B sends an acknowledgment whenever it receives a segment from Host A. What is the sequence number of the first, second, third segment A sends to B? (3 points) Assume three...
Assume that the timeout values for all three protocols are sufficiently long such that 5 consecutive...
Assume that the timeout values for all three 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. Suppose Host A sends 5 data segments to Host B, and the 2nd segment (sent from A) is lost – this is the only data segment or ACK loss. In the end, all 5 data segments...
Multiple choice questions: Circle the correct answer 7) Consider Go-Back-N protocol. Suppose that Host A sends...
Multiple choice questions: Circle the correct answer 7) Consider Go-Back-N protocol. Suppose that Host A sends 6 data segments to Host B, and the 4th segment is lost. In the end, all 6 data segments have been correctly received by Host B. Assume that the timeout values is sufficiently long such that 6 consecutive data segments and their corresponding ACKs can be received (if not lost in the channel) by Host B and Host A, respectively before the timer times...
1. Please use only the C as the language of programming. 2. Please submit/upload on Canvas,...
1. Please use only the C as the language of programming. 2. Please submit/upload on Canvas, the following les for each of your programs: (1) the client and the server source les each (2) the client and the serve executable les each (3) a brief Readme le that shows the usage of the program. 3. Please appropriately comment your program and name all the identiers suitable, to enable enhanced readability of the code. Problems 1. Write an ftp client that...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT