Skip to Content.
Sympa Menu

rare-dev - Re: [rare-dev] BGP CT interop - Colorful Resolution

Subject: Rare project developers

List archive

Re: [rare-dev] BGP CT interop - Colorful Resolution


Chronological Thread 
  • From: Natrajan Venkataraman <>
  • To: "" <>, Kaliraj Vairavakkalai <>, Krzysztof Szarkowicz <>, Anton Elita <>
  • Cc: Reshma Das <>
  • Subject: Re: [rare-dev] BGP CT interop - Colorful Resolution
  • Date: Fri, 3 Mar 2023 21:01:42 +0000
  • Accept-language: en-IN, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=juniper.net; dmarc=pass action=none header.from=juniper.net; dkim=pass header.d=juniper.net; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=xoirxkVDnMhqfPS6dijDI3gA/RStH0Orn2+9q/ae25g=; b=JGatQOTyNiYUY4BVoPotNYjJ6ti9c+AESUsK4OjD4SLWI+50aShDD57sXU62rBujvSKkBs+4Y6ZrLkhXiGOfDnPhOb/xiixxKhHbKbKB5KlU00Qow81DSknc/zGolRrUHrwXKrbr0ZZsrhzqdUYIPtb77vRhzkA4aq4MHRfjVWL3NBjZDhIj73Vv5ypLVHuw8JiAYoASHi+E5i/aM5+Ppqeef9COKQ0wbHc2MAUQhr/B80YrWNDouUtp0rMpKHZ1d6uFGVUXcy5dIWFPi/YuoO9Oh59mHhaiJRlq8rW5DN7bwNvQEDF+pDtUypWt7+ad4dEePiQ2WtlcmVGcLERuOw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KmHhUPg/tZQ2is0OF2qYvI51QvCdhE4U1OXr0zZ5z95TKSG8j2lijuSQGvvMl0xtdvZzRha1ZrYWk9FGS0QjNRzDFs81yy1DNF5nX8JFISARYxxP0EdSdfaHonz0j/bEr8j1DADNZOdykErNHRjk10RCbk4V322IxGhgSFADZwkOVgSEeEdpvnigfxWaCT41DqRdIDYcE2ZhUuWIq6pXize2VtwEMQGclr8T2hSknAcRiDmEWWacGSfALdFBurKShsAOVrktWivhdZpusQM3vL79K1iozGoHB0tmi0G2uEm8Naoi3ehf8ZpnVZpg4n40O79kw2+/bDme6MMc4e4wRg==
  • Msip_labels: MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Enabled=True;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SiteId=bea78b3c-4cdb-4130-854a-1d193232e5f4;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_SetDate=2023-03-03T21:00:59.1574050Z;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_ContentBits=0;MSIP_Label_0633b888-ae0d-4341-a75f-06e04137d755_Method=Standard

Excellent Csaba,

 

This is just awesome!.

 

Thanks,

-Nats-

 

From: mc36 <>
Date: Friday, March 3, 2023 at 3:27 AM
To: Kaliraj Vairavakkalai <>, Natrajan Venkataraman <>, <>, Krzysztof Szarkowicz <>, Anton Elita <>
Cc: Reshma Das <>
Subject: Re: [rare-dev] BGP CT interop - Colorful Resolution

[External Email. Be cautious of content]


and fun fact, imho i'll be able to do the same for the vpls and the evpn afis :))))

