Skip to main content

Hop count in AP Networking

In AP Networking, hop count is the number of routers (hops) a packet passes through to get from its source network to its destination network, and it's one common routing metric used to pick the cheapest path.

This definition is part of Fiveable's AP Networking review, which also has guided practice questions.

Verified for the 2027 AP Networking exam•Last updated November 2026•Fiveable Content Team

What is hop count?

Every time a packet passes through a router on its way across the internet, that's one hop. Hop count is just the total tally of those routers between where a packet starts and where it's headed. Think of it like counting how many connecting flights you take to reach a city. Fewer hops usually means a shorter path.

Hop count shows up in two places on the AP exam. First, it's a routing metric, which is the cost value a router uses to decide which route is best (AP Networking 4.4.B). A route with fewer hops looks "cheaper," so protocols that use hop count will prefer it. Second, you can actually see hop count in action using traceroute (Mac/Linux) or tracert (Windows). Each line of that output is one hop, listing the router's IP address or domain name and how long it took to respond (AP Networking 4.4.C). Count the lines, and you've counted the hops.

Why hop count matters in AP Networking

Hop count lives in Unit 4: Managing Our Global Connections, specifically Topic 4.4. It supports AP Networking 4.4.B, which asks you to explain how routing protocols and metrics shape the path data follows, and AP Networking 4.4.A, which covers data moving from one network to another through at least one router. It also connects directly to AP Networking 4.4.C, since counting hops is exactly what you do when reading traceroute/tracert output. Understanding hop count is how you tie together three big ideas: how routers make decisions, what a metric actually measures, and how to trace a real path packet by packet.

Keep studying AP Networking Unit 4

How hop count connects across the course

Routing metric (Unit 4)

Hop count is one type of routing metric, not the only one. A metric is any cost measure a router uses to compare routes, and it could be hop count, time, or bandwidth. Hop count is the simplest version: just count the routers.

Next hop (Unit 4)

Next hop is the single router a packet goes to right now; hop count is the total number of those steps across the whole journey. One is the immediate move, the other is the full tally.

Routing Information Protocol (Unit 4)

RIP is the classic protocol that uses hop count as its metric and caps routes at 15 hops. It's the textbook example of a protocol that picks paths purely by counting routers.

traceroute / tracert (Unit 4)

These command-line tools let you see hop count in the real world. Each line of output is one hop, so counting the lines tells you how many routers a packet crossed to reach its destination.

Is hop count on the AP Networking exam?

Expect hop count to appear in Unit 4 questions about routing metrics and in traceroute/tracert interpretation tasks. On MCQs, you might be given a routing table and asked which route a router picks based on the lowest metric, where hop count is that metric. For the routing-tool skill in AP Networking 4.4.C, you may be shown sample traceroute output and asked to count the hops, identify where a delay occurs, or spot where a failure happened. The move is always the same: each line equals one hop, so tally the lines and read the response times.

Hop count vs next hop

Next hop is a single step, the address of the one router a packet is sent to next. Hop count is the grand total of all those steps from source to destination. If you only remember one thing: next hop is where it goes now, hop count is how many routers it crosses overall.

Key things to remember about hop count

  • Hop count is the number of routers a packet passes through to reach its destination network.

  • It's one type of routing metric, meaning routers can use it to decide which route is cheapest and best.

  • A protocol that uses hop count prefers the route with fewer routers, assuming that's the shortest path.

  • In traceroute or tracert output, each line is one hop, so you count the lines to get the hop count.

  • Don't confuse hop count (the total number of steps) with next hop (the single next router a packet goes to).

Frequently asked questions about hop count

What is hop count in AP Networking?

Hop count is the number of routers a packet passes through on its way from the source network to the destination network. It's commonly used as a routing metric and can be counted directly from traceroute or tracert output.

Is hop count the same as next hop?

No. Next hop is the single router a packet is forwarded to right now, while hop count is the total number of routers the packet crosses over the entire journey. Next hop is one step; hop count is the full count of steps.

Does the lowest hop count always mean the fastest route?

Not necessarily. Fewer hops often means a shorter path, but a route with fewer routers could still be slower if those links are congested or low-bandwidth, which is why some protocols use metrics like time instead of just hop count.

How do I find the hop count using traceroute?

Run traceroute (Mac/Linux) or tracert (Windows) from the command line to a destination. Each line of output represents one hop, so you count the lines to get the total hop count, and each line also shows how long that hop took to respond.

How is hop count related to a routing metric?

Hop count is one kind of routing metric. A metric is any cost value a router uses to compare routes, and hop count is the simplest one: the route with the fewest routers wins.

Keep studying AP Networking

Connect this key term to the AP exam workflow: review the course, practice questions, and check related study tools.