CN105939215B - The method and device of VRRP backup group state switching - Google Patents
The method and device of VRRP backup group state switching Download PDFInfo
- Publication number
- CN105939215B CN105939215B CN201610137539.0A CN201610137539A CN105939215B CN 105939215 B CN105939215 B CN 105939215B CN 201610137539 A CN201610137539 A CN 201610137539A CN 105939215 B CN105939215 B CN 105939215B
- Authority
- CN
- China
- Prior art keywords
- state
- router
- backup group
- notification packet
- configuration information
- 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.)
- Active
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
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The application provides a kind of method and device of VRRP backup group state switching, the described method includes: when standby router is according to the notification packet of the virtual router master transmission received, the notification packet carries the backup group configuration information configured on the virtual router master, when backup group configuration information in determining local backup group configuration information and the notification packet is inconsistent, oneself state is switched to malfunction by stand-by state;When oneself state is switched to stand-by state by malfunction when determining the backup group accordant configuration information in local backup group configuration information and the notification packet according to the notification packet received by the router in malfunction.Using the embodiment of the present application, when realizing virtual router master and inconsistent standby router configuration in VRRP backup group, the reason of not will cause network oscillation, and in Network Abnormal, effectively user prompted to cause Network Abnormal.
Description
Technical field
This application involves the method and devices that network communication technology field more particularly to VRRP backup group state switch.
Background technique
VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundacy Protocol) can undertake net
The set of router for closing function is added in VRRP backup group, forms a virtual router, the host in local area network only need by
Virtual router is configured to gateway.In VRRP backup group, determine which platform router undertakes forwarding task by VRRP election mechanism,
Virtual router master is elected, then other routers are standby router.When virtual router master occurs abnormal, can pass through
Timeout mechanism and election mechanism elect new virtual router master from standby router, and other equipment in gateway are without doing
Any variation, to effectively improve the stability of gateway.
But the network environment of network be not it is unalterable, when to VRRP backup group carry out configuration update when, it is likely that
It will appear the inconsistent situation of the backup group configuration information of the virtual router master and standby router in VRRP backup group.This feelings
, in the prior art, can be there are two types of alignment processing mode under condition, a kind of mode is standby router discovery and virtual router master
Backup group configuration information it is inconsistent when, oneself state is switched to major state by stand-by state automatically, but is thus made
There are a more than virtual router masters in network, it is likely that cause network oscillation, for example, each virtual router master is used alternatingly
It E-Packets;Another way is, when standby router discovery and the inconsistent backup group configuration information of virtual router master, still
Keep current stand-by state constant, but in this way when the subsequent standby router is after virtual router master failure, if oneself state
It is switched to major state, network will be caused obstructed due to configuration error, and after user has found Network Abnormal, due to router
Stand-by state and major state belong to normal condition, therefore user can not know to cause immediately by the state of router
The reason of Network Abnormal, it is likely that need to expend longer time Network Search abnormal cause, long-time suspension will be caused, to
Family causes damages.
Summary of the invention
In view of this, the application provides a kind of method and device of VRRP backup group state switching, it is standby in VRRP to realize
When virtual router master and standby router in part group configure inconsistent, network oscillation not will cause, and in Network Abnormal, have
The reason of prompt user in effect ground causes Network Abnormal.
Specifically, the application is achieved by the following technical solution:
According to the embodiment of the present application in a first aspect, providing a kind of method of VRRP backup group state switching, the VRRP
Backup group includes virtual router master and standby router;The described method includes:
When the notification packet that the standby router is sent according to the virtual router master received, the notification packet
The backup group configuration information configured on the virtual router master is carried, determines that local backup group configuration information and the notice are reported
When backup group configuration information in text is inconsistent, oneself state is switched to malfunction by stand-by state;
When the router in malfunction is according to the notification packet received, determining local backup group is matched
Confidence breath with the notification packet in backup group accordant configuration information when, oneself state is switched to spare shape by malfunction
State.
In one embodiment, the method also includes:
The standby router is after being switched to malfunction by stand-by state for oneself state, when failure time-out is arranged
Between;
The router in malfunction, in the failure time-out time, if not receiving the notification packet,
Oneself state is then switched to stand-by state by malfunction.
In another embodiment, the method also includes:
The router in malfunction, in the failure time-out time, if the notification packet is received, and
It detects that local backup group configuration information and the backup group configuration information in the notification packet are inconsistent, then continues to keep institute
Malfunction is stated, and updates failure time-out time.
In another embodiment, described not receive the notification packet, then by oneself state by the failure shape
State is switched to after stand-by state, further includes:
The standby time-out time is set;
The router in stand-by state, within the standby time-out time, if not receiving the notification packet,
Oneself state is then switched to major state by stand-by state.
In another embodiment, the method also includes:
It, again will be excellent according to preset election mechanism when the oneself state of all-router is all switched to major state
The first highest router of grade is set as virtual router master, and the virtual router master sends notification packet;
Other routers in addition to the virtual router master of the highest priority, if according to the notice report received
Text, when determining the backup group accordant configuration information in local backup group configuration information and the notification packet, then by itself shape
State is switched to stand-by state by the major state;
If being determined in local backup group configuration information and the notification packet according to the notification packet received
When backup group configuration information is inconsistent, then oneself state is switched to malfunction by the major state.
According to the second aspect of the embodiment of the present application, the device of VRRP backup group state switching, the VRRP backup are provided
Group includes virtual router master and standby router;Described device includes:
First switch unit, the notice for being sent when the standby router according to the virtual router master received
Message, the notification packet carry the backup group configuration information configured on the virtual router master, determine that local backup group is matched
When backup group configuration information in confidence breath and the notification packet is inconsistent, oneself state is switched to failure by stand-by state
State;
Second switch unit, for when the router in malfunction is according to the notification packet received,
When determining the backup group accordant configuration information in local backup group configuration information and the notification packet, by oneself state by event
Barrier state is switched to stand-by state.
In one embodiment, described device further include:
First setting unit, for oneself state to be switched to malfunction by stand-by state in the standby router
Afterwards, failure time-out time is set;
Second switch unit, is also used to: the router in malfunction, in the failure time-out time
It is interior, if not receiving the notification packet, oneself state is switched to stand-by state by malfunction.
In another embodiment, described device further include:
Updating unit, for the router in malfunction, in the failure time-out time, if receiving institute
Notification packet is stated, and detects that local backup group configuration information and the backup group configuration information in the notification packet are different
It causes, then continues to keep the malfunction, and update failure time-out time.
In another embodiment, described device further include:
Second setting unit, in the router in malfunction, by oneself state by the failure shape
State is switched to after stand-by state, and the standby time-out time is arranged;
First switch unit, is also used to: the router in stand-by state, in the standby time-out time
It is interior, if not receiving the notification packet, oneself state is switched to major state by stand-by state.
In another embodiment, described device further include:
Unit is elected, for when the oneself state of all-router is all switched to major state, according to preset election
Mechanism, sets virtual router master for the router of highest priority again, and the virtual router master sends notification packet;
Third switch unit, for working as other routers in addition to the virtual router master of the highest priority, if root
According to the notification packet received, determine that the backup group in local backup group configuration information and the notification packet matches confidence
When ceasing consistent, then oneself state is switched to stand-by state by the major state;
If being determined in local backup group configuration information and the notification packet according to the notification packet received
When backup group configuration information is inconsistent, then oneself state is switched to malfunction by the major state.
Using the method for the present embodiment, when standby router detects local backup group configuration information and virtual router master
When backup group configuration information is inconsistent, oneself state is switched to malfunction, later, is detecting that local backup assembles confidence
When the backup group accordant configuration information of breath and virtual router master, oneself state is reverted into stand-by state, so as to avoid
A more than virtual router master is existed simultaneously in VRRP backup group, causes network oscillation;Also it may be implemented, when exception occurs in network
When, by the malfunction of router, user can be effectively prompted, user is made to confirm the original for causing Network Abnormal quickly
Cause avoids prolonged Network Abnormal, results in greater loss to user.
Detailed description of the invention
Fig. 1 shows the application scenarios schematic diagram that the embodiment of the present application realizes the method for VRRP backup group state switching.
Fig. 2 illustrates one 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 structure diagram of the network equipment where the device of the application VRRP backup group state switching.
Fig. 6 illustrates one 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.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the application.
It is only to be not intended to be limiting the application merely for for the purpose of describing particular embodiments in term used in this application.
It is also intended in the application and the "an" of singular used in the attached claims, " described " and "the" including majority
Form, unless the context clearly indicates other meaning.It is also understood that term "and/or" used herein refers to and wraps
It may be combined containing one or more associated any or all of project listed.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the application
A little information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other out.For example, not departing from
In the case where the application range, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as
One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ...
When " or " in response to determination ".
VRRP is a kind of selection agreement, can be one virtual by the set of router tissue in local area network by its realization
Router, the virtual router can possess the virtual ip address of oneself, for example, being 1.1.1.254.It can be by this group of router
Referred to as VRRP backup group.In VRRP backup group, it can be elected a router by VRRP election mechanism and be routed as master control
Device, the i.e. virtual router master undertake forwarding task, and other routers are then standby router, and respectively in virtual router master and standby
With identical backup group configuration information is configured on router, which may include virtual ip address, for example,
1.1.1.254。
Host in local area network can set the virtual of the virtual router for the default route next hop address of itself
IP address, thus, the host in local area network can be realized by the virtual router to be led to other networks, such as internet
Letter.It, can be by election mechanism and timeout mechanism from alternate routing when the virtual router master in VRRP backup group breaks down
In device, a router is re-elected out as new virtual router master, which is continued to local area network
Interior host provides route service.
Since the network environment of network is complicated and changeable, when needing to carry out configuration update to the router in VRRP backup group
When, that is, local backup group configuration information is modified, for example, modification virtual ip address, it is likely that backup group configuration information occur and repair
It corrects mistakes mistake, for example, the backup group configuration information of standby router and virtual router master is inconsistent.In order to avoid in such case
Under, cause network oscillation, and reality now due to configuration error and when causing Network Abnormal, effectively prompt user network abnormal
Reason, such as the configuration of prompt which router of user go wrong, and the application provides a kind of VRRP backup group state switching
Method and device.
Following Fig. 1 shows the embodiment of the present application and realizes that the application scenarios of the method for VRRP backup group state switching show
It is intended to.It include: host 11, interchanger 12, server 13, router 14 to router 16 in Fig. 1, wherein host 11 is located at office
In the net of domain, it is to be understood that in practical applications, a more than host in the local area network, in the application only in local area network
Including being illustrated for a host, the application is without limitation;Interchanger 12 is used for the number being responsible between each router
According to the data transmission between transmission and host 11 and server 13;Server 13 is located in internet;Router 14 is to routing
Device 16 belongs to same VRRP backup group, i.e. router 14 to router 16 constitutes a virtual router 17, it is possible to understand that
It is that the router number in VRRP backup group can not be 3, only to include 3 routers in VRRP backup group in the application
For be illustrated, the application is without limitation.
In above-mentioned application scenario diagram shown in FIG. 1, it is assumed that the virtual ip address of virtual router 17 is 1.1.1.254,
Then itself default route next hop address on host 11 is set as the virtual ip address, to realize that host 11 passes through the virtual road
By device 17, communicated with the server 13 in internet.And backup group configuration is configured on router 14 to router 16
Information, the backup group configuration information may include virtual ip address 1.1.1.254, can also be respectively that every configuration of routers is excellent
First grade and mode, it is generally the case that it is not identical for the priority of every configuration of routers, for example, router 14 is to router
16 priority respectively is 200,100,50, and the mode of every router is contention mode.VRRP backup is configured
It, can be according to VRRP election mechanism, by the router of highest priority, for example, the election of router 14 is that master control routes after group
Device, then, other routers in the VRRP backup group, for example, router 15 and router 16 are then standby router.
It is spare when occurring when carrying out the modification of backup group configuration information to the router in VRRP backup group shown in Fig. 1
When the inconsistent situation of the backup group configuration information of router and virtual router master, it can be backed up using the embodiment of the present application VRRP
The method of group state switching, following Fig. 2 illustrate one embodiment stream of the method for the application VRRP backup group state switching
Cheng Tu, the embodiment are illustrated by taking the standby router 15 in Fig. 1 as an example.
Step S201: when the notification packet that the standby router is sent according to the virtual router master received, institute
State notification packet and carry the backup group configuration information configured on the virtual router master, determine local backup group configuration information with
When backup group configuration information in the notification packet is inconsistent, oneself state is switched to malfunction by stand-by state.
For example, virtual router master 14, every in preset notification time, i.e. notification packet of transmission, the notification packet
The backup group configuration information of virtual router master 14 can be carried, which may include virtual ip address, such as
1.1.1.254。
In the present embodiment, it is assumed that the backup group configuration information for having modified standby router 15, by its virtual ip address by
1.1.1.254 it is revised as 1.1.1.253.So, when standby router 15 receives the notification packet of the transmission of virtual router master 14
Afterwards, it is inconsistent to can detecte the backup group configuration information carried in local backup group configuration information and the notification packet, this
When, the state of itself can be switched to malfunction by stand-by state by standby router 15, to indicate that the VRRP of itself is backed up
Group configuration is likely to occur mistake, for example, the backup group configuration information with virtual router master 14 is inconsistent.
Due to, when standby router detects that the configuration of itself backup group is likely to occur mistake, it is switched to malfunction, and
Non- major state keeps stand-by state constant, thus, it not will lead in VRRP backup group while there are more master control routings
Device will not cause network oscillation;And it may be implemented that user's router is effectively prompted to be likely to occur configuration by malfunction
Mistake so that when causing Network Abnormal due to configuration error, the reason of user can determine Network Abnormal quickly, with compared with
Network is repaired fastly, is avoided long-time suspension, is resulted in greater loss to user.
Step S202: when the router in malfunction is according to the notification packet received, determination is local
Backup group configuration information and the notification packet in backup group accordant configuration information when, oneself state is cut by malfunction
It is changed to stand-by state.
Assuming that the backup group configuration information for being in the router 15 of malfunction is had modified, for example, by its virtual IP address
Location 1.1.1.254 is revised as by 1.1.1.253.So, when router 15 continues to described in the transmission of virtual router master 14
Notification packet can detecte the backup group configuration information one carried in local backup group configuration information and the notification packet
It causes, then, the state of itself can be switched to stand-by state by malfunction by router 15.
Using the method for the present embodiment, when standby router detects local backup group configuration information and virtual router master
When backup group configuration information is inconsistent, oneself state is switched to malfunction, later, is detecting that local backup assembles confidence
When the backup group accordant configuration information of breath and virtual router master, oneself state is reverted into stand-by state, so as to avoid
A more than virtual router master is existed simultaneously in VRRP backup group, causes network oscillation;Also it may be implemented, when due to configuration error
And when network being caused to occur abnormal, by the malfunction of router, user can be effectively prompted, confirms that user quickly
The reason of causing Network Abnormal avoids prolonged Network Abnormal, results in greater loss to user.
On the basis of above-mentioned embodiment illustrated in fig. 2, following Fig. 3 illustrates the switching of the application VRRP backup group state
Method another embodiment flow chart, describe in the embodiment shown in Fig. 3 the router in malfunction incite somebody to action from
Body state is switched to another situation of stand-by state, and the treatment process of state switching later, comprising the following steps:
Step S301: when the notification packet that the standby router is sent according to the virtual router master received, institute
State notification packet and carry the backup group configuration information configured on the virtual router master, determine local backup group configuration information with
When backup group configuration information in the notification packet is inconsistent, oneself state is switched to malfunction by stand-by state.
The associated description of this step may refer to the associated description of step S201 in above-described embodiment, no longer superfluous in detail herein
It states.
Step S302: the standby router is after being switched to malfunction by stand-by state for oneself state, setting event
Hinder time-out time.
In the present embodiment, the router of malfunction can be switched to by stand-by state for described according to preset algorithm,
For example, router 15, is arranged a failure time-out time, for example, must be out of order time-out time according to following formula:
Failure time-out time=3* notification time+(255- priority)/255 seconds, wherein notification time is virtual router master
To standby router send notification packet interval time, i.e., under normal circumstances, virtual router master every the notification time i.e. to
Standby router sends a notification packet;Priority is the own priority of the router.
It, can also be in practical application it is understood that above-mentioned formula is only to calculate a kind of example of failure time-out time
It is calculated using other algorithms, the application is without limitation.
Step S303: the router in malfunction, in the failure time-out time, if not receiving described
Oneself state is then switched to stand-by state by malfunction by notification packet.
In the present embodiment, if the router in malfunction, for example, router 15, in the failure time-out
In, notification packet transmitted by virtual router master is not received yet, oneself state can be switched to again by malfunction standby
Use state.At this point, the backup group configuration information of the router 15 still matches confidence with the backup group of current virtual router master 14
It ceases inconsistent.
Step S304: the router is arranged spare super after oneself state is switched to stand-by state by malfunction
When the time.
It, can be according to another preset algorithm, for the road for being switched to stand-by state by malfunction in the present embodiment
By device, such as router 15, is set, which can be counted according to following formula a standby time-out time
It calculates:
The standby time-out time=1+ (255- priority)/255 seconds.
It, can also be in practical application it is understood that above-mentioned formula is only to calculate a kind of example of standby time-out time
It is calculated using other algorithms, the application is without limitation.
The purpose that the standby time-out time is arranged is the time for postponing the router 15 and carrying out state switching again, so that
In the case where 14 failure of virtual router master, priority is lower, and the router in stand-by state can have an opportunity itself
State is switched to major state, such as the priority of router 16 is lower than the priority of router 15, and router 16 is currently located
In stand-by state, then oneself state can be switched to master control when the current virtual router master 14 of determination is abnormal by router 16
State, i.e. router 16 become virtual router master, send notification packet.It is sent out at this point, router 15 receives virtual router master
After the notification packet sent, oneself state can be switched to malfunction by stand-by state again, and can continue according to step
Described in S302, failure time-out time is set.So that the router of configuration error is effectively prevented, for example, router 15 becomes master
Router is controlled, Network Abnormal is caused.
Step S305: the router in stand-by state, within the standby time-out time, if not receiving described
Oneself state is then switched to major state by stand-by state by notification packet.
In the present embodiment, if the router for being switched to stand-by state by malfunction, in the standby time-out time
It is interior, when not receiving the notification packet of virtual router master transmission yet, then oneself state is switched to major state by stand-by state.
For example, it is assumed that current 14 failure of virtual router master, notification packet can not be sent, and the also failure of router 16, it can not
Oneself state is switched to major state, then the router 15 of stand-by state is switched to by malfunction, then it is spare at this
In time-out time, the notification packet of virtual router master transmission is not received, then can be switched to oneself state by stand-by state
Major state, at this point, router 15 is virtual router master.
In another example as described above, after router 16 becomes virtual router master, being routed at this time in 14 failure of virtual router master
Device 15 is in malfunction, and including failure time-out time.If assuming, current virtual router master 16 also breaks down, router
15 can execute step S303, i.e., oneself state is switched to stand-by state, subsequent, can continue to execute step S304, until,
Router 15 does not receive notification packet transmitted by virtual router master within the standby time yet, then router 15 is final
Oneself state is switched to major state.
In this case, due to current virtual router master, for example, 15 configuration error of router, will cause network different
Often.At this point, user can have found the reason of causing Network Abnormal in time, for example, user can check the state switching of router
Record, can determine that the oneself state of current virtual router master is to be switched to stand-by state, most by malfunction by the record
Eventually because of standby time-out time time-out, it is just switched to major state, so that it is determined that current virtual router master configuration error, then user
Network can be repaired quickly, avoided long-time suspension, resulted in greater loss to user.
In addition, when the state of the all-router in VRRP backup group is all switched to major state, for example, working as interchanger 12
When failure, router 14 to router 16 does not receive the notification packet of virtual router master transmission, then cuts oneself state
It is changed to major state.It is subsequent, when interchanger 12 restores normal, then priority can be re-elected out most according to election mechanism
High router is as virtual router master.For example, router 14 is virtual router master, then virtual router master 14 continues to send and carry
The notification packet of itself backup group configuration information, when other routers, such as router 15, according to the notification packet received,
When detecting that configuration information in local backup group configuration information and notification packet is inconsistent, then by oneself state by major state
It is switched to malfunction, and router 16 detects local backup group configuration information and notice according to the notification packet received
Oneself state is then switched to stand-by state by major state by the accordant configuration information in message.
Using the method for the present embodiment, when standby router detects local backup group configuration information and virtual router master
When backup group configuration information is inconsistent, oneself state is switched to malfunction, so as to avoid in VRRP backup group simultaneously
There are a more than virtual router masters, cause network oscillation;And in Network Abnormal, can by the malfunction of router,
The reason of effectively prompt user causes Network Abnormal, user is allowed to repair network problem quickly, so as to avoid length
The Network Abnormal of time, results in greater loss to user.
On the basis of above-mentioned Fig. 2 and embodiment illustrated in fig. 3, following Fig. 4 illustrates the application VRRP backup group state
Another embodiment flow chart of the method for switching, in the embodiment shown in Fig. 44 be described in detail it is described in failure shape
The router of state is how to carry out oneself state switching, comprising the following steps:
Step S401: when the notification packet that the standby router is sent according to the virtual router master received, institute
State notification packet and carry the backup group configuration information configured on the virtual router master, determine local backup group configuration information with
When backup group configuration information in the notification packet is inconsistent, oneself state is switched to malfunction by stand-by state.
The detailed description of this step may refer to the associated description of step S201 in above-described embodiment, no longer superfluous in detail herein
It states.
Step S402: the standby router is after being switched to malfunction by stand-by state for oneself state, setting event
Hinder time-out time.
The detailed description of this step may refer to the associated description of step S302 in above-described embodiment, no longer superfluous in detail herein
It states.
Step S403: if the router in malfunction, in the failure time-out time, if receiving described
Whether notification packet, it is consistent to detect local backup group configuration information and the backup group configuration information in the notification packet, if
Unanimously, S404 is thened follow the steps;If inconsistent, S405 is thened follow the steps.
Referring to the associated description of step S202 in above-described embodiment, it is assumed that have modified the router 15 for being in malfunction
Backup group configuration information, its virtual ip address is revised as 1.1.1.254 by 1.1.1.253.So, when router 15 continues
The notification packet for receiving the transmission of virtual router master 14 can detecte local backup group configuration information and the notice report
The backup group accordant configuration information carried in text, it is possible to execute step S404;If hypothesis, which has modified, has been in malfunction
Router 15 backup group configuration information, its virtual ip address is revised as 1.1.1.252 by 1.1.1.253, or not right
The backup group configuration information of router 15 is modified, then, when router 15 continues to the transmission of virtual router master 14
The notification packet can detecte the backup group configuration information carried in local backup group configuration information and the notification packet
Or it is inconsistent, then it can execute step S405.
Step S404: oneself state is switched to stand-by state by malfunction by the router in malfunction.
The detailed description of this step may refer to the associated description of step S202 in above-described embodiment, no longer superfluous in detail herein
It states.
Step S405: the router in malfunction continues to keep the malfunction, and updates failure time-out
Time.
It is how to update failure time-out time in this step, the correlation that may refer to step S302 in above-described embodiment is retouched
It states, in this not go into detail.
Using the method for the present embodiment, when standby router detects local backup group configuration information and virtual router master
When backup group configuration information is inconsistent, oneself state is switched to malfunction, so as to avoid in VRRP backup group simultaneously
There are a more than virtual router masters, cause network oscillation.When the router in malfunction is in the backup group for confirming itself
When the backup group accordant configuration information of configuration information and virtual router master, oneself state can be reverted into stand-by state, thus
So that the standby router can be switched to virtual router master when virtual router master failure, to undertake forwarding task;And it is backing up
When group configuration information is still inconsistent, continues to keep malfunction constant, master control can be switched to avoid the router of configuration error
Router causes Network Abnormal.
Corresponding with the embodiment of method of aforementioned VRRP backup group state switching, present invention also provides VRRP backup groups
The embodiment of the device of state switching.
The embodiment of the device of the application VRRP backup group state switching can be applied in the network equipment, for example, router
On.Installation practice can also be realized by software realization by way of hardware or software and hardware combining.With software reality
It is by the processor of the network equipment where it by nonvolatile memory as the device on a logical meaning for existing
In corresponding computer program instructions be read into memory operation formed.For hardware view, as shown in figure 5, being this Shen
Please VRRP backup group state switching device where the network equipment a kind of hardware structure diagram, in addition to processor 51 shown in fig. 5,
Network except memory 52, network interface 53 and nonvolatile memory 54, internal bus 55, in embodiment where device
Equipment can also include other hardware, repeat no more to this generally according to the actual functional capability of the network equipment.
Referring to FIG. 6, one embodiment block diagram of the device of the application VRRP backup group state switching is illustrated, it is described
VRRP backup group may include virtual router master and standby router, the apparatus may include: the first switch unit 61, second
Switch unit 62.
Wherein, first switch unit 61 can be used for when the standby router is according to the master control received
The notification packet that router is sent, the notification packet carry the backup group configuration information configured on the virtual router master, really
When backup group configuration information in fixed local backup group configuration information and the notification packet is inconsistent, by oneself state by standby
Malfunction is switched to state;
Second switch unit 62 can be used for when the router in malfunction is according to what is received
Notification packet will be certainly when determining the backup group accordant configuration information in local backup group configuration information and the notification packet
Body state is switched to stand-by state by malfunction.
On the basis of above-mentioned Fig. 6 shown device, following Fig. 7 illustrates the switching of the application VRRP backup group state
Another embodiment block diagram of device, described device can also include: the first setting unit 63, the second setting unit 64.
First setting unit 63 can be used for switching oneself state by stand-by state in the standby router
After malfunction, failure time-out time is set;
Second switch unit 62, can be also used for: the router in malfunction, in the failure time-out
In time, if not receiving the notification packet, oneself state is switched to stand-by state by malfunction.
Second setting unit 64, can be used in the router in malfunction, by oneself state by
The malfunction is switched to after stand-by state, and the standby time-out time is arranged;
First switch unit 61, can be also used for: the router in stand-by state, in the standby time-out
In time, if not receiving the notification packet, oneself state is switched to major state by stand-by state.
On the basis of above-mentioned Fig. 6 and Fig. 7 shown device, following Fig. 8 illustrates the application VRRP backup group state and cuts
Another embodiment block diagram of the device changed.Described device can also include: updating unit 65, election unit 66, third switching
Unit 67.
Wherein, the updating unit 65 can be used for: the router in malfunction, in the failure time-out
In, if receiving the notification packet, and detect the backup in local backup group configuration information and the notification packet
Group configuration information is inconsistent, then continues to keep the malfunction, and update failure time-out time.
The election unit 66, can be used for when the oneself state of all-router is all switched to major state, according to
Preset election mechanism, sets virtual router master for the router of highest priority again, and the virtual router master sends logical
Accuse message;
The third switch unit 67 can be used for when other roads in addition to the virtual router master of the highest priority
By device, if according to the notification packet received, determine local backup group configuration information with it is standby in the notification packet
When part group accordant configuration information, then oneself state is switched to stand-by state by the major state;
If being determined in local backup group configuration information and the notification packet according to the notification packet received
When backup group configuration information is inconsistent, then oneself state is switched to malfunction by the major state.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit
The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with
It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual
The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying
Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application
Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.
Claims (10)
1. a kind of method of Virtual Router Redundacy Protocol VRRP backup group state switching, which is characterized in that the VRRP backup group
Including virtual router master and standby router;The described method includes:
When the notification packet that the standby router is sent according to the virtual router master received, the notification packet is carried
The backup group configuration information configured on the virtual router master determines in local backup group configuration information and the notification packet
Backup group configuration information it is inconsistent when, oneself state is switched to malfunction by stand-by state;
When the router in malfunction is according to the notification packet received, determining local backup group matches confidence
Breath with the notification packet in backup group accordant configuration information when, oneself state is switched to stand-by state by malfunction;
It, will when the router in malfunction does not receive the notification packet in the failure time-out time of setting
Oneself state is switched to stand-by state by malfunction.
2. the method according to claim 1, wherein the method also includes:
Failure time-out time is arranged after oneself state is switched to malfunction by stand-by state in the standby router.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
The router in malfunction if receiving the notification packet, and detects in the failure time-out time
It is inconsistent to local backup group configuration information and the backup group configuration information in the notification packet, then continue to keep the event
Barrier state, and update failure time-out time.
4. according to the method described in claim 2, it is characterized in that, described do not receiving the notification packet, then by itself
State is switched to after stand-by state by the malfunction, further includes:
The standby time-out time is set;
The router in stand-by state, will if not receiving the notification packet within the standby time-out time
Oneself state is switched to major state by stand-by state.
5. the method according to claim 1, wherein the method also includes:
When the oneself state of all-router is all switched to major state, according to preset election mechanism, again by priority
Highest router is set as virtual router master, and the virtual router master sends notification packet;
Other routers in addition to the virtual router master of the highest priority, if according to the notification packet received,
When determining the backup group accordant configuration information in local backup group configuration information and the notification packet, then by oneself state by
The major state is switched to stand-by state;
If determining the backup in local backup group configuration information and the notification packet according to the notification packet received
When group configuration information is inconsistent, then oneself state is switched to malfunction by the major state.
6. a kind of device of VRRP backup group state switching, which is characterized in that the VRRP backup group include virtual router master and
Standby router;Described device includes:
First switch unit, the notice report for being sent when the standby router according to the virtual router master received
Text, the notification packet carry the backup group configuration information configured on the virtual router master, determine local backup group configuration
When backup group configuration information in information and the notification packet is inconsistent, oneself state is switched to failure shape by stand-by state
State;
Second switch unit is determined for the router described in malfunction according to the notification packet received
When backup group accordant configuration information in local backup group configuration information and the notification packet, by oneself state by failure shape
State is switched to stand-by state;
It, will when the router in malfunction does not receive the notification packet in the failure time-out time of setting
Oneself state is switched to stand-by state by malfunction.
7. device according to claim 6, which is characterized in that described device further include:
First setting unit, in the standby router after oneself state is switched to malfunction by stand-by state,
Failure time-out time is set.
8. device according to claim 7, which is characterized in that described device further include:
Updating unit, for the router in malfunction, in the failure time-out time, if receiving described logical
Message is accused, and detects that local backup group configuration information and the backup group configuration information in the notification packet are inconsistent, then
Continue to keep the malfunction, and updates failure time-out time.
9. device according to claim 7, which is characterized in that described device further include:
Second setting unit, in the router in malfunction, oneself state to be cut by the malfunction
It is changed to after stand-by state, the standby time-out time is set;
First switch unit, is also used to: the router in stand-by state, within the standby time-out time, if
The notification packet is not received, then oneself state is switched to major state by stand-by state.
10. device according to claim 6, which is characterized in that described device further include:
Unit is elected, for when the oneself state of all-router is all switched to major state, according to preset election mechanism,
Again virtual router master is set by the router of highest priority, the virtual router master sends notification packet;
Third switch unit, for working as other routers in addition to the virtual router master of the highest priority, if according to connecing
The notification packet received determines the backup group configuration information one in local backup group configuration information and the notification packet
When cause, then oneself state is switched to stand-by state by the major state;
If determining the backup in local backup group configuration information and the notification packet according to the notification packet received
When group configuration information is inconsistent, then oneself state is switched to malfunction by the major 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 CN105939215A (en) | 2016-09-14 |
CN105939215B true 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) |
Families Citing this family (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 |
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 |
CN113433503B (en) * | 2021-08-26 | 2022-02-18 | 江苏智臻能源科技有限公司 | Self-diagnosis method of resident user load identification module |
Citations (3)
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 |
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 |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7647427B1 (en) * | 2002-10-18 | 2010-01-12 | Foundry Networks, Inc. | Redundancy support for network address translation (NAT) |
-
2016
- 2016-03-10 CN CN201610137539.0A patent/CN105939215B/en active Active
Patent Citations (3)
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 |
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 |
Also Published As
Publication number | Publication date |
---|---|
CN105939215A (en) | 2016-09-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102904818B (en) | A kind of ARP information entry updating method and device | |
US9722917B2 (en) | Traffic recovery in openflow networks | |
CN103401726B (en) | Network path detection method and device, system | |
CN105939215B (en) | The method and device of VRRP backup group state switching | |
CN106559246B (en) | Cluster implementation method and server | |
CN110891018B (en) | Network traffic recovery method and device, SDN controller and storage medium | |
US20140169154A1 (en) | Method, routing device, and system for network device redundancy backup | |
CN104410570B (en) | A kind of data transmission method and device based on VRRP | |
US7716366B2 (en) | Enhancement of VRRP interface and router selection where an non-owner router is configured to respond to control and management messages addressed to an address associated with the virtual redundant router | |
EP2712135A1 (en) | Network system, transmission device, and fault information delivery method | |
CN103684953A (en) | Method and device for avoiding data traffic loss in an Ethernet ring multihomed, in an active-standby manner, to a virtual private LAN service transport network | |
CN111262665B (en) | Data communication method, device, controller and system | |
CN102594613B (en) | Method and device for failure diagnosis of multi-protocol label switching virtual private network (MPLS VPN) | |
CN109698767A (en) | A kind of main/standby switching method and device | |
US8203934B2 (en) | Transparent automatic protection switching for a chassis deployment | |
CN105939254B (en) | The method and device of VRRP backup group state switching | |
CN101399773B (en) | Method for organising network nodes in a packet-oriented network | |
US7869351B2 (en) | Communication techniques and generic layer 3 automatic switching protection | |
CN104125079A (en) | Method and device for determining double-device hot-backup configuration information | |
US20060077922A1 (en) | System method & apparatus for routing traffic in a telecommunications network | |
Papán et al. | Existing mechanisms of IP fast reroute | |
CN107959626B (en) | Communication method, device and system of data center | |
US20220124022A1 (en) | Reducing packet drops during a switch restart | |
KR20160002270A (en) | SDN-based service disability recovery apparatus and method therefor | |
CN106341323A (en) | VRRP state synchronizing method and device |
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 |
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. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |