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
10:04:20.019007 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 {
}]
10:04:20.030799 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 { }]
10:04:20.114750 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 { }]
10:04:20.722759 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 {
}]
10:04:48.698904 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
10:04:56.011316 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 {
}]
10:04:56.023244 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 { }]
10:04:56.091256 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 { }]
10:04:56.779261 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 {
}]
10:05:24.951403 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.1.162 #1++teldat~v4.2.8.5~22~c0a264b6a SMP PREEMPT_DYNAMIC Fri Mar 13  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 2e31 3632 2023 312b
          0x0030:  2b74 656c 6461 747e 7634 2e32 2e38 2e35
          0x0040:  7e32 327e 6330 6132 3634 6236 6120 534d
          0x0050:  5020 5052 4545 4d50 545f 4459 4e41 4d49
          0x0060:  4320 4672 6920 4d61 7220 3133 2020 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
10:05:32.152903 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 {
}]
10:05:32.504889 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 { }]
10:06:00.967027 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.1.162 #1++teldat~v4.2.8.5~22~c0a264b6a SMP PREEMPT_DYNAMIC Fri Mar 13  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 2e31 3632 2023 312b
          0x0030:  2b74 656c 6461 747e 7634 2e32 2e38 2e35
          0x0040:  7e32 327e 6330 6132 3634 6236 6120 534d
          0x0050:  5020 5052 4545 4d50 545f 4459 4e41 4d49
          0x0060:  4320 4672 6920 4d61 7220 3133 2020 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
10:06:08.055869 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 { }]
10:06:08.352954 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::90dc:ddff:fe42:5d51 > 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:ff42:5d51 to_ex { }] [gaddr ff02::6a to_ex { }] [gaddr ff02::2 to_ex {
 }]
10:06:08.364899 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::90dc:ddff:fe42:5d51 > 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 { }]
10:06:08.480925 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 { }]
10:06:08.663904 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 {
}]
10:06:08.675784 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 { }]
10:06:08.769032 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::90dc:ddff:fe42:5d51 > 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:ff42:5d51 to_ex { }] [gaddr ff02::6a to_ex { }] [gaddr ff02::2 to_ex {
 }]
10:06:08.983839 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 { }]
10:06:09.239918 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 {
}]
10:06:09.312913 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::90dc:ddff:fe42:5d51 > 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 { }]
10:06:36.919062 de:ad:be:ef:6c:00 > 01:80:c2:00:00:0e, ethertype LLDP