Check patentability & draft patents in minutes with Patsnap Eureka AI!

LLDP (link layer discovery protocol) massage processing method and device

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: 2013-06-26
NEW H3C TECH CO LTD
View PDF3 Cites 6 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
  • LLDP (link layer discovery protocol) massage processing method and device
  • LLDP (link layer discovery protocol) massage processing method and device
  • LLDP (link layer discovery protocol) massage processing method and device

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 (Same Type, same type) TLV, STY TLV means the same as the TLV type of the previous TLV, that is, the STY TLV is the same as the TLV type of the TLV immediately before the TLV in the LLDP message where it is located ;Such as Figure 4 As shown, the STY TLV is composed of TLV header and TLV information field. Among them, the 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 a STY TLV; in the actual implementation process, the first value can be 125, for example, and the length of the T...

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, CONT TLV indicates that the information data carried by this TLV is the follow-up information data immediately following the information data carried by the previous TLV;

[0071] For example, if the previous TLV of the CONT TLV is the CDCP TLV, then the information data carried by the CONT TLV is the subsequent information data immediately after the information data carried by the CDCP TLV.

[0072] In the actual implementation process, such as Figure 5 As shown, the CONT TLV is composed of TLV header and TLV information field. Among them, the 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 CONT TLV; in the actual implementatio...

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 the STY TLV, the STY TLV represents the same TLV type as the previous TLV, and the STY TLV 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 greate...

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 (Link Layer Discovery Protocol, Link Layer Discovery Protocol) was produced under such a background. It provides a standard link layer discovery method, which can combine the main capabilities, management addresses, device identifiers and Information such as interface identification is organized into different TLVs (Type Length Value, type, length, value), and encapsulated in LLDPDU (Link Layer Discovery Protocol Data Unit, Link Layer Discovery Pro...

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
IPC IPC(8): H04L12/46H04L29/12
CPCY02D30/00
Inventor 徐鹏飞
Owner NEW H3C TECH CO LTD
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More