Method and device for processing lldp messages
A processing method and message technology, applied in the field of network communication, can solve the problems of portability, waste of message space, inability to publish multiple LLDP messages, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] The method in the embodiment of the present application may be executed by any LLDP-enabled device. For convenience of description, the device executing the method in the embodiment of the present application is referred to as a local device. The local device will periodically release the information data of the device to the neighbor devices, wherein the information data released is composed of information data corresponding to different TLV types. When publishing, the data information of different TLV types will constitute different TLVs. Encapsulate these TLVs into LLDP packets and send them to neighboring devices.
[0048] Such as figure 1 As shown, the processing method of the LLDP message of the embodiment of the present application includes the following steps:
[0049] Step S102, predefine KEEP (keep) TLV;
[0050] Among them, the KEEP TLV can be a basic TLV type, which is used to carry the TLV type corresponding to the information data released this time that...
Embodiment 2
[0097] Taking the following application scenario one as an example, the method in the first embodiment above is described in detail.
[0098] Application Scenario 1: Device 1 and all its neighbors are new devices, and Device 1 periodically publishes its own device information to neighbors through LLDP packets. Assume that the information data that device 1 needs to publish for the first time is recorded as A+B+C, and because the network is relatively stable, the information data that needs to be released for the second time is recorded as A+B+C'.
[0099] At this point, the steps to be performed are as follows:
[0100] Step S302, when the information data needs to be released for the first time, the device 1 assembles the information data A+B+C that needs to be released for the first time into multiple TLVs of different TLV types;
[0101] Step S304, device 1 constructs a KEEP TLV, and sets the value of the BasicTLVNum field and the value of the OrgTLVNum field in the KEEP T...
Embodiment 3
[0109] Taking the following application scenario two as an example, the method in the foregoing embodiment one is described in detail.
[0110] Application Scenario 2: Device 1 and its neighbors are new devices, and Device 1 periodically publishes its own device information data to neighbors through LLDP packets. Assume that the information data to be published by device 1 is too long to be carried in one LLDP packet, and the information data is recorded as A+B+C+D.
[0111] At this point, the steps to be performed are as follows:
[0112] Step S402, since the information data A+B+C+D to be released cannot be carried in one LLDP message, then assemble part of the information data A+B into a plurality of TLVs of different TLV types, and set the BasicTLVNum field in the KEEP TLV and OrgTLVNum fields are set to 0, and the KEEP TLV (that is, the initial KEEP TLV) and these assembled TLVs are encapsulated into an LLDP message and sent to the neighbor device;
[0113] Step S404, a...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


