IP Flashcards

1
Q

How large are IPv4 addresses?

A

32 bits

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

What does IP offer no guarantee of?

A

Packets reaching their destination
Packets arriving in the correct order
Packets arriving undamaged

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

Why were IPv4 addresses made so small?

A

No one anticipated a network of more than a billion machines.
Computers at the time worked in 32 bits

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

What is the format of an IPv4 address?

A

The left most part identifies the network and the right most part identifies the host.

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

What is a class A IPv4 address?

A

If the first bit of the address is a 0, it is a class A address. The next 7 bits identify the network, this gives 127 class A addresses.

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

What is a class B IPv4 address?

A

If the first bits of the address is 10, it is a class A address. The next 16 bits identify the network.

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

Why are so many IPv4 addresses wasted?

A

Nobody needs a class A size network. Most early internet networks allocated a class way too large for them, and more could be requested.

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

What is subnetting?

A

Large class networks can be broken down internally and treated as many smaller networks. Class B networks can be treated as 256 Class C networks.

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

How large are IPv6 addresses?

A

128 bits

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

How many bits are reserved for the local network in IPv6?

A

64

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

What is a netmask?

A

Denoted as /N after an IP address. You logical-AND the IP address with N 1s to get the network address.

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

What is TTL on an IP packet?

A

Time To Live
Counter that is decremented every time the packet is processed or when the packet is held onto for more than a second
When it hits zero packet is discarded and an error is generated.
Prevents packets endlessly circulating

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

How big is a MAC address and what is it made up of?

A

48 bits. 3 bytes for the manufacturer and 3 bytes for the device.

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

What sort of systems need statically assigned IP numbers?

A

Routers and infrastructure devices that need to be up in the very early stages after a power failure

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

How does Dynamic Host Configuration Protocol work?

A

Client broadcasts a request for an IP number, including its MAC address or some other identifier (DHCPDISCOVER)
Server(s) reserve an available IP number, and broadcast an offer of it with a lease time (how long IP number is valid for)(DHCPOFFER)
Client chooses from offers, and broadcasts a reply containing chosen IP number (DHCPREQUEST)
Server that offered the IP number finishes reserving it and acknowledges (DHCPACK); other servers see that their offer has been declined and unreserve their offer

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

In DHCP how can a client renew their lease on an IP address?

A

By sending a request directly to the server they are leasing the IP address from.

17
Q

How does DHCP relaying work?

A

Relay agent embedded into the network, usually in the router. When relay agent hears a broadcast packets. it sends it on to a specific DHCP server after filling in its own address. Server sends responses back to the relay which broadcasts them over the local network.

18
Q

What is Stateless Address Auto Configuration?

A

Routers broadcast router advertisement packets
From these, a device can deduce the /64 that identifies the network
They then put their 48 bit MAC address, plus some other stuff, into the address and use it