Lldp

LLDP Tests

Test LLDP Packets

Description

This scenario checks that a device can send and receive LLDP packets when LLDP is configured on an Ethernet interface.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.100.101/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.100.102/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Start packet capture in DUT0.

Step 3: Run command traffic dump monitor interface eth0 detail at DUT0.

Note

Stop packet capture in DUT0 and expect LLDP.

Show output
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
23:56:00.495712 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
23:56:28.956999 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP

Test LLDP Voice

Description

This scenario checks LLDP voice without VLAN works when configured on an Ethernet interface.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.100.101/24
set interfaces ethernet eth0 lldp voice dscp 54
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.100.102/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Start packet capture in DUT0.

Step 3: Run command traffic dump monitor interface eth0 detail at DUT0.

Note

Stop packet capture in DUT0 and expect: Organization specific TLV (127), length 8: OUI ANSI/TIA (0x0012bb), Network policy Subtype (2), Application type [voice] (0x01), Flags [none] and DSCP value 54.

Show output
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
23:56:36.136323 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
23:56:36.148259 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
23:56:36.192264 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
23:56:36.808275 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
23:57:04.747583 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP (0x88cc), length 246: LLDP, length 232
        Chassis ID TLV (1), length 7
          Subtype MAC address (4): de:ad:be:ef:6c:00
          0x0000:  04de adbe ef6c 00
        Port ID TLV (2), length 7
          Subtype MAC address (3): de:ad:be:ef:6c:00
          0x0000:  03de adbe ef6c 00
        Time to Live TLV (3), length 2: TTL 120s
          0x0000:  0078
        System Name TLV (5), length 4: osdx
          0x0000:  6f73 6478
        System Description TLV (6), length 116
          Debian GNU/Linux 12 (bookworm) Linux 6.12.73 #1~bpo12+1++teldat~v4.2.9.2~12~6d893ffb9 SMP PREEMPT_DYNAMIC Mon x86_64
          0x0000:  4465 6269 616e 2047 4e55 2f4c 696e 7578
          0x0010:  2031 3220 2862 6f6f 6b77 6f72 6d29 204c
          0x0020:  696e 7578 2036 2e31 322e 3733 2023 317e
          0x0030:  6270 6f31 322b 312b 2b74 656c 6461 747e
          0x0040:  7634 2e32 2e39 2e32 7e31 327e 3664 3839
          0x0050:  3366 6662 3920 534d 5020 5052 4545 4d50
          0x0060:  545f 4459 4e41 4d49 4320 4d6f 6e20 7838
          0x0070:  365f 3634
        System Capabilities TLV (7), length 4
          System  Capabilities [Bridge, WLAN AP, Router, Station Only] (0x009c)
          Enabled Capabilities [Router] (0x0010)
          0x0000:  009c 0010
        Management Address TLV (8), length 12
          Management Address length 5, AFI IPv4 (1): 192.168.100.101
          Interface Index Interface Numbering (2): 2
          0x0000:  0501 c0a8 6465 0200 0000 0200
        Management Address TLV (8), length 24
          Management Address length 17, AFI IPv6 (2): fe80::dcad:beff:feef:6c00
          Interface Index Interface Numbering (2): 2
          0x0000:  1102 fe80 0000 0000 0000 dcad beff feef
          0x0010:  6c00 0200 0000 0200
        Port Description TLV (4), length 4: eth0
          0x0000:  6574 6830
        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 (0x0000)
          0x0000:  0012 0f01 0080 0000 00
        Organization specific TLV (127), length 8: OUI ANSI/TIA (0x0012bb)
          Network policy Subtype (2)
            Application type [voice] (0x01), Flags [none]
            Vlan id 0, L2 priority 0, DSCP value 54

Test LLDP Voice Vlan

Description

This scenario checks LLDP voice with VLAN works when configured on an Ethernet interface.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces ethernet eth0 address 192.168.100.101/24
set interfaces ethernet eth0 lldp voice dscp 54
set interfaces ethernet eth0 lldp voice vlan 100 cos 3
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.100.102/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Start packet capture in DUT0.

Step 3: Run command traffic dump monitor interface eth0 detail at DUT0.

Note

Stop packet capture in DUT0 and expect: Organization specific TLV (127), length 8: OUI ANSI/TIA (0x0012bb), Network policy Subtype (2), Application type [voice] (0x01), Flags [Tagged] and Vlan id 100, L2 priority 3, DSCP value 54.

