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

Multi-protocol message parsing method and system based on file mode

A message analysis and multi-protocol technology, which is applied in the file-based multi-protocol message analysis method and system field, can solve problems such as receiving buffer overflow and data loss, and achieve improved response speed and efficiency, easy expansion, and easy maintenance Effect

Inactive Publication Date: 2016-07-06
RISECOMM MICROELECTRONICS SHENZHEN
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The technical problem to be solved by the present invention is to provide a file-based multi-protocol message analysis method and system, aiming to solve the problem of easy reception due to taking turns to search for each protocol in the existing multi-protocol single processing mode on the same channel. Data loss due to buffer overflow

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
  • Multi-protocol message parsing method and system based on file mode
  • Multi-protocol message parsing method and system based on file mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0031] The main realization thought of the present invention is: provide the data stream that contains the data of various protocols to each protocol parser in the form of a file, cache the data stream in the form of a file, and each protocol parser uses the mode of file sharing to access single-channel multiple Protocol data flow, if the protocol stack parser reads the message data containing the protocol, it will process it according to the protocol and respond to the application of the message; the protocols will not interfere with each other, achieving zero message loss, and each protocol parser...

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 is applicable to the technical field of data communication, and provides a multi-protocol message parsing method based on a file mode. The method comprises the steps of 1, initializing algorithm memory resources and file handles; 2, reading data flows from a communication port, and storing the data flows in a data caching area of a memory; 3, reading data in the data caching area, writing the data into a message file, and meanwhile clearing an old message file, thus obtaining an updated message file; 4, sharing the message file with all protocol stack parsers; 5, repeating the steps 2-4; 6, reading the data in the updated message file and judging whether the protocol message exists in the data through the distributed file handle by each protocol stack parser; and 7, if the protocol message exists, responding to the application of the message after processing according to the protocol. According to the method provided by the invention, the problem that in the existing single processing mode, the respective protocols are searched in turns and the overflowing of the receive buffer is easily caused so that data loss is caused is solved.

Description

technical field [0001] The invention belongs to the technical field of data communication, and in particular relates to a file-based multi-protocol message analysis method and system. Background technique [0002] In a communication channel, due to debugging or other factors, it is necessary to support multiple protocols. When parsing communication data, there is a technology that uses a single processing mode, that is, when a packet of data comes, first use one protocol to parse it, if it is not correct, then use the next one Protocol analysis, and so on. This processing mode needs to search for the corresponding protocol in turn under heavy communication tasks. The resource overhead is very large, and it is easy to cause data loss due to receiving buffer overflow; especially in two-way multi-master and multi-slave communication. The software layer cannot be divided, and it is easy to cause message loss. [0003] At the same time, if a single processing mode is adopted, it...

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/22H04L69/18
Inventor 文新根蒋周金肖箭鑫漆湘明刘再乐易玉婷肖六生刘玲刘宏军张友运吴臣国黎健英
Owner RISECOMM MICROELECTRONICS SHENZHEN
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