Computer Networks · TEE · practice
Optional fragmentation · example 3
IP packet details · supporting practice · optional practice
Optional extension · no matching calculation in the two supplied papers
Optional worked extension. This calculation format was not found in the supplied December 2025 final or February 2026 re-exam. The numbers and practice marks are authored. Study the core concept and actual-paper questions first; this is extra explanation, not a TEE prediction.
Practice question. An unfragmented IPv4 packet is 1500 bytes including a 20-byte header. It crosses a link of MTU 600 bytes. DF=0 and every fragment repeats the same header. Find each fragment’s payload length, total length, offset and MF flag. [3 practice marks]
Answer
Given
Total=1500; H=20; MTU=600 bytes; DF=0.
To find
All fragments and their header-related values.
Formula and why
P=T-HP_{\max}=8\left\lfloor\frac{\mathrm{MTU}-H}{8}\right\rfloor\mathrm{offset}=\mathrm{preceding\ payload\ bytes}/8Subtract the header before splitting the original payload. Round non-final fragment payload capacity down to a multiple of eight.
Step-by-step solution
Step 1. Original payload
1500−20=1480 bytes.
Step 2. Non-final payload capacity
MTU−H=600−20=580. Floor((580)/8)×8=576 bytes.
Step 3. Allocate each fragment
| Fragment | Payload bytes | Total bytes | Starting byte | Offset /8 | MF |
|---|---|---|---|---|---|
| 1 | 576 | 596 | 0 | 0 | 1 |
| 2 | 576 | 596 | 576 | 72 | 1 |
| 3 | 328 | 348 | 1152 | 144 | 0 |
Step 4. Verify no payload is lost
576+576+328=1480 bytes. Every total length is at most 600.
Final answer: 3 fragments; lengths, offsets and MF are listed in the table.