Data Link Layer Delay Analysis: Formulas, Worked Examples and Exam Question Patterns

Learn to separate transmission and propagation delay, calculate a complete stop-and-wait cycle, and choose the minimum sliding-window size without unit traps.

KnowledgeGate Team

Exam prep & CS education

Updated 22 Sep 20265 min read

Delay questions look like formula substitution, yet most errors come from confusing transmission with propagation or mishandling the ACK trip. The same link parameters determine stop-and-wait efficiency and the sliding-window size required to keep the sender busy. Computer Networks connects the layer models and switching foundations; data-link timing adds ACK serialization and sender-window occupancy.

Define the objects before calculating. Let a data frame contain L bits, an ACK contain A bits, the forward and reverse link rate be R bits/s, the link distance be d metres, and the propagation speed be v metres/s.

Our model is full duplex and error-free, with the same rate in both directions. The receiver sends an ACK only after the complete frame arrives. Processing and queuing delays are zero.

Transmission delay, or serialization delay, is the time needed to push every frame bit onto the link. Propagation delay is one bit's travel time across the medium. The first bit can arrive while the sender is still serializing later bits.

Transmission, propagation, processing and queuing delay formulas

Quantity

Formula

Meaning

Unit

Data transmission delay

T_t = L/R

Time to place the complete data frame on the link

seconds

ACK transmission delay

T_ack = A/R

Time to place the complete ACK on the reverse link

seconds

One-way propagation delay

T_p = d/v

Time for one bit to cross the link

seconds

One-packet total

T_total = T_processing + T_queue + T_t + T_p

Delay for one packet at one node and link

seconds

Processing and queuing delays need values the question gives you. Drop them only when stated or declared negligible.

In stop-and-wait, the sender transmits one frame and waits for the complete ACK. Thus:

T_cycle = T_t + T_p + T_ack + T_p = T_t + T_ack + 2T_p

Utilization is U = T_t/T_cycle. Counting all L frame bits as useful data, throughput is:

L/T_cycle = U x R

Before substitution, run a unit check:

  • bytes times 8 gives bits;

  • kilometres times 1,000 gives metres;

  • Mb/s means 10^6 bits/s unless the question says otherwise;

  • seconds times 1,000 gives milliseconds.

Stop-and-wait delay analysis: a complete worked example

Use a 1,000-byte frame, a 50-byte ACK, a 2 Mb/s link in both directions, distance 600 km, and propagation speed 2 x 10^8 m/s. Processing and queuing delays are zero.

First convert all values:

  • L = 1,000 x 8 = 8,000 bits

  • A = 50 x 8 = 400 bits

  • R = 2 x 10^6 = 2,000,000 bits/s

  • d = 600 x 1,000 = 600,000 m

Now calculate each primitive delay:

  • T_t = 8,000/2,000,000 = 0.004 s = 4 ms

  • T_p = 600,000/(2 x 10^8) = 0.003 s = 3 ms

  • T_ack = 400/2,000,000 = 0.0002 s = 0.2 ms

The sender serializes the frame from t = 0 to 4 ms. Its first bit reaches the receiver at 3 ms; its last arrives at 4 + 3 = 7 ms. The receiver serializes the ACK from 7 to 7.2 ms. Another 3 ms of propagation puts the ACK's last bit at the sender at 10.2 ms.

Therefore:

  • T_cycle = 4 + 3 + 0.2 + 3 = 10.2 ms

  • U = 4/10.2 = 0.392157 = 39.22%

  • useful throughput = 8,000/0.0102 = 784,314 bits/s, approximately 0.784 Mb/s

Cross-check: U x R = 0.392157 x 2 Mb/s = 0.784 Mb/s after rounding.

Stop-and-wait timeline on the 600 km link: frame sent from 0 to 4 ms, last bit at 7 ms, ACK back at the sender at 10.2 ms.

The propagation ratio a and the common shortcut

The propagation ratio is a = T_p/T_t. Here, a = 3/4 = 0.75, so one-way propagation takes three-quarters of one frame-transmission time.

If, and only if, ACK transmission is explicitly negligible, divide the stop-and-wait cycle by T_t:

U = T_t/(T_t + 2T_p) = 1/(1 + 2a)

Here, U = 1/(1 + 2 x 0.75) = 1/2.5 = 40%. This is the negligible-ACK approximation; 39.22% includes the stated 50-byte ACK. The distinction can separate two answer options.

A sliding window puts multiple frames in flight. In this error-free model:

U_W = min(1, W T_t/T_cycle)

With W = 2, U_2 = 2 x 4/10.2 = 0.784314, or 78.43%. Throughput is 0.784314 x 2 Mb/s = 1.568628 Mb/s, rounded to 1.569 Mb/s.

To prevent sender idle time, the smallest integer window is:

W_min = ceil(T_cycle/T_t) = ceil(10.2/4) = ceil(2.55) = 3 frames

Frames F1, F2 and F3 occupy 0-4, 4-8 and 8-12 ms. ACK1 arrives at 10.2 ms during F3, freeing a slot before F4 starts at 12 ms. With no gap, ideal utilization reaches 100% and throughput reaches the raw 2 Mb/s link rate.

Sender timelines on the same 2 Mb/s link: W=2 idles from 8 to 10.2 ms, while W=3 starts frame F4 at 12 ms with no gap.

Delay-analysis mistakes that change the answer

Mistake

Why it fails

Correction

Using bytes directly with bits/s

Numerator and denominator use different units

Multiply bytes by 8 first

Using d/R for propagation

Rate serializes bits; it does not describe signal travel

Use T_p = d/v

Doubling an RTT the question already gives

RTT already covers both directions

Use the given RTT once

Ignoring ACK transmission when ACK length is given

It removes a real part of the sender cycle

Add T_ack = A/R

Adding propagation only once

Data and ACK each cross the link

Add 2T_p for the full stop-and-wait round

Reporting utilization above 1

A link cannot transmit useful bits for more than all available time

Apply min(1, ...)

Inventing processing or queuing values

Those delays depend on information the question does not give

Include them only when stated

Calling 0.784 Mb/s raw capacity

It confuses protocol throughput with link rate

Raw capacity is 2 Mb/s; 0.784 Mb/s is stop-and-wait useful throughput here

How exams turn delay analysis into questions

Recurring constructions include direct T_t or T_p calculation, stop-and-wait utilization or throughput, reverse problems for distance, rate, frame size or target utilization, and the smallest integer W that keeps a sliding-window link busy.

Two quick checks can distinguish the answer options. Including the ACK gives 39.22%, while neglecting its transmission gives 40%. Window size must be an integer, so ceil(2.55) = 3, not 2.55 or 2. Broader practice across protocol timing, flow control and layered networking is available through Computer Networks MCQs.

Under time pressure, write assumptions, convert units, compute each primitive delay, draw one round, form the denominator once, and round only the final result.

  • Transmission delay is T_t = L/R.

  • Propagation delay is T_p = d/v.

  • Stop-and-wait waits for a full data-plus-ACK round.

  • A sufficiently large sliding window hides that wait.

For the worked link, the results are a 10.2 ms cycle, 39.22% stop-and-wait utilization, approximately 0.784 Mb/s useful throughput, and W_min = 3.

For structured preparation across the complete subject, continue with GATE Guidance by Sanchit Sir. To browse the wider syllabus and related resources, use the GATE CS Exam Preparation category.