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

bgpd: Do not advertise aggregate routes to contributing ASes #17961

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ton31337
Copy link
Member

@ton31337 ton31337 commented Jan 30, 2025

@frrbot frrbot bot added bgp documentation tests Topotests, make check, etc labels Jan 30, 2025
@enkechen-panw
Copy link
Contributor

@ton31337 This mechanism does not look safe, and I don't think we should do it.

The AS-SET has been there for more than 20+ years, and most likely will continue to exist for years to come as people usually do not change working configs. This mechanism would cause an outage for a customer that receives and accepts the aggregate currently (say, along with "allows-as" feature).

@taspelund
Copy link

@ton31337 This mechanism does not look safe, and I don't think we should do it.

The AS-SET has been there for more than 20+ years, and most likely will continue to exist for years to come as people usually do not change working configs. This mechanism would cause an outage for a customer that receives and accepts the aggregate currently (say, along with "allows-as" feature).

Maybe the new logic introduced in this PR could be coupled with the sender-as-path-loop-detection knob?
Then the improvement is there for folks who want to enable this, but operators won't be surprised by this change after an update?

@ton31337
Copy link
Member Author

I disagree, it was implemented from the beginning incorrectly, and here is just a fixup. At least saying that in the documentation would be good.

@enkechen-panw
Copy link
Contributor

Ok, then my comment is more about the proposal of "Do not advertise aggregate routes to contributing ASes", not the specific code in the patch.

@ton31337
Copy link
Member Author

Then it's not a best place to discuss the draft, there's already a long discussion ongoing on this draft, and most likely it's going to be RFC'ed anyway. as-set causes more issues than gives the benefits in terms of security.

@enkechen-panw
Copy link
Contributor

Then it's not a best place to discuss the draft, there's already a long discussion ongoing on this draft, and most likely it's going to be RFC'ed anyway. as-set causes more issues than gives the benefits in terms of security.

I have seen "as-set" in a number of customers' configs. Usually they will not change working configs regardless what a RFC says. To be safe, I think there should be a knob for this, and it should off be default.

@ton31337
Copy link
Member Author

There is a knob, see "bgp reject-as-set".

@ton31337 ton31337 marked this pull request as draft January 31, 2025 05:42
@ton31337 ton31337 force-pushed the fix/bgp_reject_as_aggregate branch from fb44ed8 to e5e5cc5 Compare January 31, 2025 07:35
draft-ietf-idr-deprecate-as-set-confed-set-16 defines that we MUST NOT
advertise an aggregate prefix to the contributing ASes.

Signed-off-by: Donatas Abraitis <[email protected]>
@ton31337 ton31337 force-pushed the fix/bgp_reject_as_aggregate branch from e5e5cc5 to 28178dd Compare January 31, 2025 07:43
@ton31337 ton31337 marked this pull request as ready for review January 31, 2025 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants