LLDP

Also known as: Link Layer Discovery Protocol

On this page 7

LLDP, the Link Layer Discovery Protocol, is a vendor-neutral Layer 2 protocol defined in IEEE 802.1AB that lets a network device advertise its identity, capabilities and port details to the devices directly attached to it. In Ethernet & switching, LLDP is the standard way for switches, routers, servers, IP phones and access points to learn who is on the other end of each cable without any configuration on the far side.

Each device stores what it hears in a local neighbor table, which network management systems read through SNMP or other interfaces to build physical topology maps, verify cabling and automate port settings. LLDP only discovers and reports; it never forwards user traffic, never changes the forwarding path and never negotiates the link on its own.

How LLDP advertises device information

LLDP works through periodic one-way advertisements sent from every enabled port. A device packs its information into an LLDP data unit (LLDPDU), places it in an Ethernet frame with EtherType 0x88CC and sends it to a reserved multicast address, most commonly 01:80:C2:00:00:0E. Standard bridges do not forward frames sent to this address, so an advertisement reaches only the immediate neighbor and never travels across the wider network.

There is no request, reply or session. The receiving device simply records the data and keeps it for the period stated in the frame, the time to live (TTL). If no fresh advertisement arrives before the TTL expires, the entry is removed. This stateless design keeps LLDP lightweight and predictable, but it also means a device cannot ask a neighbor for details; it can only wait for the next update.

The protocol timers below determine how quickly a change becomes visible and how quickly stale information disappears.

ParameterTypical defaultWhat it controls
Transmit interval30 secondsHow often each port sends an advertisement
Hold multiplier4TTL equals interval multiplied by this value
Time to live120 secondsHow long a neighbor keeps the entry
Reinitialization delay2 secondsPause before restarting after LLDP is disabled
Fast start countSeveral quick framesRapid advertisements after a new link comes up
Default LLDP timers and their effect

TLVs carried in an LLDP data unit

Every LLDPDU is a sequence of type-length-value (TLV) fields, which makes the protocol easy to extend without breaking older implementations. Three TLVs are mandatory: the Chassis ID, the Port ID and the Time To Live, followed by an End of LLDPDU marker. Everything else is optional and selected by the administrator or the device vendor.

The table groups the most widely used TLVs by their origin and purpose.

TLVStatusInformation carried
Chassis IDMandatoryUnique device identifier, often a MAC address
Port IDMandatoryIdentifier of the sending interface
Time To LiveMandatorySeconds the data remains valid
System nameOptionalConfigured hostname of the device
System capabilitiesOptionalBridge, router, telephone or access point roles
Management addressOptionalIP address used to manage the device
IEEE 802.1 extensionsOptionalPort VLAN ID and VLAN names
IEEE 802.3 extensionsOptionalSpeed, duplex, link aggregation and PoE data
Common LLDP TLVs

An important extension is LLDP-MED (Media Endpoint Discovery), standardized as ANSI/TIA-1057. It adds TLVs for voice VLAN assignment, quality of service markings, Power over Ethernet negotiation, inventory data and location identification. LLDP-MED is the reason an IP phone can be plugged into a switch port and automatically join the correct voice VLAN.

LLDP is the open counterpart of proprietary discovery protocols that several vendors developed earlier. Its main advantage is multivendor interoperability: a switch from one manufacturer can identify a server, hypervisor or phone from another. Mixed environments therefore standardize on LLDP even when a proprietary protocol remains enabled for legacy features.

ProtocolScopeTypical use
LLDPOpen IEEE standardMultivendor topology discovery
LLDP-MEDTIA extension of LLDPIP phones, PoE and voice VLANs
CDPCisco proprietaryCisco-only environments and legacy phones
FDPFoundry and Brocade heritageOlder equipment from those vendors
IPv6 Neighbor DiscoveryLayer 3 protocolAddress resolution, not physical topology
Discovery protocols at a glance

LLDP should also be distinguished from protocols that act on the link rather than describe it. LACP negotiates link aggregation bundles, Spanning Tree Protocol blocks loops and auto-negotiation agrees on speed and duplex at the physical layer. LLDP can report the outcome of these mechanisms, such as the negotiated speed or aggregation membership, but it does not control them.

Practical uses of LLDP in managed networks

The most common use of LLDP is troubleshooting and documentation. An engineer can run a command such as show lldp neighbors on a managed switch and immediately see which device and which remote port sit behind every interface. This replaces manual cable tracing and exposes patching errors within seconds.

The following decision table summarizes where LLDP delivers the clearest value.

SituationRecommended approachReason
Mixed-vendor campusEnable LLDP on all infrastructure portsConsistent topology data across brands
IP telephony rolloutEnable LLDP-MED on access portsAutomatic voice VLAN and PoE settings
Data center serversRun LLDP agents on hosts and hypervisorsVerifies server-to-switch cabling
Ports facing the internetDisable LLDP transmissionAvoids leaking device details
Automation pipelinesRead neighbor tables through APIsValidates intended topology
When to rely on LLDP

In data centers, LLDP feeds automation tools that compare the actual cabling with the intended design. Hypervisors and network interface cards often run their own LLDP agents, so the switch learns the server name and the server learns which switch port it uses. Some network operating systems also use LLDP data to build fabric underlays automatically.

Limitations, risks and common mistakes

LLDP has no authentication or encryption, so any device on a port can send forged advertisements, and any listener can read the information sent to it. Advertisements may reveal hostnames, software versions, management IP addresses and VLAN layout, which is valuable reconnaissance for an attacker. Security baselines therefore recommend disabling LLDP on untrusted ports.

  • Unmanaged switches usually drop or pass LLDP frames inconsistently, so a neighbor table may show a distant device or nothing at all.
  • Receive-only or transmit-only modes cause one-sided neighbor tables that are easily misread as cabling faults.
  • Hardware offload on server NICs can consume LLDP frames before the operating system sees them, hiding the switch from host tools.
  • Long timers delay the detection of moved cables; the default 120-second TTL can show stale neighbors for up to two minutes.
  • Trusting LLDP-MED blindly lets a rogue device request a voice VLAN, so port security or 802.1X should complement it.

Stripped to the essentials

LLDP is like a name tag that every network device wears and shows only to the device standing right next to it. Every 30 seconds, each switch port says who it is, which port it is using and what it can do.

The neighbor writes this down and forgets it if the messages stop. As a result, a network team can look at any switch and see exactly what is plugged into each port without walking to the cabinet and following cables by hand.

Where it is applied

A hospital network team is replacing 400 desk phones across three floors. The access switches come from one vendor and the phones from another, so the team enables LLDP-MED on every access port and defines voice VLAN 120 with high-priority traffic marking.

When a technician connects a phone, the switch advertises the voice VLAN through LLDP-MED, the phone tags its traffic accordingly and requests the right amount of Power over Ethernet. No phone needs manual configuration. Afterward, the team exports the LLDP neighbor tables to its inventory system and finds 14 phones patched to the wrong ports, which it corrects before go-live. The rollout finishes in two days instead of the planned week.