Show output
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
23:57:13.792637 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
23:57:42.186906 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP (0x88cc), length 246: LLDP, length 232
        Chassis ID TLV (1), length 7
          Subtype MAC address (4): de:ad:be:ef:6c:00
          0x0000:  04de adbe ef6c 00
        Port ID TLV (2), length 7
          Subtype MAC address (3): de:ad:be:ef:6c:00
          0x0000:  03de adbe ef6c 00
        Time to Live TLV (3), length 2: TTL 120s
          0x0000:  0078
        System Name TLV (5), length 4: osdx
          0x0000:  6f73 6478
        System Description TLV (6), length 116
          Debian GNU/Linux 12 (bookworm) Linux 6.12.73 #1~bpo12+1++teldat~v4.2.9.2~12~6d893ffb9 SMP PREEMPT_DYNAMIC Mon x86_64
          0x0000:  4465 6269 616e 2047 4e55 2f4c 696e 7578
          0x0010:  2031 3220 2862 6f6f 6b77 6f72 6d29 204c
          0x0020:  696e 7578 2036 2e31 322e 3733 2023 317e
          0x0030:  6270 6f31 322b 312b 2b74 656c 6461 747e
          0x0040:  7634 2e32 2e39 2e32 7e31 327e 3664 3839
          0x0050:  3366 6662 3920 534d 5020 5052 4545 4d50
          0x0060:  545f 4459 4e41 4d49 4320 4d6f 6e20 7838
          0x0070:  365f 3634
        System Capabilities TLV (7), length 4
          System  Capabilities [Bridge, WLAN AP, Router, Station Only] (0x009c)
          Enabled Capabilities [Router] (0x0010)
          0x0000:  009c 0010
        Management Address TLV (8), length 12
          Management Address length 5, AFI IPv4 (1): 192.168.100.101
          Interface Index Interface Numbering (2): 2
          0x0000:  0501 c0a8 6465 0200 0000 0200
        Management Address TLV (8), length 24
          Management Address length 17, AFI IPv6 (2): fe80::dcad:beff:feef:6c00
          Interface Index Interface Numbering (2): 2
          0x0000:  1102 fe80 0000 0000 0000 dcad beff feef
          0x0010:  6c00 0200 0000 0200
        Port Description TLV (4), length 4: eth0
          0x0000:  6574 6830
        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 (0x0000)
          0x0000:  0012 0f01 0080 0000 00
        Organization specific TLV (127), length 8: OUI ANSI/TIA (0x0012bb)
          Network policy Subtype (2)
            Application type [voice] (0x01), Flags [Tagged]
            Vlan id 100, L2 priority 3, DSCP value 54

Test LLDP Packets Bridge

Description

This scenario checks that a device can send and receive LLDP packets when LLDP is configured on an Ethernet interface that is part of a bridge group.

Scenario

Step 1: Set the following configuration in DUT0 :

set interfaces bridge br0 address 192.168.100.101/24
set interfaces ethernet eth0 bridge-group bridge br0
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Step 2: Set the following configuration in DUT1 :

set interfaces ethernet eth0 address 192.168.100.102/24
set interfaces ethernet eth0 lldp
set system login user admin authentication encrypted-password '$6$GSjsCj8gHLv$/VcqU6FLi6CT2Oxn0MJQ2C2tqnRDrYKNF8HIYWJp68nvXvPdFccDsT04.WtigUONbKYrgKg8d6rEs8PjljMkH0'

Note

Start packet capture in DUT0.

Step 3: Run command traffic dump monitor interface eth0 detail at DUT0.

Note

Stop packet capture in DUT0 and expect LLDP.

Show output
tcpdump: listening on eth0, link-type EN10MB (Ethernet), snapshot length 262144 bytes
23:57:49.039084 de:ad:be:ef:6c:10 > 33:33:ff:ef:6c:10, ethertype IPv6 (0x86dd), length 86: (hlim 255, next-header ICMPv6 (58) payload length: 32) :: > ff02::1:ffef:6c10: [icmp6 sum ok] ICMP6, neighbor solicitation, length 32, who has fe80::dcad:beff:feef:6c10
          unknown option (14), length 8 (1):
            0x0000:  d5bd 99a6 0637
23:57:49.231130 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) :: > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_in { }] [gaddr ff02::1:ffef:6c10 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex { }]
23:57:49.310602 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::b8ee:80ff:fe6e:8b9a > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
23:57:49.342625 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
23:57:49.354567 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
23:57:49.422567 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c00 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
23:57:49.918565 de:ad:be:ef:6c:00 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c00 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
23:57:50.063228 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c10 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c10 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
23:57:50.075045 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c10 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
23:57:50.415111 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 90: (hlim 1, next-header Options (0) payload length: 36) fe80::dcad:beff:feef:6c10 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 1 group record(s) [gaddr ff02::1:ff00:0 to_ex { }]
23:57:51.023089 de:ad:be:ef:6c:10 > 33:33:00:00:00:16, ethertype IPv6 (0x86dd), length 150: (hlim 1, next-header Options (0) payload length: 96) fe80::dcad:beff:feef:6c10 > ff02::16: HBH (rtalert: 0x0000) (padn) [icmp6 sum ok] ICMP6, multicast listener report v2, 4 group record(s) [gaddr ff02::1:ff00:0 to_ex { }] [gaddr ff02::1:ffef:6c10 to_ex { }] [gaddr ff05::2 to_ex { }] [gaddr ff02::2 to_ex {
}]
23:58:17.868881 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP