8. IP Routing Flashcards
How does NAT mitigate the exhaustion of IPv4 addresses?
NAT translates public IP addresses into private ones which don’t appear on the public internet. The NAT router will change incoming destinations and outgoing message’s sources using it’s translation table.
What is the purpose of a routing table?
Routing tables are used to select a nex-hop router as the next destination for a datagram. When several destinations are matching, the route with the longest subnet mask is chosen, because it is more specific.
What is OSPF?
Open shortest path first. Each node has a set of link state packets, one for each interface. Intially a router knows what it is directly connected to, but nothing else. A router sends it’s link state packets to all other routers, and receives theirs. A forwarding table is constructed for the network area.
What are the 4 steps in OSPFs use of Dijkstra’s shortest route?
- Initialise confirmed list with self entry.
- Select the node just added to the c-list, call it next and examine it’s link state packet.
- for each neighbour of next, calculate cost from next to neighbour
a) if neighbour is not on c-list or t-list add (neighbour, cost, next-hop) to t-list
b) if neighbour is on t-list, and cost is less than the currently listed cost for neighbour, then replace the current entry with (neighbour, cost, next-hop) - if the t-list is empty, stop. otherwise pick lowest cost entry from t-list, move it to c-list, and go to step 2.
What 3 things have prolonged the life of IPv4?
- Classless Internet Domain Routing (CIDR)
- Some class A addresses were returned to IANA
- Network Address Translation (NAT)
Why is NAT considered to be a “hack”?
- routers should only process up to layer 3
- violates the end-to-end argument
- problem should be solved by moving to IPv6, not keeping IPv4 alive
How does a client connect to a server with a local ip address that is behind a NAT router?
The NAT router forwards connections to the server if the connection is at a given port.
How can 2 NATed nodes call each other?
Using a relay, which bridges packets between the two nodes.
What is ICMP?
Internet Control Message Protocol. Sends error and control messages, as a mandatory part of IP. e.g. time exceeded on datagram, notifies sender of TTL expiry