Mets Minor League Blog

Music theory, instruments and musicians

Mets Minor League Blog

Music theory, instruments and musicians

Number of Hops in a Network: How to Count Them

The number of hops in a network describes how many network devices or links a packet passes through on its way from a source to a destination. This step-by-step method helps you count hops from a route trace, understand what the count means, and avoid common misreadings caused by firewalls or changing routes.

Ingredients

  • 1 source device, such as a computer or server, with access to a terminal or command prompt.
  • 1 destination, specified by a hostname such as example.com or by an IP address.
  • 1 route-tracing utility: traceroute on many Linux and macOS systems, or tracert on Windows.
  • 1 network connection that is currently working, preferably the connection you want to investigate.
  • At least 1 route-trace attempt, with 3 probes per hop as a useful default where the utility allows it.
  • 1 written note of the source, destination, date, and connection type, such as office Wi-Fi or home Ethernet.
  • Up to 30 hop-limit steps for an initial trace; raise the limit only if your network is known to have a longer route.
  • 1 optional second test from another device or network, to help distinguish a local issue from a wider route issue.

Instructions

  1. Choose the destination you actually need to test. A hostname is convenient, but it may resolve to different IP addresses at different times or from different locations. If you are troubleshooting a particular service, use its hostname first, then note the resolved address shown by the trace. If you already have a specific server IP, test that address directly. Make sure the destination is spelled correctly; a name-resolution error is not a hop-count result.
  2. Open the appropriate command tool. On Windows, open Command Prompt or PowerShell. On Linux or macOS, open Terminal. Enter tracert example.com on Windows or traceroute example.com on most Linux and macOS systems, replacing the example with your destination. Some Linux installations do not include traceroute by default. If the command is unavailable, use an approved system package or a trusted network diagnostic tool rather than assuming the route has zero hops.
  3. Run the trace and let it finish. The utility sends packets with gradually increasing hop limits. A router that forwards a packet reduces its IP time-to-live, or TTL, by one. When the limit is reached, the router may return a message that identifies itself, allowing the tool to list that step. A typical trace stops when a probe reaches the destination or when it reaches its configured maximum number of hops. Wait for that result before counting; a line that is still timing out may simply be waiting for its probes.
  4. Read the numbered lines in order. The numbers at the left of a completed trace are hop-limit steps. For example, if the trace displays responsive lines numbered 1 through 8 and line 8 is the destination, the route trace reports 8 steps to the destination. The first line often represents your local router or another first-hop gateway, not the computer running the test. A line may show three response times because the tool commonly sends multiple probes at that step; those are measurements for one hop, not three additional hops.
  5. Decide which definition of hop count you need. In ordinary troubleshooting, the practical answer is the number of numbered forwarding steps from the source-side route trace to the destination. In graph theory, however, a hop can mean one edge between neighboring nodes. If a path contains four routers between two computers, it may be described as four router hops, while a count of every link from computer to router and onward can produce a different number. State your convention when reporting a result, especially in a diagram, service-level report, or comparison between tools.
  6. Check whether the destination was reached. A final line that names the destination or shows its address indicates that a probe received a response from the endpoint. If the trace ends with asterisks or a message such as request timed out, do not report the last displayed line as the total route length. It is only the last hop that replied. Some routers and firewalls forward traffic normally but do not answer trace probes, so the real path may continue past a silent line. Record the result as a partial trace, for example, at least 7 visible hops, destination not confirmed.
  7. Repeat the measurement before drawing conclusions. Run the trace two or three times, preferably with a short pause between attempts. Compare the hop sequence and note whether only response times change or whether the route itself changes. Internet routes can vary because of load balancing, routing policy, or a change in network conditions. If the purpose is to compare Wi-Fi with Ethernet, keep the destination and test time as similar as practical, and change only the connection you are evaluating.
  8. Report the count with its context. A useful note might say, From the office laptop over Wi-Fi to the server at the tested IP, the trace reached the destination in 9 displayed hops at 10:15 a.m.; the route was repeated twice. Include whether the destination answered and any consecutive timeouts. Avoid treating hop count as a direct measure of speed: a short route can be slow, and a longer route can be fast. Response times, packet loss, and the location of the first consistent problem are separate clues.

