Method and device for processing lldp message
A processing method and message technology, applied in the field of network communication, can solve the problem of data space waste, and achieve the effect of saving data space
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0046] The method for processing LLDP packets in Embodiment 1 of the present application may be performed by any network device capable of running LLDP, and this application does not limit it. Such as figure 2 As shown, the method includes the following steps:
[0047] Step S202, pre-defining STY (SameType, same type) TLV, STYTLV represents the same as the TLV type of the previous TLV, that is, the STYTLV is the same as the TLV type of the TLV in front of this TLV in the LLDP message where it is located; image 3 As shown, STYTLV is composed of TLV header and TLV information field. Among them, TLV header is composed of Type field and Length field. The meaning of each field is explained as follows:
[0048] Type field: used to indicate the type of this TLV. When the value of the Type field is set to the first value, it means that this TLV is STYTLV; in the actual implementation process, the first value can be 125, for example, and the length of the Type field is 7 bits ;
...
Embodiment 2
[0069] The method in the first embodiment above may also include the following steps:
[0070] Step S402, pre-define CONT (Continue, continue) TLV, CONTTLV indicates that the information data carried by this TLV is the follow-up information data following the information data carried by the previous TLV;
[0071] For example, if the previous TLV of CONTTLV is CDCPTLV, then the information data carried by CONTTLV is the subsequent information data immediately after the information data carried by CDCPTLV.
[0072] In the actual implementation process, such as Figure 5 As shown, CONTTLV is composed of TLV header and TLV information field. Among them, TLV header is composed of Type field and Length field. The meaning of each field is explained as follows:
[0073] Type field: used to indicate the type of this TLV. When the value of the Type field is set to the second value, it means that this TLV is CONTTLV; in actual implementation, the second value can be 126, and the length ...
Embodiment 3
[0091] With regard to the methods in Embodiment 1 and Embodiment 2 above, this embodiment of the present application provides an apparatus for processing LLDP packets to which the method can be applied.
[0092] Such as Figure 7 As shown, the following modules are included in the processing device: a definition module 10, a judgment module 20, a construction module 30 and a sending module 40, wherein:
[0093] The definition module 10 is used to predefine STYTLV, and STYTLV indicates that it is the same as the TLV type of the previous TLV, and STYTLV is composed of a TLV header and a TLV information field;
[0094] The judging module 20 is used to determine that each of the N information data to be sent needs a first TLV to carry when the information data is to be sent, wherein the first TLV is composed of an extended TLV header and a TLV information field Composition, and it is allowed to carry more than two consecutive first TLVs in one LLDP message, N is a natural number ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com