CN105939215A - Method and device for switching state of VRRP backup group - Google Patents
Method and device for switching state of VRRP backup group Download PDFInfo
- Publication number
- CN105939215A CN105939215A CN201610137539.0A CN201610137539A CN105939215A CN 105939215 A CN105939215 A CN 105939215A CN 201610137539 A CN201610137539 A CN 201610137539A CN 105939215 A CN105939215 A CN 105939215A
- Authority
- CN
- China
- Prior art keywords
- state
- router
- backup group
- configuration information
- notification packet
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/22—Alternate routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0659—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities
- H04L41/0661—Management of faults, events, alarms or notifications using network fault recovery by isolating or reconfiguring faulty entities by reconfiguring faulty entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0681—Configuration of triggering conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0866—Checking the configuration
- H04L41/0869—Validating the configuration within one network element
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0893—Assignment of logical groups to network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/58—Association of routers
- H04L45/586—Association of routers of virtual routers
Abstract
The invention provides a method and a device for switching a state of a VRRP (Virtual Router Redundancy Protocol) backup group. The method comprises the steps of, when a standby router determines that local backup group configuration information is inconsistent with backup group configuration information in an announcement message based on the received announcement message which is sent by a main control router and carries the backup group configuration information configured at the main control router, switching the state thereof from a standby state to a fault state; and when the router in the fault state determines that the local backup group configuration information is consistent with the backup group configuration information in the announcement message based on the received announcement message, switching the state thereof from the fault state to the standby state. By applying the embodiment, network oscillation is avoided when the configuration of the main control router and the backup router in the VRRP backup group are inconsistent, and reasons for arousing network abnormality is reminded to a user efficiently when the network is abnormal.
Description
Technical field
The application relates to network communication technology field, particularly relate to VRRP backup group state switching method and
Device.
Background technology
VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundacy Protocol) can hold
The set of router of load gateway function joins in VRRP backup group, forms a virtual router, local
Virtual router only need to be configured to gateway by the main frame in net.In VRRP backup group, VRRP elect
Mechanism determines which platform router undertakes forwarding task, i.e. elects virtual router master, then other router is
Standby router.When virtual router master occurs abnormal, timeout mechanism and election mechanism can be passed through from standby
Router is elected the virtual router master made new advances, and the miscellaneous equipment in gateway is without doing any variation, thus
It is effectively improved the stability of gateway.
But, the network environment of network is not unalterable, when VRRP backup group is carried out config update
Time, it is likely that there will be the backup group configuration letter of the virtual router master in VRRP backup group and standby router
Cease inconsistent situation.In this case, in prior art, can be a kind of there to be two kinds of alignment processing modes
Mode is, when standby router finds inconsistent with the backup group configuration information of virtual router master, and automatically will be from
Body state is switched to major state by resting state, but thus makes to there is a more than master control in network
Router, it is likely that cause network to shake, such as, is used alternatingly each virtual router master and E-Packets;Separately
A kind of mode is, when standby router finds inconsistent with the backup group configuration information of virtual router master, still
Keep current resting state constant, but so when this standby router follow-up is after virtual router master fault,
If oneself state switches to major state, network will be caused obstructed due to configuration error, and when the user discover that
After Network Abnormal, owing to resting state and the major state of router broadly fall into normal condition, therefore user is also
The reason causing Network Abnormal can not be known immediately, it is likely that need consuming longer by the state of router
Time Network Search abnormal cause, will result in long-time suspension, causes damage user.
Summary of the invention
In view of this, the application provides the method and device that a kind of VRRP backup group state switches, to realize
When virtual router master in VRRP backup group and standby router configuration are inconsistent, do not result in network shake
Swing, and when Network Abnormal, prompting user causes the reason of Network Abnormal effectively.
Specifically, the application is achieved by the following technical solution:
First aspect according to the embodiment of the present application, it is provided that the method for a kind of VRRP backup group state switching,
Described VRRP backup group includes virtual router master and standby router;Described method includes:
When the notification packet that described standby router sends according to the described virtual router master received, described logical
Accuse message and carry the backup group configuration information of configuration on described virtual router master, determine the backup group configuration of this locality
When information is inconsistent with the backup group configuration information in described notification packet, oneself state is cut by resting state
It is changed to malfunction;
When the described router of malfunction that is in is according to the described notification packet received, determine the standby of this locality
When part organizes the backup group accordant configuration information in configuration information and described notification packet, by oneself state by fault
State switches to resting state.
In one embodiment, described method also includes:
Described standby router, after oneself state is switched to malfunction by resting state, arranges fault and surpasses
Time the time;
The described router being in malfunction, in described fault time-out time, if not receiving described logical
Accuse message, then oneself state is switched to resting state by malfunction.
In another embodiment, described method also includes:
The described router being in malfunction, in described fault time-out time, if receiving described notice
Message, and the backup group configuration information of this locality detected with the backup group configuration information in described notification packet not
Unanimously, then continue to keep described malfunction, and update fault time-out time.
In another embodiment, described described notification packet is not being received, then by oneself state by described
After malfunction switches to resting state, also include:
The standby time-out time is set;
The described router being in resting state, within the described standby time-out time, if not receiving described logical
Accuse message, then oneself state is switched to major state by resting state.
In another embodiment, described method also includes:
When the oneself state of all-router all switches to major state, according to default election mechanism, weight
New virtual router master that router the highest for priority is set to, described virtual router master transmission notification packet;
Other routers in addition to the virtual router master that described priority is the highest, if according to described in receiving
Notification packet, determines backup group configuration information and the backup group configuration information one in described notification packet of this locality
During cause, then oneself state is switched to resting state by described major state;
If according to the described notification packet received, determine that the backup group configuration information of this locality notices report with described
When backup group configuration information in literary composition is inconsistent, then oneself state is switched to fault shape by described major state
State.
Second aspect according to the embodiment of the present application, it is provided that the device of VRRP backup group state switching, described
VRRP backup group includes virtual router master and standby router;Described device includes:
First switch unit, for sending according to the described virtual router master received when described standby router
Notification packet, described notification packet carries on described virtual router master the backup group configuration information of configuration, really
When fixed local backup group configuration information is inconsistent with the backup group configuration information in described notification packet, will be from
Body state is switched to malfunction by resting state;
Second switch unit, is in the router of malfunction according to the described notice received described in working as
Message, when determining the backup group accordant configuration information in local backup group configuration information and described notification packet,
Oneself state is switched to resting state by malfunction.
In one embodiment, described device also includes:
First arranges unit, for oneself state being switched to event by resting state at described standby router
After barrier state, fault time-out time is set;
Described second switch unit, is additionally operable to: described in be in the router of malfunction, surpass in described fault
Time the time in, if not receiving described notification packet, then oneself state is switched to standby shape by malfunction
State.
In another embodiment, described device also includes:
Updating block, be used for described in be in the router of malfunction, in described fault time-out time, if
Receive described notification packet, and the backup group configuration information of this locality and standby in described notification packet detected
Part group configuration information is inconsistent, then continue to keep described malfunction, and update fault time-out time.
In another embodiment, described device also includes:
Second arranges unit, at the described router being in malfunction, by oneself state by described
After malfunction switches to resting state, the standby time-out time is set;
Described first switch unit, is additionally operable to: described in be in the router of resting state, described standby super
Time the time in, if not receiving described notification packet, then oneself state is switched to master control shape by resting state
State.
In another embodiment, described device also includes:
Election unit, for when the oneself state of all-router all switches to major state, according to presetting
Election mechanism, again router the highest for priority is set to virtual router master, described virtual router master
Send notification packet;
3rd switch unit, for working as other routers in addition to the virtual router master that described priority is the highest,
If according to the described notification packet received, determining in backup group configuration information and the described notification packet of this locality
Backup group accordant configuration information time, then oneself state is switched to resting state by described major state;
If according to the described notification packet received, determine that the backup group configuration information of this locality notices report with described
When backup group configuration information in literary composition is inconsistent, then oneself state is switched to fault shape by described major state
State.
The method of application the present embodiment, when standby router detects local backup group configuration information and master control
When the backup group configuration information of router is inconsistent, oneself state is switched to malfunction, later,
When the backup group accordant configuration information of local backup group configuration information and virtual router master being detected, by self
Recovering state is resting state, such that it is able to avoid there is a more than master control in VRRP backup group simultaneously
Router, causes network to shake;Can also realize, when network occurs abnormal, by the event of router
Barrier state, can point out user effectively, makes user confirm to cause the reason of Network Abnormal quickly, keeps away
Exempt from long Network Abnormal, user is resulted in greater loss.
Accompanying drawing explanation
Fig. 1 shows that the embodiment of the present application realizes the application scenarios of method of VRRP backup group state switching and shows
It is intended to.
Fig. 2 illustrates an embodiment flow chart of the method for the application VRRP backup group state switching.
Fig. 3 illustrates another embodiment flow chart of the method for the application VRRP backup group state switching.
Fig. 4 illustrates another embodiment flow chart of the method for the application VRRP backup group state switching.
Fig. 5 is a kind of hardware configuration of the device place network equipment of the application VRRP backup group state switching
Figure.
Fig. 6 illustrates an embodiment block diagram of the device of the application VRRP backup group state switching.
Fig. 7 illustrates another embodiment block diagram of the device of the application VRRP backup group state switching.
Fig. 8 illustrates another embodiment block diagram of the device of the application VRRP backup group state switching.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Following retouches
Stating when relating to accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.
Embodiment described in following exemplary embodiment does not represent all embodiment party consistent with the application
Formula.On the contrary, they only with describe in detail in appended claims, the application some in terms of mutually one
The example of the apparatus and method caused.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting this
Application." a kind of ", " described " of singulative used in the application and appended claims
" it is somebody's turn to do " be also intended to include most form, unless context clearly shows that other implications.It is also understood that
Term "and/or" used herein refer to and comprise any of one or more project of listing being associated or
Likely combine.
Although should be appreciated that may use term first, second, third, etc. to describe various letter in the application
Breath, but these information should not necessarily be limited by these terms.These terms are only used for same type of information district each other
Separately.Such as, in the case of without departing from the application scope, the first information can also be referred to as the second information,
Similarly, the second information can also be referred to as the first information.Depend on linguistic context, word as used in this
" if " can be construed to " ... time " or " when ... time " or " in response to determining ".
VRRP is a kind of selection agreement, by its realization, the set of router in LAN can be organized as one
Platform virtual router, this virtual router can have the virtual ip address of oneself, such as, for 1.1.1.254.
This group router can be referred to as VRRP backup group.In VRRP backup group, can be elected by VRRP
Mechanism, elects a router as virtual router master, i.e. this virtual router master undertakes forwarding task, its
Its router is then standby router, and configures identical standby respectively on virtual router master and standby router
Part group configuration information, this backup group configuration information can include virtual ip address, such as, 1.1.1.254.
The default route next hop address of self can be set to this virtual router by the main frame in LAN
Virtual ip address, thus, the main frame in LAN can be realized and other network by this virtual router,
Such as the Internet communicates.When the virtual router master in VRRP backup group breaks down, can pass through
Election mechanism and timeout mechanism, from standby router, re-elect out a router as new master control road
By device so that this virtual router can continue the main frame in LAN provides route service.
Owing to the network environment of network is complicated and changeable, join when needing the router in VRRP backup group
When putting renewal, i.e. revise the backup group configuration information of this locality, such as, revise virtual ip address, it is likely that go out
Existing backup group configuration information amendment mistake, such as, the backup group configuration letter of standby router and virtual router master
Cease inconsistent.In order to avoid in this case, causing network to shake, and reality now due to configuration error and
When causing Network Abnormal, which route of the reason that prompting user network is abnormal effectively, such as prompting user
The configuration of device goes wrong, and the application provides the method and device that a kind of VRRP backup group state switches.
Following Fig. 1, it is shown that the embodiment of the present application realizes the application of the method for VRRP backup group state switching
Scene schematic diagram.Fig. 1 includes: main frame 11, switch 12, server 13, router 14 to route
Device 16, wherein, main frame 11 is positioned at LAN, it is to be understood that in actual applications, this LAN
An interior more than main frame, illustrates as a example by only including a main frame in LAN, the application in the application
Without limitation;Switch 12 for the data transmission being responsible between each router, and main frame 11 with
Data transmission between server 13;Server 13 is positioned at the Internet;Router 14 to router 16
Belong to same VRRP backup group, i.e. router 14 to router 16 and constitute a virtual router 17,
It is understood that the router number in VRRP backup group can not be 3, only with VRRP in the application
Illustrating as a example by comprising 3 routers in backup group, the application is without limitation.
In the application scenarios figure shown in above-mentioned Fig. 1, it is assumed that the virtual ip address of virtual router 17 is
1.1.1.254, then self the default route next hop address on main frame 11 is set to this virtual ip address, with reality
Existing main frame 11, by this virtual router 17, communicates with the server 13 in the Internet.And router
All being configured with backup group configuration information on 14 to router 16, this backup group configuration information can include virtual IP address
Address 1.1.1.254, it is also possible to be respectively every configuration of routers priority and pattern, it is generally the case that for
The priority of every configuration of routers also differs, and such as, the priority of router 14 to router 16 depends on
Secondary it is respectively 200,100,50, and the pattern of every router is contention mode.Configure VRRP standby
After part group, can be according to VRRP election mechanism, by router the highest for priority, such as, router
14 elections are virtual router master, then, other router in this VRRP backup group, such as, router
15 and router 16 be then standby router.
When router in VRRP backup group shown in Fig. 1 is carried out the amendment of backup group configuration information, when
When the inconsistent situation of the backup group configuration information of standby router and virtual router master occurs, can be used this
The method of application embodiment VRRP backup group state switching, following Fig. 2, illustrate the application VRRP
One embodiment flow chart of the method for backup group state switching, this embodiment is with the standby router in Fig. 1
As a example by 15, illustrate.
Step S201: the notice report sent according to the described virtual router master received when described standby router
Literary composition, described notification packet carries the backup group configuration information of configuration on described virtual router master, determines this locality
When backup group configuration information in backup group configuration information and described notification packet is inconsistent, by oneself state by
Resting state switches to malfunction.
Such as, virtual router master 14, every default notification time, i.e. send a notification packet, this leads to
Accusing the backup group configuration information that can carry virtual router master 14 in message, this backup group configuration information can wrap
Include virtual ip address, such as 1.1.1.254.
In the present embodiment, it is assumed that have modified the backup group configuration information of standby router 15, by its virtual IP address
1.1.1.253 is revised as by 1.1.1.254 in address.So, virtual router master is received when standby router 15
After 14 notification packets sent, can detect that the backup group configuration information of this locality carries in this notification packet
Backup group configuration information inconsistent, now, standby router 15 can be by the state of self by resting state
Switch to malfunction, to represent that the VRRP backup group configuration of self is likely to occur mistake, such as, with master
The backup group configuration information of control router 14 is inconsistent.
Due to, when standby router detects that the configuration of self backup group is likely to occur mistake, switch to fault
State, not major state or holding resting state are constant, thus, it is not result in VRRP backup group
There is multiple stage virtual router master simultaneously, network will not be caused to shake;And can realize by malfunction effective
Ground prompting this router of user is likely to occur configuration error so that causing Network Abnormal due to configuration error
Time, user can determine the reason of Network Abnormal quickly, to repair network quickly, it is to avoid break for a long time
Net, results in greater loss to user.
Step S202: when the described router of malfunction that is in is according to the described notification packet received, really
When determining the backup group accordant configuration information in local backup group configuration information and described notification packet, by self
State is switched to resting state by malfunction.
Assume have modified the backup group configuration information of the router 15 being in malfunction, such as, it is empty
Intend IP address and be revised as 1.1.1.254 by 1.1.1.253.So, master control road is continued to when router 15
The described notification packet sent by device 14, can detect backup group configuration information and this notification packet of this locality
In the backup group accordant configuration information that carries, then, router 15 can be by the state of self by malfunction
Switch to resting state.
The method of application the present embodiment, when standby router detects local backup group configuration information and master control road
By the backup group configuration information of device inconsistent time, oneself state is switched to malfunction, later, detection
During to the backup group accordant configuration information of local backup group configuration information and virtual router master, oneself state is extensive
It is resting state again, such that it is able to avoid VRRP backup group exists a more than virtual router master simultaneously,
Network is caused to shake;Can also realize, when causing due to configuration error network to occur abnormal, pass through road
By the malfunction of device, can effectively point out user, make user confirm quickly to cause the former of Network Abnormal
Cause, it is to avoid Network Abnormal for a long time, results in greater loss to user.
On the basis of above-mentioned embodiment illustrated in fig. 2, following Fig. 3, illustrate the application VRRP backup group
Another embodiment flow chart of the method for state switching, describes in the embodiment shown in this Fig. 3 and is in event
Oneself state is switched to the another kind of situation of resting state, and state switching afterwards by the router of barrier state
Processing procedure, comprise the following steps:
Step S301: the notice report sent according to the described virtual router master received when described standby router
Literary composition, described notification packet carries the backup group configuration information of configuration on described virtual router master, determines this locality
When backup group configuration information in backup group configuration information and described notification packet is inconsistent, by oneself state by
Resting state switches to malfunction.
The associated description of this step may refer to the associated description of step S201 in above-described embodiment, at this no longer
It is described in detail.
Step S302: described standby router after oneself state is switched to malfunction by resting state,
Fault time-out time is set.
In the present embodiment, malfunction can be switched to for described by resting state according to default algorithm
Router, such as, router 15, a fault time-out time is set, such as, draws according to equation below
Fault time-out time:
Fault time-out time=3* notification time+(255-priority)/255 seconds, wherein, notification time is main
Control router sends the interval time of notification packet, the most under normal circumstances, virtual router master to standby router
I.e. a notification packet is sent to standby router every this notification time;Priority is oneself of this router
Body priority.
It is understood that above-mentioned formula is only a kind of example calculating fault time-out time, in actual application,
Other algorithms can also be used to calculate, and the application is without limitation.
Step S303: described in be in the router of malfunction, in described fault time-out time, if not connecing
Receive described notification packet, then oneself state is switched to resting state by malfunction.
In the present embodiment, if described in be in the router of malfunction, such as, router 15, described therefore
Barrier time-out time in, do not receive the notification packet that virtual router master is sent yet, can by oneself state by
Malfunction switches to resting state again.Now, the backup group configuration information of this router 15 still with currently
The backup group configuration information of virtual router master 14 inconsistent.
Step S304: described router, after oneself state is switched to resting state by malfunction, is arranged
The standby time-out time.
In the present embodiment, the algorithm can preset according to another, switched to standby shape for described by malfunction
The router of state, such as router 15, arrange a standby time-out time, and this standby time-out time can be by
Calculate according to equation below:
Standby time-out time=1+ (255-priority)/255 seconds.
It is understood that above-mentioned formula is only a kind of example calculating the standby time-out time, in actual application,
Other algorithms can also be used to calculate, and the application is without limitation.
Arranging the purpose of this standby time-out time is, postpones this router 15 and again carries out the time of state switching,
So that in the case of virtual router master 14 fault, priority is relatively low, and the router being in resting state can
To have an opportunity, oneself state being switched to major state, the such as priority of router 16 is less than router 15
Priority, and router 16 is currently at resting state, then router 16 is determining current master control road
During by device 14 exception, oneself state can be switched to major state, i.e. router 16 becomes master control route
Device, sends notification packet.Now, after router 15 receives the notification packet that virtual router master is sent,
Again oneself state can be switched to malfunction by resting state, it is possible to continue according to step S302 institute
State, fault time-out time is set.Thus, effectively prevent the router of configuration error, such as, router
15 become virtual router master, cause Network Abnormal.
Step S305: described in be in the router of resting state, within the described standby time-out time, if not connecing
Receive described notification packet, then oneself state is switched to major state by resting state.
In the present embodiment, if the described router being switched to resting state by malfunction, standby super at this
Time the time in, do not receive yet virtual router master send notification packet time, then by oneself state by standby shape
State switches to major state.
For example, it is assumed that current virtual router master 14 fault, it is impossible to send notification packet, and router 16 is also
Fault, it is impossible to oneself state is switched to major state, then switched to resting state by malfunction
Router 15, then, within this standby time-out time, do not receive the notification packet that virtual router master sends, then
By resting state, oneself state can be switched to major state, now, router 15 is virtual router master.
The most such as, as it has been described above, in virtual router master 14 fault, after router 16 becomes virtual router master,
Now router 15 is in malfunction, and includes fault time-out time.If assuming current virtual router master 16
Also break down, then router 15 can perform step S303, will switch to resting state by oneself state,
Follow-up, step S304 can be continued executing with, until, router 15, within the described standby time, receives not yet
The notification packet sent to virtual router master, then router 15 oneself state the most at last switches to major state.
In this case, due to current virtual router master, such as, router 15 configuration error, will draw
Play Network Abnormal.Now, user can find to cause the reason of Network Abnormal in time, and such as, user is permissible
Check the state switching record of router, be may determine that the oneself state of current virtual router master by this record
It is by malfunction, switches to resting state, finally because of standby time-out time time-out, just switch to master control shape
State, so that it is determined that current virtual router master configuration error, then user can repair network quickly, it is to avoid
Long-time suspension, results in greater loss to user.
Additionally, when the state of all-router in VRRP backup group all switches to major state, such as,
When switch 12 fault, router 14 to router 16 does not all receive the notice that virtual router master sends
Message, the most all switches to major state by oneself state.Follow-up, when switch 12 recovers normal, then may be used
With according to election mechanism, re-elect out the highest router of priority as virtual router master.Such as, road
Be virtual router master by device 14, then virtual router master 14 continuation sends and carries self backup group configuration information
Notification packet, when other routers, such as router 15, according to the notification packet received, detect this
When ground backup group configuration information is inconsistent with the configuration information in notification packet, then by oneself state by master control shape
State switches to malfunction, and router 16, according to the notification packet received, local backup group detected
Configuration information and the accordant configuration information in notification packet, then switched to standby by oneself state by major state
State.
The method of application the present embodiment, when standby router detects local backup group configuration information and master control road
By the backup group configuration information of device inconsistent time, oneself state is switched to malfunction, such that it is able to avoid
VRRP backup group exists a more than virtual router master simultaneously, causes network to shake;And when Network Abnormal,
Can be by the malfunction of router, prompting user causes the reason of Network Abnormal effectively so that user
Network problem can be repaired quickly, thus avoid long Network Abnormal, user be caused bigger
Loss.
On the basis of above-mentioned Fig. 2 with embodiment illustrated in fig. 3, following Fig. 4, illustrate the application VRRP
Another embodiment flow chart of the method for backup group state switching, in the embodiment shown in this Fig. 4,4 is detailed
Describe described in be in the router of malfunction be how to carry out oneself state switching, including following step
Rapid:
Step S401: the notice report sent according to the described virtual router master received when described standby router
Literary composition, described notification packet carries the backup group configuration information of configuration on described virtual router master, determines this locality
When backup group configuration information in backup group configuration information and described notification packet is inconsistent, by oneself state by
Resting state switches to malfunction.
The detailed description of this step may refer to the associated description of step S201 in above-described embodiment, at this no longer
It is described in detail.
Step S402: described standby router after oneself state is switched to malfunction by resting state,
Fault time-out time is set.
The detailed description of this step may refer to the associated description of step S302 in above-described embodiment, at this no longer
It is described in detail.
Step S403: be in the router of malfunction described in if, in described fault time-out time, if connecing
Receiving described notification packet, the backup group configuration information of detection this locality assembles with the backup in described notification packet
Confidence breath is the most consistent, if unanimously, then performs step S404;If inconsistent, then perform step S405.
See the associated description of step S202 in above-described embodiment, it is assumed that have modified the road being in malfunction
By the backup group configuration information of device 15, its virtual ip address is revised as 1.1.1.254 by 1.1.1.253.That
, when router 15 continues to the described notification packet that virtual router master 14 sends, can detect
The backup group accordant configuration information carried in local backup group configuration information and this notification packet, then, can
To perform step S404;If assuming have modified the backup group configuration information of the router 15 being in malfunction,
Its virtual ip address is revised as 1.1.1.252 by 1.1.1.253, or backup to router 15 does not assembles
Confidence breath is modified, then, when router 15 continues to the described logical of virtual router master 14 transmission
Accuse message, the backup group configuration carried in local backup group configuration information and this notification packet can be detected
Information or inconsistent, then can perform step S405.
Step S404: described in be in the router of malfunction oneself state switched to by malfunction standby
State.
The detailed description of this step may refer to the associated description of step S202 in above-described embodiment, at this no longer
It is described in detail.
Step S405: described in be in malfunction router continue keep described malfunction, and update therefore
Barrier time-out time.
This step is how to update fault time-out time, may refer to step S302 in above-described embodiment
Associated description, in this not go into detail.
The method of application the present embodiment, when standby router detects local backup group configuration information and master control road
By the backup group configuration information of device inconsistent time, oneself state is switched to malfunction, such that it is able to avoid
VRRP backup group exists a more than virtual router master simultaneously, causes network to shake.When being in malfunction
Router when confirming the backup group accordant configuration information of backup group configuration information and virtual router master of self,
Oneself state can be reverted to resting state, so that during virtual router master fault, this standby router
Virtual router master can be switched to, to undertake forwarding task;And when backup group configuration information is the most inconsistent,
Continue to keep malfunction constant, the router of configuration error can be avoided to switch to virtual router master, cause
Network Abnormal.
Corresponding with the embodiment of the method for aforementioned VRRP backup group state switching, present invention also provides
The embodiment of the device of VRRP backup group state switching.
The embodiment of the device of the application VRRP backup group state switching can be applied at the network equipment, such as,
On router.Device embodiment can be realized by software, it is also possible to by hardware or software and hardware combining
Mode realizes.As a example by implemented in software, as the device on a logical meaning, it is by its place network
Computer program instructions corresponding in nonvolatile memory is read operation shape in internal memory by the processor of equipment
Become.For hardware view, as it is shown in figure 5, be the device of the application VRRP backup group state switching
A kind of hardware structure diagram of the place network equipment, except the processor 51 shown in Fig. 5, internal memory 52, network connect
Outside mouth 53 and nonvolatile memory 54, in embodiment, the network equipment at device place is generally according to this
The actual functional capability of the network equipment, it is also possible to include other hardware, this is repeated no more.
Refer to Fig. 6, illustrate an embodiment block diagram of the device of the application VRRP backup group state switching,
Described VRRP backup group can include that virtual router master and standby router, described device may include that
One switch unit the 61, second switch unit 62.
Wherein, described first switch unit 61, may be used for when described standby router is according to the institute received
Stating the notification packet that virtual router master sends, described notification packet carries on described virtual router master the standby of configuration
Part group configuration information, determines that the backup group configuration information of this locality is believed with the backup group configuration in described notification packet
When ceasing inconsistent, oneself state is switched to malfunction by resting state;
Described second switch unit 62, may be used for when described in be in the router of malfunction according to receiving
Described notification packet, determine the backup group configuration in backup group configuration information and the described notification packet of this locality
When information is consistent, oneself state is switched to resting state by malfunction.
On the basis of above-mentioned Fig. 6 shown device, following Fig. 7, illustrate the application VRRP backup group shape
Another embodiment block diagram of device of state switching, described device can also include: first arrange unit 63,
Second arranges unit 64.
Described first arranges unit 63, may be used for described standby router by oneself state by standby shape
After state switches to malfunction, fault time-out time is set;
Described second switch unit 62, it is also possible to be used for: described in be in the router of malfunction, described
In fault time-out time, if not receiving described notification packet, then oneself state is switched to by malfunction
Resting state.
Described second arranges unit 64, may be used at the described router being in malfunction, by self
After state is switched to resting state by described malfunction, the standby time-out time is set;
Described first switch unit 61, it is also possible to be used for: described in be in the router of resting state, described
In the standby time-out time, if not receiving described notification packet, then oneself state is switched to by resting state
Major state.
On the basis of above-mentioned Fig. 6 and Fig. 7 shown device, following Fig. 8, illustrate the application VRRP
Another embodiment block diagram of the device of backup group state switching.Described device can also include: updating block
65, election unit the 66, the 3rd switch unit 67.
Wherein, described updating block 65 may be used for: described in be in the router of malfunction, described therefore
In barrier time-out time, if receiving described notification packet, and backup group configuration information and the institute of this locality detected
State the backup group configuration information in notification packet inconsistent, then continue to keep described malfunction, and update event
Barrier time-out time.
Described election unit 66, may be used for when the oneself state of all-router all switches to major state,
According to default election mechanism, again router the highest for priority is set to virtual router master, described master
Control router sends notification packet;
Described 3rd switch unit 67, may be used for when in addition to the virtual router master that described priority is the highest
Other routers, if according to the described notification packet received, determining backup group configuration information and the institute of this locality
When stating the backup group accordant configuration information in notification packet, then oneself state is switched to by described major state
Resting state;
If according to the described notification packet received, determine that the backup group configuration information of this locality notices report with described
When backup group configuration information in literary composition is inconsistent, then oneself state is switched to fault shape by described major state
State.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method
Rapid realizes process, does not repeats them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees
The part of embodiment of the method illustrates.Device embodiment described above is only schematically, wherein
The described unit illustrated as separating component can be or may not be physically separate, as unit
The parts of display can be or may not be physical location, i.e. may be located at a place, or also may be used
To be distributed on multiple NE.Some or all of module therein can be selected according to the actual needs
Realize the purpose of the application scheme.Those of ordinary skill in the art in the case of not paying creative work,
I.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all in this Shen
Within spirit please and principle, any modification, equivalent substitution and improvement etc. done, should be included in this Shen
Within the scope of please protecting.
Claims (10)
1. the method for a Virtual Router Redundacy Protocol VRRP backup group state switching, it is characterised in that institute
State VRRP backup group and include virtual router master and standby router;Described method includes:
When the notification packet that described standby router sends according to the described virtual router master received, described logical
Accuse message and carry the backup group configuration information of configuration on described virtual router master, determine the backup group configuration of this locality
When information is inconsistent with the backup group configuration information in described notification packet, oneself state is cut by resting state
It is changed to malfunction;
When the described router of malfunction that is in is according to the described notification packet received, determine the standby of this locality
When part organizes the backup group accordant configuration information in configuration information and described notification packet, by oneself state by fault
State switches to resting state.
Method the most according to claim 1, it is characterised in that described method also includes:
Described standby router, after oneself state is switched to malfunction by resting state, arranges fault and surpasses
Time the time;
The described router being in malfunction, in described fault time-out time, if not receiving described logical
Accuse message, then oneself state is switched to resting state by malfunction.
Method the most according to claim 2, it is characterised in that described method also includes:
The described router being in malfunction, in described fault time-out time, if receiving described notice
Message, and the backup group configuration information of this locality detected with the backup group configuration information in described notification packet not
Unanimously, then continue to keep described malfunction, and update fault time-out time.
Method the most according to claim 2, it is characterised in that described do not receiving described notice report
Literary composition, then, after oneself state being switched to resting state by described malfunction, also include:
The standby time-out time is set;
The described router being in resting state, within the described standby time-out time, if not receiving described logical
Accuse message, then oneself state is switched to major state by resting state.
Method the most according to claim 1, it is characterised in that described method also includes:
When the oneself state of all-router all switches to major state, according to default election mechanism, weight
New virtual router master that router the highest for priority is set to, described virtual router master transmission notification packet;
Other routers in addition to the virtual router master that described priority is the highest, if according to described in receiving
Notification packet, determines backup group configuration information and the backup group configuration information one in described notification packet of this locality
During cause, then oneself state is switched to resting state by described major state;
If according to the described notification packet received, determine that the backup group configuration information of this locality notices report with described
When backup group configuration information in literary composition is inconsistent, then oneself state is switched to fault shape by described major state
State.
6. the device of a VRRP backup group state switching, it is characterised in that described VRRP backup group bag
Include virtual router master and standby router;Described device includes:
First switch unit, for sending according to the described virtual router master received when described standby router
Notification packet, described notification packet carries on described virtual router master the backup group configuration information of configuration, really
When fixed local backup group configuration information is inconsistent with the backup group configuration information in described notification packet, will be from
Body state is switched to malfunction by resting state;
Second switch unit, is in the router of malfunction according to the described notice received described in working as
Message, when determining the backup group accordant configuration information in local backup group configuration information and described notification packet,
Oneself state is switched to resting state by malfunction.
Device the most according to claim 6, it is characterised in that described device also includes:
First arranges unit, for oneself state being switched to event by resting state at described standby router
After barrier state, fault time-out time is set;
Described second switch unit, is additionally operable to: described in be in the router of malfunction, surpass in described fault
Time the time in, if not receiving described notification packet, then oneself state is switched to standby shape by malfunction
State.
Device the most according to claim 7, it is characterised in that described device also includes:
Updating block, be used for described in be in the router of malfunction, in described fault time-out time, if
Receive described notification packet, and the backup group configuration information of this locality and standby in described notification packet detected
Part group configuration information is inconsistent, then continue to keep described malfunction, and update fault time-out time.
Device the most according to claim 7, it is characterised in that described device also includes:
Second arranges unit, at the described router being in malfunction, by oneself state by described
After malfunction switches to resting state, the standby time-out time is set;
Described first switch unit, is additionally operable to: described in be in the router of resting state, described standby super
Time the time in, if not receiving described notification packet, then oneself state is switched to master control shape by resting state
State.
Device the most according to claim 6, it is characterised in that described device also includes:
Election unit, for when the oneself state of all-router all switches to major state, according to presetting
Election mechanism, again router the highest for priority is set to virtual router master, described virtual router master
Send notification packet;
3rd switch unit, for working as other routers in addition to the virtual router master that described priority is the highest,
If according to the described notification packet received, determining in backup group configuration information and the described notification packet of this locality
Backup group accordant configuration information time, then oneself state is switched to resting state by described major state;
If according to the described notification packet received, determine that the backup group configuration information of this locality notices report with described
When backup group configuration information in literary composition is inconsistent, then oneself state is switched to fault shape by described major state
State.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610137539.0A CN105939215B (en) | 2016-03-10 | 2016-03-10 | The method and device of VRRP backup group state switching |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610137539.0A CN105939215B (en) | 2016-03-10 | 2016-03-10 | The method and device of VRRP backup group state switching |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105939215A true CN105939215A (en) | 2016-09-14 |
CN105939215B CN105939215B (en) | 2018-12-25 |
Family
ID=57151289
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610137539.0A Active CN105939215B (en) | 2016-03-10 | 2016-03-10 | The method and device of VRRP backup group state switching |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105939215B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108494675A (en) * | 2018-02-07 | 2018-09-04 | 华为技术有限公司 | Realize the method, apparatus and routing device of Virtual Router Redundacy Protocol backup group |
CN109039747A (en) * | 2018-08-09 | 2018-12-18 | 北京搜狐新媒体信息技术有限公司 | The two-node cluster hot backup control method and device of DPDK service |
CN113433503A (en) * | 2021-08-26 | 2021-09-24 | 江苏智臻能源科技有限公司 | Self-diagnosis method of resident user load identification module |
WO2022141440A1 (en) * | 2020-12-31 | 2022-07-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and network element for network redundancy |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101160795A (en) * | 2005-11-30 | 2008-04-09 | 华为技术有限公司 | Method for managing Virtual Router Redundancy Protocol (VRRP) backup groups |
US20140219076A1 (en) * | 2002-10-18 | 2014-08-07 | Brocade Communications Systems, Inc. | Redundancy support for network address translation (nat) |
CN104753710A (en) * | 2013-12-30 | 2015-07-01 | 北京大唐高鸿软件技术有限公司 | Main/standby switching system and method of dual-wan PORT network apparatus |
CN103095573B (en) * | 2013-02-07 | 2015-11-11 | 杭州华三通信技术有限公司 | A kind of method that Virtual Router Redundancy Protocol backup group switches and switch |
-
2016
- 2016-03-10 CN CN201610137539.0A patent/CN105939215B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140219076A1 (en) * | 2002-10-18 | 2014-08-07 | Brocade Communications Systems, Inc. | Redundancy support for network address translation (nat) |
CN101160795A (en) * | 2005-11-30 | 2008-04-09 | 华为技术有限公司 | Method for managing Virtual Router Redundancy Protocol (VRRP) backup groups |
CN103095573B (en) * | 2013-02-07 | 2015-11-11 | 杭州华三通信技术有限公司 | A kind of method that Virtual Router Redundancy Protocol backup group switches and switch |
CN104753710A (en) * | 2013-12-30 | 2015-07-01 | 北京大唐高鸿软件技术有限公司 | Main/standby switching system and method of dual-wan PORT network apparatus |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108494675A (en) * | 2018-02-07 | 2018-09-04 | 华为技术有限公司 | Realize the method, apparatus and routing device of Virtual Router Redundacy Protocol backup group |
CN109039747A (en) * | 2018-08-09 | 2018-12-18 | 北京搜狐新媒体信息技术有限公司 | The two-node cluster hot backup control method and device of DPDK service |
CN109039747B (en) * | 2018-08-09 | 2021-06-11 | 北京搜狐新媒体信息技术有限公司 | Dual-computer hot standby control method and device for DPDK service |
WO2022141440A1 (en) * | 2020-12-31 | 2022-07-07 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and network element for network redundancy |
CN113433503A (en) * | 2021-08-26 | 2021-09-24 | 江苏智臻能源科技有限公司 | Self-diagnosis method of resident user load identification module |
Also Published As
Publication number | Publication date |
---|---|
CN105939215B (en) | 2018-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1770733B (en) | Fault tolerant network architecture | |
US8009556B2 (en) | System and method for providing redundant routing capabilities for a network node | |
US6906998B1 (en) | Switching device interfaces | |
JP4484803B2 (en) | Network operation management system | |
US8937869B2 (en) | Communication device, communication system, and communication fault detection method | |
US20050111352A1 (en) | Method and system for monitoring a network containing routers using a backup routing protocol | |
CN107623593B (en) | Method and equipment for hot standby of dual computers based on CU separation | |
US20100067530A1 (en) | Data communication system and method for preventing packet proliferation in a multi-device link aggregate network | |
US7864666B2 (en) | Communication control apparatus, method and program thereof | |
CN110113259B (en) | Path state notification method, path switching method, forwarding equipment and system | |
CN105939215A (en) | Method and device for switching state of VRRP backup group | |
CN110891018B (en) | Network traffic recovery method and device, SDN controller and storage medium | |
US20080232375A1 (en) | Packet transmission device | |
US7983152B1 (en) | Dual-homing layer 2 switch | |
CN104869057A (en) | OpeFlow switch graceful restart processing method, device and OpeFlow controller | |
CN102594613B (en) | Method and device for failure diagnosis of multi-protocol label switching virtual private network (MPLS VPN) | |
CN111585797B (en) | Ethernet link switching method, device, equipment and computer readable storage medium | |
CN101442429B (en) | Method and system for implementing disaster-tolerating of business system | |
CN105939254B (en) | The method and device of VRRP backup group state switching | |
JP4405941B2 (en) | Line redundancy method and relay apparatus used therefor | |
CN109445975B (en) | Exception handling method, logic device and member equipment | |
CN105592490A (en) | Route switching method and equipment | |
CN106100987A (en) | A kind of method and device of the secondary router of active router based on VRRP agreement switching | |
JPH07264233A (en) | Route high speed changeover method and router | |
WO2007006198A1 (en) | A method for realizing the dual homing in the network with separated controlling and bearing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant after: Hangzhou Dipu Polytron Technologies Inc Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building Applicant before: Hangzhou Dipu Technology Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |