CN103188355A - Method for dynamic matching of message through prejudging - Google Patents

Method for dynamic matching of message through prejudging Download PDF

Info

Publication number
CN103188355A
CN103188355A CN201310112772XA CN201310112772A CN103188355A CN 103188355 A CN103188355 A CN 103188355A CN 201310112772X A CN201310112772X A CN 201310112772XA CN 201310112772 A CN201310112772 A CN 201310112772A CN 103188355 A CN103188355 A CN 103188355A
Authority
CN
China
Prior art keywords
message
connection
list item
alive
keep
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310112772XA
Other languages
Chinese (zh)
Other versions
CN103188355B (en
Inventor
陈海滨
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Opzoon Technology Co Ltd
Original Assignee
Opzoon Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Opzoon Technology Co Ltd filed Critical Opzoon Technology Co Ltd
Priority to CN201310112772.XA priority Critical patent/CN103188355B/en
Publication of CN103188355A publication Critical patent/CN103188355A/en
Application granted granted Critical
Publication of CN103188355B publication Critical patent/CN103188355B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for dynamic matching of a message through prejudging. The method comprises the steps that a CPU (central processing unit) receives the message and judges whether the massage is matched with a first tablebody of a connection table, if so, the massage is a keep-alive connection massage, and the first tablebody is put at the last-of-chain of the connection table. The method is used for improving the matching speed of the massage, and solves the problem of packet loss caused by excessive usage frequency of the CPU.

Description

A kind of method of message dynamically being mated by pre-judgement
Technical field
The present invention relates to computer network field, particularly a kind of method of message dynamically being mated by pre-judgement.
Background technology
Current network equipment, particularly the multicore architecture network equipment adopt the mode of connection table to E-Packet mostly, with respect to packet-by-packet handling method of message, handle processing and the forwarding speed that message can improve message greatly by stream, connect table and form a list item with the form of IP five-tuple, the IP five-tuple is former IP address, purpose IP address, protocol number, former port numbers, destination slogan, wherein the message that the IP five-tuple is identical can match in the identical list item, and message is carried out identical processing.
When the network equipment being carried out the test of stability test and maximum number of connections; tester is newly-built at least 1,000,000 connections usually; then the stream keep-alive is played in each connection; and constantly establishment connects; this moment can be because whether CPU be busy with matching message be that newly-built connection message still be keep-alive connection message, causes the too high and packet loss of CPU usage.
Based on this, prior art awaits improving really.
Summary of the invention
At the deficiencies in the prior art, the invention provides a kind of by pre-judgement to the method that message dynamically mates, make and the message time decreased of tabling look-up reduce CPU usage.
For realizing above purpose, the present invention is achieved by the following technical programs:
The invention provides a kind of by pre-judgement to the method that message dynamically mates, may further comprise the steps:
CPU receives message, and judges whether described message mates with first list item that is connected table, if coupling, then described message is that keep-alive connects message, and this list item is placed the last-of-chain of described connection table.
Preferably, described method further comprises: when described message did not match with described first list item that is connected table, then described message was newly-built connection message, sets up new list item in described connection table, and this list item is placed the last-of-chain of described connection table.
Preferably, further comprised before CPU receives message: tester carries out keep-alive to existing the connection, and creates new connection.
Preferably, described tester carries out keep-alive to existing the connection according to the order of described connection table list item, and creates new connection.
Preferably, described list item comprises the IP five-tuple, and described IP five-tuple is former IP address, purpose IP address, protocol number, former port numbers, destination slogan.
The invention provides a kind of method of message dynamically being mated by pre-judgement; be used for improving the speed of message coupling; solved in the prior art because whether CPU is busy with matching message be that newly-built connection message still be keep-alive connection message; cause the too high and problem of packet loss of CPU usage; improve the system test performance, guaranteed the safe and effective operation of network.
Description of drawings
Fig. 1 is the flow chart of one embodiment of the invention.
Embodiment
Regard to a kind of method of message dynamically being mated by pre-judgement proposed by the invention down, describe in detail in conjunction with the accompanying drawings and embodiments.
As shown in Figure 1, present embodiment provide a kind of by pre-judgement to the method that message dynamically mates, may further comprise the steps:
S1, CPU receive message, and judge whether described message mates with first list item that is connected table, if coupling, execution in step S2 then, if do not match, execution in step S3 then;
S2, described message are that keep-alive connects message, this list item are placed the last-of-chain of described connection table;
S3, described message are newly-built connection message, set up new list item in described connection table, and this list item are placed the last-of-chain of described connection table.
Preferably, further comprised step S0 before CPU receives message: tester carries out keep-alive to existing the connection, and creates new connection.
Preferably, described tester carries out keep-alive to existing the connection according to the order of described connection table list item, and creates new connection.
Preferably, described list item comprises the IP five-tuple, and described IP five-tuple is former IP address, purpose IP address, protocol number, former port numbers, destination slogan.
The present invention is by providing a kind of method of message dynamically being mated by pre-judgement; be used for improving the speed of message coupling; solved in the prior art because whether CPU is busy with matching message be that newly-built connection message still be keep-alive connection message; cause CPU usage too high and the problem of packet loss has guaranteed the safe and effective operation of wireless self-organization network.
Above execution mode only is used for explanation the present invention; and be not limitation of the present invention; the those of ordinary skill in relevant technologies field; under the situation that does not break away from the spirit and scope of the present invention; can also make a variety of changes and modification; therefore all technical schemes that are equal to also belong to category of the present invention, and scope of patent protection of the present invention should be defined by the claims.

Claims (5)

  1. One kind by pre-judgement to the method that message dynamically mates, it is characterized in that, may further comprise the steps:
    CPU receives message, and judges whether described message mates with first list item that is connected table, if coupling, then described message is that keep-alive connects message, and this list item is placed the last-of-chain of described connection table.
  2. 2. the method for claim 1, it is characterized in that, described method further comprises: when described message does not match with described first list item that is connected table, then described message is newly-built connection message, in described connection table, set up new list item, and this list item is placed the last-of-chain of described connection table.
  3. 3. method as claimed in claim 1 or 2 is characterized in that, further comprises before CPU receives message: tester carries out keep-alive to existing the connection, and creates new connection.
  4. 4. method as claimed in claim 3 is characterized in that, described tester carries out keep-alive to existing the connection according to the order of described connection table list item, and creates new connection.
  5. 5. method as claimed in claim 4 is characterized in that, described list item comprises the IP five-tuple, and described IP five-tuple is former IP address, purpose IP address, protocol number, former port numbers, destination slogan.
CN201310112772.XA 2013-04-02 2013-04-02 A kind of by judging the method for message being carried out to Dynamic Matching in advance Expired - Fee Related CN103188355B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310112772.XA CN103188355B (en) 2013-04-02 2013-04-02 A kind of by judging the method for message being carried out to Dynamic Matching in advance

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310112772.XA CN103188355B (en) 2013-04-02 2013-04-02 A kind of by judging the method for message being carried out to Dynamic Matching in advance

Publications (2)

Publication Number Publication Date
CN103188355A true CN103188355A (en) 2013-07-03
CN103188355B CN103188355B (en) 2016-03-02

Family

ID=48679317

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310112772.XA Expired - Fee Related CN103188355B (en) 2013-04-02 2013-04-02 A kind of by judging the method for message being carried out to Dynamic Matching in advance

Country Status (1)

Country Link
CN (1) CN103188355B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104579970A (en) * 2013-10-29 2015-04-29 国家计算机网络与信息安全管理中心 Strategy matching method and device of IPv6 message
CN106130910A (en) * 2016-08-29 2016-11-16 桂林浩新科技服务有限公司 A kind of message matching method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060085849A1 (en) * 2002-05-01 2006-04-20 Firebridge Systems Pty Ltd Firewall with stateful inspection
CN1819557A (en) * 2006-03-10 2006-08-16 四川南山之桥微电子有限公司 Establishment of TCP data flow connection by hardware
CN101296168A (en) * 2007-04-25 2008-10-29 北京天融信网络安全技术有限公司 Method for chip internal link list supporting policy routing
CN101753597A (en) * 2008-12-09 2010-06-23 华为技术有限公司 Keeping alive method between peer node and client under peer node-client architecture
CN101789901A (en) * 2009-12-30 2010-07-28 北京天融信科技有限公司 Accelerating method and device of transmitting system positioned on multinuclear platform
CN102571562A (en) * 2011-12-19 2012-07-11 曙光信息产业(北京)有限公司 System and method for supporting multiple applications through stream reduction equipment by combining software and hardware

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060085849A1 (en) * 2002-05-01 2006-04-20 Firebridge Systems Pty Ltd Firewall with stateful inspection
CN1819557A (en) * 2006-03-10 2006-08-16 四川南山之桥微电子有限公司 Establishment of TCP data flow connection by hardware
CN101296168A (en) * 2007-04-25 2008-10-29 北京天融信网络安全技术有限公司 Method for chip internal link list supporting policy routing
CN101753597A (en) * 2008-12-09 2010-06-23 华为技术有限公司 Keeping alive method between peer node and client under peer node-client architecture
CN101789901A (en) * 2009-12-30 2010-07-28 北京天融信科技有限公司 Accelerating method and device of transmitting system positioned on multinuclear platform
CN102571562A (en) * 2011-12-19 2012-07-11 曙光信息产业(北京)有限公司 System and method for supporting multiple applications through stream reduction equipment by combining software and hardware

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104579970A (en) * 2013-10-29 2015-04-29 国家计算机网络与信息安全管理中心 Strategy matching method and device of IPv6 message
CN104579970B (en) * 2013-10-29 2018-06-12 国家计算机网络与信息安全管理中心 A kind of strategy matching device of IPv6 messages
CN106130910A (en) * 2016-08-29 2016-11-16 桂林浩新科技服务有限公司 A kind of message matching method and system

Also Published As

Publication number Publication date
CN103188355B (en) 2016-03-02

Similar Documents

Publication Publication Date Title
WO2016000362A1 (en) Method, device, and system for configuring flow entries
WO2015074324A1 (en) Data packet express forwarding method and apparatus
CN105119926B (en) A kind of multichannel duplex signaling method based on Socket connections
CN100495985C (en) Method for rapidly detecting Ethernet exchanger loop failure
US20170302476A1 (en) Associating VXLANS With Tunnels
CN102970244B (en) A kind of network message processing method of multi -CPU inter-core load equilibrium
CN101965014B (en) Distribution method and distribution control device for Gn interface data
CN103401801A (en) Method and device for realizing dynamic load balance
MY160082A (en) Method and apparatus for providing host node awareness for multiples nat64 environments
CN102137025B (en) Method and device for forwarding messages and switch chip
CN102104544A (en) Order preserving method for fragmented message flow in IP (Internet Protocol) tunnel of multi-nuclear processor with accelerated hardware
WO2013103868A3 (en) DISCOVERY IN MoCA NETWORKS
WO2022160755A1 (en) Method for searching peer terminal in tunneled direct link setup, terminal and medium
WO2012062108A1 (en) Test system and test method
CN105681490B (en) A kind of anti-IP address conflict method based on software defined network
CN105429814A (en) Method and device for BFD protection by utilizing multiple board cards
CN103684792B (en) A kind of safety certifying method and OAM message transmitting/receiving means of OAM
CN102469045A (en) Method for improving concurrency of WEB security gateway
CN104965810B (en) The method and device of data message is quickly handled under multiple-core mode
CA2837054C (en) Method and board for high-speed link auto-negotiation
CN105379210A (en) Data flow processing method and apparatus
CN103188355B (en) A kind of by judging the method for message being carried out to Dynamic Matching in advance
CN101945342A (en) Customer premise equipment and method for implementing wireless multicast-to-unicast service thereof
CN114900496A (en) Communication method and related equipment
WO2014151851A3 (en) Establishing reliable always-on packet data network connections

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160302

Termination date: 20180402

CF01 Termination of patent right due to non-payment of annual fee