How do we calculate Down/Upstreams?

BGP itself has no direct way to encode the relationship between two networks. So has to do an educated guess to figure this out.

To do this. Let’s look at a single prefix.

ASN Path graph displays the upstream list to look like this.

ASN Path graph

In the background, simply sees paths like:

PREFIX_AS_PATH: [[4777 2516 1299 3170 206924]]
PREFIX_AS_PATH: [[198290 2914 44684 206924]]
PREFIX_AS_PATH: [[41157 3257 1299 3170 206924]]
PREFIX_AS_PATH: [[20080 2914 3170 206924]]

To simplify, considers any ASN in the path for a prefix that contains a tier 1 to be in a upstreaming relationship. For example:

PREFIX_AS_PATH: [[198290 2914 44684 206924]]

In this case we see that 2914 (NTT, a ASN that considers to be a tier 1) connects to 44684 (Mythic) that then connects to our originator 206924. Meaning that will see 44684 as a upstream for 206924.

These relationships are also ported backwards to establish as providers downstreams.

Any relationship between two ASNs seen on the path are shown as peers on the site. Just because two providers are peering with eachother does not mean that can see this. needs to be able to see the routing table inside that ASN (or one of it’s downstreams) to be able to see this.

The list of ASN’s that tools.dn42 considers to be “Tier 1’s” are:

ASN Name
6762 Sparkle
12956 Telefonica
2914 NTT
3356 Lumen
6453 TATA
1239 Sprint
701 Verizon
6461 Zayo
3257 GTT
1299 Telia
3491 PCCW
7018 AT&T
3320 DTAG
5511 Orange
6830 Liberty Global
174 Cogent
6939 HE (IPv6 Only)

Last updated: 7th June 2021