CN102710532A - Method and device for changing from VRRP (virtual router redundancy protocol) standard mode to load balancing mode - Google Patents

Method and device for changing from VRRP (virtual router redundancy protocol) standard mode to load balancing mode Download PDF

Info

Publication number
CN102710532A
CN102710532A CN2012102241554A CN201210224155A CN102710532A CN 102710532 A CN102710532 A CN 102710532A CN 2012102241554 A CN2012102241554 A CN 2012102241554A CN 201210224155 A CN201210224155 A CN 201210224155A CN 102710532 A CN102710532 A CN 102710532A
Authority
CN
China
Prior art keywords
load
mode
sharing mode
mac address
machine
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
CN2012102241554A
Other languages
Chinese (zh)
Other versions
CN102710532B (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210224155.4A priority Critical patent/CN102710532B/en
Publication of CN102710532A publication Critical patent/CN102710532A/en
Application granted granted Critical
Publication of CN102710532B publication Critical patent/CN102710532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The application of the invention discloses a method and a device for changing from a VRRP (virtual router redundancy protocol) standard mode to a load balancing mode. According to the invention, member equipment at the backup state completes switching earlier than member equipment at the master state in the standard mode, so that flow discontinuousness of a VRRP backup group occurs during the switching; and the member equipment at the master state in the standard mode can inform a network host of a virtual MAC address in the load balancing mode after being switched to the load balancing mode, so as to relieve the flow discontinuousness of the VRRP backup group resulting from the switching. In addition, even if the member equipment at the backup state in the standard mode is temporarily at the master state in the load balancing mode due to earlier switching, the member equipment does not respond to the network host, so as to avoid the member equipment at the backup state participating flow distribution at the load balancing mode.

Description

Be used for the method and apparatus that the VRRP mode standard is switched to load-sharing mode
Technical field
The application relates to VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) technology, particularly is used for the method and apparatus that the VRRP mode standard is switched to load-sharing mode.
Background technology
VRRP can join many routing devices can bearing gateway function in the VRRP backup group and utilizes this backup group to form a virtual routing device; So that each network host only needs virtual routing device is configured to default gateway, thereby can simplify the configuration of network host.Wherein, every routing device in the VRRP backup group can be described as the member device of this VRRP backup group.
At present, the mode of operation that adopted of VRRP backup group comprises mode standard and load-sharing mode.
Under mode standard; The member device of the Master that elects in the VRRP backup group (master) state can utilize the virtual ip address and virtual MAC (the Media Access Control of VRRP backup group; The medium access control) routing forwarding is carried out in the address, and other member devices that are in Backup (backup) state are not born and transmitted and only be the backup as the member device of Master state.
Fig. 1 is the principle sketch map of VRRP mode standard of the prior art.In networking instance shown in Figure 1, the VRRP backup group adopts mode standard and comprises member device A, B, C, and wherein, member device A is in the Master state, and member device B, C are in the Backup state; And, network host 1 ~ 3 all with the virtual ip address 10.1.1.1.1/24 of this VRRP backup group be configured to gateway the IP address, and insert the Internet through this VRRP backup group.
See also Fig. 1; The member device A that is in the Master state utilizes the virtual ip address 10.1.1.1.1/24 of VRRP backup group and virtual mac address 0000-5e00-0101 to bear the routing forwarding of network host 1 ~ 3, and the member device B, the C that are in the Backup state do not bear and transmit and only be the backup as member device A.
Under load-sharing mode; The member device of the Master state that elects in the VRRP backup group is that all member devices in the VRRP backup group distribute special-purpose virtual mac address; And; The member device of Master state can be replied to the various network main frame, therefore according to the predetermined load balancing strategy virtual mac address that each member device is special-purpose after receiving that network host is used to obtain the request of virtual mac address; Each member device is the virtual ip address of VRRP backup group capable of using and the flow that its special-purpose virtual mac address is born the heterogeneous networks main frame respectively in the VRRP backup group, to realize the load balancing of flow.
Fig. 2 is the principle sketch map of VRRP load-sharing mode of the prior art.In networking instance shown in Figure 2, the VRRP backup group adopts mode standard and comprises member device A, B, C, and wherein, member device A is in the Master state, and member device B, C are in the Backup state; And, network host 1 ~ 3 all with the virtual ip address 10.1.1.1.1/24 of this VRRP backup group be configured to gateway the IP address, and insert the Internet through this VRRP backup group.
See also Fig. 2; Member device A has distributed special-purpose virtual mac address 000f-e2ff-0011 and according to predetermined load balancing strategy this virtual mac address 000f-e2ff-0011 has been replied to network host 1 for himself; The virtual mac address 000f-e2ff-0012 that member device A is special-purpose for member device B has distributed also replys this virtual mac address 000f-e2ff-0012 to network host 2 according to predetermined load balancing strategy; The virtual mac address 000f-e2ff-0013 that member device A is special-purpose for member device C has distributed also replys this virtual mac address 000f-e2ff-0013 to network host 3 according to predetermined load balancing strategy; Therefore; The member device A that is in the Master state is the virtual ip address 10.1.1.1.1/24 of VRRP backup group capable of using and the routing forwarding that the special-purpose virtual mac address 000f-e2ff-0011 of member device A bears network host 1; And the routing forwarding of the member device B that is in the Backup state to be the special-purpose virtual mac address 000f-e2ff-0012 of virtual ip address 10.1.1.1.1/24 and member device B of VRRP backup group capable of using share network host 2, the virtual ip address 10.1.1.1.1/24 and the virtual mac address 000f-e2ff-0013 of member device C special use that are in the member device C VRRP backup group then capable of using of Backup state share the routing forwarding of network host 3.
In practical application, can in above-mentioned two kinds of mode of operations, choose one of which wantonly according to the networking needs; Certainly, the real-time change along with networking needs also can realize two kinds of switchings between the mode of operation.But the VRRP backup group can cause flow interrupt from mode standard to the switching of load-sharing mode usually.
Specifically; The VRRP backup group needs to use the virtual mac address of VRRP backup group to transmit and transmit at the next special-purpose virtual mac address of each member device of use that needs of load-sharing mode under mode standard; Therefore; The VRRP backup group switches to the variation that virtual mac address will certainly take place load-sharing mode from mode standard, correspondingly, just needs network host to relearn the virtual mac address of VRRP backup group.Yet; Because network host can not in time perceive the mode switch of VRRP backup group; Thereby the time that network host relearns the virtual mac address of VRRP backup group can postpone in the mode switch of VRRP backup group; Thereby, after the VRRP backup group begins to switch, before the virtual mac address of the load-sharing mode of network host after relearning the VRRP backup group and switching, the flow interrupt between VRRP backup group and the network host will appear.
Fig. 3 is the principle sketch map that VRRP mode standard of the prior art is switched to load-sharing mode.In Fig. 3, switching to load-sharing mode networking instance as shown in Figure 2 with mode standard networking instance as shown in Figure 1 is example.See also Fig. 3; After the member device A in the VRRP backup group, B, C accomplish mode switch; The virtual mac address 0000-5e00-0101 of VRRP backup group under mode standard deleted; The substitute is virtual mac address 000f-e2ff-0011, member device B virtual mac address 000f-e2ff-0012, member device C the virtual mac address 000f-e2ff-0013 under load-sharing mode under load-sharing mode of member device A under load-sharing mode; And this moment; That network host 1 ~ 3 is learnt still is the virtual mac address 0000-5e00-0101 of VRRP backup group under mode standard, thereby causes flow interrupt occurring between VRRP backup group and the network host 1 ~ 3.
Summary of the invention
In view of this; The method and apparatus that the application provides a kind of VRRP of being used for mode standard to switch to load-sharing mode; Be used for solving Virtual Router Redundancy Protocol backup group operative norm pattern when load-sharing mode switches, the technical problem of the flow interrupt that causes.
The method that a kind of VRRP of being used for mode standard that the application provides is switched to load-sharing mode switches to the process of load-sharing mode at the VRRP backup group of this method of application from mode standard, and the member device that is in backup Backup state in mode standard is accomplished prior to the member device of main Master state and switched; And this method is included in the following steps that every member device in the VRRP backup group is carried out:
If this machine switches to load-sharing mode from the Backup state under the mode standard; Then when this machine when load-sharing mode is in the Master state, distribute the virtual media access control MAC address of load-sharing modes for other member devices of this machine and load-sharing mode;
If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; Delete the virtual mac address of the mode standard of VRRP backup group for the virtual mac address of this machine distribution load-sharing mode and at this machine; And, the virtual mac address of the load-sharing mode of any member device is announced to network host.
This method further is included in the following steps that every member device in the VRRP backup group is carried out:
If this machine switches to load-sharing mode from the Backup state under the mode standard, then when this machine when load-sharing mode is in the Master state, shield the request that is used to obtain virtual mac address of network host;
If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; To the request that is used to obtain virtual mac address of network host, select a member device and the virtual mac address of the load-sharing mode of selected members equipment is replied to network host through predetermined load-balancing algorithm.
The virtual mac address of said announcement is the virtual mac address of the load-sharing mode of this machine.
Said announcement realizes through free ARP message or neighbor advertisement NA message.
Described request realizes through the realization of ARP request message, said replying through replying the ARP message; Perhaps, described request inquires that through neighbours the NS message is realized, said replying through the NA message realized.
A kind of VRRP of being used for mode standard that the application provides is to the load-sharing mode device for switching; VRRP backup group using this device switches to from mode standard the process of load-sharing mode, and the member device that is in the Backup state in mode standard is accomplished switching prior to the member device of Master state; And, this device be included in that every member device in the VRRP backup group carries like lower module:
The first hand-off process module; If this machine switches to load-sharing mode from the Backup state under the mode standard; Then when this machine when load-sharing mode is in the Master state, distribute the virtual mac address of load-sharing modes for other member devices of this machine and load-sharing mode;
The second hand-off process module; If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; For this machine distributes the virtual mac address of load-sharing mode and at the virtual mac address of the mode standard of this machine deletion VRRP backup group, and, the virtual mac address of the load-sharing mode of any member device is announced to network host.
This device be included in further that every member device in the VRRP backup group carries like lower module:
First replys processing module, if this machine switches to load-sharing mode from the Backup state under the mode standard, then when this machine when load-sharing mode is in the Master state, shield the request that is used to obtain virtual mac address of network host;
Second replys processing module; If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; To the request that is used to obtain virtual mac address of network host, select a member device and the virtual mac address of the load-sharing mode of selected members equipment is replied to network host through predetermined load-balancing algorithm.
The virtual mac address of said announcement is the virtual mac address of the load-sharing mode of this machine.
Said announcement realizes through gratuitous ARP packet or NA message.
Described request realizes through the realization of ARP request message, said replying through replying the ARP message; Perhaps, described request realizes through the realization of NS message, said replying through the NA message.
This shows; Based on the technical scheme that the application provided; The VRRP backup group from mode standard to the process that load-sharing mode switches; The member device that is in the Backup state under the mode standard can be accomplished switching prior to the member device of Master state; And, the member device of Backup state switch during in, temporarily under mode standard, continue to keep the stable of flow by the member device of Master state; Thereby can avoid the VRRP backup group to cause in handoff procedure the gravity treatment of trigger criteria pattern repeatedly to be lifted owing to the member device of Master state switches earlier, thereby avoid in the handoff procedure of VRRP backup group because the flow interrupt that the gravity treatment of the mode standard that triggers repeatedly act causes.And; The member device that is in the Master state under the mode standard can be with the virtual mac address of Master state to network host announcement load-sharing mode after switching to load-sharing mode; Thereby can make network host after the VRRP backup group switches, learn the virtual mac address of load-sharing mode as early as possible; Thereby, can alleviate as much as possible at the VRRP backup group and switch the back because the flow interrupt that network host can't in time be learnt virtual mac address and caused.
In addition preferably; Based on the technical scheme that the application provided; The member device that only under mode standard, is in the Master state can response to network host with the Master state under load-sharing mode; Even and if the member device that is in the Backup state under the mode standard temporarily is in Master state, this member device at load-sharing mode and also network host is not responsed, thereby can avoid the member device of Backup state to participate in the assignment of traffic under the load-sharing mode.
Description of drawings
Fig. 1 is the principle sketch map of VRRP mode standard of the prior art;
Fig. 2 is the principle sketch map of VRRP load-sharing mode of the prior art;
Fig. 3 is the principle sketch map that VRRP mode standard of the prior art is switched to load-sharing mode;
Fig. 4 a to Fig. 4 d is the principle sketch map that the VRRP mode standard among the application embodiment is switched to load-sharing mode;
Fig. 5 is for being used for a kind of exemplary flow sketch map of VRRP mode standard to the method for load-sharing mode switching among the application embodiment.
Embodiment
For making the object of the invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, to further explain of the present invention.
Present embodiment improves in the processing mode of switching after accomplishing to the processing mode and the VRRP backup group of VRRP backup group in handoff procedure respectively in order effectively to alleviate because the VRRP backup group switches the flow interrupt that is caused from mode standard to load-sharing mode.
Present embodiment is to avoid in the handoff procedure of VRRP backup group, flow interrupt occurring; Accomplish switching earlier by the member device that is in the Backup state under the mode standard; And; The member device that under mode standard, is in the Backup state to load-sharing mode switch during in, the member device of Master state still remains on and continues to keep the stable of flow under the mode standard; After treating to be in the member device completion switching of Backup state under the mode standard, the member device of Master state switches to load-sharing mode from mode standard again.
This is because if the member device that is in the Master state in the VRRP backup group under the mode standard switches to the load balancing state prior to the member device of Backup state, then can cause the gravity treatment of VRRP backup group trigger criteria pattern to be lifted; After each gravity treatment is lifted; Mode standard become the Master state member device can to network host announce mode standard virtual mac address, cause network host to refresh the virtual mac address that it is learnt, and this member device can switch to the load balancing state again after mode standard becomes the Master state; So repeatedly, will cause the VRRP backup group under mode standard, to trigger gravity treatment times without number and lift, thereby cause the member device of VRRP backup group under mode standard to be difficult to realize frequently refreshing of flow forwarding and network host, and then cause flow interrupt.
This shows; Present embodiment is accomplished prior to the member device of Master state by the member device that is in the Backup state under the mode standard and is switched; Can avoid the VRRP backup group in handoff procedure repeatedly the gravity treatment of trigger criteria pattern lift, thereby avoid in the handoff procedure of VRRP backup group because the flow interrupt that the gravity treatment of the mode standard that triggers repeatedly act causes.
In the practical application; Can realize of the member device switching of the member device of Backup state through manual configuration to all member devices in the VRRP backup group prior to the Master state; Also can switch earlier by the member device that the member device that is in the Master state in mode standard in the VRRP backup group is controlled the Backup state through the VRRP message; Certainly, also exist other possible modes can realize that the member device of Backup state switches earlier, present embodiment is just given unnecessary details at this no longer one by one.
Present embodiment is for alleviating the flow interrupt that after the switching of VRRP backup group is accomplished, occurs; By the member device that is in the Master state under the mode standard after switching to load-sharing mode; Take over the Master state of load-sharing mode and at the virtual mac address of the mode standard of this machine deletion VRRP backup group, then under load-sharing mode with the Master state in network host announcement VRRP backup group any member device at the virtual mac address of load-sharing mode.Because after the member device that under mode standard, is in the Master state switches to load-sharing mode; There has not been member device to be in mode standard in the VRRP backup group; Thereby the gravity treatment that mode standard can not take place in the VRRP backup group this moment is lifted; Thereby; The VRRP backup group is after the virtual mac address of network host announcement load-sharing mode, can not lift and announce the virtual mac address of mode standard again owing to the gravity treatment of mode standard to network host, and then avoid announcing to the virtual mac address of the load-sharing mode of network host be again the virtual mac address of mode standard by backwash.
Preferably, the member device that all is in the Master state under mode standard and the load-sharing mode is announced himself to network host at the virtual mac address of load-sharing mode, so that taken over the assignment of traffic of VRRP backup group by this member device.
This shows; Member device through the Master state is accomplished at the VRRP backup group and is switched the above-mentioned announcement of back to network host, just can effectively alleviate because network host can't in time be learnt virtual mac address and caused after the switching of VRRP backup group flow interrupt.
And; The member device that is in the Backup state under the mode standard after switching to load-sharing mode in advance; If under load-sharing mode, can temporarily be in the Master state; Then therefore this member device can, treat that the member device that is in the Master state under the mode standard switches to after the load-sharing mode on behalf of the virtual mac address that distributes load-sharing mode; Only be required to be and himself distribute the virtual mac address of load-sharing mode can accomplish the switching of VRRP backup group, thereby can accelerate sending the time of above-mentioned announcement.
In the practical application, the network for supporting IPv4 can pass through gratuitous ARP (Address Resolve Protocol, address resolution protocol) message and realize above-mentioned announcement; And for the network of supporting IPv6, then can pass through NA (Neighbor Advertisement, the neighbor advertisement) message of ND (Neighbor Discovery, neighbours find) agreement and realize above-mentioned announcement.Certainly, for other network environments, also exist other possible modes can realize above-mentioned announcement, present embodiment is just given unnecessary details at this no longer one by one.
In addition; Though the member device that is in the Backup state under the mode standard is after switching to load-sharing mode in advance; Might under load-sharing mode, be in the Master state, still, treat to be under the mode standard follow-up the switching to after the load-sharing mode of member device of Master state; The member device that is in the Backup state under the mode standard still can revert to the Backup state under load-sharing mode; Therefore, even if be in the member device of Backup state under the mode standard owing to switch in advance and temporarily be in the Master state at load-sharing mode, " Master " that this member device neither be truly.
Thereby, preferably, received that with the Master state network host is used to obtain the request of virtual mac address at load-sharing mode even if be in the member device of Backup state under the mode standard, present embodiment also can suppress this member device replying this request; When having only the member device that is in the Master state under the mode standard behind load-sharing mode, still to be in the Master state; Can be to the request that is used to obtain virtual mac address of network host, select a member device and the virtual mac address of the load-sharing mode of selected members equipment is replied to network host through predetermined load-balancing algorithm.Like this, can avoid the member device of Backup state to participate in the assignment of traffic under the load-sharing mode, that is, avoid the assignment of traffic under the load balancing pattern to carry out by non-" Master ".
In the practical application,, can realize the above-mentioned request that is used to obtain virtual mac address, realize above-mentioned replying through the ARP request message through replying the ARP message for the network of supporting IPv4; And for the network of supporting IPv6, then can realize the above-mentioned request that is used to obtain virtual mac address, realize above-mentioned replying through the NA message of ND agreement through NS (Neighbor Solicitation, the neighbours' inquiry) message of ND agreement.Certainly, for other network environments, also exist other possible modes can realize above-mentioned request and reply, present embodiment is just given unnecessary details at this no longer one by one.
Below, combine an instance to be elaborated to the load-sharing mode switching way again to being used for the VRRP mode standard in the present embodiment.
Fig. 4 a to Fig. 4 d is the principle sketch map that the VRRP mode standard among the application embodiment is switched to load-sharing mode.Is example at the networking instance shown in Fig. 4 a to Fig. 4 d with support IPv4, and the VRRP backup group in this networking instance comprises member device A, B, C.
See also Fig. 4 a; The VRRP backup group adopts mode standard; Member device A is in the Master state of mode standard; Member device B, C are in the Backup state of mode standard, and network host 1 ~ 3 all is configured to the virtual ip address 10.1.1.1.1/24 of this VRRP backup group the IP address of gateway and has learnt the virtual mac address 0000-5e00-0101 of this VRRP backup group in mode standard; And; The member device A that is in the Master state utilizes the virtual ip address 10.1.1.1.1/24 of VRRP backup group and virtual mac address 0000-5e00-0101 to bear the routing forwarding of network host 1 ~ 3, and the member device B, the C that are in the Backup state do not bear and transmit and only be the backup as member device A.
See also Fig. 4 b; The VRRP backup group begins to switch to load-sharing mode from mode standard; And switch to load-sharing mode earlier by member device B, the C that mode standard is in the Backup state; Member device B temporarily is in the Master state of load-sharing mode because priority is high; Member device C is in the Backup state of load-sharing mode owing to priority is low, and member device B has distributed special-purpose virtual mac address 000f-e2ff-0011, distributed special-purpose virtual mac address 000f-e2ff-0012 for member device C for himself; Meanwhile; The virtual mac address that network host 1 ~ 3 is learnt still is the virtual mac address 0000-5e00-0101 of this VRRP backup group in mode standard; And the member device A that under mode standard, is in the Master state still utilizes the virtual ip address 10.1.1.1.1/24 of VRRP backup group and the routing forwarding that virtual mac address 0000-5e00-0101 bears network host 1 ~ 3.
See also Fig. 4 c, begin from mode standard to the process that load-sharing mode switches, newly to have added network host 4 and sent the ARP request message to this VRRP backup group at the VRRP backup group; Though member device B temporarily is in the Master state at the load balancing state this moment; But because member device B treats still can return the Backup state after member device A switches to load-sharing mode; Be that member's equipment B is not " Master " truly, thereby member device B does not reply this ARP request message; And member's device A still is in the Master state of mode standard this moment, thereby member device A replys the virtual mac address 0000-5e00-0101 of VRRP backup group in mode standard to network host 4 through replying the ARP message.
See also Fig. 4 d; The member device A that is in the Master state in mode standard switches to load-sharing mode; Member device A replaces member's equipment B owing to priority is high and is in the Master state under the load-sharing mode, and member device B then reverts to the Backup state under load-sharing mode; And; Member device A is after virtual mac address 000f-e2ff-0013 that has distributed load-sharing mode for himself and the virtual mac address 0000-5e00-0101 in the mode standard of this machine deletion VRRP backup group; Through gratuitous ARP packet virtual mac address 000f-e2ff-0013 is announced to network host 1 ~ 4, be 000f-e2ff-0013 so that the virtual mac address that network host 1 ~ 4 will be learnt refreshes.
After this; If new network host adding network is arranged again and sends the ARP request message; Member device A can go out a member device A or B or C according to predetermined load balancing policy selection; And the selected members device A replied to initiate network host through replying the ARP message at the virtual mac address 000f-e2ff-0012 of load-sharing mode at the virtual mac address 000f-e2ff-0011 or the selected members equipment C of load-sharing mode in the virtual mac address 000f-e2ff-0013 or the selected members equipment B of load-sharing mode, thereby realize the load balancing of flow.
Based on above-mentioned principle; The method that present embodiment provides a kind of VRRP of being used for mark pattern to switch to load-sharing mode; This method is applied in the VRRP backup group; This VRRP backup group is switching to from mode standard the process of load-sharing mode, and the member device that is in the Backup state by mode standard is accomplished switching prior to the member device of Master state.And, being the flow interrupt of avoiding flow interrupt in the handoff procedure of VRRP backup group, occurring and alleviating appearance after the switching of VRRP backup group is accomplished, this method is included in the following steps that every member device in the VRRP backup group is carried out:
If this machine switches to load-sharing mode from the Backup state under the mode standard, then when this machine when load-sharing mode is in the Master state, be the virtual mac address of other member devices distribution load-sharing modes of this machine and load-sharing mode;
If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; Delete the virtual mac address of the mode standard of VRRP backup group for the virtual mac address of this machine distribution load-sharing mode and at this machine; And, the virtual mac address of the load-sharing mode of any member device is announced to network host.
Preferably, participate in the assignment of traffic under the load-sharing mode for fear of the member device of Backup state, this method may further include the following steps that every member device in the VRRP backup group is carried out:
If this machine switches to load-sharing mode from the Backup state under the mode standard, then when this machine when load-sharing mode is in the Master state, shield the request that is used to obtain virtual mac address of network host;
If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; To the request that is used to obtain virtual mac address of network host, the virtual mac address of the load-sharing mode of any member device is replied to network host.
Fig. 5 is for being used for the exemplary flow sketch map of VRRP mode standard to the method for load-sharing mode switching among the application embodiment.As shown in Figure 5, be used for the VRRP mode standard in the present embodiment and can realize through following idiographic flow in the step of every member device execution of VRRP backup group to the method that load-sharing mode switches:
Step 510 after this machine switches to load-sharing mode from mode standard, is initiated the election of load-sharing modes with other member devices of the load-sharing mode that coexists and is judged that whether this machine is in the Master state through election under load-sharing mode;
If then execution in step 520;
Otherwise, process ends.
Step 520 judges whether this machine is in the Master state under mode standard;
If, represent that then this machine will take over the assignment of traffic of load-sharing mode with the Master state, thereby execution in step 531
Otherwise, represent that this machine only is the Master state that temporarily under load-sharing mode, is in, thereby execution in step 532.
Step 531; Because being the Master state under the mode standard, this machine switches to load-sharing mode; Thereby when this machine when load-sharing mode is in the Master state, only be required to be that this machine distributes the virtual mac address of load-sharing mode and at the virtual mac address of the mode standard of this machine deletion VRRP backup group, and; The virtual mac address of the load-sharing mode of any member device is announced to network host, then process ends.
After this machine is through step 531 process ends; The request that can be used to obtain virtual mac address to the network host that receives is selected a member device and the virtual mac address of the load-sharing mode of selected members equipment is replied to network host through predetermined load-balancing algorithm.
Step 532; Because being the Backup state under the mode standard, this machine switches to load-sharing mode; Thereby when this machine when load-sharing mode is in the Master state; Other member devices that only are required to be this machine and load-sharing mode distribute the virtual mac address of load-sharing mode, get final product process ends then.
After this machine is through step 532 process ends:
After other member devices of treating to be under the mode standard Master state switched to the load balancing pattern, this machine can be the Backup state from the Master recovering state in these other member device execution in step 510 backs;
If this machine reverts to before the Backup state, is that this machine receives the request that main frame is used to obtain virtual mac address when load-sharing mode is in the Master state, then this machine this request of shielding and this request not being responsed.
So far, this flow process finishes.
Because said method can be realized with computer program; Therefore; With said method accordingly, present embodiment also provides a kind of VRRP of being used for mode standard to the load-sharing mode device for switching, this device is applied to the VRRP backup group; This VRRP backup group is switching to from mode standard the process of load-sharing mode, and the member device that is in the Backup state in mode standard is accomplished switching prior to the member device of Master state; And, be to avoid in the handoff procedure of VRRP backup group, occurring flow interrupt and to alleviate accomplishing the flow interrupt that the back occurs in the switching of VRRP backup group, this device be included in every member device carrying in the VRRP backup group like lower module:
The first hand-off process module; If this machine switches to load-sharing mode from the Backup state under the mode standard; Then when this machine when load-sharing mode is in the Master state, distribute the virtual mac address of load-sharing modes for other member devices of this machine and load-sharing mode;
The second hand-off process module; If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; For this machine distributes the virtual mac address of load-sharing mode and at the virtual mac address of the mode standard of this machine deletion VRRP backup group, and, the virtual mac address of the load-sharing mode of any member device is announced to network host.
Preferably, participate in load-sharing mode assignment of traffic down for fear of the member device of Backup state, this device further be included in every member device carrying in the VRRP backup group like lower module:
First replys processing module, if this machine switches to load-sharing mode from the Backup state under the mode standard, then when this machine when load-sharing mode is in the Master state, shield the request that is used to obtain virtual mac address of network host;
Second replys processing module; If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; To the request that is used to obtain virtual mac address of network host, select a member device and the virtual mac address of the load-sharing mode of selected members equipment is replied to network host through predetermined load-balancing algorithm.
The above is merely preferred embodiment of the present invention, and is in order to restriction the present invention, not all within spirit of the present invention and principle, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope that the present invention protects.

Claims (10)

1. one kind is used for the method that Virtual Router Redundancy Protocol VRRP mode standard is switched to load-sharing mode; It is characterized in that; VRRP backup group in this method of application switches to from mode standard the process of load-sharing mode, and the member device that is in backup Backup state in mode standard is accomplished switching prior to the member device of main Master state; And this method is included in the following steps that every member device in the VRRP backup group is carried out:
If this machine switches to load-sharing mode from the Backup state under the mode standard; Then when this machine when load-sharing mode is in the Master state, distribute the virtual media access control MAC address of load-sharing modes for other member devices of this machine and load-sharing mode;
If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; Delete the virtual mac address of the mode standard of VRRP backup group for the virtual mac address of this machine distribution load-sharing mode and at this machine; And, the virtual mac address of the load-sharing mode of any member device is announced to network host.
2. method according to claim 1 is characterized in that, this method further is included in the following steps that every member device in the VRRP backup group is carried out:
If this machine switches to load-sharing mode from the Backup state under the mode standard, then when this machine when load-sharing mode is in the Master state, shield the request that is used to obtain virtual mac address of network host;
If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; To the request that is used to obtain virtual mac address of network host, select a member device and the virtual mac address of the load-sharing mode of selected members equipment is replied to network host through predetermined load-balancing algorithm.
3. method according to claim 1 is characterized in that, the virtual mac address of said announcement is the virtual mac address of the load-sharing mode of this machine.
4. method according to claim 1 is characterized in that, said announcement realizes through free ARP message or neighbor advertisement NA message.
5. method according to claim 2 is characterized in that, described request realizes through the realization of ARP request message, said replying through replying the ARP message; Perhaps, described request inquires that through neighbours the NS message is realized, said replying through the NA message realized.
6. one kind is used for the VRRP mode standard to the load-sharing mode device for switching; It is characterized in that; VRRP backup group using this device switches to from mode standard the process of load-sharing mode, and the member device that is in the Backup state in mode standard is accomplished switching prior to the member device of Master state; And, this device be included in that every member device in the VRRP backup group carries like lower module:
The first hand-off process module; If this machine switches to load-sharing mode from the Backup state under the mode standard; Then when this machine when load-sharing mode is in the Master state, distribute the virtual mac address of load-sharing modes for other member devices of this machine and load-sharing mode;
The second hand-off process module; If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; For this machine distributes the virtual mac address of load-sharing mode and at the virtual mac address of the mode standard of this machine deletion VRRP backup group, and, the virtual mac address of the load-sharing mode of any member device is announced to network host.
7. device according to claim 6 is characterized in that, this device be included in further that every member device in the VRRP backup group carries like lower module:
First replys processing module, if this machine switches to load-sharing mode from the Backup state under the mode standard, then when this machine when load-sharing mode is in the Master state, shield the request that is used to obtain virtual mac address of network host;
Second replys processing module; If this machine switches to load-sharing mode from the Master state under the mode standard; Then when this machine when load-sharing mode is in the Master state; To the request that is used to obtain virtual mac address of network host, select a member device and the virtual mac address of the load-sharing mode of selected members equipment is replied to network host through predetermined load-balancing algorithm.
8. device according to claim 6 is characterized in that, the virtual mac address of said announcement is the virtual mac address of the load-sharing mode of this machine.
9. device according to claim 6 is characterized in that, said announcement realizes through gratuitous ARP packet or NA message.
10. device according to claim 7 is characterized in that, described request realizes through the realization of ARP request message, said replying through replying the ARP message; Perhaps, described request realizes through the realization of NS message, said replying through the NA message.
CN201210224155.4A 2012-06-28 2012-06-28 Method and device for changing from VRRP (virtual router redundancy protocol) standard mode to load balancing mode Active CN102710532B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210224155.4A CN102710532B (en) 2012-06-28 2012-06-28 Method and device for changing from VRRP (virtual router redundancy protocol) standard mode to load balancing mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210224155.4A CN102710532B (en) 2012-06-28 2012-06-28 Method and device for changing from VRRP (virtual router redundancy protocol) standard mode to load balancing mode

Publications (2)

Publication Number Publication Date
CN102710532A true CN102710532A (en) 2012-10-03
CN102710532B CN102710532B (en) 2015-01-14

Family

ID=46903101

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210224155.4A Active CN102710532B (en) 2012-06-28 2012-06-28 Method and device for changing from VRRP (virtual router redundancy protocol) standard mode to load balancing mode

Country Status (1)

Country Link
CN (1) CN102710532B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547339A (en) * 2017-06-14 2018-01-05 新华三技术有限公司 A kind of gateway media access control MAC address feedback method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1006702A2 (en) * 1998-12-04 2000-06-07 Nortel Networks Corporation Method and apparatus providing for an improved VRRP (Virtual Router Redundancy Protocol)
CN101316236A (en) * 2008-07-23 2008-12-03 杭州华三通信技术有限公司 VRRP backup group load sharing method and router
CN101815007A (en) * 2010-03-17 2010-08-25 杭州华三通信技术有限公司 Fast switching method based on VRRP load balance and equipment
CN102123105A (en) * 2011-04-20 2011-07-13 杭州华三通信技术有限公司 Method and equipment for switching between standard VRRP (Virtual Router Redundancy Protocol) and load balancing VRRP

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1006702A2 (en) * 1998-12-04 2000-06-07 Nortel Networks Corporation Method and apparatus providing for an improved VRRP (Virtual Router Redundancy Protocol)
CN101316236A (en) * 2008-07-23 2008-12-03 杭州华三通信技术有限公司 VRRP backup group load sharing method and router
CN101815007A (en) * 2010-03-17 2010-08-25 杭州华三通信技术有限公司 Fast switching method based on VRRP load balance and equipment
CN102123105A (en) * 2011-04-20 2011-07-13 杭州华三通信技术有限公司 Method and equipment for switching between standard VRRP (Virtual Router Redundancy Protocol) and load balancing VRRP

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107547339A (en) * 2017-06-14 2018-01-05 新华三技术有限公司 A kind of gateway media access control MAC address feedback method and device

Also Published As

Publication number Publication date
CN102710532B (en) 2015-01-14

Similar Documents

Publication Publication Date Title
JP5331163B2 (en) IP address assignment system, DHCP server, and IP address assignment method
CN101316236B (en) Vrrp backup group load sharing method and router
CN102859973B (en) Method, apparatus and system for address resolution
EP3135072B1 (en) Selection of anchor controllers for access points within a network environment
JP5727055B2 (en) System and method for session resiliency in a geographically redundant gateway
CN101656763B (en) IP address automatic distribution method, client and server
CN101815007B (en) Fast switching method based on VRRP load balance and equipment
CN102752152B (en) Method and device used for configuring VRRP (Virtual Router Redundancy Protocol) backup group
US9008084B2 (en) Method of IPv6 at data center network with VM mobility using graceful address migration
CN102833721B (en) Wireless roaming data forwarding method and wireless access point
CN102333027B (en) Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
US9306801B2 (en) Select on of anchor controllers for client devices within a network environment
US9071612B2 (en) Service providing system
WO2015172109A1 (en) Multicast transmissions in a network environment with user anchor controllers
US8989189B2 (en) Scaling IPv4 in data center networks employing ECMP to reach hosts in a directly connected subnet
EP3432550A1 (en) Acceleration proxy device, acceleration proxy method and content management system
EP3134997A1 (en) Method and system for handling failure in a coordinated multicast streaming system
WO2012174914A1 (en) Method and device for controlling address configuration manner
CN105721328B (en) VRRP load balancing method, device and router
WO2011100907A2 (en) Parameter configuration method and network element device
WO2016065804A1 (en) Traffic load balancing method and routing device
CN103200117A (en) Method and device of load balancing
EP3135071A1 (en) User anchor controller communication within a network environment
WO2012021827A1 (en) Systems and methods for managing network address information
US11329915B2 (en) Router and method for operating a communication system having redundant routers

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230627

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.