It is necessary to design a link-layer protocol between two hosts that are directly connected over a lossless link of length kilometers. Assume that the link bandwidth is bits per second and that the propagation delay in the link is nanoseconds per meter. Every transmitted data byte is assigned a unique sequence number.
Let be the minimum number of bits needed for the sequence number field in the protocol header such that
- the sequence numbers do not wrap around before seconds, and
- the maximum utilization of the link is achieved.
The value of is . (answer in integer)
View worked solution
Answer: 30:30
To find the minimum number of bits for the sequence number field, we must satisfy both given conditions.
First, calculate the transmission rate in bytes per second since sequence numbers are assigned per byte:
Condition (i): No wrap-around before 60 seconds
The total number of bytes transmitted in seconds is:
To ensure unique sequence numbers for all these bytes without wrapping around:
Since and , we need at least:
Condition (ii): Maximum link utilization
The total propagation delay () is:
The bandwidth-delay product (in bytes) is:
This requires a sequence number space of at least (for Go-Back-N) or (for Selective Repeat), which requires at most bits.
To satisfy both conditions, we take the maximum of the two requirements:
Free practice · Your answers on this page are not saved.
