CN102638396B - Load balancing method and device - Google Patents

Load balancing method and device Download PDF

Info

Publication number
CN102638396B
CN102638396B CN201210075638.2A CN201210075638A CN102638396B CN 102638396 B CN102638396 B CN 102638396B CN 201210075638 A CN201210075638 A CN 201210075638A CN 102638396 B CN102638396 B CN 102638396B
Authority
CN
China
Prior art keywords
gateway
address
gateway address
client
pond
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.)
Active
Application number
CN201210075638.2A
Other languages
Chinese (zh)
Other versions
CN102638396A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210075638.2A priority Critical patent/CN102638396B/en
Publication of CN102638396A publication Critical patent/CN102638396A/en
Application granted granted Critical
Publication of CN102638396B publication Critical patent/CN102638396B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a load balancing method and device. The load balancing device receives an IP (internet protocol) network configuration request message transmitted by a client, packs a network address in a gateway address pool in a response message corresponding to each client according to a set load balancing rule, so that the package sequences of the gateway addresses in the response messages corresponding to at least two clients are different, and respectively transmits the response messages to the corresponding client. The embodiment of the invention can realize load balance under multiple gateway scenes.

Description

Load-balancing method and equipment
Technical field
The present invention relates to the network communications technology, particularly relate to a kind of load-balancing method and equipment.
Background technology
Along with the expansion of network size and the raising of network complexity, network configuration becomes increasingly complex, often occur that terminal location change and terminal quantity exceed assignable Internet protocol (Internet Protocol, IP) situation of address, DHCP (Dynamic Host Configuration Protocol, DHCP) now can be adopted to make terminal dynamically obtain IP address.DHCP agreement comprises server and client side, and Dynamic Host Configuration Protocol server manages all IP network configuration informations concentratedly, and is responsible for the DHCP request of process client; Dynamic Host Configuration Protocol server can distribute the IP address of gateway, the IP address etc. of domain name system (Domain Name System, DNS) to client by IP network configuration information.
Can preserve the gateway address pond of list of gateways in Dynamic Host Configuration Protocol server, this gateway address pond comprises the IP address of all gateways that can be assigned with.After Dynamic Host Configuration Protocol server receives the IP network configuration request message of client transmission, gateway ip address in gateway address pond is encapsulated in response (Acknowledgement, ACK) send to client in message, the gateway ip address being encapsulated in first position is configured to the default gateway address of self by client.
But, in prior art, Dynamic Host Configuration Protocol server carries out address encapsulation when encapsulating gateway ip address according to configuration file, order due to the gateway ip address in configuration file is fixing, therefore carrying out address encapsulation according to configuration file can make all clients all adopt first gateway gateway forwards message by default in configuration file, even if there is multiple gateway, the load balancing of gateway also cannot be accomplished.
Summary of the invention
The embodiment of the present invention provides a kind of load-balancing method and equipment, realizes the load balancing of multiple gateway under DHCP scene.
Embodiments provide a kind of load-balancing method, comprising:
Receive the IP network configuration request message that client sends;
According to the load balancing rule of setting, be encapsulated in by the gateway address in gateway address pond in response message corresponding to each client, the gateway address encapsulation order in the response message making at least two clients corresponding is different;
Described response message is sent to respectively corresponding client.
Embodiments provide a kind of load-balancing device, comprising:
Receiver, for receiving the IP network configuration request message that client sends;
Package module, for the load balancing rule according to setting, is encapsulated in the gateway address in gateway address pond in response message corresponding to each client, and the gateway address encapsulation order in the response message making at least two clients corresponding is different;
Transmitter, for sending to corresponding client respectively by described response message.
As shown from the above technical solution, the embodiment of the present invention uses the encapsulation order of different gateway address by Dynamic Host Configuration Protocol server in the response message to different clients, different gateway address can be distributed for different clients, avoid all clients all via the flow congestion problem that same gateway forwards message causes, realize the load balancing under multiple gateway scene.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of load-balancing method one embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another embodiment of load-balancing method of the present invention;
Fig. 3 is the system configuration schematic diagram that Fig. 2 is corresponding;
Fig. 4 is the schematic flow sheet of another embodiment of load-balancing method of the present invention;
Fig. 5 is the system configuration schematic diagram that Fig. 4 is corresponding;
Fig. 6 is the schematic flow sheet of another embodiment of load-balancing method of the present invention;
Fig. 7 is the structural representation of load-balancing device one embodiment of the present invention.
Embodiment
Fig. 1 is the schematic flow sheet of load-balancing method one embodiment of the present invention, comprising:
The IP network configuration request message that step 11:DHCP server receives client sends;
Wherein, according to the difference of networking mode, IP network configuration request message can be sent to Dynamic Host Configuration Protocol server by different modes by client, such as, under annular networking mode, this IP network configuration request message can be sent to Dynamic Host Configuration Protocol server by the nearest gateway with dhcp relay feature by client; Under double-ascending network mode, client can send this IP network configuration request message to two gateways with dhcp relay feature simultaneously, and this IP network configuration request message is sent to Dynamic Host Configuration Protocol server by the host apparatus had in the gateway of dhcp relay feature by these two.
Gateway address in gateway address pond, according to the load balancing rule of setting, is encapsulated in response message corresponding to each client by step 12:DHCP server, and the gateway address encapsulation order in the response message making at least two clients corresponding is different;
Wherein, the load balancing rule of setting can be the rule nearby shown in Fig. 2, at least one in the random rule shown in Fig. 4.For regular nearby, can be in first gateway address position of response message by the IP address encapsulation with the gateway of dhcp relay feature nearest for distance client; For random rule, can be putting in order of stochastic generation gateway address, according to the order encapsulation of stochastic generation, each gateway address is encapsulated in response message.
Described response message is sent to corresponding client by step 13:DHCP server respectively.
The present embodiment uses the encapsulation order of different gateway address by Dynamic Host Configuration Protocol server in the response message of different clients, different gateway address can be distributed for different clients, avoid all clients all via the flow congestion problem that same gateway forwards message causes, realize the load balancing under multiple gateway scene.
Fig. 2 is the schematic flow sheet of another embodiment of load-balancing method of the present invention, and Fig. 3 is the system configuration schematic diagram that Fig. 2 is corresponding.The present embodiment for the load balancing of setting rule for the method shown in regular key diagram 1 nearby.
See Fig. 3, in annular networking mode, client is respectively PC1, PC2, PC3, PC4, PC5 and PC6; Client is by switch access network, concrete, PC1 and PC2 is by SW1 access network, PC3 and PC4 is by SW2 access network, PC5 and PC6 is by SW3 access network; The gateway that can be assigned with in system is GW1 and GW2, and GW1 and GW2 is for disposing Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol, and open the gateway of dhcp relay feature VRRP), GW1 and GW2 backups each other equipment, and the IP network configuration request message that client sends can send to Dynamic Host Configuration Protocol server through GW1 or GW2.
In prior art, after Dynamic Host Configuration Protocol server receives IP network configuration request message, according to configuration file encapsulation gateway address, such as, configuration file shows that GW1 is host apparatus, and GW2 is stand-by equipment, then Dynamic Host Configuration Protocol server is to the response message of the client transmission of request, the order of the gateway address namely encapsulated in ACK message is (address of GW1, the address of GW2); After client receives ACK message, the gateway address of first gateway address position is configured to default gateway address, namely GW1 is all configured to default gateway by client.In this case, GW1 is easy to congested.On the other hand, suppose to break down between SW2 and SW3, now, the message of PC5 and PC6 is actually via GW2 transmission, if still for PC5 and PC6 specifies default gateway to be GW1, the message that then PC5 and PC6 sends can first just can forward through GW1 through GW2 again, can reduce the forwarding bandwidth of GW1 like this.
In order to solve the problem, in the present embodiment, when distributing gateway address, the gateway near client is distributed to client gateway by default.Near the gateway of client refer to client when sending IP network configuration request message this message via gateway.Such as, after breaking down between above-mentioned SW2 and SW3, the message that PC5 sends can be transmitted to Dynamic Host Configuration Protocol server via GW2, then the gateway near PC5 is exactly GW2.When Dynamic Host Configuration Protocol server according to configuration information determine current be in annular networking mode time, the mode of the present embodiment can be adopted to carry out gateway address encapsulation.
See Fig. 2, the present embodiment comprises:
Step 21: client sends IP network configuration request message to Dynamic Host Configuration Protocol server.
Step 22: after the gateway with dhcp relay feature listens to this IP network configuration request message, add the IP address of self in this IP network configuration request message, and by comprising the IP network configuration request message of the IP address of self, send to Dynamic Host Configuration Protocol server.
Wherein, client only can be had the gateway forwards of dhcp relay feature to the message that Dynamic Host Configuration Protocol server sends by one, such as, forwarded by GW1 or GW2, and these message can added the IP address of oneself by gateway GW1 or GW2 through GW1 or GW2.
Such as, after the IP network configuration request message that PC1 sends is intercepted by GW1, GW1 sends to Dynamic Host Configuration Protocol server after carrying out finalization process to this message, now can carry the IP address of GW1.It can be forwarded removing from the LAN ID in the IP network configuration request message of PC1 by three layers or other process, to realize the intercommunication between local area network (LAN) that GW1 carries out finalization process again.The IP network configuration request message that so just can realize PC1 transmission is sent to Dynamic Host Configuration Protocol server.
Gateway address is encapsulated in ACK message and sends to client by step 23:DHCP server, and the gateway address of first position of this ACK message encapsulation is the address with the gateway of dhcp relay feature of carrying in this IP network configuration request message.
Wherein, the gateway address pond of gateway address list can be preserved in Dynamic Host Configuration Protocol server, comprise the IP address of the gateway that can be assigned with in this gateway address pond, such as GW1 and GW2, and when encapsulating ACK message, the gateway address in gateway address pond is encapsulated in a certain order.
Dynamic Host Configuration Protocol server is after receiving IP network configuration request message, first the IP address of whether carrying gateway in this IP network configuration request message is confirmed, if carried, then by first the gateway address position of the address encapsulation of this gateway at response message corresponding to described client.Have a field to be OPTION3 field in ACK message, this field is for encapsulating the gateway address of an above-mentioned definite sequence.In the present embodiment, suppose that the address with the gateway of dhcp relay feature of carrying in the IP network configuration request message that PC1 sends is the address of GW1, so Dynamic Host Configuration Protocol server is the order of gateway address in the ACK message of the correspondence that PC1 generates is (the address of GW1, the address of GW2), namely the address of GW1 comes first position.
When the gateway address that Dynamic Host Configuration Protocol server is preserved comprises the gateway address of more than three, Dynamic Host Configuration Protocol server can also to except have relay function gateway address except multiple residue gateway address produce encapsulation order at random, according to the random encapsulation order produced, described multiple residue gateway address is encapsulated in the correspondence position of described response message.
Step 24: the gateway address of the position of first in ACK message is configured to the default gateway address of self by client.
Such as, because in the ACK message that PC1 is corresponding, the gateway address of first position is the address of GW1, then GW1 is configured to the default gateway of self by PC1.
The address configuration of the gateway with dhcp relay feature is become the default gateway address of client by the present embodiment by Dynamic Host Configuration Protocol server, can to realize the gateway address near user as the default gateway address of client, meet the load balancing demand of multiple gateway under annular networking.
Fig. 4 is the schematic flow sheet of another embodiment of load-balancing method of the present invention, and Fig. 5 is the system configuration schematic diagram that Fig. 4 is corresponding.The present embodiment is explained method shown in Fig. 1 for random rule for the load balancing of setting rule.
See Fig. 5, in double-ascending network mode, client is respectively PC1, PC2; Client is by switch access network, concrete, PC1 and PC2 is by SW1 access network; The gateway that can be assigned with in system is GW1 and GW2, wherein, GW1 and GW2 is the gateway deploying VRRP and open dhcp relay feature, that is, GW1 and GW2 backups each other gateway, and the IP network configuration request message that client sends can send to Dynamic Host Configuration Protocol server through GW1 or GW2.
In prior art, after Dynamic Host Configuration Protocol server receives IP network configuration request message, according to configuration file encapsulation gateway address, such as, configuration file shows that GW1 is host apparatus, GW2 is stand-by equipment, then the order encapsulating gateway address in the ACK message that Dynamic Host Configuration Protocol server sends to the client of request is (address of GW1, the address of GW2); After client receives ACK message, the gateway address of first gateway address position is configured to default gateway address, namely GW1 is all configured to default gateway by client.In this case, GW1 is easy to congested.
In order to solve the problem, in the present embodiment, when distributing gateway address, different gateway is distributed to different clients gateway by default.Particularly, the present embodiment adopts Random assignment mode, and because gateway is Random assignment, different clients just can be assigned with different default gateways substantially, such as, GW1 is distributed to PC1 gateway by default, GW2 is distributed to PC2 gateway by default.When Dynamic Host Configuration Protocol server according to configuration information determine current be in double-ascending network mode time, the present embodiment can be adopted to carry out gateway address encapsulation.
See Fig. 4, the present embodiment comprises:
Step 41: client sends IP network configuration request message to Dynamic Host Configuration Protocol server.
Step 42:DHCP server produces encapsulation order at random according to the gateway address in gateway address pond, is encapsulated in ACK message by gateway address, and ACK message is sent to client according to the random encapsulation order produced.
After Dynamic Host Configuration Protocol server receives this IP network configuration request message, if when determining the IP address not comprising the gateway with dhcp relay feature in this IP network configuration request message, Dynamic Host Configuration Protocol server produces encapsulation order at random according to the gateway address in gateway address pond, according to the random encapsulation order produced, gateway address is encapsulated in ACK message, and ACK message is sent to client.
Such as, gateway address in gateway address pond is address and the GW2 address of GW1, then Dynamic Host Configuration Protocol server can carry out stochastic arithmetic, such as calculate rand2, use the value of rand2 to 2 remainders (rand2%2) afterwards, if the gateway address that the value after remainder is 0, first position is the address of GW1, more than be the gateway address of 1 first position be GW2.Such as, the value of the rand2 of calculating is 5, then to the value rand2%2=1 after 2 remainders, then encapsulation order be that the ground of GW2 stops the address of-GW1.
Step 43: the gateway address of the position of first in ACK message is configured to the default gateway address of self by client.
Such as, when above-mentioned encapsulation order is (address of GW2, the address of GW1), then the address configuration of GW2 is become default gateway address.
The present embodiment adopts random fashion to determine encapsulation order by Dynamic Host Configuration Protocol server, can make the default gateway that different clients is specifically different, can meet the load balancing demand of multiple gateway under double-ascending network.
Aforesaid way has carried out gateway distribution with the mode of close client and random fashion respectively, also both can be combined.
Fig. 6 is the schematic flow sheet of another embodiment of load-balancing method of the present invention, and the present embodiment is explained the method shown in Fig. 1 in conjunction with random rule for regular nearby for the load balancing of setting rule, and the present embodiment comprises:
Step 61: client sends IP network configuration request message to Dynamic Host Configuration Protocol server.
Step 62:DHCP server determines the address whether comprising the gateway with dhcp relay feature in described IP network configuration request message, when included, performs step 63, otherwise, perform step 65.
Step 63:DHCP server has the IP address of the gateway of dhcp relay feature described in determining whether to comprise in the gateway address pond of preserving, and if so, performs step 64, otherwise, perform step 65.
Step 64:DHCP server is by described first position of IP address encapsulation at ACK message with the gateway of dhcp relay feature, and when there is multiple residue gateway address in described gateway address pond, encapsulation order is produced at random according to multiple residue gateway address, according to the random encapsulation order produced, described multiple residue gateway address is encapsulated in the correspondence position of described response message, described residue gateway address is the gateway address in described gateway address pond except determining the gateway address of package position;
Such as, the gateway address comprised in the gateway address pond of preserving in Dynamic Host Configuration Protocol server is: the address of GW1, the address of GW2, the address of GW3, the address of GW4.Owing to having the gateway of dhcp relay feature, namely the address of GW3 is included in gateway address pond, then first position of ACK message is the address of GW3, and the order for address space left can be determined in the following way:
First, stochastic arithmetic is carried out for the address except the address of GW3, determine the gateway address of second position.Such as, address except the address of GW3 is: the address of the address of GW1, the address of GW2 and GW4, calculate rand3, again with rand3 to 3 remainders, the gateway address that residual value indicates is defined as the gateway address of second position, wherein, residual value may be 0,1,2, respectively corresponding GW1, GW2, GW4.Specifically if rand3 is 8, then to being 2 after 3 remainders, then the gateway address of second position is the address of GW4.
Secondly, then stochastic arithmetic is carried out to remaining gateway address: calculate rand2, then with rand2 to 2 remainders, the gateway address that residual value indicates is defined as the gateway address of the 3rd position, wherein, residual value may be 0,1, corresponding GW1, GW2 respectively.Specifically if rand2 is 2, then to being 0 after 2 remainders, then the gateway address of the 3rd position is the address of GW1.
Can determine that after above-mentioned computing the encapsulation order of gateway address in ACK message is: (address of GW3, the address of GW4, the address of GW1, the address of GW2).
When the address number in gateway address pond is more, can the rest may be inferred.
Step 65:DHCP server produces encapsulation order at random according to the gateway address in described gateway address pond, according to the random encapsulation order produced, the gateway address in described gateway address pond is encapsulated in the correspondence position of described ACK message.
ACK message after encapsulation is sent to client by step 66:DHCP server.
Step 67: the gateway address of the position of first in ACK message is configured to the default gateway address of self by client.
The present embodiment will have first position of address encapsulation at ACK message of the gateway of dhcp relay feature by Dynamic Host Configuration Protocol server, and adopt the encapsulation order of all the other gateway address in random fashion determination gateway address pond, the default gateway address that can realize different clients is different, meets load balancing demand.
Fig. 7 is the structural representation of load-balancing device one embodiment of the present invention, and this equipment is used for realizing the above-mentioned each embodiment of the method for the present invention, and be specifically as follows Dynamic Host Configuration Protocol server, this equipment comprises receiver 71, package module 72 and transmitter 73; The IP network configuration request message that receiver 71 sends for receiving client; Gateway address in gateway address pond, for the load balancing rule according to setting, is encapsulated in response message corresponding to each client by package module 72, and the gateway address encapsulation order in the response message making at least two clients corresponding is different; Transmitter 73 is for sending to corresponding client respectively by described response message.
Optionally, when comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, and when there is the IP address of the gateway of dhcp relay feature described in comprising in described gateway address pond, described package module 72 is specifically for by first the gateway address position of the described IP address encapsulation with the gateway of dhcp relay feature at response message corresponding to described client, further, if there is multiple residue gateway address in described gateway address pond, described package module 72 is also for producing encapsulation order at random according to multiple residue gateway address, according to the random encapsulation order produced, described multiple residue gateway address is encapsulated in the correspondence position of described response message, described residue gateway address is the gateway address in described gateway address pond except determining the gateway address of package position.
Optionally, when comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, and when there is the IP address of the gateway of dhcp relay feature described in not comprising in described gateway address pond, gateway address in described gateway address pond, specifically for producing encapsulation order at random according to the gateway address in described gateway address pond, is encapsulated in the correspondence position of described response message by described package module 72 according to the random encapsulation order produced.
Optionally, when not comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, described package module 72 specifically for: produce encapsulation order at random according to the gateway address in described gateway address pond, according to the random encapsulation order produced, the gateway address in described gateway address pond be encapsulated in response message corresponding to each client.
The present embodiment uses the encapsulation order of different gateway address by Dynamic Host Configuration Protocol server in the response message to different clients, different gateway address can be distributed for different clients, avoid all clients all via the flow congestion problem that same gateway forwards message causes, realize the load balancing under multiple gateway scene
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that program command is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (8)

