Showing posts with label Segment Routeing. Show all posts
Showing posts with label Segment Routeing. Show all posts

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, March 31, 2026

SR-MPLS Troubleshooting: Identifying and Fixing Controller-Injected Null EROs

Recently I faced the issue where SR-MPLS is down due to an empty ERO path for SR-TE LSP, and the path is managed by the controller.

Background:

Implemented SR-MPLS LSP for one of our customers. where the LSP paths are injected from the controller based on the constraint. We faced some issues with respect to the controller recently and fixed them after the upgrade. Post upgrade, we observed that one of the LSPs didn't come up.

Verification:

End-to-end path manually to see whether it meets the constraints mentioned for the path. Everything seems to be fine.

The team checked the controller logs; there are no errors but it is sending empty ERO to the router

As this is very critical, I did perform troubleshooting and am finally able to bring the LSP path with correct path details instead of the empty ERO from the controller:


LSP Configuration:

            lsp "srte-access1-pre-agg" sr-te
                to X.X.X.X
                path-computation-method pce
                max-sr-labels 4 additional-frr-labels 2
                pce-report enable
                pce-control
                bfd
                    failure-action failover-or-down
                exit
                path-profile 1 path-group 128946735
                primary "srte-p"
                    priority 1 1
                exit
                secondary "srte-s"
                    standby
                    priority 7 7
                exit
                no shutdown
            exit
            no shutdown


Troubleshooting Steps:

# show router mpls sr-te-lsp

=====================================================================
MPLS SR-TE LSPs (Originating)
=====================================================================
LSP Name                                            Tun     Protect   Adm  Opr
  To                                                Id      Path
---------------------------------------------------------------------

srte-access1-pre-agg                   4       N/A       Up   Dwn
  X.X.X.X
---------------------------------------------------------------------
LSPs : 1
=====================================================================

Enabled Debug for SR-TE LSP:

debug
    router "Base"
        mpls lsp "srte-access1-pre-agg"
            event
                iom
                lsp-setup
                xc
                frr
                mbb
                misc
                pcc
                te
            exit
        exit
    exit

config>log>log-id$ info
----------------------------------------------
            from debug-trace
            to session
            no shutdown

Debug Logs

Received PCC Reply for srte-access1-pre-agg::srte-p(LspId 62454)
User SR-TE, GenId 2, NumRequests 1
[Reply 1]
  LspType SR-TE, TunnelId 4, PathIdx 10
  LspId 62454, VrId 1, ExtTunnelId X.X.X.X
  LspName "srte-access1-pre-agg::srte-p"
  From X.X.X.X, To X.X.X.X
  Status Path not found, PCCHasLspState Yes
  ERO:
    No hops
  OperBandwidth 0Mbps, HopCnt 0, IgpMetric 0, TeMetric 0

From debug it's clear the controller is not able to calculate the path for the LSP. The next step removed the LSP control from PCC to PCE.

After configuring the local-cspf to calculate the path, LSP has come up. So it gave me an idea that there is no issue with the path or the CSPF configuration along the path.

PE>config>router>mpls>lsp# path-computation-method pce

=====================================================================
MPLS SR-TE LSPs (Originating)
=====================================================================
LSP Name                                            Tun     Protect   Adm  Opr
  To                                                Id      Path
---------------------------------------------------------------------

srte-access1-pre-agg                   4       N/A       Up   Up
  X.X.X.X
---------------------------------------------------------------------
LSPs : 1
=====================================================================

LSP Path Detail:

Primary         : srte-p
                                            Down Time: 0d 00:19:02
Bandwidth       : 0 Mbps
Standby         : srte-s
                                            Down Time: 0d 00:19:10
Bandwidth       : 0 Mbps



Rollback the configuration to PCC from PCE, then check again, but the LSP is again gone down with an empty ERO. Due to some reason, the controller is not able to calculate the path for the LSP. seems something is stuck but not able to figure out until this point

Next, path profiles are responsible for setting the constraint on the controller, so remove it, and the LSP has come up. So it's clear that something is wrong in controller in calculating the path, maybe due to something got stuck and its not able to remove it from its cache. 

PE>config>router>mpls>lsp# no path-profile 1

=============================================================
MPLS SR-TE LSPs (Originating)
=============================================================
LSP Name                                            Tun     Protect   Adm  Opr
  To                                                Id      Path
-------------------------------------------------------------
srte-access1-pre-agg                   4       N/A       Up   Up
  X.X.X.X
-------------------------------------------------------------
LSPs : 1
=============================================================

This time I enabled the path profile configuration on the router, but I did change the path group value, and then the LSP came up, and now the controller was able to calculate the path and send the details to the router.

Debug Logs:

