Computer Networks · Fragmentation
Fragmentation Across Heterogeneous Networks (Ethernet vs Token Ring MTU)
Overview
Fragmentation is the process of breaking a large data frame into smaller pieces (fragments) so it can travel across a network whose maximum frame size is smaller than the original data.
It matters when two LANs of different technologies — such as Token Ring and Ethernet — must interoperate, because each technology imposes its own limit on how much data a frame can carry.
Key concepts
- Fragmentation: Breaking a large data frame into smaller pieces (fragments) so it can be carried across a network whose maximum frame size is smaller than the original data size.
- MTU (Maximum Transmission Unit): The maximum amount of data a frame can hold on a given network technology.
- Ethernet MTU: In standard Ethernet, the maximum frame data size must not exceed 1500 bytes.
- Token Ring frame size: The maximum data a station can send depends on the token holding time; it can be very large (assume greater than 1500 bytes).
- Interoperability: Two LANs of different topologies and different technologies (Token Ring and Ethernet) connected together must interoperate with one another.
- Layer of operation: Fragmentation, along with routing and logical addressing, is handled at the IP layer (Internet Protocol).
How it works
- Consider two LANs of different topologies and different technologies — one a Token Ring network and the other an Ethernet network — connected together.
- To connect two such LANs, they must interoperate with one another.
- On the Ethernet side, the maximum frame size in standard Ethernet must not exceed 1500 bytes; this is the maximum data a frame can hold.
- On the Token Ring side, the maximum data a station can send depends on the token holding time; depending on this time, the data size can be very large — assume the data size is greater than 1500 bytes.
- When that large data frame has to be sent to the other side (Ethernet), it cannot go as one whole frame, because Ethernet cannot carry more than 1500 bytes in a frame.
- Therefore the data must be fragmented (broken into smaller pieces) before it can be transmitted across the Ethernet network.
- Fragmentation is handled at the IP layer, along with routing and logical addressing; it is not a concern of congestion control.
Formulas
- (maximum data per standard Ethernet frame)
- (can be very large, assumed )
- (each fragment sent over Ethernet)
Worked examples
Token Ring → Ethernet example
- Source network: Token Ring, where a station can send data larger than 1500 bytes (size governed by token holding time).
- Destination network: Standard Ethernet, whose frame can hold at most 1500 bytes of data.
- Suppose the Token Ring station produces a data unit of size greater than 1500 bytes.
- This data unit cannot be sent as a single Ethernet frame (limit = 1500 bytes).
- Hence the data unit must be fragmented into multiple pieces, each of size bytes, before transmission over Ethernet.
Comparison
| Feature | Ethernet | Token Ring |
|---|---|---|
| Maximum frame data size | Fixed at 1500 bytes (standard Ethernet) | Depends on token holding time (can be very large) |
| Fragmentation need | Frames larger than 1500 bytes must be fragmented | Can carry large data in one frame |
Revision summary
- Fragmentation is needed when data from a network with a larger MTU must travel over a network with a smaller MTU.
- Standard Ethernet MTU = 1500 bytes (maximum data per frame).
- Token Ring frame size is not fixed — it depends on token holding time.
- Different LAN technologies (Token Ring, Ethernet) must interoperate, which is why fragmentation becomes necessary.
- Fragmentation is performed at the IP (network) layer, along with routing and logical addressing.
- Congestion control is not done at the network layer in IP; it is handled at the transport layer (TCP).
Previous-year exam insights
- IP fragmentation is done by the router/gateway at the boundary where the outgoing link MTU is smaller than the datagram; the fragments are reassembled only at the final destination host, not at intermediate routers.
- Each IP fragment carries the original Identification value, the More Fragments (MF) flag, and a Fragment Offset in units of 8 bytes; the payload of every non-last fragment must be a multiple of 8 bytes.
- The IPv4 header fields used for fragmentation are Identification (16 bits), Flags (DF, MF) and Fragment Offset (13 bits);
DF=1 forbids fragmentation (packet is dropped and ICMP 'fragmentation needed' is returned). - Maximum fragment payload = MTU − IP header length (20 bytes for a basic IPv4 header), so with a 1500-byte MTU the maximum data per fragment is 1480 bytes, not 1500.
- Number of fragments = ceil(data bytes to be carried / maximum fragment payload), where the data bytes exclude the original IP header and the maximum fragment payload is the largest multiple of 8 not exceeding (MTU − header length);
the last fragment carries the remainder and has MF=0. - Path MTU Discovery avoids fragmentation by having the source send DF=1 packets and adjust size on receiving ICMP 'Destination Unreachable – Fragmentation Needed' messages.