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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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 ...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



