Professional Documents
Culture Documents
● Routing is a process that determines the best path for traffic to take from one network to
Another
● Default gateways are used on nodes to offer a destination for unknown packets
○ Without default gateways each node would need to know the destination for
everything
● Routers work by reading the destination IP address of a packet and referencing the routing
table, sending the packet to the destination interface.
● Steps
1. PC puts source and destination IP into packet header
2. PC looks in ARP cache for MAC of L2 destination
3. PC does an ARP request if not there
4. PC puts source and destination MAC into frame header
5. PC sends to router
6. Router reads destination MAC, matches it to the interface
7. Router reads destination IP address
8. Router looks in route table for a match
9. Router checks ARP cache for MAC of next hop destination
10. Router performs an ARP request if not in ARP cache
11. Router rebuilds frame header
12. Router sends to next hop
● Two paths to same network can be load balanced if cost is the same
● Multiple dynamic routing protocols can be configured and in use, different protocols have
different Administrative Distances (AD), lower is better
○ Directly connected is 0
○ Static route is 1
○ EIGRP is 90
○ OSPF is 110
○ RIP is 120
● Kinds of routes
❏ Ultimate route - Contains a next-hop IP or exit interface
❏ Level 1 route - Equal or less than the classful mask of the network
❏ Level 1 parent route - Subnetted level 1 route, heading entry for smaller subnets
❏ Level 2 child routes - Subnet of a classful network address
● When searching for a route, matches from top down and stops at the first match
❏ If it matches a level 1 ultimate route, traffic is forwarded
❏ If it matches a level 1 parent route, it searches the level 2 child routes and traffic
❏ is forwarded on a subsequent match
❏ If it matches a level 1 parent route but not a level 2 child route, traffic is dropped
❏ If it matches nothing in the route table, traffic is dropped