Skip to content

Purged BNG Blaster injected LSPs are not deleted from LSDB of IOS XR #331

@raszuk

Description

@raszuk

I continue playing with BNG Blaster and IOS XR ISIS. I set lsp lifetime to 400 everywhere.

Cisco IOS XR Software, Version 24.3.1

robert@bng1:~/bng/isis_topo1$ sudo ./bngblaster -v
Version: DEV
Compiler: GNU (13.3.0)
IO Modes: packet_mmap_raw (default), packet_mmap, raw

robert@bng1:~/bng/isis_topo1$ sudo bngblaster -v
Version: 0.9.19
Compiler: GNU (13.3.0)
IO Modes: packet_mmap_raw (default), packet_mmap, raw

I am observing ISIS Purged LSPs staying "stuck" in the IOS XR database forever. From what I remember normally after lifetime expires and there is no refresh they would stay 60 sec and be gone.

Well they are not gone ... this 60 sec timer keeps refreshing every 60 sec. They are listed as Purged thought.

See below LSPs starting with id: 0070.0700.000x.00-00

No ISIS clear seems to remove them. Node reload removes some of them, but not all.

Would you have any clue what am I doing wrong or how to clean them ?

RP/0/RP0/CPU0:R1xr#show isis database
Sun Aug 17 15:37:37.951 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL
R1xr.00-00 * 0x000060de 0x7706 296 /* 0/0/0
R2xr.00-00 0x00005f94 0xa17f 272 /300 0/0/0
R3xr.00-00 0x00005e65 0x9343 259 /300 0/0/0
R4.00-00 0x00002495 0xb8c7 939 /1199 0/0/0
RR1.00-00 0x000017eb 0x2a70 697 /1199 0/0/0
R6.00-00 0x000017d8 0xe89d 891 /1199 0/0/0
0070.0700.0000.00-00 0x00000081 0x06a2 0 (0)/* 0/0/0
0070.0700.0001.00-00 0x00000081 0xfda9 0 (0)/* 0/0/0
0070.0700.0002.00-00 0x00000079 0x06a8 0 (0)/* 0/0/0
0070.0700.0003.00-00 0x00000079 0xfdaf 0 (0)/* 0/0/0

Total Level-2 LSP count: 10 Local Level-2 LSP count: 1

RP/0/RP0/CPU0:R1xr#show isis database
Sun Aug 17 15:37:39.094 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL
R1xr.00-00 * 0x000060df 0x7507 299 /* 0/0/0
R2xr.00-00 0x00005f94 0xa17f 271 /300 0/0/0
R3xr.00-00 0x00005e65 0x9343 258 /300 0/0/0
R4.00-00 0x00002495 0xb8c7 938 /1199 0/0/0
RR1.00-00 0x000017eb 0x2a70 696 /1199 0/0/0
R6.00-00 0x000017d8 0xe89d 890 /1199 0/0/0
0070.0700.0000.00-00 0x00000081 0x06a2 0 (58)/* 0/0/0
0070.0700.0001.00-00 0x00000081 0xfda9 0 (58)/* 0/0/0
0070.0700.0002.00-00 0x00000079 0x06a8 0 (58)/* 0/0/0
0070.0700.0003.00-00 0x00000079 0xfdaf 0 (58)/* 0/0/0

Total Level-2 LSP count: 10 Local Level-2 LSP count: 1
RP/0/RP0/CPU0:R1xr#

RP/0/RP0/CPU0:R1xr#show isis database internal verbose 0070.0700.0000.00-00
Sun Aug 17 15:43:58.264 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL Len Received From On Reason
0070.0700.0000.00-00 0x00000081 0x06a2 0 (39)/* 0/0/0 48 15:23:38 R2xr Gi0/0/0/3 Purge
TLV code:13 length:13
Purge Originator: Upstream source 1011.2000.0001 , sent to 0000.0000.0001 R1xr
TLV code:137 length:4
Hostname: R1xr
RP/0/RP0/CPU0:R1xr#

Interestingly enough those zombie LSPs are being exchanged between IOS XR nodes even a few hours after the original src of those LSPs is gone ...

RP/0/RP0/CPU0:R1xr#show isis database internal verbose 0070.0700.0000.00-00
Sun Aug 17 15:51:44.293 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL Len Received From On Reason
0070.0700.0000.00-00 0x00000081 0x06a2 0 (53)/* 0/0/0 48 15:23:38 R2xr Gi0/0/0/3 Purge
TLV code:13 length:13
Purge Originator: Upstream source 1011.2000.0001 , sent to 0000.0000.0001 R1xr
TLV code:137 length:4
Hostname: R1xr

RP/0/RP0/CPU0:R1xr#clear isis process
Sun Aug 17 15:52:22.634 UTC
Reset ISIS process 200? [no]: yes

RP/0/RP0/CPU0:R1xr#show isis database internal verbose 0070.0700.0000.00-00
Sun Aug 17 15:52:28.196 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL Len Received From On Reason
The requested LSP 0070.0700.0000.00-00 was not found in the IS-IS 200 Level-2 LSP Database
RP/0/RP0/CPU0:R1xr#show isis database internal verbose 0070.0700.0000.00-00
Sun Aug 17 15:52:30.150 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL Len Received From On Reason
0070.0700.0000.00-00 0x00000081 0x06a2 0 (59)/* 0/0/0 48 15:52:33 R2xr Gi0/0/0/3 Purge
TLV code:13 length:13
Purge Originator: Upstream source 1011.2000.0001 , sent to 0000.0000.0001 R1xr
TLV code:137 length:4
Hostname: R1xr
RP/0/RP0/CPU0:R1xr#

And the same is seen when I clear the ISIS process on the other node R2xr:

RP/0/RP0/CPU0:R2xr#show isis database internal verbose 0070.0700.0000.00-00
Sun Aug 17 15:50:06.432 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL Len Received From On Reason
0070.0700.0000.00-00 0x00000081 0x06a2 0 (19)/* 0/0/0 48 15:47:25 R1xr Gi0/0/0/0 Purge
TLV code:13 length:13
Purge Originator: Upstream source 1011.2000.0001 , sent to 0000.0000.0001 R1xr
TLV code:137 length:4
Hostname: R1xr

RP/0/RP0/CPU0:R2xr#clear isis process
Sun Aug 17 15:52:54.637 UTC
Reset ISIS process 200? [no]: yes

RP/0/RP0/CPU0:R2xr#show isis database internal verbose 0070.0700.0000.00-00
Sun Aug 17 15:52:58.418 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL Len Received From On Reason
The requested LSP 0070.0700.0000.00-00 was not found in the IS-IS 200 Level-2 LSP Database
RP/0/RP0/CPU0:R2xr#show isis database internal verbose 0070.0700.0000.00-00
Sun Aug 17 15:53:00.174 UTC

IS-IS 200 (Level-2) Link State Database
LSPID LSP Seq Num LSP Checksum LSP Holdtime/Rcvd ATT/P/OL Len Received From On Reason
0070.0700.0000.00-00 0x00000081 0x06a2 0 (59)/* 0/0/0 48 15:53:00 R1xr Gi0/0/0/0 Purge
TLV code:13 length:13
Purge Originator: Upstream source 1011.2000.0001 , sent to 0000.0000.0001 R1xr
TLV code:137 length:4
Hostname: R1xr
RP/0/RP0/CPU0:R2xr#

= = = =

lspgen --area 49.0001/24 --level 2 --protocol isis
--connector 1011.2000.00b1
--mrt-file isis.mrt
--ipv4-link-prefix 6.6.0.0/30
--ipv4-node-prefix 7.7.0.0/32
--ipv4-external-prefix 8.8.0.0/24
--no-ipv6 --no-sr
--pcap-file isis.pcap
--write-config-file isis.cfg
--external-count 10
--node-count 5
--lsp-lifetime 400

sudo ./bngblaster -C _isis-bng-r1-r3.json -l isis -P isis.pcap -S run.sock -I

robert@bng1:~/bng/isis_topo1$ more _isis-bng-r1-r3.json
{
"interfaces": {
"network": [
{
"interface": "ens4",
"address": "1.1.8.1/30",
"gateway": "1.1.8.2",
"isis-instance-id": 1,
"isis-level": 2
},
{
"interface": "ens7",
"address": "1.1.10.1/30",
"gateway": "1.1.10.2",
"isis-instance-id": 2,
"isis-level": 2
}
]

},
"isis": [
    {
        "instance-id": 1,
        "area": [
            "49.0001/24"
        ],
        "hello-padding": true,
        "lsp-lifetime": 400,
        "system-id": "1011.2000.0001",
        "router-id": "1.0.1.12",
        "hostname": "BNG1ens4",
        "external": {
            "mrt-file": "isis.mrt",
            "connections": [
                {
                    "system-id": "0070.0700.0000.00",
                    "l2-metric": 20
                }
            ]
        }
    },
    {
        "instance-id": 2,
        "area": [
            "49.0001/24"
        ],
        "hello-padding": true,
        "lsp-lifetime": 400,
        "system-id": "1011.2000.0002",
        "router-id": "1.0.2.12",
        "hostname": "BNG1ens7",
        "instance-id": 2,
        "area": [
            "49.0001/24"
        ]
    }
],
"streams": [
    {
        "name": "RAW1",
        "type": "ipv4",
        "direction": "downstream",
        "priority": 128,
        "destination-ipv4-address": "1.0.1.12",
        "length": 256,
        "pps": 1,
        "network-interface": "ens7"
    }
]

}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions