Suppose you are asked to design a new reliable byte-stream transport protocol like This protocol, named , runs over a network with Round Trip Time of milliseconds and the maximum segment lifetime of minutes.
Which of the following is/are valid lengths of the Sequence Number field in the header?
View worked solution
Answer: B;C;D
To prevent sequence number wrap-around within the Maximum Segment Lifetime (), the total number of unique sequence numbers available must be greater than or equal to the maximum number of bytes that can be transmitted during one .
Step 1: Calculate the maximum bytes transmitted in one
- Bandwidth:
- Bandwidth in Bytes:
- Maximum Segment Lifetime (MSL):
- Total bytes transmitted in MSL:
Step 2: Determine the minimum sequence number field length ()
For a sequence number field of bits, the sequence number space is . To avoid wrap-around within the MSL, we require:
Let's evaluate the powers of :
- For bits: (Insufficient)
- For bits: (Sufficient)
Thus, the minimum length of the sequence number field must be at least bits. Any length is valid.
Conclusion
- A. bits: Invalid ()
- B. bits: Valid ()
- C. bits: Valid ()
- D. bits: Valid ()
Free practice · Your answers on this page are not saved.
