Skip to content
Official PYQ · 2024

GATE CS 2024 Set 1 Q55 — Fragmentation and IP Addressing, IPv4, CIDR

Explain with AI
Consider sending an IP\text{IP} datagram of size 14201420 bytes (including 2020 bytes of IP\text{IP} header) from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an MTU\text{MTU} (Maximum Transmission Unit) size of 542542 bytes, while the second link (router to receiver) has an MTU\text{MTU} size of 360360 bytes. The number of fragments that would be delivered at the receiver is ____________.
View worked solution

Answer: 6

To find the number of fragments delivered at the receiver, we trace the fragmentation process across both links. Each fragment must include a 2020-byte IP header, and its payload size (except for the last fragment) must be a multiple of 88 bytes.

Step 1: First Link (Sender to Router)

  • Original Datagram: Total size = 14201420 bytes, Payload = 14001400 bytes.
  • MTU = 542542 bytes   ⟹  \implies Maximum payload size = 542−20=522542 - 20 = 522 bytes.
  • The largest multiple of 88 less than or equal to 522522 is 520520 bytes.
  • The 14001400 bytes of payload is fragmented into:
    • Fragment 1: Payload = 520520 bytes (Total size = 540540 bytes)
    • Fragment 2: Payload = 520520 bytes (Total size = 540540 bytes)
    • Fragment 3: Payload = 1400−520−520=3601400 - 520 - 520 = 360 bytes (Total size = 380380 bytes)

Step 2: Second Link (Router to Receiver)

  • MTU = 360360 bytes   ⟹  \implies Maximum payload size = 360−20=340360 - 20 = 340 bytes.
  • The largest multiple of 88 less than or equal to 340340 is 336336 bytes.
  • The router fragments each of the incoming fragments:
    • Fragment 1 (520520 bytes payload): Split into 336336 bytes and 184184 bytes (22 fragments).
    • Fragment 2 (520520 bytes payload): Split into 336336 bytes and 184184 bytes (22 fragments).
    • Fragment 3 (360360 bytes payload): Split into 336336 bytes and 2424 bytes (22 fragments).

Thus, the total number of fragments delivered at the receiver is 2+2+2=62 + 2 + 2 = 6.

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

Published
Report a correction
Keep exploringMore Fragmentation and IP Addressing, IPv4, CIDR questions