Link Layer Discovery Protocol
   HOME

TheInfoList



OR:

The Link Layer Discovery Protocol (LLDP) is a vendor-neutral link layer protocol used by
network device Networking hardware, also known as network equipment or computer networking devices, are electronic devices which are required for communication and interaction between devices on a computer network. Specifically, they mediate data transmission in ...
s for advertising their identity, capabilities, and neighbors on a
local area network A local area network (LAN) is a computer network that interconnects computers within a limited area such as a residence, school, laboratory, university campus or office building. By contrast, a wide area network (WAN) not only covers a large ...
based on
IEEE 802 IEEE 802 is a family of Institute of Electrical and Electronics Engineers (IEEE) standards for local area networks (LAN), personal area network (PAN), and metropolitan area networks (MAN). The IEEE 802 LAN/MAN Standards Committee (LMSC) maintai ...
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 with additional support in IEEE 802.3 section 6 clause 79. LLDP performs functions similar to several
proprietary protocol In telecommunications, a proprietary protocol is a communications protocol owned by a single organization or individual. Intellectual property rights and enforcement Ownership by a single organization gives the owner the ability to place restric ...
s, 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 A management information base (MIB) is a database used for managing the entities in a communication network. Most often associated with the Simple Network Management Protocol (SNMP), the term is also used more generically in contexts such as in ...
(MIB) and queried with the
Simple Network Management Protocol Simple Network Management Protocol (SNMP) is an Internet Standard protocol for collecting and organizing information about managed devices on IP networks and for modifying that information to change device behaviour. Devices that typically ...
(SNMP) 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: * System name and description *
Port A port is a maritime facility comprising one or more wharves or loading areas, where ships load and discharge cargo and passengers. Although usually situated on a sea coast or estuary, ports can also be found far inland, such as H ...
name and description *
VLAN A virtual local area network (VLAN) is any broadcast domain that is partitioned and isolated in a computer network at the data link layer (OSI layer 2).IEEE 802.1Q-2011, ''1.4 VLAN aims and benefits'' In this context, virtual, refers to a phys ...
name * IP management address * System capabilities ( switching,
routing Routing is the process of selecting a path for traffic in a network or between or across multiple networks. Broadly, routing is performed in many types of networks, including circuit-switched networks, such as the public switched telephone netw ...
, etc.) * MAC/ PHY information * MDI power *
Link aggregation In computer networking, link aggregation is the combining ( aggregating) of multiple network connections in parallel by any of several methods, in order to increase throughput beyond what a single connection could sustain, to provide redunda ...


Applications

The Link Layer Discovery Protocol may be used as a component in
network management Network management is the process of administering and managing computer networks. Services provided by this discipline include fault analysis, performance management, provisioning of networks and maintaining quality of service. Network managem ...
and
network monitoring Network monitoring is the use of a system that constantly monitors a computer network for slow or failing components and that notifies the network administrator (via email, SMS or other alarms) in case of outages or other trouble. Network monito ...
applications. One such example is its use in data center bridging requirements. The (DCBX) 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 Power over Ethernet, or PoE, describes any of several standards or ad hoc systems that pass electric power along with data on twisted-pair Ethernet cabling. This allows a single cable to provide both data connection and electrical power to ...
capabilities and requirements and negotiate power delivery.


Media endpoint discovery extension

