CN101217448B - Method and system to realize gateway dynamic load sharing - Google Patents

Method and system to realize gateway dynamic load sharing Download PDF

Info

Publication number
CN101217448B
CN101217448B CN2008100565001A CN200810056500A CN101217448B CN 101217448 B CN101217448 B CN 101217448B CN 2008100565001 A CN2008100565001 A CN 2008100565001A CN 200810056500 A CN200810056500 A CN 200810056500A CN 101217448 B CN101217448 B CN 101217448B
Authority
CN
China
Prior art keywords
gateway
backup
gateway device
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.)
Active
Application number
CN2008100565001A
Other languages
Chinese (zh)
Other versions
CN101217448A (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, main process equipment 1 in the configuration local area network (LAN) and IP address and the gateway address of main process equipment 2, wherein the gateway address of configuration is the IP address of gateway device 4.For example: main process equipment 1 will communicate with external network server, need first 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 first; Then main process equipment 1 also will check whether there be the data link layer physical address corresponding with the gateway address of its configuration, 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 all take ethernet local area network as example, 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, namely 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; The MAC Address of the gateway device 4 that main process equipment 1 recycling obtains, 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 as 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 access 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 (LAN) 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 by different connections on external network server 3, main process equipment 1 in the local area network (LAN) or main process equipment 2 are when access external network server 3, according to the strategy of setting, by different gateway devices, arrive external network server 3 from different circuits, thereby take full advantage of device resource and the network bandwidth, this has just realized the load balancing function, take full advantage 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, configure 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 first the MAC Address that the ARP request message is asked main gateway device, 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 virtual mac address of the correspondence of main gateway device transmission, can utilize this virtual mac address that the IP datagram literary composition is packaged into Ethernet message and externally send, and destination address is 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 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 to receive and the main process equipment 1 of forwarding and the communication message between the external network server 3 at gateway device 4; 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 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 namely responding ARP request and destination address is reception and the forwarding of the IP datagram literary composition of virtual mac address; Backup gateway equipment is by monitoring the running status of this message charge of overseeing main gateway device, when the main gateway device abnormal, 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 regenerate main gateway device 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 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 need on the All hosts in same local area network (LAN) the different gateway address of its sensing be set manually, 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 that the user manually adjusts 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 protocol 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 simultaneously its existence; Main gateway device is preserved the information of the 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 such as weight of setting, and 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 to wait for again that main gateway device distributes new main process equipment information list to oneself.
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 to 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 to externally be announced 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 to 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 for 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 configures virtual ip address and the virtual mac address of described virtual backup group;
On the described gateway device in same virtual backup group, configure at least one identical 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 virtual ip address and the virtual mac address of described virtual backup group, and by the load balancing notification packet, carry out alternately with described backup gateway equipment, the facility information table of described backup gateway equipment and the corresponding allocation table of mac address information are announced to described backup gateway equipment, be 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 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 configures at least one identical 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 virtual ip address and the virtual mac address of described virtual backup group, be used for the facility information table of described backup gateway equipment and the corresponding allocation table of mac address information are announced to described backup gateway equipment, be 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 by reference to 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 Ethernet message form schematic diagram;
Fig. 2 is existing another local area network building structural representation;
Fig. 3 is the flow chart that the present invention realizes gateway dynamic load sharing embodiment of the method one;
Fig. 4 is the flow chart that the present invention realizes gateway dynamic load sharing embodiment of the method two;
Fig. 5 is the flow chart that the present invention realizes gateway dynamic load sharing embodiment of the method three;
Fig. 6 is the flow chart that the present invention realizes gateway dynamic load sharing embodiment of the method four;
Fig. 7 is the structural representation that the present invention realizes gateway dynamic load sharing system embodiment one;
Fig. 8 is the structural representation that the present invention realizes gateway dynamic load sharing system embodiment two;
Fig. 9 A is the structural representation that the present invention realizes gateway dynamic load sharing system embodiment three;
Fig. 9 B is another structural representation that the present invention realizes gateway dynamic load sharing system embodiment three;
Fig. 9 C is the again structural representation that the present invention realizes gateway dynamic load sharing system embodiment three;
Figure 10 is the structural representation that the present invention realizes gateway dynamic load sharing system embodiment four.
Embodiment
As shown in Figure 3, realize the flow chart of gateway dynamic load sharing embodiment of the method one for the present invention, virtual ip address and virtual mac address by VRRP protocol configuration gateway device virtual backup group, and increase again at least one newly-increased virtual mac address, 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, 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 configure virtual ip address and the virtual mac address of this virtual backup group;
On step 102, the gateway device in same virtual backup group, configure at least one newly-increased virtual mac address;
All configure 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 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 configured 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 for forwarding data packets for gateway device; At first configure the virtual mac address of VRRP protocol configuration on the main gateway device, then main gateway device is undertaken alternately by load balancing notification packet and backup gateway equipment, 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 so newly-increased virtual mac address not to be assigned to backup gateway equipment, do not affect all backup gateway equipment and in the virtual backup group, work; Certainly might have the incremental backup gateway device not have the function of dynamic load sharing, these backup gateway equipment can not carry out not having newly-increased virtual mac address alternately with main gateway device yet so yet; As seen, 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 configure 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;
Main gateway device is backup gateway devices allocation well behind the newly-increased virtual mac address, 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 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.
The present embodiment arranges a plurality of newly-increased virtual mac address by 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 configure 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, realize the flow chart of gateway dynamic load sharing embodiment of the method two for the present invention, the gateway device among this embodiment can be the 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, virtual ip address and the virtual mac address of configuration VRRP agreement suppose that virtual mac address is VMAC;
All configure 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 configure a newly-increased virtual mac address, this newly-increased virtual mac address is VMACa; Also can configure a plurality ofly, for example on gateway device 4 and gateway device 5, all configure 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 unanimously, 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, arranges 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;
Be two gateway devices in the present embodiment, 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 gateway device 4, backup gateway equipment is gateway device 5;
Step 204, main gateway device, namely gateway device 4 sends the load balancing announcement and enables message;
Step 205, backup gateway equipment, after namely gateway device 5 received load balancing announcement and enables message, starting load was 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, namely 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, namely gateway device 4;
Step 208, main process equipment can be such as the main process equipment 1 among Fig. 2, 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, namely 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 by turns in order the main process equipment that sends the ARP solicited message 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 information that step 211, gateway device 4 and gateway device 5 distribute according to gateway device 4 receives and transmits the data message that each main process equipment sends, and replys confirmation message by the announcement of transmission load balancing and declare its state to other gateway devices.
Here, after data message sends on the gateway device 4 that MAC Address is VMAC, gateway device 4 judges according to the above-mentioned strategy of taking whether this sends to this gateway device 4 for data message on the main process equipment, 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 to main process equipment and upgrade message (clean culture ARP upgrades message and is the message that only main process equipment that sends datagram is sent), 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 according to the virtual mac address information after the change, communicate with corresponding gateway device 5.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.
The present embodiment arranges a plurality of mac address informations by 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 configure 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 embodiment of the method 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, virtual ip address and the virtual mac address of this virtual backup group of VRRP protocol configuration;
Step 302, at least one newly-increased virtual mac address of the configuration of the gateway device in same virtual backup group, and the load balancing weight of h.323-configured gateway equipment;
Here can be at each gateway device configuration 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 main gateway device, gateway device 5 and gateway device 6 are backup gateway equipment;
Step 304, main gateway device, namely 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 message to other gateway device; After gateway device 5 and gateway device 6 received load balancing announcement and enable message, starting load was 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, namely whether holding load is shared function to gateway device 5, if support, then execution in step 307; If do not support, then execution in step 308;
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 in 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, the virtual mac address that gateway device 5 only can distribute the VRRP agreement to put for this virtual backup assembly, be VMAC, as the gateway address that main process equipment sends datagram, namely 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 namely not to be re-used as the gateway device 4 of main gateway device of described virtual backup group, if do not support, and 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, namely 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 the 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 with the gratuitous ARP response message of overseas broadcast virtual ip address, utilize the load balancing message to empty newly-increased virtual mac address on the new backup gateway equipment; 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 again realize the gateway dynamic load sharing function.
The present embodiment can be realized occurring unusually unavailable in main gateway device, 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, realize the flow chart of gateway dynamic load sharing embodiment of the method four for the present invention, 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, virtual ip address and the virtual mac address of this virtual backup group of VRRP protocol configuration;
Step 402, the gateway device in same virtual backup group configure at least one newly-increased virtual mac address, and configure the load balancing weight of described gateway device;
Here can be at each gateway device configuration 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 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, namely 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 the 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 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 in 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 processed this gateway device 5 with regard to not needing, the main gateway device of this virtual backup group when namely beginning, namely gateway device 4 does not just distribute newly-increased virtual mac address to 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 with overseas broadcast gratuitous ARP response message, empty the newly-increased virtual mac address on the backup gateway equipment; Backup gateway equipment will resend load balancing announcement request message request main gateway device and distribute newly-increased virtual mac address, again realize the gateway dynamic load sharing function.
The present embodiment can be realized occurring at backup gateway equipment unusual when unavailable, carried 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, realize the structural representation of gateway dynamic load sharing system embodiment one for the present invention, this realization gateway dynamic load sharing system comprises:
Virtual backup group 7 configures 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 configures 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 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 reception and the forwarding of data message, and the newly-increased virtual mac address of backup gateway equipment 72 usefulness carries out reception and the forwarding of data message.
The realization gateway dynamic load sharing system of the present embodiment arranges a plurality of mac address informations by each gateway device in the same virtual backup group of VRRP protocol configuration, enables its load balancing function; Avoid needing in the VRRP agreement to configure 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: the 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 by sending described load balancing notification packet to described backup gateway equipment; The second processing module 712 is used for distributing virtual mac address information by the arp reply message to the main process equipment in the main process equipment group 8, and virtual mac address information comprises virtual mac address and the newly-increased virtual mac address of VRRP configuration; The 3rd processing module 713 is used for reception and transmits the data message of the main process equipment transmission of the virtual mac address that has distributed main gateway device 71.
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, the 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 interior data messages that distributed main process equipment transmission that should newly-increased virtual mac address of 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 the first processing module, the second processing module, the 3rd processing module, on all gateway devices, just be elected as main gateway device in these gateway devices, the first processing module on it, the 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 the 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, virtual ip address and the virtual mac address of this virtual backup group 7 of VRRP protocol configuration in the virtual backup group 7; Configure 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 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 the first processing module 711 ' transmission, will empty former main gateway device 71 and be the corresponding allocation table of newly-increased virtual mac address of its distribution; New main gateway device 71 ' on the 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 that distributed virtual mac address sends;
Shown in Fig. 9 B, if new main gateway device 71 ' gateway support dynamic load sharing function, new main gateway device 71 ' hold virtual ip address and the virtual mac address of virtual backup group then, 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 the first processing module 711 ' by the load balancing notification packet, with new backup gateway equipment 72 ' carry out mutual; The 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, utilize the load balancing message to empty on it and new backup gateway equipment 72 ' upper 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 an again structural representation of gateway dynamic load sharing system embodiment three for the present invention, this virtual backup group 7 also comprises: the second judge module 77 is used for judging 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 the 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 the 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, so in other words new main gateway device gateway support dynamic load sharing function not, embodiment shown in Fig. 9 A, only new main gateway device is responsible for 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, the first judge module and the second judge module are arranged in fact all gateway devices.After re-electing, if original backup gateway equipment becomes present main gateway device, then wherein the first judge module starts; If main gateway device originally becomes present backup gateway equipment, then the second judge module starts.In addition, also be in all gateway devices, all to have such as the broadcast module among Fig. 9 B and distribution module, 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, virtual ip address and the virtual mac address of this virtual backup group 7 of VRRP protocol configuration in the virtual backup group 7; Configure 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 for judging whether gateway support dynamic load sharing function of backup gateway equipment;
When the backup gateway equipment 72 that originally has the gateway dynamic load sharing function not after the gateway support dynamic load sharing function, the 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 destination address by the 3rd processing module 713 of main gateway device 71 and be reception and the forwarding of the data message of newly-increased virtual mac address.
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 when main gateway device 71 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, utilize the load balancing message to empty on it and other backup gateway equipment 72 ' upper 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 arranged in fact all gateway devices, after re-electing, the 3rd judge module on all backup gateway equipment is used for all judging whether this gateway equipment has the function of dynamic load sharing.In addition, the 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 puts 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 configures virtual I P address and the virtual mac address of described virtual backup group;
On the described gateway device in same virtual backup group, configure at least one identical 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 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; Wherein, specifically comprise alternately with described backup gateway equipment: described main gateway device is collected the facility information of described backup gateway equipment, the corresponding allocation table of apparatus for establishing information table and a plurality of mac address informations is announced described corresponding allocation table to backup gateway equipment by sending described load balancing announcement assignment message;
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 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, described corresponding allocation table is announced to described backup gateway equipment, 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;
After described backup gateway equipment received the announcement of described load balancing and enables message, starting load was 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, characterized by further 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 claim 2 or the method for 3 described realization gateway dynamic load sharings, characterized by further 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 election makes new advances from all backup gateway equipment and new backup gateway equipment, described new main gateway device are 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 after the 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 election makes new advances from described backup gateway equipment again main gateway device and new backup gateway equipment:
Described former main gateway device becomes one of described new backup gateway equipment in the described virtual backup group, if the backup gateway equipment gateway support dynamic load sharing function that this is new, the load balancing that the described new main gateway device of monitoring sends is announced assignment message, and ask described new main gateway device to distribute described newly-increased virtual mac address.
7. according to claim 2 or the method for 3 described realization gateway dynamic load sharings, characterized by further 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 withdrawal of this backup gateway equipment, 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. it is characterized in that according to claim 5 or the method for 7 described realization gateway dynamic load sharings:
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 distributes virtual mac address information specifically to comprise by the address resolution protocol response message to main process equipment:
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 order of described backup gateway equipment;
Described main process equipment sends to 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 configures at least one identical 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 virtual ip address and the virtual mac address of described virtual backup group, be used for corresponding allocation table is announced to described backup gateway equipment, be the described newly-increased virtual mac address of described backup gateway devices allocation, for main process equipment distributes virtual mac address information, described corresponding allocation table comprises the facility information table of described backup gateway equipment and the corresponding relation of 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 at described at least two gateway devices, be connected with each gateway device.
12. according to claim 10 or 11 described realization gateway dynamic load sharing systems, it is characterized in that described main gateway device also comprises:
The 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 by sending described load balancing notification packet to described backup gateway equipment;
The 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 virtual mac address and the newly-increased virtual mac address of virtual route redundancy backup protocol configuration;
The 3rd processing module is used for receiving and transmitting 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 described main gateway device and be the described newly-increased virtual mac address of its distribution, and declare its state by sending described load balancing notification packet to described main gateway device;
The 5th processing module, being used for according to described main gateway device is the described newly-increased virtual mac address of its distribution, receives and transmit the data message that main process equipment sends.
14. realization gateway dynamic load sharing according to claim 13 system is characterized in that described virtual backup group also comprises:
The first judge module is used for when described main gateway device is not re-used as the main gateway device of described virtual backup group after, and whether the new main gateway device that judgement re-elects out gateway support dynamic load sharing function;
If do not support, then the in the new backup gateway equipment is managed module everywhere and is not received the load balancing notification packet that described the first processing module on the described new main gateway device sends, and will empty former main gateway device and be the corresponding allocation table of described newly-increased virtual mac address of its distribution; Described the 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:
The second judge module is used for judging 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, with the described load balancing notification packet of monitoring described new main gateway device and sending, 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 for judging 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 the 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. according to claim 14 or 16 described realization gateway dynamic load sharing systems, it is characterized in that described virtual backup group also comprises:
Broadcast module, be used for having when described new main gateway device the virtual mac address of a virtual route redundancy backup protocol configuration, 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 CN101217448A (en) 2008-07-09
CN101217448B true 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)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148846B (en) * 2010-02-09 2015-05-20 中兴通讯股份有限公司 Method, device and system for realizing service access of access gateways
CN102209064B (en) * 2010-03-29 2014-10-22 杭州华三通信技术有限公司 Method of using VRRP to provide backup for access equipment and VRRP gateway equipment
CN102215158B (en) * 2010-04-08 2015-04-15 杭州华三通信技术有限公司 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
CN102149116B (en) * 2011-04-02 2015-05-20 迈普通信技术股份有限公司 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
CN102821044B (en) * 2012-07-27 2015-07-01 北京奇虎科技有限公司 Method and device for configuring server cluster
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
CN105704036B (en) * 2014-11-27 2019-05-28 华为技术有限公司 Message forwarding method, device and system
CN105743781B (en) * 2016-01-11 2019-06-14 新华三技术有限公司 A kind of VRRP load-balancing method and device
CN105847143B (en) * 2016-06-06 2022-06-07 北京博维亚讯技术有限公司 Load balancing method and system based on VRRP
CN107508931B (en) * 2017-09-29 2019-08-30 Oppo广东移动通信有限公司 Wireless network communication method, device, storage medium and computer equipment
CN109995883B (en) * 2017-12-29 2023-06-30 资易国际股份有限公司 Automatic repairing method for network equipment real and virtual address corresponding failure
CN112311642B (en) * 2020-12-23 2021-04-02 奥特酷智能科技(南京)有限公司 Automobile Ethernet redundancy scheduling method based on ring networking

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531262A (en) * 2003-03-11 2004-09-22 ��Ϊ�������޹�˾ Network communication method for carrying out load division
CN1533108A (en) * 2003-03-21 2004-09-29 ��Ϊ�������޹�˾ Method for realizing dynamic gateway load sharing and backup
CN1754374A (en) * 2003-03-28 2006-03-29 思科技术公司 Network address translation with gateway load distribution
CN1905488A (en) * 2006-08-15 2007-01-31 华为技术有限公司 Method and system for access user by virtual router redundance protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1531262A (en) * 2003-03-11 2004-09-22 ��Ϊ�������޹�˾ Network communication method for carrying out load division
CN1533108A (en) * 2003-03-21 2004-09-29 ��Ϊ�������޹�˾ Method for realizing dynamic gateway load sharing and backup
CN1754374A (en) * 2003-03-28 2006-03-29 思科技术公司 Network address translation with gateway load distribution
CN1905488A (en) * 2006-08-15 2007-01-31 华为技术有限公司 Method and system for access user by virtual router redundance protocol

