Fact-checked by Grok 2 weeks ago

Link Layer Discovery Protocol

The Link Layer Discovery Protocol (LLDP) is a vendor-neutral, Layer 2 network protocol standardized by the IEEE in 802.1AB that enables devices connected via IEEE 802 local area networks (LANs) to advertise their identity, capabilities, and interconnections to adjacent stations, facilitating automated discovery of physical topology and management information exchange. LLDP operates by having enabled devices periodically transmit advertisement —typically every 30 seconds by default—containing structured data in Type-Length-Value (TLV) , which includes mandatory elements like ID, port ID, and time-to-live, as well as optional TLVs for details such as system name, port description, and supported capabilities (e.g., Power over Ethernet or configurations). Receiving devices store this information in their local Management Information Bases (MIBs) for querying via protocols like SNMP, allowing network administrators to map topologies, detect misconfigurations, and optimize across multivendor environments. The protocol uses a destination address (01:80:C2:00:00:0E) to ensure one-way, efficient broadcasting without requiring acknowledgments, minimizing bandwidth overhead while supporting extensions through organizationally specific TLVs, such as those defined by TIA for LLDP-Media Endpoint Discovery (LLDP-MED). Development of LLDP traces back to 1996 efforts within the IETF to create a protocol topology (PTOPO) under 2922, which stalled due to issues with handling and intellectual property concerns, prompting the working group to take over in January 2002. The standard was first published in 2005 as AB-2005, with revisions in 2009 (AB-2009) to incorporate LLDP-MED and in 2016 (AB-2016) to enhance support for bridging and other modern Ethernet applications, followed by amendments in 2021 (ABcu-2021 for data models and ABdh-2021 for multiframe support); a comprehensive revision project is ongoing as of 2025. Unlike vendor-proprietary protocols, LLDP promotes in networks, aiding , , and automated provisioning while operating solely over wired Ethernet without native support for media.

Overview

Definition and Purpose

The Link Layer Discovery Protocol (LLDP) is a vendor-neutral Layer 2 protocol standardized by the IEEE as part of 802.1AB, enabling network devices to advertise their identity, capabilities, and connectivity details to adjacent devices on the same (LAN) segment. It operates at the of the , using Ethernet frames to exchange information without relying on higher-layer protocols like . This protocol allows stations connected via LANs to discover physical topology and neighboring devices in a standardized manner, independent of specific vendor implementations. The primary purpose of LLDP is to facilitate automated network discovery and by populating and databases with essential information, such as type, details, and supported protocols. This enables network administrators to map interconnections, detect misconfigurations, and ensure interoperability in multi-vendor environments. By periodically transmitting advertisements, LLDP supports applications like inventory tracking and enhanced troubleshooting, reducing manual intervention in large-scale deployments. LLDP's design emphasizes simplicity and extensibility, allowing optional Type-Length-Value (TLV) fields to convey additional details like power requirements or location data, which are particularly useful in converged networks combining voice, video, and data traffic. Overall, it promotes efficient and operational reliability by providing a common framework for device communication at the .

History and Standardization

The development of the Link Layer Discovery Protocol (LLDP) traces its origins to the late 1990s within the Internet Engineering Task Force (IETF) PTOPOMIB working group, which sought to establish a common framework for modeling physical network topology. This group published RFC 2922 in October 2000, defining the Physical Topology MIB to enable management of network connections and SNMP agent discovery. Concurrently, the working group drafted the Physical Topology Discovery Protocol (PDP) across multiple iterations, with the final draft (draft-ietf-ptopomib-pdp-03) issued in November 1998, outlining a mechanism for devices to exchange topology information at the link layer. However, the PDP did not advance to RFC status, as the working group concluded its efforts without full standardization. In response to the need for a vendor-neutral alternative to proprietary protocols like Cisco's CDP, the working group initiated LLDP development in January 2002, explicitly building on the IETF's unfinished and concepts to promote across IEEE 802 LANs and MANs. The protocol was designed as a media-independent Layer 2 mechanism for stations to advertise their identity, capabilities, and details periodically or on demand. After iterative drafts, including early contributions documented in March 2002, the standard was formalized as IEEE 802.1AB-2005, "Station and Media Connectivity ." It received IEEE Standards Board approval on March 20, 2005, ANSI approval on June 28, 2005, and was published on May 6, 2005. Subsequent revisions have refined and extended LLDP to address evolving network requirements. The 2009 edition, IEEE 802.1AB-2009, published on September 17, , integrated amendments for enhanced managed objects and protocol procedures while maintaining . This was followed by corrigenda: IEEE 802.1AB-2009/Cor 1-2013, addressing structure issues, and IEEE 802.1AB-2009/Cor 2-2015, published on March 9, 2015, which corrected additional protocol and management elements. The comprehensive revision IEEE 802.1AB-2016, published on March 11, 2016, incorporated these changes and added support for advanced discovery in diverse environments. More recently, the amendment IEEE 802.1ABdh-2021, published on April 19, 2022, introduced protocols and managed objects to ensure synchronization for applications. Additionally, IEEE 802.1ABcu-2021, published on April 13, 2022, specified a (UML)-based information model and a data model for LLDP configuration and status reporting.

