sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
724 stars 1.38k forks source link

After warm-reboot device, lldp info shows incompletely. #12528

Open coolkidBigEye opened 1 year ago

coolkidBigEye commented 1 year ago

Ethernet11 received lldp packet as follows: tcpdump: listening on Ethernet11, link-type EN10MB (Ethernet), snapshot length 262144 bytes 20:25:07.783897 LLDP, length 108 Chassis ID TLV (1), length 7 Subtype MAC address (4): 98:19:2c:65:47:90 0x0000: 0498 192c 6547 90 Port ID TLV (2), length 11 Subtype Local (7): 100GE1/0/3 0x0000: 0731 3030 4745 312f 302f 33 Time to Live TLV (3), length 2: TTL 120s 0x0000: 0078 System Name TLV (5), length 18: DX510-125.13.16.99 0x0000: 4458 3531 302d 3132 352e 3133 2e31 362e 0x0010: 3939 System Description TLV (6), length 5 DX510 0x0000: 4458 3531 30 System Capabilities TLV (7), length 4 System Capabilities [Bridge, WLAN AP, Router, Station Only] (0x009c) Enabled Capabilities [Bridge, Router] (0x0014) 0x0000: 009c 0014 Management Address TLV (8), length 12 Management Address length 5, AFI IPv4 (1): 125.13.16.99 Unknown Interface Numbering (1): 0 0x0000: 0501 7d0d 1063 0100 0000 0000 Port Description TLV (4), length 9: Ethernet3 0x0000: 4574 6865 726e 6574 33 Organization specific TLV (127), length 9: OUI IEEE 802.3 Private (0x00120f) Link aggregation Subtype (3) aggregation status [supported], aggregation port ID 0 0x0000: 0012 0f03 0100 0000 00 Organization specific TLV (127), length 9: OUI IEEE 802.3 Private (0x00120f) MAC/PHY configuration/status Subtype (1) autonegotiation [none] (0x00) PMD autoneg capability [unknown] (0x8000) MAU type unknown (0x004b) 0x0000: 0012 0f01 0080 0000 4b End TLV (0), length 0

but show lldp neighbors(not completed) : show lldp neighbors Ethernet11

LLDP neighbors:

Interface: Ethernet11, via: LLDP, RID: 8, Time: 1 day, 03:32:10 Chassis: ChassisID: mac 98:19:2c:65:47:90 Port: PortID: local 100GE1/0/3 PortDescr: Ethernet3 TTL: 120 PMD autoneg: supported: no, enabled: no MAU oper type: 100GbaseCR10 - 100GBASE-R PCS/PMA over 10 lane shielded copper balanc

other normal interface : Interface: Ethernet12, via: LLDP, RID: 9, Time: 1 day, 00:16:11 Chassis: ChassisID: mac 98:19:2c:65:47:30 SysName: xxxxx SysDescr: xxxx MgmtIP: 125.13.16.98 Capability: Bridge, on Capability: Router, on Capability: Wlan, off Capability: Station, off Port: PortID: local 100GE1/0/3 PortDescr: Ethernet3 TTL: 120 PMD autoneg: supported: no, enabled: no MAU oper type: 100GbaseCR10 - 100GBASE-R PCS/PMA over 10 lane shielded copper balanced cable

Output of show version: use 202111 release

show version Distribution: Debian 11.4 Kernel: 5.10.0-60.18.0.50.h323.x86_64 Build commit: 35b37312 Build date: Tue Oct 25 18:14:25 UTC 2022 Built by: sonic@kwephisprg08128

Before the issue happened,we warm-reboot the device,but there is no error in syslog.

coolkidBigEye commented 1 year ago

Maybe something wrong in kernerl,we do action: 1.ifconfig Ethernet11 down 2.ifconfig Ethernet11 up

The problem disappears. show lldp neighbors Ethernet11

LLDP neighbors:

Interface: Ethernet11, via: LLDP, RID: 20, Time: 0 day, 00:06:08 Chassis: ChassisID: mac 98:19:2c:65:47:90 SysName: xxx 125.13.16.99 SysDescr: xxx MgmtIP: 125.13.16.99 Capability: Bridge, on Capability: Router, on Capability: Wlan, off Capability: Station, off Port: PortID: local 100GE1/0/3 PortDescr: Ethernet3 TTL: 120 PMD autoneg: supported: no, enabled: no MAU oper type: 100GbaseCR10 - 100GBASE-R PCS/PMA over 10 lane shielded copper balanced cable

prgeor commented 1 year ago

@coolkidBigEye could you attach the tech support?

prgeor commented 1 year ago

@coolkidBigEye could you check if this fix is included https://github.com/sonic-net/sonic-buildimage/pull/9519 and if lldp restart helps?

coolkidBigEye commented 1 year ago

@coolkidBigEye could you check if this fix is included #9519 and if lldp restart helps?

I know this issue and the problem is found after this issue fixed。

coolkidBigEye commented 1 year ago

@coolkidBigEye could you attach the tech support?

The problem occurred only once, and there was no tech surport at that time. The problem will continue to be reproduced locally.