Computer Networks · TEE · mocks

Q4A · IPv6 and packet headers

TEE mock C · full paper

TEE · 100 attempted marks · solutions for every choice · current syllabus 702AI0C023

TEE practice mock · Q4A. Summarize the IPv6 address 0:15::1:12:1213 to its full, original form. Write a comparison between IPv4 and IPv6 packet headers. [10 mock marks]

Answer

Given

Given address: 0:15::1:12:1213.

To find

The full 128-bit address in eight-group hexadecimal notation.

Formula and why

\text{missing groups}=8-\text{visible groups}LaTeX: \text{missing groups}=8-\text{visible groups}

A written 0 is a visible group. :: represents only the omitted all-zero groups.

Step-by-step solution

Step 1. Count groups on both sides

Left: 0, 15 (2 group(s)). Right: 1, 12, 1213 (3 group(s)).

Step 2. Calculate omitted groups

Visible=2+3=5. Missing=8−5=3.

Step 3. Insert the groups

0:15:0:0:0:1:12:1213.

Step 4. Pad each group on the left

Group numberFour-digit group
10000
20015
30000
40000
50000
60001
70012
81213

Step 5. Write all eight in order

0000:0015:0000:0000:0000:0001:0012:1213.

Final answer: 0000:0015:0000:0000:0000:0001:0012:1213

Header comparison

FeatureIPv4IPv6
Address width32 bits128 bits
Base/header size20–60 bytes depending on options40-byte fixed base header
Length fieldTotal length includes IPv4 headerPayload Length excludes 40-byte base header
Lifetime fieldTTLHop Limit
Following protocolProtocol fieldNext Header; may identify an extension
Header checksumPresentNo base-header checksum
OptionsInside IPv4 headerTypically extension headers
Fragmentation fieldsIn IPv4 header; routers may fragment if permittedFragment extension header; fragmentation by source, not routers
Swipe across the diagram to read its labels ↔
IPv6 base header · each horizontal row is 32 bits wide
Diagram: IPv6 base header · each horizontal row is 32 bits wide. Labels: IPv6 base header · each horizontal row is 32 bits wide | IPv6 base header · each horizontal row is 32 bits wide | Version | 4 | Traffic Class | 8 | Flow Label · 20 | Payload Length · 16 | Next Header | 8 | Hop Limit | 8 | Source address · 128 bits (four rows) | Destination address · 128 bits (four rows)
Fixed IPv6 base header.

The supplied scheme’s sentence says four missing groups, but five groups are already visible, so only three are missing. Its printed eight-group expansion is consistent with three. The count shown above is independently verified.