Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

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

Active Publication Date: 2016-03-09
NEW H3C TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0021] This application provides a method and device for processing LLDP packets to solve the problem in the prior art that when an LLDP packet carries multiple consecutive TLVs of the same type, the extended TLVs of the same type The TLV header is exactly the same, causing a waste of data space

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for processing lldp message
  • Method and device for processing lldp message
  • Method and device for processing lldp message

Examples

Experimental program
Comparison scheme
Effect test

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 ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an LLDP (link layer discovery protocol) massage processing method and an LLDP massage processing device. The method comprises the following steps that: STY (subtype) TLV (type, length, value) is defined in advance, STY TLV indicates that the TLV type is same as the TLV type of the former TLV, and the STY TLV consists of a TLV head and a TLV information field; when information data is sent, each information data in to-be-sent N information datum is carried by a first TLV, wherein the first TLV consists of an extension TLV head and a TLV information field, and more than two continuous first TLVs are allowed to be carried in one LLDP massage; a first TLV and (N-1) STY TLVs are constructed to carry N information datum, wherein the TLV information field in the first constructed TLV is used for carrying one information data in the N information data, a TLV information field in each constructed STY TLV is used for carrying one information data in the rest (N-1) information datum, and the information datum carried by TLV information fields in different STY TLVs are different; and the constructed first TLV and (N-1) STY TLVs are continuously packaged into one LLDP massage one after another, and then the LLDP massage is sent out.

Description

technical field [0001] The present application relates to the technical field of network communication, in particular to a method and device for processing LLDP messages. Background technique [0002] At present, there are more and more types of network communication devices and their respective configurations are intricate. In order to enable devices from different manufacturers to discover each other and exchange their own system configuration information in the network, a standard information exchange platform is required. LLDP (LinkLayerDiscoveryProtocol, Link Layer Discovery Protocol) is produced under such a background, it provides a standard link layer discovery method, which can display the main capabilities, management addresses, device identifiers and interface identifiers of the local device, etc. The information is organized into different TLVs (TypeLengthValue, type, length, value), and encapsulated in LLDPDU (LinkLayerDiscoveryProtocolDataUnit, link layer disco...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/46H04L29/12
CPCY02D30/00
Inventor 徐鹏飞
Owner NEW H3C TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products