Friday, December 4, 2026

VPNv4 BGP Session Flapping Between Juniper and Cisco over an IPv6/SRv6 Core

Troubleshooting VPNv4 BGP Session Flapping Between Juniper and Cisco over an IPv6/SRv6 Core

Author: Vadivelan
Technologies: MP-BGP, VPNv4, VPNv6, IPv6, SRv6, RFC 8950
Platforms: Juniper ACX7348, Juniper MX and Cisco 8000 Series


1. Introduction

While validating MP-BGP interoperability between Juniper and Cisco routers in an IPv6-only SRv6 core, I encountered an interesting issue involving VPNv4 route advertisements.

The BGP session between a Juniper ACX7348 and a Cisco Route Reflector established successfully. VPNv6 route advertisements were working as expected.

However, the moment VPNv4 prefixes were advertised from Juniper router, the BGP session started flapping continuously.

Lab Architecture

The lab consisted of Juniper and Cisco routers participating in an IPv6-only SRv6 transport network.

The routers established MP-BGP sessions using IPv6 loopback addresses.

Lab topology

Device

Role

Platform

BGP IPv6 Address

JUNIPER-PE01

Provider Edge

Juniper ACX7348

2001:db8:100::1

CISCO-RR01

Route Reflector

Cisco

2001:db8:200::1

JUNIPER-RR01

Route Reflector

Juniper

2001:db8:300::1

Network parameters

Parameter

Example Value

BGP AS

65000

BGP session type

iBGP

Underlay

Native IPv6

Transport

SRv6

VPNv4 AFI/SAFI

1/128

VPNv6 AFI/SAFI

2/128

EVPN AFI/SAFI

25/70

VPNv4 prefix

192.0.2.0/26

VPNv6 prefix

2001:db8:400::/64

Route Distinguisher

65000:101

Route Target

target: 65000:101

The IPv6 addresses use the RFC 3849 documentation prefix 2001:db8::/32. The IPv4 example uses the RFC 5737 documentation range 192.0.2.0/24.

The goal was to establish VPNv4 and VPNv6 services over an IPv6/SRv6 transport network.


Problem Description

During the initial testing, the BGP session established successfully.

However, whenever VPNv4 prefixes were advertised, Cisco rejected the received BGP UPDATE and reset the session.

The behaviour was consistent.

There is no issue between Juniper ACX to Juniper MX.

EVPN and VPNV6 doesn’t have any issue. So started to focus on VPNV4 related logs

Also I tried VPNV4 route advertisement between juniper to isolated the issue but didn’t have any issue between juniper routers for VPNV4. I started to assume that it could be the multi-vendor issue, required more in-depth analysis to identify the Root cause.

 

Test Scenario

Observed Result

IPv6 underlay connectivity

Working

BGP over IPv6

Established

VPNv6 advertisements

Working

VPNv4 capability negotiation

Successful

VPNv4 prefix advertisement

BGP session flapping

VPNv4 advertisements removed

Session stable

SRv6 service advertisement disabled

Issue persisted

RFC 8950 compliance enabled

Issue resolved

This suggested that the problem was not related to IPv6 transport connectivity.

The failure occurred specifically during VPNv4 UPDATE processing.

Cisco BGP logs

The Cisco Route Reflector reported the following:

%ROUTING-BGP-5-ADJCHANGE_DETAIL:

neighbor 2001:db8:100::1 Up

(VRF: default; AFI/SAFI: 1/128, 2/128, 25/70)

(AS: 65000)

Immediately afterward:

%ROUTING-BGP-5-ADJCHANGE_DETAIL:

neighbor 2001:db8:100::1 Down -

BGP Notification sent, invalid length for attribute

(VRF: default; AFI/SAFI: 1/128, 2/128, 25/70)

(AS: 65000)

The session repeatedly established and reset shortly after the initial route advertisements.

The important clue was Cisco reporting an invalid BGP attribute length.


Initial Juniper BGP Configuration

The Juniper Router was configured for MP-BGP over IPv6.

The relevant configuration is shown below.

set protocols bgp group VPN-RR-PEERS type internal

set protocols bgp group VPN-RR-PEERS local-address 2001:db8:100::1

set protocols bgp group VPN-RR-PEERS family inet unicast extended-nexthop

set protocols bgp group VPN-RR-PEERS family inet-vpn unicast extended-nexthop

set protocols bgp group VPN-RR-PEERS family inet-vpn unicast advertise-srv6-service

set protocols bgp group VPN-RR-PEERS family inet-vpn unicast accept-srv6-service

set protocols bgp group VPN-RR-PEERS family inet6-vpn unicast advertise-srv6-service

set protocols bgp group VPN-RR-PEERS family inet6-vpn unicast accept-srv6-service

set protocols bgp group VPN-RR-PEERS neighbor 2001:db8:200::1 description CISCO-RR01

set protocols bgp group VPN-RR-PEERS neighbor 2001:db8:300::1 description JUNIPER-RR01

At first glance, the configuration appeared correct.

VPNv4 extended next-hop support was already enabled:

set protocols bgp group VPN-RR-PEERS family inet-vpn unicast extended-nexthop

