CN102916898A - Application keeping method and device of multilink egress - Google Patents

Application keeping method and device of multilink egress Download PDF

Info

Publication number
CN102916898A
CN102916898A CN2012104351826A CN201210435182A CN102916898A CN 102916898 A CN102916898 A CN 102916898A CN 2012104351826 A CN2012104351826 A CN 2012104351826A CN 201210435182 A CN201210435182 A CN 201210435182A CN 102916898 A CN102916898 A CN 102916898A
Authority
CN
China
Prior art keywords
outbound
address
network segment
application
destination network
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
Application number
CN2012104351826A
Other languages
Chinese (zh)
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN2012104351826A priority Critical patent/CN102916898A/en
Publication of CN102916898A publication Critical patent/CN102916898A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides an application keeping method and device of multilink egress, belonging to the field of network communication technologies. The application keeping method comprises the following steps of: when an application message sent by a client is received, acquiring a destination network segment where a destination IP (Internet Protocol) address of the application message belongs and a source IP address; and determining a destination egress link from multiple egress links of load balancing equipment according to the source IP address and the destination network segment, and sending out the application message from the destination egress link. According to the method and the device, the loads of the multiple egress links of the load balancing equipment can be more balanced on the premise that the same application is kept at the same egress link of the load balancing equipment.

Description

