frr icon indicating copy to clipboard operation
frr copied to clipboard

frr8.4 MPLS decapsulation exception

Open Sherry0808 opened this issue 2 years ago • 7 comments
trafficstars

I have three devices with the following configurations: 172.16.19.1, 172.16.20.1, and 172.16.21.1. The terminal device 001 has an address of 192.168.103.1 and is directly connected to 172.16.21.1. The terminal device 002 has an address of 192.168.102.1 and is directly connected to 172.16.20.1. I am unable to access the terminal device with the address 192.168.103.1, which is connected to 172.16.21.1, from 192.168.102.1. Upon capturing packets on the interface of 172.16.21.1, I noticed an MPLS decapsulation exception. I have attached a screenshot of the packet capture. What could be the possible cause of this issue? Have any of you encountered a similar situation?

image

Sherry0808 avatar Sep 26 '23 11:09 Sherry0808

FRR only configures the routing tables for the kernel to work with, you are not showing any details on that. Please add the output of ip route list and ip -f mpls route list. If FRR installs MPLS label "routes" correctly, you'd need to look at the kernel code to figure out further details.

Also, a "MPLS decapsulation exception" sounds like you're looking at this in wireshark. You need to configure wireshark explicitly for the content of MPLS labeled packets, it cannot autodetect what the next protocol inside is. And whether the data inside is somehow wrong or not has nothing to do with FRR or the local system…

eqvinox avatar Sep 26 '23 15:09 eqvinox

What are the troubleshooting ideas? In what order should I check whether it is the MPLS configuration problem of FRR or the kernel problem?

Sherry0808 avatar Sep 27 '23 14:09 Sherry0808

@Sherry0808 -> Eqvinox gave you a starting place for us to help. I'm not sure what else we can do until you provide us the data asked for

donaldsharp avatar Sep 28 '23 12:09 donaldsharp

Building configuration...

Current configuration: ! frr version 8.4.2 frr defaults traditional log syslog informational no ipv6 forwarding ! interface eno1.902 ip address 10.1.0.6/30 exit ! interface eno1.904 ip address 10.1.0.9/30 exit ! interface eno1.906 ip address 10.1.0.14/30 exit ! interface lo ip address 10.0.0.3/32 ip router isis 1515 isis circuit-type level-2-only isis passive mpls enable exit ! interface bp_45 ip address 10.2.0.6/30 ip router isis 1515 isis circuit-type level-2-only mpls enable exit ! interface bp_47 ip address 10.2.0.9/30 ip router isis 1515 isis circuit-type level-2-only mpls enable exit ! interface bp_49 ip address 10.2.0.14/30 ip router isis 1515 isis circuit-type level-2-only mpls enable exit ! interface 28 ip address 172.16.21.1/24 exit ! interface ifcfg-eno2.904 exit ! interface eno2.904 exit ! router bgp 10808 bgp router-id 10.0.0.3 no bgp network import-check neighbor 10.0.0.2 remote-as 10808 neighbor 10.0.0.2 update-source 10.0.0.3 neighbor 10.0.0.4 remote-as 10808 neighbor 10.0.0.4 update-source 10.0.0.3 neighbor 10.0.0.5 remote-as 10808 neighbor 10.0.0.5 update-source 10.0.0.3 ! address-family ipv4 unicast neighbor 10.0.0.2 route-reflector-client neighbor 10.0.0.4 route-reflector-client neighbor 10.0.0.5 route-reflector-client exit-address-family ! address-family ipv4 vpn neighbor 10.0.0.2 activate neighbor 10.0.0.2 route-reflector-client neighbor 10.0.0.4 activate neighbor 10.0.0.4 route-reflector-client neighbor 10.0.0.5 activate neighbor 10.0.0.5 route-reflector-client exit-address-family exit ! router bgp 10808 vrf vrf-14 no bgp ebgp-requires-policy no bgp network import-check neighbor 172.16.21.5 remote-as 1010 neighbor 172.16.21.5 bfd neighbor 172.16.21.5 update-source 28 ! address-family ipv4 unicast redistribute connected redistribute static label vpn export auto rd vpn export 137260:36 rt vpn both 137260:36 export vpn import vpn exit-address-family exit ! mpls ldp router-id 10.0.0.3 neighbor 10.0.0.2 session holdtime 15 neighbor 10.0.0.2 ttl-security disable neighbor 10.0.0.2 password Sherry0808 neighbor 10.0.0.4 session holdtime 15 neighbor 10.0.0.4 ttl-security disable neighbor 10.0.0.4 password Sherry0808 neighbor 10.0.0.5 session holdtime 15 neighbor 10.0.0.5 ttl-security disable neighbor 10.0.0.5 password Sherry0808 ! address-family ipv4 discovery transport-address 10.0.0.3 label local allocate host-routes ! interface bp_45 exit ! interface bp_47 exit ! interface bp_49 exit ! exit-address-family ! exit ! router isis 1515 is-type level-2-only net 39.0000.0128.0100.0000.0003.00 exit ! bfd peer 172.16.21.5 local-address 172.16.21.1 vrf vrf-14 transmit-interval 500 receive-interval 500 exit ! exit ! end

#The above is the configuration on my device with the IP address 172.16.21.1. Can you analyze the reason based on this configuration?

Sherry0808 avatar Oct 03 '23 11:10 Sherry0808

Can we see the output of the following from the three PE devices (with addressing 172.16.19.1, 172.16.20.1, and 172.16.21.1)?

#show ip bgp vrf vrf-14 #show bgp ipv4 vpn #show mpls table #show isis route #show ldp interface

beith12 avatar Nov 02 '23 12:11 beith12

This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose label in order to avoid having this issue closed.

github-actions[bot] avatar May 01 '24 01:05 github-actions[bot]

This issue will be automatically closed in the specified period unless there is further activity.

frrbot[bot] avatar May 01 '24 01:05 frrbot[bot]