Current Location :Home > About Us > News Center > BLOG > LLDP-MED and Automatic Phone VLAN Discovery

LLDP-MED and Automatic Phone VLAN Discovery

Nov 27Source:RedstoneIntelligent Browse: 3
Background

LLDP-MED and Automatic Phone VLAN Discovery

A new IP phone plugged into an access port needs to know three things before it can make a call: which VLAN carries voice, how much power it can draw, and which priority marking to use. LLDP-MED supplies all three from the switch, so a phone can be installed without touching its configuration. The convenience is real, but it depends on the switch advertising correctly and on the phone trusting what it hears, which is not always the case in a mixed estate.

The 802.1AB Foundation

LLDP, standardised as 802.1AB, is a neighbour discovery protocol. Each device periodically sends a frame describing itself and listens to the frames from its neighbours. Unlike a proprietary discovery protocol, it is vendor neutral, which is why it has become the common way for phones and switches to exchange basic information. The information is stored by the neighbour and can be read back by a management system.

LLDP-MED extends LLDP with type-specific information for endpoint devices such as phones. A switch port advertises the voice VLAN identifier, the power it can supply through PoE, and the layer two and layer three priority values the phone should apply. A phone that supports LLDP-MED reads these values as it starts and configures itself accordingly, without a manual VLAN assignment on the device.

InformationAdvertised byUsed by the phone for
Voice VLAN IDSwitch port via LLDP-MEDTagging voice frames on the correct VLAN
PoE powerSwitch via LLDP power negotiationRequesting the power class it needs
Layer 2 prioritySwitch via LLDP-MED802.1p marking of voice frames
Layer 3 prioritySwitch via LLDP-MEDDSCP marking of RTP packets
Port and locationSwitch via LLDP and location TLVsEmergency call location data
Neighbour identityBoth devicesInventory and topology mapping

What the Switch Must Be Configured to Do

Enabling LLDP globally is not the same as enabling the MED advertisements that a phone needs. The port must be configured as a voice VLAN port, with the voice VLAN identified and the MED TLVs enabled. The native or data VLAN for a attached PC also has to be defined, because the same port often serves a phone and a workstation behind it. Getting the two VLANs confused is the most common source of phones that boot but never register.

PoE negotiation deserves separate attention. A phone can draw power without LLDP, using the default classification, but LLDP power negotiation lets it request a specific allocation. Where a switch is near its power budget, a phone that requests more than is available may boot partially or reboot when features such as a colour display or a Wireless module are active. The switch should be sized on the negotiated demand, not on the theoretical minimum.

Marking and Trust Boundaries

The priority values delivered by LLDP-MED tell the phone how to mark its own traffic. The switch port must then trust those markings, otherwise it will rewrite them and the careful marking at the phone is wasted. Conversely, trusting markings from a port where a user can attach their own device creates a way to jump the voice queue. The trust setting should match the physical reality of the port.

  • Enable LLDP and LLDP-MED TLVs explicitly on voice access ports
  • Define both the voice VLAN and the data VLAN on each port
  • Verify that the switch trusts voice markings only where a phone is expected
  • Size the PoE budget against negotiated demand, not minimum classification
  • Confirm the phone actually supports LLDP-MED before relying on it
  • Check neighbour tables to see what the switch believes is connected

LLDP-MED Versus DHCP Options

Before LLDP-MED became widespread, phones learned the voice VLAN through a DHCP option carrying a vendor-specific string. Many platforms still support it, and some estates use both mechanisms at once. The difference matters when they disagree: a phone may take the VLAN from one source and the priority marking from another, producing a configuration that works intermittently depending on boot timing.

LLDP-MED has the advantage of being standardised and of carrying power and priority information that a DHCP string was never designed for. DHCP options remain useful where switches do not support LLDP-MED or where phones are behind a device that does not pass LLDP frames. The important thing is to choose one authoritative source per site and to document it, rather than leaving both enabled and hoping they agree.

AspectLLDP-MEDDHCP vendor option
StandardisationIEEE standard, vendor neutralVendor-specific string formats
Voice VLANYesYes, format varies by vendor
PoE negotiationYesNo
Priority markingYesLimited or none
Requires switch supportYes, with MED enabledNo, only a DHCP server
Failure modePhone uses default VLANPhone waits for the option or guesses

Multi-Vendor Behaviour and Troubleshooting

Mixed estates are the norm. A switch from one vendor, phones from another, and a DHCP server managed by a third team is a common combination, and each may claim to support LLDP while differing on which TLVs are actually sent. The practical diagnostic is to read the LLDP neighbour table on the switch and the LLDP information shown by the phone. If the switch advertises a voice VLAN that the phone never applies, the problem is on the phone side; if the switch shows no MED values, it is on the switch side.

Timing also matters. A phone boots, negotiates power, reads LLDP, and then requests an address on the voice VLAN. If LLDP frames are delayed or the switch port is still in a default state, the phone may fall back to a default VLAN and stay there until rebooted. A port that is configured correctly but applied after the phone has booted will not fix an already running device.

A Short Troubleshooting Sequence

Begin with physical facts: is the phone connected to the expected port, is the port on the correct VLAN, and is PoE available. Then read what the switch advertises, then what the phone received, and only then look at DHCP. Following this order avoids changing DHCP settings when the fault is a missing MED advertisement.

  • Read the switch neighbour table before changing phone settings
  • Compare the advertised VLAN with the VLAN the phone is using
  • Check PoE state when a phone boots slowly or resets
  • Confirm priority markings are trusted on the access port
  • Choose one authoritative source when LLDP and DHCP both exist
  • Reboot a phone after a switch port configuration change

Security and Rogue Device Protection

LLDP makes configuration easy partly because it is trusting. A device that can send LLDP frames on an access port can claim to be a phone and may be placed into the voice VLAN automatically. Where that VLAN has access to sensitive systems, the discovery mechanism becomes a way around the port design. Port security, 802.1X, or a strict limit on the number of devices per port should be used alongside LLDP rather than instead of it.

The same issue appears when a user connects a small switch under a desk. LLDP may advertise to several devices behind it, and the voice VLAN can extend further than intended. A design that ties voice VLAN assignment to a single authenticated endpoint avoids this, and it also makes the inventory accurate because the switch knows exactly which port holds a phone.

Discovery as Part of the Inventory

Because LLDP carries neighbour information in both directions, it can do more than configure a phone. The switch can report which phone model is attached to which port, and the phone can report which switch and port it sees. That mapping is useful for inventory and for troubleshooting a device that has been moved. Where access control is also in use, the same information helps confirm that the physical and logical records agree.

  • Use neighbour tables to reconcile phone inventory with port records
  • Check advertised location data used for emergency calls
  • Keep the voice VLAN identifier consistent across similar ports
  • Review PoE utilisation after adding high-demand phone models
  • Confirm LLDP frames are passed by any device between switch and phone
  • Record the discovery method chosen for each site

Redstone Approach

Redstone NRP IP phones support LLDP-MED for voice VLAN discovery, power negotiation, and priority marking, so phones can be deployed on standards-compliant access ports without per-device VLAN configuration. The platform can operate alongside DHCP-based discovery where older network equipment requires it, and the management system reports the VLAN and registration state of each phone so that a discovery fault can be separated from a registration fault.

About Redstone

Redstone Systems, Inc. founded in Delaware, USA in December 2002, has been the ODM vendor for many well-known communications companies, serving the Southeast Asian market. In 2020, Redstone Systems will begin to return to the North America market with its self-developed brand.


Redstone has a complete product line of intelligent voice gateways, providing IP-PBXs, analog VoIP gateways (FXS/FXO), digital VoIP gateways (E1/T1), border appliances, and session boundary controllers (SBCs).


With advanced technology in digital signal processor (DSP), speech coding and speech processing, as well as efficient operational tools such as cloud remote management, auto provisioning, Redstone gateways are widely used in markets of enterprise communications, cloud communications, call centers, operators’ IMS/SIP trunks, bringing users friendly, efficient and reliable communication experience.


