IPv4 Datagram Fragmentation and Delays (original) (raw)

Last Updated : 21 Aug, 2025

In IPv4, when a packet is larger than the Maximum Transmission Unit (MTU) of the network link then it is traversed and fragmented into smaller packets. Each of these fragments contains a portion of the original packet, along with additional information that identifies the fragment's position in the original packet and how it fits into the sequence of fragments.

**Need for IPv4 Datagram Fragmentation

Fragmentation

Fragmentation

**Mechanism of Packet Fragmentation

Each fragment is converted to a packet and the following changes happen in the datagram header:

ipv4

Format of fragments

**Example

For a data packet of 4000 bytes and MTU of 1500 bytes, we have actual data of 3980 bytes that is to be transmitted and 1480 bytes is the maximum data size that is permissible to be sent. So, there would be 3 fragments:

Data-Packets

Fragmentation example

For the first fragment, data size = 1480 bytes, offset = 0 and MF flag = 1
For the second fragment, data size = 1480 bytes, offset = 185(1480/ 8) and MF flag = 1
For the third fragment, data size = 1020 bytes, offset = 370 (2960/8) and MF flag = 0

An important point to be noted here is that all fragments would be having same identification number, thus indicating that all the fragments belong to the same parent data packet.

**Issues Due To Fragmentation

**To minimize these issues

It is generally recommended to avoid fragmentation whenever possible by ensuring that packets are appropriately sized for the network links they will traverse. This can be accomplished through the use of Path MTU Discovery, which allows devices to determine the maximum packet size that can be transmitted without fragmentation on a given network path.

Additionally, network administrators can implement Quality of Service (QoS) mechanisms to prioritize traffic and reduce delays caused by congestion.

IPv4 Datagram Delay

IPv4 Datagram Delay refers to the total time taken for a datagram to travel from the source to the destination in an IPv4 network. It includes processing, queuing, transmission, and propagation latencies, but does not account for packet loss or retransmissions.

**Processing Delay

**Processing delay is the time it takes for a router or switch to examine the packet’s header, check for bit level errors, and decide the next hop for the packet.

This occurs at each intermediate device in the network and is influenced by the device’s processing speed and the complexity of any routing or filtering algorithms in use.

It also doesn’t have any formula since it depends upon the speed of the processor and the speed of the processor varies from computer to computer.

**Queuing Delay

**Queuing delay refers to the time a packet spends waiting in a queue before it can be transmitted through the network. This delay occurs in buffers at routers or switches, especially when the device is handling multiple packets at once.

It varies depending on the current network traffic, the size of the queue, and the queuing algorithm used (such as First-In-First-Out or priority queuing).

Under high traffic conditions or congestion, queuing delay can increase significantly and introduce jitter in real-time applications like video conferencing or online gaming.

In general, we can’t calculate queueing delay because we don’t have any formula for that. This delay depends upon the following factors:

**Transmission Delay

**Transmission delay is the time needed to push all the bits of a packet onto the communication link. It depends on the size of the packet (measured in bits) and the bandwidth of the link (measured in bits per second). The formula to calculate transmission delay is the number of bits divided by the transmission rate.

**Formula: Td = L / B , where **L = Number of bits, **B = Transmission rate.

L = 1Mb = 106 bits , B = 10 Mbps = 10 x 106 bits per second
Td = L/B = 106 bits / 10 x 106 bits per second
Td = 0.1 sec

This delay depends upon the following factors:

**Propagation Delay

**Propagation delay is the time it takes for a signal to physically travel from the sender to the receiver. It depends on the distance between the two devices and the propagation speed of the medium (such as copper cable, fiber optics, or wireless).

The delay is calculated by dividing the distance by the propagation speed, which is generally close to the speed of light but slower depending on the medium.

Pd = Distance / Velocity
Velocity =3 X 108 m/s (for air)
Velocity= 2.1 X 108 m/s (for optical fibre)

Propagation delay becomes particularly noticeable in long-distance links like undersea cables or satellite communications, even when high-speed links are used.

Read more about Delays in Computer Network

**There are several other delays which may occur are :

Terms related to above

Below questions have been asked in previous GATE exam on above topics.