"MPLS: SR-TE : PCC
Received PCC Reply for srte-access1-pre-agg (LspId XXX)
User SR-TE, GenId 2, NumRequests 1
[Reply 1]
  LspType SR-TE, TunnelId 4, PathIdx 9
  LspId XXX, VrId 1, ExtTunnelId XXXX
  LspName "srte-access1-pre-agg"
  From X.X.X.X, To X.X.X.X
  Status Path found, PCCHasLspState Yes
  ERO:
    [1] SIDType IPv4 Node, SID 23434343, RemoteAddr X.X.X.X, Loose
    [2] SIDType IPv4 Node, SID 23432434, RemoteAddr X.X.X.X, Loose
  OperBandwidth 0Mbps, HopCnt 2, IgpMetric XXX, TeMetric 0
"

LSP status:

show router mpls sr-te-lsp "srte-access1-pre-agg" path "srte-p"

=============================================================
MPLS SR-TE LSP srte-access1-pre-agg
Path srte-p
=============================================================
-------------------------------------------------------------
LSP Name    : srte-access1-pre-agg
From             : X.X.X.X
To               : X.X.X.X
Adm State        : Up                      Oper State        : Up
-------------------------------------------------------------
Path Name                        Type           Adm  Opr
-------------------------------------------------------------
srte-p
                                 Primary         Up   Up
=============================================================

This LSP was down before the controller upgrade, and this group value was copied somehow after the upgrade. Group value in the cache with the previous issue state causes the controller to send the empty ERO continuously. After reconfiguring with the new value, the old group value got cleared, and the LSP came up. After monitoring the LSP for some time, I changed the group value as per the agreed standard. 

Recommandation:


It's not recommended to perform the troubleshooting without the support team because, from my experience with various roles, it gave me enough confidence to do all the various ways of bringing up the LSP without causing the traffic impact in the network.


Wednesday, March 18, 2026

Implemeting SR-MPLS Tunnel over IPV6 Network Core in Nokia 7750 SR

SR MPLS over Ipv6 Core network same as IPV4 because it uses mpls label for to deliver the packets end to end. SR MPLS will be on top on IPV6 Core. We can only use IPV6 without requirement of MPLS that concept is SRV6, SRV6 uses IPv6 + SRH to delivery the packet end to end. We will explore more on SRV6 in our upcoming blog











Lets prepare the IPV6 address and prepare them to enable IPV6 end to end.

Configured the router's interface with IPV6 address























Enabling ISIS to advertise the IPV6 capabilities to the neighbour routers

 Enabling cspf for ipv6

/configure router isis 1 traffic-engineering-option ipv6

Enabling IPv6 routeing within mt0

/configure router isis 1 ipv6-routing native

/configure router

        segment-routing

            sr-mpls

                prefix-sids "system" 

                    ipv6-sid index 81

                    exit

                exit



 

ISIS Database:

 
*A:PE1# show router isis 1 database level 2 PE1.00-00        
 
===============================================================================
Rtr Base ISIS Instance 1 Database
===============================================================================
LSP ID                                  Sequence  Checksum Lifetime Attributes
-------------------------------------------------------------------------------
 
Displaying Level 2 database
-------------------------------------------------------------------------------
PE1.00-00                               0xcb1     0xcdce   1138     L1L2
Level (2) LSP Count : 1
===============================================================================
*A:PE1# show router isis 1 database level 2 PE1.00-00 detail
 
===============================================================================
Rtr Base ISIS Instance 1 Database (detail)
===============================================================================
 
Displaying Level 2 database
-------------------------------------------------------------------------------
LSP ID    : PE1.00-00                                   Level     : L2
Sequence  : 0xcb1                  Checksum  : 0xcdce   Lifetime  : 1135
Version   : 1                      Pkt Type  : 20       Pkt Ver   : 1
Attributes: L1L2                   Max Area  : 3        Alloc Len : 1492
SYS ID    : 0010.0000.0001         SysID Len : 6        Used Len  : 544
 
