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

Method and equipment for rapidly resolving protocol based on carriage returns and line feeds

A protocol analysis and protocol technology, which is applied in the field of computer networks, can solve the problems of speeding up keyword search and slow search speed, and achieve the effect of improving the speed of protocol analysis

Active Publication Date: 2012-10-24
BEIJINGNETENTSEC
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At present, there are two methods for protocol analysis. One is to search each character in the character stream one by one according to the provided keyword. This search method needs to search the character stream for each character in each provided keyword. Therefore, it is necessary to scan the character stream multiple times, and the search speed is very slow, which is rarely used at present; another method is the state machine method, which only needs to scan the character stream once, thus speeding up the keyword search speed, but this method is still It needs to be scanned character by character, which restricts the protocol parsing speed to a certain extent

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 equipment for rapidly resolving protocol based on carriage returns and line feeds
  • Method and equipment for rapidly resolving protocol based on carriage returns and line feeds
  • Method and equipment for rapidly resolving protocol based on carriage returns and line feeds

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] figure 2 It is an example of the partial content of the HTTP character stream. Below, the content of the keywords "Content-Disposition", "Content-Length", "Connection", and "Content-Type" in the HTTP character stream is searched for as an example. Carriage return and line feed fast protocol analysis method is described in detail.

[0020] figure 2 , the symbol "\" at the end of each line is a connection character, which means that it is connected with the next line; the first line indicates that the character stream is an HTTP character stream, and the part in front of the symbol ":" (colon) in the following lines is the protocol The unit keyword, the part after the symbol ":" to the symbol "\r\n" is the protocol content.

[0021] image 3 It is a flowchart of fast protocol analysis based on carriage return and line feed according to an embodiment of the present invention.

[0022] In step 310, the state machine is used to find the keyword in the protocol characte...

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 relates to a method and equipment for rapidly resolving a protocol based on carriage returns and line feeds. The method comprises the following steps of: searching a keyword of a protocol character stream by using a state machine; once a character is not matched with a state in the state machine, searching a carriage return-linefeed character starting from the mismatched character; continuously searching the keyword of the protocol character stream starting from the next character of the carriage return-linefeed character by using the state machine; and during the process of searching the keyword of the protocol character stream by using the state machine, if one or more characters of the protocol character stream are fully matched with one branch in the state machine, judging the one or more characters to be the keyword so as to finish resolving the protocol. Compared with the conventional method for resolving the protocol by using the state machine, the method for resolving the protocol provided by the invention has the advantage of greatly improving the protocol resolution speed, so the method for resolving the protocol can be widely applied to quick network protocol resolution.

Description

technical field [0001] The invention relates to computer networks, in particular to network protocol analysis. Background technique [0002] In a computer network, two entities that communicate with each other are located in different geographical locations, and the two processes on them communicate with each other. They need to coordinate their actions by exchanging information to achieve synchronization, and the information exchange must be in accordance with a pre-agreed agreement. Different computers must use the same network protocol to communicate. This kind of rules, standards or conventions established for data exchange in the network are called network protocols. [0003] A network protocol refers to a collection of communication rules between all devices on the network, such as network servers, computers and switches, routers, firewalls, etc. It specifies the format that information must use during communication and the meaning of these formats. [0004] The chara...

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): H04L29/06H04L12/26
Inventor 刘卫
Owner BEIJINGNETENTSEC
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