base on following results from route-views


route-views>sh ip bgp bestpath
BGP routing table entry for, version 68416201
Paths: (39 available, best #35, table default)
Not advertised to any peer
Refresh Epoch 1
393406 1299 from (
Origin IGP, localpref 100, valid, external, best
Community: 1299:1000 1299:30000 1299:30200
rx pathid: 0, tx pathid: 0x0

Type escape sequence to abort.
Tracing the route to
VRF info: (vrf in name/id, vrf out name/id)
1 vl-51.uonet1-gw.uoregon.edu ( [AS 3582] 50 msec 1 msec 48 msec
2 2.bundle-ether10.uonet10-gw.uoregon.edu ( [AS 3582] 51 msec 49 msec 50 msec
3 eugn-car1-gw.nero.net ( [AS 3701] 1 msec 1 msec 1 msec
4 eugn-core1-gw.nero.net ( [AS 3701] 1 msec 51 msec 68 msec
5 te-4-4.car1.Sacramento1.Level3.net ( [AS 3356] 49 msec 51 msec 49 msec
6 sjo-b21-link.telia.net ( [AS 1299] 49 msec 52 msec 49 msec
7 nyk-bb2-link.telia.net ( [AS 1299] 167 msec
nyk-bb2-link.telia.net ( [AS 1299] 99 msec
nyk-bb2-link.telia.net ( [AS 1299] 102 msec
8 kbn-bb4-link.telia.net ( [AS 1299] 199 msec
kbn-bb4-link.telia.net ( [AS 1299] 195 msec
kbn-bb4-link.telia.net ( [AS 1299] 249 msec
9 s-bb3-link.telia.net ( [AS 1299] 201 msec
s-bb4-link.telia.net ( [AS 1299] 206 msec 245 msec


as you can see , the "show ip bgp " display that the AS number before destination AS is 393406 , but when we trace the same prefix ,the result dispaly AS=3356 before destination ASN.


thanks in advance.

  • Did any answer help you? If so, you should accept the answer so that the question doesn't keep popping up forever, looking for an answer. Alternatively, you could provide and accept your own answer.
    – Ron Maupin
    Aug 15, 2017 at 1:29

2 Answers 2


This is due to the fact that route-views servers use multi-hop BGP for peering eg: there may be a lot of ASs that are bypassed between the location of the route-views server you are connected to and the peer.

It also (in the case of Zebra) does not install routes into the forwarding table of the machine.

The traceroute command you are running would simply use the machine's IP stack and follow the entire AS-Path to the destination as you see in your trace.

Check the Implementation section on the front page of http://routeviews.org and the examples linked beneath it.

  • Thanks Benjamin and Brendan. I ask my question in other words. Local Router that we apply commands on,is Route-views with telnet ip and AS nubmer 3258. Base on the output of "sh ip bgp",it show us that the next Router to reach is (see "external" keyword under it).is this statement true? If yes,so why when we trace, the next hop that is shown us is ? belong to AS 3258 and "internal" for Route-views Router. Thanks.
    – alikarami
    Sep 4, 2016 at 1:59
  • Please see my answer above Sep 5, 2016 at 8:20

I'm not quite sure what you're asking, but I'll try anyway. I believe you got the output confused, and the commands shown in the question are inconsistent as it is apparently from two separate routers.

COMMANDS ON ROUTER #1 - appeared to be IP The first output you show us shows two AS numbers: AS393406 which is the AS of the IP (which is shown in the output), and AS1299 which is the network that is announcing (also AS34164 announces it, but it's less specific as 34164 is announcing it within a /13 but 1299 is announcing it within a /22).

COMMANDS ON ROUTER #2 - appeared to be @ University of Oregon: The second output shows what appears to be a traceroute from a DIFFERENT router than the first. This time it's at the University of Oregon on AS3582. It then travels down the Internet, until it reaches AS1299.

The question you asked was why AS3356 shows up before AS1299 in the traceroute, because the first output showed AS393406 before AS1299. That is not true. The two numbers shown were the starting AS - servicing on AS393406 - and the destination AS, AS1299 servicing The AS3356 you see in the traceroute is the last AS your packet hops through before reaching the destination network's (Akamai) AS at AS1299.

SO, I THINK what happened is you confused the output. That first output of two AS numbers were showing the beginning and the end ASes in the route. Also, you apparently had two separate routers issuing the commands as one appeared to be on Digital Ocean and the other at University of Oregon.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.