This configuration allowed the routers to negotiate IPv6 next-hop support for VPNv4.

However, an important distinction emerged during troubleshooting:

Advertising extended next-hop capability does not necessarily guarantee that the subsequent VPNv4 UPDATE uses the RFC 8950-compliant next-hop encoding.

I also did some research, and someone face the same issue but resolved it after configuring

Extended next hop but in my case, id didn’t help me to resolve it.

Solved: SRv6 VPNv4 NCS540 Interoperability - Cisco Community


Verifying BGP Capability Negotiation

The first troubleshooting step was to determine whether the Juniper and Cisco routers were negotiating the required BGP capabilities.

Juniper BGP OPEN message

The Juniper BGP trace showed:

BGP SEND MP capability AFI=1, SAFI=128

BGP SEND MP capability AFI=2, SAFI=128

BGP SEND MP capability AFI=25, SAFI=70

These represent:

  • VPNv4: AFI 1, SAFI 128
  • VPNv6: AFI 2, SAFI 128
  • EVPN: AFI 25, SAFI 70

Juniper also advertised the extended next-hop capability:

BGP SEND Extend Nexthop Encoding Capability, code=5

BGP SEND Extended Nexthop Encoding Capability

AFI=1, SAFI=128, Nexthop AFI=2

This confirmed that Juniper advertised IPv6 next-hop capability for VPNv4.

Cisco BGP OPEN message

The Cisco peer advertised:

BGP RECV MP capability AFI=1, SAFI=128

BGP RECV MP capability AFI=2, SAFI=128

BGP RECV MP capability AFI=25, SAFI=70

Cisco also advertised:

BGP RECV Extended Nexthop Encoding Capability

AFI=1, SAFI=128, Nexthop AFI=2

Finding

Both routers successfully negotiated VPNv4 and extended IPv6 next-hop capabilities.

Therefore, the issue was not caused by missing BGP address-family configuration or capability negotiation.

The next step was to investigate the actual BGP UPDATE messages.


Enabling Detailed BGP debug on Juniper

To identify the reason for the session reset, detailed BGP tracing was enabled on the Juniper router.

Trace configuration on Juniper:

set protocols bgp group VPN-RR-PEERS neighbor 2001:db8:200::1 traceoptions file cisco-bgp-debug

set protocols bgp group VPN-RR-PEERS neighbor 2001:db8:200::1 traceoptions file size 10m

set protocols bgp group VPN-RR-PEERS neighbor 2001:db8:200::1 traceoptions flag all

The trace was examined using:

show log cisco-bgp-debug

The following sequence was observed.

Step 1: BGP session establishes

RPD_BGP_NEIGHBOR_STATE_CHANGED:

BGP peer 2001:db8:200::1

changed state from EstabSync to Established

(event RsyncAck)

Step 2: Juniper sends VPNv4 UPDATE

BGP SEND message type 2 (Update) length 129

Step 3: Juniper sends VPNv6 UPDATE

BGP SEND message type 2 (Update) length 141

Step 4: Cisco sends BGP NOTIFICATION

BGP RECV message type 3 (Notification) length 24

BGP RECV Notification code 3

(Update Message Error)

subcode 5 (bad attribute length)

Step 5: BGP session resets

RPD_BGP_NEIGHBOR_STATE_CHANGED:

BGP peer 2001:db8:200::1

changed state from Established to Idle

(event RecvNotify)

This sequence repeated every time the BGP session re-established and VPNv4 routes were advertised.

Investigation finding

The issue was clearly associated with BGP UPDATE processing.

The next objective was to identify the attribute that Cisco was rejecting.


Analysing the Cisco BGP NOTIFICATION

The Juniper trace contained the following diagnostic information:

BGP RECV Notification code 3

(Update Message Error)

subcode 5 (bad attribute length)

BGP RECV Data (3 bytes): 90 0e 00

The complete BGP NOTIFICATION message was:

ff ff ff ff ff ff ff ff

ff ff ff ff ff ff ff ff

00 18 03 03 05 90 0e 00

Notification decoding

Field

Hexadecimal

Meaning

BGP message length

0018

24 bytes

BGP message type

03

NOTIFICATION

Error code

03

UPDATE Message Error

Error subcode

05

Attribute Length Error

Attribute flags

90

Optional, non-transitive, extended length

Attribute type

0e

MP_REACH_NLRI

The notification diagnostic data identified the beginning of the MP_REACH_NLRI attribute header.

Below logs started flooding in Cisco log message.

Cisco was rejecting an UPDATE associated with MP_REACH_NLRI attribute length validation.


Critical Finding: VPNv4 IPv6 Next-Hop Length and VPNV6 Next-Hop length

The decisive evidence came from examining the actual Juniper BGP UPDATE trace.

So, I compared the VPNV4 and VPNV6 debug detail because with VPNV6 we didn’t face any issue and I thought the underlay is IPV6 Core. Side by Side in notepad ++ I compared the output.

VPNv4 UPDATE

The Juniper router advertised the following VPNv4 route:

BGP SEND message type 2 (Update) length 129

BGP SEND flags 0x40 code Origin(1):

IGP, length(1)

BGP SEND flags 0x40 code ASPath(2):

