Skip to content
Official PYQ · 2005

GATE CS 2005 Q73 — Packet, Circuit and Virtual Circuit Switching

Explain with AI

In a packet switching network, packets are routed from source to destination along a single path having two intermediate nodes. If the message size is 2424 bytes and each packet contains a header of 33 bytes, then the optimum packet size is:

Choose one option
View worked solution

Answer: D

To find the optimum packet size, we analyze the total transmission time required to send the message from the source to the destination.

1. Identify the Parameters

  • Message size (MM): 2424 bytes
  • Header size (HH): 33 bytes
  • Number of intermediate nodes: 22
  • Number of hops (kk): 33 (Source →\to Node 1 →\to Node 2 →\to Destination)

Let:

  • xx be the packet size (in bytes).
  • p=x−H=x−3p = x - H = x - 3 be the payload size per packet (in bytes).
  • N=⌈M/p⌉=⌈24/p⌉N = \lceil M / p \rceil = \lceil 24 / p \rceil be the number of packets.
  • RR be the transmission rate of each link (in bytes/second).

2. Total Transmission Time Formula

Using the pipelining concept in packet switching, the total time TT to transmit NN packets over kk hops is given by:

T=(N+k−1)×xRT = (N + k - 1) \times \frac{x}{R}

Substituting k=3k = 3:

T⋅R=(N+2)×xT \cdot R = (N + 2) \times x

We want to find the packet size xx that minimizes the normalized transmission time T⋅RT \cdot R.

3. Evaluate the Options

  • Option A: x=4x = 4 bytes
    • Payload p=4−3=1p = 4 - 3 = 1 byte
    • Number of packets N=24/1=24N = 24 / 1 = 24
    • T⋅R=(24+2)×4=104T \cdot R = (24 + 2) \times 4 = 104
  • Option B: x=6x = 6 bytes
    • Payload p=6−3=3p = 6 - 3 = 3 bytes
    • Number of packets N=24/3=8N = 24 / 3 = 8
    • T⋅R=(8+2)×6=60T \cdot R = (8 + 2) \times 6 = 60
  • Option C: x=7x = 7 bytes
    • Payload p=7−3=4p = 7 - 3 = 4 bytes
    • Number of packets N=24/4=6N = 24 / 4 = 6
    • T⋅R=(6+2)×7=56T \cdot R = (6 + 2) \times 7 = 56
  • Option D: x=9x = 9 bytes
    • Payload p=9−3=6p = 9 - 3 = 6 bytes
    • Number of packets N=24/6=4N = 24 / 6 = 4
    • T⋅R=(4+2)×9=54T \cdot R = (4 + 2) \times 9 = 54

Comparing the normalized times, the minimum time of 5454 is achieved when the packet size x=9x = 9 bytes.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Packet, Circuit and Virtual Circuit Switching questions