Networking Layer Flashcards

1
Q

What is the size of the IPv4 header? Is it always the same size?

A

Fixed size 20 Bytes with optional, variable length for options.

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

What is an IPv4 header and for what is it used?

A

Describes a IPv4 packet and some important meta data.

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

Explain the concept of fragmentation of packets with the information of the IPv4 header.

A
  • DF: Dont’ Fragment bit
  • MF: More Fragments bit
  • Reserved bit
  • Fragment Identification
  • Fragment Offset
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What happens if the packet is too big but the header doesn’t allow fragmentation?

A

Drop the packet and send a error message with ICMP.

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

Why does the IPv4 packet rely on the ethernet frame in terms of MTU (Maximum Transmission Unit)?

A

Ethernet is on the lower level and sets the tone in terms of sending a packet over a line.

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

Describe the IPv4 Header and all its fields.

A

See book page 503

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

You have a network with subnetmask /24. You want to create 4 subnets. What is the subnetmask?

A

We want to have 4 subnets = 2^2. Subnetmask /26

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

ICMP - Destination Unreachable - Why are the first 64 Bits of the IP header enough to determine the connection?

A

Probably because of the identification of the IP packet through the fragment identification

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

What were the design targets of IPv6?

A
  • Bigger address space
  • Security in protocol (e.g. IPSec)
  • Extension Headers are useful
  • Reestablishing end-to-end connectivity
  • ARP is replaced by neighboor hood discovery protocol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How handles the IPv6 packet fragmentation?

A

By using the extended headers with the value 44 for fragmentation information

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

Describe the IPv6 header and all its fields.

A

See screenshot in folder 100_exam_papers

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

Why is there no more broadcast in Ipv6?

A

Broadcast make a lot of traffic. IPv6 replaces broadcasts with specific multicasts by device types (e.g. a group of routers).

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

What are the components of the IPv6 address? Describe them properly

A
  • 8x 16 bits fields, divided by :
  • Prefix: Provided by ISP, consists of n bits (common 64)
  • Subnet ID: Specific Location, specified by the provider, consists of 64 - n bits
  • Interface ID: Derived from Mac, consists of 64 bits
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How to convert a IPv4 address to be used dual stack in ipv6?

A

First 80 bits 0s, 16 Bits 0xFFFF, 32 Bits the IPv4 address

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

How to use an IPv6 address as Url with port nr?

A

https://[IPv6 address]:443

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

What is the problem with privacy and IPv6 and what are some possible fixes?

A

Interface ID 64 bit is derived from the mac address and therefore globally unique.
Fixes:
- DHCPv6: Random addresses generated (similar Ipv4)
- Privacy extension of IPv6

17
Q

What can you tell me about ICMPv6 in reference to ICMPv4?

A
  • ICMPv6 is mandatory for a correct functioning of IPv6

- ICMPv6 has more message types

18
Q

What is the Neighbourhood discovery protocol and what does it do?

A
  • Does use cases what multiple protocols did for IPv4 (ARP, ICMP, etc)
  • Find a neighbouring router
  • Find link-layer address of neighbouring device
  • Detect duplicate addresses (DAD)
  • Detect unreachability of address (NUD)
19
Q

Describe the sequence of a device that is freshly connected to an ipv6 network and needs an ip address. The ip addresses are autoconfigured with SLAAC.

A

Have a look at the SLAAC diagram.

20
Q

What is the goal of neighbour solicitation and advertisement?

A
  • Get link local address of neighbor
  • DAD (Duplicate Address Detection)
  • NUD (Neighbor Unreachable Detection)
21
Q

Client 1 wants to communicate with client 2. They never have communicated before. What is the sequence?

A
  1. ) Search in cache for link local address of PC 1
  2. ) Not there, send neighbor solicitation message to multicast of all nodes
  3. ) PC 1 sends neighbor advertisement with link local address in it back
  4. ) They can communicate with eachother
22
Q

What is the problem with ND? What is a solution to this?

A
  • If an attacker has control over the mapping of layer 2/3 he can start a spoofing attack. e.g. PC 1 searches for the router with IP xy and instead of the router PC 2 answers. That is then a man-in-the-middle.
  • SEND (Secure Neighbor Discovery) is a solution to this. Crypto approach, the router identifies with a certificate and the client can test it.
23
Q

Describe the sequence of creating a valid globally unique IPv6 address with SLAAC.

A
  1. ) New client creates a “tentative” address with link local + Interface ID
  2. ) Neighbor solicitation to multicast all nodes with target his tentative address
  3. ) If no response, it is unique in link local scope
  4. ) Router solicitation to multicast routers
  5. ) Router advertisement with prefix
  6. ) Create global address
  7. ) Again neighbor solicitation with global address. Response address is a multicast address
  8. ) If no response (DAD) then it is (almost) safe to use (No obligation to DAD)
24
Q

What are the two flags on the router advertisement and what do they stand for?

A
  • M: Managed Address Configuration Flag: if it is set, use DHCPv6 (stateful)
  • O: Other Configuration: If it is set, use DHCPv6 for more information but still SLAAC for address assignment.
25
Q

When to use DHCPv6 over SLAAC?

A

If more complex information needed use DHCPv6. SLAAC is only for address assignment