Network Layer ll Flashcards

1
Q

Key fields in an IPv4 header

A
  • Version (4-bit): IPv4/6
  • Header Length: Typically 20 bytes (no options)
  • TTL (8-bit): Prevents infinite loops; decremented by routers
  • Protocol (8-bit): Identifies transport layer protocol
  • Source/Dest IP (32-bit): Logical addresses
  • Fragmentation Fields (ID, Flags, Offset): For packet splitting/reassembly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How is the header checksum used?

A

Detects bit errors in the header; recomputed at each router

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Why does IPv4 fragment datagrams?

A

Links have different MTUs. Fragments share the same ID but have unique offsets

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How is the offset calculated?

A

Offset = (Previous Fragment’s Data Length) / 8

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is CIDR notation?

A

/24 means the first 24 bits are the network prefix; remaining 8 bits (/32) for hosts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How are interfaces addressed?

A

Each interface has a unique IP. Subnets group interfaces

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What are private IP ranges?

A

10.0.0.0/8
172.16.0.0/12
192.168.0.0/16 (non-routable on public internet)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Why was IPv6 introduced?

A

IPv4 address exhaustion. IPv6 uses 128-bit addresses (vs 32-bit)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Key IPv6 improvements

A
  • Fixed 40-byte header: Faster processing (no checksum, optional fields)
  • Is smarter with new address types: Unicast, multicast, anycast (deliver to nearest in group)
  • No fragmentation: Handled by endpoints, not routers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

IPv4 vs IPv6

A

Address Size- IPv4: 32-bit, IPv6: 128-bit
Header- IPv4: Variable 20+ bytes, IPv6: Fixed 40 bytes
Fragmentation- IPv4: Routers fragment, IPv6: Senders only
Checksum- IPv4: Header checksum, IPv6: No checksum (rely on upper layers)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly