CN101217448A - A method and system to realize gateway dynamic load sharing - Google Patents

A method and system to realize gateway dynamic load sharing Download PDF

Info

Publication number
CN101217448A
CN101217448A CNA2008100565001A CN200810056500A CN101217448A CN 101217448 A CN101217448 A CN 101217448A CN A2008100565001 A CNA2008100565001 A CN A2008100565001A CN 200810056500 A CN200810056500 A CN 200810056500A CN 101217448 A CN101217448 A CN 101217448A
Authority
CN
China
Prior art keywords
gateway
gateway device
backup
virtual
mac address
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
CNA2008100565001A
Other languages
Chinese (zh)
Other versions
CN101217448B (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.)
Ruijie Networks Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2008100565001A priority Critical patent/CN101217448B/en
Publication of CN101217448A publication Critical patent/CN101217448A/en
Application granted granted Critical
Publication of CN101217448B publication Critical patent/CN101217448B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method and a system of realizing sharing of gateway dynamic load. The arrangement of a plurality of new virtual MAC addresses in the same virtual backup group which is provided with a plurality of gate way devices assures that main equipment can forward the data message to an external network server by different gate way devices so as to realize the function of sharing gateway dynamic load. Aiming at the problems that the gate way backup and load sharing can increase network management load in the prior art, network bandwidth load and gate way device load, the invention provides the method and system of realizing sharing of gateway dynamic load. The invention simplifies the user configuration management, reduces occupation of network bandwidth caused by data transmission and improves the forwarding performance of the gate way device.

Description