Protocol Operation

Discovery Mechanism

The discovery mechanism of the Link Layer Discovery Protocol (LLDP) operates at the , enabling adjacent devices on an LAN to unilaterally advertise their identity, capabilities, and connectivity information. Defined in IEEE Std 802.1AB, LLDP uses a one-way protocol model where devices transmit standardized Link Layer Discovery Protocol Data Units (LLDPDUs) to a reserved MAC address (01-80-C2-00-00-0E), which is filtered by bridges to confine advertisements to the local network segment. This ensures that discovery remains link-local, preventing propagation across the broader network and focusing on immediate neighbor detection. Transmission occurs periodically from each enabled port in transmit mode, with a default interval of 30 seconds configurable via management objects such as lldpV2MessageTxInterval (range: 5 to 32768 seconds). Each LLDPDU is encapsulated in an with 0x88CC and includes a sequence of Type-Length-Value (TLV) structures, starting with mandatory TLVs for Chassis ID (uniquely identifying the transmitting device, often via ), Port ID (specifying the sending ), and (TTL, indicating data validity in seconds, default 120 seconds calculated as the transmit interval multiplied by a hold multiplier of 4). Optional TLVs may append additional details like system name or configuration, but the frame size is limited to 1500 octets to align with Ethernet MTU. A shutdown frame with TTL set to 0 can be sent to invalidate prior data when a port is disabled. Reception is handled in receive mode, where devices monitor for incoming LLDPDUs matching the and , validating the frame and parsing its TLVs. Valid information is stored in the device's local remote systems Management Information Base (), such as the lldpV2RemoteSystemsData table, indexed by local port, remote , and a time mark for the Chassis ID and Port ID pair that uniquely identifies the neighbor. Duplicate or conflicting entries are resolved by updating based on the most recent receipt, while the enforces aging: unreceived data expires after the specified period, triggering removal from the and incrementing age-out counters like lldpV2StatsRxPortAgeoutsTotal. If the implementation's capacity is exceeded, older entries are discarded to maintain operational efficiency. This transmit-receive cycle, governed by finite state machines in the standard, supports operational modes including transmit-only, receive-only, or bidirectional (default txAndRx), allowing flexible deployment for topology discovery and . The mechanism's vendor-neutral design promotes , as devices from different manufacturers can decode and utilize the same TLV formats without extensions dominating the process.

Information Exchanged

The Link Layer Discovery Protocol (LLDP), defined in IEEE Std 802.1AB, enables network devices to exchange topology and management information with directly connected neighbors through Type-Length-Value (TLV) structures carried in LLDP Data Units (LLDPDUs). These TLVs provide a standardized, vendor-neutral mechanism for advertising device identity, port details, operational capabilities, and environmental data, supporting applications such as network mapping, inventory tracking, and automated configuration. LLDPDUs are transmitted periodically (default interval of 30 seconds) on each enabled port, with a Time to Live (TTL) value determining the validity duration of the received information. All compliant LLDPDUs must contain four mandatory TLVs to ensure basic discovery functionality. The Chassis ID TLV uniquely identifies the transmitting device, typically using its or a chassis component identifier (up to 255 octets). The Port ID TLV specifies the local port from which the LLDPDU is sent, often represented by the interface name, alias, or port number (up to 255 octets). The Time to Live TLV indicates the maximum time (in seconds, up to 65,535) that the advertised information remains valid in the receiving device's (MIB); a value of zero triggers immediate removal of the entry. Finally, the End of LLDPDU TLV (a fixed 2-octet structure with type value 0 and length 0) marks the conclusion of the TLV sequence, ensuring proper parsing even if the frame is truncated. These mandatory elements form the core of LLDP's discovery process, allowing devices to build accurate neighbor tables without optional enhancements. Beyond the mandatory TLVs, LLDP supports a range of optional TLVs categorized into basic management, organizationally specific, organizationally specific, and vendor-specific extensions (such as LLDP-MED for media endpoint discovery). Basic optional TLVs include the Port Description TLV, which provides a human-readable string describing the port (e.g., "GigabitEthernet1/0/1"); the System Name TLV, carrying the device's or assigned name; the System Description TLV, offering details on hardware, software version, and operating system; the System Capabilities TLV, advertising supported functions like bridging, , or repeating along with their enabled status (encoded as bit flags); and the Management Address TLV, which lists one or more addresses (e.g., IP or ) for accessing the device's management interface, including interface numbering and object identifier subtypes. These basic TLVs enhance visibility into device identity and accessibility, commonly used in tools. Organizationally specific TLVs extend LLDP's scope to layer-specific details. Under IEEE 802.1, the Port VLAN ID TLV advertises the primary VLAN ID for untagged or priority-tagged frames on the port; the Port and Protocol VLAN ID TLV indicates VLAN support status and lists enabled protocol VLANs; the VLAN Name TLV associates names with VLAN IDs for administrative clarity; and the Protocol Identity TLV enumerates supported protocols like Spanning Tree Protocol (STP) or GARP. For IEEE 802.3, key TLVs cover physical layer attributes: the MAC/PHY Configuration/Status TLV reports autonegotiation capabilities, operational speed/duplex mode, and medium attachment unit (MAU) type; the Power via MDI TLV describes Power over Ethernet (PoE) support, including power value, source, and priority; the Link Aggregation TLV signals aggregation group membership and status; and the Maximum Frame Size TLV specifies the supported maximum transmission unit (MTU). These TLVs facilitate interoperability in mixed-vendor environments by standardizing physical and logical connectivity data. LLDP-MED, an extension defined in ANSI/TIA-1057, introduces additional organizationally specific TLVs tailored for devices like IP phones. The LLDP-MED Capabilities TLV declares supported MED features and device class (e.g., or network connectivity); the Network Policy TLV configures application-specific policies, including ID, 802.1p priority, and Code Point (DSCP) for voice or video traffic; the Location Identification TLV conveys civic addressing, /, or Emergency Location Identification Number (ELIN) for emergency services; the Extended Power-via-MDI TLV provides detailed PoE metrics such as type (802.3af/at/bt), value in milliwatts, and legacy device detection; and the Inventory Management TLV subgroups deliver hardware revision, firmware version, software identifier, , manufacturer name, model name, and asset ID. These extensions are optional and negotiated via capabilities advertisement, enabling plug-and-play deployment in (VoIP) and setups.

