Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add additional AS number -> AS name source #30

Closed
nusenu opened this issue Jul 28, 2016 · 8 comments
Closed

add additional AS number -> AS name source #30

nusenu opened this issue Jul 28, 2016 · 8 comments

Comments

Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
@nusenu
Copy link

@nusenu nusenu commented Jul 28, 2016

In a random sample of 1000 IP addresses 280 IPs had no AS name associated with the AS number after using pyasn's number->name mapping feature.

You are currently using
http://www.cidr-report.org/as2.0/autnums.html
for AS number to name mapping. That file has currently ~10k entries.

http://thyme.apnic.net/current/data-used-autnums
provides similar data (i.e. no country name) but has more entries ( ~30k entries).

How about merging these data sets and use the APNIC data for AS numbers where cidr-report has no name?

A few examples for which apnic has ASnames and cidr-report hasn't:

43711
46844
29314
34224
48031

@hadiasghari
Copy link
Owner

@hadiasghari hadiasghari commented Sep 16, 2016

This is an interesting point, I need to look into why the AS-names in the files differ so much. It all in the end comes from WHOIS data, so I'd guess there should be some more or less authoritative source we could use.

@hadiasghari
Copy link
Owner

@hadiasghari hadiasghari commented Sep 30, 2016

@nusenu do you have any info on the differences between the file sources? I.e., is it fine to switch our source?

@nusenu
Copy link
Author

@nusenu nusenu commented Oct 1, 2016

No I have not, but instead of using one exclusively I'd recommend to use them both?
If there is no AS name for AS XY in file A lets take it from file B (better than having no name at all).

@randomgambit
Copy link

@randomgambit randomgambit commented Jun 28, 2018

@nusenu @hadiasghari but are these mapping names fixed over time? For instance, on the thyme website I see that:

18 UTEXAS - University of Texas at Austin, US

does that mean that this was also true 5 years ago?

@hadiasghari
Copy link
Owner

@hadiasghari hadiasghari commented Jun 28, 2018

@randomgambit, when ASNs are assigned to organizations, they typically stay that way unless the organization goes through a merger and acquisition or goes out of business.

@randomgambit
Copy link

@randomgambit randomgambit commented Jun 28, 2018

@hadiasghari I see, thanks.

but this then means it is important to have access to historical asn-names lookups as well. I mean, many firms have been acquired/ went bankrupts over the years. Would that data be available somewhere in your opinion?

My understanding is that the current mapping IP -> AS NUMBER is historically correct as long as one downloads the historical dumps from http://archive.routeviews.org/bgpdata/.

However, the mapping AS NUMBER -> organization name is likely to contain errors as it only uses the latest data from cidr-report. Is that right?

@hadiasghari
Copy link
Owner

@hadiasghari hadiasghari commented Feb 11, 2020

Yes that is correct. :)

@danish10499
Copy link

@danish10499 danish10499 commented Jul 8, 2020

Hi @hadiasghari,
I am unable to get the organization's name at all. Am I doing something wrong?
input => asndb.get_as_prefixes(1128)
output => {'130.161.0.0/16', '131.180.0.0/16', '145.94.0.0/16'}

TU-Delft prefixes is missing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment