

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Question 1 ( 6 Points) 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 70 and 50 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 acknowledgement whenever it receives a segment from Host A. a. In the second segment sent from Host A to B, what are the sequence number, source port number, and destination port number? b. If the first segment arrives before the second segment, in the acknowledgement of the first arriving segment, what is the acknowledgment number, the source port number, and the destination port number? c. If the second segment arrives before the first segment, in the acknowledgement 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 acknowledgement is lost and the second acknowledgement arrives after the first timeout interval. Draw a timing diagram, showing these segments and all other segments and acknowledgements 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 acknowledgement that you add, provide the acknowledgement number. Arab Academy for Science & Technology & Maritime Transport College of Engineering and Technology Lecturer : Dr. Cherine Fathy Course : Computer Networks Marks : 1 0 Code : CC Date : 29 / 12 / 2020 12 th^ Week Exam part 2 Time : 60 min
Question 2 (4 Points) Answer true or false to the following questions and briefly justify your answer. a. Host A is sending Host B a large file over a TCP connection. Assume Host B has no data to send Host A. Host B will not send acknowledgments to Host A because Host B cannot piggyback the acknowledgments on data. b. Suppose Host A is sending a large file to Host B over a TCP connection. If the sequence number for a segment of this connection is m, then the sequence number for the subsequent segment will necessarily be m+1. c. Suppose Host A sends one segment with sequence number 38 and 4 bytes of data over a TCP connection to Host B. In this same segment the acknowledgment number is necessarily 42. d. Fast retransmit will occur after the first duplicate ACK for a segment. Question Bonus (6points) Assume a TCP host is expecting sequence number 8847. Describe what the TCP host does in each of the following scenarios: a. The last packet received was already acknowledged. A new packet arrives with sequence number 8847 and 153 bytes of data in the message payload. b. The last packet received not yet been acknowledged. A new packet arrives with sequence number 8847 and 153 bytes of data in the message payload. c. The last packet received was just acknowledged. A new packet arrives with sequence num ber 9000 and 180 bytes of data in the message payload. d. The last packet received had sequence number 9000 and 180 bytes of data in the message payload. A new packet arrives with sequence number 8847and 153 bytes.