A kind of application keeping method and device of multilink outlet
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of application keeping method and device of multilink outlet.
Background technology
Development along with network application, for to the applied business of internet electronic business or carry out the increase of the information interaction characteristic demand of authenticating user identification system, now a lot of enterprises especially large enterprises progressively adopt the connected mode of multilink accessing Internet (Internet).If after set up to use connecting, do not take any measure, will cause that because many links are arranged same application message walks different chain way outlets, cause request service to lose connection and operation failure.Modal example is exactly network trading, and a client will finish once to conclude the business and may need to click the page repeatedly, may use the connection that has established and click each time, also may use newly-established connection to re-start load balancing.
Use the system that keeps being based on the balancing link load, it has solved the problem that adopts multilink access Internet may have the user request service failure.Existing technical scheme normally adopts source IP to use maintenance, source IP application maintenance is the source IP address according to request service, when load-balancing device is done load balancing, remain to the request of same source IP on the same server or on the same link.
In existing access way, access Internet mainly with the network address translation (nat) mode greatly.When a large amount of subnet users use a small amount of NAT address to be source IP access Internet, can cause that link load is unbalanced.If multilink is arranged and adopts some relevant round robin algorithms to carry out multi-link load balance in the Intranet outlet; cause possibly user on the multilink to be source NAT and use and all remain on the same outbound after keeping, thereby cause that access exception or load are seriously uneven.
Summary of the invention
In view of this, the application keeping method and the device that the purpose of this invention is to provide a kind of multilink outlet, can be under the prerequisite of the same outbound that same application is remained to load-balancing device, so that the load of many outbounds of load-balancing device is more balanced.
For achieving the above object, it is as follows to the invention provides technical scheme:
A kind of application keeping method of multilink outlet is applied on the load-balancing device, and described application keeping method comprises:
When receiving the application message of client transmission, obtain affiliated destination network segment and the source IP address in purpose IP address of this application message;
From a plurality of outbounds of load-balancing device, determine the target outbound according to described source IP address and destination network segment, described application message is sent from described target outbound.
A kind of application holding device of multilink outlet is applied on the load-balancing device, and described application holding device comprises:
The packet parsing module when being used for receiving the application message of client transmission, is obtained affiliated destination network segment and the source IP address in purpose IP address of this application message;
Use the maintenance module, be used for determining the target outbound according to described source IP address and destination network segment from a plurality of outbounds of load-balancing device, described application message is sent from described target outbound.
The present invention adds the application maintenance that purpose IP address network segment carries out the multilink outlet with source IP address, can be under the prerequisite of the same outbound that same application is remained to load-balancing device, so that the load of many outbounds of load-balancing device is more balanced.
Description of drawings
Fig. 1 is the networking structure figure of the embodiment of the invention;
Fig. 2 is the application keeping method flow chart of the multilink outlet of the embodiment of the invention;
Fig. 3 is the application holding device structure chart of the multilink outlet of the embodiment of the invention.
Embodiment
When in the prior art user's application message being done source IP address and use to keep access Internet, the load imbalance problem that exists, the present invention adds the application maintenance that purpose IP address network segment carries out the multilink outlet with source IP address, both realized using maintenance, and can realize to a certain extent again the load balancing of multilink.Even the different application of same source IP address still can effectively be carried out load balancing at the chain way outlet.
Describe the present invention below in conjunction with accompanying drawing.
Fig. 1 is the networking structure figure of the embodiment of the invention.With reference to Fig. 1, the internal network of enterprise is connected with external network by multilink (among the figure being 2), is provided with balancing link load equipment between internal network and the external network.Described load-balancing device has 3 outbounds (link 1, link 2 and link 3), and the application message from different inbound links receives can forward according to the predetermined corresponding outbound of policy selection.In embodiments of the present invention, described predetermined strategy is for adding the application maintain strategy of purpose IP address network segment based on source IP address.
Fig. 2 is the application keeping method flow chart of the multilink outlet of the embodiment of the invention, and described application keeping method is applied on the load-balancing device, and described load-balancing device has many outbounds.Described application keeping method mainly comprises: when receiving the application message of client transmission, obtain affiliated destination network segment and the source IP address in purpose IP address of this application message; From a plurality of outbounds of load-balancing device, determine the target outbound according to described source IP address and destination network segment, described application message is sent from described target outbound.
With reference to Fig. 2, described application keeping method specifically can comprise the steps:
Step 201 when receiving the application message of client transmission, is obtained affiliated destination network segment and the source IP address in purpose IP address of this application message;
Generally speaking, during Intranet user access Internet, its source IP address (private net address) of using message can be done address transition by NAT device, be converted to public network IP address after, the application message after the conversion is sent to load-balancing device.Load-balancing device is resolved described application message after receiving and using message, obtains source IP address and the purpose IP address of this application message, and determines the described network segment in this purpose IP address (the present invention is referred to as the target network segment) according to purpose IP address.
The IP address is comprised of the network address and host address, and the described network address namely is the above-mentioned network segment.For example for IPV4, a C class address realm is 192.168.1.0 ~ 192.168.1.255, claims that this address realm is a network segment, belongs to the 192.168.1 network segment (with first three byte representation of IP address).Similarly, for Class B IP address, the first two byte of this IP address is the network segment under it, and for Class C IP address, first byte of this IP address is the network segment under it.
Step 202 judges whether preserve described source IP address and outbound corresponding to destination network segment in the buffer memory, if, enter step 203, if not, enter step 204;
Foundation and maintenance have the mapping table of source IP address, destination network segment and target outbound in the described load-balancing device, and this mapping table is stored in the buffer memory.When initial, the content of this mapping table be empty, and follow-up when having the application message constantly to arrive, the content of this mapping table can dynamically update.
Step 203 is chosen the outbound of the described correspondence in the buffer memory as the target outbound, enters step 205;
If preserve outbound corresponding to described source IP address and destination network segment in the buffer memory, then can be directly with the target outbound of this outbound as described application message, thus same application is remained to the identical outbound of load-balancing device.
Step 204 adopts load-balancing algorithm to obtain the target outbound from described a plurality of outbounds according to described destination network segment, and the corresponding relation of source IP address, destination network segment and target outbound is saved in the buffer memory;
If do not preserve outbound corresponding to described source IP address and destination network segment in the buffer memory, then need to determine first the target outbound, and in mapping table, increase corresponding list item, like this, when the subsequent applications message arrives, if the source IP address that it is corresponding and destination network segment can with this list item coupling, just can be with the target outbound of the outbound in this list item as described application message, thus same application is remained to the identical outbound of load-balancing device.
Wherein, adopt load-balancing algorithm from described a plurality of outbounds, to obtain the target outbound according to described destination network segment, specifically can comprise: from described a plurality of outbounds, select first to arrive the outbound set of described destination network segment; Then, from described outbound set, select the link of flow minimum as described target outbound.
Step 205 sends described application message from described target outbound.
When next one application message reaches, continue to carry out the flow process from step 201 beginning.
Corresponding to said method, the embodiment of the invention also provides a kind of application holding device of multilink outlet.
Fig. 3 is the application holding device structure chart of the multilink outlet of the embodiment of the invention, and described application keeping method is applied on the load-balancing device, and described load-balancing device has many outbounds.
With reference to Fig. 3, described application holding device can comprise that packet parsing module 10 and application keep module 20, wherein:
When described packet parsing module 10 is used for receiving the application message of client transmission, obtain affiliated destination network segment and the source IP address in purpose IP address of this application message;
Described application keeps module 20 to be used for determining the target outbound according to described source IP address and destination network segment from a plurality of outbounds of load-balancing device, and described application message is sent from described target outbound.
Further, described application keeps module 20 to comprise:
Judge submodule 21, be used for judging that whether buffer memory preserves described source IP address and outbound corresponding to destination network segment, obtains a judged result;
First processes submodule 22, be used for when described judged result when being, with the outbound of the described correspondence in the buffer memory as described target outbound;
Second processes submodule 23, be used for when described when the determination result is NO, adopt load-balancing algorithm from described a plurality of outbounds, to obtain the target outbound according to described destination network segment, and the corresponding relation of source IP address, destination network segment and target outbound is saved in the buffer memory;
Send submodule 24, be used for described application message is sent from described target outbound.
Wherein, described second processes submodule can obtain the target outbound in the following manner from described a plurality of outbounds: at first, select to arrive the outbound set of described destination network segment from described a plurality of outbounds; Then, from described outbound set, select the link of flow minimum as described target outbound.
In sum, the present invention adds the application maintenance that purpose IP address network segment carries out the multilink outlet with source IP address, has both realized using keeping, and can realize to a certain extent again the load balancing of multilink.Even the different application of same source IP address still can effectively be carried out load balancing at the chain way outlet.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of making, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (6)