length 0: <null>

BGP SEND flags 0x40 code LocalPref(5):

100 length(4)

BGP SEND flags 0xc0 code Extended Communities(16):

count(1) target:65000:101

BGP SEND flags 0xc0 code Prefix-SID(40):

Length: 37

BGP SEND SRv6 L3 Service TLV

BGP SEND flags 0x90 code MP_reach(14):

length(37) AFI/SAFI 1/128

BGP SEND nhop 2001:db8:100::1 len 16

BGP SEND 65000:101:192.0.2.0/26

(label 917504)

End-of-Attributes

The critical line was:

BGP SEND nhop 2001:db8:100::1 len 16

Juniper was advertising a 16-byte IPv6 next hop for VPNv4.

VPNv6 UPDATE

The VPNv6 advertisement showed:

BGP SEND message type 2 (Update) length 141

BGP SEND flags 0x40 code Origin(1):

IGP, length(1)

BGP SEND flags 0x40 code ASPath(2):

length 0: <null>

BGP SEND flags 0x40 code LocalPref(5):

100 length(4)

BGP SEND flags 0xc0 code Extended Communities(16):

count(1) target:65000:101

BGP SEND flags 0xc0 code Prefix-SID(40):

Length: 37

BGP SEND SRv6 L3 Service TLV

BGP SEND flags 0x90 code MP_reach(14):

length(49) AFI/SAFI 2/128

BGP SEND nhop 2001:db8:100::1 len 24

BGP SEND 65000:101:2001:db8:400::/64

(label 917520)

End-of-Attributes

The important line was:

BGP SEND nhop 2001:db8:100::1 len 24

The VPNv6 next-hop length was 24 bytes.

Comparison

Parameter

VPNv4

VPNv6

AFI

1

2

SAFI

128

128

Next-hop address family

IPv6

IPv6

Advertised next-hop length

16 bytes

24 bytes

Expected VPN next-hop length

24 bytes

24 bytes

Observed behaviour

Cisco rejected UPDATE

VPNv6 worked

 

This difference explained why VPNv6 worked while VPNv4 caused the BGP session to reset.


Understanding RFC 8950

Then is started looking in deep into RFC 8950 defines how IPv4 and VPNv4 routes can be advertised with IPv6 next hops.

It extends MP-BGP to allow IPv4 reachability information to use an IPv6 next-hop address.

However, the encoding requirements differ between IPv4 unicast and VPNv4.

9.1 IPv4 unicast with IPv6 next hop

For IPv4 unicast routes, RFC 8950 permits:

  • 16-byte IPv6 next hop
  • 32-byte IPv6 next-hop field containing two addresses

9.2 VPNv4 with IPv6 next hop

For VPNv4, the next-hop field contains an additional 8-byte Route Distinguisher field.

The single IPv6 VPN next-hop encoding consists of:

Component

Length

Route Distinguisher

8 bytes

IPv6 next-hop address

16 bytes

Total

24 bytes

Where two VPN IPv6 next hops are present, the total becomes 48 bytes.

 

Why the additional eight bytes matter

VPNv4 routes include VPN-specific information.

The MP_REACH_NLRI next-hop encoding must therefore follow the VPN next-hop format.

A 16-byte IPv6 address alone is not the expected RFC 8950 encoding for VPNv4.

In this investigation, Juniper advertised:

VPNv4 next-hop length = 16 bytes

Cisco expected the VPN-specific encoding:

VPNv4 next-hop length = 24 bytes

Consequently, Cisco rejected the UPDATE with:

BGP NOTIFICATION 3/5

Important distinction

The RD associated with the VPNv4 NLRI and the RD field within the VPN next-hop encoding are separate fields.

They serve different purposes within the BGP UPDATE.

This distinction is particularly important when troubleshooting VPNv4 over an IPv6-only transport network.


Resolution: Enabling RFC 8950 Compliance

After identifying the encoding mismatch, I enabled the RFC 8950 compliance option in Junos.

Configuration applied

set protocols bgp rfc8950-compliant

The command was applied at the global BGP protocol hierarchy.

Following the change, the BGP session established successfully and VPNv4 route exchange began working.

Why the configuration resolved the issue

Before the change, Junos was advertising VPNv4 routes using a 16-byte IPv6 next-hop field.

Enabling RFC 8950 compliance corrected the interoperability behaviour observed in the lab.

The important distinction is that the existing:

family inet-vpn unicast extended-nexthop

configuration enabled extended next-hop capability negotiation, while the additional compliance option addressed the UPDATE encoding behaviour.

Note: This command was validated in the described lab environment. Platform-specific support and default behaviour should be checked before applying it across other Junos releases.


Post-Fix Validation

After applying the RFC 8950 compliance configuration, the Juniper BGP summary confirmed that both peers were Established.

BGP session summary

The absence of active VPNv6 routes from this particular peer does not imply that VPNv6 capability negotiation failed.

Route Advertisement Verification

The next step was to verify the prefixes being advertised toward the Cisco Route Reflector.

Command

 

These outputs confirmed that the relevant IPv4 and IPv6 VPN prefixes were selected for advertisement toward the Cisco RR.