Data Structures

LLDP Frame Format

The Link Layer Discovery Protocol (LLDP) operates at the data link layer and uses Ethernet frames to advertise device information across local area networks, as defined in IEEE 802.1AB. An LLDP frame follows the standard IEEE 802.3 Ethernet format, consisting of a destination MAC address (DMAC), source MAC address (SMAC), EtherType field, the LLDP Data Unit (LLDPDU) payload, and a frame check sequence (FCS) for integrity verification. The frame is multicast to a specific address to ensure delivery only to LLDP-enabled neighbors, with a maximum size accommodating up to 1500 bytes of LLDPDU data. The structure of an LLDP frame is as follows:
FieldSize (bytes)Description
Destination MAC Address (DMAC)6Fixed multicast address 01-80-C2-00-00-0E, ensuring the frame is processed only by LLDP agents.
Source MAC Address (SMAC)6 of the transmitting port or device, identifying the sender.
EtherType2Value 0x88CC, indicating an LLDP frame in Ethernet II framing (or 0xAAAA-0300-0000-88CC in IEEE 802.3 LLC/SNAP format).
LLDPDUVariable (up to 1500)Payload containing a sequence of Type-Length-Value (TLV) structures that encode the advertised information.
Frame Check Sequence (FCS)4 (CRC) for error detection across the entire .
The LLDPDU forms the core of the LLDP , comprising one or more TLVs that convey discovery data in a flexible, extensible manner. Each TLV is a self-contained unit with a 2-byte header followed by a variable-length information string, allowing devices to include only relevant details without fixed fields. The TLV header allocates 7 bits to the type field (values 0-127), where organizationally specific TLVs use type 127, and 9 bits to the length field (0-511 bytes for the information string). Every LLDPDU must begin with three mandatory basic TLVs— ID (type 1), ID (type 2), and (type 3)—followed by zero or more optional TLVs, and terminate with an End of LLDPDU TLV (type 0, length 0). This mandatory sequence ensures basic identification and expiration handling, while optional TLVs such as Description (type 4), System Name (type 5), and System Capabilities (type 7) provide additional context like device descriptions or supported functions. The Chassis ID TLV identifies the sending device using subtypes like or (information string 2-255 octets), the Port ID TLV specifies the local port via name or alias (information string 2-255 octets), and the Time to Live TLV carries a 16-bit seconds value (default 120 seconds) to indicate how long the information remains valid. Organizationally specific TLVs (type 127) enable vendor extensions, such as LLDP-MED for media endpoint discovery, by including an (OUI) and subtype in the information string. This TLV-based design supports across vendors while allowing , as the LLDPDU can be padded if needed to meet minimum frame sizes.

Type-Length-Value Encoding