For more information about Redstone, You can follow us on Facebook, Linkedin, and Youtube to be the first to get the latest news.

Contact Us

Mobile Phonel

Email: globalmarketing@redstonesystems.com

Address: 12816 SE 75th Court, Newcastle WA 98059, USA

Contact Us
We will do our best to contact you as soon as possible. In the meantime, please contact us for more information.
  • First Name*

  • Last name*

  • Company Name*

  • Email*

  • Phone

  • Product*

  • Message

  • I have read and agreed Privacy Policy
Privacy_policy
×

Privacy Statement

Platform information submission - privacy agreement

● Privacy Policy

We are committed to protecting the privacy, personal data and personal data (collectively referred to as "personal data") provided by you when using this website. Make us comply with the highest standards in terms of collection, use, storage and transmission of personal data (laws and regulations related to privacy of personal data) and consumer protection. To ensure that you have full confidence in the handling of personal data on this website, you must carefully read and understand the provisions of the privacy policy. This website (hereinafter referred to as "us") respects and protects the privacy of users. In particular, once you use this website, you will be deemed to accept, agree, promise and confirm this privacy agreement; You disclose your personal data to us voluntarily with the required consent; You will abide by any modification of this privacy policy; You agree that our relevant business personnel will contact you regarding the products and services you may be interested in (unless you have indicated that you do not want to receive such messages). With your consent, we will collect, manage and monitor the types of personal data collected


1. Scope of application

It is our unremitting pursuit to provide users with better, better and more personalized services. We also hope that the services we provide will be more convenient for your needs. This privacy policy applies to all information collection services provided by this website. You can visit this website and use the services provided by this website using this privacy policy


2. What information do we collect

In order to provide you with our various services, you need to provide personal data information, including personal data and anonymous data, including but not limited to: personal data (your name, gender, age, date of birth, telephone number, fax number, address or mailing address, e-mail address, etc.)


3. How to use the collected information

The purposes and purposes of collecting personal data and anonymous data are as follows: to provide you with our services through this website; When you use our website, you can identify and confirm your identity; Let you get the service for you when you use this website; The relevant business personnel of this website can contact you when necessary; Make it more convenient for you to use this website; The personal data and anonymous data provided by you to us will only be retained until the collection purpose has been achieved, unless they are retained due to applicable laws and regulations. The ownership of personal data and disclosure of all data collected on our website are owned by us and will not be leased or sold to any unrelated third party

 

4. How do we protect information

For the protection of personal data, we implement appropriate physical, electronic and management measures to protect and guarantee the safety of your personal data. We try our best to ensure that any personal data collected through this website is free from any nuisance of a third party unrelated to us. The security measures we take are not limited to: physical measures: the records with your personal data will be stored in a locked place Electronic measures: the computer data with your personal data will be stored in the computer system and storage media subject to strict login restrictions Management measures: only employees authorized by us can access your personal data, These employees need to comply with our internal rules on the confidentiality of personal data. If you are aware of any security loopholes on this website, please contact us in time so that we can take appropriate actions as soon as possible; Despite the implementation of the above security measures, we cannot guarantee the absolute security of data transmission on the Internet, so we cannot absolutely guarantee that the personal data and anonymous data you provide to us through this website are safe at all times. We will not be responsible for any unauthorized access to your personal data, and we will not be responsible for any losses and damages incurred or caused in this regard.

 

5. Juvenile Protection Law

The minor has provided personal data to this website without the approval or consent of any parent or guardian. Please contact the public telephone number and customer service telephone number on this website in time to ensure that the data are removed

 

6. Revision and effectiveness of privacy policy

With the expansion of the service scope of this website, we may revise the Legal Statement and Privacy Policy from time to time, which forms a part of this Legal Statement and Privacy Policy. In order to prevent you from being informed of such revisions, please read this Legal Statement and Privacy Policy frequently. In any way, if you continue to use our services, you agree to be bound by the revised Legal Statement and Privacy Policy