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

A method for matching tcp packets based on regular expressions

A matching method and expression technology, applied in the field of communication, can solve problems such as economic loss, personal privacy disclosure, being attacked, affecting system sending and receiving efficiency and CPU resources, etc., to improve device security, save CPU time, and improve device work efficiency effect

Inactive Publication Date: 2017-04-19
SHENZHEN ALLWINS TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, the commonly used TCP packet matching method cannot control TCP packets at the network layer according to various specific signs (such as sequence numbers, confirmation sequence numbers, etc.), but blindly allows all TCP packets to pass through, and then receives packets through upper-layer programs. Afterwards, a secondary analysis will greatly affect the sending and receiving efficiency and CPU resources of the system, especially for those devices with very high network security requirements, which will cause extremely serious consequences, and even lead to device damage or attack, resulting in economic losses and personal privacy. issues such as being leaked

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
  • A method for matching tcp packets based on regular expressions
  • A method for matching tcp packets based on regular expressions

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The regular expression format that the present invention designs is as follows:

[0021] tcpmatch [src_ip:xx.xx.xx.xx][src_port:xx][dst_ip:xx.xx.xx.xx][dst_port:xx] [sequene_number:xx][acknowledgment_number:xx][urg:x][ack :x][psh:x][rst:x][syn:x] [fin:x] [window:xx]

[0022] Among them, tcpmatch represents the start identifier of the regular expression; src_ip represents the source address field of the message, xx.xx.xx.xx represents the specified address; src_port represents the port number field used by the source address of the message, and xx represents the specified The port number range is 1-65535; dst_ip represents the destination address field of the message, xx.xx.xx.xx represents the specified IP address; dst_port represents the port number field used by the message destination address, and xx represents the specified port number, the range is 1-65535; sequence_number represents the sequence number field of the message, xx represents the specified sequence nu...

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 provides a TCP (transmission control protocol) message matching method based on Regular expression. The method comprises the following steps: reading all regular expression rules, and setting a matching rule list; sequentially matching TCP messages in a field-by-field mode according to a field sequence of the regular expression, namely traversing a corresponding matching rule list according to the current field content, removing matching rules which conflict with the current field content out of the matching rule list; if a corresponding matching rule is absent in the regular expression, the TCP message matching fails; if each field has a corresponding matching rule in the regular expression, the TCP message matching is successful, and the message is allowed to pass. The TCP message matching method has the advantages of high efficiency and high safety.

Description

technical field [0001] The invention relates to the communication field, in particular to a TCP message matching method based on regular expressions. Background technique [0002] The TCP / IP protocol is the abbreviation of Transmission Control Protocol / Internet Protocol. The Chinese translation is called Transmission Control Protocol / Internet Internet Protocol, also known as the Network Communication Protocol. The protocol and transport layer consist of the TCP protocol. TCP / IP defines the standards for how electronic devices connect to the Internet and how data is transferred between them. The protocol adopts a 4-layer hierarchical structure, and each layer calls the network provided by its next layer to fulfill its own needs. From the perspective of the protocol layered model, TCP / IP consists of four layers: network interface layer, network layer, transport layer, and application layer. [0003] At present, the commonly used TCP packet matching method cannot control TCP...

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/24H04L29/06
Inventor 丁腾飞
Owner SHENZHEN ALLWINS TECH
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