1. a load-balancing method, is characterized in that, comprising:
Receive the IP network configuration request message that client sends;
According to the load balancing rule of setting, be encapsulated in by the gateway address in gateway address pond in response message corresponding to each client, the gateway address encapsulation order in the response message making at least two clients corresponding is different;
Described response message is sent to respectively corresponding client;
Wherein, when comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, described gateway address in gateway address pond to be encapsulated in response message corresponding to each client, to comprise:
If have the IP address of the gateway of dhcp relay feature described in comprising in described gateway address pond, by first the gateway address position of the described IP address encapsulation with the gateway of dhcp relay feature at response message corresponding to described client.
2. method according to claim 1, is characterized in that, is describedly encapsulated in response message corresponding to each client by gateway address in gateway address pond, also comprises:
When there is multiple residue gateway address in described gateway address pond, encapsulation order is produced at random according to multiple residue gateway address, according to the random encapsulation order produced, described multiple residue gateway address is encapsulated in the correspondence position of described response message, described residue gateway address is the gateway address in described gateway address pond except determining the gateway address of package position.
3. method according to claim 1, is characterized in that,
When comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, described gateway address in gateway address pond to be encapsulated in response message corresponding to each client, to comprise:
If have the IP address of the gateway of dhcp relay feature described in not comprising in described gateway address pond, produce encapsulation order at random according to the gateway address in described gateway address pond, according to the random encapsulation order produced, the gateway address in described gateway address pond is encapsulated in the correspondence position of described response message.
4. method according to claim 1, is characterized in that, is describedly encapsulated in response message corresponding to each client by gateway address in gateway address pond, comprising:
When not comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, produce encapsulation order at random according to the gateway address in described gateway address pond, and according to the random encapsulation order produced, the gateway address in described gateway address pond is encapsulated in response message corresponding to each client.
5. a load-balancing device, is characterized in that, comprising:
Receiver, for receiving the IP network configuration request message that client sends;
Package module, for the load balancing rule according to setting, is encapsulated in the gateway address in gateway address pond in response message corresponding to each client, and the gateway address encapsulation order in the response message making at least two clients corresponding is different;
Transmitter, for sending to corresponding client respectively by described response message;
Wherein, when comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, and when having the IP address of the gateway of dhcp relay feature described in comprising in described gateway address pond, described package module is specifically for by first the gateway address position of the described IP address encapsulation with the gateway of dhcp relay feature at response message corresponding to described client.
6. equipment according to claim 5, it is characterized in that, if there is multiple residue gateway address in described gateway address pond, described package module is also for producing encapsulation order at random according to described multiple residue gateway address, according to the random encapsulation order produced, described multiple residue gateway address is encapsulated in the correspondence position of described response message, described residue gateway address is the gateway address in described gateway address pond except determining the gateway address of package position.
7. equipment according to claim 5, it is characterized in that, when comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, and when there is the IP address of the gateway of dhcp relay feature described in not comprising in described gateway address pond, gateway address in described gateway address pond, specifically for producing encapsulation order at random according to the gateway address in described gateway address pond, is encapsulated in the correspondence position of described response message by described package module according to the random encapsulation order produced.
8. equipment according to claim 5, is characterized in that, when not comprising the IP address of the gateway with dhcp relay feature in described IP network configuration request message, described package module specifically for:
Produce encapsulation order at random according to the gateway address in described gateway address pond, and according to the random encapsulation order produced, the gateway address in described gateway address pond is encapsulated in response message corresponding to each client.
CN201210075638.2A 2012-03-21 2012-03-21 Load balancing method and device Active CN102638396B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210075638.2A CN102638396B (en) 2012-03-21 2012-03-21 Load balancing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210075638.2A CN102638396B (en) 2012-03-21 2012-03-21 Load balancing method and device

