Csaba, Fyi: junos doesn’t implement draft-ietf-idr-dynamic-cap. Wanted to clarify, in case you are looking for interop.
Thanks
Kaliraj
Juniper Business Use Only
From: mc36 <>
Date: Tuesday, June 6, 2023 at 1:13 AM
To: <>, Srihari Sangli <>
Cc: Antoni Przygienda <>, Natrajan Venkataraman <>, <>, <>, <>, Kaliraj Vairavakkalai
<>
Subject: Re: [freertr] https://datatracker.ietf.org/doc/html/draft-ietf-idr-dynamic-cap-16
[External Email. Be cautious of content]
hihi && morning, i just had some coding session yesterday and 2night and look what i have....
wireshark does not decode the capability messsages im sending but imho it's their issue and
not mineee, but here, i clearly need your confirmation....
tldr: a working clear command that i have already that updates the local side almost fineee...
then an bgp.eor message just to be sure.... next will be the parser part for the new bgp.msg...
so yesss i refactored heavily so for now i have the proper
"
private void renegotiatingSafi(int msk, int safi, boolean add) {
"
commit a bit later when i have a working test case for the stuff..... XDDDDD
ps: interop about the draft wheeennnnn??? XDDDDDDD
thx,
cs
sid#
sid#
sid#
sid#
sid#set hairpin 1
sid#set hairpin 1 exit
sid#set interface hairpin11
sid#set interface hairpin11 vrf forwarding v2
sid#set interface hairpin11 ipv4 address 1.1.1.1 255.255.255.252
sid#delete interface hairpin11 shutdown
sid#delete interface hairpin11 log-link-change
sid#set interface hairpin11 exit
sid#set interface hairpin12
sid#set interface hairpin12 vrf forwarding v3
sid#set interface hairpin12 ipv4 address 1.1.1.2 255.255.255.252
sid#delete interface hairpin12 shutdown
sid#delete interface hairpin12 log-link-change
sid#set interface hairpin12 exit
sid#set router bgp4 1
sid#set router bgp4 1 vrf v2
sid#set router bgp4 1 local-as 1
sid#set router bgp4 1 router-id 1.1.1.1
sid#set router bgp4 1 address-family unicast
sid#set router bgp4 1 neighbor 1.1.1.2 remote-as 1
sid#set router bgp4 1 neighbor 1.1.1.2 local-as 1
sid#set router bgp4 1 neighbor 1.1.1.2 address-family unicast
sid#set router bgp4 1 neighbor 1.1.1.2 distance 200
sid#set router bgp4 1 neighbor 1.1.1.2 dynamic-capability
sid#set router bgp4 1 redistribute connected
sid#set router bgp4 1 exit
sid#set router bgp4 2
sid#set router bgp4 2 vrf v3
sid#set router bgp4 2 local-as 1
sid#set router bgp4 2 router-id 1.1.1.2
sid#set router bgp4 2 address-family unicast
sid#set router bgp4 2 neighbor 1.1.1.1 remote-as 1
sid#set router bgp4 2 neighbor 1.1.1.1 local-as 1
sid#set router bgp4 2 neighbor 1.1.1.1 address-family unicast
sid#set router bgp4 2 neighbor 1.1.1.1 distance 200
sid#set router bgp4 2 neighbor 1.1.1.1 dynamic-capability
sid#set router bgp4 2 redistribute connected
sid#set router bgp4 2 exit
sid#packet capture hairpin11
% capturing=true
sid#show config-differences | setdel
set hairpin 1
set hairpin 1 exit
set interface hairpin11
set interface hairpin11 vrf forwarding v2
set interface hairpin11 ipv4 address 1.1.1.1 255.255.255.252
delete interface hairpin11 shutdown
delete interface hairpin11 log-link-change
set interface hairpin11 exit
set interface hairpin12
set interface hairpin12 vrf forwarding v3
set interface hairpin12 ipv4 address 1.1.1.2 255.255.255.252
delete interface hairpin12 shutdown
delete interface hairpin12 log-link-change
set interface hairpin12 exit
set router bgp4 1
set router bgp4 1 vrf v2
set router bgp4 1 local-as 1
set router bgp4 1 router-id 1.1.1.1
set router bgp4 1 address-family unicast
set router bgp4 1 neighbor 1.1.1.2 remote-as 1
set router bgp4 1 neighbor 1.1.1.2 local-as 1
set router bgp4 1 neighbor 1.1.1.2 address-family unicast
set router bgp4 1 neighbor 1.1.1.2 distance 200
set router bgp4 1 neighbor 1.1.1.2 dynamic-capability
set router bgp4 1 redistribute connected
set router bgp4 1 exit
set router bgp4 2
set router bgp4 2 vrf v3
set router bgp4 2 local-as 1
set router bgp4 2 router-id 1.1.1.2
set router bgp4 2 address-family unicast
set router bgp4 2 neighbor 1.1.1.1 remote-as 1
set router bgp4 2 neighbor 1.1.1.1 local-as 1
set router bgp4 2 neighbor 1.1.1.1 address-family unicast
set router bgp4 2 neighbor 1.1.1.1 distance 200
set router bgp4 2 neighbor 1.1.1.1 dynamic-capability
set router bgp4 2 redistribute connected
set router bgp4 2 exit
sid#warning rtrBgpSpeak.doWork:rtrBgpSpeak.java:1319 neighbor 1.1.1.1 up
warning rtrBgpSpeak.doWork:rtrBgpSpeak.java:1319 neighbor 1.1.1.2 up
sid#
sid#
sid#
sid#
sid#show ipv4 bgp 1 summary
neighbor as ready learn sent uptime
1.1.1.2 1 true 1 1 00:00:07
sid#show ipv4 bgp 1 afi
neighbor as open norem noloc
1.1.1.2 1 unicast
sid#show ipv4 bgp 1 summary
neighbor as ready learn sent uptime
1.1.1.2 1 true 1 1 00:00:10
sid#show ipv4 bgp 1 afi
neighbor as open norem noloc
1.1.1.2 1 unicast
sid#clear ipv4 bgp 1 all del unicast
sid#show ipv4 bgp 1 summary
neighbor as ready learn sent uptime
1.1.1.2 1 true 0 0 00:00:17
sid#show ipv4 bgp 1 afi
neighbor as open norem noloc
1.1.1.2 1
sid#show ipv4 bgp 1 summary
neighbor as ready learn sent uptime
1.1.1.2 1 true 0 0 00:00:20
sid#show ipv4 bgp 1 afi
neighbor as open norem noloc
1.1.1.2 1
sid#clear ipv4 bgp 1 all add unicast
sid#show ipv4 bgp 1 summary
neighbor as ready learn sent uptime
1.1.1.2 1 true 0 1 00:00:27
sid#show ipv4 bgp 1 afi
neighbor as open norem noloc
1.1.1.2 1 unicast
sid#show ipv4 bgp 1 summary
neighbor as ready learn sent uptime
1.1.1.2 1 true 0 1 00:00:30
sid#show ipv4 bgp 1 afi
neighbor as open norem noloc
1.1.1.2 1 unicast
sid#show ipv4 bgp 1 summary
neighbor as ready learn sent uptime
1.1.1.2 1 true 0 1 00:00:32
sid#show ipv4 bgp 1 afi
neighbor as open norem noloc
1.1.1.2 1 unicast
sid#reload force
On 6/5/23 09:12, mc36 wrote:
> hmmmm and if i recall correctly, i got known about this capability initially when
>
> i tried my bgp stuff in live and with some c1sc0 n3xus77k peers as a route-reflector....
>
> thx,
>
> cs
>
> On 6/5/23 09:08, mc36 wrote:
>> hihi,
>>
>> hmmmmmmmmmmmmmmmmmmmmm, at this point, as i started to code this draft,
>>
>> i just noticed that the bgp.msg.code is also reserved here 4 a while:
>>
>>
https://urldefense.com/v3/__https://github.com/rare-freertr/freeRtr/blob/master/src/net/freertr/rtr/rtrBgpUtil.java*L526__;Iw!!NEt6yMaO-gk!GQIFnQQv-7omYbbWIRek2xvsjT4sZXEHaw-9wR93AHdYvYKGEo-YJPCzKHZOq6fMYi48dt5q$
>>
>> so im still seeking 4 your hints, etc,
>>
>> thanks in advance,
>>
>> cs
>>
>>
>>
>>
>> On 6/5/23 08:22, mc36 wrote:
>>> hi-hi,
>>>
>>> im planning to implement the $subj$ in freertr.org (i already have the bgp-compressed-updates 4 example) just for fun...
>>>
>>> my plan is just to be able to dynamically turn on-off bgp.afis that the bgp session can exchange the prefixes for...
>>>
>>> the bgp.capability code is there for a while sooo:
>>>
>>>
https://urldefense.com/v3/__https://github.com/rare-freertr/freeRtr/blob/master/src/net/freertr/rtr/rtrBgpUtil.java*L756__;Iw!!NEt6yMaO-gk!GQIFnQQv-7omYbbWIRek2xvsjT4sZXEHaw-9wR93AHdYvYKGEo-YJPCzKHZOq6fMYs7A_NVx$
>>>
>>> but at this time imho im ready to get this stuff done in a week or two....
>>>
>>> at this stage my question is, do you have a sample transaction hanging around somewhere pls??
>>>
>>> if not a full pcap then just an ascii drawwing with the bits/bytes set in the messages....
>>>
>>> my current idea is that it would look a like something like this:
>>>
>>>
>>> -------------------------------------------------------------------------------------------------->
>>> bgp.capamsg init=1, initreq=1 capa.code,len,val={the new afis this guy wants to do on the session}
>>>
>>> >-------------------------------------------------------------------------------------------------
>>> bgp.capamsg init=0, initreq=0 capa.code,len,val={the new afis this guy wants to do on the session}
>>>
>>> <---------------------------------------------------------------------->
>>> the regular bgp.update messages, but in the freshly negotiated afis
>>>
>>>
>>>
>>> thanks in advance,
>>>
>>> cs
>>>
>>>
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>> Groups.io Links: You receive all messages sent to this group.
>>> View/Reply Online (#1319):
https://urldefense.com/v3/__https://groups.io/g/freertr/message/1319__;!!NEt6yMaO-gk!GQIFnQQv-7omYbbWIRek2xvsjT4sZXEHaw-9wR93AHdYvYKGEo-YJPCzKHZOq6fMYlBySIDW$
>>> Mute This Topic:
https://urldefense.com/v3/__https://groups.io/mt/99335189/6006518__;!!NEt6yMaO-gk!GQIFnQQv-7omYbbWIRek2xvsjT4sZXEHaw-9wR93AHdYvYKGEo-YJPCzKHZOq6fMYn96z1FK$
>>> Group Owner:
>>> Unsubscribe:
https://urldefense.com/v3/__https://groups.io/g/freertr/unsub__;!!NEt6yMaO-gk!GQIFnQQv-7omYbbWIRek2xvsjT4sZXEHaw-9wR93AHdYvYKGEo-YJPCzKHZOq6fMYiNswdhK$ []
>>> -=-=-=-=-=-=-=-=-=-=-=-
>>>
>>>
|