SRv6 uSID w/ Dual-Connected PE
Load top1.vpnv4v6.srv6.dual.pe.init.cfg
All routers are running both SR-MPLS and SRv6. The PEs are only using MPLS for the L3VPN.
Configure the PEs for dual-support of MPLS and SRv6. Use XR9 for MPLS VPN routes only, and XR10 for SRv6 VPN routes only. Once all four PEs are configured with support for both MPLS and SRv6, flip over to using SRv6 as the encapsulation instead of MPLS.
Answer
Explanation
Instead of using an IWG, another option for migration from MPLS to SRv6 is to use dual-connected PEs. This reminds me of migrating LDP to SR. First LDP is enabled everywhere. Then you enable SR alongside LDP, but continue pushing only LDP labels. Then you change the label imposition to SR.
In this lab, SR-MPLS and SRv6 are already enabled. By default, BGP L3VPN will only use MPLS labels. To enable support for SRv6 and MPLS, we must tell BGP to allocate an MPLS label, plus use SRv6 for the VRF:
When both MPLS and SRv6 SIDs are allocated, by default only the MPLS label is advertised. We also tell the router to use SRv6 SIDs as the encapsulation when advertising the VPN routes to XR10. When using a dual-connected PE for migration from SR-MPLS to SRv6, you typically want to have a separate RR for each encapsulation type to make the transition easier.
Lastly, we set LP lower so that the SRv6 routes are not used yet.
Now that step 1 is complete, we can verify that SRv6 SID advertisement is working correctly before we actually use it. We first see that all routes via the XR10 RR have a lower LP:
The VPN routes via XR10 have an SRv6 SID, while the routes via XR9 still only have an MPLS label:
All L3VPN routes still use MPLS encapsulation:
Next, we set LP on the SRv6 routes to 110 to prefer them over the MPLS service routes.
Traffic now uses SRv6 encapsulation:
Similar to the LDP to SR migration, we can “flip the switch” and not incur any outage at all, as the control plane is fully setup for both SR-MPLS and SRv6 at the same time. If we needed to revert, we simply use LP to move back to using SR-MPLS encapsulation again.
Last updated