On 3/3/23 12:01, mc36 wrote:
> hi, guys,
>
> imho from now, freerouter have cheat-less colorful resolution for vpnv4/vpnv6 afis:
>
> https://urldefense.com/v3/__https://github.com/rare-freertr/freeRtr/commit/335d83792d7123ca164691f124ceab71a98e21b9__;!!NEt6yMaO-gk!CIiG7fmL-0azbO22_78lWMXjUg3IVNmaPU6som3tnH9yd-VQM0G1ObZmFSD5hV3wdkRskQ$
>
> unfortunately this contains a smaller refactoring also, i just forgot to commit that beforehand... :)
>
>
> the code is still not covered by a test case, that will be the next,
>
> then i'll get back to you with a new topology for the plugfest...
>
> happy weekend,
> thanks,
> cs
>
> sid#show config-differences
> router bgp4 65535 vrf v1
>    afi-vrf niif set-vrf v2 ipv4
>    exit
>
> sid#clear ipv4 bgp 65535 all in vpnuni
> sid#show ipv4 route niif | first 10
> typ   prefix                           metric         iface           hop                   time
> B       0.0.0.0/0                     200/0           null@v2:4   10.10.10.25   00:00:02
> B       4.0.0.0/9                     200/0           null@v2:4   10.10.10.25   00:00:02
> B       4.23.88.0/24               200/0           null@v2:4   10.10.10.25   00:00:02
> B       4.23.89.0/24               200/0           null@v2:4   10.10.10.25   00:00:02
> B       4.23.92.0/23               200/0           null@v2:4   10.10.10.25   00:00:02
> B       4.23.94.0/23               200/0           null@v2:4   10.10.10.25   00:00:02
> B       4.35.69.0/24               200/0           null@v2:4   10.10.10.25   00:00:02
> B       4.38.0.0/21                 200/0           null@v2:4   10.10.10.25   00:00:02
> B       4.38.8.0/21                 200/0           null@v2:4   10.10.10.25   00:00:02
>
> sid#configure revert
>           1: router bgp4 65535 vrf v1
>           2:   no afi-vrf niif set-vrf v2 ipv4
>           3:   exit
>
> errors=0
>
> router bgp4 65535 vrf v1
>    afi-vrf niif set-vrf v2 ipv4
>    exit
>
> sid#clear ipv4 bgp 65535 all in vpnuni
> sid#show ipv4 route niif | first 10
> typ   prefix                           metric           iface           hop                   time
> B       0.0.0.0/0                     200/0             null@v1:4   10.10.10.25   00:00:02
> B       4.0.0.0/9                     200/0             null@v1:4   10.10.10.25   00:00:02
> B       4.23.88.0/24               200/0             null@v1:4   10.10.10.25   00:00:02
> B       4.23.89.0/24               200/0             null@v1:4   10.10.10.25   00:00:02
> B       4.23.92.0/23               200/0             null@v1:4   10.10.10.25   00:00:02
> B       4.23.94.0/23               200/0             null@v1:4   10.10.10.25   00:00:02
> B       4.35.69.0/24               200/0             null@v1:4   10.10.10.25   00:00:02
> B       4.38.0.0/21                 200/0             null@v1:4   10.10.10.25   00:00:02
> B       4.38.8.0/21                 200/0             null@v1:4   10.10.10.25   00:00:02
>
> sid#
>
>
>
> On 2/28/23 23:21, mc36 wrote:
>> hi,
>>
>> On 2/28/23 22:39, Kaliraj Vairavakkalai wrote:
>>> That     s cool. So now we have two demo setups:
>>>
>>> 1/ Csaba     s setup with FreeRTR as Ingress-PE doing colorful resolution.
>>>
>>> 2/ Natz setup with FreeRTR as ASBR doing colorful resolution.
>>>
>>> We could have a combo of the two setups, to show FreeRTR in both ASBR and ingress-PE roles.     ;)
>>>
>>
>> well, for a really really proper color resolution imho i need to introduce the "afi-vrf cust-blue resolve-in core-blue" knob...
>> it'll simply set the route's underlaying table like when we need to send out a vrf packet in mpls in the core vrf, but here,
>> it'll a per vrf override that i'll set that paramter to a user defined table... no fallback yet, just a static mechanism...
>> that'll be the first tomorrow what i'll start playing with... :)
>>
>>
>>> Just some comments -
>>>
>>> It     s worth noting that:
>>>
>>>          route-policy ibgp-in
>>>
>>>              sequence 10 if extcomm 2562:0:100
>>>
>>>              sequence 20         set vrf v2 ipv4
>>>
>>>              sequence 30         pass
>>>
>>>              sequence 40 enif
>>>
>>>              sequence 50 if extcomm 2562:0:200
>>>
>>>              sequence 60         set vrf v3 ipv4
>>>
>>>              sequence 70         pass
>>>
>>>              sequence 80 enif
>>>
>>>              sequence 90 drop
>>>
>>>              exit
>>>
>>> This policy config kind of implements the       resolution-scheme     . :)
>>>
>>
>> yeahh, i knew that matching against the rd is not the color but the path... :)
>>
>>
>>
>>> It works with LDP tunnels in VRFs v2, v3. BGP-CT routes are able to resolve over LDP routes
>>>
>>> (in main VRF v1 or color VRFs v2,v3), and create SWAP routes properly.
>>>
>>> We could not make BGP routes resolve over RSVP-TE Tunnel routes in any VRF. That     s why we used
>>>
>>> LDP-tunnels in previous IETF demo as-well. We may be missing something there.
>>
>> so that was just another dirty hack that i put the rsvp to a dummy vrf to have a color on it.... :)
>>
>>
>>>
>>> And, the code-change in rtrBgpNeigh.java was needed to make the following config work:
>>>
>>
>> [..]
>>
>> let's discuss this on my previous mail, i did a lot of changes to that part as i realized
>> that you were right and a lot were missing on that part of the code.... :)
>> thanks again for spotting it... :)
>>
>> thanks,
>> cs


Juniper Business Use Only




Archive powered by MHonArc 2.6.24.

Top of Page