Together with the BGP summary, they provided evidence that the control-plane interoperability issue had been resolved.


Why This Issue Was Difficult to Troubleshoot

Several factors made this issue particularly interesting.

·       BGP established successfully

·       Extended next-hop capability was already negotiated

·       VPNv6 worked correctly

·       Disabling SRv6 service advertisement did not resolve the issue

·       Cisco provided the critical diagnostic information


Key takeaway

When deploying VPNv4 over an IPv6/SRv6 core, successful MP-BGP capability negotiation is not enough. The actual VPNv4 next-hop encoding must comply with RFC 8950.

This is an important consideration for network engineers designing and validating multivendor SRv6 networks.


References

  1. RFC 8950: Advertising IPv4 Network Layer Reachability Information with an IPv6 Next Hop
  2. Juniper BGP User Guide
  3. Cisco Community: SRv6 VPNv4 NCS540 Interoperability

 

Tuesday, June 9, 2026

Deploying SRv6 in Juniper: From Setup to Verification

I'm exploring the SRV6, and it's obvious that I am exploring now with Juniper after I tested SRV6 configurations and features in Nokia SROS.

In this blog post I will be covering the SRV6 enabling in Junos, and in upcoming blogs I will enable different services through the SRV6 tunnel and hurdles during the testing in detail.

I am using the below topology to enable SRv6 in Junos. IPv4 is not enabled; only IPv6 is configured and enabled ISIS over IPv6.











Loopback/locator IPv6 addresses







Let's configure the IPv6 address on respective interface as below

set interfaces ge-0/0/1 unit 0 family inet6 address 2001:db8:12::1/64

set interfaces ge-0/0/2 unit 0 family inet6 address 2001:db8:14::1/64

set interfaces lo0 unit 0 family inet6 address 2001:db8:0::1/128


Locator configuration on each router as per table

set routing-options source-packet-routing srv6 locator loc1 2001:db8:a1:1::/64 

Configure the flavour. How the IPV6 transit and endpoint and adjacency SID

Penultimate Segment Pop 

set protocols isis source-packet-routing srv6 locator loc1 end-sid 2001:db8:a1:1::0 flavor psp

Ultimate Segment Decapsulation

When a packet reaches its final SRv6 segment destination, if there are no more segments in the SRH, the USD instruction tells the router to pop the outer IPv6 header along with any remaining extension headers.

set protocols isis source-packet-routing srv6 locator loc1 end-sid 2001:db8:a1:1::0 flavor usd


Enable the Enhanced IP under the chassis

set chassis network-services enhanced-ip

Enable SRV6 in ISIS

set interfaces lo0 unit 0 family iso address 49.0001.0000.0000.0001.00

set interfaces ge-0/0/1 unit 0 family iso

set interfaces ge-0/0/2 unit 0 family iso

set protocols isis level 1 disable

set protocols isis interface ge-0/0/1.0

set protocols isis interface ge-0/0/2.0

set protocols isis interface lo0.0 passive

set protocols isis level 2 wide-metrics-only


Advertising SRV6 Locator in ISIS

set protocols isis source-packet-routing srv6


Verification:

IPv6 Locators are programmed in the inet6.0 table like other ipv6 loopback address and next hops that forward the traffic with next hop interface and Locator programmed in inet6.3 table and tunnel next hop tunnel SRV6. SRV6 traffic encoded with SRH header towards the destination.

show route table inet6.0 protocol isis   


2001:db8:a1:1::/64 *[IS-IS/18] 00:06:39, metric 0

                       Reject

2001:db8:a1:1::/128*[IS-IS/18] 00:06:39, metric 0

                       Receive

2001:db8:a1:2::/64 *[IS-IS/18] 00:01:57, metric 10

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0

2001:db8:a1:3::/64 *[IS-IS/18] 00:01:54, metric 20

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0

                       to fe80::5254:ff:feae:6d02 via ge-0/0/1.0

2001:db8:a2:5::/64 *[IS-IS/18] 00:01:50, metric 20

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0

2001:db8:a2:6::/64 *[IS-IS/18] 00:00:49, metric 30

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0

2001:db8:a3:7::/64 *[IS-IS/18] 00:01:44, metric 20

                    >  to fe80::5254:ff:feae:6d02 via ge-0/0/1.0

2001:db8:a3:8::/64 *[IS-IS/18] 00:02:03, metric 30

                    >  to fe80::5254:ff:feae:6d02 via ge-0/0/1.0


admin@R1# run show route table inet6.3 

inet6.3: 12 destinations, 12 routes (12 active, 0 holddown, 0 hidden)

+ = Active Route, - = Last Active, * = Both

2001:db8:a1:2::/64 *[SRV6-ISIS/14] 00:07:56, metric 10

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0, SRV6-Tunnel, Dest: 2001:db8:a1:2::

2001:db8:a1:2::/128*[SRV6-ISIS/14] 00:07:56, metric 10

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0, SRV6-Tunnel, Dest: 2001:db8:a1:2::

2001:db8:a1:3::/64 *[SRV6-ISIS/14] 00:07:53, metric 20

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0, SRV6-Tunnel, Dest: 2001:db8:a1:3::

                       to fe80::5254:ff:feae:6d02 via ge-0/0/1.0, SRV6-Tunnel, Dest: 2001:db8:a1:3::

