LLDP (Link Layer Discovery Protocol)
What is LLDP (Link Layer Discovery Protocol)?
LLDP (Link Layer Discovery Protocol), standardized as IEEE 802.1AB, is a vendor-neutral Layer 2 protocol that lets a switch, server, IP phone or access point advertise its name, port and capabilities to the device on the other end of its cable. AdminKit explains how LLDP works and what its advertisements reveal.
By AdminKit team, Netbase JSC · Updated
LLDP is how a switch learns that port 12 connects to a particular server, IP phone or access point, and how that device learns which switch port it sits on. The Wireshark wiki on LLDP describes it as a vendor-neutral Layer 2 protocol that a station uses “to advertise its identity and capabilities, and to receive the same information from a physically adjacent Layer 2 peer”. It was first published in May 2005 as IEEE Std 802.1AB-2005 and modelled on vendor-specific discovery protocols such as Cisco Discovery Protocol (CDP); the IEEE standards page lists the current revision as IEEE 802.1AB-2016.
How does LLDP work?
Each LLDP-enabled interface periodically sends an LLDP Data Unit (LLDPDU) straight over Ethernet, with no IP involved. The frame uses a dedicated Ethertype and a reserved multicast destination address that standard bridges do not forward, which keeps every advertisement on a single link:
Ethertype: 0x88cc
Destination MAC: 01:80:c2:00:00:0e (LLDP_Multicast)
The LLDPDU is a list of type-length-value (TLV) fields. Four are mandatory, in this order: Chassis ID, Port ID, Time To Live and End of LLDPDU. Optional TLVs add the port description, system name, system description, system capabilities and a management address, and organizations can define their own extensions, such as the VLAN TLVs from IEEE 802.1 and the LLDP-MED TLVs for IP phones. The chassis ID can be a MAC address, whose first three bytes (the OUI) identify the vendor unless the address is locally administered.
On Unix-like servers, lldpd is an ISC-licensed LLDP implementation; its project page sums up the point of the protocol as knowing “exactly on which port is a server (and reciprocally)”.
What does LLDP reveal, and how do you limit it?
The same TLVs that make topology mapping easy also tell any device on the link the neighbour’s system name, software description and management address. Anything plugged into a wall port, including an unmanaged laptop, can read them. Parsing those frames has also produced bugs: the lldpd security page lists past vulnerabilities triggered by malformed LLDP frames from a remote device, from memory exhaustion to out-of-bounds reads.
Practical steps:
- Disable LLDP transmission on access ports facing users or guests, and keep it on uplinks and infrastructure links where topology data is needed.
- Trim optional TLVs such as system description on ports where the full software version is not needed.
- Keep LLDP software, including switch firmware, up to date, since the parser handles frames from untrusted neighbours.
LLDP is a link-local, Layer 2 protocol, so no internet-facing scan can see it. Like ARP, it only matters to whoever can plug into the same network segment. AdminKit’s MAC address lookup can name the vendor behind a chassis ID you capture on your own network.
AdminKit groups LLDP under its IP and network cluster — browse the AdminKit glossary index for other related terms.
Frequently asked questions
What is LLDP used for?
Mapping which device is plugged into which switch port. Each device periodically advertises its identity and capabilities to its directly connected neighbour, so network tools can build a topology map without manual records.
Is LLDP the same as CDP?
No. Cisco Discovery Protocol (CDP) is a vendor-proprietary discovery protocol; LLDP is the open IEEE standard that was modelled on CDP and similar vendor protocols so equipment from different makers can discover each other.
Does LLDP cross routers or switches?
No. LLDP frames go to a reserved multicast MAC address that IEEE 802.1D-compliant bridges do not forward, so a device only hears its directly connected neighbour.
What is LLDP-MED?
Media Endpoint Discovery, a set of LLDP extensions defined by the Telecommunications Industry Association in ANSI/TIA-1057. It adds network policy, location and power information used mainly for IP phones.