Tips

  • Use the matching command for your system. Windows calls the utility tracert; many Unix-like systems call it traceroute. Options for probe count, protocol, and maximum hops differ, so check the built-in help with tracert /? or traceroute --help rather than copying options blindly.
  • Do not count probes as hops. Three time values on one numbered line are usually three attempts to the same step. Count the hop numbers, not the number of time values or addresses printed on that line.
  • Be careful comparing traces made with different methods. Tracing tools can use UDP, ICMP, or TCP probes, and networks may treat those differently. A TCP-based trace to a service port may pass where a default trace is filtered. Use the same utility, protocol, target, and source when you want an apples-to-apples comparison.
  • Keep diagnostic output private when appropriate. A trace can reveal internal hostnames, addresses, or organization details. Share only the lines needed for troubleshooting, and follow your organization’s rules before posting output publicly.

Serving Suggestions

Use a hop count as one ingredient in a larger diagnosis, not as a verdict by itself. If a video call is lagging, for example, compare the response times at each hop and look for a sustained increase or packet loss that continues through later hops. A single slow router response followed by normal times farther down the route may indicate that the router is simply giving low priority to diagnostic replies, rather than delaying forwarded traffic.

For a support ticket, include the destination, test time, connection type, whether the endpoint answered, and the complete trace if policy allows. For a classroom network diagram, mark the devices and links explicitly and write down whether your count includes the source and destination. That small clarification prevents two people from reporting different counts for the same path while using different definitions.

Variations

Windows route check: Use tracert -d example.com to suppress reverse DNS lookups and display IP addresses, which can make a trace faster and easier to compare. The -h option sets the maximum number of hops; consult tracert /? for the exact syntax supported by your Windows version.

Linux or macOS check: Use the installed traceroute command and its help text to select a maximum hop count or probe count. On some systems, permissions or firewall rules affect which probe types work. If the standard trace stalls, a TCP-based traceroute may be useful for diagnosing a service route, but it is a different test and should be labeled as such.

Browser or graphical alternative: If you cannot install or run a command-line tool, use a trusted network diagnostic application approved for your device. Some web-based trace services run the test from their own server, not from your computer. Their hop count describes a route from that service, so it cannot substitute for a trace from your own network.

Compare two paths: Trace the same destination from two networks, such as home and office, and record both results. This can show where paths diverge, but different routes do not automatically mean one is faulty. Internet providers may intentionally use different peers, and the two paths can still deliver similar performance.

Storage and Reheating

A hop trace is a snapshot, not a dish that stays fresh. Save the output as plain text if you need a record, and label it with the date, time, source device, connection, destination name, and resolved IP address. For an active troubleshooting case, keeping results for 7 to 30 days is usually enough to compare before-and-after behavior; follow any stricter workplace retention policy. Store files in an access-controlled location if they contain internal addresses or hostnames.

There is no meaningful way to reheat an old trace: it describes a route at the moment it was run. Rerun the test when the problem occurs, and compare the fresh result with the saved one. Avoid treating a trace from yesterday as proof of today’s route, since routing and network conditions can change without notice.

Frequently Asked Questions

What does one hop mean in a network?

A hop is generally one forwarding step taken by a packet, most often through a router between networks. The word can also mean one connection between neighboring nodes in a network diagram. Because those conventions can count endpoints and links differently, state what you are counting when precision matters.

How do I find the number of hops to a website?

Run tracert on Windows or traceroute on Linux or macOS with the website’s hostname. Count the numbered steps only if the destination is reached. If the trace stops at silent hops, report the visible count as partial rather than claiming it is the full path.

Is the number of hops the same as the number of routers?

Not always in every counting convention. A traceroute step usually corresponds to a router or other layer-3 device that responds at that TTL, but some network devices may be hidden, and the source or destination may be included differently in diagrams. A hop count from a trace is best described as the number of displayed route steps.

Why does my trace show asterisks or timeouts?

The device at that step may not answer the type of probe being sent, or a firewall may block or rate-limit diagnostic responses. The device may still forward your ordinary traffic. If later hop numbers respond, that is strong evidence that the earlier silence did not stop the route; if the trace ends there, the destination has not been confirmed.

Does a higher hop count mean a slower connection?

No. Hop count tells you about the number of visible forwarding steps, not the quality or speed of each step. A route with more hops can have low latency, while a route with fewer hops can be congested or geographically indirect. Use response times, repeated tests, and application behavior alongside the count.

Can the number of hops change?

Yes. A provider can change routing, a hostname can resolve to a different server, or load balancing can send probes along different paths. Even repeated traces can show different intermediate devices. Record the destination IP and test time when comparing results, and avoid assuming that a past count is permanent.

Number of Hops in a Network: How to Count Them
Scroll to top