SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
James F. Kurose, Keith W. Ross
Chapter:
Transport Layer
Exercise:
Review
Question:15 | ISBN:9780132856201 | Edition: 6

Question

Suppose Host A sends two TCP segments back to back to Host B over a TCP connection. The first segment has sequence number 90; the second has sequence number 110.

a. How much data is in the first segment?

b. Suppose that the first segment is lost but the second segment arrives at B. In the acknowledgment that Host B sends to Host A, what will be the acknowledgment number?

TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

a)

Consider sequence numbers,First segment=90

                                               Second segment=110

                                               Data in the first segment=110-90

                                                                                      =20

 

b) Consider the first segment is lost but the second segment arrives at B. In the acknowledgment that Host B sends to Host A, then the acknowledgment number will be first segment of sequence number, that is 90.

2 0

Discussions

abdulrehmantin@gmail.com

a. We cannot determine the exact amount of data in the first segment just from its sequence number. However, we can make an assumption that each TCP segment contains the same amount of data, which is equal to the Maximum Segment Size (MSS) negotiated between the hosts. Let's assume that the MSS is 1000 bytes. Then, the first segment contains data from byte 90 to byte 109, which is a total of 20 bytes.

 

 

 

b. When Host B receives the second segment with sequence number 110, it will send an acknowledgment with an acknowledgment number equal to the next expected sequence number, which is 91. The acknowledgment number indicates the sequence number of the next byte that Host B is expecting to receive. Since the first segment with sequence number 90 was lost, Host B will assume that the next byte it expects to receive is byte 90, which is the first byte of the lost segment. Therefore, the acknowledgment number in the acknowledgment sent by Host B to Host A will be 90.

Post the discussion to improve the above solution.