LLDP Protocol- Link Layer Discovery

Thanks to the LLDP protocol, which stands for Link Layer Discovery Protocol, the local network is mapped. Whether it is a main switch or an edge switch, it collects all network devices and interface information connected to the interface on it.
Due to the technology advancing day by day, new units are constantly positioned in the network. The name and port-based information of the positioned newtork device is collected together thanks to this protocol.
Index
LLDP Layer
Day by day the number of ports increases and as a result the network expands. New configurations or even new devices may need to be positioned. This is where LLDP comes to your aid.
As it is known, the protocol that switch and router devices communicate with each other in the network is separate from network traffic. Even if desired, it can be completely separated from traffic with “management ip and management interface” even on interface basis. This application is usually defined between backbone switches working in VRRP structure. There is no need to allocate individual interfaces to each edge switch and use separate cables.
While users communicate with protocols such as TCP and UDP, network switches and routers communicate with multiple protocols such as LLDP, STP, MSTP, IGMP, QOS, SMTP, SNMP, LACP, LDAP. Ethernet interfaces belonging to the users identify themselves to the switches with MIB packets and become a member of the ARP list by sending a mac address.
Similarly, switches communicate among themselves with the LLDP protocol and send packets of information about both management interfaces and other uplink interfaces.
In this tutorial, we will answer the question of how LLDP works on HP Procurve model manageable switches. LLDP comes as enable on all Procurve switches. There is no need to make an extra configuration. Thanks to LLDP, you can easily find out which device has which interface behind the cable connected to the interface. For this, you need to connect to the switch from the console interface and run the following commands.
switch1# config
switch1(config)# show LLDP info remote-device
SSHWhen this code snippet is run on the console, if it is an edge switch and there is no jumping on it, that is, if there is no other switch running under it, the hostname, host uplink interface id, switch uplink interface id and main switch uplink port mac address of the main switch will be listed on the screen.
KENAR SWITCH OUTPUT:
LocalPort | ChassisId PortId PortDescr SysName
--------- + ------------------------- ------ --------- ----------------------
49 | 00 11 22 33 aa bb 59 C7 MAIN_VRRP_SW
SSHMAIN SWITCH OUTPUT:
LLDP Remote Devices Information
LocalPort | ChassisId PortId PortDescr SysName
--------- + ------------------------- ------ --------- -------
A1 | 00 11 22 33 aa cc 49 49 SW1
A2 | 00 11 22 33 aa dd 49 49 SW2
A3 | 00 11 22 33 aa ba 49 49 SW3
A4 | 00 11 22 33 aa bc 49 49 SW4
C7 | 00 11 22 33 aa bd 49 49 SW5
C15 | 00 11 22 33 aa be 49 49 YEDEK-SW1
C16 | 00 11 22 33 aa bf 50 50 YEDEK-SW2
SSHWith the command, the management ip addresses and chasis information on the switch itself comes. It is like this:
LLDP Local Device Information
switch1(config)# show LLDP info local-device
Chassis Type : mac-address
Chassis Id : 11 22 33 aa cc 00 System Name : MAIN_VRRP_SW
System Description : HP J4819A ProCurve Switch 5308xl, revision E.10.23, ...
System Capabilities Supported:bridge, router
System Capabilities Enabled:bridge, router
Management Address :
Type:ipv4
Address:6.6.6.7
Type:ipv4
Address:10.10.96.1
Type:ipv4
Address:10.10.200.1
Type:ipv4
Address:10.10.201.1
Type:ipv4
Address:10.10.209.1
Type:ipv4
SSHAnother command is used with the stats argument.
switch1(config)# show LLDP stats
SSHWhen this command is typed, a list showing the number of packets sent/received on the interfaces in use will be displayed.
Finally, let’s look at the config argument:
switch1(config)# show LLDP config
SSHAs a result of this command, the Tx_Rx information and Topolgy Trap status of each interface are listed on the screen.