CN102739544A - Method and device for switching VRRP (Virtual Router Redundancy Protocol) standard mode to load balancing mode - Google Patents

Method and device for switching VRRP (Virtual Router Redundancy Protocol) standard mode to load balancing mode Download PDF

Info

Publication number
CN102739544A
CN102739544A CN2012102262283A CN201210226228A CN102739544A CN 102739544 A CN102739544 A CN 102739544A CN 2012102262283 A CN2012102262283 A CN 2012102262283A CN 201210226228 A CN201210226228 A CN 201210226228A CN 102739544 A CN102739544 A CN 102739544A
Authority
CN
China
Prior art keywords
mode
load
mac address
virtual mac
member device
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2012102262283A
Other languages
Chinese (zh)
Inventor
郑艳涛
甘长华
余国庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou H3C 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 CN2012102262283A priority Critical patent/CN102739544A/en
Publication of CN102739544A publication Critical patent/CN102739544A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

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

Abstract

The invention discloses a method and device for switching a VRRP (Virtual Router Redundancy Protocol) standard mode to a load balancing mode. In the application, after member equipment in a Mater sate in the standard mode is switched into the load balancing mode, a virtual MAC (Media Access Control) address in the standard mode is kept for a certain time, and thus the traffic interruption caused by the mode switching of a VRRP backup group is avoided. In addition, if the member equipment in the load balancing mode is in the Master state, and simultaneously has a virtual MAC address in the load balancing mode and a virtual MAC address in the standard mode, the member equipment responds the virtual MAC address in the load balancing mode to a network host, instead of the virtual MAC address to be deleted in the standard mode, and thus the situation that the virtual MAC address to be abandoned in the standard model is still learned by a network host after the VRRP backup group starts to be switched to the load balancing mode can be avoided.

Description

