Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

consider a TCP connection between sender A and receiver B, as shown in figure 1.

ID: 3705926 • Letter: C

Question

consider a TCP connection between sender A and receiver B, as shown in figure 1. At time to, receiver B has already received from sender A all bytes up to byte 119. TCP segment from A to B are numbered as P1, P2, so on, while the acknowledgements from B to A are numbered as A1, A2,so on. T1 is the timeout interval for segment P1, T2 is for P2, and T4 is for P4. Note that A2 is not the acknowledgment for P2; they are just numbered in order of time, and Px and Py can be the same segment even if x ! Y Assume that every segment from A to B is 20 bytes long, and receiver B keeps the out-of- order bytes and waits for the missing bytes to fill in the gaps. Assume also that the window size is so large that it never runs out. timeout interval sender T1 T2 T4 time o loss 200 160 125 receiver B to A- In the first segment P1, the segment number is 120, source port number is 1042, and the destination port number is 80. What is the acknowledgment number, the source port number, and the destination port number in segment A1?

Explanation / Answer

Acknowledgment Number: 140

Source Port: 80

Destination Pot: 1042

Segment number for P1 is 120 and each segment is of 20 bytes (120-139). Thus next byte that B is expecting is 140 which will be the ack number in the ack. Source port number would be port of B and destination port would be port of A.