2001:db8:a1:3::/128*[SRV6-ISIS/14] 00:07:53, metric 20

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0, SRV6-Tunnel, Dest: 2001:db8:a1:3::

                       to fe80::5254:ff:feae:6d02 via ge-0/0/1.0, SRV6-Tunnel, Dest: 2001:db8:a1:3::

2001:db8:a2:5::/64 *[SRV6-ISIS/14] 00:07:49, metric 20

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0, SRV6-Tunnel, Dest: 2001:db8:a2:5::

2001:db8:a2:5::/128*[SRV6-ISIS/14] 00:07:49, metric 20

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0, SRV6-Tunnel, Dest: 2001:db8:a2:5::

2001:db8:a2:6::/64 *[SRV6-ISIS/14] 00:06:48, metric 30

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0, SRV6-Tunnel, Dest: 2001:db8:a2:6::

2001:db8:a2:6::/128*[SRV6-ISIS/14] 00:06:48, metric 30

                    >  to fe80::5254:ff:fee8:e501 via ge-0/0/0.0, SRV6-Tunnel, Dest: 2001:db8:a2:6::

2001:db8:a3:7::/64 *[SRV6-ISIS/14] 00:07:43, metric 20

                    >  to fe80::5254:ff:feae:6d02 via ge-0/0/1.0, SRV6-Tunnel, Dest: 2001:db8:a3:7::

2001:db8:a3:7::/128*[SRV6-ISIS/14] 00:07:43, metric 20

                    >  to fe80::5254:ff:feae:6d02 via ge-0/0/1.0, SRV6-Tunnel, Dest: 2001:db8:a3:7::

2001:db8:a3:8::/64 *[SRV6-ISIS/14] 00:08:02, metric 30

                    >  to fe80::5254:ff:feae:6d02 via ge-0/0/1.0, SRV6-Tunnel, Dest: 2001:db8:a3:8::

2001:db8:a3:8::/128*[SRV6-ISIS/14] 00:08:02, metric 30

                    >  to fe80::5254:ff:feae:6d02 via ge-0/0/1.0, SRV6-Tunnel, Dest: 2001:db8:a3:8::


[edit]

admin@R1# run ping 2001:db8:a1:3:: 

PING6(56=40+8+8 bytes) 2001:db8:12::1 --> 2001:db8:a1:3::

16 bytes from 2001:db8:23::3, icmp_seq=0 hlim=63 time=796.705 ms

16 bytes from 2001:db8:23::3, icmp_seq=1 hlim=63 time=5.956 ms

16 bytes from 2001:db8:23::3, icmp_seq=2 hlim=63 time=205.600 ms

^C

--- 2001:db8:a1:3:: ping6 statistics ---

3 packets transmitted, 3 packets received, 0% packet loss

round-trip min/avg/max/std-dev = 5.956/336.087/796.705/335.749 ms


admin@R1> ping srv6 isis 2001:db8:a3:7:: detail   

Request for icmp_seq=1, via interface 429, packet size 64 

Reply for icmp_seq=1 from 2001:db8:47::7 via interface 429 hops-limit: 63, trip-time: 9.497 ms

        Local transmit time: 2026-06-09 07:20:17 UTC 844.327 ms

        Remote receive time: 2026-06-09 07:20:17 UTC 974.926 ms

Request for icmp_seq=2, via interface 429, packet size 64 

Reply for icmp_seq=2 from 2001:db8:47::7 via interface 429 hops-limit: 63, trip-time: 67.630 ms

        Local transmit time: 2026-06-09 07:20:18 UTC 840.312 ms

        Remote receive time: 2026-06-09 07:20:19 UTC 6.273 ms

Request for icmp_seq=3, via interface 429, packet size 64 

Reply for icmp_seq=3 from 2001:db8:47::7 via interface 429 hops-limit: 63, trip-time: 38.220 ms

        Local transmit time: 2026-06-09 07:20:19 UTC 843.228 ms

        Remote receive time: 2026-06-09 07:20:19 UTC 983.084 ms

Request for icmp_seq=4, via interface 429, packet size 64 

Reply for icmp_seq=4 from 2001:db8:47::7 via interface 429 hops-limit: 63, trip-time: 10.654 ms

        Local transmit time: 2026-06-09 07:20:20 UTC 840.931 ms

        Remote receive time: 2026-06-09 07:20:20 UTC 971.686 ms

Request for icmp_seq=5, via interface 429, packet size 64 

Reply for icmp_seq=5 from 2001:db8:47::7 via interface 429 hops-limit: 63, trip-time: 5.468 ms

        Local transmit time: 2026-06-09 07:20:21 UTC 846.190 ms

        Remote receive time: 2026-06-09 07:20:21 UTC 976.553 ms


--- lsping statistics ---

5 packets transmitted, 5 packets received, 0% packet loss

round-trip min/avg/max/stddev = 5.468/26.294/67.630/23.712 ms


Friday, April 24, 2026

Segment Routing: Managing SRv6 Header Overhead with uSID and SRm6

