How to Configure Microsoft LLDP Protocol Driver

Gunnar Haslinger 31 Reputation points
2021-04-30T09:00:42.527+00:00

Windows 10 has activated the "MsLldp" Service on Network Adapters. This "MsLldp" Service sends LLDP Ethernet-Frames to managed Switches so that they show up in the LLDP Neighbors Table.

I like to get Information how to Configure this Service.

Default configuration is, that it only sends the MAC-Address of the Ethernet-Adapter as "LLDP Chassis Subtype". How to Configure this Service to send for example "System name" or "Port Description" Information ...?

Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,363 questions
0 comments No comments
{count} vote

Accepted answer
  1. Gary Nebbett 6,086 Reputation points
    2021-05-04T06:53:50.347+00:00

    Hello @Gunnar Haslinger ,

    Unfortunately, using the registry to change the behaviour of Mslldp looks like a dead end.

    This is what I have found: the driver always tries to read a REG_SZ value named ChassisId from the service's Parameters subkey; if this fails, the service reads the ComputerName value from the key HKLM\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName. The result of this process (i.e. either the ChassId or ComputerName value) is stored in a global variable which appears not to be used (apart from initialization and cleanup).

    It is still possible that Mslldp is capable of more than we suspect (perhaps controlled via IOCTLs) but I doubt it.

    Gary

    0 comments No comments

11 additional answers

Sort by: Most helpful
  1. Candy Luo 12,711 Reputation points Microsoft Vendor
    2021-05-03T07:21:03.417+00:00

    Hi,

    Based on my research, it seems that Microsoft LLDP can only send the MAC-Address to managed switch.

    The similar thread has discussed before, you could have a look:

    LDWin - Link Layer Discovery Client for Windows (LLDP/CDP)

    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Gunnar Haslinger 31 Reputation points
    2021-05-03T09:02:48.487+00:00

    Thanks for your pointer @Candy Luo

    I already tried WinLLDPservice as alternative which works fine, but sends wrong "System Capabilities / Auto Negotiation" (which is sent correct by MSLLDP).

    If the only functionality of MSLLDP Service is to send the MAC-Address, why is this Service existing? MAC-Addresses could be even identified by Checking the SourceAddressTable of a switch, therefore no LLDP would be needed.

    0 comments No comments

  3. Candy Luo 12,711 Reputation points Microsoft Vendor
    2021-05-03T09:16:31.957+00:00

    Hi @Gunnar Haslinger ,

    Since there are limited Microsoft documents talking about MSLLDP Service, I am not sure whether there is someplace in windows can configure this service to send for other Information.

    If you want to get exact confirm, I would suggest you open a case with Microsoft where more in-depth investigation can be done so that you would get a more satisfying explanation and solution to this. Here is the link:

    https://support.microsoft.com/en-us/gp/customer-service-phone-numbers

    Appreciate your understanding. :)

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  4. Gary Nebbett 6,086 Reputation points
    2021-05-03T14:35:41.697+00:00

    Hello @Gunnar Haslinger ,

    Just like Candy, I could not find any information on the web. However looking at the strings inside mslldp.sys and the debug symbols, it might be possible to send the computer name. The strings include:

    ChassisId
    ComputerName
    Mslldp\Parameters
    ComputerName\ComputerName
    Mslldp\Parameters\Agents\%s-%u

    The symbols include:

    mslldp!lldpReadComputerName

    It might take some trial and error or reverse engineering, but sending the computer name may well be possible...

    Gary

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.