Also Published As

Publication number Publication date
CN101217448A (en) 2008-07-09

Similar Documents

Publication Publication Date Title
CN101217448B (en) Method and system to realize gateway dynamic load sharing
CN102893556B (en) Method, system and equipment for source peer-to-peer Diameter based on capacity load Sharing
CN100334866C (en) Method for realizing dynamic gateway load sharing and backup
CN102025798B (en) Address allocation processing method, device and system
CN101316236B (en) Vrrp backup group load sharing method and router
CN101536425B (en) Arrangement and method relating to identification of hardware units
US20090279454A1 (en) Method for configuring a dhcp server using dhcp option 82
US9071612B2 (en) Service providing system
CN102025630A (en) Load balancing method and load balancing system
CN101656763A (en) IP address automatic distribution method, client and server
CN102130776A (en) Communication method and system
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
EP2002670B1 (en) System and method for active geographic redundancy
CN100420224C (en) Network appiliance and method of realizing service sharing
CN100492984C (en) Method for realizing data transfer backup through address interpretation protocol messages
CN102118453A (en) Method, service device, client and communication system for automatic configuration of IP address
CN102970389B (en) Extranet access method and system
JP3896897B2 (en) Router setting method and router
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
CN1905495B (en) Network monitoring device, network monitoring method, network system and network communication 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

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.