The Type-Length-Value (TLV) encoding is the fundamental structure used within Link Layer Discovery Protocol (LLDP) data units to convey information about network devices and their connections. Defined in the IEEE 802.1AB standard, each TLV consists of a 2-octet header followed by a variable-length value field, allowing flexible and extensible advertisement of attributes such as device identities, capabilities, and management details. This encoding enables LLDP to pack multiple pieces of information into a single (LLDPDU) while maintaining compatibility across diverse network equipment. The latest revision is IEEE Std 802.1AB-2022. The TLV header comprises a 7-bit Type field (bits 0-6) and a 9-bit Length field (bits 7-15), with the Type identifying the information category and the Length specifying the number of octets in the Value field (ranging from 0 to 511). The Value field follows immediately and contains type-specific data, such as binary identifiers, UTF-8 strings, or bitmaps, padded if necessary to octet boundaries. This structure supports a maximum LLDPDU size of 1500 octets, constrained by IEEE 802.3 Ethernet frame limits, and ensures efficient parsing by receivers. Bit numbering in the header aligns with standard octet conventions, where the most significant bit is bit 8 and the least significant is bit 1. LLDPDUs begin with three mandatory TLVs—Chassis ID (Type 1), Port ID (Type 2), and (Type 3)—followed by zero or more optional TLVs, and terminate with an End Of LLDPDU TLV (Type 0, Length 0). Mandatory TLVs provide core identification and validity information: the Chassis ID (Length 2-255 octets) uses a 1-octet subtype (e.g., 4 for ) plus the identifier; the Port ID (Length 2-255 octets) follows a similar subtype format; and (fixed Length 2 octets) carries a 2-octet (0-65535 seconds) indicating how long the data remains valid. Optional TLVs, such as Port Description (Type 4, Length 0-255, UTF-8 string) or System Capabilities (Type 7, fixed Length 4, with capability bitmaps), advertise supplementary details and appear at most once each unless otherwise specified. A special category, Organizationally Specific TLVs (Type 127, Length variable), allows standards bodies or vendors to extend LLDP with custom information. These include a 3-octet (OUI), a 1-octet subtype, and subtype-specific data. For instance, OUIs (00-80-C2) support subtypes like Port ID (subtype 1, Length 6: 2-octet ID), while OUIs (00-12-0F) include MAC/PHY Configuration Status (subtype 1, Length 9: status octet, autonegotiation capabilities, and MAU type). This extensibility ensures LLDP's adaptability without altering the core . The following table summarizes key TLV types, their categories, and value formats for conceptual clarity:
TypeNameCategoryValue Format Example
0End Of LLDPDUMandatoryEmpty (Length 0)
1Chassis IDMandatorySubtype (1 octet) + ID (e.g., : 6 octets)
2Port IDMandatorySubtype (1 octet) + ID (e.g., interface name string)
3Mandatory2-octet integer (e.g., 300 seconds)
4Port DescriptionOptional string (0-255 octets)
7System CapabilitiesOptional2-octet supported bitmap + 2-octet enabled bitmap
127Organizationally SpecificOptional3-octet OUI + 1-octet subtype + data (e.g., Port ID: 2-octet )
An example TLV encoding for a Chassis ID using a (Type 1, Length 7) in is 81 07 04 00 11 22 33 44 55, where 81 07 is the header, 04 the subtype for , and 00 11 22 33 44 55 the address value. Similarly, a TLV (Type 3, Length 2) for 300 seconds is 03 02 01 2C. These formats promote by standardizing variable data representation within fixed-size headers.

Features and Extensions

System Capabilities

The System Capabilities Type-Length-Value (TLV) in the Link Layer Discovery Protocol (LLDP) conveys a network device's supported functions and its currently active primary roles, enabling adjacent devices to understand the system's operational context within the topology. Defined in IEEE Std 802.1AB-2009 and unchanged in the 2016 revision (IEEE 802.1AB-2016) which enhanced support for bridging and other modern Ethernet applications, this optional TLV (Type 7) is transmitted exactly once per LLDP Data Unit (LLDPDU) to advertise capabilities such as bridging, , or functionality, facilitating automated network and . The TLV structure consists of a 2-octet header (7-bit type and 9-bit length) followed by a 4-octet information string, for a total length of 6 octets. The information string comprises two 16-bit fields: the System Capabilities field, which uses a to indicate supported functions ( 1 for supported), and the Enabled Capabilities field, which mirrors the same format but indicates currently active functions ( 1 for enabled). These bitmaps are defined via the LldpV2SystemCapabilitiesMap textual convention in the standard's (). The bit assignments for both fields are identical and specify a range of network roles, drawing from established protocols and standards. For instance, bit 2 denotes MAC Bridge capability per IEEE 802.1D, while bit 4 indicates Router capability as per RFC 1812. Reserved bits (11-15) are set to 0 and left for future extensions. The following table summarizes the bit fields:
BitCapability NameDescriptionReference
0otherOther capabilitiesIEEE 802.1AB
1repeaterRepeater capabilityRFC 2108
2bridgeMAC Bridge capabilityIEEE 802.1D
3wlanAccessPointWLAN Access Point capabilityIEEE 802.11 MIB
4routerRouter capabilityRFC 1812
5telephoneTelephone capabilityIEEE 802.1AB
6docsisCableDeviceDOCSIS Cable Device capabilityRFC 4639, RFC 4546
7stationOnlyStation-only capabilityIEEE 802.1AB
8cVLANComponentC-VLAN Component functionalityIEEE 802.1Q
9sVLANComponentS-VLAN Component functionalityIEEE 802.1Q
10twoPortMACRelayTwo-port MAC Relay functionalityIEEE 802.1Q
11-15reservedReserved for future useN/A
This TLV supports multi-vendor interoperability by standardizing capability advertisement, allowing devices to detect mismatches (e.g., a non-router connecting to a router-expecting ) and adjust configurations dynamically. In practice, end stations typically advertise only the "stationOnly" bit as enabled, while switches or routers set bits for bridging or accordingly.

LLDP-MED Extension