Publications (2)

Publication Number Publication Date
CN102638396A CN102638396A (en) 2012-08-15
CN102638396B true CN102638396B (en) 2014-12-24

Family

ID=46622649

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210075638.2A Active CN102638396B (en) 2012-03-21 2012-03-21 Load balancing method and device

Country Status (1)

Country Link
CN (1) CN102638396B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731290A (en) * 2012-10-16 2014-04-16 无锡云捷科技有限公司 Server failure switching method
CN103731289A (en) * 2012-10-16 2014-04-16 无锡云捷科技有限公司 Method for automatic expansion of network server
CN103731287A (en) * 2012-10-16 2014-04-16 无锡云捷科技有限公司 Method for selecting server to take over fault server
CN103441944B (en) * 2013-08-20 2017-03-08 深信服网络科技(深圳)有限公司 Method based on load-balancing device processing data and load-balancing device
CN105791462A (en) * 2016-04-28 2016-07-20 锐捷网络股份有限公司 Method, system and DHCP server for realizing load balance of network equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1889572A (en) * 2006-07-27 2007-01-03 杭州华为三康技术有限公司 Internet protocol address distributing method and dynamic main machine configuration protocol relay
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN101018193A (en) * 2007-01-25 2007-08-15 杭州华为三康技术有限公司 Load distribution method and system and device for allocating the backup packet and virtual IP address

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949784A (en) * 2005-10-12 2007-04-18 华为技术有限公司 IP address requesting method for DHCP client by DHCP repeater
CN1889572A (en) * 2006-07-27 2007-01-03 杭州华为三康技术有限公司 Internet protocol address distributing method and dynamic main machine configuration protocol relay
CN101018193A (en) * 2007-01-25 2007-08-15 杭州华为三康技术有限公司 Load distribution method and system and device for allocating the backup packet and virtual IP address

