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

Extra points/lines in CDF of number of rules for each AutNum #137

Closed
SichangHe opened this issue Jan 26, 2024 · 15 comments · Fixed by #153
Closed

Extra points/lines in CDF of number of rules for each AutNum #137

SichangHe opened this issue Jan 26, 2024 · 15 comments · Fixed by #153
Labels
lateststats Latest and up-to-date statistics noted Noted this in the writing

Comments

@SichangHe
Copy link
Owner

Following #60

We should add Tier-1, tier-2, and large content providers as points on top of the current blue line. We should also add an additional line for the CDF of “simple” (BGPq3-compatible) rules, and another line for the CDF of rules with indirect filters.

@SichangHe SichangHe added the deferred Maybe work on this later label Jan 26, 2024
@SichangHe SichangHe removed the deferred Maybe work on this later label Apr 22, 2024
@SichangHe
Copy link
Owner Author

SichangHe commented Apr 22, 2024

Edit: Just Tier-1s and large content providers.

Tier-1s and IXP ASes from CAIDA AS Relationship DB:

# input clique: 174 209 286 701 1239 1299 2828 2914 3257 3320 3356 3491 5511 6453 6461 6762 6830 7018 12956
# IXP ASes: 1200 4635 5507 6695 7606 8714 9355 9439 9560 9722 9989 11670 15645 17819 18398 21371 24029 24115 24990 35054 40633 42476 43100 47886 48850 50384 55818 57463

@cunha, are these the ones we want on the plot and what else?

@SichangHe
Copy link
Owner Author

SichangHe commented Apr 22, 2024

image

I added the Tier-1s and this is how it looks. Does this look like it, @cunha?

@SichangHe
Copy link
Owner Author

SichangHe commented Apr 22, 2024

Also, I excluded ASes without aut-num objects. Maybe I should count them as 0s? But, that would mean the CDF should change or I should manually pile them up at the left.

@SichangHe
Copy link
Owner Author

image

With the lines for BGPq3-compatible and incompatible aut-num objects.

@SichangHe
Copy link
Owner Author

The compatible aut-nums only count the ones that have rules, the ones that don't have rules are counted are incompatible… That does not make much sense.

So, below, I removed aut-nums without any rules from the compatible/incompatible CDF lines:

image

@SichangHe
Copy link
Owner Author

Large content providers: Google, Amazon, Cloudflair, IBM, Facebook, ASNs @cunha?

@cunha
Copy link
Collaborator

cunha commented Apr 23, 2024

cloud_provider_asns = [
    8075,  # Microsoft
    15169,  # Google
    16509,  # AWS
    32934,  # Facebook
    36351,  # Softlayer/IBM
]

@cunha
Copy link
Collaborator

cunha commented Apr 23, 2024

Cloudflare is AS13335

SichangHe added a commit that referenced this issue Apr 24, 2024
@SichangHe
Copy link
Owner Author

SichangHe commented Apr 24, 2024

Dropping 17147 (17.9%) ASes without aut-num.
Tier-1 ASes without aut-num: {2828, 6453, 701, 6461, 7018}.
Tier-1 ASes with 0 rule: {209, 3491, 286, 1239}.
Large cloud providers without aut-num: set().
Large cloud providers with 0 rule: {8075, 13335}.
Dropping 27840 (35.4%) aut-num objects with 0 rule for BGPq3-compatible/incompatible stats.

@SichangHe
Copy link
Owner Author

SichangHe commented Apr 24, 2024

image

I have normalized the two lower CDFs and added the giants, @cunha.

SichangHe added a commit that referenced this issue Apr 24, 2024
* add bgp-compatible line&incompatible

* filter out ASes w/o rules for compatible/incompatible CDF

* CDF line for giants #137

* debug print tier1/giant w/o aut-num/rule #137

* plot BGPq3-compatible/incompatible CDF by #all AS #137

* more typing

* giants: arrow instead of triangle scatter plot
@SichangHe SichangHe added the noted Noted this in the writing label May 1, 2024
@SichangHe SichangHe reopened this May 2, 2024
@SichangHe
Copy link
Owner Author

Changing the plot to be #BGP-compatible rules per AS instead of #ASes with all rules BGP-compatible.

@SichangHe
Copy link
Owner Author

@SichangHe
Copy link
Owner Author

image

This looks bad, @cunha. Very few ASes use BGP-incompatible rules and the difference when plotting #rules for every AS is tiny.
I suggest we go back and plot the #ASes instead.

SichangHe added a commit that referenced this issue May 2, 2024
@github-actions github-actions bot mentioned this issue May 2, 2024
@cunha
Copy link
Collaborator

cunha commented May 2, 2024

This looks OK. One suggestion is to make the "All" line dashed or dotted, so people can see that the other one is below. As for the result itself, this is expected, as very few ASes make advanced use of the RPSL. (Which can be seen as motivation for our work: advanced features cannot be used if the tools do not support them. We built one that improves the current situation.)

@SichangHe
Copy link
Owner Author

Total: 792685 simple rules (97.4%) + 21463 complex rules (2.6%) = 814148 rules.
Tier-1 ASes without aut-num: {2828, 6453, 701, 6461, 7018}.
Tier-1 ASes with 0 rule: {209, 3491, 286, 1239}.
Large cloud providers without aut-num: set().
Large cloud providers with 0 rule: {8075, 13335}.
27818 (35.3%) aut-num objects have 0 BGPq4-compatible rules.

@SichangHe SichangHe added the lateststats Latest and up-to-date statistics label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lateststats Latest and up-to-date statistics noted Noted this in the writing
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants