Link Layer Discovery Protocol


The Link Layer Discovery Protocol is a vendor-neutral link layer protocol used by network devices for advertising their identity, capabilities, and neighbors on a local area network based on IEEE 802 technology, principally wired Ethernet. The protocol is formally referred to by the IEEE as Station and Media Access Control Connectivity Discovery specified in IEEE 802.1AB and IEEE 802.3 section 6 clause 79.
LLDP performs functions similar to several proprietary protocols, such as Cisco Discovery Protocol, Foundry Discovery Protocol, Nortel Discovery Protocol and Link Layer Topology Discovery.

Information gathered

Information gathered with LLDP can be stored in the device management information base and queried with the Simple Network Management Protocol as specified in RFC 2922. The topology of an LLDP-enabled network can be discovered by crawling the hosts and querying this database. Information that may be retrieved include:
The Link Layer Discovery Protocol may be used as a component in network management and network monitoring applications.
One such example is its use in data center bridging requirements. The is a discovery and capability exchange protocol that is used for conveying capabilities and configuration of the above features between neighbors to ensure consistent configuration across the network.
LLDP is used to advertise power over Ethernet capabilities and requirements and negotiate power delivery.

Frame structure

LLDP information is sent by devices from each of their interfaces at a fixed interval, in the form of an Ethernet frame. Each frame contains one LLDP Data Unit. Each LLDPDU is a sequence of type-length-value structures.
The Ethernet frame used in LLDP typically has its destination MAC address set to a special multicast address that 802.1D-compliant bridges do not forward. Other multicast and unicast destination addresses are permitted. The EtherType field is set to 0x88cc.
Each LLDP frame starts with the following mandatory TLVs: Chassis ID, Port ID, and Time-to-Live. The mandatory TLVs are followed by any number of optional TLVs. The frame ends with a special TLV, named end of LLDPDU in which both the type and length fields are 0.
Accordingly, an Ethernet frame containing an LLDPDU has the following structure:
PreambleDestination MACSource MACEthertypeChassis ID TLVPort ID TLVTime to live TLVOptional TLVsEnd of LLDPDU TLVFrame check sequence
01:80:c2:00:00:0e, or
01:80:c2:00:00:03, or
01:80:c2:00:00:00
Station's address0x88CCType=1Type=2Type=3Zero or more complete TLVsType=0, Length=0

Each of the TLV components has the following basic structure:
TypeLengthValue
7 bits9 bits0-511 octets

TLV typeTLV nameUsage in LLDPDU
0End of LLDPDUMandatory
1Chassis IDMandatory
2Port IDMandatory
3Time To LiveMandatory
4Port descriptionOptional
5System nameOptional
6System descriptionOptional
7System capabilitiesOptional
8Management addressOptional
9–126Reserved-
127Custom TLVsOptional

Custom TLVs are supported via a TLV type 127. The value of a custom TLV starts with a 24-bit organizationally unique identifier and a 1 byte organizationally specific subtype followed by data. The basic format for an organizationally specific TLV is shown below:
TypeLengthOrganizationally unique identifier Organizationally defined subtypeOrganizationally defined information string
7 bits—1279 bits24 bits8 bits0-507 octets

According to IEEE Std 802.1AB, §9.6.1.3, "The Organizationally Unique Identifier shall contain the organization's OUI as defined in IEEE Std 802-2001." Each organization is responsible for managing their subtypes.

Media endpoint discovery extension

Media Endpoint Discovery is an enhancement of LLDP, known as LLDP-MED, that provides the following facilities:
The LLDP-MED protocol extension was formally approved and published as the standard ANSI/TIA-1057 by the Telecommunications Industry Association in April 2006.