TLVs :
  Area Addresses:
    Area Address : (3) 49.0001
  Supp Protocols:
    Protocols     : IPv4
    Protocols     : IPv6
  IS-Hostname   : PE1
  Router ID   :
    Router ID   : 1.0.0.1
  TE Router ID v6  :
    Router ID   : fd00::1
  Router Cap : 1.0.0.1, D:0, S:0
    TE Node Cap : B E M  P
    SR Cap: IPv4 MPLS-IPv6
       SRGB Base:20000, Range:100
    SR Alg: metric based SPF, 129, 130
    Node MSD Cap: BMI : 12 ERLD : 15
    FAD Sub-Tlv:
        Flex-Algorithm   : 129
        Metric-Type      : delay
        Calculation-Type : 0
        Priority         : 100
        Flags: M
    FAD Sub-Tlv:
        Flex-Algorithm   : 130       
        Metric-Type      : igp
        Calculation-Type : 0
        Priority         : 100
        Flags: M
        Include Any Admin Group: 0x100000
  I/F Addresses :
    I/F Address   : 1.0.0.1
    I/F Address   : 192.1.1.1
    I/F Address   : 10.1.5.1
    I/F Address   : 10.1.21.1
    I/F Address   : 192.168.0.2
  I/F Addresses IPv6 :
    IPv6 Address    : fd00::1
    IPv6 Address    : fd00:10:1:2::1
    IPv6 Address    : fd00:10:1:11::1
    IPv6 Address    : fd00:10:5:1::1
  TE IS Nbrs   :
    Nbr   : PE5.01                             
    Default Metric  : 10
    Sub TLV Len     : 59
    IF Addr   : 10.1.5.1
    IPv6 Addr : fd00:10:5:1::1
    TE APP LINK ATTR    :
      SABML-flag:Non-Legacy SABM-flags: S 
        MaxLink BW: 10000000 kbps
    TE APP LINK ATTR    :
      SABML-flag:Non-Legacy SABM-flags:   X
        Admin Grp : 0x100000
    LAN-Adj-SID: 00 10 00 00 00 05  Flags:v4VL Weight:0 Label:524272
  TE IS Nbrs   :
    Nbr   : PE2.02                             
    Default Metric  : 10
    Sub TLV Len     : 61
    IF Addr   : 10.1.21.1
    IPv6 Addr : fd00:10:1:2::1
    TE APP LINK ATTR    :
      SABML-flag:Non-Legacy SABM-flags: S 
        MaxLink BW: 10000000 kbps    
    LAN-Adj-SID: 00 10 00 00 00 02  Flags:v4VL Weight:0 Label:524273
    LAN-Adj-SID: 00 10 00 00 00 02  Flags:v6VL Weight:0 Label:524286
  TE IS Nbrs   :
    Nbr   : ASBR1.03                           
    Default Metric  : 10
    Sub TLV Len     : 48
    IF Addr   : 192.1.1.1
    IPv6 Addr : fd00:10:1:11::1
    TE APP LINK ATTR    :
      SABML-flag:Non-Legacy SABM-flags: S 
        MaxLink BW: 10000000 kbps
    LAN-Adj-SID: 01 10 00 00 00 01  Flags:v4VL Weight:0 Label:524275
  TE IP Reach   :
    Default Metric  : 10
    Control Info:    , prefLen 24
    Prefix   : 192.168.0.0
    Default Metric  : 10
    Control Info:    , prefLen 24
    Prefix   : 192.1.1.0
    Default Metric  : 10
    Control Info:    , prefLen 24
    Prefix   : 10.1.5.0
    Default Metric  : 10
    Control Info:    , prefLen 24
    Prefix   : 10.1.21.0
    Default Metric  : 0
    Control Info:   S, prefLen 32
    Prefix   : 1.0.0.1
    Sub TLV   :
      Prefix-SID Index:11, Algo:0, Flags:NnP
  IPv6 Reach:
    Metric: ( IS) 0
    Prefix   : fd00::1/128
    Sub TLV   :
      Prefix-SID Index:71, Algo:0, Flags:NnP
    Metric: ( I ) 10
    Prefix   : fd00:10:1:2::/64
    Metric: ( I ) 10                 
    Prefix   : fd00:10:1:11::/64
    Metric: ( I ) 10
    Prefix   : fd00:10:5:1::/64
Level (2) LSP Count : 1






Enabling SR-TE LSP with IPv6

            lsp "tope3-ipv6" sr-te
                to fd00::3
                path-computation-method local-cspf
                metric-type te
                max-sr-labels 5 additional-frr-labels 2
                primary "local-cspf"
                exit
                no shutdown
            exit
            no shutdown

 









*A:PE5# show router mpls sr-te-lsp family ipv6 detail

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

MPLS SR-TE LSPs (Originating) (Detail)

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

Legend : + - Inherited

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

Type : Originating

---------------------------------------------------------------------

LSP Name   : tope3-ipv6

LSP Type        : SrTeLsp                   LSP Tunnel ID        : 3

LSP Index       : 65538                     TTM Tunnel Id        : 655364

From            : fd00::5                  

To              : fd00::3

Adm State       : Up                        Oper State           : Up

LSP Up Time     : 0d 00:06:50               LSP Down Time        : 0d 00:00:00

Transitions     : 1                         Path Changes         : 1

Retry Limit     : 0                         Retry Timer          : 30 sec

