CN101155129A - Method for implementing dynamic optimal adjustment of virtual routing notification time - Google Patents

Method for implementing dynamic optimal adjustment of virtual routing notification time Download PDF

Info

Publication number
CN101155129A
CN101155129A CNA2006101407082A CN200610140708A CN101155129A CN 101155129 A CN101155129 A CN 101155129A CN A2006101407082 A CNA2006101407082 A CN A2006101407082A CN 200610140708 A CN200610140708 A CN 200610140708A CN 101155129 A CN101155129 A CN 101155129A
Authority
CN
China
Prior art keywords
router
notification time
virtual
interval
contract
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2006101407082A
Other languages
Chinese (zh)
Other versions
CN101155129B (en
Inventor
唐益慰
王怀滨
冯健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2006101407082A priority Critical patent/CN101155129B/en
Publication of CN101155129A publication Critical patent/CN101155129A/en
Application granted granted Critical
Publication of CN101155129B publication Critical patent/CN101155129B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a method for performing the optimum setting the announcement time of a virtual route, to solve the problem that main/standby switch is frequently generated to effect the stability of router when the virtual route group number of main state is much in existing virtual route redundancy protocol. The virtual route group number of main state is counted. The main router figures out the preset circular contract cycle, based on the said virtual route group number of main state and the contract speed of virtual route redundancy protocol and compares with the announcement time interval of system to obtain an actual announcement time interval of system. The said actual announcement time interval of system is transmitted to spare router by the announcement message of the virtual route redundancy protocol. The spare router adjusts the own main/standby switch time interval based on the said actual announcement time interval. The said invention makes the contract-issuing part coordinated with the contract-receiving part ensures the reliability of router and the running stability of VRRP redundancy protocol.

Description

A kind of method that realizes that virtual routing notification time dynamic optimal is adjusted
Technical field
The present invention relates to communication technique field, relate in particular to and realize the method that virtual routing notification time dynamic optimal is adjusted in the Virtual Router Redundacy Protocol.
Background technology
Along with people improve constantly the requirement of data communication reliability and stability, the backup functionality of data communications equipment also more and more comes into one's own.At present router often will be realized multiple backup functionality, as backing up between router, backs up between veneer, and interface backup etc. have all improved the reliability and stability of equipment.And on the other hand, realize that so many backup functionalitys have also correspondingly increased the R﹠D costs and the operating cost of equipment.
Virtual Router Redundancy Protocol (VRRP) is the standby redundancy agreement that is proposed by RFC2338, and it is special designed for the local area network (LAN) (Ethernet) with multicast or broadcast-capable, is applicable in network insertion one side access device is backuped.Router more than two is for example arranged in the local area network (LAN), and the main frame in the local area network (LAN) can be by any router and other network communications wherein.The VRRP agreement can guarantee, when the primary route device in the virtual group of routes breaks down, can replace by another standby router timely, thereby the connectivity and the reliability of communication have been guaranteed, and this process is transparent for the main frame of incoming end, does not need butt joint to go into main frame and reconfigures.Webmaster is given identical virtual router group number and the virtual ip address of different configuration of routers that is in same virtual group of routes, and they form a virtual router jointly.A virtual group of routes can show as a primary route device and some standby routers compositions, and wherein the primary route device is realized real message forwarding capability.When active router breaks down, standby router will be campaigned for according to priority, make one of them standby router become the work that new primary route device is taken over former primary route device.The classical group net mode as shown in Figure 2.
Router 1, and Router 2, and PC is in same local area network (LAN), and Router 1 and Router 2 have formed a virtual router.This virtual router has Internet protocol IP address a: 10.10.10.100.Main frame in the local area network (LAN) is only known virtual ip address 10.10.10.100, and does not know the actual interface IP address of router one and router two, and they oneself default route is set to the IP address 10.10.10.100 of this virtual router.Main frame in the network just comes to communicate with other networks by this virtual router.
Except the typical VRRP networking mode of Fig. 2, utilize the VRRP agreement can also realize NLB, its networking diagram 3 is as follows:
Router 1, and Router 2 is in the same local area network (LAN) with PC, and Router 1 and Router 2 are common to add virtual group 1 and virtual group 2, and Router 1 is the primary route device of virtual group 1, is again the standby router of virtual group 2; Router2 is the standby router of virtual group 1, is again the primary route device of virtual group 2, host PC 1, and PC2 allocating default webmaster address is the virtual address IP_A of virtual group 1, PC3 and PC4 allocating default webmaster address are the virtual address IP_B of virtual group 2.The network traffics of PC1 and PC2 will be transmitted by Router 1 like this, the network traffics of same PC3 and PC4 are transmitted by Router2, thereby realize the load balance between two routers.And these two routers also have the function of backuping each other, and in the time of any one router failure, another one will be taken over the work of failed router, keep the continuity and the reliability of network.
For top application, virtual router all need be worked according to following mode:
(1) carries out active and standby election contest according to priority between each router.The priority maximum become the primary route device, the primary route device provides the message forwarding service, standby router can not provide message to transmit.
(2) during primary route device operate as normal, timed sending announcement VRRP multicast message, with the standby router in the group of notifications, the primary route device is in normal operating conditions.Other routers are as standby router, according to the state of the notification packet monitoring primary route device that receives.When standby router in the group is not received message from the primary route device within a certain period of time, then oneself is become the primary route device.Many standby routers become the primary route device, send the VRRP message, every router according to self priority and message in priority compare, what priority was little is standby router, thereby the router of campaigning for out the priority maximum is new primary route device, finishes the active and standby switching of VRRP.
By above-mentioned process as can be seen, the main multicast notification packet that relies on the primary route device between the host-standby communication of VRRP, standby router monitors the state of primary route device by notification packet, and receives only message, do not send message, and the connection of not shaking hands each other.Because a router can dispose many VRRP groups, each group regularly all will send notification packet, and in order to control flux of multicast, the maximum of the VRRP multicast packets number that router is sent out each second is limited, when the group of configuration was too much, it can not become big accordingly along with increasing of group again.Each VRRP group of VRRP agreement regulation host apparatus need be sent out a notification packet in each announcement cycle, and stand-by equipment does not receive notification packet in three announcement cycles, will become main equipment to oneself, and produces active and standby election contest.Because the qualification of routing device packet sending speed is a contradiction with the number of configuration VRRP group: the group of Master state is many more, the time that circulation primary announcement bag is consumed is just long more.When the group of Master state outnumbers certain qualification, will produce the delay of giving out a contract for a project, and be easy to generate and active and standbyly frequently switch.And the primary route device does not break down in whole process, and because the priority ratio of main equipment itself is higher, and it can not process the masterslave switchover of standby router, abandons the notification packet that sends on the standby router but pass through priority ratio after.Active and standby frequently switching seriously can make virtual router be absorbed in down state, had a strong impact on the stability of router.
Summary of the invention
In order to overcome above-mentioned defective, the purpose of this invention is to provide a kind of method of adjusting based on virtual route redundancy technology proposition VRRP notification time dynamic optimal, this method has solved the configuration and the actual unbalanced problem of giving out a contract for a project in concrete application process of VRRP agreement.
For achieving the above object, a kind of method that realizes that virtual routing notification time dynamic optimal is adjusted of the present invention may further comprise the steps:
(1) master in the virtual group of routes that disposes in the primary route device is added up with the number of the virtual group of routes of state;
(2) the primary route device is according to described main number and Virtual Router Redundancy Protocol packet sending speed with the virtual group of routes of state, and the circulation that calculates expectation is given out a contract for a project the cycle;
(3) the primary route device compares at interval according to the give out a contract for a project notification time of cycle and system configuration of the circulation that calculates, the actual notification time of the system that obtains at interval, and by the Virtual Router Redundancy Protocol notification packet should actual notification time delivered spaced to standby router;
(4) standby router obtain the primary route device with mode of learning by the Virtual Router Redundancy Protocol notification packet notification time at interval, and adjust oneself masterslave switchover time interval at interval according to the notification time of being acquired.
Further, described step (3) is specially:
The primary route device compares at interval according to the give out a contract for a project notification time of cycle and system configuration of the circulation that calculates, getting the greater is system actual notification time interval, and should actual notification time delivered spaced give standby router by the Virtual Router Redundancy Protocol notification packet.
Further, the notification time of described system configuration can externally be configured at interval.
Further, described standby router default conditions are mode of learning.
Further, individual router can add different virtual group of routes, and the notification time in the different virtual group of routes that described individual router added is uncorrelated mutually at interval.
Stand-by equipment among the present invention passes through mode of learning, can from the notification packet of host apparatus, learn the time interval that the actual cycle of host apparatus is given out a contract for a project, make host apparatus interval switching time the giving out a contract for a project the time interval of setting corresponding to reality, comprehensively solved the contradiction of VRRP packet sending speed with the group number, help finishing backup and load balance function in a plurality of VRRP groups of system configuration, masterslave switchover can not take place, improve the reliability of routing device and the stability of the network operation.
Description of drawings
Fig. 1 is that the notification time that VRRP of the present invention adjusts is transmitted schematic diagram;
Fig. 2 is existing VRRP typical case networking diagram;
Fig. 3 is the VRRP load balance networking diagram that backups each other;
Fig. 4 is a kind of flow chart of realizing virtual routing notification time dynamic optimal method of adjustment of the present invention.
Embodiment
Method provided by the present invention is to utilize the notification packet of Virtual Router Redundacy Protocol VRRP, transmits the notification time that is dynamically produced by active router, makes the more stable method of operation between the mutually redundant router, network model as shown in Figure 1:
At first the port one of the port one of configuration router 1 and router two is in a local area network (LAN), and the port 2 of router two and the port one of router three are in a local area network (LAN), and these two local area network (LAN)s are uncorrelated mutually.
At router one and router two, in the corresponding port of router two and router three, between dispose 100 VRRP group respectively, then router two just has 200 VRRP groups.
200 VRRP groups that router two is set are the Master state, and the actual cycle notification time of the bag of VRRP is approximately 2 seconds (setting maximum VRRP bag announcement speed was 100 bag/seconds) at this moment, and the cycle of giving out a contract for a project of configuration is 1 second, is not inconsistent with the actual cycle of giving out a contract for a project.
Describe the technical scheme of the method that the invention provides in detail below in conjunction with the flow process of Fig. 4:
As shown in Figure 4, the present invention realizes the method that virtual routing notification time dynamic optimal is adjusted, active router is informed the notification time of advocating peace standby router router dynamically producing by its notification packet, so that standby router can in time be learnt the notification time of optimum, the main flow process between the active and standby router is as follows:
Active router (router two among Fig. 1):
Step 401: when router two is Master in state-transition, start the notification time calculation process;
Step 402: to adding up for Master (main with) state group number in the virtual group of routes that is disposed in the primary route device; Master equipment is the number and the VRRP packet sending speed of the group of Master according to the VRRP protocol status that is disposed in the whole router, and the once circulation that calculates the announcement bag is given out a contract for a project the cycle;
In this step, have only the primary route device need calculate notification time in the virtual group of routes, and tell standby router notification time by VRRP message bag, standby router does not need to calculate notification time, only needs to calculate according to notification time the masterslave switchover time of oneself;
Step 403:Master equipment is judged the give out a contract for a project size in cycle of configuration notification time and the circulation that calculates, and gets the greater and obtains that system is actual gives out a contract for a project the time interval;
Step 404: the numerical value that notification time is a data maximum in the step 403 (2 seconds) is set.
Step 405: when Master equipment sends the announcement packet, the actual notification time that obtains is put into corresponding field at interval, pass to standby router (router one among Fig. 1 and router three);
And adjust oneself masterslave switchover time interval according to the data acquired.
Step 411: standby router is received the VRRP notification packet that is sent by primary route device (router two among Fig. 1), actual notification time in the VRRP message that sends by mode of learning study primary route device under the standby router default conditions and starts dynamic notification time and dynamically adjusts at interval;
Step 412: standby router by the actual notification time of extracting the primary route device in the notification packet at interval;
Step 413: standby router is dynamically adjusted the active and standby switching time (specifically calculating with reference to the VRRP agreement) of oneself according to the actual notification time interval and other relevant parameters of primary route device;
Step 414: standby router is according to the active and standby switching time of adjusting, and standby router continues to manage stand-by state, and monitors the state of primary route device.
When said method is used in concrete networking, a router may join different virtual group of routes, so the middle on the same group notification time that is added of a router may have nothing in common with each other, but not contact between the middle on the same group notification time that this router added.
In addition, the time interval of giving out a contract for a project of configuration externally also can dispose, and its circulation that need participate in and calculate is given out a contract for a project elapsed time relatively, give out a contract for a project consumption time interval less than setup time at interval the time when the expectation of primary route device circulation, and the configuration notification time is spaced apart actual giving out a contract for a project the time interval.
When the VRRP of configuration of routers group is less, it is also smaller that the prediction of primary route device sends elapsed time, and router will be given out a contract for a project at interval with giving out a contract for a project of configuration this moment.The primary route device is setup time by relatively obtaining notification time, and it is filled in the announcement bag, guarantees that standby router obtains the actual notification time of primary route device at interval.
Under the default situations, stand-by equipment is set to mode of learning, can learn the time interval that circulation that the main equipment actual cycle gives out a contract for a project is given out a contract for a project from notification packet, and the notification time that makes setting is an optimal time.This method makes that the party awarding the contract and packet receiving side obtain coordinating, and guarantees the reliability of router, the stability of VRRP redundancy protocol operation.
From above-mentioned flowchart process as can be seen, stand-by equipment passes through mode of learning, can from notification packet, learn the time interval that the actual cycle of host apparatus is given out a contract for a project, make host apparatus interval switching time the giving out a contract for a project the time interval of setting corresponding to reality, comprehensively solved the contradiction of VRRP packet sending speed with the group number, help finishing backup and load balance function, masterslave switchover can not take place, improve the reliability of routing device and the stability of the network operation in a plurality of VRRP groups of system configuration.

Claims (5)

1. a method that realizes that virtual routing notification time dynamic optimal is adjusted is characterized in that, may further comprise the steps:
(1) master in the virtual group of routes that disposes in the primary route device is added up with the number of the virtual group of routes of state;
(2) the primary route device is according to described main number and Virtual Router Redundancy Protocol packet sending speed with the virtual group of routes of state, and the circulation that calculates expectation is given out a contract for a project the cycle;
(3) the primary route device compares at interval according to the give out a contract for a project notification time of cycle and system configuration of the circulation that calculates, the actual notification time of the system that obtains at interval, and by the Virtual Router Redundancy Protocol notification packet should actual notification time delivered spaced to standby router;
(4) standby router obtain the primary route device with mode of learning by the Virtual Router Redundancy Protocol notification packet notification time at interval, and adjust oneself masterslave switchover time interval at interval according to the notification time of being acquired.
2. the method that realization virtual routing notification time dynamic optimal as claimed in claim 1 is adjusted is characterized in that described step (3) is specially:
The primary route device compares at interval according to the give out a contract for a project notification time of cycle and system configuration of the circulation that calculates, getting the greater is system actual notification time interval, and should actual notification time delivered spaced give standby router by the Virtual Router Redundancy Protocol notification packet.
3. the method that realization virtual routing notification time dynamic optimal as claimed in claim 1 or 2 is adjusted is characterized in that, the notification time of described system configuration can externally be configured at interval.
4. the method that realization virtual routing notification time dynamic optimal as claimed in claim 1 is adjusted is characterized in that described standby router default conditions are mode of learning.
5. the method that realization virtual routing notification time dynamic optimal as claimed in claim 1 is adjusted, it is characterized in that, individual router can add different virtual group of routes, and the notification time in the different virtual group of routes that described individual router added is uncorrelated mutually at interval.
CN2006101407082A 2006-09-29 2006-09-29 Method for implementing dynamic optimal adjustment of virtual routing notification time Expired - Fee Related CN101155129B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101407082A CN101155129B (en) 2006-09-29 2006-09-29 Method for implementing dynamic optimal adjustment of virtual routing notification time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101407082A CN101155129B (en) 2006-09-29 2006-09-29 Method for implementing dynamic optimal adjustment of virtual routing notification time

Publications (2)

Publication Number Publication Date
CN101155129A true CN101155129A (en) 2008-04-02
CN101155129B CN101155129B (en) 2011-03-16

Family

ID=39256575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101407082A Expired - Fee Related CN101155129B (en) 2006-09-29 2006-09-29 Method for implementing dynamic optimal adjustment of virtual routing notification time

Country Status (1)

Country Link
CN (1) CN101155129B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123105A (en) * 2011-04-20 2011-07-13 杭州华三通信技术有限公司 Method and equipment for switching between standard VRRP (Virtual Router Redundancy Protocol) and load balancing VRRP
CN103200093A (en) * 2013-03-05 2013-07-10 杭州华三通信技术有限公司 Method and device for improving processing performance of multiple virtual router redundancy protocol (VRRP) back-up sets
CN104579758A (en) * 2014-12-22 2015-04-29 杭州华三通信技术有限公司 LISP (Location/ID Separation Protocol) domain fault detection convergence method and equipment
CN105939258A (en) * 2016-03-16 2016-09-14 杭州迪普科技有限公司 Method and device for sending VRRP message
CN111464438A (en) * 2020-03-04 2020-07-28 邦彦技术股份有限公司 Method and device for managing state of VRRP node, and method and device for improving equipment
CN113726649A (en) * 2021-09-07 2021-11-30 新华三大数据技术有限公司 Routing information processing method and system
CN114268581A (en) * 2021-11-17 2022-04-01 成都安恒信息技术有限公司 Method for realizing high availability and load sharing of network equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2290267A1 (en) * 1998-12-04 2000-06-04 Nortel Networks Corporation Method and apparatus providing for an improved virtual routing redundancy protocol
US7036051B1 (en) * 2002-12-18 2006-04-25 Juniper Networks, Inc. Responsive virtual routing system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123105A (en) * 2011-04-20 2011-07-13 杭州华三通信技术有限公司 Method and equipment for switching between standard VRRP (Virtual Router Redundancy Protocol) and load balancing VRRP
CN102123105B (en) * 2011-04-20 2013-12-11 杭州华三通信技术有限公司 Method and equipment for switching between standard VRRP (Virtual Router Redundancy Protocol) and load balancing VRRP
CN103200093A (en) * 2013-03-05 2013-07-10 杭州华三通信技术有限公司 Method and device for improving processing performance of multiple virtual router redundancy protocol (VRRP) back-up sets
CN103200093B (en) * 2013-03-05 2016-04-13 杭州华三通信技术有限公司 A kind of method and apparatus improving the handling property of many VRRP backup group
CN104579758A (en) * 2014-12-22 2015-04-29 杭州华三通信技术有限公司 LISP (Location/ID Separation Protocol) domain fault detection convergence method and equipment
CN105939258A (en) * 2016-03-16 2016-09-14 杭州迪普科技有限公司 Method and device for sending VRRP message
CN111464438A (en) * 2020-03-04 2020-07-28 邦彦技术股份有限公司 Method and device for managing state of VRRP node, and method and device for improving equipment
CN111464438B (en) * 2020-03-04 2023-02-28 邦彦技术股份有限公司 Method and device for managing state of VRRP node, and method and device for improving equipment
CN113726649A (en) * 2021-09-07 2021-11-30 新华三大数据技术有限公司 Routing information processing method and system
CN114268581A (en) * 2021-11-17 2022-04-01 成都安恒信息技术有限公司 Method for realizing high availability and load sharing of network equipment
CN114268581B (en) * 2021-11-17 2023-08-22 成都安恒信息技术有限公司 Method for realizing high availability and load sharing of network equipment

Also Published As

Publication number Publication date
CN101155129B (en) 2011-03-16

Similar Documents

Publication Publication Date Title
CN101155129B (en) Method for implementing dynamic optimal adjustment of virtual routing notification time
CN100512292C (en) Apparatus and method of real-time recovering service
CN1992707B (en) Fast restoration method of multicast service and network apparatus
US7940660B2 (en) Methods, systems, and computer program products for voice over IP (VoIP) traffic engineering and path resilience using media gateway and associated next-hop routers
CN101588304B (en) Implementation method of VRRP and device
CN108306777B (en) SDN controller-based virtual gateway active/standby switching method and device
CN102355366B (en) Member-stacking device and method for managing member-stacking device at split stacking moment
CN102780635B (en) The method of pretection switch, TOR switch and system is realized based on TRILL network
CN102638389A (en) Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network
CN103929333A (en) Implementation method for SDN controller pool
CN101170459A (en) Failure detection and link recovery method based on bidirectional forward link
JP2006262169A (en) Inter-ring connection method and device
WO2012048585A1 (en) Switching method and router
CN101340380A (en) Method and apparatus for uninterrupted forwarding of bi-directional forwarding detection in master-slave switch implementation
CN104518936B (en) Link dynamic aggregation method and apparatus
CN105119822A (en) Backup group management method and system based on VRRP (Virtual Router Redundancy Protocol)
CN101296105B (en) Multicast fast switching method and system, three-layer network appliance
WO2012171378A1 (en) Method and router for preventing flow interruption caused by failover from vpls to l3
CN103441938B (en) Port switching method and communication equipment
CN101945036B (en) Judging method for failure of main router of virtual route redundancy protocol and router
CN102571527A (en) Backup and load balancing system based on virtual router redundancy
CN100403731C (en) Method for controlling communication transmission path in stacked equipment domain
WO2016065804A1 (en) Traffic load balancing method and routing device
CN109412980A (en) A kind of BRAS backup method and device
CN102238092B (en) Method for performing load sharing on encoder and encoder

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110316

Termination date: 20190929

CF01 Termination of patent right due to non-payment of annual fee