TechKnowSurge
Cisco CCNA 3.2 Cisco CCST Networking 4.4 CompTIA Network+ 2.1 Cisco CCNA 1.6 Cisco CCST Networking 2.2 Cisco CCNA 3.1 Cisco CCNA 3.3
InteractiveNetworkFree

Routing Table Decision Game

Thirty routing tables and thirty destination IP addresses — twelve drawn at random each play. One question every time: which entry wins under longest prefix match?

Complete this interactive to capture a CTF flag worth 5 points.

About this interactive

Longest prefix match is the single rule that decides where every packet on the internet goes, and it is also the rule students most often think they understand after one pass. The lesson version is easy to nod along to: the most specific route wins. The exam version is not, because it requires two separate skills at once — deciding which entries actually contain the destination address, which is subnet arithmetic, and then ranking the ones that do by prefix length, which is the rule itself. A student who can recite the rule and cannot do the arithmetic will confidently pick a /24 that does not contain the address over a /16 that does. This set exists to force both halves, thirty times over. Every question is a real routing table and a real destination, and every distractor is an actual entry from that table rather than an invented one, so a wrong answer is always a specific misreading that can be named: you took a route that does not contain the address, or you took a route that does but is not the longest one. The pool is graded in scope rather than sequenced by difficulty — quiz-game samples at random, so there is no honest way to promise an escalating round, and pretending otherwise would just mean mislabelling the set. What the pool does instead is span the range: unambiguous tables, stacked overlapping prefixes, host routes at /32 sitting inside their own /24, default-route fallbacks, a table with no default route at all where the correct answer is that the packet is discarded, and equal-cost ties. Several tables appear twice with different destinations — 172.16.10.200 lands in the /25 and 172.16.10.50 does not, 192.168.100.70 lands in the /26 and 192.168.100.140 does not — which is the cheapest way to prove that the answer comes from the address and not from the shape of the table. The tie questions are the ones worth explaining, because they are where a quiz on this subject usually goes wrong. When two entries have the same prefix length, longest prefix match genuinely cannot pick between them; a question that presented two equal-cost /16 routes and marked one of them correct would be teaching a falsehood, and it would be unanswerable by a student who understood the material better than the author. So those four questions ask what actually happens rather than which route wins: the router installs both and load-balances across them. One of the four then shows an equal-cost pair at /16 losing outright to a single /24, because longest prefix match runs before metrics are ever compared and that ordering is the thing most often remembered backwards. Another shows two paths that tie on prefix length but differ on OSPF cost, where only the cheaper one is installed — equal-cost multi-path requires the cost to actually be equal, which the name says and students routinely skip. The arithmetic in every question was computed rather than estimated, and the correct answer of each generated question was derived from the table by running the longest prefix match rule over it rather than asserted by hand. Every question also carries a written explanation, shown to the student as soon as the answer is graded, so a miss names the route that actually won and the prefix length that decided it. None of the reasoning above depends on that display, though: the stems and the answer text are written to carry the teaching on their own. Run it after the module's Default Route and Longest Match lessons, and again after Routing Process; twelve of thirty means two consecutive rounds overlap without repeating, and the entries that got past you the first time come back.

What you'll learn

Aligned to

Cisco CCNA
3.2 Determine how a router makes a forwarding decision by default
1.6 Configure and verify IPv4 addressing and subnetting
3.1 Interpret the components of routing table
3.3 Configure and verify IPv4 and IPv6 static routing
Cisco CCST Networking
4.4 Explain basic routing concepts
2.2 Identify IPv4 addresses and subnet formats
CompTIA Network+
2.1 Explain characteristics of routing technologies.

Key terms

Longest Prefix Match
A rule used by routers to select the most specific route in a routing table by choosing the entry whose network address shares the greatest number of matching bits with the destination IP address.
Routing Table
A database stored in a router that lists known network destinations, the metric (cost) to reach them, and the next-hop address or outgoing interface to forward packets toward those destinations. Routers consult this table for every packet they forward.
Default Route
A catch-all routing entry represented as 0.0.0.0/0 (IPv4) or ::/0 (IPv6) that a router uses to forward packets when no more specific matching route exists in the routing table. It is typically configured to point toward the next-hop router or ISP connection.
Prefix Length
The number of consecutive 1-bits in a subnet mask, written after a slash (e.g., /24), that defines how many bits of an IP address represent the network portion versus the host portion. A /24 prefix means the first 24 bits identify the network, leaving 8 bits for host addresses.
Subnet Mask
A 32-bit number that divides an IP address into network and host portions.
Classless Inter-Domain Routing
CIDR
A method for allocating IP addresses and expressing routing prefixes that replaces the older classful addressing scheme by using variable-length prefix notation (e.g., /24). CIDR enables more efficient use of IPv4 address space and reduces the size of internet routing tables through route aggregation.
Host Route
A route that specifies a single specific host, identified by a /32 prefix in IPv4 or /128 in IPv6, rather than an entire network.
Equal-Cost Load Balancing
A routing feature that distributes traffic across multiple paths that share the same administrative distance and metric.
Longest Match
A routing lookup method where a router selects the most specific matching route entry in the routing table for a given destination address.
Gateway of Last Resort
The route configured on a Cisco router that it uses to forward packets when no more specific matching route exists in the routing table.
Next Hop
The IP address of the immediately adjacent router that a packet is forwarded to on the way toward its final destination. A router's routing table entry for each network destination includes the next-hop address so the router knows where to send the packet.
Network Prefix
An IP address combined with a subnet mask that identifies a specific network or range of addresses advertised in routing protocols.
Administrative Distance
A value assigned to a route that indicates its trustworthiness or preference; lower values are preferred when multiple routes to the same destination exist.
Variable Length Subnet Mask
VLSM
A subnetting technique that allows a network administrator to divide an address space into subnets of different sizes by using different prefix lengths, allocating address space more efficiently than fixed-length subnetting. VLSM requires a classless routing protocol such as OSPF, EIGRP, or RIPv2 that carries prefix length information in routing updates.
Static Route
A routing table entry manually configured by an administrator that specifies a fixed path to a destination network and never changes unless the administrator modifies it. Static routes are simple and predictable but do not adapt automatically to network topology changes.
Directly Connected Route
A routing table entry automatically created when an interface is configured and active, representing a network physically attached to the router.
Route Summarization
The process of combining multiple contiguous network routes into a single advertised route to reduce routing table size and simplify routing updates.
Router
A network device that forwards data packets between networks based on IP addresses.
Default Gateway
The router that a device uses to send traffic to destinations outside its local network.
Routing Protocol
A protocol used by routers to communicate and share routing information to determine the best path for data.
Packet
A unit of data formatted for transmission over a network, containing a header, payload, and sometimes a trailer.

Topics

Interactive Quiz Game

About TechKnowSurge

TechKnowSurge builds IT and cybersecurity professionals through hands-on, concept-first training built around real understanding — not memorization. Free interactive tools, structured programs, and 25+ years of real-world experience, all in one place.

Explore free tools and programs →