Routing Interview Questions and Labs
# CHAPTER 19
Routing Interview Questions and Labs
1. Introduction
Whether you are pursuing a role as a Junior Network Admin, a Cloud Architect, or preparing for the CCNA certification, your mastery of routing will be heavily scrutinized. Interviewers do not just want you to define acronyms; they want you to prove your deductive reasoning. They will hand you a whiteboard, draw a broken network, and ask you to fix it. In this chapter, we have distilled the most rigorous, high-impact routing interview questions and practical troubleshooting labs. We will test your knowledge of packet flow, dynamic protocol logic, and command-line diagnostics.2. Learning Objectives
By the end of this chapter, you will be able to:- Confidently articulate the step-by-step encapsulation and routing of a packet.
- Answer advanced behavioral and technical questions on OSPF and BGP.
- Troubleshoot common static and dynamic routing failures (Routing Loops, Asymmetric Routing).
- Explain the logic behind Administrative Distance and Metric tie-breakers.
- Demonstrate a structured troubleshooting methodology.
3. Core Architectural Interview Questions
Q1: "Walk me through the exact step-by-step process of what happens to an IP Packet and an Ethernet Frame as it travels from PC1, through Router A, to PC2." *How to answer (The Gold Standard):*
- 1. PC1 creates the IP Packet (Source IP: PC1, Dest IP: PC2).
- 2. PC1 checks its subnet mask. It realizes PC2 is on a different network.
- 3. PC1 encapsulates the IP packet into an Ethernet Frame. (Source MAC: PC1, Dest MAC: Router A's local interface).
- 4. Router A receives the frame. It strips off the Ethernet Frame (De-encapsulation) and examines the Destination IP.
- 5. Router A checks its Routing Table for the Longest Prefix Match to PC2.
- 6. Router A finds the exit interface. It re-encapsulates the IP packet into a *brand new* Ethernet Frame. (Source MAC: Router A's exit interface, Dest MAC: PC2).
- 7. *Crucial Point:* The Source/Dest IP Addresses never changed. The Source/Dest MAC Addresses changed at every hop!
Q2: "Explain the difference between Administrative Distance (AD) and a Routing Metric." *How to answer:* Administrative Distance is a measure of *trustworthiness* used to choose between two completely different routing protocols (e.g., Static Route [AD 1] vs. OSPF [AD 110]). The router always chooses the lower AD. A Metric (like Bandwidth or Hop Count) is a measure of *cost* used to choose between two different paths generated by the *same* protocol. The router evaluates AD first; if AD is tied, it evaluates the Metric.
4. Protocol Specific Questions (OSPF & BGP)
Q3: "Why does OSPF require a hierarchical design using Area 0?" *How to answer:* OSPF is a Link-State protocol. Every router maintains a complete mathematical map of the area. If a single cable breaks, every router must run the CPU-intensive SPF algorithm to recalculate the map. If an enterprise has 5,000 routers in a single area, one flapping cable will melt the CPUs of all 5,000 routers. By compartmentalizing the network into Areas connected to a central Area 0 backbone, topological changes are hidden; a cable break in Area 1 does not force Area 2 to recalculate.
Q4: "BGP is significantly slower to converge than OSPF. Why do we use it to run the internet?" *How to answer:* OSPF selects paths based purely on bandwidth math. It cannot implement complex business policies. The internet is run by competing telecom corporations. BGP (a Path Vector protocol) allows ISPs to enforce financial agreements (Transit vs Peering) via Policy-Based Routing, intentionally avoiding specific autonomous systems regardless of physical bandwidth. OSPF cannot scale to handle the 900,000+ routes of the global internet table, nor can it enforce political boundaries.
5. Scenario-Based Troubleshooting Labs
Scenario 1: The One-Way Ping *The Setup:* Server A (Subnet A) pings Server B (Subnet B). A firewall sits between them. The ping reaches Server B, but Server A never gets the reply. *The Interview Question:* Provide three distinct networking reasons why this is happening. *The Answer:*
- 1. Missing Return Route: Server B's local router does not have a route in its table for Subnet A, so it drops the reply.
- 2. Asymmetric Routing: The ping arrived via Router 1, but Server B's default gateway sent the reply back via Router 2. The firewall on Router 2 never saw the original request, so it dropped the reply as malicious.
- 3. Local OS Firewall: Server B successfully received the ping, but its internal Windows Firewall is configured to block all ICMP traffic, so it silently refused to reply.
Scenario 2: The Stale Route *The Setup:* You disconnect a remote office router. A week later, you look at the core router's routing table, and the route to the remote office is still there. *The Interview Question:* What type of routing is the core router using? *The Answer:* The core router is using Static Routing. Dynamic protocols (like OSPF or RIP) would have stopped receiving "Hello" packets and instantly deleted the route from the table (Convergence). A static route is manually typed by a human; it will remain in the table permanently until a human manually deletes it, regardless of the physical cable status.
6. Command-Line Diagnostics
Q5: "If a user can browse to google.com using its IP address (8.8.8.8), but cannot browse using the domain name, is this a routing issue?"
*How to answer:* Absolutely not. If a packet successfully reaches 8.8.8.8, Layer 3 routing is functioning perfectly. The routing table, default gateway, and internet connection are all verified. The issue is strictly a Layer 7 DNS failure.
7. Preparing for the Interview
When answering routing questions:- Draw it out: If you are in a technical interview, ask for a whiteboard. Drawing the routers and packets demonstrates clarity of thought.
- Never guess: If presented with a complex loop scenario, walk the packet hop-by-hop out loud. Identify the Source IP, Destination IP, and the Router's table lookup at every step.