1. the application keeping method of multilink outlet is applied to it is characterized in that on the load-balancing device that described application keeping method comprises:
When receiving the application message of client transmission, obtain affiliated destination network segment and the source IP address in purpose IP address of this application message;
From a plurality of outbounds of load-balancing device, determine the target outbound according to described source IP address and destination network segment, described application message is sent from described target outbound.
2. application keeping method as claimed in claim 1 is characterized in that, describedly determines the target outbound according to described source IP address and destination network segment from a plurality of outbounds of load-balancing device, specifically comprises:
Judge whether preserve described source IP address and outbound corresponding to destination network segment in the buffer memory, obtain a judged result;
When described judged result when being, with the outbound of the described correspondence in the buffer memory as described target outbound;
, adopt load-balancing algorithm from described a plurality of outbounds, to obtain the target outbound according to described destination network segment, and the corresponding relation of source IP address, destination network segment and target outbound is saved in the buffer memory when the determination result is NO when described.
3. application keeping method as claimed in claim 2 is characterized in that, describedly adopts load-balancing algorithm to obtain the target outbound from described a plurality of outbounds according to described destination network segment, specifically comprises:
From described a plurality of outbounds, select to arrive the outbound set of described destination network segment;
From described outbound set, select the link of flow minimum as described target outbound.
4. the application holding device of multilink outlet is applied to it is characterized in that on the load-balancing device that described application holding device comprises:
The packet parsing module when being used for receiving the application message of client transmission, is obtained affiliated destination network segment and the source IP address in purpose IP address of this application message;
Use the maintenance module, be used for determining the target outbound according to described source IP address and destination network segment from a plurality of outbounds of load-balancing device, described application message is sent from described target outbound.
5. application holding device as claimed in claim 4 is characterized in that, described application keeps module specifically to comprise:
Judge submodule, be used for judging that whether buffer memory preserves described source IP address and outbound corresponding to destination network segment, obtains a judged result;
First processes submodule, be used for when described judged result when being, with the outbound of the described correspondence in the buffer memory as described target outbound;
Second processes submodule, be used for when described when the determination result is NO, adopt load-balancing algorithm from described a plurality of outbounds, to obtain the target outbound according to described destination network segment, and the corresponding relation of source IP address, destination network segment and target outbound is saved in the buffer memory;
Send submodule, be used for described application message is sent from described target outbound.
6. application holding device as claimed in claim 5 is characterized in that, described second processes submodule is further used for:
From described a plurality of outbounds, select to arrive the outbound set of described destination network segment;
From described outbound set, select the link of flow minimum as described target outbound.
CN2012104351826A 2012-11-02 2012-11-02 Application keeping method and device of multilink egress Pending CN102916898A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012104351826A CN102916898A (en) 2012-11-02 2012-11-02 Application keeping method and device of multilink egress

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012104351826A CN102916898A (en) 2012-11-02 2012-11-02 Application keeping method and device of multilink egress

Publications (1)

Publication Number Publication Date
CN102916898A true CN102916898A (en) 2013-02-06

Family

ID=47615134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012104351826A Pending CN102916898A (en) 2012-11-02 2012-11-02 Application keeping method and device of multilink egress

