Replies: 7 comments 2 replies
-
Hey @acoul, I see your point. On one hand, On the other hand, BGPView "hallucinates" and gives you a bad parent (117.192.0.0/10). I would argue that one good solution in this scenario would be something like this oneliner: which delivers what you're after:
This is a suboptimal solution though, from a performance standpoint: it introduces a new API call to query IRR records for each and every prefix, which may become a nightmare for larger autonomous systems. This is why initially I went for a lighter approach (whois INETNUM deaggregation), which is sadly more error prone. If you have faster approaches or ideas, I'm open to suggestions! |
Beta Was this translation helpful? Give feedback.
-
appreciate so much your input, clarifications & technical detail I am still astound by the verity & usefulness asn packs & offers as a tool (utilizing various open services of the wonder netland) thank you |
Beta Was this translation helpful? Give feedback.
-
I haven't researched this thoroughly, but what is impressive about BGPView is the speed of the replies and the fact that it discovers registered network prefixes rather that just advertised ones (a bug or a feature depending what you are after)
I see and fully agree with your point let me provide some additional feedback, but if I am getting O.T. let me know and I will restrain myself trying to find the ASN of an IP with asn I get quite a quick response:
issuing though a query for analyzing ASN 179 is where the nightmare starts: it tries to retrieve & analyze information for 6217 prefixes which is a mission close (if you have the patience) to impossible of-course it works & after some time it properly displays correct & detailed information, but in my case it's an overkill. I find the following (not so professional) approach:
FWIW more handy |
Beta Was this translation helpful? Give feedback.
-
That's because they have the results cached on a server-side db, not fetched in real time. That's a minor tradeoff, but depending on your use case it may be absolutely acceptable.
BGPView is an amazing tool, but as I said earlier, it can give you misleading information when it comes to parent prefixes. Take for example output for AS 5505: ASN output:BGPView outputSingle prefixes:
Unique parents:
Let's break those results down and compare the information we can derive from them:
Unfortunately when building As always, I'm fully open to suggestions or ideas! Thanks for the constructive issue. |
Beta Was this translation helpful? Give feedback.
-
the quality of the feedback reminds me my good old University days ! thank you accuracy & reliability comes first undoubtedly really grateful for the asn tool. I tend to use it when all quick alternatives fail and I am in a kind of a dead end state |
Beta Was this translation helpful? Give feedback.
-
I rushed to close this "ticket" overlooking the enhancement tag, thereof I am reopening it for further reference to whom it may concern as it also contains high quality information cheers |
Beta Was this translation helpful? Give feedback.
-
my acquaintance with asn happened on a quest of trying to find ways to fight (or actually defend from) spam and various malicious port scans FWIW, I would like to share two more findings (for me at least) that I bumped today for resolving IPs to ASNs along with their relative netblocks
and
|
Beta Was this translation helpful? Give feedback.
-
when querying an ASN for their prefixes, for example:
asn -n 38457
the result (from HNS-AS-AP Honesty Net Solution I Pvt Ltd, IN) is:
when using bgpview.io for the same query, we get:
curl https://api.bgpview.io/asn/38457/prefixes | sed 's/parent":{"prefix":"/\n/g' | grep ^[1-9] | cut -d "\"" -f 1 | sort -u | sed 's/\\//'
with the exception of the inclusion of the actual parent (provider) prefixes of that given ASN, which I haven't figured out (yet) a way to filter out:
bgpview.io provides one additional valid prefix for that given ASN
which is a valid parent of some of the /24 prefixes that the HNS-AS-AP provides
apparently, HNS-AS-AP seems to be missing the following valid prefixes:
Beta Was this translation helpful? Give feedback.
All reactions