N10. Addressing Flashcards

1
Q

Describe the hierarchy of global address allocation

A

Regional Internet Registry (RIR)
National Internet Registry (NIR)
Local Internet Registry (LIR)

Global registries delegate prefixes to RIRs.
RIRs delegate prefixes to LIRs.
LIRs delegate prefixes to ISPs
(ISPs allocate addresses to users)

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

What is DHCP?

A

Dynamic Host Configuration Protocol
Automatically assigned address ‘leasing’ from a pool of addresses
Global or private address pool
Uses LAN broadcast

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

How would a client request an address from DHCP?

A
  1. discover DHCP servers and find an address
  2. some DHCP server will send back an offer request with address and lease time
  3. client sends request for which offer to accept and server sends “ack”
  4. if client no longer needs address it can release it back to server
  5. if client does not release address, it expires after lease time anyway
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is routing (performed by an IP router)?

A
  • process of discovering paths through the network
  • requires a routing protocol
  • metric value (cost) is assigned to each route
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is forwarding (performed by an IP router)?

A
  • process of transmitting packets using discovered routing information
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is forwarding (performed by an IP host)?

A
  • discovering locally available route(s) for destinations

- making local forwarding decisions

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

How does an IP router use routing and forwarding to transmit packets to the correct destinations?

A

Routing protocol finds paths to destinations
- destination is another network
- discovery messages: discover hops along path
- Router typically has multiple interfaces
- Destination is reachable on a particular interface
Router constructs a forwarding table:
- for given destination, based on routing protocol info, select which is best interface to transmit packet
(similar process for forwarding on a host)

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

How does the IP router choose the best route for forwarding?

A

Longest prefix match
- apply network mask of routing entry to destination address in packet
- the longest mask that produces a match between the local forwarding entry and destination address is used.
(if no prefix matches use default route 0.0.0.0)
i.e try 24 bit mask, then 20, then 16 etc for sizes of mask available

Note: lower metric value is better than higher if there are two possible routes

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

What does NAT stand for?

A

Network Address Translation

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

What are the problems with using NAT?

A

Loose end-to-end model
- IP addresses different at end point of connections and flows
- some applications may need special handling if they rely on addresses for configuration
NAT makes end-to-end security harder
Other problems e.g. single point of failure - if NAT breaks, need a router that knows about NAT config to replace it
Becomes difficult to have a mix of NAT addresses and global addresses if some clients need access to the internet

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

What is the difference between a routing table and a forwarding table?

A

Routing table - entries for all possible routes

Forwarding table - reduced subset of routing tables (picks a route and gives info about forwarding for that route)

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