# Optional fragmentation · example 1

Subject: Computer Networks

Exam: TEE

Reader: https://deep-learning-study-room.vercel.app/cn/#tee/practice/packet-support/fragment-1

Canonical: https://deep-learning-study-room.vercel.app/read/cn/tee/practice/packet-support--fragment-1/

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 4000 bytes including a 20-byte header. It crosses a link of MTU 1500 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=4000; H=20; MTU=1500 bytes; DF=0.

## To find

All fragments and their header-related values.

## Formula and why



$$
P=T-H
$$





$$
P_{\max}=8\left\lfloor\frac{\mathrm{MTU}-H}{8}\right\rfloor
$$





$$
\mathrm{offset}=\mathrm{preceding\ payload\ bytes}/8
$$



Subtract 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

4000−20=3980 bytes.

#### Step 2. Non-final payload capacity

MTU−H=1500−20=1480. Floor((1480)/8)×8=1480 bytes.

#### Step 3. Allocate each fragment

| Fragment | Payload bytes | Total bytes | Starting byte | Offset /8 | MF |
| --- | --- | --- | --- | --- | --- |
| 1 | 1480 | 1500 | 0 | 0 | 1 |
| 2 | 1480 | 1500 | 1480 | 185 | 1 |
| 3 | 1020 | 1040 | 2960 | 370 | 0 |

#### Step 4. Verify no payload is lost

1480+1480+1020=3980 bytes. Every total length is at most 1500.

**Final answer:** 3 fragments; lengths, offsets and MF are listed in the table.

#### What this result means

Only payload positions determine offsets; repeating a header does not move the offset of later original data.
