Network Design and Operations

In IPv4, a packet with a total length of 4000 bytes (a 20-byte header and 3980 bytes of data) is split up (fragmented) on a link with an MTU of 1500 bytes. The fragments also have 20-byte headers, and fragmentation is allowed. What is the value of the fragment offset field in the last fragment?

  1. A185
  2. B370
  3. C2960
Show answer and explanation

Answer: B. 370

Each fragment can hold MTU − header = 1500 − 20 = 1480 bytes of data, which is a multiple of 8 and can be used as it is. The 3980 bytes of data are split into three pieces of 1480, 1480 and 1020 bytes. The fragment offset gives the position in the original data in units of 8 bytes, so it is 1480 ÷ 8 = 185 for the second fragment and 2960 ÷ 8 = 370 for the third. The last fragment has a total length of 1040 bytes, and its MF flag is 0 to show that no more fragments follow. The destination puts fragments with the same identification in order of their offsets to reassemble the original packet.

  • A. This is the offset of the second fragment.
  • B. Correct. It starts at byte 2960 of the data, so 2960 ÷ 8 = 370.
  • C. This is the number of bytes from the start itself. The offset field counts in units of 8 bytes.
Practice this topic Back to topic

Related calculators

Books on Network Design and Operations Ad

As an Amazon Associate I earn from qualifying purchases.

More Network Design and Operations questions

  1. A host communicates with a distant web server through a site-to-site VPN tunnel. TCP connections can be established and small pages load, but large file downloads stall partway. The MTU inside the tunnel is 1400 bytes, and the server sends 1500-byte packets with fragmentation prohibited (the DF bit set to 1). The firewall in front of the server is also set to discard all ICMP. Which is the most likely cause?
  2. Which statement correctly describes DSCP in the IP header, used in QoS control?
  3. On a 70 Mbps outgoing link of a router, three queues are served by weighted round robin with weights 4:2:1. All three queues always have packets waiting, and all packets are the same size. Which is closest to the bandwidth available to the queue with weight 2?
  4. Using SNMP, a router interface's 64-bit counter of received bytes is read every 5 minutes (300 seconds). The previous reading was 1,200,000,000 and the current one is 4,950,000,000. Which is closest to the average receive rate over these 5 minutes?
  5. For the traffic passing through a router, you want to find out how many bytes are taken up by each combination of source and destination (addresses, port numbers and protocol), aggregated per stream of traffic. Which mechanism is the most appropriate to use?

Comparisons in this topic