Chapter 14: Routing Concepts Flashcards
Primary functions of a router
Determine best path to forward packets based on info in routing table, forward packets toward their destination and connect multiple networks
Best path in routing table is also known as
The longest match
What is the longest match
The route in the routing table that has the greatest number of far-left matching bits with the dst IP address of the packet. Greatest number of far-left matches = preferred route
How does router learn about remote networks?
- Static Routes - added to routing table when a route is manually configured
- Dynamic routing protocols - added when routing protocols dynamically learn about the remote network; includes EIGRP and OSPF
What’s default route and its IPv4 and IPv6 add?
specifies next-hop router to use when routing table doesn’t contain specific route that matches the dst IP add. IPv4 route entry of 0.0.0.0/0 and IPv6 route entry of ::/0
What is used to determine the minimum number of far-left bits that must match btwn the IP add of the packet and the dst network (prefix) for a route to be used?
prefix length of the dst network in the routing table entry
What happens to a packet when there are no matching route entry in the routing table and no default route?
Packet is dropped
What happens after router determines the best path to forward packet?
Router now must determine how to encapsulate the packet in appropriate data link frame type and forward it out the correct egress interface
How are packets with dst IP on Directly Connected Network encapsulated?
With Ethernet Frame. Router needs to determine the dst MAC address associated with dst IP add of the packet.
Where is the next-hop router address found?
Route Entry
What type of dst address is used when forwarding packets over serial connection? why?
Layer 2 broadcast dst add. Because Serial Connections don’t have MAC addresses.
Three packet forwarding mechanisms supported by routers
Process switching.
Fast switching.
Cisco Express Forwarding (CEF).
Process switching
Every packet that arrives on an interface is forwarded to the control plane where the CPU matches the dst add with an entry in its routing table. Older mechanism.
Fast switching
Similar to process switching. Except includes fast-switching cache where next-hop info is stored. So only the first packet of a flow is sent to control plane and added. The next packets of that flow are quickly processed based on the info in cache.
Cisco Express Forwarding (CEF)
Default Cisco IOS packet-forwarding mechanism.
Forwarding Information Base (FIB) and adjacency table are built after the network has converged. Packets are processed quickly in the data plane.
If a router needs to send an ARP Request for the IPv4 address in one of its route entries, this means the packet will be forwarded:
to a next-hop router