In my last post, we looked at how to configure SRv6 on the Nokia 7750 SR. One big challenge with SRv6 is the header overhead. Since every "Segment Identifier" (SID) is a full 128-bit IPv6 address inside the SRH header, the header gets very large very quickly.

This extra weight often causes fragmentation. When a packet is too big for the MTU of a link, it has to be broken into pieces.

This is bad for two reasons:

  1. It slows down the network because of the processing power needed for fragmentation/reassembly.

  2. It's a security risk, as hackers often use fragmentation attacks to sneak past security filters.

We have two main options to make the IPv6 headers smaller:

1. Micro-SID (uSID)

Micro-SID is strongly recommended by Nokia and Cisco. Instead of giving every hop a full 128-bit address, uSID uses a "container" concept.

How it works: It takes one 128-bit address and divides it up. The first part (the Locator) identifies the network, and the rest of the bits are used for "mini-IDs" (16-bit length in FP-based platforms or 32-bit for other platforms in Nokia).

Ideally, 6 mini-SID hops are injected inside a single 128-bit address. This keeps the header small and prevents the packet from needing to be fragmented.

2. SRm6

This is a different approach, mostly recommended by Juniper. Juniper always does things differently!

SRm6 runs Segment Routing over "Native IPv6" without using the heavy SRv6 header. It uses much smaller IDs—only 16 or 32 bits per destination. This makes the packet look more like a standard IPv6 packet, which saves a lot of space.


Lab Example: SRH Header Capture

Here is a screenshot from my lab. You can see the SRH (Segment Routing Header) in the packet capture. Notice how much space the segment list takes up when we use standard 128-bit SIDs.




Final Thoughts

In my view, if you are working in a multi-vendor environment, sticking with uSID is the better path for SRv6. It’s becoming the industry standard for keeping the data plane efficient while ensuring compatibility between the big players like Nokia and Cisco.

Tuesday, April 21, 2026

Deploying Segment Routing SRV6 over IPv6 on Nokia 7750 Platforms

Nokia 7750 SR router support SRV6 on FP-based platforms on FP4 onwards. SR-OS does not support SRv6 for OSPFv3 with current support only for IS-IS in both Multi-Topology.











Steps to enable SRV6 over IPV6 network in Nokia 7750 SR

1. Forwarding Path Extension (FPE)

In General, Whenever IP encapsulated in IP on a FP based flatforms that need to be passed to FPE for processing multiple times, FPE is an extension of PXC  features that loop the ports logically for multiple loop itself allowing two time passes through FPE.

PXC configuration required only on originating/terminating Routers only.

Enabling the mac chip for multiple entry and exit. 

echo "Card Configuration"

#--------------------------------------------------

    card 1

        card-type iom-1

        mda 1

            xconnect

                mac 1 create

                    loopback 1 create 

                    exit

                exit

            exit

            no shutdown

        exit

        no shutdown

    exit


Enabling the port that will be used for looping the packets internally.

    port 1/1/c5/1

        ethernet

            dot1x

                tunneling             

            exit

            mode hybrid

            encap-type dot1q

        exit

        no shutdown

    exit

    port 1/1/c6/1

        ethernet

            dot1x

                tunneling

            exit

            mode hybrid

            encap-type dot1q

        exit

        no shutdown

    exit


Mac 1:


    port 1/1/m1/1

        no shutdown

    exit


Next step is configuring the PXC ports and assign the interface

    port-xc

        pxc 1 create

            no shutdown

            port 1/1/c5/1

        exit

        pxc 2 create

            no shutdown

            port 1/1/c6/1

        exit

    exit

    port pxc-1.a

        ethernet

        exit

        no shutdown

    exit

    port pxc-1.b

        ethernet

        exit

        no shutdown

    exit

    port pxc-2.a

        ethernet

        exit

        no shutdown

    exit

    port pxc-2.b

        ethernet

        exit

        no shutdown

    exit


Last step is enabling the Forwarding Path Extensions. FPC can be used for any other application so we are explicitly mention 

fpe 1 used for origination and fpe 2 used for termination of SRV6 tunnel

    fwd-path-ext

        fpe 1 create

            path pxc 1

            srv6 origination

                interface-a

                exit

                interface-b

                exit

            exit

        exit

        fpe 2 create

            path pxc 2

            srv6 termination

                interface-a

                exit

                interface-b

                exit

            exit

        exit

    exit


*A:PE5# show fwd-path-ext fpe 1 

=====================================================================

