· 7 min read

Looking Glass Guide: Diagnose BGP, Ping, Traceroute Issues

A looking glass is a public web tool that runs BGP route lookups, ping, and traceroute from a router inside someone else's network. It shows you how that network sees your prefix, and how packets travel from there to your server, which a test from your own laptop can't tell you.

This guide explains what each query type tells you, how to read the output, and how to combine them to find where a problem actually lives. It ends with how to use the Nixcon looking glass.

What a Looking Glass Does

Most network problems are hard to debug because you only see your own side. A user in Frankfurt says your site is slow. Your traceroute from Texas looks fine. A looking glass fixes that by letting you test from a different vantage point.

A looking glass typically offers three query types:

Query Question it answers
BGP route Does this network have a route to the prefix? Through which AS path?
Ping Is the destination reachable from here, and what is the round-trip time and loss?
Traceroute Which hops does traffic cross, and where does latency or loss begin?

Together they separate three failure classes: routing (the prefix isn't announced or is filtered), reachability (the route exists but packets are dropped), and performance (traffic arrives but takes a poor path).

Start With the BGP Route Query

If a destination is unreachable from some networks but fine from others, check routing first. A BGP query for your prefix shows whether the looking glass router has a route and what it looks like.

Illustrative output from a router running BIRD:

bird> show route for 203.0.113.10 all
203.0.113.0/24 unicast [upstream1 10:42:07] * (100) [AS64500i]
    via 192.0.2.1 on eth0
    BGP.origin: IGP
    BGP.as_path: 64501 64500
    BGP.next_hop: 192.0.2.1
    BGP.local_pref: 100
    BGP.community: (64501,100)

What to read in a result like this:

Check RPKI and IRR if the Route Is Missing

Many networks drop RPKI-invalid routes. If your prefix is visible in some places and missing in others, verify your ROA matches the origin ASN and max-length:

# Query an IRR database for the route object
whois -h whois.radb.net 203.0.113.0/24

# Check what AS-SET members are expected
whois -h whois.radb.net -- '-i member-of AS-EXAMPLE'

For example, a ROA for 203.0.113.0/24 max-length 24 origin AS64496 makes a more-specific /25 from the same origin RPKI-invalid. If you see your /24 but not your /25 announcements, that's the reason. See our RPKI and ROA guide for creating correct ROAs, and the BGP VDS page for how announcement validation works on our network.

Use Ping for Reachability and Baseline Latency

Ping tells you whether packets get through and how long they take. From a looking glass it gives you a second opinion on your server's availability.

Interpret the numbers carefully:

As a rule of thumb, light travels through fiber at roughly 100 km per millisecond one-way. If a Frankfurt-to-Izmir path shows 150 ms, something is wrong with the path, not the distance.

Run the same check from your side to compare:

ping -c 20 203.0.113.10

If your result and the looking glass result differ greatly, the problem is path-specific. It's not the server.

Use Traceroute to Locate the Problem Hop

Traceroute lists each router between source and destination, with latency per hop. It's the most useful of the three tools and the most commonly misread.

Example:

 1  192.0.2.1        0.4 ms
 2  198.51.100.5     1.1 ms
 3  198.51.100.9    18.7 ms
 4  203.0.113.1     19.2 ms
 5  203.0.113.10    19.5 ms

Rules for Reading Traceroute Correctly

  1. Loss on a middle hop is not necessarily a problem. Routers rate-limit ICMP replies addressed to themselves. If hop 4 shows 50% loss but hop 5 shows 0%, traffic is passing through fine.
  2. Loss that continues to the end is real. If loss starts at hop 4 and persists on every later hop, hop 4 or the link after it is the cause.
  3. A latency jump that persists is real. If hop 3 jumps to 18 ms and everything after stays around 19 ms, that hop is probably a long-distance link, such as a transatlantic one. If one hop is high but later hops are low, it's just slow ICMP handling on that router.
  4. Asymmetric routing is normal. The return path can differ from the forward path. A looking glass shows only the forward direction, so run a traceroute from your server back to the looking glass source address too.
  5. Stars (* * *) don't equal failure. Some routers don't send TTL-exceeded messages. Only worry if the trace never reaches the destination.
  6. MPLS can hide hops. Providers with MPLS may not expose internal routers, so the hop count is lower than the real one.

Reverse DNS names often reveal location (airport codes, city names) and help you spot a detour, such as traffic from Germany to Turkey going via the US.

On your own host, mtr combines ping and traceroute over time and is better than a single trace:

mtr -rwzc 100 203.0.113.10

The -z flag adds AS numbers, so you can see which network each hop belongs to and tell whose problem it is.

A Practical Troubleshooting Workflow

When someone reports "your server is unreachable" or "slow from Europe," follow this order:

  1. Check BGP from a looking glass. Is the prefix visible, with the correct origin AS and path length?
  2. Ping from at least two regions. One failing region and one working region means it's path-related.
  3. Traceroute from the failing region. Find where it stops or where latency jumps.
  4. Traceroute back from your server. Compare forward and return paths.
  5. Identify the owning AS of the problem hop with whois or mtr -z, and escalate to the right party. Send them the source, destination, timestamps, and the output.
  6. Retest after changes. Routing changes take time to converge, sometimes several minutes.

Common Mistakes

Using the Nixcon Looking Glass

Nixcon operates its own network, AS40368, with its main data center in Izmir, Turkey, and POPs in Frankfurt, Germany, and Fremont, California. The public looking glass lets anyone run BGP route, ping, and traceroute queries from the Izmir, Frankfurt, and US locations. You don't need an account.

Useful ways to use it:

A looking glass is a point-in-time diagnostic. For continuous visibility, such as spotting traffic spikes or an attack as it starts, you need flow-based monitoring like NixMon.

Summary

Use BGP queries to answer "is the route there?", ping to answer "does it respond, and how fast?", and traceroute to answer "where does it go wrong?" Test from more than one place, read traceroute from the end backward, and don't forget the return path. Do that and most network problems narrow down to a specific AS or link within a few minutes.

Frequently asked questions

What is a looking glass in networking?

A looking glass is a public web interface that runs commands such as BGP route lookups, ping, and traceroute on a router in a provider's network. It lets you see routing and reachability from that network's point of view.

Why does traceroute show packet loss on a middle hop?

Routers often rate-limit ICMP replies directed at themselves, so a middle hop can show loss while forwarding traffic normally. If later hops show no loss, the loss is cosmetic. Loss that continues to the final hop indicates a real problem.

Why can't I see my prefix in a looking glass BGP query?

Common causes are an upstream filter, a missing or incorrect IRR route object, an RPKI-invalid announcement (wrong origin ASN or max-length), or routes that have not yet converged. Check your ROA and IRR records first.

Does the Nixcon looking glass require an account?

No. It is publicly available at lg.nixconllc.com and supports BGP route, ping, and traceroute queries from Izmir, Frankfurt, and US locations.

Run a BGP, ping, or traceroute query on the Nixcon looking glass now.Learn more