Also Published As

Publication number Publication date
CN102638396A (en) 2012-08-15

Similar Documents

Publication Publication Date Title
CN105610632B (en) Virtual network equipment and related method
CN102025798B (en) Address allocation processing method, device and system
CN102447624B (en) Load balancing method in server cluster, as well as node server and cluster
CN101316236B (en) Vrrp backup group load sharing method and router
CN103580880B (en) Method, equipment and system abnormal a kind of fast notification CGN
US10367680B2 (en) Network relay apparatus, gateway redundancy system, program, and redundancy method
CN102638396B (en) Load balancing method and device
CA2485175A1 (en) Methods and apparatus for mobile ip dynamic home agent allocation
KR102074916B1 (en) Distributed MQTT Broker Architecture based on RPL
CN104618243A (en) Routing method, device and system, and gateway scheduling method and device
CN102333027A (en) Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
CN104426816B (en) A kind of virtual machine communication method and device
CN102006268A (en) Method, equipment and system for switching main interface and standby interface
CN112583947B (en) DHCP processing method, device, equipment and machine readable storage medium
CN102447703B (en) A kind of heat backup method and system, CGN equipment
WO2012021827A1 (en) Systems and methods for managing network address information
CN102882906A (en) Method and device of data communication in constrained application protocol
US8451847B2 (en) Intermediate node device, method of controlling intermediate node device, and network system
CN102299871B (en) Communication method and gateway equipment
CN105847143A (en) VRRP (virtual router redundancy protocol)-based load balancing method and system
CN102946348B (en) VRRPE message processing method and equipment in a kind of double layer network
JP6406712B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
CN101686265B (en) Network equipment, network system and method for establishing data communication
US10212079B2 (en) Router advertisement caching
JP5966703B2 (en) Router device, communication system, and packet transfer method

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