The LLDP-MED (Link Layer Discovery Protocol - Media Endpoint Discovery) extension enhances the base LLDP by adding capabilities tailored for media endpoint devices, such as phones and networked audio/video equipment, to support (VoIP) and similar real-time applications. Defined in the ANSI/TIA-1057 standard published in April 2006 by the (TIA), LLDP-MED introduces organizationally specific Type-Length-Value (TLV) structures under the Organizationally Specific TLV type, using the (OUI) 00-12-BB:00 to distinguish its payloads from standard LLDP elements. This extension enables bidirectional exchange of device-specific information between endpoints and network infrastructure, facilitating automated configuration and improved interoperability in converged networks. At its core, LLDP-MED supports seven primary TLV subtypes to address key aspects of media endpoint operation. The LLDP-MED Capabilities TLV (subtype 1) advertises the device's support for LLDP-MED features, including network policy, location identification, extended power management, inventory management, and media redirection, allowing devices to negotiate compatible functionalities. The Network Policy TLV (subtype 2) conveys application-specific policies, such as VLAN assignments, IEEE 802.1p priority levels, and Differentiated Services Code Point (DSCP) values—for example, assigning VLAN 10 with priority 5 and DSCP 46 for VoIP traffic—to ensure quality of service (QoS) for voice, video, or signaling streams. The Location Identification TLV (subtype 3), compliant with ANSI/TIA-1057 formats, provides emergency calling support through coordinate-based, civic address, or Emergency Call Service - Emergency Location Identification Number (ECS-ELIN) data, enabling precise endpoint geolocation. Power management is handled by the Extended Power-via-MDI TLV (subtype 4), which extends the base LLDP power TLV to include Power Sourcing Equipment (PSE) details like available power budgets and consumption metrics under IEEE 802.3af/at (PoE) standards, aiding in efficient allocation for powered devices (PDs). Inventory management TLVs (subtypes 5–11) allow endpoints to report hardware revision, firmware version, software revision, serial number, manufacturer name, model name, and asset ID, supporting centralized and diagnostics in environments. These TLVs are optional and can be selectively advertised, with LLDP-MED frames maintaining compatibility with standard LLDP by using the same Ethernet frame format ( 0x88CC) and transmission intervals, typically every 30 seconds. In practice, LLDP-MED promotes plug-and-play deployment for VoIP systems by allowing switches to dynamically configure connected endpoints without manual intervention, reducing setup complexity in large-scale networks. For instance, a endpoint can receive and QoS policies from the network, while the network learns the endpoint's power needs and location for enhanced management and emergency services integration. The extension also includes provisions for environments and backward compatibility with non-MED devices, ensuring broad applicability while prioritizing media-specific enhancements as outlined in ANSI/TIA-1057.

Applications and Implementations

Network Management and Use Cases

The Link Layer Discovery Protocol (LLDP), defined in IEEE Std 802.1AB, plays a central role in by enabling automated discovery of adjacent devices on local area networks, facilitating in multivendor environments. It allows systems (NMS) to retrieve and device information through standard interfaces like SNMP and MIBs, supporting proactive monitoring and configuration validation. This protocol operates at Layer 2, periodically advertising device identifiers, capabilities, and port details via Type-Length-Value (TLV) structures, which helps administrators maintain an accurate view of the network without manual intervention. In topology discovery and mapping, LLDP enables the construction of physical and logical diagrams by exchanging and identifiers between connected devices, such as switches, routers, and endpoints. For instance, in a setup, a management workstation can poll LLDP data to visualize connections between a core switch, access switches, and attached IP phones, revealing the full Layer 2 . This capability is particularly valuable in large-scale deployments like data centers or campuses, where it integrates with tools like SNMP to automate map generation and detect unauthorized connections. By default, advertisements are sent every 30 seconds with a 120-second hold time, ensuring timely updates while minimizing overhead. For inventory management, LLDP provides detailed endpoint information, including hardware revisions, firmware versions, serial numbers, and software details, which can be collected centrally to track assets across the network. Network administrators use this data to maintain compliance, plan upgrades, and audit device configurations in heterogeneous environments, reducing the need for physical inspections. In practice, switches store received LLDP advertisements in local databases, accessible via management protocols, allowing tools to compile comprehensive inventories without disrupting operations. LLDP supports troubleshooting by identifying configuration inconsistencies and connectivity issues, such as duplex mismatches between an phone and a switch port, through capability and status advertisements. During fault , administrators can query details to paths and pinpoint misconfigurations, streamlining resolution in multivendor setups. For example, LLDP traffic statistics helps diagnose intermittent link problems by revealing advertisement patterns and errors. Additional use cases include dynamic VLAN assignment for endpoints like VoIP devices and support for location services in emergency systems, such as E911, where LLDP conveys port and device location data to ensure accurate call routing. Extensions like LLDP-MED further enhance these applications for multimedia endpoints, enabling and policy enforcement in environments. Overall, LLDP's standardized approach reduces operational complexity and improves reliability in modern Ethernet-based networks.

Vendor Support and Comparisons

