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

TLV (Type Length Value) message parsing method and device, electronic equipment, and storage medium

A message analysis and message technology, which is applied in the field of message analysis, can solve problems such as not being able to meet high-bandwidth processing requirements, and achieve the effect of solving high-bandwidth processing requirements and line-speed processing speed

Active Publication Date: 2018-02-16
北京东土军悦科技有限公司
View PDF4 Cites 5 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0009] The present invention provides a TLV message analysis method, device, electronic equipment and storage medium to solve the problem that the TLV message hardware analysis method in the prior art cannot meet the high-bandwidth processing requirements, and realize high-bandwidth processing of TLV messages , to achieve line-speed processing speed

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
  • TLV (Type Length Value) message parsing method and device, electronic equipment, and storage medium
  • TLV (Type Length Value) message parsing method and device, electronic equipment, and storage medium
  • TLV (Type Length Value) message parsing method and device, electronic equipment, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0063] image 3 It is a flowchart of the TLV message parsing method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of parsing TLV messages, especially hardware parsing TLV messages. The method can be executed by a TLV message parsing device. Such as image 3 As shown, the method specifically includes the following steps:

[0064] Step 310, using the preset multi-stage pipeline structure to analyze each TLV field in the current shot data entering the multi-stage pipeline structure step by step, wherein each stage of the pipeline parses a TLV field to obtain the processing action information of the TLV field, The front-stage pipeline becomes idle after parsing the TLV field, so as to parse the data containing the packet header in the next shot entering the multi-stage pipeline structure.

[0065] Among them, the multi-stage pipeline structure is implemented based on hardware, such as ASIC or FPGA. The number of pipeline stage...

Embodiment 2

[0084] On the basis of the above embodiments, this embodiment provides a specific implementation process of parsing the TLV field by a single-stage pipeline, and each stage of the pipeline in a multi-stage pipeline structure performs the same operation. Figure 4 It is a flow chart of single-stage pipeline parsing TLV fields in the TLV message parsing method provided by Embodiment 2 of the present invention, as Figure 4 shown, including:

[0085] Step 410, for the current stage of the pipeline, analyze the current TLV field to obtain the type of the current TLV field and the starting position of the next TLV field.

[0086] Wherein, Type and Length in the TLV field are both fixed lengths. From the starting position of the TLV field, read the first fixed length (for example, 2 bytes) to read the Type, and continue to read the second fixed length (for example, 1 byte). byte) that is, the Length is read, and then the Value is read according to the read Length value (for example...

Embodiment 3

[0097] On the basis of each of the above-mentioned embodiments, considering that the bit width of the data bus is fixed (such as 128bit or 256bit, etc.), the length of the TLV message may exceed the bit width of the data bus. At this time, the TLV message is split into multiple beats Data is transmitted and parsed. This embodiment provides a process of splitting the transmission and parsing the TLV message level by level under the above circumstances. Explanations of terms and steps that are the same as or corresponding to those in the foregoing embodiments will not be repeated in this embodiment.

[0098] If the length of the TLV message exceeds the bit width of the data bus, the TLV message is split into at least two beats of data according to the bit width of the data bus, and the at least two beats of data are sequentially entered into a multi-stage pipeline structure for step-by-step analysis. Wherein, the longest length of each shot of data is the bit width of the data ...

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 a TLV (Type Length Value) message parsing method and device, electronic equipment, and a storage medium. The method comprises the following steps: using a preset multilevel pipeline structure to parse each TLV field in current beat data entering the structure step by step, wherein each level of the pipeline parses one TLV field to obtain processing action information of theTLV field, the front level of the pipeline parses the TLV field and then becomes free, so as to parse next beat data including a message header; outputting current beat data and the processing actioninformation of each TLV field synchronously by the last level of pipeline in the structure; and determining a final processing action of a TLV message involved in the current beat data according to the processing action information of each TLV field. The TLV message parsing method provided by the invention performs TLV message parsing based on the multilevel pipeline structure; each level of thepipeline parses one TLV field, and releases the pipeline space in time after parsing; and the multilevel pipeline structure can process a plurality of TLV messages synchronously, so as to realize thehigh bandwidth processing of the TLV message.

Description

technical field [0001] Embodiments of the present invention relate to message parsing technologies, and in particular, relate to a TLV message parsing method, device, electronic equipment, and storage medium. Background technique [0002] TLV (Type Length Value) is a format in network packets. The purpose of the TLV format is to transmit one or more fields of variable length. Among them, Type specifies the type of TLV, Length indicates the length of the data part of the TLV, and Value is the data part. Such as figure 1 As shown, multiple TLVs can be connected in series to form a TLV message. figure 2 It is a specific example of the TLV message, and the TLV message is composed of 4 TLV fields. The typical application of TLV in the network is the Option field in the IP (Internet Protocol, protocol for interconnection between networks) message header and the Option field in the TCP (Transmission Control Protocol, transmission control protocol) message header. [0003] Each...

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 Applications(China)
IPC IPC(8): H04L29/06
CPCH04L69/22
Inventor 李明
Owner 北京东土军悦科技有限公司
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