📝 Routing and forwarding differences (12 MCQs)
Path Selection Versus Packet Movement
Routing and forwarding are related but distinct network-layer functions. Routing determines suitable paths through an internetwork and builds or updates routing information. Forwarding is the local action of moving each arriving packet from an input interface to the selected output interface. A router uses the results of routing when it performs packet-by-packet forwarding. Network-layer decisions remain independent of the particular cable or wireless link carrying each packet.
Routing Tables and Forwarding Information
A routing table can contain destination prefixes, next-hop addresses, outgoing interfaces, and route metrics. A router learns routes through connected networks, configured static routes, or routing protocols. The forwarding process consults an optimized forwarding table, often using the most specific matching destination prefix, to choose the packet's next hop. Every device must interpret the relevant fields consistently to preserve correct packet delivery.
How a Router Uses a Selected Route
When a packet arrives, the router validates relevant header information, reduces the IPv4 TTL, and looks up the destination address. It selects the best matching route, resolves the next-hop link address when necessary, updates the link-layer encapsulation, and sends the packet through the chosen interface. Routing protocols operate separately to maintain path knowledge.
Selecting a Route for a Destination Prefix
Assume a router has routes for 10.0.0.0/8 through interface A and 10.2.0.0/16 through interface B. A packet destined for 10.2.5.7 matches both entries, but the /16 route is more specific. Forwarding therefore uses interface B, while the routing process determines which routes are available. Following the same steps with different addresses or rates produces a different forwarding result.
Control Plane and Data Plane Roles
Routing protocols and route computation belong to the control plane, which establishes reachability information. The data plane performs forwarding at packet speed using the resulting entries. A failure can affect one independently: a routing update may change the chosen next hop, while the forwarding hardware continues applying the current table to each arriving packet.
Common Confusion Between Routing and Forwarding
'Routing and forwarding mean exactly the same thing' is incorrect because one selects paths and the other moves packets. 'Forwarding always chooses the route with the lowest delay' is incorrect because selection follows configured metrics and policy. 'Every router learns routes only from RIP or OSPF' is incorrect because static routes and other protocols are possible.
Comparing Routing and Forwarding in Questions
For scenarios, identify whether an action calculates reachability or transfers a packet. Interpret routing-table prefixes, metrics, next hops, and interfaces, then trace a forwarding lookup. Explain how dynamic routing changes table contents, why longest-prefix matching matters, and why a forwarding decision is local even when the route spans many routers.
Routing and Forwarding Terminology
- Routing - selects paths to networks
- Forwarding - moves packets between interfaces
- Routing table - stores destination routes
- Next hop - next router along route
- Metric - compares candidate routes
- Data plane - performs packet forwarding
📝 All Routing and forwarding differences MCQs
Q1. Which statement best defines a transparent switch in Ethernet networks?
📖 Explanation: A transparent switch operates at layer 2, learning source MAC addresses from incoming frames and building its forwarding table automatically. Because it does not require any configuration on attached stations, the stations remain unaware of the switch’s existence. Option B captures this behavior accurately.
Q2. A frame arrives at Switch 496 on port 2 with destination MAC address 71:2B:13:45:61:42, which is not present in the switch’s MAC table. What will the switch do next?
📖 Explanation: Since the destination MAC is unknown, the switch cannot determine a specific egress port. According to standard switching behavior, it floods the frame out every port except the one on which it was received, ensuring the destination can receive the frame if reachable.
Q3. How does a transparent switch differ from a source‑routing bridge in terms of MAC address handling?
📖 Explanation: Transparent switches build their forwarding tables by observing source MAC addresses in incoming frames, requiring no manual configuration. In contrast, source‑routing bridges rely on pre‑defined routing information and do not learn MAC addresses on the fly, making option A the correct distinction.
Q4. When a router receives a packet whose destination IP belongs to a directly connected network, how does the forwarding process interact with the switch’s MAC learning mechanism?
📖 Explanation: The router must resolve the destination IP to a MAC address via ARP. Once the MAC is known, the frame is sent to the switch, which learns the MAC‑to‑port mapping. Subsequent frames use this entry, making option C the accurate description.
Q5. If a switch’s forwarding table contains an entry mapping MAC 64:2B:13:45:61:13 to port 3, what will happen to a frame destined for that MAC arriving on port 2?
📖 Explanation: Because the destination MAC is already associated with port 3, the switch will forward the frame directly to that port, bypassing any flooding. This deterministic forwarding is the core function of a learned MAC entry, so option B is correct.
Q6. A network engineer adds a new transparent switch between two existing switches. Which statement best predicts the impact on the overall forwarding tables after traffic stabilizes?
📖 Explanation: When the new switch is introduced, each device will begin learning MAC addresses from the traffic that traverses it. Over time, all switches acquire the necessary entries, and the network converges without lasting loops. Option D correctly describes this learning process.
Q7. In IPv4 networks, what role does ARP play in conjunction with layer‑2 forwarding performed by a transparent switch?
📖 Explanation: ARP translates a target IP address into its corresponding MAC address. Once the MAC is known, the transparent switch can learn the MAC‑to‑port association and forward frames accordingly. This cooperative function is captured by option A.
Q8. Given the following MAC table entries for Switch 496: 71:2B:13:45:61:41 → port 1, 64:2B:13:45:61:12 → port 2, and 64:2B:13:45:61:13 → port 3, which port will a frame destined for 64:2B:13:45:61:12 be sent out?
📖 Explanation: The destination MAC matches the entry that maps to port 2, so the switch forwards the frame solely on that port, avoiding unnecessary flooding. This precise unicast forwarding aligns with option B.
Q9. What is the primary difference between static and dynamic forwarding entries in a switch’s MAC table?
📖 Explanation: Static MAC entries are manually entered and remain in the table indefinitely unless removed, providing predictable forwarding. Dynamic entries are learned from traffic and expire after a timeout if not refreshed. This distinction is accurately described in option C.
Q10. How does VLAN tagging affect the operation of a transparent switch that is not VLAN‑aware?
📖 Explanation: A non‑VLAN‑aware transparent switch does not interpret the 802.1Q tag; it treats the frame as a regular Ethernet frame and forwards it based on the MAC address alone. Consequently, frames from different VLANs may be forwarded across the same physical link, which is described in option A.
Q11. Suppose Switch 496 has learned the following entries: 71:2B:13:45:61:41 → port 1, 71:2B:13:45:61:42 → port 2, 64:2B:13:45:61:13 → port 3. A frame arrives on port 4 destined for 71:2B:13:45:61:43, which is unknown. Which ports will the switch forward the frame to?
📖 Explanation: Because the destination MAC is absent from the table, the switch must flood the frame to every port except the one on which it was received (port 4). This ensures the unknown destination can receive the frame if reachable, making option D correct.
Q12. When multiple transparent switches are interconnected forming a loop‑free topology, how does the Spanning Tree Protocol (STP) complement the MAC learning process to prevent broadcast storms?
📖 Explanation: STP computes a spanning tree and blocks any redundant links, ensuring there is only one active path for broadcast traffic. Meanwhile, MAC learning continues to provide efficient unicast forwarding. This combined operation prevents broadcast storms, as described in option B.