Hop Limit       : 255                       Negotiated MTU       : 8902

PathCompMethod  : local-cspf               

FallbkPathComp  : not-applicable           

Metric          : N/A                       Metric Type          : te

Local Sr Protec*: preferred                 Label Stack Reduction: Disabled

Load Bal Wt     : N/A                       ClassForwarding      : Disabled

Include Grps    :                           Exclude Grps         :

None                                           None

Egress Stats    : Disabled                 

BFD Template    : None                      BFD Ping Intvl       : N/A

BFD Enable      : False                     BFD Failure-action   : None

WaitForUpTimer  : 4                        

ReturnPathLabel : None                     

BFD Source Addr : None

 

Revert Timer    : Disabled                  Next Revert In       : N/A

Entropy Label   : Enabled+                  Oper Entropy Label   : Enabled

Negotiated EL   : Disabled                  Override Tunnel ELC  : Disabled

VprnAutoBind    : Enabled                  

IGP Shortcut    : Enabled                   BGP Shortcut         : Enabled

IGP LFA         : Disabled                  IGP Rel Metric       : Disabled

AllowSrOverSrte : Disabled                 

BGPTransTun     : Enabled                  

Oper Metric     : 16777215                 

PCE Report      : Disabled+                

PCE Control     : Disabled                 

Max SR Labels   : 5                         Additional FRR Labels: 2

Binding SID     : 0                        

Path Profile    : None                     

Admin Tags      : None                     

Primary(a)      : local-cspf

                                            Up Time              : 0d 00:06:51

Bandwidth       : 0 Mbps                   

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

* indicates that the corresponding row element may have been truncated.

*A:PE5#

 

*A:PE5# show router mpls sr-te-lsp family ipv6 path detail

 

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

MPLS SR-TE LSP

Path  (Detail)

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

Legend :

    S      - Strict                      L      - Loose

    A-SID  - Adjacency SID               N-SID  - Node SID

    +      - Inherited

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

LSP SR-TE tope3-ipv6

Path  local-cspf

---------------------------------------------------------------------

LSP Name    : tope3-ipv6

Path LSP ID      : 13824                  

From             : fd00::5                

To               : fd00::3                

Admin State      : Up                      Oper State        : Up

Path Name   : local-cspf

Path Type        : Primary                

Path Admin       : Up                      Path Oper         : Up

Path Up Time     : 0d 00:07:11             Path Down Time    : 0d 00:00:00

Retry Limit      : 0                       Retry Timer       : 30 sec

Retry Attempt    : 0                       Next Retry In     : 0 sec

 

PathCompMethod   : local-cspf              OperPathCompMethod: local-cspf

MetricType       : te                      Oper MetricType   : te

LocalSrProt      : preferred               Oper LocalSrProt  : preferred

LabelStackRed    : Disabled                Oper LabelStackRed: Disabled

 

Bandwidth        : No Reservation          Oper Bandwidth    : 0 Mbps

Hop Limit        : 255                     Oper HopLimit     : 255

Setup Priority   : 7                       Oper SetupPriority: 7

Hold Priority    : 0                       Oper HoldPriority : 0

DelayMetricLimit : No limit                OperDelayMetricLim: N/A

Inter-area       : N/A                    

 

PCE Updt ID      : 0                       PCE Updt State    : None

PCE Upd Fail Code: noError

 

PCE Report       : Disabled+               Oper PCE Report   : Disabled

PCE Control      : Disabled                Oper PCE Control  : Disabled

 

Include Groups   :                         Oper IncludeGroups:

None                                           None

Exclude Groups   :                         Oper ExcludeGroups:

None                                           None

Last Resignal    : n/a                    

 

IGP/TE/Del Metric: 40                      Oper Metric       : 16777215

Oper MTU         : 8902                    Path Trans        : 1

Degraded         : False                  

Failure Code     : noError

Failure Node     : n/a

Explicit Hops    :                        

    No Hops Specified

Actual Hops      :                        

    fd00:10:5:1::1

    (fd00::1)(A-SID)

    Record Label        : 524281

    fd00:10:1:11::11

 -> (fd00::11)(A-SID)

    Record Label        : 524276

    fd00:10:13:11::13

 -> (fd00::13)(A-SID)

    Record Label        : 524285

    fd00:10:13:3::3

 -> (fd00::3)(A-SID)

    Record Label        : 524286

 

BFD Configuration and State

Template         : None                    Ping Interval     : N/A

Enable           : False                   State             : notApplicable

ReturnPathLabel  : None                   

BFD Source Addr  : None

WaitForUpTimer   : 4 sec                   OperWaitForUpTimer: 0 sec

WaitForUpTmLeft  : 0                      

StartFail Rsn    : N/A

 

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