IAE Academy

GATE CS

Performance metrics

Delay, throughput and link utilisation

Performance metrics describe how long data takes to cross a network and how much of a link's capacity is actually used. For GATE you compute transmission, propagation and end-to-end delay, find throughput from the bottleneck link or the sender's window, and use the bandwidth-delay product to decide how large a sliding window must be to keep a link busy, with the sequence-number limits for Go-Back-N and Selective Repeat.

7 previous-year questions · 7 solved · 5 practice questions

Delays and the conventions used

A packet crossing one link meets four delays. Processing delay is the time a node takes to examine the header and choose the output link. Queuing delay is the wait in the output buffer. Transmission delay is the time to push all the bits of the packet onto the link. Propagation delay is the time one bit takes to travel along the wire. Unless a question gives them, processing and queuing delays are taken as zero.

Conventions to state before calculating

  1. 1 byte = 8 bits, so a packet of bytes has bits.

  2. For data rates, kilo = and mega = (a 10 Mbps link sends bits per second).

  3. For data sizes (packet, frame, file, window), use and only when the question defines them that way (for example 1 KB = 1024 bytes); rates stay in powers of 10 even then. When the question is silent, these notes use powers of 10 for sizes too.

  4. Propagation speed is whatever the question gives (for example m/s); do not assume the speed of light.

  5. Time units: 1 ms = s, 1 s = s. Convert everything to seconds or everything to ms before dividing.

TRANSMISSION DELAY

L = packet size in bits, R = link rate in bits per second. Depends on the packet and the rate, not on the length of the wire.

PROPAGATION DELAY

d = length of the link, v = propagation speed in the medium. Independent of the packet size and the link rate.

ROUND-TRIP TIME (NEGLIGIBLE ACK SIZE)

For a short probe or acknowledgement whose transmission delay is negligible. If transmission delays matter, add them explicitly.

ONE PACKET OVER N LINKS, STORE-AND-FORWARD

Each router receives the whole packet before forwarding it. Queuing and processing delays are zero unless given. With equal links this is .

P PACKETS BACK TO BACK OVER N EQUAL LINKS

All packets have the same size L, are sent without gaps, and no queuing occurs other than waiting behind earlier packets. The first packet needs N transmission times; each later packet finishes one transmission time after the one before.

EXAM TIP

Transmission delay is paid once per link, per packet. Propagation delay is paid once per link regardless of packet size. A small packet over a long link is dominated by ; a large packet over a slow link is dominated by .

Throughput is the rate at which useful bits are actually delivered end to end, in bits per second. On a path of several links in series, bits cannot arrive faster than the slowest link can carry them. That slowest link is the bottleneck.

THROUGHPUT OF A PATH

Steady transfer of a long stream over links in series with no other traffic, and a sender window large enough not to be the limit. Delays do not change this rate; they only shift when the stream starts and ends.

FILE OF F BITS IN PACKETS OF L BITS, LINKS IN SERIES

Store-and-forward; is the bottleneck rate (link ); F is a whole number of packets of L bits sent back to back; no other traffic, no processing delay. Every link other than the bottleneck adds one packet transmission time. With equal links and this is . For a very large F the first term dominates.

If a link of rate is shared equally among flows and every flow always has data to send, each flow gets of it. A flow's throughput is then the minimum of its share on every link it crosses.

BANDWIDTH-DELAY PRODUCT

Number of bits that fill the link from one end to the other (bits in flight in one direction). Using gives the bits that can be in flight during one round trip.

WINDOW-LIMITED THROUGHPUT

W = sender window in bits (a TCP window is given in bytes, so multiply by 8). = time from sending the first bit of a window to receiving its acknowledgement: for frames of transmission time , or simply RTT when transmission time is negligible. With this gives , as below.

EXAM TIP

Throughput is limited by the bottleneck rate, but the number of bits in flight is limited by the sender's window. If the window is smaller than , the sender stalls waiting for acknowledgements and the link is underused.

In stop-and-wait the sender transmits one frame, then waits for its acknowledgement before sending the next. Define , the ratio of the one-way propagation delay to the transmission delay. The link is busy only for out of each cycle of (frame out, acknowledgement back).

STOP-AND-WAIT UTILISATION

No errors, acknowledgement transmission time and processing time negligible. If the ACK has a non-negligible transmission time , the cycle is .

EFFECTIVE THROUGHPUT

R = link rate. Equivalently, one frame of bits is delivered per cycle: .

STOP-AND-WAIT WITH FRAME LOSS