FPE Id: 1
=====================================================================
Description        : (Not Specified)
Multi-Path         : Disabled                          
Path               : pxc 1
Pw Port Extension  : Disabled                          Oper     : down
Sub Mgmt Extension : Disabled                          Oper     : N/A
Vxlan              : Disabled                          Oper     : down
Segment-Routing V6 : Enabled                           Oper     : up
SRv6 Type          : origination                       
If-A Qos Policy    : default                           
If-B MTU           : 9786 bytes                        Oper MTU : 8914 bytes
If-B Qos Policy    : default                           
Cups Steering      : Disabled                          Oper     : N/A
MVPN UMH Rate Mon  : Disabled                          
=====================================================================
*A:PE5# show fwd-path-ext fpe 2 
=====================================================================
FPE Id: 2
=====================================================================
Description        : (Not Specified)
Multi-Path         : Disabled                          
Path               : pxc 2
Pw Port Extension  : Disabled                          Oper     : down
Sub Mgmt Extension : Disabled                          Oper     : N/A
Vxlan              : Disabled                          Oper     : down
Segment-Routing V6 : Enabled                           Oper     : up
SRv6 Type          : termination                       
If-A Qos Policy    : default                           
If-B MTU           : 0 bytes                           Oper MTU : 8914 bytes
If-B Qos Policy    : default                           
Cups Steering      : Disabled                          Oper     : N/A
MVPN UMH Rate Mon  : Disabled                          
=====================================================================

Next step is to configuring the locator and assign the locator to the Base routing instanace

Locator enabled is 0 and 128, with Block-length of 48. we need to assign the originating and terminating fpe.

we need to configure the srh-mode for base routing instance, The srh-mode then defines the method of processing the SRH and can be either usp, psp, ps-usd, usp-usd, usp-usd, or psp-usp-usd, with the default being psp


Segment Routing v6 Configuration

       segment-routing

            segment-routing-v6

                origination-fpe 1

                source-address fd00::3

                locator "Algo0-locator"

                    block-length 48

                    termination-fpe 2

                    prefix

                        ip-prefix fd00:db8:1:3::/64

                    exit

                    static-function

                    exit

                    no shutdown

                exit

                locator "Algo128-locator"

                    block-length 48

                    termination-fpe 2

                    algorithm 128

                    prefix

                        ip-prefix fd00:db8:128:3::/64

                    exit

                    static-function

                    exit

                    no shutdown

                exit

                base-routing-instance

                    locator "Algo0-locator"

                        function

                            end-x-auto-allocate srh-mode usp protection protected

                            end 1

                                srh-mode usp

                            exit

                        exit

                    exit

                exit

            exit

Once the locator is configured then advertise them vis ISIS to all other routers in the network.

configure router isis 2

            segment-routing-v6

                locator "Algo0-locator"

                    level-capability level-2

                    exit              

                    level 2

                        metric 1

                    exit

                exit

                no shutdown

            exit


A:PE5# show router segment-routing-v6 local-sid 
=========================================================================
Segment Routing v6 Local SIDs
=========================================================================
SID                                               Type           Function
  Locator                                                        
  Context                                                        
-------------------------------------------------------------------------------
fd00:db8:1:5:0:1000::                             End            1
  Algo0-locator
  Base
fd00:db8:1:5:0:4000::                             End.X          4
  Algo0-locator
  None
fd00:db8:1:5:0:5000::                             End.X          5
  Algo0-locator
  None
-------------------------------------------------------------------------------
SIDs : 3
-------------------------------------------------------------------------------
=========================================================================

*A:PE5# show router segment-routing-v6 base-routing-instance 
=========================================================================
Segment Routing v6 Base Routing Instance
=========================================================================
Locator                                                           
 Type          Function  SID                                     Status/InstId
  SRH-mode     Oper Func Interface                               Protection
-------------------------------------------------------------------------------
Algo0-locator
 End           1         fd00:db8:1:5:0:1000::                   ok
  USP          1                                                 
-------------------------------------------------------------------------------
 Auto-allocated End.X:  USP Protected,
-------------------------------------------------------------------------------
 End.X         4         fd00:db8:1:5:0:4000::                   1
  USP                    PE1                                     Protected
  ISIS Level: L2 Mac Address: aa:c1:ab:46:a4:9a Nbr Sys Id: 0010.0000.0001
 End.X         5         fd00:db8:1:5:0:5000::                   1
  USP                    PE6                                     Protected
  ISIS Level: L2 Mac Address: aa:c1:ab:6e:ca:0b Nbr Sys Id: 0010.0000.0006
-------------------------------------------------------------------------------
=========================================================================
Legend: * - System allocated

*A:PE5# show router route-table ipv6 protocol srv6 
=========================================================================
IPv6 Route Table (Router: Base)
=========================================================================
Dest Prefix[Flags]                            Type    Proto     Age        Pref
      Next Hop[Interface Name]                                    Metric   
-------------------------------------------------------------------------------
fd00:db8:1:5::/64                             Local   SRV6      29d14h16m  3
       Black Hole                                                   0
fd00:db8:1:5:0:1000::/128                     Local   SRV6      29d14h14m  3
       Black Hole                                                   0
fd00:db8:128:5::/64                           Local   SRV6      29d14h17m  3
       Black Hole                                                   0
-------------------------------------------------------------------------------
No. of Routes: 3
Flags: n = Number of times nexthop is repeated
       B = BGP backup route available
       L = LFA nexthop available
       S = Sticky ECMP requested
=========================================================================

i could see that route is pointing towards blackhole but in PE3 its pointing to the PXC interface

*A:PE3>config>router>segment-routing>srv6# show router route-table ipv6 fd00:db8:1:3::/64 
=========================================================================
IPv6 Route Table (Router: Base)
=========================================================================
Dest Prefix[Flags]                            Type    Proto     Age        Pref
      Next Hop[Interface Name]                                    Metric   