The Link Layer Discovery Protocol (LLDP), standardized as IEEE 802.1AB, enjoys broad adoption across major networking vendors due to its vendor-neutral nature, enabling in discovering neighboring devices on local area networks. Unlike Cisco's proprietary (CDP), LLDP is supported by a wide array of equipment from enterprise switches to industrial devices, facilitating topology mapping and configuration automation without . Cisco implements LLDP on its , , and switch families, with full compliance to the IEEE standard including optional Type-Length-Value (TLV) fields for chassis ID, port ID, and system capabilities. Cisco also extends support to LLDP-MED (Media Endpoint Discovery), an enhancement for VoIP and media devices that includes TLVs for network policy, via PoE, and location identification, enabling seamless integration with IP phones and endpoints. Juniper Networks supports LLDP across its EX Series, QFX Series, and MX Series routers and switches, allowing advertisement of device identity, capabilities, and management addresses while receiving information from peers. Juniper's implementation includes LLDP-MED for endpoint in VoIP environments, supporting features like voice assignment, PoE negotiation, and policy advertisement to simplify deployments in access layer networks. Arista Networks provides LLDP support in its EOS operating system on modular and fixed-configuration switches, enabling the exchange of basic neighbor information such as system name, , and details over Ethernet links. While Arista fully adheres to core LLDP functionality, its documentation does not explicitly detail LLDP-MED support, limiting advanced media endpoint features compared to competitors. Extreme Networks integrates LLDP into its EXOS and platforms for switches like the X-Series and S-Series, with capabilities to transmit and receive TLVs for inventory management and neighbor detection. Extreme fully supports LLDP-MED, including TLVs for capabilities, network policies, location, and extended power via PoE, which aids in provisioning and energy-efficient operations. Huawei incorporates LLDP in its CloudEngine and S-Series switches, supporting global and per-interface enabling for advertising management addresses, device IDs, and interface details to build network topologies. 's LLDP-MED implementation facilitates interoperability with IP phones through TLVs for assignment, QoS policies, and PoE power allocation, as demonstrated in configurations for environments.
VendorLLDP SupportLLDP-MED SupportKey Comparison Notes
Full (core TLVs, global/port config)Full (VoIP, PoE, TLVs)Often used alongside CDP for environments; provides granular MED negotiation.
Full (device discovery, med network policies)Full (voice , PoE negotiation)Emphasizes access layer VoIP integration; supports MED bypass for simplification.
AristaFull (neighbor advertisement, integration)Partial/limited (parsing from endpoints)Strong in LLDP use but less emphasis on MED for media endpoints.
Full (/, TLV transmission)Full (capabilities, , extended TLVs)Receives CDP alongside LLDP; optimized for PoE and VoIP provisioning.
Full (CloudEngine/S-Series, interface-specific)Full (IP phone interop, QoS/PoE TLVs)Focuses on topology building; MED enables voice and automation.
In comparisons, LLDP's standardization promotes multi-vendor ecosystems, reducing reliance on proprietary protocols like CDP, though Cisco devices often run both for . LLDP-MED adoption varies, with , , , and offering robust extensions for , while Arista prioritizes core LLDP for high-performance applications. Overall, vendor implementations align closely with IEEE specifications, but differences in MED features can impact VoIP and PoE deployments in mixed environments.

Security Considerations

Potential Risks

One primary security risk associated with the Link Layer Discovery Protocol (LLDP) is information disclosure, as the protocol broadcasts unencrypted details about device identities, capabilities, port information, and to neighboring devices via packets. This exposure allows passive attackers with network access to map the infrastructure, including device models, operating systems, and configurations, facilitating targeted reconnaissance for further exploits. LLDP's lack of built-in or enables spoofing and forgery attacks, where malicious actors can craft and transmit forged LLDP packets to impersonate legitimate devices or inject false data into recipients' Management Information Bases (MIBs). Such injections may lead to incorrect network configurations, such as directing (PoE) to unsupported devices, potentially causing hardware damage or operational disruptions. In (SDN) environments, this vulnerability manifests as topological poisoning, where attackers relay or fabricate LLDP packets to create illusory links, misleading the controller's topology view and enabling man-in-the-middle (MITM) intercepts or denial-of-service () conditions. Additionally, LLDP implementations are susceptible to DoS attacks through malformed packets that exploit parsing flaws, such as buffer overflows or memory leaks. For instance, crafted Type-Length-Value (TLV) structures exceeding defined limits (e.g., a 510-byte ID payload against a 255-byte maximum) can trigger crashes or resource exhaustion in affected devices. Specific vulnerabilities, like CVE-2023-20047 in Room Phone and Cisco Webex Share devices, demonstrate how crafted LLDP traffic can cause memory leaks, leading to crashes and unavailability. Similarly, CVE-2024-20294 highlights risks from specially crafted packets that overwhelm LLDP handlers. For example, CVE-2024-21618 in Junos OS allows via malformed LLDP packets causing crashes. These risks are exacerbated in environments where LLDP is enabled by default on broadcast domains, amplifying the for unauthorized access or disruption without requiring elevated privileges.

Best Practices

