GateAI
Data Link Layer

GATE CSE 2026 Set 2 · Q65

NAT2 marksMedium

Time

It is necessary to design a link-layer protocol between two hosts that are directly connected over a lossless link of length 3000 kilometers. Assume that the link bandwidth is 10810^8 bits per second and that the propagation delay in the link is 5 nanoseconds per meter. Every transmitted data byte is assigned a unique sequence number. Let NN be the minimum number of bits needed for the sequence number field in the protocol header such that i. the sequence numbers do not wrap around before 60 seconds, and ii. the maximum utilization of the link is achieved. The value of NN is _______. (answer in integer)

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 30 (±0)

Data Link Layer

To determine the minimum number of bits NN for the sequence number field, we evaluate both constraints:

1. Condition (i): Sequence numbers do not wrap around before 60 seconds

  • Bandwidth B=108 bits/second=1088=1.25×107 bytes/secondB = 10^8\text{ bits/second} = \frac{10^8}{8} = 1.25 \times 10^7\text{ bytes/second}.

  • In 60 seconds60\text{ seconds}, the number of bytes transmitted is:

    Total bytes=1.25×107×60=7.5×108 bytes\text{Total bytes} = 1.25 \times 10^7 \times 60 = 7.5 \times 10^8\text{ bytes}
  • Since each byte is assigned a unique sequence number, the sequence number space must be at least 7.5×1087.5 \times 10^8 to prevent wrap-around within 60 seconds:

    2N1≥7.5×1082^{N_1} \ge 7.5 \times 10^8
    N1=⌈log⁡2(7.5×108)⌉=30 bitsN_1 = \lceil \log_2(7.5 \times 10^8) \rceil = 30\text{ bits}

    *(Since 229=536,870,912<7.5×1082^{29} = 536,870,912 < 7.5 \times 10^8 and 230=1,073,741,824>7.5×1082^{30} = 1,073,741,824 > 7.5 \times 10^8)*

2. Condition (ii): Maximum link utilization is achieved

  • Link length d=3000 km=3×106 md = 3000\text{ km} = 3 \times 10^6\text{ m}.

  • Propagation delay Tp=3×106 m×5×10−9 s/m=15×10−3 s=15 msT_p = 3 \times 10^6\text{ m} \times 5 \times 10^{-9}\text{ s/m} = 15 \times 10^{-3}\text{ s} = 15\text{ ms}.

  • Round Trip Time RTT=2×Tp=30 ms=0.03 s\text{RTT} = 2 \times T_p = 30\text{ ms} = 0.03\text{ s}.

  • Bandwidth-Delay Product (BDP) in bytes:

    BDP=B×RTT=1.25×107×0.03=3.75×105 bytes\text{BDP} = B \times \text{RTT} = 1.25 \times 10^7 \times 0.03 = 3.75 \times 10^5\text{ bytes}
  • To achieve maximum utilization, the sequence number space must support at least the window size (even for Selective Repeat where sequence space is 2×Window2 \times \text{Window}, 2×3.75×105=7.5×1052 \times 3.75 \times 10^5 = 7.5 \times 10^5, which requires ⌈log⁡2(7.5×105)⌉=20 bits\lceil \log_2(7.5 \times 10^5) \rceil = 20\text{ bits}).

Taking the minimum bits that satisfy both conditions:

N=max⁡(30,20)=30N = \max(30, 20) = 30

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This Data Link Layer previous year question is Q65 of the GATE CSE 2026 Set 2 paper. Find more GATE CSE PYQs on Data Link Layer in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Data Link Layer PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Data Link Layer in GATE CSE

Data Link Layer has 27 GATE CSE PYQs across 17 papers from 2013 to 2026. 12 of them are 2-mark NAT questions like this one, and GATE CSE 2026 Set 2 has 2.

How GATE tests Data Link Layer

More from GATE CSE 2026 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2026 Set 2 · Q65 · NAT

It is necessary to design a link-layer protocol between two hosts that are directly connected over a lossless link of length 3000 kilometers. Assume that the link bandwidth is 108 bits per second and that the propagation delay in the link is 5 nanoseconds per meter. Every transmitted data byte is assigned a unique sequence number. Let N be the minimum number of bits needed for the sequence number field in the protocol header such that i. the sequence numbers do not wrap around before 60 seconds, and ii. the maximum utilization of the link is achieved. The value of N is … (answer in integer)

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.