-------------------------------------------------------------------------------
fd00:db8:1:3::/64                             Local   SRV6      11d16h21m  3
       fe80::201-"_tmnx_fpe_2.a"                                    0
-------------------------------------------------------------------------------
No. of Routes: 1
Flags: n = Number of times nexthop is repeated
       B = BGP backup route available
       L = LFA nexthop available
       S = Sticky ECMP requested
=========================================================================
After checking the configuration identified on PE3 the PXC interface is shut, Enabled them now

*A:PE5>config>port-xc#  pxc 2 no shutdown 
*A:PE5>config>port-xc# pxc 1 no shutdown  
*A:PE5>config>port-xc# info 
----------------------------------------------
        pxc 1 create
            port 1/1/c5/1
            no shutdown
        exit
        pxc 2 create
            port 1/1/c6/1
            no shutdown
        exit
----------------------------------------------

After the configuration i could see that route is pointing now to pxc as expected

*A:PE5>config>port-xc# show router route-table ipv6 protocol srv6 
=========================================================================
IPv6 Route Table (Router: Base)
=========================================================================
Dest Prefix[Flags]                            Type    Proto     Age        Pref
      Next Hop[Interface Name]                                    Metric   
-------------------------------------------------------------------------------
fd00:db8:1:5::/64                             Local   SRV6      00h00m25s  3
       fe80::201-"_tmnx_fpe_2.a"                                    0
fd00:db8:1:5:0:1000::/128                     Local   SRV6      29d14h20m  3
       Black Hole                                                   0
fd00:db8:128:5::/64                           Local   SRV6      00h00m25s  3
       fe80::201-"_tmnx_fpe_2.a"                                    0
-------------------------------------------------------------------------------
No. of Routes: 3
Flags: n = Number of times nexthop is repeated
       B = BGP backup route available
       L = LFA nexthop available
       S = Sticky ECMP requested
=========================================================================
Route table entry for PE5 SRV6 Prefix
*A:PE3# show router route-table fd00:db8:1:5::/64 
=========================================================================
IPv6 Route Table (Router: Base)
=========================================================================
Dest Prefix[Flags]                            Type    Proto     Age        Pref
      Next Hop[Interface Name]                                    Metric   
-------------------------------------------------------------------------------
fd00:db8:1:5::/64                             Remote  ISIS(2)   27d00h05m  18
       fd00:db8:1:5::/64 (tunneled:SRV6-ISIS)                       41
-------------------------------------------------------------------------------
No. of Routes: 1
Flags: n = Number of times nexthop is repeated
       B = BGP backup route available
       L = LFA nexthop available
       S = Sticky ECMP requested
=========================================================================
*A:PE5# show router route-table fd00:db8:1:3::/64 
=========================================================================
IPv6 Route Table (Router: Base)
=========================================================================
Dest Prefix[Flags]                            Type    Proto     Age        Pref
      Next Hop[Interface Name]                                    Metric   
-------------------------------------------------------------------------------
fd00:db8:1:3::/64                             Remote  ISIS(1)   11d16h40m  18
       fd00:db8:1:3::/64 (tunneled:SRV6-ISIS)                       41
-------------------------------------------------------------------------------
No. of Routes: 1
Flags: n = Number of times nexthop is repeated
       B = BGP backup route available
       L = LFA nexthop available
       S = Sticky ECMP requested
=========================================================================
*A:PE3# 

Ping is working successfully between ALGO SRV6 Locator

*A:PE5# ping fd00:db8:1:3:0:1000:: 
PING fd00:db8:1:3:0:1000:: 56 data bytes
64 bytes from fd00:db8:1:3:0:1000:: icmp_seq=1 hlim=61 time=8.23ms.
64 bytes from fd00:db8:1:3:0:1000:: icmp_seq=2 hlim=61 time=2.22ms.
64 bytes from fd00:db8:1:3:0:1000:: icmp_seq=3 hlim=61 time=2.27ms.
64 bytes from fd00:db8:1:3:0:1000:: icmp_seq=4 hlim=61 time=2.37ms.
^C
ping aborted by user
---- fd00:db8:1:3:0:1000:: PING Statistics ----
4 packets transmitted, 4 packets received, 0.00% packet loss
round-trip min = 2.22ms, avg = 3.77ms, max = 8.23ms, stddev = 0.000ms
*A:PE5# 
*A:PE3# ping fd00:db8:1:5:0:1000:: 
PING fd00:db8:1:5:0:1000:: 56 data bytes
64 bytes from fd00:db8:1:5:0:1000:: icmp_seq=1 hlim=61 time=2.42ms.
64 bytes from fd00:db8:1:5:0:1000:: icmp_seq=2 hlim=61 time=2.29ms.
64 bytes from fd00:db8:1:5:0:1000:: icmp_seq=3 hlim=61 time=2.42ms.
^C
ping aborted by user
---- fd00:db8:1:5:0:1000:: PING Statistics ----
3 packets transmitted, 3 packets received, 0.00% packet loss
round-trip min = 2.29ms, avg = 2.38ms, max = 2.42ms, stddev = 0.000ms
*A:PE3#