IP Telephony Features · Topic 2 of 2

LLDP, LLDP-MED and Voice VLAN

JN0-650 study page on LLDP and LLDP-MED discovery and the voice VLAN on Junos EX and QFX: timers, TLVs, voip configuration and verification commands.

  • 5 min
In a nutshell
  • LLDP: IEEE 802.1AB, default advertisement every 30 seconds, hold multiplier 4.
  • LLDP-MED: ANSI/TIA-1057; network policy, location, extended power and inventory TLVs.
  • Voice VLAN: tagged voice frames from the phone and untagged data frames from the PC on one access port.

What it is

LLDP (Link Layer Discovery Protocol, IEEE 802.1AB) is a vendor neutral protocol where devices announce their identity and capabilities to the device at the other end of a link. LLDP-MED (Media Endpoint Discovery, ANSI/TIA-1057) extends LLDP so that a switch and an IP phone can exchange the information that phones need.

A voice VLAN is a separate VLAN for the phone's traffic. The phone sends its voice frames tagged and the PC behind it sends its frames untagged, so one port carries both without mixing them.

PhonePlugs inLLDP MEDSwitchAdvertises voice VLAN and prioritytagged voice framesVoice VLAN

How it works

LLDP basics

ItemDetail
StandardIEEE 802.1AB
FrameEthertype 0x88CC, sent to the multicast address 01:80:C2:00:00:0E
Link scopeFrames are not forwarded by bridges
Advertisement interval30 seconds by default
Hold multiplier4 by default, so information is kept for 120 seconds
Mandatory TLVsChassis ID, Port ID, Time To Live
Optional TLVsPort description, system name, system description, system capabilities, management address
set protocols lldp interface all
set protocols lldp interface ge-0/0/9 disable
set protocols lldp advertisement-interval 30
set protocols lldp hold-multiplier 4

LLDP is useful for inventory, for troubleshooting ("which port does this cable go to?") and as the base for LLDP-MED.

LLDP-MED

LLDP-MED adds TLVs designed for endpoints such as phones. It runs on top of LLDP, so LLDP must be enabled as well.

TLVWhat it tells the phone
Network policyThe voice VLAN ID, whether it is tagged, the 802.1p priority and the DSCP value to use
LocationA location identifier for emergency calls
Extended power via MDIHow much power the phone needs and what the switch can supply
InventoryHardware, firmware and software details
CapabilitiesWhich LLDP-MED features the device supports
set protocols lldp-med interface ge-0/0/5
set protocols lldp-med interface all

A phone that supports LLDP-MED learns its voice VLAN from the switch instead of being configured by hand. It can also negotiate its power through the extended power TLV.

Exam tip

When a question asks how the phone automatically learns the voice VLAN ID and priority, the answer is the LLDP-MED network policy TLV.

Voice VLAN configuration

The port is configured as an access port in the data VLAN, and the voip statement adds the voice VLAN to it. On ELS switches the statement is under switch-options.

set vlans DATA vlan-id 10
set vlans VOICE vlan-id 20
set interfaces ge-0/0/5 unit 0 family ethernet-switching interface-mode access vlan members DATA
set switch-options voip interface ge-0/0/5.0 vlan VOICE
set protocols lldp-med interface ge-0/0/5

Older non-ELS EX software configures it under ethernet-switching-options voip. The port then accepts untagged frames in the data VLAN and tagged frames for the voice VLAN. You can also set a forwarding class for voice frames on the same statement, so that CoS can prioritize them.

PhoneTagged VLAN 20portVoice VLANPCUntaggedportData VLAN 10
Watch out

The voice VLAN does nothing for a phone that does not understand LLDP-MED, unless the phone is configured with the VLAN ID or learns it another way, such as DHCP options or a vendor protocol.

Combining with 802.1X

A phone and a PC on one port both authenticate through 802.1X with supplicant multiple. The phone can authenticate by 802.1X or by MAC RADIUS, and it is placed into the voice VLAN. The PC is placed in the data VLAN.

Verification and troubleshooting

show lldp
show lldp neighbors
show lldp neighbors interface ge-0/0/5
show lldp local-information
show lldp statistics
show ethernet-switching interface ge-0/0/5

show lldp neighbors lists the connected devices by chassis and port ID. The detailed output shows the TLVs the neighbor sent, including the LLDP-MED capabilities.

SymptomLikely cause
No LLDP neighborLLDP disabled on the port, or the neighbor does not send LLDP
Phone does not learn the voice VLANLLDP-MED not enabled on the port, or the phone has no MED support
Voice and data in one VLANvoip statement missing
No power but link upPoE issue, not LLDP; check show poe interface
Phone tagged but cannot reach call serverVoice VLAN not routed, or missing from the uplink trunk

Common mistakes

Enabling LLDP-MED without LLDP. MED depends on LLDP.

Forgetting the voice VLAN on the uplink trunk. Phone traffic stops at the access switch.

Mixing up the VLANs. The phone's frames are tagged and the PC's are untagged.

Setting the port to trunk mode for a phone. An access port with voip is the standard method.

Expecting LLDP frames to cross switches. They stay on one link.

What to remember for the exam

  • LLDP: IEEE 802.1AB, default advertisement every 30 seconds, hold multiplier 4.
  • LLDP-MED: ANSI/TIA-1057; network policy, location, extended power and inventory TLVs.
  • Voice VLAN: tagged voice frames from the phone and untagged data frames from the PC on one access port.
  • ELS: set switch-options voip interface name vlan name.
  • show lldp neighbors and show lldp local-information verify discovery.
  • The voice VLAN must exist on uplinks and be routed to the call server.

Check yourself

  • Which LLDP-MED TLV tells a phone its voice VLAN ID and priority?

    The network policy TLV.

  • How does one access port carry both phone and PC traffic separately?

    The phone's voice frames are tagged in the voice VLAN and the PC's frames are untagged in the data VLAN, configured with voip.

  • What is the default LLDP advertisement interval?

    30 seconds.

Topic 2 of 2 in IP Telephony Features

Test yourself on IP Telephony Features

The full Juniper JNCIP-ENT JN0-650 question bank has 858 questions, with timed practice exams and an explanation for every answer.

This study guide is independent and is not affiliated with, endorsed by, or sponsored by Juniper. Vendor names, certification names and exam codes are trademarks of their respective owners and are used for identification only.