Each frame is lost independently with probability p, acknowledgements are never lost, and every failed attempt costs one full cycle (timeout equal to the cycle). The expected number of transmissions per frame is .

USEFUL THROUGHPUT WITH HEADER OVERHEAD

L = whole frame in bits including the header, H = header bits. Use this only when the question asks for data (payload) throughput; otherwise headers count as transmitted bits.

Utilisation falls as grows, that is, for long links, fast links or short frames. Making the frame longer (larger ) raises utilisation, which is why stop-and-wait is acceptable on short slow links but poor on long fast ones.

EXAM TIP

Use RTT consistently: the cycle is with . A frequent slip is using instead of , or computing with the round-trip time already included and then doubling again.

Sliding window: utilisation and window size

A sliding-window sender may have up to unacknowledged frames outstanding. After sending a window of frames, it waits for the first acknowledgement, which arrives after the first frame began transmission. In that cycle the sender has used the link for .

SLIDING-WINDOW UTILISATION

N = sender window in frames, , no errors, ACK transmission negligible. Applies to Go-Back-N and Selective Repeat alike when there are no losses. gives stop-and-wait.

WINDOW NEEDED TO KEEP THE LINK BUSY

Smallest window giving . Equivalently, the window must cover one full cycle: .

WORKED EXAMPLE

A link of 4 Mbps carries frames of 500 bytes. The one-way propagation delay is 7.5 ms. Find the utilisation of stop-and-wait, the utilisation with a window of 8 frames, and the smallest window that keeps the link fully busy. Ignore ACK transmission time and errors.

Solution
  1. Frame size = 500 x 8 = 4000 bits, rate = bit/s, so ms.

  2. , so .

  3. Stop-and-wait: , throughput Mbps.

  4. Window of 8: , throughput 2 Mbps.

  5. Full utilisation needs , so frames.

Answer: 6.25% for stop-and-wait, 50% with a window of 8, and a minimum window of 16 frames.

EXAM TIP

If , utilisation is capped at 1 (100%). Never report a value above 1; the answer is simply 1.

Go-Back-N and Selective Repeat

With bits in the sequence-number field there are distinct numbers. The window must be small enough that, after a loss, an old retransmitted frame can never be mistaken for a new one.

Property

Go-Back-N

Selective Repeat

Receiver window

1 frame (accepts only the next in-order frame)

Same size as the sender window (buffers out-of-order frames)

Maximum sender window

Sequence bits needed for window

smallest with

smallest with , i.e.

Acknowledgement

Cumulative: ACK confirms everything up to

Individual: each frame is acknowledged on its own

After frame is lost or times out

Retransmit frame and every frame sent after it

Retransmit only frame

Out-of-order frame at receiver

Discarded

Buffered, delivered in order once the gap is filled

GENERAL RULE FOR SEQUENCE NUMBERS

= sender window, = receiver window, both in frames; k = bits in the sequence number. Go-Back-N has , giving ; Selective Repeat with gives .

MAXIMUM WINDOW, GO-BACK-N

k = bits in the sequence number. A window of would make a whole new window look like a retransmission of the old one.

MAXIMUM WINDOW, SELECTIVE REPEAT

Sender and receiver windows are equal; the two windows together must not exceed the numbers.

SEQUENCE BITS FOR A GIVEN WINDOW

N = sender window size in frames. Use from the utilisation formula when the question asks for the field that keeps the link fully busy.

WORKED EXAMPLE

A sender with window size 6 uses Go-Back-N and then Selective Repeat to send 6 frames numbered 1 to 6. All six are transmitted before any timer expires. Frame 3 is lost on its first transmission only; every other transmission and every acknowledgement arrives. Count the total number of frame transmissions in each protocol.

Solution
  1. First pass: frames 1, 2, 3, 4, 5, 6 are sent, giving 6 transmissions in both protocols (frame 3 is lost).

  2. Go-Back-N: the receiver delivers 1 and 2, discards 4, 5, 6 as out of order, and the timer for frame 3 expires. The sender goes back and retransmits 3, 4, 5, 6, which is 4 more transmissions.

  3. Go-Back-N total = 6 + 4 = 10.

  4. Selective Repeat: frames 4, 5, 6 are buffered and acknowledged individually. Only frame 3 is retransmitted, 1 more transmission.

  5. Selective Repeat total = 6 + 1 = 7.

Answer: Go-Back-N sends 10 frames in total, Selective Repeat sends 7.

EXAM TIP

The GBN limit is and the SR limit is . For : GBN window up to 7, SR window up to 4. Stop-and-wait () needs only 2 sequence numbers, that is 1 bit. Check which protocol a question names before applying the limit.