Realize the method and system of gateway dynamic load sharing
Technical field
The present invention relates to communication technical field, particularly a kind of method and system that realize gateway dynamic load sharing.
Background technology
Shown in Figure 1A, be existing local area network building structural representation, local area network (LAN) is by unique gateway access external network, this networking structure mainly comprises: main process equipment 1, main process equipment 2, gateway device 4 and external network server 3, main process equipment 1 in the local area network (LAN) and main process equipment 2 (perhaps more main frame) visit external network server 3 by unique gateway device 4, main process equipment 1, main process equipment 2 in the realization local area network (LAN) are communicated by letter with 3 of external network server, and idiographic flow is as follows:
At first want procotol (the Internet Protocol of h.323-configured gateway equipment 4, hereinafter to be referred as: IP) address and gateway routing table, the main process equipment 1 in the configuration local area network (LAN) and the IP address and the gateway address of main process equipment 2, wherein Pei Zhi gateway address is the IP address of gateway device 4.For example: main process equipment 1 will communicate with external network server, need earlier communication information content to be assembled into the IP datagram literary composition, comprising source address be the IP address of main process equipment 1, destination address is the IP address of external network server 3, because this destination address is external network IP address, so need to send the IP datagram literary composition that comprises this destination address to gateway device 4 earlier; Main process equipment 1 also will check whether exist and the corresponding data link layer physical address of the gateway address of its configuration then, for ethernet local area network, the data link layer physical address is medium access control (Media AccessControl, hereinafter to be referred as MAC) address, the MAC Address of mentioning below the present invention is an example with the ethernet local area network all, but is not limited to only adopt the networking structure of Ethernet.If there is not corresponding data link layer physical address, it is MAC Address, then will be to LAN broadcast address's analysis protocol (Address Resolution Protocol at main process equipment 1 place, hereinafter to be referred as: ARP) request message, the MAC Address of request gateway device 4, after gateway device 4 receives the ARP request message, utilize the MAC Address of its corresponding gateway device 4, promptly the MAC Address of the physical interface of gateway device 4 itself is made response; After main process equipment 1 receives that MAC Address that gateway device 4 is made is replied, make up the correspondence table of the MAC Address of the gateway address of main process equipment 1 and gateway device 4, in ethernet local area network, be called the ARP table; Main process equipment 1 utilizes the MAC Address of the gateway device 4 that obtains again, the IP message is encapsulated into externally transmission in the link packet (being Ethernet message in ethernet local area network), its Ethernet message form comprises that destination address is that MAC Address, the source address of gateway device 4 is that MAC Address, the IP datagram literary composition of main process equipment 1 is the above-mentioned IP data message shown in Figure 1B; If there is the MAC Address of corresponding gateway device 4, main process equipment 1 will directly utilize the MAC Address of the gateway device 4 of existence, the IP message will be encapsulated in the link packet externally send; Gateway device 4 receives target MAC (Media Access Control) address for after the Ethernet message of its physical interface, the destination address that extracts in the IP datagram literary composition carries out Route Selection, the data that main process equipment 1 sends out are delivered to external network server 3, finished the connection that main process equipment 1 arrives external network server 3 in the local area network (LAN); External network server 3 is received the IP datagram literary composition, and the step that is connected thereto according to aforementioned main process equipment 1 is connected to main process equipment 1, thereby realizes the mutual communication process of main process equipment 1 and external network server 3.
In above-mentioned local area network building structure, by unique gateway device 4 visit external network server 3, this moment, gateway device 4 became the external unique outlet of main process equipment 1 in the local area network (LAN), main process equipment 2, and any anomaly of gateway device 4 all will cause whole local area network and external network server 3 out of touch.In order to improve the reliability of local area network (LAN), as shown in Figure 2, (mentioning gateway device 6 when introducing) is for utilizing virtual route redundancy backup protocol (Virtual Router RedundancyProtocol, hereinafter to be referred as VRRP) structural representation that carries out networking, comprising: main process equipment 1, main process equipment 2, gateway device 4, gateway device 5, gateway device 6 and external network server 3.Main process equipment 1 and main process equipment 2 are connected on the local area network (LAN), gateway device 4 and gateway device 5 and 6 whiles of gateway device are as the communication gate of main frame in the local area network (LAN) and external network server 3, when anomaly appears in gateway device 4, other gateway devices, for example gateway device 5 or gateway device 6 will be taken over it as gateway device work, this has just realized the function of mutual backup between gateway device, and the gateway backup utilizes VRRP to realize usually; Gateway device 4, gateway device 5 and gateway device 6 are connected on the external network server 3 by different circuits, main process equipment 1 in the local area network (LAN) or main process equipment 2 are when visit external network server 3, according to the strategy of setting, by different gateway devices, arrive external network server 3 from different circuits, thereby make full use of the device resource and the network bandwidth, this has just realized the load balancing function, made full use of the resource of gateway device 4 and gateway device 5, and the link bandwidth of gateway device.
Utilize VRRP to realize that the concrete scheme of gateway backup and load balancing is as follows:
1, gateway backup:
Gateway device 4 and gateway device 5 are configured in the virtual backup group by VRRP, dispose same virtual ip address and virtual mac address, and the main process equipment 1 in the configuration local area network (LAN) and the gateway address of main process equipment 2 point to virtual ip address; Protocol massages rule by VRRP elects main gateway device and backup gateway equipment, and as shown in Figure 2, supposing to elect main gateway device is gateway device 4, and backup gateway equipment is gateway device 5; Main gateway device 4 is announced it to the inner VRRP of transmission of local area network (LAN) protocol massages and is existed, and the VRRP protocol massages that backup gateway equipment 5 sends by main gateway device 4 is monitored the state of main gateway device 4.When main process equipment 1 needs and external network server 3 is write to each other, send the MAC Address that the ARP request message is asked main gateway device earlier, owing to gateway device has same virtual ip address, main gateway device 4 can utilize virtual MAC that it is responded; Main process equipment 1 gets access to the corresponding virtual MAC Address that main gateway device sends, and can utilize this virtual mac address that the IP datagram literary composition is packaged into Ethernet message and externally send, and destination address is a virtual mac address; Main gateway device 4 will receive and transmit the IP datagram literary composition information in the Ethernet message that target MAC (Media Access Control) address is a virtual mac address, thereby realize communicating by letter of main frame and external network server.When main gateway device 4 appearance are unusual, can't send the VRRP protocol massages, unusual by to the listener discovery main gateway device 4 of this protocol massages of backup gateway equipment 5, itself will be automatically upgraded to main gateway device, transmit originally at main process equipment 1 that receives on the gateway device 4 and transmit and the communication message between the external network server 3; Therefore for main process equipment 1 aware gateway equipment unusual not, thereby realized the dynamic backup of gateway device.
Above-mentioned a plurality of gateway devices are invented a virtual gateway, this virtual gateway comprises a virtual ip address and a virtual mac address, and the gateway address of the main frame in the local area network (LAN) is a virtual ip address.According to the VRRP agreement, elect out main gateway device and backup gateway equipment, main gateway device is born the forwarding capability of virtual gateway, and promptly responding ARP request and destination address is the reception and the forwarding of the IP datagram literary composition of virtual mac address; Backup gateway equipment is responsible for monitoring the running status of main gateway device by monitoring this message, when main gateway device takes place when unusual, backup gateway equipment is not received the VRRP protocol massages of main gateway device announcement within a certain period of time, backup gateway equipment will produce main gateway device again by election contest, bear the function of former main gateway device, thereby realize the gateway device backup.
2, load balancing:
In the VRRP agreement, also realized grouping concept, be about to local area network (LAN) and be divided into some groups, fictionalize a plurality of virtual gateway equipment by the VRRP agreement between gateway device, gateway device utilizes the VRRP agreement to back up, in the local area network (LAN) not the gateway address of the main frame on the same group point to the MAC Address of its corresponding virtual gateway, thereby realized the function of load balancing.As shown in Figure 2, gateway device 4 and gateway device 5 operation VRRP agreements are configured as two VRRP groups, invent two virtual backup groups, and each group all has a virtual ip address and a virtual mac address.The gateway address of main process equipment 1 is the virtual ip address of virtual backup group one, and the gateway address of main process equipment 2 is the virtual ip address of virtual backup group two; Gateway device 4 elections are the main gateway device of virtual backup group one, and gateway device 5 elections are the main gateway device of virtual backup group two; Main process equipment 1 is communicated by letter with external network server 3 through gateway device 4, and main process equipment 2 is communicated by letter with external network server 3 through gateway device 5, has realized the load balancing function of gateway device.
The VRRP agreement of utilizing such scheme has realized gateway backup functionality and the load balancing function between gateway device, but it need manually be set on the All hosts in the same local area network (LAN) point to different gateway address, the similar static network that carries out is divided, and will increase the burden of network management; Simultaneously, realizing that it connects external network server by different gateways because will rely on the gateway address of user's manual adjustment main frame, is cumbersome for the user, therefore can not well realize the load balancing function.
Also exist at present other to realize the improvement project of load balancing function, that is: on original VRRP agreement basis, use a virtual ip address and a virtual mac address, main equipment and alternate device possess reception and the forwarding capability that destination address is the data message of virtual mac address simultaneously; In order to realize load balancing, increase the load balancing weight of gateway device, backup gateway equipment is declared its feature and load balancing weight by sending message to main gateway device, declares its existence simultaneously; Main gateway device is preserved the information of interior All hosts facility information tabulation of local area network (LAN) and backup gateway equipment, main gateway device is carried out the distribution of the data message forwarding on the main process equipment according to the rules of setting such as weight, by the load balancing notification packet main process equipment information list that needs on the backup gateway equipment to transmit is announced to each backup gateway equipment; Backup gateway equipment is responsible for receiving and transmitting main gateway device and is distributed to the data message that the main process equipment in the local area network (LAN) of oneself sends.When main gateway device or backup gateway equipment changed, all backup gateway equipment need be waited for again that main gateway device is given and oneself distribute new main process equipment information list.
Such scheme can be realized the function of load balancing, and can reduce the customer network management, CNM burden, fully effectively utilizes network equipment resource and bandwidth; But for medium-and-large-sized local area network (LAN), main gateway device need be safeguarded information list on all main process equipments (containing corresponding allocation result) and by the load balancing notification packet it is communicated to backup gateway equipment, when changing, the information list of main process equipment also need externally announce by main gateway device, this will increase the burden of network bandwidth burden and main gateway device, a simultaneously active/standby part gateway device need filter the data message that will transmit by the main process equipment information on it, reduces its forwarding performance.
Summary of the invention
The objective of the invention is can increase the network management burden at existing gateway backup and load balancing; and the burden of the network bandwidth, gateway device; a kind of realization gateway dynamic load sharing method and system are provided; to simplify user's configuration management; minimizing to the taking of the network bandwidth, improves the forwarding performance of gateway device to transfer of data.
To achieve these goals, the invention provides a kind of realization gateway dynamic load sharing method, may further comprise the steps:
At least two gateway devices are configured to same virtual backup group according to the virtual route redundancy backup protocol, and the virtual route redundancy backup protocol disposes the virtual ip address and the virtual mac address of described virtual backup group;
On the described gateway device in same virtual backup group, dispose at least one newly-increased virtual mac address;
According to the election regulation of virtual route redundancy backup protocol regulation, from described gateway device, elect a main gateway device and at least one backup gateway equipment;
Described main gateway device is held the virtual ip address and the virtual mac address of described virtual backup group, and by the load balancing notification packet, carries out alternately with described backup gateway equipment, is the described newly-increased virtual mac address of described backup gateway devices allocation;
Described main gateway device is distributed virtual mac address information by the address resolution protocol response message to main process equipment, and described virtual mac address information comprises the virtual mac address and the newly-increased virtual mac address of virtual route redundancy backup protocol configuration.
To achieve these goals, the present invention also provides a kind of realization gateway dynamic load sharing system, comprising:
The virtual backup group, described virtual backup group comprises at least two gateway devices according to virtual route redundancy backup protocol configuration virtual IP address and virtual mac address, all disposes at least one newly-increased virtual mac address on each gateway device;
Comprise in described at least two gateway devices: a main gateway device, at least one backup gateway equipment; Described main gateway device is held the virtual ip address and the virtual mac address of described virtual backup group, is used to the described newly-increased virtual mac address of described backup gateway devices allocation, for main process equipment distributes virtual mac address information.
By above technical scheme as can be known, realization gateway dynamic load sharing method and system provided by the invention can be simplified user's configuration management, reduce transfer of data the taking of the network bandwidth, and improve the forwarding performance of gateway device.
Also in conjunction with the accompanying drawings the present invention is described in further detail below by specific embodiment.
Description of drawings
Figure 1A is existing local area network building structural representation;
Figure 1B is an Ethernet message form schematic diagram;
Fig. 2 is existing another local area network building structural representation;
Fig. 3 realizes the flow chart of gateway dynamic load sharing method embodiment one for the present invention;
Fig. 4 realizes the flow chart of gateway dynamic load sharing method embodiment two for the present invention;
Fig. 5 realizes the flow chart of gateway dynamic load sharing method embodiment three for the present invention;
Fig. 6 realizes the flow chart of gateway dynamic load sharing method embodiment four for the present invention;
Fig. 7 realizes the structural representation of gateway dynamic load sharing system embodiment one for the present invention;
Fig. 8 realizes the structural representation of gateway dynamic load sharing system embodiment two for the present invention;
Fig. 9 A realizes the structural representation of gateway dynamic load sharing system embodiment three for the present invention;
Fig. 9 B realizes another structural representation of gateway dynamic load sharing system embodiment three for the present invention;
Fig. 9 C realizes a structural representation again of gateway dynamic load sharing system embodiment three for the present invention;
Figure 10 realizes the structural representation of gateway dynamic load sharing system embodiment four for the present invention.
Embodiment
As shown in Figure 3, realize the flow chart of gateway dynamic load sharing method embodiment one for the present invention, virtual ip address and virtual mac address by VRRP protocol configuration gateway device virtual backup group, and increase at least one newly-increased virtual mac address again, the common gateway dynamic load sharing function that realizes, concrete steps are as follows:
Step 101, at least two gateway devices of general arrive same virtual backup group, the virtual ip address and the virtual mac address of this virtual backup group of VRRP protocol configuration according to the VRRP protocol configuration;
General local area network (LAN) can not be equipped with too much gateway device, generally speaking, there is the local area network (LAN) overlay area of 2~3 gateway devices just very wide, these gateway devices are arrived same virtual backup group according to the VRRP protocol configuration, and dispose the virtual ip address and the virtual mac address of this virtual backup group;
On step 102, the gateway device in same virtual backup group, dispose at least one newly-increased virtual mac address;
All dispose at least one identical newly-increased virtual mac address on all gateway devices in this virtual backup group, the newly-increased virtual mac address of this configuration adds that the number of the gateway device that the number of the virtual mac address of VRRP protocol configuration can have with this local area network (LAN) is identical, also can be more than the number of gateway device, perhaps lack than the number of gateway device, this layoutprocedure might not be corresponding one by one with gateway device;
Step 103, according to the election regulation of VRRP agreement regulation, from gateway device, elect a main gateway device and at least one backup gateway equipment;
Step 104, main gateway device are held the virtual ip address and the virtual mac address of virtual backup group, and by the load balancing notification packet, carry out alternately with backup gateway equipment, are the newly-increased virtual mac address of backup gateway devices allocation;
Above-mentioned steps 102 has only disposed identical one or more newly-increased virtual mac address for each gateway device, and really distributes the main gateway device for electing of its address that is used to transmit data message for gateway device; At first dispose the virtual mac address of VRRP protocol configuration on the main gateway device, main gateway device is undertaken alternately by load balancing notification packet and backup gateway equipment then, can recognize that those backup gateway equipment have the dynamic load sharing function, those do not possess this function; And for possessing newly-increased virtual mac address of backup gateway devices allocation of dynamic load sharing function; If the number of backup gateway equipment will have backup gateway equipment not have the newly-increased virtual mac address of distributing to it more than the newly-increased virtual mac address of step 102 configuration so, do not participate in the dynamic load sharing function; If the number of backup gateway equipment is less than the newly-increased virtual mac address of step 102 configuration, will there be newly-increased virtual mac address not to be assigned to backup gateway equipment so, do not influence all backup gateway equipment and in the virtual backup group, work; It would, of course, also be possible to has the incremental backup gateway device not have the function of dynamic load sharing, and these backup gateway equipment can not carry out not having newly-increased virtual mac address alternately with main gateway device yet so; As seen, the configuration and the distribution that should increase virtual mac address newly are very flexibly, but generally speaking, the newly-increased virtual mac address of proposed arrangement is not above 3, because the gateway device in local area network (LAN) can be not too many yet, needn't dispose too much newly-increased virtual mac address;
Step 105, main gateway device are distributed virtual mac address information by the arp reply message to main process equipment, and main process equipment will utilize the address in this virtual mac address information to send data message on it as destination address;
After main gateway device is the well newly-increased virtual mac address of backup gateway devices allocation, when main process equipment will be transmitted data message on it by this local area network (LAN), will distribute suitable gateway device for it, to realize the forwarding of data message on the main process equipment; This virtual mac address information comprises the virtual mac address and the newly-increased virtual mac address of virtual route redundancy backup protocol configuration, the destination address information that sends datagram for main process equipment.
Present embodiment is by being provided with a plurality of newly-increased virtual mac address on the gateway device in the same virtual backup group of VRRP protocol configuration, and enable the load balancing function of gateway device, make main gateway device and backup gateway equipment all have the transfer capability of sharing the data message on the main process equipment; Avoid needing in the VRRP agreement to dispose the function that a plurality of virtual backup groups realize load balancing, and can simplify user's configuration management, minimizing VRRP agreement takies the network bandwidth, improves the forwarding performance of gateway device.
As shown in Figure 4, for the present invention realizes the flow chart of gateway dynamic load sharing method embodiment two, the gateway device among this embodiment can be gateway device 4 shown in Fig. 2 and gateway device 5, and concrete steps are as follows:
Step 201, with gateway device 4 and gateway device 5 according to the VRRP protocol configuration to same virtual backup group, the virtual ip address and the virtual mac address of configuration VRRP agreement suppose that virtual mac address is VMAC;
All dispose at least one newly-increased virtual mac address on step 202, the gateway device 4 in same virtual backup group and the gateway device 5, and the load balancing weight of h.323-configured gateway equipment 4 and gateway device 5;
If newly-increased virtual mac address of configuration, this newly-increased virtual mac address is VMACa; Also can dispose a plurality ofly, for example on gateway device 4 and gateway device 5, all dispose two newly-increased virtual mac address, be respectively VMACa, VMACb; Should increase the load balancing function that virtual mac address can enable gateway device newly, same group of interior a plurality of newly-increased virtual mac address needs unanimity, for example VMACa and VMACb; It should be noted that the gateway device of using generally at 2-4, so newly-increased virtual mac address suggestion is no more than three, is provided with too much newly-increased virtual mac address and is not easy to management in a local area network (LAN);
The configuration of described load balancing weight can obtain the load balancing weighted value by transfer capability and the outlet bandwidth that calculates gateway device 4 and gateway device 5, but is not limited to adopt this kind method to obtain its load balancing weighted value;
Step 203, according to the election regulation of VRRP agreement regulation, from gateway device 4 and gateway device 5, elect a main gateway device and a backup gateway equipment;
In the present embodiment two gateway devices, if three or more gateway devices are exactly to elect a main gateway device and a plurality of backup gateway equipment so; Suppose that in the present embodiment main gateway device is a gateway device 4, backup gateway equipment is gateway device 5;
Step 204, main gateway device, promptly gateway device 4 sends the load balancing announcement and enables message;
Step 205, backup gateway equipment, promptly gateway device 5 receives after load balancing announcement enables message, and starting load is shared function, sends load balancing announcement request message;
Step 206, main gateway device, be that gateway device 4 is collected backup gateway equipment, be the facility information of gateway device 5, the corresponding allocation table of apparatus for establishing information table and a plurality of mac address informations is announced corresponding allocation table to gateway device 5 by sending load balancing announcement assignment message;
Be gateway device 4 corresponding VMAC in the present embodiment, gateway device 5 corresponding VMACa;
Step 207, backup gateway equipment, promptly gateway device 5 receives corresponding allocation table, and the newly-increased MAC Address of self correspondence is set, i.e. VMACa, and return the load balancing announcement and reply confirmation message to main gateway device, promptly gateway device 4;
Step 208, main process equipment can be as the main process equipment among Fig. 21, and the virtual ip address in the virtual backup group of VRRP agreement initial configuration is initiated the ARP request message;
Step 209, main gateway device, promptly gateway device 4 sends the arp reply message to main process equipment 1, carries out described virtual mac address information answer according to strategy;
The source address of this arp reply message is always main gateway device, it is the virtual mac address of gateway device 4, be VMAC, the load message in this arp reply message comprises informs that main process equipment receives and transmit the virtual mac address information of the gateway device of the data message on it; When informing that main process equipment receives and transmit the virtual mac address information of gateway device of the data message on it, the strategy of taking can be made as by gateway device 4 and inform the main process equipment that sends the ARP solicited message in order by turns according to the load balancing weight of all gateway devices, is perhaps distributed according to user's collocation strategy by main process equipment.It should be noted that the strategy of taking is not limited to above-mentioned these two kinds, if the data message that All hosts equipment will be able to be transmitted comparatively balanced be assigned on each gateway device just passable;
Step 210, main process equipment 1 are according to its virtual mac address information that gets access to, send to data message on the gateway device 4 that virtual mac address is VMAC or newly-increased virtual mac address is on the gateway device 5 of VMACa, and communicate by these gateway devices and external network server;
The virtual mac address message pick-up that step 211, gateway device 4 and gateway device 5 distribute according to gateway device 4 and transmit the data message that each main process equipment sends, and reply confirmation message and declare its state to other gateway devices by sending the load balancing announcement.
Here, after data message sends on the gateway device 4 that MAC Address is VMAC, gateway device 4 is judged data message on the main process equipment according to the above-mentioned strategy of taking, and whether this sends to this gateway device 4, if then gateway device 4 will be finished the data communication between main process equipment and the external network server; If not, then send clean culture ARP and upgrade message (clean culture ARP upgrades message and is the message that only main process equipment that sends datagram is sent) to main process equipment, inform that main process equipment should receive and transmit the newly-increased virtual mac address of the gateway device of the data message on it, be the newly-increased virtual mac address VMACa of gateway device 5 here; Main process equipment will communicate with corresponding gateway device 5 according to the virtual mac address information after the change.It is in order to tackle the main process equipment destination address that its data message sends that do not upgrade in time that this clean culture ARP upgrades message, and the wrong situation of issuing main gateway device.
Present embodiment is by being provided with a plurality of mac address informations on the gateway device in the same virtual backup group of VRRP protocol configuration, and this mac address information of dynamic assignment is realized the load balancing function of gateway to all gateway devices; Avoid needing in the VRRP agreement to dispose the function that a plurality of virtual backup groups realize load balancing, and can simplify user's configuration management, minimizing VRRP agreement takies the network bandwidth, improves the forwarding performance of gateway device.
As shown in Figure 5, realize the schematic flow sheet of gateway dynamic load sharing method embodiment three for the present invention, after main explanation main gateway device was not re-used as the main gateway device of this virtual backup group among this embodiment, how described virtual backup group realized the method for gateway dynamic load sharing.Gateway device among this embodiment in the local area network (LAN) is three, is respectively as shown in Figure 2 gateway device 4, gateway device 5 and gateway device 6, and concrete steps are as follows:
Step 301, with three gateway devices 4,5,6 according to the VRRP protocol configuration to same virtual backup group, the virtual ip address and the virtual mac address of this virtual backup group of VRRP protocol configuration;
At least one newly-increased virtual mac address of configuration on step 302, the gateway device in same virtual backup group, and the load balancing weight of h.323-configured gateway equipment;
Here can on each gateway device, dispose two newly-increased virtual mac address, i.e. VMACa and VMACb;
Step 303, according to the election regulation of VRRP agreement regulation, election gateway device 4 is a main gateway device, gateway device 5 and gateway device 6 are backup gateway equipment;
Step 304, main gateway device, promptly gateway device 4 is undertaken alternately by load balancing notification packet and backup gateway equipment, is the newly-increased virtual mac address of backup gateway devices allocation;
Gateway device 4 sends the load balancing announcement and enables the gateway device of message to other; Gateway device 5 and gateway device 6 receive after load balancing announcement enables message, and starting load is shared function, sends load balancing announcement request message to main gateway device; Gateway device 4 is collected backup gateway equipment, it is the facility information of gateway device 5 and gateway device 6, the corresponding allocation table of apparatus for establishing information table and a plurality of mac address informations, should the correspondence allocation table be gateway device 4 corresponding VMAC in the present embodiment, gateway device 5 corresponding VMACa, gateway device 6 corresponding VMACb; Gateway device 4 is announced corresponding allocation table to gateway device 5 and gateway device 6 by sending load balancing announcement assignment message; Gateway device 5 and gateway device 6 receive corresponding allocation table, the newly-increased MAC Address of self correspondence is set, be that gateway device 5 is set to VMACa, gateway device 6 is set to VMACb, and return the load balancing announcement and reply confirmation message to gateway device 4, inform that it can carry out the forwarding of the data message of main process equipment;
Step 305, be not re-used as the main gateway device of this virtual backup group when gateway device 4 after, all backup gateway equipment in this virtual backup group will be according to the election regulation main gateway device that election makes new advances from backup gateway equipment again of VRRP agreement regulation and new backup gateway equipment, suppose to elect gateway device 5 as new main gateway device, gateway device 6 is as new backup gateway equipment, execution in step 306 and step 309.
Step 306, the new main gateway device of judgement, promptly whether holding load is shared function to gateway device 5, if support that then execution in step 307; If do not support that then execution in step 308;
The virtual ip address and the virtual mac address of step 307, new main gateway device configuration virtual backup group, and have the newly-increased virtual mac address that distributes before the former main gateway device, distribute virtual mac address information by the address resolution protocol response message to main process equipment;
New main gateway device, it is the load balancing function that gateway device 5 will be born former main gateway device, send the load balancing notification packet, simultaneously have VMAC and VMACa two virtual mac address on the gateway device 5 this moment, the destination address that continues the transmission of forwarding main process equipment is the data message of VMAC and VMACa, for main process equipment aware gateway equipment 4 unusual not, so far realized the gateway backup functionality under the gateway dynamic load sharing situation, finish;
Step 308, new backup gateway equipment, be that gateway device 6 will not receive new main gateway device, be the load balancing announcement assignment message that gateway device 5 sends, empty the corresponding allocation table of newly-increased virtual mac address on it, the virtual backup group no longer has the gateway dynamic load sharing function;
Gateway device 5 no longer sends load balancing announcement assignment message, new alternate device, it is the load balancing announcement assignment message that gateway device 6 does not receive gateway device 5, also will empty the corresponding allocation table of original newly-increased virtual mac address, be that gateway device 5 empties the VMACa on it, gateway device 6 empties the VMACb on it, and this new virtual backup group is no longer carried out the load balancing function, finishes;
This moment, main process equipment still sent the ARP request message to new main gateway device, the main gateway device that please look for novelty, be that gateway device 5 distributes virtual mac address information for it, the main gateway device that this is stylish, gateway device 5 only can distribute the virtual mac address of VRRP agreement for this virtual backup configuration set, be VMAC, as the gateway address that main process equipment sends datagram, promptly this new virtual backup group no longer possesses the dynamic load sharing function;
Whether step 309, judgement do not become new backup gateway equipment as the gateway device 4 of main gateway device, if, execution in step 310; If not, finish;
Step 310, judge new backup gateway equipment, whether holding load is shared function promptly not to be re-used as the gateway device 4 of main gateway device of described virtual backup group, if do not support execution in step 311; If support execution in step 312;
Step 311, gateway device 4 is not distributed newly-increased virtual mac address, this moment is still according to the described realization gateway backup of step 306;
Step 312, the new main gateway device of monitoring, i.e. the load balancing notification packet of gateway device 5 transmissions, and the main gateway device 5 that please look for novelty is distributed newly-increased virtual mac address;
Step 313, new main gateway device, promptly the gateway device 5 newly-increased virtual mac address VMACa that it can be had distributes to gateway device 4, finishes; Or resend the load balancing notification packet, and redistribute newly-increased virtual mac address to new backup gateway equipment 4 and new backup gateway equipment 6, finish.
Should be noted that the time, when new main gateway device has a virtual mac address, during plural newly-increased virtual mac address, with the newly-increased virtual mac address that empties on it, and, utilize the load balancing message to empty newly-increased virtual mac address on the new backup gateway equipment with the gratuitous ARP response message of overseas broadcast virtual ip address; New backup gateway equipment will resend the newly-increased virtual mac address of main gateway device distribution that load balancing announcement request message please be looked for novelty, and realize the gateway dynamic load sharing function again.
Present embodiment can be implemented in main gateway device and occurs unavailable unusually, or it is not re-used as main gateway device, then when becoming new backup gateway equipment, re-elect out the function that main gateway device works on by backup gateway equipment, can simplify user's configuration management, improve the forwarding performance of gateway device.
As shown in Figure 6, for the present invention realizes the flow chart of gateway dynamic load sharing method embodiment four, main explanation backup gateway equipment withdraws from the method for gateway dynamic load sharing after this virtual backup group among this embodiment.Gateway device among this embodiment in the local area network (LAN) is three also, is respectively gateway device 4, gateway device 5 and gateway device 6, and concrete steps are as follows:
Step 401, with three gateway devices 4,5,6 according to the VRRP protocol configuration to same virtual backup group, the virtual ip address and the virtual mac address of this virtual backup group of VRRP protocol configuration;
Dispose at least one newly-increased virtual mac address on step 402, the gateway device in same virtual backup group, and dispose the load balancing weight of described gateway device;
Here can on each gateway device, dispose two newly-increased virtual mac address, i.e. VMACa and VMACb;
Step 403, according to the election regulation of VRRP agreement regulation, election gateway device 4 is a main gateway device, gateway device 5 and gateway device 6 are backup gateway equipment;
Step 404, main gateway device, be that gateway device 4 passes through load balancing notification packet and backup gateway equipment, promptly gateway device 5 and gateway device 6 carry out alternately, are the newly-increased virtual mac address of backup gateway devices allocation, suppose that gateway device 5 is set to VMACa, gateway device 6 is set to VMACb;
Step 405, when backup gateway equipment with gateway dynamic load sharing function, after being assumed to be gateway device 5 and no longer supporting described gateway dynamic load sharing function, gateway device 4 will be distributed to this backup gateway equipment originally, the newly-increased virtual mac address that is gateway device 5 is regained, be VMACa, being responsible for destination address by gateway device 4 is the reception and the forwarding of the data message of VMACa, for main process equipment aware gateway equipment 5 unusual not, so far realized the dynamic load sharing function of the gateway under the gateway dynamic load sharing situation, finished.
If the original just gateway support dynamic load sharing function not of this gateway device 5, that gateway device 4 is handled this gateway device 5 with regard to not needing, the main gateway device of this virtual backup group when promptly beginning, promptly gateway device 4 does not just distribute newly-increased virtual mac address to give this gateway device 5;
Should be noted that the time, work as main gateway device, here has a virtual mac address on the gateway device 4, during plural newly-increased virtual mac address, with the virtual mac address that empties on it, and, empty the newly-increased virtual mac address on the backup gateway equipment with overseas broadcast gratuitous ARP response message; Backup gateway equipment will resend load balancing announcement request message request main gateway device and distribute newly-increased virtual mac address, realize the gateway dynamic load sharing function again.
Present embodiment can be implemented in backup gateway equipment and occurs unusual when unavailable, carry out the forwarding of the data message of the newly-increased virtual mac address that this backup gateway equipment has by main gateway device, also can redistribute newly-increased virtual mac address information, realize the dynamic load sharing function under the gateway backup, can simplify user's configuration management, improve the forwarding performance of gateway device.
As shown in Figure 7, for the present invention realizes the structural representation of gateway dynamic load sharing system embodiment one, this realization gateway dynamic load sharing system comprises:
Virtual backup group 7 disposes the virtual ip address and the virtual mac address of this virtual backup group 7 according to the virtual route redundancy backup protocol; This virtual backup group 7 comprises at least two gateway devices, all disposes at least one newly-increased virtual mac address on each gateway device;
Wherein comprise at least two gateway devices: a main gateway device 71, at least one backup gateway equipment 72; Main gateway device 71 is held the virtual ip address and the virtual mac address of virtual backup group, is used to backup gateway equipment 72 to distribute newly-increased virtual mac address, for main process equipment distributes virtual mac address information.The virtual mac address of main gateway device 71 usefulness VRRP protocol configuration carries out the reception and the forwarding of data message, and the newly-increased virtual mac address of backup gateway equipment 72 usefulness carries out the reception and the forwarding of data message.
The realization gateway dynamic load sharing system of present embodiment enables its load balancing function by on each gateway device in the same virtual backup group of VRRP protocol configuration a plurality of mac address informations being set; Avoid needing in the VRRP agreement to dispose the function that a plurality of virtual backup groups realize load balancing, and can simplify user's configuration management, minimizing VRRP agreement takies the network bandwidth, improves the forwarding performance of gateway device.
As shown in Figure 8, realize the structural representation of gateway dynamic load sharing system embodiment two for the present invention, comprise an election module 73 in the virtual backup group 7 in this realization gateway dynamic load sharing system, be used for electing a main gateway device 71 and at least one backup gateway equipment 72 at least two gateway devices, be connected with each gateway device, election module 73 is formed by the election unit combination in each gateway device alternatively.
Main gateway device 71 in this virtual backup group 7 also comprises: first processing module 711, be used for by the load balancing notification packet, carry out alternately with each backup gateway equipment 72, for backup gateway equipment 72 distributes newly-increased virtual mac address, and declare its state to described backup gateway equipment by sending described load balancing notification packet; Second processing module 712 is used for distributing virtual mac address information by the main process equipment of arp reply message in main process equipment group 8, and virtual mac address information comprises the virtual mac address and the newly-increased virtual mac address of VRRP configuration; The 3rd processing module 713 is used to receive and transmit the data message that the main process equipment of the virtual mac address that has distributed main gateway device 71 sends.
Each backup gateway equipment 72 in this virtual backup group 7 also comprises: manages module 721 everywhere, be used for being undertaken alternately by load balancing notification packet and main gateway device 71, first processing module 711 that receives in the main gateway device 71 is the newly-increased virtual mac address of its distribution, and by sending the load balancing message to main gateway device 71 its states of declaration; The 5th processing module 722 is used for managing newly-increased virtual mac address that module 721 receives everywhere according to the and receives and transmit the data message that has distributed main process equipment transmission that should newly-increased virtual mac address in the main process equipment group 8.
Wherein, because in fact all gateway devices all might become main gateway device or backup gateway equipment, manage module and the 5th processing module everywhere so all have first processing module, second processing module, the 3rd processing module, on all gateway devices, just be elected as main gateway device in these gateway devices, first processing module on it, second processing module and the 3rd processing module start; Be elected as backup gateway equipment, the on it manages module everywhere and the 5th processing module starts.
Main gateway device in the realization gateway dynamic load sharing system of present embodiment is responsible for distributing the mac address information on each gateway device, enables its load balancing function, realizes that a plurality of gateway devices share the function of the data message that main process equipment sends jointly.Can simplify user's configuration management, minimizing VRRP agreement takies the network bandwidth, improves the forwarding performance of gateway device.
Shown in Fig. 9 A, realize the structural representation of gateway dynamic load sharing system embodiment three for the present invention, comprise: virtual backup group 7 wherein comprises three gateway devices, the virtual ip address and the virtual mac address of this virtual backup group 7 of VRRP protocol configuration in the virtual backup group 7; Dispose at least one newly-increased virtual mac address, the load balancing weight of h.323-configured gateway equipment; Election module 73, be used for three gateway devices elect a main gateway device 71, two backup gateway equipment 72 and 72 ';
This virtual backup group 7 also comprises: first judge module 74, be used for after main gateway device 71 is not re-used as the main gateway device of virtual backup group 7, the new main gateway device that election module 73 re-elects is out judged, shown in Fig. 9 A, new main gateway device 71 ' be former backup gateway equipment 72, gateway support dynamic load sharing function whether, if do not support, then new backup gateway equipment 72 ' in the manage everywhere module do not receive new main gateway device 71 ' on the load balancing notification packet of first processing module 711 ' transmission, will empty the newly-increased virtual mac address corresponding allocation table of former main gateway device 71 for its distribution; New main gateway device 71 ' on second processing module 712 ' distribute virtual mac address to main process equipment group 8 by the arp reply message; New main gateway device 71 ' on the 3rd processing module 713 ' reception and transmit the data message that the main process equipment distributed virtual mac address sends;
Shown in Fig. 9 B, if new main gateway device 71 ' gateway support dynamic load sharing function, then new main gateway device 71 ' the hold virtual ip address and the virtual mac address of virtual backup group, and the newly-increased virtual mac address that distributes of the main gateway device with original main gateway device of virtual backup group, main gateway device 71 ' in first processing module 711 ' by the load balancing notification packet, with new backup gateway equipment 72 ' carry out mutual; Second processing module 712 ' distribute virtual mac address information to main process equipment by the arp reply message.
Realize in the gateway dynamic load sharing system at this, shown in Fig. 9 B, it should be noted that: also comprise in the virtual backup group 7: broadcast module 75, be used for when new main gateway device 71 ' the have virtual mac address of a VRRP configuration, and during plural newly-increased virtual mac address, to send the gratuitous ARP response message of virtual ip address, and utilize the load balancing message to empty on it and new backup gateway equipment 72 ' upward original newly-increased virtual mac address that distributes; Distribution module 76 is used for according to new backup gateway equipment 72 ' resend load balancing announcement request message, and the main gateway device 71 that please look for novelty ' distribution increases virtual mac address newly.
Shown in Fig. 9 C, realize a structural representation again of gateway dynamic load sharing system embodiment three for the present invention, this virtual backup group 7 also comprises: second judge module 77 is used to judge whether former main gateway device 71 becomes one of new backup gateway equipment in the virtual backup group 7;
If former main gateway device 71 becomes one of new backup gateway equipment, be new backup gateway equipment 72 "; and gateway support dynamic load sharing function; wherein the manage module 721 everywhere " will monitor new main gateway device 71 ' in the load balancing notification packet of first processing module 711 ' transmission, and the main gateway device that please look for novelty is distributed newly-increased virtual mac address; New main gateway device 71 ' in first processing module 711 ' be new backup gateway equipment 72 " distribute newly-increased virtual mac address; This new backup gateway equipment 72 " in the 5th processing module 722 " obtains the and manages module 721 " the newly-increased virtual mac address that receives, and the reception of responsible data message and forwarding everywhere.
Above-mentioned new backup gateway equipment 72 " in manage module 721 everywhere " also may be monitored the load balancing notification packet less than new main gateway device, new so in other words main gateway device is gateway support dynamic load sharing function not, embodiment shown in Fig. 9 A, only new main gateway device is responsible for the reception and the forwarding of data message.
In the present embodiment, because all gateway devices all might become main gateway device or backup gateway equipment, first judge module and second judge module are arranged all in fact all gateway devices.After re-electing, if original backup gateway equipment becomes present main gateway device, then first judge module wherein starts; If original main gateway device becomes present backup gateway equipment, then second judge module starts.In addition, as broadcast module among Fig. 9 B and distribution module also is all to have in all gateway devices, when main gateway device has plural newly-increased virtual mac address, broadcast module on it will be responsible for sending the gratuitous ARP response message, distribution module on the backup gateway equipment is responsible for sending load balancing announcement request message, and newly-increased virtual mac address is redistributed in request.
As shown in figure 10, realize the structural representation of gateway dynamic load sharing system embodiment four for the present invention, comprise: virtual backup group 7 wherein comprises three gateway devices, the virtual ip address and the virtual mac address of this virtual backup group 7 of VRRP protocol configuration in the virtual backup group 7; Dispose at least one newly-increased virtual mac address, the load balancing weight of h.323-configured gateway equipment; Election module 73, be used for three gateway devices elect a main gateway device 71, two backup gateway equipment 72 and 72 ';
This virtual backup group 7 also comprises: the 3rd judge module 78 is used to judge whether gateway support dynamic load sharing function of backup gateway equipment;
When the backup gateway equipment 72 that has the gateway dynamic load sharing function originally not after the gateway support dynamic load sharing function, first processing module 711 in the main gateway device 71 will be distributed to the newly-increased virtual mac address of this backup gateway equipment 72 and regain, and be responsible for reception and the forwarding of destination address for the data message of newly-increased virtual mac address by the 3rd processing module 713 of main gateway device 71.
Realize in the gateway dynamic load sharing system at this, as shown in figure 10, also comprise in the virtual backup group 7: broadcast module 75, be used for having the virtual mac address of a VRRP configuration when main gateway device 71, and during plural newly-increased virtual mac address, to send the gratuitous ARP response message of virtual ip address, and utilize the load balancing message to empty on it and other backup gateway equipment 72 ' upward original newly-increased virtual mac address that distributes; Distribution module 76 is used for according to backup gateway equipment 72 ' resend load balancing announcement request message, and request main gateway device 71 is distributed newly-increased virtual mac address.
In the present embodiment, because all gateway devices all might become main gateway device or backup gateway equipment, the 3rd judge module is all arranged in fact all gateway devices, after re-electing, the 3rd judge module on all backup gateway equipment is used to all judge whether this gateway equipment has the function of dynamic load sharing.In addition, broadcast module here and distribution module also are all to have in all gateway devices, when main gateway device has plural newly-increased virtual mac address, broadcast module on it will be responsible for sending the gratuitous ARP response message, distribution module on the backup gateway equipment is responsible for sending load balancing announcement request message, and newly-increased virtual mac address is redistributed in request.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (17)