Country Status (1)

Country Link
CN (1) CN102916898A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580201A (en) * 2014-12-31 2015-04-29 北京奇虎科技有限公司 Detecting method and system for website loophole
CN104579995A (en) * 2013-10-12 2015-04-29 郑州冰川网络技术有限公司 A multilink session holding method
CN108881057A (en) * 2018-04-20 2018-11-23 网宿科技股份有限公司 Return the selection method and traffic distribution device of source route
CN110995608A (en) * 2019-12-20 2020-04-10 锐捷网络股份有限公司 Method, device and system for multi-link load balancing
CN111131539A (en) * 2019-12-23 2020-05-08 杭州迪普科技股份有限公司 Message forwarding method and device
CN111314236A (en) * 2020-04-14 2020-06-19 杭州迪普科技股份有限公司 Message forwarding method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101184053A (en) * 2007-12-29 2008-05-21 杭州华三通信技术有限公司 LAN export link selecting method, device and routing device
US7787370B1 (en) * 2001-09-06 2010-08-31 Nortel Networks Limited Technique for adaptively load balancing connections in multi-link trunks
CN102638407A (en) * 2012-04-17 2012-08-15 北京星网锐捷网络技术有限公司 Message forwarding method, device and network equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7787370B1 (en) * 2001-09-06 2010-08-31 Nortel Networks Limited Technique for adaptively load balancing connections in multi-link trunks
CN101184053A (en) * 2007-12-29 2008-05-21 杭州华三通信技术有限公司 LAN export link selecting method, device and routing device
CN102638407A (en) * 2012-04-17 2012-08-15 北京星网锐捷网络技术有限公司 Message forwarding method, device and network equipment

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104579995A (en) * 2013-10-12 2015-04-29 郑州冰川网络技术有限公司 A multilink session holding method
CN104580201A (en) * 2014-12-31 2015-04-29 北京奇虎科技有限公司 Detecting method and system for website loophole
CN104580201B (en) * 2014-12-31 2018-02-06 北京奇安信科技有限公司 Website vulnerability detection method and system
CN108881057A (en) * 2018-04-20 2018-11-23 网宿科技股份有限公司 Return the selection method and traffic distribution device of source route
CN110995608A (en) * 2019-12-20 2020-04-10 锐捷网络股份有限公司 Method, device and system for multi-link load balancing
CN111131539A (en) * 2019-12-23 2020-05-08 杭州迪普科技股份有限公司 Message forwarding method and device
CN111131539B (en) * 2019-12-23 2022-06-28 杭州迪普科技股份有限公司 Message forwarding method and device
CN111314236A (en) * 2020-04-14 2020-06-19 杭州迪普科技股份有限公司 Message forwarding method and device

Similar Documents

Publication Publication Date Title
CN102907049B (en) Find based on phantom station interface and configuration protocol response carrys out assigned priority
CN101009662B (en) Message processing method, system and device based on the load balance technology
KR102138619B1 (en) Message clustering method and load balancer based on server cluster
CN101296238B (en) Method and equipment for remaining persistency of security socket layer conversation
CN101141420B (en) Method and system for performing data communication between private network and public network
CN102916898A (en) Application keeping method and device of multilink egress
CN102480530B (en) Message sending method and device
US20190253359A1 (en) Load balancing of network communications
CN102130820A (en) Network service access method and access gateway equipment
CN100525237C (en) Data transferring system, method and network transferring apparatus
CN103220354A (en) Method for achieving load balancing of server cluster
CN101945141B (en) TCP-based method and system for traversing NAT devices
CN104023092A (en) Method and system for realizing directed flow packet
CN100403695C (en) Method and system for realizing load balancing
CN101521683A (en) Online game system and accessing method and client communication method thereof
CN101827039B (en) Method and equipment for load sharing
US7826465B2 (en) Methods, systems and computer program products for dynamic communication data routing by a multi-network remote communication terminal
CN108259372A (en) A kind of multi-link load balance system and method
CN101778425A (en) Method for dynamically balancing broadband access server load in wireless local area network
CN104852859A (en) Aggregate interface service processing method and aggregate interface service processing equipment
CN105592502A (en) Load balancing method and device
CN105721328A (en) VRRP load balancing method, VRRP load balancing device and router
CN102546364A (en) Network data distribution method and device
CN101262504A (en) A method, device and system for source and destination IP address translation
CN104079668A (en) DNS (Domain Name System) load balancing adjusting method and system

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: 20130206