Be used for the method and apparatus that the VRRP mode standard is switched to load-sharing mode
Technical field
The present invention relates to VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) technology, particularly be 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 MediaAccess 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, the VRRP backup group of using this method can switch to load-sharing mode from mode standard; And this method is included in the following steps that every member device in the VRRP backup group is carried out:
After this machine switches to load-sharing mode from the main Master state under the mode standard; Timing is carried out in the virtual media access control MAC address of the mode standard that begins this organizational security is deposited, so that this machine can utilize the virtual mac address of virtual mac address and the mode standard of load-sharing mode to realize the flow forwarding of VRRP backup group before timing arrives;
After timing arrives preset time, the VRRP backup group that this organizational security is deposited is deleted at the virtual mac address of mode standard.
Said preset time is ARP ageing time or neighbours' ageing time.
This method further is included in the following steps that every member device in the VRRP backup group is carried out:
After this machine switches to load-sharing mode from the Master state under the mode standard; If this machine is in the Master state under the load-sharing mode; Then to network host this machine be in Master state load-sharing mode under during in the request that is used to obtain virtual mac address initiated, choose a member device, also the virtual mac address of the load-sharing mode of selected member device replied to network host through the load-balancing algorithm of being scheduled to.
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 neighbor advertisement NA message realized.
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 Master state.
A kind of VRRP of being used for mode standard that the application provides is to the load-sharing mode device for switching, and the VRRP backup group of using this device can switch to load-sharing mode from mode standard; And, this device be included in that every member device in the VRRP backup group carries like lower module:
Preserve timing module; After this machine switches to load-sharing mode from the Master state under the mode standard; The virtual mac address of the mode standard that begins this organizational security is deposited carries out timing, so that this machine can utilize the virtual mac address of virtual mac address and the mode standard of load-sharing mode to realize the flow forwarding of VRRP backup group before timing arrives;
The address removing module after timing arrives preset time, is deleted the VRRP backup group that this organizational security is deposited at the virtual mac address of mode standard.
Said preset time is ARP ageing time or neighbours' ageing time.
This device be included in further that every member device in the VRRP backup group carries like lower module:
Reply processing module; After this machine switches to load-sharing mode from the Master state under the mode standard; If this machine is in the Master state under the load-sharing mode; Then to network host this machine be in Master state load-sharing mode under during in the request that is used to obtain virtual mac address initiated, choose a member device, also the virtual mac address of the load-sharing mode of selected member device replied to network host through the load-balancing algorithm of being scheduled to.
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 ND request message, said replying through the ND message.
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.
This shows; Based on the technical scheme that the application provided; The member device that is in the Master state under the mode standard is after switching to load-sharing mode; Can the virtual mac address of mode standard be kept the regular hour, thereby make the VRRP backup group can under load-sharing mode, continue the flow forwarding that support does not refresh the network host of virtual mac address as yet, thereby can avoid the flow interrupt that mode switch caused of VRRP backup group.
In addition preferably; Based on the technical scheme that the application provided; If member device is in the Master state, and has the virtual mac address of load-sharing mode and the virtual mac address of mode standard simultaneously at load-sharing mode; Then this member device is replied the virtual mac address under the load-sharing mode rather than is about to the virtual mac address of the mode standard of deletion to network host; Thereby can avoid network host to begin after load-sharing mode switches, still to learn to be about to the virtual mac address of the mode standard abandoned at the VRRP backup group, thereby can avoid network host owing to use the flow interrupt that virtual mac address caused of the mode standard of having been abandoned later in the above-mentioned retention time.
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 is in order effectively to avoid owing to the VRRP backup group switches the flow interrupt that is caused from mode standard to load-sharing mode; After the member device that is in the Master state under the mode standard switches to load-sharing mode; Keep deleting again behind the preset time by the virtual mac address of this member device with the mode standard of its preservation; So that this member device can utilize the virtual mac address of virtual mac address and the mode standard of load-sharing mode to realize the flow forwarding of VRRP backup group before preset time arrives; Thereby the flow that can either guarantee the network host of VRRP backup group support under load-sharing mode having refreshed virtual mac address is transmitted, and can make the VRRP backup group under load-sharing mode, continue the flow forwarding that support does not refresh the network host of virtual mac address as yet again.
In the practical application, the network for supporting IPv4 can be set at above-mentioned preset time with ARP (Address Resolve Protocol, address resolution protocol) ageing time; And, then can neighbours' ageing time be set at above-mentioned preset time for the network of supporting IPv6.Certainly, for other network environments, also exist other possible modes can set above-mentioned preset time, present embodiment is just given unnecessary details at this no longer one by one.
In addition, every Master state under mode standard switches to the member device of load-sharing mode, all can in above-mentioned preset time, have the virtual mac address of two kinds of forms of load-sharing mode and mode standard simultaneously.But if this member device load-sharing mode be in the Master state and its be in Master state load-sharing mode under during in receive the request that is used to obtain virtual mac address of network host initiation; Then this member device need be chosen member device load-sharing mode under, also the virtual mac address of the load-sharing mode of selected member device replied to network host through predetermined load-balancing algorithm, rather than the virtual mac address of the mode standard of its preservation is replied to network host.Like this; Can avoid network host to begin after load-sharing mode switches, still to learn to be about to the virtual mac address of the mode standard abandoned at the VRRP backup group, thereby can avoid network host owing to still use the flow interrupt that virtual mac address caused of mode standard later at above-mentioned preset time.
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 pass through ND (Neighbor Discovery; Neighbours' discovery) NS (the Neighbor Solicitation of agreement; Neighbours inquiry) message is realized the above-mentioned request that is used to obtain virtual mac address, is realized above-mentioned replying through NA (NeighborAdvertisement, the neighbor advertisement) 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.
When concrete the realization; The situation of the member device of Backup state possibly occur being under the mode standard, the situation of the member device of Master state also possibly occur being under the mode standard prior to the member device switching of Backup state prior to the member device switching of Master state.
Switch earlier if be in the member device of Backup state under the mode standard, then:
Having the member device that is in the Backup state under the mode standard temporarily is in the Master state and is distributed the virtual mac address of load-sharing modes by other member devices that this member device is responsible for load-sharing mode at load-sharing mode; Meanwhile, the member device that is in the Master state under the mode standard still continues to keep the stable of flow under mode standard;
After treating under mode standard, to be in last completion switching of member device of Master state in the VRRP backup group; This member device can take over load-sharing mode the Master state, and for himself the distribution load-sharing mode virtual mac address; But this member device will be deleted rather than deletion immediately behind the virtual mac address maintenance preset time of mode standard again, after all member devices are all accomplished switching, still can continue to keep the flow forwarding of mode standard to guarantee the VRRP backup group.
Switch earlier if be in the member device of Master state under the mode standard, then:
The member device that switches at first can be in the Master state because priority is the highest always and distribute the virtual mac address of load-sharing modes by other member devices that this member device is responsible for load-sharing mode under load-sharing mode, can be according to the height of priority lift the Backup state that become the Master state of mode standard and switch to load-sharing mode from the Master state of mode standard through gravity treatment successively and be in all the other member devices of Backup state under the mode standard;
But no matter member device is in Master state or Backup state under load-sharing mode; Every member device is after the Master state from mode standard switches to load-sharing mode; The capital keeps the virtual mac address of its mode standard of when mode standard is in the Master state, being preserved to delete rather than deletion immediately behind the preset time again; With guarantee in the VRRP backup group is during the gravity treatment of carrying out mode standard is lifted and after all member devices are all accomplished switching during in, still can continue to keep the flow forwarding of mode standard.
This shows; No matter be the member device that is in the Backup state under the mode standard switch earlier, or mode standard under be in the Master state member device switch earlier; As long as the virtual mac address of mode standard can keep preset time under load-sharing mode; Can both make the VRRP backup group under load-sharing mode, continue the flow forwarding that support does not refresh the network host of virtual mac address as yet, and then the flow interrupt that can avoid the VRRP backup group after switching, to cause.
In the practical application; Can realize the transfer sequence of member device through manual configuration to all member devices in the VRRP backup group; Also can control the transfer sequence of all member devices through the VRRP message, certainly, also exist other possible modes can realize the member device transfer sequence by the member device that is in the Master state in mode standard in the VRRP backup group; Control, 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 from mode standard after load-sharing mode switches; Suppose that the member device B, the C that are in the Backup state by mode standard switch to load-sharing mode earlier; Then, member device B temporarily is in the Master state of load-sharing mode because priority is higher than member device C, and 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, has 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 mac address 0000-5e00-0101 of virtual ip address 10.1.1.1.1/24 and the mode standard of VRRP backup group to bear the routing forwarding of network host 1 ~ 3.
See also Fig. 4 c; 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 at the virtual mac address 000f-e2ff-0013 that has distributed load-sharing mode for himself, and the temporary transient virtual mac address 0000-5e00-0101 that keeps the mode standard of VRRP backup group; At this moment; Because network host 1 ~ 3 do not refresh the virtual mac address 0000-5e00-0101 that learns before this yet, thereby the member device A that under load-sharing mode, is in the Master state still utilizes the virtual mac address 0000-5e00-0101 of virtual ip address 10.1.1.1.1/24 and the mode standard of VRRP backup group to bear the routing forwarding of network host 1 ~ 3.
See also Fig. 4 d, during the virtual mac address 0000-5e00-0101 of the temporary transient retention criteria pattern of member device A in, initiate network host 4 has sent the ARP request message to this VRRP backup group; Though the virtual mac address 0000-5e00-0101 that member device A still has mode standard at this moment; But this member device A replys member device B to network host 4 at the virtual mac address 000f-e2ff-0011 of load-sharing mode through replying the ARP message according to predetermined load balancing strategy.
After this, treat that preset time arrives after, member device A can delete the virtual mac address 0000-5e00-0101 of mode standard.
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.
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 is included in following steps from every member device execution of VRRP backup group to the method for load-sharing mode switching in the present embodiment:
Step 510 after this machine switches to load-sharing mode from mode standard, judges whether this machine was in the Master state before switching under mode standard;
If, represent that then the virtual mac address of the mode standard that this organizational security is deposited need keep preset time, thereby execution in step 520
Otherwise, then represent the virtual mac address of the mode standard that this machine need not preserved thereby process ends.
Step 520; The VRRP backup group that begins this organizational security is deposited carries out timing at the virtual mac address of mode standard; And this machine of making can utilize the virtual mac address of virtual mac address and the mode standard of load-sharing mode to realize the flow forwarding of VRRP backup group before timing arrives simultaneously, waited for execution in step 530 then.
Step 530; After timing arrives preset time; The virtual mac address deletion of the mode standard of the VRRP backup group that this organizational security is deposited, and this machine of making only can utilize the virtual mac address of load-sharing mode to realize the flow forwarding of VRRP backup group, process ends then after timing arrives.
So far, this flow process finishes.
Every member device carry out above-mentioned flow process during in; Also can participate in the election process of load-sharing mode; Correspondingly, be used for the VRRP mode standard can also be included in step from every member device execution of VRRP backup group to the method for load-sharing mode switching in the present embodiment:
After this machine switches to load-sharing mode from the Master state under the mode standard; If this machine is in the Master state under the load-sharing mode; Then to network host this machine be in Master state load-sharing mode under during in the request that is used to obtain virtual mac address initiated, choose a member device, also the virtual mac address of the load-sharing mode of selected member device replied to network host through the load-balancing algorithm of being scheduled to.
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, and this device is applied to the VRRP backup group, and this VRRP backup group can switch to load-sharing mode from mode standard;
For avoiding the flow interrupt that mode switch caused of VRRP backup group, this device be included in that every member device in the VRRP backup group carries like lower module:
Preserve timing module, after this machine switched to load-sharing mode from the Master state under the mode standard, the VRRP backup group that begins this organizational security is deposited carried out timing at the virtual mac address of mode standard; So that this machine can utilize the virtual mac address of virtual mac address and the mode standard of load-sharing mode to realize the flow forwarding of VRRP backup group before timing arrives;
The address removing module after timing arrives preset time, is deleted the VRRP backup group that this organizational security is deposited at the virtual mac address of mode standard.
Preferably; For fear of the virtual mac address of the mode standard that has network host to begin after load-sharing mode switches, to learn to be about to be abandoned at the VRRP backup group, this device further be included in every member device carrying in the VRRP backup group like lower module:
Reply processing module; After this machine switches to load-sharing mode from the Master state under the mode standard; If this machine is in the Master state under the load-sharing mode; Then to network host this machine be in Master state load-sharing mode under during in the request that is used to obtain virtual mac address initiated, choose a member device, also the virtual mac address of the load-sharing mode of selected member device replied to network host through the load-balancing algorithm of being scheduled to.
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 Virtual Router Redundancy Protocol VRRP mode standard to the method that load-sharing mode switches, and it is characterized in that the VRRP backup group of using this method can switch to load-sharing mode from mode standard; And this method is included in the following steps that every member device in the VRRP backup group is carried out:
After this machine switches to load-sharing mode from the main Master state under the mode standard; Timing is carried out in the virtual media access control MAC address of the mode standard that begins this organizational security is deposited, so that this machine can utilize the virtual mac address of virtual mac address and the mode standard of load-sharing mode to realize the flow forwarding of VRRP backup group before timing arrives;
After timing arrives preset time, the VRRP backup group that this organizational security is deposited is deleted at the virtual mac address of mode standard.
2. method according to claim 1 is characterized in that, said preset time is ARP ageing time or neighbours' ageing time.
3. 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:
After this machine switches to load-sharing mode from the Master state under the mode standard; If this machine is in the Master state under the load-sharing mode; Then to network host this machine be in Master state load-sharing mode under during in the request that is used to obtain virtual mac address initiated, choose a member device, also the virtual mac address of the load-sharing mode of selected member device replied to network host through the load-balancing algorithm of being scheduled to.
4. method according to claim 3 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 neighbor advertisement NA message realized.
5. method according to claim 1; 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 Master state.
6. one kind is used for the VRRP mode standard to the load-sharing mode device for switching, it is characterized in that, the VRRP backup group of using this device can switch to load-sharing mode from mode standard; And, this device be included in that every member device in the VRRP backup group carries like lower module:
Preserve timing module; After this machine switches to load-sharing mode from the Master state under the mode standard; The virtual mac address of the mode standard that begins this organizational security is deposited carries out timing, so that this machine can utilize the virtual mac address of virtual mac address and the mode standard of load-sharing mode to realize the flow forwarding of VRRP backup group before timing arrives;
The address removing module after timing arrives preset time, is deleted the VRRP backup group that this organizational security is deposited at the virtual mac address of mode standard.
7. device according to claim 6 is characterized in that, said preset time is ARP ageing time or neighbours' ageing time.
8. 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:
Reply processing module; After this machine switches to load-sharing mode from the Master state under the mode standard; If this machine is in the Master state under the load-sharing mode; Then to network host this machine be in Master state load-sharing mode under during in the request that is used to obtain virtual mac address initiated, choose a member device, also the virtual mac address of the load-sharing mode of selected member device replied to network host through the load-balancing algorithm of being scheduled to.
9. device according to claim 8 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 ND request message, said replying through the ND message.
10. device according to claim 6; 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.
CN2012102262283A 2012-06-28 2012-06-28 Method and device for switching VRRP (Virtual Router Redundancy Protocol) standard mode to load balancing mode Pending CN102739544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2012102262283A CN102739544A (en) 2012-06-28 2012-06-28 Method and device for switching VRRP (Virtual Router Redundancy Protocol) standard mode to load balancing mode

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2012102262283A CN102739544A (en) 2012-06-28 2012-06-28 Method and device for switching VRRP (Virtual Router Redundancy Protocol) standard mode to load balancing mode

Publications (1)

Publication Number Publication Date
CN102739544A true CN102739544A (en) 2012-10-17

Family

ID=46994356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2012102262283A Pending CN102739544A (en) 2012-06-28 2012-06-28 Method and device for switching VRRP (Virtual Router Redundancy Protocol) standard mode to load balancing mode

Country Status (1)

Country Link
CN (1) CN102739544A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553866A (en) * 2014-10-29 2016-05-04 中兴通讯股份有限公司 Traffic load balancing method and routing equipment
CN113285874A (en) * 2021-05-20 2021-08-20 烽火通信科技股份有限公司 Gateway backup method and device based on VRRP single instance

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6556547B1 (en) * 1998-12-15 2003-04-29 Nortel Networks Limited Method and apparatus providing for router redundancy of non internet protocols using the virtual router redundancy protocol
CN101635648A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Method for managing and rapidly switching virtual redundant route protocol group
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6556547B1 (en) * 1998-12-15 2003-04-29 Nortel Networks Limited Method and apparatus providing for router redundancy of non internet protocols using the virtual router redundancy protocol
CN101635648A (en) * 2009-08-05 2010-01-27 中兴通讯股份有限公司 Method for managing and rapidly switching virtual redundant route protocol group
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 (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105553866A (en) * 2014-10-29 2016-05-04 中兴通讯股份有限公司 Traffic load balancing method and routing equipment
CN113285874A (en) * 2021-05-20 2021-08-20 烽火通信科技股份有限公司 Gateway backup method and device based on VRRP single instance

Similar Documents

Publication Publication Date Title
US10116518B2 (en) Mechanism for management controllers to learn the control plane hierarchy in a data center environment
US10230684B2 (en) Method, apparatus, and edge node controller for allocating edge node
JP5331163B2 (en) IP address assignment system, DHCP server, and IP address assignment method
EP3047631B1 (en) Redundancy network protocol system
US9513970B2 (en) Optimizing handling of virtual machine mobility in data center environments
CN101316236B (en) Vrrp backup group load sharing method and router
US20140177639A1 (en) Routing controlled by subnet managers
CN102333027B (en) Traffic load sharing realization method based on virtual router redundancy protocol extend (VRRPE) backup group and realization apparatus thereof
CN102859973A (en) Method, apparatus and system for address resolution
CN100490411C (en) Method for studying MAC address and network element apparatus
CN102223303A (en) Load equilibrium method based on transparent interconnection of lots of links (TRILL) and routing bridge (RB)
JP2012249213A5 (en) IP address assignment system, DHCP server, and IP address assignment method
EP3432550A1 (en) Acceleration proxy device, acceleration proxy method and content management system
EP1925128A1 (en) Optimized synchronization of mac address tables in network interconnection apparatuses
CN103001868A (en) Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set
CN102801623A (en) Multi-access data transmitting method and device
US20220045946A1 (en) Router and Method for Operating a Communication System Having Redundant Routers
CN104202420A (en) Method and device for supporting expansion of internet-of-things middleware cluster
CN106716870A (en) Local packet switching at a satellite device
CN102202004A (en) Routing error processing method and device and routing equipment
CN102647360A (en) Method and equipment for transmitting messages in VRRPE (virtual router redundancy protocol equilibrium)
CN102572012A (en) Message processing method, switchboard and system
CN102739544A (en) Method and device for switching VRRP (Virtual Router Redundancy Protocol) standard mode to load balancing mode
CN109788038A (en) A kind of intelligent heartbeat method
JP5437290B2 (en) Service distribution method, service distribution device, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20121017