SLIDE 3 Routing Table Example
subnet next hop L2 if 223.1.1.0/24 223.1.9.2 3 233.1.2.0/24
1 223.1.3.0/24 223.1.8.0 2 223.1.7.0/24 223.1.8.0 2 223.1.8.0/24
2 223.1.9.0/24
3 prefix Routing Table at router R2 (simplified)
* this subnet is directly connected to the router. 1 2 3
Forwarding Policy
- check if destination address matches the prefix of the
incoming network interface:
- if it does: pass packet to transport layer (node is destination)
- else drop packet (the destination is on same network, no
forwarding required)
- else, choose longest matching prefix in routing table.
- forward packet based on next hop information.
Default Router
- Entry in the routing table of a host or router,
specifying to which router a message that does not match any prefix should be forwarded to.
- Usually a gateway to other networks, e.g., the Internet.
Address Resolution Protocol (ARP)
- Translation between network-layer addresses and link-
layer addresses.
130.238.8.100 > 49-BD-D2-C7-56-2A
- Resolution on same local link only (not-end-to end):
“who has 130.238.8.100, tell 130.238.8.123” “reply 130.238.8.100 is at 49-BD-D2-C7-56-2A”
- Resolution at every router!
- Cache to avoid ARP request for every single packet
(expires after ca. 20 minutes)