1. method that realizes gateway dynamic load sharing is characterized in that may further comprise the steps:
At least two gateway devices are configured to same virtual backup group according to the virtual route redundancy backup protocol, and the virtual route redundancy backup protocol disposes the virtual ip address and the virtual mac address of described virtual backup group;
On the described gateway device in same virtual backup group, dispose at least one newly-increased virtual mac address;
According to the election regulation of virtual route redundancy backup protocol regulation, from described gateway device, elect a main gateway device and at least one backup gateway equipment;
Described main gateway device is held the virtual ip address and the virtual mac address of described virtual backup group, and by the load balancing notification packet, carries out alternately with described backup gateway equipment, is the described newly-increased virtual mac address of described backup gateway devices allocation;
Described main gateway device is distributed virtual mac address information by the address resolution protocol response message to main process equipment, and described virtual mac address information comprises the virtual mac address and the newly-increased virtual mac address of virtual route redundancy backup protocol configuration.
2. the method for realization gateway dynamic load sharing according to claim 1, it is characterized in that described main gateway device is by the load balancing message, carry out alternately with described backup gateway equipment room, for the described newly-increased virtual mac address of described backup gateway devices allocation specifically comprises:
Described main gateway device sends the load balancing announcement and enables message;
Described backup gateway equipment receives after the announcement of described load balancing enables message, and starting load is shared function, sends load balancing announcement request message;
Described main gateway device is collected the facility information of backup gateway equipment, and the corresponding allocation table of apparatus for establishing information table and described mac address information is announced described corresponding allocation table to backup gateway equipment by sending load balancing announcement assignment message;
Backup gateway equipment receives described corresponding allocation table, and the newly-increased MAC Address of self correspondence is set, and returns the load balancing announcement and reply confirmation message to main gateway device.
3. the method for realization gateway dynamic load sharing according to claim 2, it is characterized in that also comprising: described main gateway device is declared its state by sending described load balancing announcement assignment message to described backup gateway equipment, and described backup gateway equipment is replied confirmation message and declared its state to described main gateway device by sending described load balancing announcement.
4. according to the method for claim 2 or 3 described realization gateway dynamic load sharings, it is characterized in that also comprising: be not re-used as the main gateway device of described virtual backup group when described main gateway device after, all backup gateway equipment in this virtual backup group will be according to the election regulation of virtual route redundancy backup protocol regulation, again the main gateway device that makes new advances of election and new backup gateway equipment from all backup gateway equipment, described new main gateway device is held the virtual mac address of described virtual route redundancy backup protocol configuration.
5. the method for realization gateway dynamic load sharing according to claim 4 is characterized in that also comprising afterwards in described again main gateway device that election makes new advances from all backup gateway equipment and new backup gateway equipment:
Judge whether gateway support dynamic load sharing function of described new main gateway device, if do not support, then described new backup gateway equipment will not receive the load balancing notification packet that new main gateway device sends, empty the corresponding allocation table of described newly-increased virtual mac address on it, described virtual backup group no longer has the gateway dynamic load sharing function; If support, then described new main gateway device is held the virtual mac address of described virtual route redundancy backup protocol configuration, and hold the described newly-increased virtual mac address that distributes before the former main gateway device, distribute virtual mac address information by the address resolution protocol response message to described main process equipment.
6. the method for realization gateway dynamic load sharing according to claim 4 is characterized in that also comprising after the main gateway device that makes new advances of election and the new backup gateway equipment from described backup gateway equipment again:
Described former main gateway device becomes one of described new backup gateway equipment in the described virtual backup group, if this new backup gateway equipment gateway support dynamic load sharing function, to monitor the load balancing announcement assignment message that described new main gateway device sends, and ask described new main gateway device to distribute described newly-increased virtual mac address.
7. according to the method for claim 2 or 3 described realization gateway dynamic load sharings, it is characterized in that also comprising: after the described backup gateway equipment with gateway dynamic load sharing function is not supported described gateway dynamic load sharing function, then described main gateway device will be distributed to the described newly-increased virtual mac address of this backup gateway equipment and regain, and be responsible for reception and the forwarding that destination address is the data message of described newly-increased virtual mac address by described main gateway device.
8. according to the method for claim 5 or 7 described realization gateway dynamic load sharings, it is characterized in that:
The virtual mac address that has a virtual route redundancy backup protocol configuration when described new main gateway device, and during plural newly-increased virtual mac address, to send the free address resolution protocol response message of virtual ip address, utilize the load balancing message to empty on it and the original newly-increased virtual mac address that distributes on the described new backup gateway equipment;
Described new backup gateway equipment will resend load balancing announcement request message, ask described new main gateway device to distribute newly-increased virtual mac address.
9. the method for realization gateway dynamic load sharing according to claim 1 is characterized in that described main gateway device specifically comprises to main process equipment distribution virtual mac address information by the address resolution protocol response message:
The load balancing weight of pre-configured each described gateway device;
Described main process equipment is initiated the arp request message to the virtual ip address of the virtual backup group of virtual route redundancy backup protocol configuration;
Described main gateway device sends the address resolution protocol response message to described main process equipment, carries out described virtual mac address information answer according to the load balancing weight wheel preface of described backup gateway equipment;
Described main process equipment sends to described data message on the corresponding main gateway device or backup gateway equipment according to its described virtual mac address information that gets access to.
10. realize the gateway dynamic load sharing system for one kind, it is characterized in that comprising:
The virtual backup group, described virtual backup group comprises at least two gateway devices according to virtual route redundancy backup protocol configuration virtual IP address and virtual mac address, all disposes at least one newly-increased virtual mac address on each gateway device;
Comprise in described at least two gateway devices: a main gateway device, at least one backup gateway equipment; Described main gateway device is held the virtual ip address and the virtual mac address of described virtual backup group, is used to the described newly-increased virtual mac address of described backup gateway devices allocation, for main process equipment distributes virtual mac address information.
11. realization gateway dynamic load sharing according to claim 10 system, it is characterized in that described virtual backup group also comprises: the election module, be used for electing a main gateway device and at least one backup gateway equipment, be connected with each gateway device at described at least two gateway devices.
12., it is characterized in that described main gateway device also comprises according to claim 10 or 11 described realization gateway dynamic load sharing systems:
First processing module, be used for by the load balancing notification packet, carry out alternately with described backup gateway equipment, be the described newly-increased virtual mac address of described backup gateway devices allocation, and declare its state to described backup gateway equipment by sending described load balancing notification packet;
Second processing module is used for distributing virtual mac address information by the address resolution protocol response message to main process equipment, and described virtual mac address information comprises the virtual mac address and the newly-increased virtual mac address of virtual route redundancy backup protocol configuration;
The 3rd processing module is used to receive and transmit the data message that described main process equipment sends.
13. realization gateway dynamic load sharing according to claim 12 system is characterized in that described backup gateway equipment also comprises:
Manages module everywhere, be used for being undertaken alternately by described load balancing notification packet and described main gateway device, receive the described newly-increased virtual mac address of described main gateway device, and declare its state to described main gateway device by sending described load balancing notification packet for its distribution;
The 5th processing module is used for receiving and transmit the data message that main process equipment sends according to the described newly-increased virtual mac address of described main gateway device for its distribution.
14. realization gateway dynamic load sharing according to claim 13 system is characterized in that described virtual backup group also comprises:
First judge module is used for after described main gateway device is not re-used as the main gateway device of described virtual backup group, judges whether gateway support dynamic load sharing function of the new main gateway device re-elect out;
If do not support, in the then new backup gateway equipment the is managed module everywhere and is not received the load balancing notification packet that described first processing module on the described new main gateway device sends, and will empty the described newly-increased virtual mac address corresponding allocation table of former main gateway device for its distribution; Described second processing module on the described new main gateway device is distributed virtual mac address by the address resolution protocol response message to main process equipment; Described the 3rd processing module on the described new main gateway device receives and transmits the data message that described main process equipment sends;
If support, then described new main gateway device is held the virtual mac address of described virtual route redundancy backup protocol configuration, and hold the described newly-increased virtual mac address that distributes before the former main gateway device, distribute virtual mac address information by the address resolution protocol response message to described main process equipment.
15. realization gateway dynamic load sharing according to claim 14 system is characterized in that described virtual backup group also comprises:
Second judge module is used to judge whether the described main gateway device of the main gateway device that is not re-used as described virtual backup group becomes one of described new backup gateway equipment in the described virtual backup group;
If described former main gateway device becomes one of described new backup gateway equipment, and gateway support dynamic load sharing function, to monitor the described load balancing notification packet that described new main gateway device sends, and ask described new main gateway device to distribute described newly-increased virtual mac address.
16. realization gateway dynamic load sharing according to claim 13 system is characterized in that described virtual backup group also comprises:
The 3rd judge module is used to judge whether gateway support dynamic load sharing function of described backup gateway equipment;
After the described backup gateway equipment with gateway dynamic load sharing function is not supported described gateway dynamic load sharing function, described first processing module in the described main gateway device will be distributed to the described newly-increased virtual mac address of this backup gateway equipment and regain, and be responsible for reception and the forwarding that destination address is the data message of described newly-increased virtual mac address by the 3rd processing module of described main gateway device.
17., it is characterized in that described virtual backup group also comprises according to claim 14 or 16 described realization gateway dynamic load sharing systems:
Broadcast module, be used for having the virtual mac address of a virtual route redundancy backup protocol configuration when described new main gateway device, and during plural newly-increased virtual mac address, to send the free address resolution protocol response message of virtual ip address, utilize the load balancing message to empty on it and the original newly-increased virtual mac address that distributes on the described new backup gateway equipment;
Distribution module is used for resending load balancing announcement request message according to described new backup gateway equipment, asks described new main gateway device to distribute newly-increased virtual mac address.
CN2008100565001A 2008-01-18 2008-01-18 Method and system to realize gateway dynamic load sharing Active CN101217448B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100565001A CN101217448B (en) 2008-01-18 2008-01-18 Method and system to realize gateway dynamic load sharing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100565001A CN101217448B (en) 2008-01-18 2008-01-18 Method and system to realize gateway dynamic load sharing

