-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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: Set nexthop length to 16 bytes for IPv4 family prefixes #6579
bgpd: Set nexthop length to 16 bytes for IPv4 family prefixes #6579
Conversation
This is the issue between other vendors with unnumbered sessions. I tested with vQFX-re and got this notification from JunOS: `NOTIFICATION sent to fe80::a00:27ff:fec4:4b3e (External AS 65002): code 3 (Update Message Error) subcode 9 (error with optional attribute)` With this _fix_ the session is UP and all prefixes received on JunOS side: ``` root@vqfx-re> show route 172.16.255.253/32 detail inet.0: 13 destinations, 15 routes (13 active, 0 holddown, 0 hidden) 172.16.255.253/32 (1 entry, 1 announced) *BGP Preference: 170/-101 Next hop type: Router, Next hop index: 342 Address: 0xc65eb68 Next-hop reference count: 16 Source: fe80::a00:27ff:fec4:4b3e Next hop: fe80::a00:27ff:fec4:4b3e via em1.0, selected Session Id: 0x0 State: <Active Ext> Local AS: 65004 Peer AS: 65002 Age: 4:59 Metric: 0 Validation State: unverified Task: BGP_65002.fe80::a00:27ff:fec4:4b3e Announcement bits (2): 0-KRT 1-Resolve tree 1 AS path: 65002 ? Accepted Localpref: 100 Router ID: 2.2.2.2 {master:0} ``` Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
💚 Basic BGPD CI results: SUCCESS, 0 tests failedResults table
For details, please contact louberger |
Continuous Integration Result: SUCCESSFULCongratulations, this patch passed basic tests Tested-by: NetDEF / OpenSourceRouting.org CI System CI System Testrun URL: https://ci1.netdef.org/browse/FRR-FRRPULLREQ-12666/ This is a comment from an automated CI system. Warnings Generated during build:Debian 10 amd64 build: Successful with additional warningsDebian Package lintian failed for Debian 10 amd64 build:
|
I am not sure I agree with making this change. We are sending data correctly as per the RFC and Juniper must accept it. |
I agree with you, that is an incorrect behavior on JunOS, this is kinda for a discussion how should we treat that. |
I have heard through the official routing grapevine that Juniper is going to fix the issue on their end. |
As an author of #6433 I believe this a kind gray area:
Yes according to the https://tools.ietf.org/html/rfc2545#section-3 The FRR behavior is correct (no question asked) but RFC states:
Although there is no MUST/SHOULD sending just one IPv6 NH might OK even in this case. Not handling double NH (and in result breaking the BGP session - thats another story :) ) Maybe we can make this somehow adjustable via BGP export policy? I would be more than happy if was able to |
I don't have how to test with Arista, but seems they had the same problem. I hope it's already fixed. |
I can confirm that latest Arista in VM does not suffer from this issue. @donaldsharp That's great news. Was any date/roadmap/PR given? |
Seems brilliant, I'm closing this PR then. |
According https://tools.ietf.org/html/draft-white-linklocalnh-00:
This PR seems what it does with, except without intends, but forcefully for IPv4 prefixes. Maybe we should adopt with |
This is the issue between other vendors with unnumbered sessions.
I tested with vQFX-re and got this notification from JunOS:
NOTIFICATION sent to fe80::a00:27ff:fec4:4b3e (External AS 65002): code 3 (Update Message Error) subcode 9 (error with optional attribute)
With this fix the session is UP and all prefixes received on JunOS side:
Related: #6433
Signed-off-by: Donatas Abraitis donatas.abraitis@gmail.com