Putting it together: a checklist

Procedure for a utilisation or window question

  1. Convert the frame size to bits and the rate to bits per second, then compute .

  2. Compute if distance and speed are given, or read it directly.

  3. Form and .

  4. Stop-and-wait: . Window : .

  5. If frame loss or header overhead is given, apply or the factor .

  6. For the window that keeps the link busy, take the ceiling of .

  7. For sequence-number bits, apply the GBN rule () or the SR rule () to that window.

  8. Throughput = ; bits in flight = one way.

Quantity

Expression

Unit check

Transmission delay

bits / (bits per second) = s

Propagation delay

m / (m per second) = s

dimensionless

Bandwidth-delay product

bits

Utilisation

dimensionless, at most 1

EXAM TIP

Check units at the end. A utilisation above 1 means a unit conversion (bytes versus bits, ms versus s) went wrong. A value of that is not a whole number is normal: a window is a whole number of frames, so round it up.

PREVIOUS-YEAR QUESTIONS

7 questions from the CS papers

Try each question first, then open the answer. We placed each question under a topic ourselves; the exam paper does not label topics.

See these papers in full: GATE CSE 2026 Set 1 · GATE CSE 2026 Set 2 · GATE CSE 2025 Set 2 · GATE CSE 2024 Set 1 · GATE CSE 2023 · GATE CSE 2022

GATE 2026 CS1 Q.45

GATE 2026 · CS1Q.45 · 2 marks · MCQ

Consider the implementation of sliding window protocol over a lossless link, with a window size of frames, where each frame is of size 1000 bits (including header). The bandwidth of the link is 100 kbps (1k = ) and the one-way propagation delay is 100 milliseconds. Assume that processing times at the sender and receiver are zero and the transmission time of acknowledgements is also zero. Which one of the following options gives the minimum size of (in number of frames) required to achieve 100% link utilization?

  1. (A)

    10

  2. (B)

    21

  3. (C)

    20

  4. (D)

    11

Answer and solution
See the question in the paper
GATE 2026 CS1 Q.45: answer and solution

GATE 2026 CS2 Q.21

GATE 2026 · CS2Q.21 · 1 mark · MCQ

Consider a file of size 4 million bytes being transferred between two hosts connected via a path consisting of three consecutive links of bandwidth 2 Mbps, 500 kbps, and 1 Mbps, respectively. All processing delays and propagation delays are negligible. Assume that there is no other background traffic over the path and no other additional overhead to transfer the file.

Which one of the following is the total time (in seconds) to transfer the file?

Note: 1M=10^6, 1k=10^3

  1. (A)

    731

  2. (B)

    64

  3. (C)

    8

  4. (D)

    16

Answer and solution
See the question in the paper
GATE 2026 CS2 Q.21: answer and solution

GATE 2026 CS2 Q.65

GATE 2026 · CS2Q.65 · 2 marks · 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 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 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 is ______. (answer in integer)

Answer and solution
See the question in the paper
GATE 2026 CS2 Q.65: answer and solution

GATE 2025 CS2 Q.36

GATE 2025 · CS2Q.36 · 2 marks · MCQ

Suppose we are transmitting frames between two nodes using Stop-and-Wait protocol. The frame size is 3000 bits. The transmission rate of the channel is 2000 bps (bits/second) and the propagation delay between the two nodes is 100 milliseconds. Assume that the processing times at the source and destination are negligible. Also, assume that the size of the acknowledgement packet is negligible. Which ONE of the following most accurately gives the channel utilization for the above scenario in percentage?

  1. (A)

    88.23

  2. (B)

    93.75

  3. (C)

    85.44

  4. (D)

    66.67

Answer and solution
See the question in the paper
GATE 2025 CS2 Q.36: answer and solution

GATE 2024 CS1 Q.36

GATE 2024 · CS1Q.36 · 2 marks · MCQ

Consider a network path P—Q—R between nodes P and R via router Q. Node P sends a file of size bytes to R via this path by splitting the file into chunks of bytes each. Node P sends these chunks one after the other without any wait time between the successive chunk transmissions. Assume that the size of extra headers added to these chunks is negligible, and that the chunk size is less than the MTU.

Each of the links P—Q and Q—R has a bandwidth of bits/sec, and negligible propagation latency. Router Q immediately transmits every packet it receives from P to R, with negligible processing and queueing delays. Router Q can simultaneously receive on link P—Q and transmit on link Q—R.

Assume P starts transmitting the chunks at time .
Which one of the following options gives the time (in seconds, rounded off to 3 decimal places) at which R receives all the chunks of the file?

  1. (A)

    8.000

  2. (B)

    8.008

  3. (C)

    15.992

  4. (D)

    16.000

Answer and solution
See the question in the paper
GATE 2024 CS1 Q.36: answer and solution

GATE 2023 CS Q.17

GATE 2023 · CSQ.17 · 1 mark · MCQ

Suppose two hosts are connected by a point-to-point link and they are configured to use Stop-and-Wait protocol for reliable data transfer. Identify in which one of the following scenarios, the utilization of the link is the lowest.

  1. (A)

    Longer link length and lower transmission rate

  2. (B)

    Longer link length and higher transmission rate

  3. (C)

    Shorter link length and lower transmission rate

  4. (D)

    Shorter link length and higher transmission rate

Answer and solution
See the question in the paper
GATE 2023 CS Q.17: answer and solution

GATE 2022 CS Q.59

GATE 2022 · CSQ.59 · 2 marks · NAT

Consider a 100 Mbps link between an earth station (sender) and a satellite (receiver) at an altitude of 2100 km. The signal propagates at a speed of m/s. The time taken (in milliseconds, rounded off to two decimal places) for the receiver to completely receive a packet of 1000 bytes transmitted by the sender is ______.

Answer and solution
See the question in the paper
GATE 2022 CS Q.59: answer and solution

PRACTICE

5 questions to test yourself

PRACTICE 11 mark · NAT

A packet of 1500 bytes is sent over a path of 3 links in series, each of rate 10 Mbps (kilo = , mega = , 1 byte = 8 bits) and each with a one-way propagation delay of 2 ms. Routers use store-and-forward. Ignore queuing and processing delays. What is the end-to-end delay of the packet, in ms?

Answer and solution

Answer: (accepted range )

  1. L = 1500 x 8 = 12000 bits; R = bit/s, so ms per link.

  2. Three links: transmission total = 3 x 1.2 = 3.6 ms.

  3. Propagation total = 3 x 2 = 6 ms.

  4. End-to-end delay = 3.6 + 6 = 9.6 ms.

PRACTICE 22 marks · NAT

A stop-and-wait protocol runs over a 1 Mbps link (mega = ). Each frame is 1000 bytes and the one-way propagation delay is 20 ms. Acknowledgement transmission time and processing time are negligible and there are no errors. What is the throughput in kbps (kilo = , 1 byte = 8 bits)? Give your answer to two decimal places.

Answer and solution

Answer: (accepted range )

  1. L = 8000 bits, so ms.

  2. Cycle = ms.

  3. .

  4. Throughput = kbps = 166.67 kbps.

PRACTICE 32 marks · MCQ

A Go-Back-N sender uses a 2 Mbps link and frames of 1000 bits (mega = ). The one-way propagation delay is 12 ms. ACK transmission time is negligible. What is the minimum number of bits in the sequence-number field so that the sender can keep the link fully utilised?

  1. (A)

    5

  2. (B)

    6

  3. (C)

    7

  4. (D)

    8

Answer and solution

Answer: (B)

  1. ms; ms.

  2. , so and the window needed is .

  3. Go-Back-N needs .

  4. and , so .

PRACTICE 42 marks · MSQ

Which of the following statements are correct?

  1. (A)

    With 4-bit sequence numbers, the largest sender window in Selective Repeat is 8.

  2. (B)

    With 4-bit sequence numbers, the largest sender window in Go-Back-N is 16.

  3. (C)

    In Go-Back-N, the receiver discards a frame that arrives out of order.

  4. (D)

    In Selective Repeat, the receiver window has size 1.

Answer and solution

Answer: (A), (C)

  1. SR maximum window is , so A is correct.

  2. GBN maximum window is , not 16, so B is incorrect.

  3. A Go-Back-N receiver accepts only the next expected frame and discards any other, so C is correct.

  4. A Selective Repeat receiver has a window equal to the sender's, to buffer out-of-order frames, so D is incorrect.

PRACTICE 51 mark · NAT

A link has a rate of 100 Mbps (mega = ) and a one-way propagation delay of 5 ms. How many kilobits (kilo = ) can be in flight on the link in one direction at one instant when it is completely full?

Answer and solution

Answer: (accepted range )

  1. Bandwidth-delay product = bits.

  2. = 500000 bits.

  3. In kilobits: 500000 / 1000 = 500.

OFFICIAL GATE 2027 SYLLABUS WORDING

Copied from the GATE 2027 syllabus; see all 2027 syllabi.

GATE CS

performance metrics

Preparing in Kolkata? IAE Academy's course for GATE CSE.