CN102088457A - Message shunting method for ensuring connection proportionality - Google Patents
Message shunting method for ensuring connection proportionality Download PDFInfo
- Publication number
- CN102088457A CN102088457A CN2010105983434A CN201010598343A CN102088457A CN 102088457 A CN102088457 A CN 102088457A CN 2010105983434 A CN2010105983434 A CN 2010105983434A CN 201010598343 A CN201010598343 A CN 201010598343A CN 102088457 A CN102088457 A CN 102088457A
- Authority
- CN
- China
- Prior art keywords
- sequence number
- shunting
- tcp
- stream sequence
- tuple
- 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.)
- Pending
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides a message shunting method for ensuring Transmission Control Protocol (TCP) connection proportionality, wherein the method comprises the steps of: establishing a shunting list based on quadruples, recording information of each quadruple and distributing flow sequence numbers for the quadruples; and searching the shunting list when an Internet Protocal (IP) packet arrives a network device, taking out the flow sequence number of a found quadruple to shunt the IP packet if the quadruple can be found out, and otherwise newly distributing a term for the IP packet in the shunting list and a flow sequence number if the quadruple can not be found out. The scheme provided by the invention can realize the network shunting, and thereby the loads of the devices are more proportional.
Description
Technical field
The present invention relates to field of Internet communication, be specifically related to the balanced message shunt method of a kind of assurance.
Background technology
In a lot of network processes environment,, therefore need input flow rate be assigned to a plurality of processing units and handle according to the disposal ability of back-end processing unit owing to there be the disposal ability of fan-in network interface bandwidth greater than single back-end processing unit.
The shunting process of the network equipment is to realize in the driver of equipment mostly in the prior art, just adopts software to realize that this implementation can increase the load of the network equipment, influences other professional disposal abilities.
Application number be 200910176725 patent disclosure a kind of message diversion processing method and device carries out the Hash computing according to the four-tuple of described message, obtains the VCPU of described message correspondence, also promptly shunts target.
Determine that the method for shunting target can guarantee the message number basis equalization that each stream is handled though adopt four-tuple hash value, but can not guarantee that tcp connects or the pseudo-harmony that connects of udp, and during the host process flow based on connecting Resources allocation, guarantee that the message harmony might not guarantee the harmony of load on host computers.
Summary of the invention
The object of the invention is to provide a kind of assurance balanced message shunt method, and basic thought is to shunt according to connection.
A kind of TCP of assurance connects balanced message shunt method, and step is as follows:
A, set up a shunting table based on four-tuple;
B, write down each quaternary group information and divide the flow sequence number;
C, when IP bag arrives the network equipment, search the shunting table, if can find this four-tuple, then take out the stream sequence number and shunt; Otherwise be that it newly distributes one in the shunting table, and distribute a stream sequence number.
First kind of optimal technical scheme of the present invention is: described stream sequence number divides timing can adopt the counter accumulate mode.
Second kind of optimal technical scheme of the present invention is: described stream sequence number divides timing can adopt random number way.
The third optimal technical scheme of the present invention is: described stream sequence number divides timing can also adopt the most idle shunting target of calculating of feedback according to the shunting target, distributes the most idle stream sequence number at every turn.
The 4th kind of optimal technical scheme of the present invention is: described four-tuple comprises source IP, purpose IP, source port, destination interface.
The present invention adopts this mode can realize that the load of network shunting device is balanced more.
Description of drawings
Fig. 1 is a structure chart of the present invention
Embodiment
The method that the technical program provides can realize shunting based on connection on the network equipment.Specific practice is to safeguard the shunting table based on four-tuple on the network equipment, the stream sequence number of record quaternary group information and this four-tuple correspondence in the table.This stream sequence number is set up at this four-tuple item, distribute when also promptly distributing for the first time, concrete distribution method can be that the mode that adopts counter to add up also can be to adopt the mode of random number, and these two kinds of methods can both guarantee to be assigned to the linking number basically identical of each stream substantially.When an IP bag arrival network equipment, at first search the shunting table, shunt, otherwise be that it newly distributes one in the shunting table, and distribute a stream sequence number if in table, can find this four-tuple then to take out the stream sequence number.
Claims (5)
1. one kind guarantees that TCP connects balanced message shunt method, is characterized in that:
Step is as follows:
A, set up a shunting table based on four-tuple;
B, write down each quaternary group information and divide the flow sequence number;
C, when IP bag arrives the network equipment, search the shunting table, if can find this four-tuple, then take out the stream sequence number and shunt; Otherwise be that it newly distributes one in the shunting table, and distribute a stream sequence number.
2. a kind of according to claim 1 TCP of assurance connects balanced message shunt method, it is characterized in that: described stream sequence number divides timing can adopt the counter accumulate mode.
3. a kind of according to claim 1 TCP of assurance connects balanced message shunt method, it is characterized in that: described stream sequence number divides timing can adopt random number way.
4. a kind of according to claim 1 TCP of assurance connects balanced message shunt method, it is characterized in that: described stream sequence number divides timing can also adopt the most idle shunting target of calculating of feedback according to the shunting target, distributes the most idle stream sequence number at every turn.
5. a kind of according to claim 1 TCP of assurance connects balanced message shunt method, and it is characterized in that: described four-tuple comprises source IP, purpose IP, source port, destination interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105983434A CN102088457A (en) | 2010-12-17 | 2010-12-17 | Message shunting method for ensuring connection proportionality |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010105983434A CN102088457A (en) | 2010-12-17 | 2010-12-17 | Message shunting method for ensuring connection proportionality |
Publications (1)
Publication Number | Publication Date |
---|---|
CN102088457A true CN102088457A (en) | 2011-06-08 |
Family
ID=44100070
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010105983434A Pending CN102088457A (en) | 2010-12-17 | 2010-12-17 | Message shunting method for ensuring connection proportionality |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102088457A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139094A (en) * | 2013-03-12 | 2013-06-05 | 华为技术有限公司 | Method and device for adjusting uneven load sharing |
CN105471760A (en) * | 2014-09-12 | 2016-04-06 | 华为技术有限公司 | Routing method, load balancing device and data communication system |
CN109672701A (en) * | 2017-10-16 | 2019-04-23 | 中国科学院信息工程研究所 | A kind of differentiation TCP link management method and equipment |
US10904719B2 (en) | 2019-05-06 | 2021-01-26 | Advanced New Technologies Co., Ltd. | Message shunting method, device and system based on user mode protocol stack |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1984070A (en) * | 2006-05-31 | 2007-06-20 | 华为技术有限公司 | Method and device for shunting data flow in telecommunication network |
CN101286936A (en) * | 2008-05-16 | 2008-10-15 | 华为技术有限公司 | Method and apparatus for data message processing |
CN101335709A (en) * | 2008-08-07 | 2008-12-31 | 杭州华三通信技术有限公司 | Method for implementing load sharing among flow analysis servers and shunting equipment |
-
2010
- 2010-12-17 CN CN2010105983434A patent/CN102088457A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1984070A (en) * | 2006-05-31 | 2007-06-20 | 华为技术有限公司 | Method and device for shunting data flow in telecommunication network |
CN101286936A (en) * | 2008-05-16 | 2008-10-15 | 华为技术有限公司 | Method and apparatus for data message processing |
CN101335709A (en) * | 2008-08-07 | 2008-12-31 | 杭州华三通信技术有限公司 | Method for implementing load sharing among flow analysis servers and shunting equipment |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103139094A (en) * | 2013-03-12 | 2013-06-05 | 华为技术有限公司 | Method and device for adjusting uneven load sharing |
CN103139094B (en) * | 2013-03-12 | 2017-04-12 | 华为技术有限公司 | Method and device for adjusting uneven load sharing |
CN105471760A (en) * | 2014-09-12 | 2016-04-06 | 华为技术有限公司 | Routing method, load balancing device and data communication system |
CN105471760B (en) * | 2014-09-12 | 2019-04-05 | 华为技术有限公司 | The device and data communication system of a kind of method for routing, load balancing |
CN109672701A (en) * | 2017-10-16 | 2019-04-23 | 中国科学院信息工程研究所 | A kind of differentiation TCP link management method and equipment |
CN109672701B (en) * | 2017-10-16 | 2020-12-11 | 中国科学院信息工程研究所 | Differentiated TCP link management method and equipment |
US10904719B2 (en) | 2019-05-06 | 2021-01-26 | Advanced New Technologies Co., Ltd. | Message shunting method, device and system based on user mode protocol stack |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104283939B (en) | For flexibly flowing the device of unloading, method and non-transitory computer-readable media | |
US11463511B2 (en) | Model-based load balancing for network data plane | |
US10476800B2 (en) | Systems and methods for load balancing virtual connection traffic | |
US20180359131A1 (en) | Implementing provider edge with hybrid packet processing appliance | |
CN102594671B (en) | A kind of method and apparatus that speed limit is carried out to user | |
CN105511954A (en) | Method and device for message processing | |
CN108471629A (en) | The control method of business service quality, equipment and system in transmission network | |
US20140025800A1 (en) | Systems and methods for multi-blade load balancing | |
CN103929368A (en) | Load balance method and device for multiple service units | |
CN102088457A (en) | Message shunting method for ensuring connection proportionality | |
CN104486103A (en) | Message transmission method and equipment | |
JP2016046736A (en) | Service chaining system, service chaining forwarder device, and service chaining method | |
CN105323310A (en) | Network communication method, device and network attached storage device | |
CN107846365A (en) | A kind of load balancing based on SDN realizes system and method | |
CN105210324B (en) | Strategy and charging rule functions virtual method, apparatus and system | |
CN104052679B (en) | The load-balancing method of network traffics and device | |
CN110515731A (en) | A kind of data processing method, apparatus and system | |
CN102035743A (en) | Dynamic load balanced distribution method | |
CN105379210A (en) | Data flow processing method and apparatus | |
WO2016090921A1 (en) | Session control method and device | |
CN105207856A (en) | Load balancing system and method based on SDN virtual switch | |
CN104113510A (en) | Virtual desktop system and message data transmitting method thereof | |
CN103607357A (en) | Message distribution method and message distribution device in system | |
CN103152428A (en) | Method for carrying out service communication among nodes on cloud platform | |
CN105282231A (en) | Data drainage method, device, and system based on application types |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110608 |