To mitigate risks associated with the Link Layer Discovery Protocol (LLDP), organizations should disable it globally on all devices unless it is explicitly required for operational purposes, such as automated discovery in managed environments. This approach minimizes the protocol's exposure of sensitive device information, including system identifiers, capabilities, and details, which adversaries could use for and targeting attacks. When LLDP is necessary, enable it selectively on trusted interfaces only, such as those connecting to known internal devices or supporting endpoints via LLDP-MED, while explicitly disabling it on untrusted interfaces facing external networks or potential adversaries. For devices, this can be achieved using commands like no lldp run globally and no lldp transmit or no lldp receive on specific interfaces to prevent unauthorized transmission or reception of LLDP advertisements. Regular audits of LLDP configurations should be conducted to ensure compliance, particularly in heterogeneous environments where LLDP with non- devices might be needed but should be limited to minimize the . Additionally, integrate LLDP management with broader controls, such as lists (ACLs) to filter LLDP frames ( 0x88CC) on edge ports and monitoring tools to detect anomalous LLDP traffic that could indicate spoofing attempts. Before deployment, perform a weighing LLDP's benefits for topology mapping against its potential to reveal structure, and document justifications for any enabled instances to support compliance with standards like those from NIST or CISA.

References

  1. [1]
    IEEE 802.1AB-2016
    Mar 11, 2016 · This document defines a protocol and a set of managed objects that can be used for discovering the physical topology from adjacent stations in IEEE 802(R) LANs.
  2. [2]
    What is the Link Layer Discovery Protocol (LLDP)? - TechTarget
    Jun 10, 2024 · The Link Layer Discovery Protocol (LLDP) is an extendable part of TCP/IP that facilitates the management of network resources.
  3. [3]
    [PDF] 802.1AB Overview Link Layer Discovery Protocol - IEEE 802
    Sep 30, 2004 · The protocol facilitates the identification of stations connected by IEEE 802 LANs/MANs, their points of interconnection, and access points for ...
  4. [4]
    Link Layer Discovery Protocol (LLDP) - Hilscher
    ... IEEE introduced the 802.1AB standard, which formalized Link Layer Discovery Protocol. This protocol was designed to enable network devices to advertise and ...<|control11|><|separator|>
  5. [5]
    Link Layer Discovery Protocol (802.1 AB) Fundamentals
    With Link Layer Discovery Protocol (LLDP) you can obtain node and topology information to help detect and correct network and configuration errors.<|control11|><|separator|>
  6. [6]
    Link Layer Discovery Protocol - Nokia Documentation Center
    The IEEE 802.1ab Link Layer Discovery Protocol (LLDP) standard defines protocol and management elements suitable for advertising information to stations ...
  7. [7]
    RFC 2922 - Physical Topology MIB - IETF Datatracker
    RFC 2922 defines a MIB for network management, used to identify connections between network ports and discover SNMP agent addresses.
  8. [8]
    draft-ietf-ptopomib-pdp-03
    Physical Topology Discovery Protocol and MIB (Internet-Draft, 1998)
  9. [9]
    [PDF] Link Layer Discovery Protocol and MIB - IEEE 802
    Mar 7, 2002 · The Link Layer Discovery Protocol (LLDP) is a media independent protocol intended to be run on all IEEE 802 devices, allowing a LLDP agent to ...Missing: history | Show results with:history
  10. [10]
    IEEE 802.1AB-2005
    802.1AB-2009; Board Approval: 2005-03-20; History. ANSI Approved: 2005-06-28; Published: 2005-05-06. Additional Resources. Interpretation: 802.1-2005_interp.zip ...
  11. [11]
    802.1AB-2009 - IEEE Standard for Local and Metropolitan Area ...
    Sep 17, 2009 · Date of Publication: 17 September 2009. ISBN Information: Electronic ISBN: 978-0-7381-6039-9. INSPEC Accession Number: Persistent Link: https ...
  12. [12]
    802.1ABdh-2021 - IEEE Standard for Local and metropolitan area ...
    This amendment to IEEE Std 802.1AB(TM)-2016 specifies protocols, procedures and managed objects that support the ... Date of Publication: 19 April 2022. ISBN Information: Electronic ISBN: 978-1-5044-8301-8.Missing: revisions | Show results with:revisions
  13. [13]
    Link Layer Discovery Protocol (LLDP) - Nokia Documentation Center
    Oct 25, 2023 · In other words, IEEE 802.1ab Link Layer Discovery Protocol allows an LLDP agent to learn connectivity and management information from adjacent ...
  14. [14]
    [PDF] Link Layer Discovery Protocol (LLDP) - Allied Telesis
    LLDP sends mandatory TLVs in each advertisement; it can also be configured to send one or more optional TLVs, from the following groups: ▫ Mandatory Base TLVs, ...
  15. [15]
  16. [16]
    Configuring LLDP [Cisco Network Convergence System 5000 Series]
    LLDP Frame Format​​ LLDP frames use the IEEE 802.3 format, which consists of the following fields: Destination address (6 bytes)—Uses a multicast address of 01- ...
  17. [17]
    LLDP Frame - IP Packet Format - Huawei Technical Support
    Aug 12, 2025 · The middle TLVs are optional, as shown in Figure 1-60. An LLDPDU must contain the Chassis ID TLV, Port ID TLV, and TTL TLV. Otherwise, the ...
  18. [18]
    [PDF] 802.1AB-2009.pdf
    IEEE Standards documents are developed within the IEEE Societies and the Standards Coordinating Committees of the. IEEE Standards Association (IEEE-SA) ...
  19. [19]
    Link Layer Discovery Protocol (LLDP, IEEE 802.1 AB) - Wireshark Wiki
    The Link Layer Discovery Protocol (LLDP) is a vendor neutral layer 2 protocol that can be used by a station attached to a specific LAN segment to advertise its ...
  20. [20]
    [PDF] Configure Link Layer Discovery Protocol (LLDP) Media Endpoint ...
    LLDP-MED TLVs are used to describe individual pieces of information that the protocols ... ANSI/TIA 1057: dotted hexadecimal data. Each byte in a ...
  21. [21]
    LLDP media endpoint discovery - Nokia Documentation Center
    LLDP media endpoint discovery (LLDP-MED) is an extension of LLDP that provides basic provisioning information to connected media endpoint devices. LLDP-MED ...
  22. [22]
    TIA ANSI/TIA-1057 - Accuris Standards Store
    Specific extensions for usage of LLDP-MED in Wireless LAN environments. Purpose. This Standard fills a recognized need in the Voice Over IP (VoIP) industry ...
  23. [23]
    [PDF] Using Link Layer Discovery Protocol in Multivendor Networks - Cisco
    Follows IEEE 802.1ab standard. • Enables interoperability among multivendor devices. • Facilitates troubleshooting of enterprise networks and uses standard ...
  24. [24]
    LLDP helps troubleshoot, map and more - Network World
    LLDP will be a useful management tool – particularly for heterogeneous networks – by providing accurate network mapping, inventory data and network ...Missing: cases | Show results with:cases
  25. [25]
    Configuring LLDP and LLDP-MED - Cisco
    Sep 19, 2007 · This chapter describes how to configure the Link Layer Discovery Protocol (LLDP) and LLDP Media Endpoint Discovery (LLDP-MED) on the switch.
  26. [26]
    [PDF] Configuring LLDP and LLDP-MED - Cisco
    This chapter describes how to configure the Link Layer Discovery Protocol (LLDP) and LLDP Media Endpoint Discovery (LLDP-MED) on the Cisco Industrial ...
  27. [27]
    Device Discovery Using LLDP | Junos OS - Juniper Networks
    LLDP power negotiation is not supported on EX3200 or EX4200 switches (except for the EX4200-PX models). LLDP power negotiation is supported on devices running ...Missing: Cisco Arista Huawei Extreme
  28. [28]
    lldp-med (Ethernet Switching) | Junos OS - Juniper Networks
    Configure Link Layer Discovery Protocol–Media Endpoint Discovery. LLDP-MED is an extension of LLDP. The device uses LLDP-MED to support device discovery of ...
  29. [29]
    EOS 4.34.2F - Link Layer Discovery Protocol - Arista
    LLDP is a discovery protocol that allows devices to advertise information about themselves to peer devices that are on the same physical LAN and store ...Missing: Cisco Juniper Huawei Extreme
  30. [30]
    configure lldp ports vendor-specific med capabilities
    The supported LLDP MED TLVs—For Extreme Networks devices, these are capabilities, network policy, location, and extended power (extended power only advertised ...
  31. [31]
    Configure LLDP MED TLVs for Transmission on Ports
    Use this procedure to configure organizational-specific TLVs for Link Layer Discovery Protocol (LLDP) Media Endpoint Devices (MED).
  32. [32]
    LLDP Configuration - Network Management and Monitoring
    Oct 19, 2021 · This document provides the configurations of network management and monitoring features supported by the product, including SNMP, RMON and RMON2, LLDP, ...
  33. [33]
    Interoperation Between Switches and IP Phones Through LLDP-MED
    Jun 23, 2025 · This document provides typical configuration examples for interoperation between Huawei switches and mainstream IP phones, firewalls, ...Overview · Implementation Process · Networking Requirements · Data Plan
  34. [34]
    [PDF] Network Infrastructure Security Guide - DoD
    Jun 15, 2022 · NSA recommends disabling CDP and LLDP on all devices capable of using these services. If a service is required for proper network communications ...
  35. [35]
    [PDF] A Link Layer Discovery Protocol Fuzzer - UT Computer Science
    Protocol (LLDP) fuzzer with ten test cases to find security vulnerabilities in LLDP-enabled network devices. The current test cases look for off-by-one.
  36. [36]
    [PDF] Mitigation of LLDP Topological Poisoning Attack in SDN ...
    In this paper, the Link Layer Discovery Protocol (LLDP) topological poisoning attack has been studied and analysed in order to provide possible mitigation ...<|control11|><|separator|>
  37. [37]
  38. [38]
  39. [39]
    Cisco IOS XE Software Hardening Guide
    This document describes information to secure your Cisco IOS XE Software system devices, which increases the overall security of your network.
  40. [40]
    Enhanced Visibility and Hardening Guidance for Communications ...
    Dec 4, 2024 · Ensure configuration with the most secure cryptographic options supported by the hardware. Disable all unnecessary discovery protocols, such as ...
  41. [41]
    Cisco NX-OS Software Hardening Guide
    As a security best practice, passwords should be managed with a TACACS+ or RADIUS authentication server. However, note that a locally configured username and ...