Publications (2)

Publication Number Publication Date
CN101217448A true CN101217448A (en) 2008-07-09
CN101217448B CN101217448B (en) 2013-01-30

Family

ID=39623811

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100565001A Active CN101217448B (en) 2008-01-18 2008-01-18 Method and system to realize gateway dynamic load sharing

Country Status (1)

Country Link
CN (1) CN101217448B (en)

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101895874A (en) * 2010-07-19 2010-11-24 中兴通讯股份有限公司 Method and system for communicating by using mobile terminal as slave gateway
CN102149116A (en) * 2011-04-02 2011-08-10 迈普通信技术股份有限公司 Backup method and device for coordinator of wireless private area network
WO2011097837A1 (en) * 2010-02-09 2011-08-18 中兴通讯股份有限公司 Method, device and system for implementing service access to access gateways
CN102209064A (en) * 2010-03-29 2011-10-05 杭州华三通信技术有限公司 Method of using VRRP to provide backup for access equipment and VRRP gateway equipment
CN102215158A (en) * 2010-04-08 2011-10-12 杭州华三通信技术有限公司 Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment
CN102932251A (en) * 2012-10-31 2013-02-13 杭州华三通信技术有限公司 Method and device for achieving local three-layer finality
CN103139023A (en) * 2011-11-25 2013-06-05 华为技术有限公司 User access control method, network equipment and system
CN103200094A (en) * 2013-03-14 2013-07-10 成都卫士通信息产业股份有限公司 Method for achieving gateway dynamic load distribution
CN104702476A (en) * 2013-12-05 2015-06-10 华为技术有限公司 Distributed gateway, message processing method and message processing device based on distributed gateway
CN104954182A (en) * 2012-07-27 2015-09-30 北京奇虎科技有限公司 Method and device for configuring virtual server cluster
CN105704036A (en) * 2014-11-27 2016-06-22 华为技术有限公司 Message forwarding method, apparatus, and system
CN105743781A (en) * 2016-01-11 2016-07-06 杭州华三通信技术有限公司 VRRP load balancing method and VRRP load balancing device
CN105847143A (en) * 2016-06-06 2016-08-10 北京博维亚讯技术有限公司 VRRP (virtual router redundancy protocol)-based load balancing method and system
CN107508931A (en) * 2017-09-29 2017-12-22 广东欧珀移动通信有限公司 Wireless network communication method, device, storage medium and computer equipment
CN109995883A (en) * 2017-12-29 2019-07-09 资易国际股份有限公司 The self-repairing method of the corresponding failure in network equipment reality virtual address
CN112311642A (en) * 2020-12-23 2021-02-02 奥特酷智能科技(南京)有限公司 Automobile Ethernet redundancy scheduling method based on ring networking

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100407671C (en) * 2003-03-11 2008-07-30 华为技术有限公司 Network communication method for carrying out load division
CN100334866C (en) * 2003-03-21 2007-08-29 华为技术有限公司 Method for realizing dynamic gateway load sharing and backup
US7814232B2 (en) * 2003-03-28 2010-10-12 Cisco Technology, Inc. Network address translation with gateway load distribution
CN100484034C (en) * 2006-08-15 2009-04-29 华为技术有限公司 Method and system for access user by virtual router redundance protocol

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011097837A1 (en) * 2010-02-09 2011-08-18 中兴通讯股份有限公司 Method, device and system for implementing service access to access gateways
CN102148846B (en) * 2010-02-09 2015-05-20 中兴通讯股份有限公司 Method, device and system for realizing service access of access gateways
CN102209064A (en) * 2010-03-29 2011-10-05 杭州华三通信技术有限公司 Method of using VRRP to provide backup for access equipment and VRRP gateway equipment
CN102209064B (en) * 2010-03-29 2014-10-22 杭州华三通信技术有限公司 Method of using VRRP to provide backup for access equipment and VRRP gateway equipment
CN102215158A (en) * 2010-04-08 2011-10-12 杭州华三通信技术有限公司 Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment
CN101895874B (en) * 2010-07-19 2014-10-29 中兴通讯股份有限公司 Method and system for communicating by using mobile terminal as slave gateway
CN101895874A (en) * 2010-07-19 2010-11-24 中兴通讯股份有限公司 Method and system for communicating by using mobile terminal as slave gateway
CN102149116A (en) * 2011-04-02 2011-08-10 迈普通信技术股份有限公司 Backup method and device for coordinator of wireless private area network
CN103139023A (en) * 2011-11-25 2013-06-05 华为技术有限公司 User access control method, network equipment and system
CN104954182A (en) * 2012-07-27 2015-09-30 北京奇虎科技有限公司 Method and device for configuring virtual server cluster
CN104954182B (en) * 2012-07-27 2018-05-11 北京奇虎科技有限公司 A kind of method and apparatus for configuring Virtual Server Cluster
CN102932251A (en) * 2012-10-31 2013-02-13 杭州华三通信技术有限公司 Method and device for achieving local three-layer finality
CN102932251B (en) * 2012-10-31 2016-01-27 杭州华三通信技术有限公司 Realize the method and apparatus of local three layers of termination
CN103200094A (en) * 2013-03-14 2013-07-10 成都卫士通信息产业股份有限公司 Method for achieving gateway dynamic load distribution
CN104702476B (en) * 2013-12-05 2018-07-31 华为技术有限公司 Message processing method based on distributed network gate and network virtualization marginal point
CN104702476A (en) * 2013-12-05 2015-06-10 华为技术有限公司 Distributed gateway, message processing method and message processing device based on distributed gateway
CN105704036A (en) * 2014-11-27 2016-06-22 华为技术有限公司 Message forwarding method, apparatus, and system
CN105704036B (en) * 2014-11-27 2019-05-28 华为技术有限公司 Message forwarding method, device and system
CN105743781A (en) * 2016-01-11 2016-07-06 杭州华三通信技术有限公司 VRRP load balancing method and VRRP load balancing device
CN105743781B (en) * 2016-01-11 2019-06-14 新华三技术有限公司 A kind of VRRP load-balancing method and device
CN105847143A (en) * 2016-06-06 2016-08-10 北京博维亚讯技术有限公司 VRRP (virtual router redundancy protocol)-based load balancing method and system
CN107508931A (en) * 2017-09-29 2017-12-22 广东欧珀移动通信有限公司 Wireless network communication method, device, storage medium and computer equipment
CN109995883A (en) * 2017-12-29 2019-07-09 资易国际股份有限公司 The self-repairing method of the corresponding failure in network equipment reality virtual address
CN112311642A (en) * 2020-12-23 2021-02-02 奥特酷智能科技(南京)有限公司 Automobile Ethernet redundancy scheduling method based on ring networking
CN112311642B (en) * 2020-12-23 2021-04-02 奥特酷智能科技(南京)有限公司 Automobile Ethernet redundancy scheduling method based on ring networking

