CN101707570B - Load balancing method and equipment in VRRP scene - Google Patents
Load balancing method and equipment in VRRP scene Download PDFInfo
- Publication number
- CN101707570B CN101707570B CN 200910260386 CN200910260386A CN101707570B CN 101707570 B CN101707570 B CN 101707570B CN 200910260386 CN200910260386 CN 200910260386 CN 200910260386 A CN200910260386 A CN 200910260386A CN 101707570 B CN101707570 B CN 101707570B
- Authority
- CN
- China
- Prior art keywords
- interface
- router
- vrrp
- priority
- vrrp group
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a load balancing method and equipment in a VRRP scene. The method and the equipment can effectively solve the problem that outlet bandwidth load is unbalanced after the down link of a router becomes abnormal under the condition of double-outlet networking of a small data center, and can guarantee the load balancing of outlet bandwidth and improve the utilization rate and the service quality of outlet bandwidth of users.
Description
Technical field
The present invention relates to communication technical field, load-balancing method and equipment in particularly a kind of VRRP scene.
Background technology
Have the target that a large amount of visit capacities and user are the information service providers, but a large amount of visits brings white elephant can for the network of data center.
Along with the user number of Internet application service constantly increases, the network of data center becomes and sinks beneath one's burden, and especially the egress router forwarding performance of data center network and outlet bandwidth all face great challenge.
Simultaneously, the reliability of data center is the problem that the user is concerned about most.
In order to improve the reliability of data center, the redundancy that the designing requirement of data center network is high.Promptly all network nodes all must guarantee to have the redundant node of a symmetry; All links all must guarantee to have the redundant link of a symmetry; So that when a node or a link break down; Network can switch to flow on another symmetry redundant node or link fast, reduces time of service interruption, improves the reliability of system.
Network dual exit is present the most frequently used a kind of scheme that improves data center's Egress node and link reliability.
Network dual exit can be twice the outlet bandwidth expansion, and the egress router forwarding performance doubles.Simultaneously, also can realize the Redundancy Design of Egress node and link.
Network dual exit mainly contains two kinds at present:
A kind of is that two links of outlet are connected respectively to the different ISP of operator;
Another kind then exports two links and is connected to the same ISP of operator.
Latter event is the main research scene of the present invention.
It is less that so-called small-sized data center refers to the server scale, the relatively simple data center of network configuration.
In the prior art, the sketch map of small-sized data center framework is as shown in Figure 1.
There is an apparent in view characteristic in small-sized data center, is exactly owing to the server small scale, also can be very strict to cost control.Usually can use comparatively cheap switch, and in order to reduce the quantity of switch, usually can be with core, converge, the switch of many levels such as access is integrated on the switch of same aspect.
That is to say, use two cheap Layer 2 switch simultaneously as core, converge, access switch uses, router, fire compartment wall and server all directly are linked on the core switch, divide through the different network segments.
From in logic, just be equivalent to fire compartment wall direct-connected below egress router.
In order to guarantee the load balancing of the two outlets of small-sized data center, prior art mainly contains dual mode: equal-cost route scheme and Virtual Router Redundancy Protocol (Virtual Router Redundancy Protocol, VRRP) scheme.
As shown in Figure 2, be the structural representation of the pairing network system of a kind of equal-cost route scheme in the prior art.
Slave firewall to two egress router disposes two equal-cost routes, guarantees that uplink traffic can be distributed on two outbounds uniformly.
The advantage of equal-cost route scheme is that configuration is simple, and two outlet load balancing effect is fine.
As shown in Figure 3, be the structural representation of the pairing network system of a kind of VRRP scheme in the prior art.
Configuration VRRP group between two egress routers.
Can be distributed to uniformly on two outbounds in order to ensure uplink traffic, can dispose 4 groups of VRRP usually.
VRRP group 1 (M1 and S1) and VRRP organize 3 (M3 and S3) on path L1 and L2, and active and standby each other.
VRRP group 2 (M2 and S2) and VRRP organize 4 (M4 and S4) on path L3 and L4, and active and standby each other.
The advantage of this scheme is that two outlet load balancing effects are fine.
In realizing process of the present invention, the inventor finds that there is following problem at least in prior art:
The shortcoming of equal-cost route scheme is: because Layer 2 switch is placed between fire compartment wall and the router; So when the link between egress router and the switch occurs when unusual; Fire compartment wall can't this change in topology of perception; So adjustment can not appear in the equal-cost route on the fire compartment wall, uplink traffic remains generally removes router-A, and second half removes router B.Like this, can cause having half the flow to be abandoned, cause serious service disconnection by switch.
The shortcoming of VRRP scheme is: when the link between egress router and the switch occurs when unusual, the VRRP group is switched, and guarantees that flow does not interrupt.But at this moment all flows all can pass through a link, and another link then is in idle state, thereby cause the valuable wide area network bandwidth resources of user to have only 50% utilance.
Summary of the invention
The present invention provides load-balancing method and the equipment in a kind of VRRP scene, can under the condition of small-sized data center two outlet networking, solve the router down link effectively and the unbalanced problem of unusual back outlet bandwidth load occur.
For achieving the above object, the load-balancing method in a kind of VRRP scene of the present invention is applied to comprise in the network system of at least two routers that wherein, said each router comprises two interfaces at least, and said method specifically may further comprise the steps:
Each said router is provided with Interface status, guarantees to exist on the same router main interface that belongs to different VRRP groups and from interface, and the main interface of same VRRP group and be on the different routers from interface;
Said router is arranged to binding relationship with the main interface that adheres to different VRRP groups on this router separately with from interface, and detects and the said state that constitutes the main interface of binding relationship from interface from interface through said;
When said router constitutes the main interface of binding relationship when unusual through detecting from interface with said from interface; The said priority of said router adjustment from interface; Make saidly to change to this main interface, bear this flow load from VRRP group at interface place from VRRP group at interface place from interface;
When said router does not constitute the main interface of binding relationship when unusual through detecting from interface with said from interface, said router continues to detect and the said state that constitutes the main interface of binding relationship from interface from interface through said.
Preferably, each said router is provided with Interface status, is specially:
Said router is respectively the main interface that belongs to different VRRP group on this router and different priority parameters is set from interface;
Wherein, confirm that the high interface of the pairing priority-level of priority parameters is the main interface in this interface place VRRP group, and the low interface of the pairing priority-level of definite priority parameters for this interface place VRRP in organizing from interface.
Preferably; When said router constitutes the main interface of binding relationship when unusual through detecting from interface with said from interface; The said priority of said router adjustment from interface; Make this change to this main interface, bear this flow load from the VRRP group at interface place, be specially from the VRRP group at interface place from interface:
The said priority parameters of said router adjustment from interface; Make the pairing priority-level of said priority parameters be higher than the pairing priority-level of priority parameters of this current main interface from the VRRP group at interface place from interface; So that saidly become main interface, bear this flow load from the VRRP group of interface place from interface.
Preferably, the said priority parameters from interface of said router adjustment is specially:
Said router increases or reduces said priority parameters numerical value from interface according to preset upgrading numerical value, improves the pairing priority-level of said priority parameters from interface.
Preferably, said method also comprises:
Under initial condition, the priority parameters value of the main interface in each VRRP group equates that all the priority parameters value from interface in each VRRP group all equates.
On the other hand, the present invention also comprises a kind of router, is applied to comprise that in the network system of at least two said routers, said router comprises two interfaces at least, specifically comprises:
Configuration module; Be used to be provided with the state of each interface on the said router; Guarantee to exist on the same router main interface that belongs to different VRRP groups and from interface; And the main interface of same VRRP group and be on the different routers, and be arranged to binding relationship with the main interface that belongs to different VRRP groups on the said router with from interface from interface;
Detection module is connected with said configuration module, is used for detecting on the said router by that said configuration module disposed and the said state that constitutes the main interface of binding relationship from interface from interface through said;
Processing module; Be connected with said detection module; Be used for constituting the main interface of binding relationship when unusual through detecting from interface from interface with said when said detection module; Adjust said priority, make saidly to change to this main interface, bear this flow load from VRRP group at interface place from VRRP group at interface place from interface from interface.
Preferably, said configuration module is used to be provided with the state of each interface on the said router, is specially:
Said configuration module is respectively the main interface that belongs to different VRRP group on the said router and from interface priority parameters is set;
Wherein, confirm that the high interface of the pairing priority-level of priority parameters is the main interface in this interface place VRRP group, and the low interface of the pairing priority-level of definite priority parameters for this interface place VRRP in organizing from interface.
Preferably; Said router also comprises parameter adjustment module; Be connected with said processing module with said detection module, be used for constituting the main interface of binding relationship when unusual through detecting from interface from interface, adjust said priority parameters from interface with said when said detection module; Make the pairing priority-level of said priority parameters be higher than the pairing priority-level of priority parameters of this current main interface from the VRRP group of interface place from interface; Thereby said processing module changes to this main interface from the VRRP group of interface place with said from interface, bears this flow load from interface place VRRP group.
Preferably, the said priority parameters from interface of said parameter adjustment module adjustment is specially:
Said parameter adjustment module increases or reduces said priority parameters numerical value from interface according to preset upgrading numerical value, improves the pairing priority-level of said priority parameters from interface.
Preferably, under initial condition, the priority parameters value of the main interface in each VRRP group of said configuration module configures all equates, and the priority parameters value from interface that disposes in each VRRP group all equates.
Compared with prior art, the present invention has the following advantages:
Through using technical scheme of the present invention, can under the condition of small-sized data center two outlet networking, solve the router down link effectively and the unbalanced problem of unusual back outlet bandwidth load occur.Can guarantee the load balancing of outlet bandwidth, improve user's outlet bandwidth utilance and service quality.
Description of drawings
Fig. 1 is the sketch map of the middle-size and small-size data center of prior art framework;
Fig. 2 is the structural representation of the pairing network system of a kind of equal-cost route scheme in the prior art;
Fig. 3 is the structural representation of the pairing network system of a kind of VRRP scheme in the prior art;
Fig. 4 is the schematic flow sheet of the load-balancing method in a kind of VRRP scene proposed by the invention;
Fig. 5 is the structural representation of a kind of concrete VRRP scene proposed by the invention;
Fig. 6 is the structural representation of the concrete application scenarios of the load-balancing method in a kind of VRRP scene proposed by the invention;
Fig. 7 is the structural representation of the concrete application scenarios of the load-balancing method in a kind of VRRP scene proposed by the invention;
Fig. 8 is the structural representation of the concrete application scenarios of the load-balancing method in a kind of VRRP scene proposed by the invention;
Fig. 9 is the structural representation of the concrete application scenarios of the load-balancing method in a kind of VRRP scene proposed by the invention;
Figure 10 is the structural representation of a kind of router proposed by the invention.
Embodiment
Under the two outlet of existing small-sized data center network networking; The VRRP scheme is switched the problem that causes half outlet bandwidth resources idle; The present invention proposes a kind of method of between the VRRP group, carrying out interface principal and subordinate switching flexibly; Can remedy the deficiency of traditional VRRP scheme, use outlet bandwidth fully, guarantee two outlet load balancing simultaneously.
Core concept of the present invention is, at the interface of same egress router between two different VRRP, by be in the VRRP group Slave (from) interface of state initiatively another VRRP of Track (detections) organize the Interface status that is in Master (master) state.If find to be occurred unusual by the main interface of Track; The interface that then is in the Slave state in this VRRP group can initiatively improve the VRRP priority of self, also successfully upgrades to Master with the main interface competition Master that is positioned at the same VRRP group on other egress routers.
The VRRP group that so just can guarantee the both sides router is intersected switching simultaneously, the egress router load balancing.
Based on above-mentioned technical thought; The present invention proposes the load-balancing method in a kind of VRRP scene; Be applied to comprise that in the network system of at least two routers, wherein each router comprises two interfaces at least, belong in the different VRRP groups; Through being provided with in advance; Makes to form between the interface that adheres to two different VRRP groups on the same router separately and bind the relation of detection, and an interface in two interfaces of said each router is the main interface of this interface place VRRP group, another interface for this interface belong to that another VRRP organizes from interface.
Concrete, the schematic flow sheet of said load-balancing method is as shown in Figure 4, specifically may further comprise the steps:
Step S401, each router are provided with the state of each interface, and guarantee to have master and slave two interfaces that belong to different VRRP groups on the same router at least, and the master and slave interface of same VRRP group is on the different routers.
In the present embodiment, to comprise that at least two VRRP group is that example describes, router-A is provided with the main interface M1 in the VRRP group 1, in the VRRP group 2 from interface S2, router B is provided with the main interface M2 in the VRRP group 2, be provided with VRRP group 1 from interface S1.
In addition, in embodiments of the present invention, also needing further be each master and slave interface setting initial priority parameter, and when main interface is unusual, constitutes the upgrading numerical value from the priority parameters of interface increase of binding relationship with it.
Step S402, on same router, will adhere to the main interface of two different VRRP groups separately and be arranged to binding relationship from interface, and detecting on this router and the state of main interface that should constitute another VRRP group of binding relationship from interface from interface through a VRRP group.
In this step; Be actually by accomplishing state-detection from interface (second interface of each router) the main interface (first interface of each router) of VRRP group 2 or VRRP group 1 as VRRP group 1 or VRRP group 2; Because above-mentioned detection interface and interface to be detected is positioned at same router, above-mentioned detection is accomplished.
In the present embodiment, by the main interface M2 from interface S 1 detection VRRP group 2 of VRRP group 1, by the main interface M1 from interface S2 detection VRRP group 1 of VRRP group 2.
When router through detecting from interface and should constituting main interface of binding relationship when unusual from interface, then with this main interface change to this correspondence VRRP group from interface, and execution in step S403;
When router through not detecting from interface and should constituting the main interface of binding relationship when unusual from interface, return step S402 and continue to detect.
Step S403, the said priority from interface of adjustment make this change to the main interface of the VRRP group at place from interface, bear this flow load from VRRP group at interface place.
Particularly, in the present invention, said priority from interface is to set and realize through adjusting said priority parameters from interface.The concrete implementation of this step is:
When router through detect from interface with should cause unusually from a certain VRRP group main interface that interface constitutes binding relationship this main interface change to the place the VRRP group from interface the time; Router is according to predetermined policy; The upgrading numerical value that the priority parameters value from interface of increase or minimizing and this main interface formation binding relationship is preset; Make the pairing priority-level of this priority parameters be higher than the pairing priority-level of priority parameters of this initial main interface from the VRRP group at interface place, and then competition become this main interface from the VRRP group at interface place from interface.
It is to be noted; Above-mentioned upgrading numerical value is that a pre-set priority parameters changes value; Increase or minimizing through this priority parameters variable quantity; Can make the pairing priority-level of the priority parameters from interface in the same VRRP group be higher than the pairing priority-level of priority parameters of the initial main interface this VRRP group; Thereby accomplish the switching from interface and main interface, every value that can reach above-mentioned technique effect all can be used as above-mentioned upgrading numerical value, and the variation of concrete numerical values recited can't influence protection scope of the present invention.
And, in order to simplify flow process is set, under initial condition, the priority parameters value that the main interface in each VRRP group can be set equates that all the priority parameters value from interface in each VRRP group all equates.
Based on the setting of above-mentioned priority parameters, each router can be realized the adjustment of Interface status through the priority parameters of revising each interface, thereby, accomplish dynamic equalization to load.
In order further to set forth technological thought of the present invention, combine concrete application scenarios at present, technical scheme of the present invention is described.
In technical scheme of the present invention, the interface that is arranged in router can be that different physical interfaces also can be the logic interfacing that each physical interface is positioned at different VLAN, below, just technical scheme of the present invention is described through concrete interface type.
Shown in Figure 5 for the present invention only deposits the application scenarios of two VRRP groups, in this application scenarios, each router is disposed the VRRP group through self two different interfaces; The main interface M1 of VRRP group 1 is two interfaces that are positioned at router-A with VRRP group 2 from interface S2, VRRP group 1 to organize 2 main interface M2 from interface S1 and VRRP be two interfaces that are positioned at router B, both are active and standby each other; Thereby, in router-A, M1 is detected by S2; In router B, by S1 M2 is detected, based on this kind application scenarios; Technical scheme of the present invention can be handled with reference to above-mentioned flow process shown in Figure 4, at this repeated description no longer.
Need further be pointed out that; Above-mentioned is the simplest a kind of embodiment of technical scheme of the present invention; The first above-mentioned interface and second interface can be two physical interfaces independently; Also can be in same physical interface through the logic interfacing that different VLAN realizes is set, the variation of physical interface type can't influence protection scope of the present invention.
In concrete application scenarios; In fact can also realize through the pattern of four groups of VRRP groups as shown in Figure 3; Under 4 VRRP group scenes; Principle under the principle of the realization flow of present technique scheme and aforementioned 2 VRRP group scene is basic identical, indicate active and standbyly each other, and carries out the intersection detection of downlink status between the different VRRP groups in each egress router in system.
Particularly, to VRRP scene shown in Figure 3, the present invention does following the setting earlier:
A, organize according to two VRRP of following policy configurations on the L3 of the path of the path of RouterA L1 and RouterB:
Wherein, VRRP group 1 interface with RouterA is Master Interface 1 (main interface 1, the back literary composition is called for short M1), is Slave interface 1 (from interface 1, the back literary composition is called for short S1) with the interface of RouterB;
B, organize according to two VRRP of following policy configurations on the L4 of the path of the path of RouterA L2 and RouterB:
Wherein, VRRP group 2 interfaces with RouterA are Master Interface 2 (main interface 2, the back literary composition is called for short M2), are Slave interface 2 (from interface 2, the back literary composition is called for short S2) with the interface of RouterB;
C, system is configured to 100 with the priority parameters unification of each Master Interface, and the priority parameters unification of each Slave interface is configured to 70.
Wherein, it is pointed out that above-mentioned numerical value is just explained for ease and the example that provides can be adjusted as required in practical application, the variation of concrete numerical value does not influence protection scope of the present invention.
D, set up interface and bind testing mechanism in each router:
Set the M1 of the S2 detection VRRP group 1 on the RouterA, if M1 occurs unusual (change to from interface or link transmission and interruption occurs), then the priority parameters of S2 increases by 50 (reaching 120).
Set the M4 of the S3 detection VRRP group 4 on the RouterA, if M4 occurs unusual (change to from interface or link transmission and interruption occurs), then the priority parameters of S3 increases by 50 (reaching 120).
Set the M2 of the S1 detection VRRP group 2 on the RouterB, if M2 occurs unusual (change to from interface or link transmission and interruption occurs), then the priority parameters of S1 increases by 50 (reaching 120).
Set the M3 of the S4 detection VRRP group 3 on the RouterB, if M3 occurs unusual (change to from interface or link transmission and interruption occurs), then the priority parameters of S4 increases by 50 (reaching 120).
Be provided with through above rule, can realize following effect:
As shown in Figure 6, when the M1 of RouterA occurs when unusual, the switching of active and standby interface takes place in the VRRP group 1:
Interface among the RouterB becomes M1 by becoming main interface from Interface status;
Interface among the RouterA is from interface from the main interface Status Change, becomes S1.
After VRRP group 1 is switched; According to prior art; The Master Interface of VRRP group 1, VRRP group 2 and VRRP group 3 all is positioned at RouterB, has only the Master Interface of VRRP group 4 to be positioned at RouterA, causes the flow of two outlet RouterA and RouterB very unbalanced; Directly consequence is exactly that an outlet bandwidth is not enough, and another outlet bandwidth leaves unused.
Adopt the present invention program, because the S2 on RouterA detects the state of the former M1 of VRRP group 1, so when the former M1 among the RouterA takes place when unusual, then the priority parameters of S2 increases by 50 (reaching 120).
In such cases, the S2 priority of current VRRP group 2 is 120, and the priority of M2 is 100, is higher than main interface from the priority of interface, so, the situation of Slave interface competition becoming Master Interface can appear.
Because 120 greater than 100, so the former S2 competition success on the RouterA upgrades to Master Interface, become new M2;
Because 100 less than 120, so the former M2 competition failure on the RouterB is downgraded to the Slave interface, become new S2, so far, accomplish the handover operation of active and standby interface in the VRRP group 2.
After VRRP group 2 was switched, the Master Interface of VRRP group 1, VRRP group 3 all was positioned at RouterB, and the Master Interface of VRRP group 2, VRRP group 4 is positioned at RouterA, thereby, make the flow of two outlet RouterA and RouterB recover balanced.
As shown in Figure 7, when the M3 of RouterB occurs when unusual, the switching of active and standby interface takes place in the VRRP group 3:
Interface among the RouterA becomes M3 by becoming main interface from Interface status;
Interface among the RouterB is from interface from the main interface Status Change, becomes S3.
After VRRP group 3 is switched; Equally, according to prior art, the Master Interface of VRRP group 1, VRRP group 3 and VRRP group 4 all is positioned at RouterA; Have only the Master Interface of VRRP group 2 to be positioned at RouterB; Cause the flow of two outlet RouterA and RouterB very unbalanced, directly consequence is exactly that an outlet bandwidth is not enough, and another outlet bandwidth leaves unused.
Adopt technical scheme of the present invention, because S4 on RouterB detects the state of the former M3 of VRRP group 3, so when the former M3 of RouterB takes place when unusual, then the priority parameters of S4 increases by 50 (reaching 120).
In such cases, the S4 priority of current VRRP group 4 is 120, and the priority of M4 is 100, is higher than main interface from the priority of interface, so, the situation of Slave interface competition becoming Master Interface can appear.
Because 120 greater than 100, so the former S4 competition success on the RouterB upgrades to Master Interface, become new M4;
Because 100 less than 120, so the former M4 competition failure on the RouterA is downgraded to the Slave interface, become new S4, so far, accomplish the handover operation of active and standby interface in the VRRP group 4.
After VRRP group 4 was switched, the Master Interface of VRRP group 1, VRRP group 3 all was positioned at RouterA, and the Master Interface of VRRP group 2, VRRP group 4 all is positioned at RouterB, caused the flow of two outlet RouterA and RouterB to recover balanced.
As shown in Figure 8, when the M2 of RouterB occurs when unusual, the switching of active and standby interface takes place in the VRRP group 2:
Interface among the RouterB is from interface from the main interface Status Change, becomes S2;
Interface among the RouterA becomes M2 by becoming main interface from Interface status.
After VRRP group 2 was switched, according to prior art, the Master Interface of VRRP group 1, VRRP group 2, VRRP group 4 all was positioned at RouterA, has only the Master Interface of VRRP group 3 to be positioned at RouterB, causes the flow of two outlet RouterA and RouterB very unbalanced.Directly consequence is exactly that an outlet bandwidth is not enough, and another outlet bandwidth leaves unused.
Adopt technical scheme of the present invention, because S1 on RouterB detects the state of the former M2 of VRRP group 2, so when the former M2 among the RouterB takes place when unusual, then the priority parameters of S1 increases by 50 (reaching 120).
In such cases, the S1 priority of current VRRP group 1 is 120, and the priority of M1 is 100, is higher than main interface from the priority of interface, so, the situation of Slave interface competition becoming Master Interface can appear.
Because 120 greater than 100, so the former S1 competition success on the RouterB upgrades to Master Interface, become new M1;
Because 100 less than 120, so the former M1 competition failure on the RouterA is downgraded to the Slave interface, become new S1, so far, accomplish the handover operation of active and standby interface in the VRRP group 1.
After VRRP group 1 was switched, the Master Interface of VRRP group 2, VRRP group 4 all was positioned at RouterA, and the Master Interface of VRRP group 1, VRRP group 3 all is positioned at RouterB, caused the flow of two outlet RouterA and RouterB to recover balanced.
As shown in Figure 9, when the M4 of RouterA occurs when unusual, the switching of active and standby interface takes place in the VRRP group 4:
Interface among the RouterB becomes M4 by becoming main interface from Interface status;
Interface among the RouterA is from interface from the main interface Status Change, becomes S4.
After VRRP group 4 is switched; According to prior art; The Master Interface of VRRP group 2, VRRP group 3, VRRP group 4 all is positioned at RouterB, has only the Master Interface of VRRP group 1 to be positioned at RouterA, causes the flow of two outlet RouterA and RouterB very unbalanced; Directly consequence is exactly that an outlet bandwidth is not enough, and another outlet bandwidth leaves unused.
Adopt technical scheme of the present invention, because S3 on RouterA detects the state of the former M4 of VRRP group 4, so when the former M4 of RouterA takes place when unusual, then the priority parameters of S3 increases by 50 (reaching 120).
In such cases, the S3 priority of current VRRP group 3 is 120, and the priority of M3 is 100, is higher than main interface from the priority of interface, so, the situation of Slave interface competition becoming Master Interface can appear.
Because 120 greater than 100, so the former S3 competition success on the RouterA upgrades to Master Interface, become new M3;
Because 100 less than 120, so the former M3 competition failure on the RouterB is downgraded to the Slave interface, become new S3, so far, accomplish the handover operation of active and standby interface in the VRRP group 3.
After VRRP group 3 was switched, the Master Interface of VRRP group 2, VRRP group 4 all was positioned at RouterB, and the Master Interface of VRRP group 1, VRRP group 3 all is positioned at RouterA, caused the flow of two outlet RouterA and RouterB to recover balanced.
In order to realize technical scheme of the present invention, the invention allows for a kind of router, its structure is shown in figure 10, is applied to comprise that in the network system of at least two said routers, each router comprises two interfaces at least, specifically comprises:
Particularly, for realizing the present invention, also need guarantee to exist at least on the same router master and slave two interfaces that belong to different VRRP groups, the master and slave interface in the same VRRP group is on different routers;
In concrete application scenarios, the concrete mode that configuration module 101 is provided with the state of each interface on the router is to be respectively the main interface that belongs to different VRRP groups on the router and from interface priority parameters to be set; Wherein, confirm in each VRRP group that the high interface of the pairing priority-level of priority parameters is the main interface in the said VRRP group, and the low interface of the pairing priority-level of definite priority parameters be in the said VRRP group from interface.
Further, after configuring master and slave interface, also be required to be each master and slave interface configuration initial priority parameter, and when forming the main interface fault of binding relationship, the upgrading numerical value of binding with it that need increase from interface.
Wherein, in concrete application scenarios, above-mentioned state-detection can be carried out according to predetermined period, and the concrete cycle can be provided with through configuration module 101.
It is pointed out that above-mentioned cycle detection is a kind of preferred enforcement scene, other detect triggering mode also can be applied to the present invention, therefore, whether can't influence protection scope of the present invention according to predetermined period detection and concrete Cycle Length.
Preferably; In the embodiment of the invention, further comprise parameter adjustment module 104, be connected with processing module 103 with detection module 102; Be used for constituting the main interface of binding relationship when unusual through detecting from interface from interface with said when detection module 102; Adjust this priority parameters, make the pairing priority-level of this priority parameters be higher than the pairing priority-level of priority parameters of this current main interface from the VRRP group at interface place from interface from interface, thereby; Make processing module 103 will be somebody's turn to do and change to this main interface from the VRRP group of interface place, bear this flow load from interface place VRRP group from interface.
The concrete implementation of above-mentioned parameter adjustment process comprises that parameter adjustment module 104 according to preset upgrading numerical value, increases or reduce this priority parameters numerical value from interface, to improve the pairing priority-level of this priority parameters from interface; Concrete; Use to increase the operation that still reduces and depend on the priority level initializing rule in the concrete application scenarios, when priority parameters more little, its under the high more situation of corresponding priority; Then adjustment is operating as the minimizing priority parameters; Otherwise, when priority parameters big more, its under the high more situation of corresponding priority; Then adjustment is operating as the increase priority parameters, and the concrete operations content change does not influence protection scope of the present invention.
In order to simplify flow process is set, preferred, under initial condition, the priority parameters value of the main interface in each VRRP group of configuration module 101 configurations all equates, and the priority parameters value from interface that disposes in each VRRP group all equates.
Further; In embodiments of the present invention; From the pairing priority-level of main interface initial priority parameter of interface VRRP group under the pairing priority-level of priority parameters behind the increase upgrading numerical value should be higher than it, above-mentioned upgrading numerical value also can be set through configuration module 101.
Compared with prior art, the present invention has the following advantages:
Through using technical scheme of the present invention, can under the condition of small-sized data center two outlet networking, solve the router down link effectively and the unbalanced problem of unusual back outlet bandwidth load occur.Can guarantee the load balancing of outlet bandwidth, improve user's outlet bandwidth utilance and service quality.
Through the description of above execution mode, those skilled in the art can be well understood to the present invention and can realize through hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding; Technical scheme of the present invention can be come out with the embodied of software product, this software product can be stored in a non-volatile memory medium (can be CD-ROM, USB flash disk; Portable hard drive etc.) in; Comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) each implements the described method of scene to carry out the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is a preferred sketch map of implementing scene, module in the accompanying drawing or flow process might not be that embodiment of the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device of implementing in the scene can be distributed in the device of implementing scene according to implementing scene description, also can carry out respective change and be arranged in the one or more devices that are different from this enforcement scene.The module of above-mentioned enforcement scene can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of implementing scene just to description.
More than disclosedly be merely several practical implementation scene of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.
Claims (10)
1. the load-balancing method in the VRRP scene is applied to comprise in the network system of at least two routers that wherein, said each router comprises two interfaces at least, it is characterized in that, said method specifically may further comprise the steps:
Each said router is provided with Interface status, guarantees to exist on the same router main interface that belongs to different VRRP groups and from interface, and the main interface of same VRRP group and be on the different routers from interface;
Said router is arranged to binding relationship with the main interface that adheres to different VRRP groups on this router separately with from interface, and detects and the said state that constitutes the main interface of binding relationship from interface from interface through said;
When said router constitutes the main interface of binding relationship when unusual through detecting from interface with said from interface; The said priority of said router adjustment from interface; Make saidly to change to this main interface, bear this flow load from VRRP group at interface place from VRRP group at interface place from interface;
When said router does not constitute the main interface of binding relationship when unusual through detecting from interface with said from interface, said router continues to detect and the said state that constitutes the main interface of binding relationship from interface from interface through said.
2. the method for claim 1 is characterized in that, each said router is provided with Interface status, is specially:
Said router is respectively the main interface that belongs to different VRRP group on this router and different priority parameters is set from interface;
Wherein, confirm that the high interface of the pairing priority-level of priority parameters is the main interface in this interface place VRRP group, and the low interface of the pairing priority-level of definite priority parameters for this interface place VRRP in organizing from interface.
3. method as claimed in claim 2; It is characterized in that; When said router constitutes the main interface of binding relationship when unusual through detecting from interface with said from interface, the said priority from interface of said router adjustment makes this change to this main interface from VRRP group at interface place from interface; Bear this flow load from the VRRP group at interface place, be specially:
The said priority parameters of said router adjustment from interface; Make the pairing priority-level of said priority parameters be higher than the pairing priority-level of priority parameters of this current main interface from the VRRP group at interface place from interface; So that saidly become main interface, bear this flow load from the VRRP group of interface place from interface.
4. method as claimed in claim 3 is characterized in that, the said priority parameters from interface of said router adjustment is specially:
Said router increases or reduces said priority parameters numerical value from interface according to preset upgrading numerical value, improves the pairing priority-level of said priority parameters from interface.
5. method as claimed in claim 2 is characterized in that, also comprises:
Under initial condition, the priority parameters value of the main interface in each VRRP group equates that all the priority parameters value from interface in each VRRP group all equates.
6. router is applied to comprise that in the network system of at least two said routers, said router comprises two interfaces at least, it is characterized in that, specifically comprises:
Configuration module; Be used to be provided with the state of each interface on the said router; Guarantee to exist on the same router main interface that belongs to different VRRP groups and from interface; And the main interface of same VRRP group and be on the different routers, and be arranged to binding relationship with the main interface that belongs to different VRRP groups on the said router with from interface from interface;
Detection module is connected with said configuration module, is used for detecting on the said router by that said configuration module disposed and the said state that constitutes the main interface of binding relationship from interface from interface through said;
Processing module; Be connected with said detection module; Be used for constituting the main interface of binding relationship when unusual through detecting from interface from interface with said when said detection module; Adjust said priority, make saidly to change to this main interface, bear this flow load from VRRP group at interface place from VRRP group at interface place from interface from interface.
7. router as claimed in claim 6 is characterized in that, said configuration module is used to be provided with the state of each interface on the said router, is specially:
Said configuration module is respectively the main interface that belongs to different VRRP group on the said router and from interface priority parameters is set;
Wherein, confirm that the high interface of the pairing priority-level of priority parameters is the main interface in this interface place VRRP group, and the low interface of the pairing priority-level of definite priority parameters for this interface place VRRP in organizing from interface.
8. router as claimed in claim 7; It is characterized in that; Also comprise parameter adjustment module; Be connected with said processing module with said detection module, be used for constituting the main interface of binding relationship when unusual through detecting from interface from interface, adjust said priority parameters from interface with said when said detection module; Make the pairing priority-level of said priority parameters be higher than the pairing priority-level of priority parameters of this current main interface from the VRRP group of interface place from interface; Thereby said processing module changes to this main interface from the VRRP group of interface place with said from interface, bears this flow load from interface place VRRP group.
9. router as claimed in claim 8 is characterized in that, the said priority parameters from interface of said parameter adjustment module adjustment is specially:
Said parameter adjustment module increases or reduces said priority parameters numerical value from interface according to preset upgrading numerical value, improves the pairing priority-level of said priority parameters from interface.
10. router as claimed in claim 7 is characterized in that,
Under initial condition, the priority parameters value of the main interface in each VRRP group of said configuration module configures all equates, and the priority parameters value from interface that disposes in each VRRP group all equates.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910260386 CN101707570B (en) | 2009-12-17 | 2009-12-17 | Load balancing method and equipment in VRRP scene |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200910260386 CN101707570B (en) | 2009-12-17 | 2009-12-17 | Load balancing method and equipment in VRRP scene |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101707570A CN101707570A (en) | 2010-05-12 |
CN101707570B true CN101707570B (en) | 2012-02-08 |
Family
ID=42377765
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200910260386 Expired - Fee Related CN101707570B (en) | 2009-12-17 | 2009-12-17 | Load balancing method and equipment in VRRP scene |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101707570B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101860492A (en) * | 2010-06-28 | 2010-10-13 | 中兴通讯股份有限公司 | Quick switching method, device and system |
US8738757B2 (en) * | 2011-01-10 | 2014-05-27 | Telefonaktiebolaget L M Ericsson (Publ) | System and method for variable-size table construction applied to a table-lookup approach for load-spreading in forwarding data in a network |
CN102904783A (en) * | 2011-07-27 | 2013-01-30 | 上海申铁信息工程有限公司 | Communication network system for comprehensive information management system of freight station |
CN102447639B (en) * | 2012-01-17 | 2016-03-09 | 华为技术有限公司 | A kind of policy routing method and device |
CN103560971A (en) * | 2013-10-31 | 2014-02-05 | 华为技术有限公司 | Network flow balancing control method and device |
CN105553866A (en) * | 2014-10-29 | 2016-05-04 | 中兴通讯股份有限公司 | Traffic load balancing method and routing equipment |
CN106254087A (en) * | 2015-06-12 | 2016-12-21 | 中兴通讯股份有限公司 | A kind of method and apparatus checking that VRRP configures |
CN106375231B (en) * | 2015-07-22 | 2019-11-05 | 华为技术有限公司 | A kind of flow switching method, equipment and system |
CN105591902A (en) * | 2015-08-24 | 2016-05-18 | 杭州华三通信技术有限公司 | Main-standby switching method and device |
CN108696417A (en) * | 2017-04-12 | 2018-10-23 | 中兴通讯股份有限公司 | Business switch method in backup network and device |
CN108183857A (en) * | 2017-12-08 | 2018-06-19 | 湖南霄凌网络科技有限公司 | A kind of hot spare method that the double gateways of double-circuit are realized applied to Single NIC terminal |
CN108390777A (en) * | 2018-02-05 | 2018-08-10 | 深圳壹账通智能科技有限公司 | Call method, device, equipment and the computer readable storage medium of communication interface |
CN108429675B (en) * | 2018-03-30 | 2021-10-12 | 新华三技术有限公司 | VRRP (virtual router redundancy protocol) linkage switching method and device and electronic equipment |
CN110677339A (en) * | 2019-10-08 | 2020-01-10 | 北京东土军悦科技有限公司 | Method and device for protecting redundancy between gateway nodes, gateway equipment and storage medium |
CN112887201A (en) * | 2019-11-29 | 2021-06-01 | 北京华为数字技术有限公司 | VRRP (virtual router redundancy protocol) -based interface updating method and device and storage medium |
-
2009
- 2009-12-17 CN CN 200910260386 patent/CN101707570B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN101707570A (en) | 2010-05-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101707570B (en) | Load balancing method and equipment in VRRP scene | |
US9667570B2 (en) | Fabric extra traffic | |
Saraswat et al. | Challenges and solutions in software defined networking: A survey | |
CN112889248A (en) | Modifying resource allocation or policy in response to control information from virtual network functions | |
CN103067277B (en) | Set up and control the method for passage, forwarding unit and control equipment | |
US10439879B2 (en) | Bandwidth management in a non-blocking network fabric | |
Van Asten et al. | Scalability and resilience of software-defined networking: An overview | |
CN109743197B (en) | Firewall deployment system and method based on priority configuration | |
CN105122747A (en) | Control device and control method in software defined network (sdn) | |
Sánchez et al. | Softwarized 5G networks resiliency with self-healing | |
CN105656645A (en) | Decision making method and device for fault processing of stacking system | |
CN112491700A (en) | Network path adjusting method, system, device, electronic equipment and storage medium | |
WO2019007109A1 (en) | Link aggregation system, method, apparatus and device, and medium | |
CN113992569A (en) | Multi-path service convergence method and device in SDN network and storage medium | |
CN108322406B (en) | SDN data plane fault recovery method based on link performance and flow classification | |
CN104639437A (en) | Forwarding method and apparatus of broadcast messages in stack system | |
KR102011021B1 (en) | Method and framework for traffic engineering in network hypervisor of sdn-based network virtualization platform | |
Dou et al. | ProgrammabilityMedic: Predictable path programmability recovery under multiple controller failures in SD-WANs | |
CN110995607A (en) | Method, device, network equipment and storage medium for transmitting flow | |
WO2009152700A1 (en) | Method, system and transfer device for managing the network device port status | |
Chang et al. | Using sdn technology to mitigate congestion in the openstack data center network | |
JP6288633B2 (en) | Network control method | |
CN106341323A (en) | VRRP state synchronizing method and device | |
EP4002779A1 (en) | Method and apparatus for sharing information in redundant network, and computer storage medium | |
Guo et al. | Toward flexible and predictable path programmability recovery under multiple controller failures in software-defined WANs |
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: Xinhua three Technology 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: Huasan Communication Technology Co., Ltd. |
|
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20120208 Termination date: 20191217 |