LLDP

 

LLDP (Link Layer Discovery Protocol) allows Ethernet network devices to receive and/or transmit device-related information to directly connected devices on the network that are also using the protocol, and store the information that is learned about other devices. Information gathered with LLDP is stored in the device as a management information database (MIB) and can be queried with the Simple Network Management Protocol (SNMP) as specified in RFC 2922. LLDP transmits information as packets called LLDP Data Units (LLDPDUs). An LLDPDU consists of a set of Type-Length- Value (TLV) elements, each of which contains a particular type of information about the device or port transmitting it.

Each of the TLV components has the following basic structure:

 

Type

Length

Value

7 bits

9bits

0-510 octets

 

  • LLDP supports advertising the following TLVs:

    • Mandatory LLDP TLVs: Chassis ID, Port ID, and Time to Live (TTL) are included in an LLDPDU by default.

    • Optional LLDP TLVs: System Name, System Description and so on, the phone sends the optional TLVs along with the mandatory TLVs in an LLDPDU.

    • Organizationally Specific TLVs: MAC/PHY Configuration/Status and Port VLAN ID, which are defined in IEEE Standard 802.3 and 802.1 respectively. 

    • The LLDP frame ends with a special TLV, named end of LLDPDU in which both the type and length fields are 0.

  • LLDP -MED

    • LLDP -MED (Media Endpoint Discovery) is published by the Telecommunications Industry Association (TIA). It is an extension to LLDP that operates between endpoint devices and network connectivity devices. LLDP -MED specifically provides support for voice over

    • IP (VoIP) applications and provides the following capabilities:

      • Capabilities Discovery—allows LLDP -MED endpoints to determine the capabilities that the connected device supports and has enabled. It can be used to indicate whether the connected device is a phone, a switch, a repeater, etc.

      • Voice VLAN Configuration—provides a mechanism for a switch to notify a device which VLAN to use, which enables ―plug and play‖ networking.

      • Power Management—provides information related to how the device is powered, power priority, and how much power the device needs.

      • Inventory Management—provides a means to manage device and the attributes of the device such as model number, serial number, software revision, etc.

      • Location Identification Discovery—provides location information from the switch to the device when making an emergency call.
         

  • In addition to the TLVs advertised by LLDP, LLDP -MED also supports advertising the following TLVs:

    • It should be noted that either LLDP or LLDP -MED—but not both—can be used at any given time on an interface between two devices

      • LLDP -MED capabilities TLV

      • Network policy TLV

      • Power management TLV

      • Inventory management TLV

      • Location identification TLV (not supported by IP phones)
         

  • LLDP Feature on Sangoma IP Phones

    • LLDP provides exceptional interoperability benefits, IP telephony troubleshooting, automatic deployment of policies and advanced PoE (Power over Ethernet). When LLDP feature is enabled on IP phones, the IP phones periodically advertise their own information to the directly connected LLDP -enabled switch. The IP phones can also receive LLDP packets from the connected switch. When the application type is “voice”, IP phones decide whether to update the VLAN configurations obtained from the LLDP packets. When the VLAN configurations on the IP phones are different from the ones sent by the switch, the IP phones perform an update and reboot. This allows IP phones to be plugged into any switch, obtain their VLAN IDs, and then start communications with the call control.
       

  • Supported TLVS of IP Phones

    • TLVs supported by IP phones are summarized in the following table:

TLV Name

TLV Type

Description

Mandatory TLVs

Chassis ID

 

Specifies the IP address of the sending port.

Port ID

 

Specifies the MAC address of the IP phone.

Time To Live

 

Specifies the life of the transmitted information on the IP phone.The default value is 180sec.

End of LLDPDU

 

Marks the end of the TLV sequence in the LLDPDU. No further processing of TLVs after this is necessary. This is a mandatory TLV and therefore must be present at the end of the data stream.

Optional TLVs

 

System Name

 

Specifies the administratively-assigned name for the IP phone.

System Description

 

Specifies the description of the IP phone. The default value is IP Phone

System Capabilities

Specifies the supported and enabled capabilities of the IP phone. The supported capabilities are Bridge, Router and Telephone. The enabled capabilities are Bridge and Telephone by default.

Port Description

 

Specifies the description of the sending port. The default value is “WAN PORT”

IEEE Std 802.3

Organizationally Specific TLV

 

MAC/PHY

Configuration/Status

 

Specifies duplex and bit rate settings of the IP phone. The Auto Negotiation is supported and enabled by default.

The advertised capabilities of PMD. Auto-Negotiation are:

  • 100BASE-TX (full duplex mode)

  • 100BASE-TX (half duplexmode)

  • 10BASE- T (full duplex mode)

  • 10BASE- T (half duplex mode)

LLDP -MED TLVs

Media Capabilities

 

Specifies the MED device type of the IP phone and the supported LLDP -MED TLV type can be encapsulated in LLDPDU.

The supported LLDP -MED TLV types are:

  • LLDP -MED Capabilities

    • Network Policy

    • Extended Power via MDI-PD

    • Inventory

Network Policy

Specifies the port VLAN ID, application type, L2 priority and DSCP value.

Extended

Power-via-MDI

Specifies power type, source, priority and value.

Inventory –

Firmware Revision

Specifies the firmware revision of IP phone.

Inventory – Serial

Number

Specifies the serial number of IP phone.

Inventory –

Manufacturer Name

Manufacturer name of IP phone. The default value is “Sangoma”

Inventory – Model Name

Specifies the model name of IP phone.

Asset ID

Specifies the asset identifier of IP phone. The default value is “asset”.

  • Enabling LLDP

    • LLDP is enabled on the phones from the factory by default starting with firmware 2.0.4.7.  If you phone shipped with a previous firmware version you will need to upgrade to 2.0.4.7 and do a factory reset on the device for it to default with LLDP on.  You will also need to make sure in your Sangoma Phone Tempalte in EPM that you have LLDP enabled as shown below otherwise once the phone gets a config it would turn off LLDP as the default is set to Disabled in EPM templates.


       

  • Verifying the Configuration

    • After LLDP feature is enabled, the IP phone performs the following:

      • Periodically advertises information (e.g., hardware revision, firmware revision, serial number) of the IP phone to a multicast address on the network.

      • Allows LLDP packets to be received from the Internet (WAN) port.

      • Supports the MAC/PHY configuration (e.g., speed rate, duplex mode).

      • Obtains VLAN info from the network policy , this takes precedence over manual settings.

Return to Documentation Home I Return to Sangoma Support