Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6956463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:52:22+00:00 2026-05-27T14:52:22+00:00

I’m trying to find a method for enumerating a few possible routes a packet

  • 0

I’m trying to find a method for enumerating a few possible routes a packet may take on the internet, specifically counting ASes it might pass on the route.

Is this possible at all, and will I be able to collect all the necessary information to compute them offline (namely a possibly consistent snapshot of all the BGP routes)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T14:52:23+00:00Added an answer on May 27, 2026 at 2:52 pm

    Writing the kind of algorithm I think you are asking about is probably not as easy as you may hope for.

    1. The answer to whether you can calculate potential AS paths for packets is an unqualified yes. You can obtain a large picture of the internet by connecting to a BGP Looking Glass. There are a number of BGP Looking Glasses that you can connect to and pull entire BGP tables from.

    2. Whether you can calculate a packet’s future path with any consistent degree of probability is a significantly more difficult endeavor for the following reasons:

      • There are statistically only a few BGP Looking Glasses compared to the number of Autonomous Systems on the internet.
      • A portion of the BGP routing table will get aggregated into a larger route blocks in-transit for some AS’s local policy (perhaps completely hiding the path of Autonomous Systems behind said aggregator, if they choose not to display the set of aggregated Autonomous Systems). If the Looking Glass that you use as the source of your information gets such an aggregate, you will loose path ordering information, and you may loose path membership information for that route.
      • You will get almost no visibility into the local Autonomous System’s internal decision-making policy regarding transit traffic. Although BGP announces the best path for traffic, local routers within an Autonomous System may be configured to over-ride the AS-wide decision for reasons of load-balancing policy, politics, or whatever.
      • Link flapping will always change path dynamics, at least temporarily.

    Sample output from routeviews.org’s Cisco IOS BGP Looking Glass:

    bgp-views>show ip bgp 4.0.0.0
    BGP routing table entry for 4.0.0.0/9, version 658263
    Paths: (35 available, best #13, table Default-IP-Routing-Table)
      Not advertised to any peer
      19214 25973 3356, (aggregated by 3356 4.69.130.2)
        208.74.64.40 from 208.74.64.40 (208.74.64.40)
          Origin IGP, localpref 100, valid, external, atomic-aggregate
      852 1299 3356, (aggregated by 3356 4.69.130.18)
        154.11.98.225 from 154.11.98.225 (154.11.98.225)
          Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate
          Community: 852:180
      852 1299 3356, (aggregated by 3356 4.69.130.10)
        154.11.11.113 from 154.11.11.113 (154.11.11.113)
          Origin IGP, metric 0, localpref 100, valid, external, atomic-aggregate
          Community: 852:180
      3561 3356, (aggregated by 3356 4.69.130.2)
        206.24.210.102 from 206.24.210.102 (206.24.210.102)
          Origin IGP, localpref 100, valid, external, atomic-aggregate
      812 6461 3356, (aggregated by 3356 4.69.130.12)
        64.71.255.61 from 64.71.255.61 (64.71.255.61)
          Origin IGP, localpref 100, valid, external, atomic-aggregate
      3277 3267 1273 1273 3356, (aggregated by 3356 4.69.130.76)
        194.85.102.33 from 194.85.102.33 (194.85.4.4)
          Origin IGP, localpref 100, valid, external, atomic-aggregate
          Community: 3277:3267 3277:65321 3277:65323 3277:65330
      6939 1299 3356, (aggregated by 3356 4.69.130.2)
        216.218.252.164 from 216.218.252.164 (216.218.252.164)
          Origin IGP, localpref 100, valid, external, atomic-aggregate
      286 3356, (aggregated by 3356 4.69.130.82)
        134.222.87.1 (inaccessible) from 134.222.87.1 (134.222.85.99)
          Origin IGP, localpref 100, valid, external, atomic-aggregate
          Community: 286:18 286:19 286:29 286:800 286:888 286:3031 286:4010
      [table manually truncated for brevity]
    bgp-views>
    

    Some relevant links associated with BGP analysis…

    • The CIDR Report
    • Univerity of Oregon Route Views Project
      • Route Views Tools
      • bgpplay tool(published by the University of Oregon)

    This is a sample AS graph from bgplay that you may find interesting… This is a screenshot from a time replay of BGP path information going to NASA’s BGP Autonomous System (AS297).

    enter image description here

    EDIT:

    I am a professional network engineer; coding is something I do to enhance my network engineering skills. Regarding your question about whether routeviews.org has got good data, when I was working with the development team for a large network equipment manufacturer who shall remain nameless, Routeviews.org was my defacto source of live BGP table information. Plus, I always use Routeviews when debugging internet routing issues. Their raw bgp Looking Glass data is as good as you will get for free.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
Specifically, suppose I start with the string string =hello \'i am \' me And
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I have a text area in my form which accepts all possible characters from
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.