''Media Endpoint Discovery'' is an enhancement of LLDP, known as LLDP-MED, that provides the following facilities: * Auto-discovery of LAN policies (such as VLAN, Layer 2 Priority and
Differentiated services Differentiated services or DiffServ is a computer networking architecture that specifies a mechanism for classifying and managing network traffic and providing quality of service (QoS) on modern IP networks. DiffServ can, for example, be used t ...
(Diffserv) settings) enabling
plug and play In computing, a plug and play (PnP) device or computer bus is one with a specification that facilitates the recognition of a hardware component in a system without the need for physical device configuration or user intervention in resolving resou ...
networking. * Device location discovery to allow creation of location databases and, in the case of
Voice over Internet Protocol Voice over Internet Protocol (VoIP), also called IP telephony, is a method and group of technologies for the delivery of voice communications and multimedia sessions over Internet Protocol (IP) networks, such as the Internet. The terms Internet t ...
(VoIP),
Enhanced 911 Enhanced 911, E-911 or E911 is a system used in North America to automatically provide the caller's location to 911 dispatchers. 911 is the universal emergency telephone number in the region. In the European Union, a similar system exists known as ...
services. * Extended and automated power management of
Power over Ethernet Power over Ethernet, or PoE, describes any of several standards or ad hoc systems that pass electric power along with data on twisted-pair Ethernet cabling. This allows a single cable to provide both data connection and electrical power to ...
(PoE) end points. * Inventory management, allowing network administrators to track their network devices, and determine their characteristics (manufacturer, software and hardware versions, serial or asset number). The LLDP-MED protocol extension was formally approved and published as the standard ANSI/TIA-1057 by the
Telecommunications Industry Association The Telecommunications Industry Association (TIA) is accredited by the American National Standards Institute (ANSI) to develop voluntary, consensus-based industry standards for a wide variety of Information and Communication Technologies ( ICT) ...
(TIA) in April 2006.


System Capability Codes


Frame structure

LLDP information is sent by devices from each of their interfaces at a fixed interval, in the form of an
Ethernet frame In computer networking, an Ethernet frame is a data link layer protocol data unit and uses the underlying Ethernet physical layer transport mechanisms. In other words, a data unit on an Ethernet link transports an Ethernet frame as its payload ...
. Each frame contains one LLDP Data Unit (LLDPDU). Each LLDPDU is a sequence of
type–length–value Within communication protocols, TLV (type-length-value or tag-length-value) is an encoding scheme used for optional informational elements in a certain protocol. A TLV-encoded data stream contains code related to the record type, the record val ...
(TLV) structures. The Ethernet frame used in LLDP typically has its destination
MAC address A media access control address (MAC address) is a unique identifier assigned to a network interface controller (NIC) for use as a network address in communications within a network segment. This use is common in most IEEE 802 networking te ...
set to a special
multicast address A multicast address is a logical identifier for a group of hosts in a computer network that are available to process datagrams or frames intended to be multicast for a designated network service. Multicast addressing can be used in the link l ...
that 802.1D-compliant bridges do not forward. Other multicast and unicast destination addresses are permitted. The
EtherType EtherType is a two-Octet (computing), octet field in an Ethernet frame. It is used to indicate which Communications protocol, protocol is Encapsulation (networking), encapsulated in the payload of the frame and is used at the receiving end by th ...
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 optionally ends with a special TLV, named ''end of LLDPDU'' in which both the ''type'' and ''length'' fields are 0.IEEE 802.1AB-2016 chapter 8.4 Accordingly, an Ethernet frame containing an LLDPDU has the following structure: Each of the TLV components has the following basic structure: Custom TLVsTermed ''Organizationally Specific TLVs'' by IEEE 802.1AB 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: 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.


Notes


References

{{reflist


External links


Tutorial on the Link Layer Discovery Protocol
on
EE Times ''EE Times'' (''Electronic Engineering Times'') is an electronics industry magazine published in the United States since 1972. EE Times is currently owned by AspenCore, a division of Arrow Electronics since August 2016. Since its acquisitio ...

802.1AB - Station and Media Access Control Connectivity Discovery
on IEEE 802.1
Link Layer Discovery Protocol
on The
Wireshark Wireshark is a free and open-source packet analyzer. It is used for network troubleshooting, analysis, software and communications protocol development, and education. Originally named Ethereal, the project was renamed Wireshark in May 2006 du ...
Wiki Computer networks Device discovery protocols Ethernet standards IEEE standards Link protocols Logical link control Network protocols