Also Published As

Publication number Publication date
CN101217448B (en) 2013-01-30

Similar Documents

Publication Publication Date Title
CN101217448B (en) Method and system to realize gateway dynamic load sharing
EP2749011B1 (en) Method for managing network protocol address assignment with a controller
CN100334866C (en) Method for realizing dynamic gateway load sharing and backup
CN101656763B (en) IP address automatic distribution method, client and server
US6397260B1 (en) Automatic load sharing for network routers
CN100502413C (en) IP address requesting method for DHCP client by DHCP repeater
CN101316236B (en) Vrrp backup group load sharing method and router
US9167612B2 (en) Minimal synchronized network operations
CN102130776B (en) Communication method and system
CN102893556A (en) Methods, systems, and computer readable media for source peer capacity-based diameter load sharing
CN102215158A (en) Method for realizing VRRP (Virtual Router Redundancy Protocol) flow transmission and routing equipment
CN103259740B (en) A kind of load balance process method and device
CN102333027A (en) Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
CN100420224C (en) Network appiliance and method of realizing service sharing
CN105721328A (en) VRRP load balancing method, VRRP load balancing device and router
US20080298273A1 (en) Method For Establishing a Communication Relationship in at Least One Communication Network
CN101018193A (en) Load distribution method and system and device for allocating the backup packet and virtual IP address
JP2003348136A (en) Router setting method
CN106375211A (en) Switch data processing method in VRRP load balanced scene and switch
CN100359875C (en) Method for realizing backup and load shared equally based on proxy of address resolution protocol
CN112187960B (en) Vehicle ECU address allocation method and device and vehicle
JP2006270680A (en) Layer two switch device
CN116418724A (en) Service access method, device and load balancing system
JP2018061148A (en) Communication device, relay device, communication system, and communication method
US20070008970A1 (en) Packet data router apparatus and 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
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350015 M9511 Industrial Park, fast road, Mawei District, Fujian, Fuzhou

Patentee after: RUIJIE NETWORKS Co.,Ltd.

Address before: 350015 M9511 Industrial Park, fast road, Mawei District, Fujian, Fuzhou

Patentee before: Beijing Star-Net Ruijie Networks Co.,Ltd.