Computer Networks · TEE · practice

IPv6 packet length · example 2

IPv6: addresses and packet format · 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 IPv6 packet has a 40-byte base header, 24 bytes of extension headers and 1200 bytes of upper-layer content. Find its Payload Length field value and total packet length. [3 practice marks]

Answer

Given

Base=40 bytes; extensions=24 bytes; upper-layer content=1200 bytes. Ordinary non-jumbo packet.

To find

Payload Length and total bytes.

Formula and why

P=E+D,\qquad T=40+PLaTeX: P=E+D,\qquad T=40+P

Payload begins immediately after the IPv6 base header. Extensions are part of that payload.

Step-by-step solution

Step 1. Calculate payload

P=24+1200=1224 bytes.

Step 2. Add the base header

T=40+1224=1264 bytes.

Step 3. Identify the stored field

The Payload Length field stores 1224, not 1264.

Final answer: Payload Length=1224; total=1264 bytes.