CN109088818A - A kind of method and device of equipment linkage switching - Google Patents
A kind of method and device of equipment linkage switching Download PDFInfo
- Publication number
- CN109088818A CN109088818A CN201810796098.4A CN201810796098A CN109088818A CN 109088818 A CN109088818 A CN 109088818A CN 201810796098 A CN201810796098 A CN 201810796098A CN 109088818 A CN109088818 A CN 109088818A
- Authority
- CN
- China
- Prior art keywords
- equipment
- switching
- linkage
- notification message
- handoff notification
- 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
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/28—Routing or path finding of packets in data switching networks using route fault recovery
Abstract
The embodiment of the present application provides a kind of method and device of equipment linkage switching, is related to field of communication technology, cannot achieve network interruption caused by linkage switches between the master/slave device using different agreement deployment to solve the problems, such as.The scheme of the embodiment of the present application includes: the first main equipment by service switching to first from equipment, then other equipment of first main equipment into linkage switch groups send handoff notification message, handoff notification message is used to that the other equipment in linkage switch groups to be notified to carry out linkage switching, the first backup group disposed by the first agreement and the second backup group disposed by second protocol are included at least in the switch groups that link, the first main equipment and first is included at least in first backup group, and the second main equipment and second is included at least from equipment, the second backup group from equipment.
Description
Technical field
This application involves fields of communication technology, more particularly to a kind of method and device of equipment linkage switching.
Background technique
In common networking plan, generally using active-standby mode to network element device (such as interchanger, router, fire prevention
Wall etc.) it is disposed, to avoid the network interruption as caused by single machine failure.Virtual Router Redundacy Protocol can be passed through at present
The backup group that (Virtual Router Redundancy Protocol, VRRP) constitutes set of router is virtual as one
Router chooses main equipment according to VRRP priority from backup group, and the router in backup group in addition to main equipment is from setting
It is standby, when main equipment breaks down, by the business from equipment adapter tube main equipment.
Other than using VRRP agreement, each manufacturer can also realize the deployment of active-standby mode using proprietary protocol.In reality
During the on-premise network of border, heterogeneous network can be used, it can carry out on-premise network using the equipment of different vendor, for example, logical
It is virtually a virtual switch that VRRP, which is crossed, by interchanger 1 and interchanger 2, and interchanger 1 is main equipment, interchanger 2 be from equipment,
It by firewall 1 and firewall 2 is virtually a virtual firewall by proprietary protocol, firewall 1 is main equipment, and firewall 2 is
From equipment, interchanger can be interconnected by VRRP virtual address and the virtual address of firewall.Interchanger 1 is connect by the physics of itself
Mouth is connected with the physical interface of firewall 1, and interchanger 2 is connected by the physical interface of itself with the physical interface of firewall 2.
The physical interface of the interchanger 1 and interchanger 2 disposed by VRRP agreement is activation (active) state, and is passed through
In the firewall 1 and firewall 2 of proprietary protocol deployment.If interchanger 1 due to itself physical interface failure and by service switching
It, can be by service switching to firewall 2 after firewall 1 detects that the physical connection between interchanger 1 disconnects to interchanger 2.So
And when cut when the reason of interchanger 1 is not as interface fault by service switching to interchanger 2, between firewall 1 and interchanger 1
Physical connection it is normal, firewall 1 can not be triggered by service switching to firewall 2, if pass through proprietary protocol dispose standby equipment
I.e. firewall 2 can not receive the data from interchanger 2 by physical interface, then will lead to network interruption.For example, if firewall
2 physical interface is that inactive (inactive) state or firewall 2 are in inactive state, then can not then be connect by physical interface
The data that interchanger 2 transmits are received, will lead to network interruption.
Summary of the invention
The method and device for being designed to provide a kind of equipment linkage switching of the embodiment of the present application, to solve using different
The problem of cannot achieve network interruption caused by linkage switches between the master/slave device of agreement deployment.Specific technical solution is as follows:
In a first aspect, embodiments herein provides a kind of method of equipment linkage switching, comprising:
First main equipment is by service switching to first from equipment;
Other equipment of first main equipment into linkage switch groups send handoff notification message, and the switching notice disappears
It ceases for notifying the other equipment in the linkage switch groups to carry out linkage switching, includes at least and pass through in the linkage switch groups
First backup group of the first agreement deployment and the second backup group disposed by second protocol, institute is included at least in the first backup group
It states the first main equipment and described first and includes at least the second main equipment and second from equipment, second backup group from equipment.
In one possible implementation, in first main equipment by service switching to first after equipment, institute
State method further include:
The switching mark position itself stored is added 1 by first main equipment.
In one possible implementation, other equipment of first main equipment into linkage switch groups send switching
Notification message, comprising:
When the switching mark position that first main equipment determines that itself is stored changes, into the linkage switch groups
Other equipment send the handoff notification message.
In one possible implementation, the mark of the linkage switch groups is included at least in the handoff notification message
With the newest switching mark position of first main equipment storage.
Second aspect, embodiments herein provide a kind of method of equipment linkage switching, comprising:
Second main equipment receives the handoff notification message that the first main equipment is sent, and the handoff notification message is for notifying connection
Other equipment in dynamic switch groups carry out linkage switching, and the disposed by the first agreement is included at least in the linkage switch groups
One backup group and the second backup group disposed by second protocol include first main equipment and the in first backup group
One from equipment, second backup group includes second main equipment and second from equipment;
Second main equipment is according to the handoff notification message by service switching to described second from equipment.
In one possible implementation, the mark of the linkage switch groups is included at least in the handoff notification message
With switching mark position.
In one possible implementation, second main equipment according to the handoff notification message by service switching extremely
Second from equipment, comprising:
The mark and the connection in the handoff notification message that second main equipment judges the linkage switch groups belonging to itself
Identifying whether for dynamic switch groups is consistent;
If consistent, judge whether the switching mark position of itself storage is less than the switching carried in the handoff notification message
Flag bit;
If being less than, second main equipment is by service switching to described second from equipment.
In one possible implementation, in second main equipment by service switching to second after equipment, institute
State method further include:
First main equipment is cut what the switching mark position itself stored was updated to carry in the handoff notification message
Change flag bit.
The third aspect, embodiments herein provide a kind of device of equipment linkage switching, comprising:
Switching module, for by service switching to first from equipment;
Sending module sends handoff notification message for the other equipment into linkage switch groups, and the switching notice disappears
It ceases for notifying the other equipment in the linkage switch groups to carry out linkage switching, includes at least and pass through in the linkage switch groups
First backup group of the first agreement deployment and the second backup group disposed by second protocol include at least the in the first backup group
One main equipment and described first includes at least the second main equipment and second from equipment from equipment, second backup group.
In one possible implementation, described device further include: memory module;
The memory module is used in the switching module by service switching to first after equipment, by itself storage
Switching mark position adds 1.
In one possible implementation, the sending module, specifically for when the determining memory module storage
When switching mark position changes, the other equipment into the linkage switch groups send the handoff notification message.
In one possible implementation, the mark of the linkage switch groups is included at least in the handoff notification message
With the newest switching mark position of memory module storage.
Fourth aspect, embodiments herein provide a kind of device of equipment linkage switching, comprising:
Receiving module, for receiving the handoff notification message of the first main equipment transmission, the handoff notification message is for leading to
Know that the other equipment in linkage switch groups carry out linkage switching, includes at least in the linkage switch groups and disposed by the first agreement
The first backup group and the second backup group for being disposed by second protocol, include first main equipment in first backup group
It include the second main equipment and second from equipment from equipment, second backup group with first;
Switching module, the handoff notification message for being received according to the receiving module is by service switching to described
Second from equipment.
In one possible implementation, the mark of the linkage switch groups is included at least in the handoff notification message
With switching mark position.
In one possible implementation, described device further include: memory module;
The switching module, specifically for judging the mark of linkage switch groups belonging to described device and the switching notice
Identifying whether for linkage switch groups in message is consistent;If consistent, judge that the switching mark position of the memory module storage is
It is no to be less than the switching mark position carried in the handoff notification message;If being less than, by service switching to described second from equipment.
In one possible implementation, the memory module is also used to update the switching mark position of itself storage
For the switching mark position carried in the handoff notification message.
5th aspect, the embodiment of the present application provide a kind of electronic equipment, which includes: processor and machine readable
Storage medium, the machine readable storage medium is stored with the machine-executable instruction that can be executed by the processor, described
Processor is promoted by the machine-executable instruction: the method for realizing the equipment linkage switching in first aspect or second aspect.
6th aspect, the embodiment of the present application also provides a kind of computer readable storage medium, the computer-readable storages
Dielectric memory contains computer program, and institute in first aspect or second aspect is realized when the computer program is executed by processor
The method for the equipment linkage switching stated.
7th aspect, the embodiment of the present application also provides a kind of computer program products comprising instruction, when it is being calculated
When being run on machine, so that the method that computer executes the switching of equipment linkage described in above-mentioned first aspect or second aspect.
The method of above equipment provided by the embodiments of the present application linkage switching, in the first main equipment by service switching to first
After equipment, the first main equipment can send handoff notification message to the other equipment in linkage switch groups, be cut with notice linkage
It, can after the other equipment changed in group carry out linkage switching, and then the second main equipment in the switch groups that link receives notification message
According to handoff notification message by service switching to second from equipment, it is seen then that use this method, switch when in a backup group
When, it can notify the equipment in other backup groups, and then realize the equipment in other backup groups and carry out linkage switching, it can be to avoid
The problem of cannot achieve network interruption caused by linkage switches using the backup group that different agreement is disposed due to two.
Certainly, implement the application any product or method it is not absolutely required to and meanwhile reach all the above excellent
Point.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram of communication system provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of the method for equipment linkage switching provided by the embodiments of the present application;
Fig. 3 is the flow chart of the method for another equipment linkage switching provided by the embodiments of the present application;
Fig. 4 is a kind of structural schematic diagram of the device of equipment linkage switching provided by the embodiments of the present application;
Fig. 5 is the structural schematic diagram of the device of another equipment linkage switching provided by the embodiments of the present application;
Fig. 6 is the structural schematic diagram of a kind of electronic equipment provided by the embodiments of the present application.
Specific embodiment
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on
Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall in the protection scope of this application.
Inventor has found when studying the prior art: the service switching of prior art main equipment in the first backup group to from
When equipment, if the physical interface of the slave equipment for connecting the first backup group from the device of the second backup group is in inactive state,
It will cause network interruption.Therefore when the service switching of the embodiment of the present application main equipment in the first backup group is to from equipment, by the
The business of main equipment is also switched to from equipment in two backup groups, make the second backup group connect from the device the first backup group from
The physical interface of equipment is switched to activated state, can receive the service message of the slave equipment transmission of the first backup group.
The method of equipment linkage switching provided by the embodiments of the present application can be applied in communication system, wrap in communication system
Include at least two using different agreements backup groups, include in each backup group a main equipment and at least one from equipment.
The method of linkage switching is generally used between two backup groups, and there are physics companies between the main equipment of two different backup groups
Connect, the slave equipment in two different backup groups is connected two-by-two, the slave equipment in one of backup group be in inactive state or its
Physical interface is in inactive state.
Illustratively, communication system includes the first backup group using the first agreement and the second backup using second protocol
Group includes the first main equipment in the first backup group and second from equipment, the second backup group include the second main equipment and second from
Equipment.It can be connected by physical interface between first main equipment and the second main equipment, first from equipment and second between equipment
It can be connected by physical interface, the first main equipment and first is in activated state from the physical interface of equipment, the second main equipment
Physical interface is in activated state, and second is in inactive state from the physical interface of equipment, the first backup group and the second backup group it
Between can be interconnected by the virtual address of the first backup group and the virtual address of the second backup group, when the service switching of the first main equipment
When to first from equipment, the second main equipment need to carry out linkage switching, i.e. the second main equipment is by service switching to second from equipment.
Illustratively, with the first agreement for VRRP agreement, second protocol is intelligent elastic framework (Intelligent
Resilient Framework, IRF) for agreement, as shown in Figure 1, the first backup group includes interchanger (switch) 1 and hands over
Change planes 2, interchanger 1 is the first main equipment, and interchanger 2 is first from equipment, and the second backup group includes firewall (firewall) 1
With firewall 2, firewall 1 is the second main equipment, and firewall 2 is second from equipment.
Wherein, interchanger 1 and interchanger 2 are respectively provided with the physical interface and IP address of oneself, for example, the net of interchanger 1
Address network agreement (Internet Protocol, IP) are as follows: 10.0.0.2/24, the IP address of interchanger 2 are 10.0.0.3/24.
The backup group that interchanger 1 and interchanger 2 form is a virtual switch, can be configured by VRRP agreement for the virtual switch
One virtual ip address, for example, the virtual ip address is 10.0.0.10/24.
By IRF agreement one virtual firewall of formation, which has IRF redundancy for firewall 1 and firewall 2
Mouthful, illustratively, the IP address of the virtual firewall is 10.0.0.1/24.
Above-mentioned virtual switch can be interconnected by the IRF redundancy mouth of virtual ip address and virtual firewall, the object of interchanger 1
Reason interface is connected with the physical interface of firewall 1, and the physical interface of interchanger 2 is connected with the physical interface of firewall 2, wherein
The physical interface of interchanger 1 and interchanger 2 is activated state, in the backup group being made up of IRF agreement, the only object of main equipment
Reason interface is activated state, i.e., the physical interface of firewall 1 is activated state, and the physical interface of firewall 2 is inactive state.
It is understood that although there are physical connections between interchanger 2 and firewall 2, due to the object of firewall 2
Reason interface is in inactive state, so firewall 2 can not be communicated by the physical interface of itself with interchanger 2.If subsequent fire prevention
The service switching of wall 1 to firewall 2, i.e. firewall 2 becomes main equipment, then the physical interface of firewall 2 will switch to activated state.
It should be noted that if interchanger 1 due to itself interface down and by service switching to interchanger 2, and exchange
The connected firewall 1 of machine 1 can be by service switching to firewall 2, if but interchanger 1 after detecting the interface down of interchanger 1
After being not due to the interface down triggering switching of itself, there are still firewalls 1 for the physical connection between firewall 1 and interchanger 1
Do not know that interchanger 1 has carried out service switching, so firewall 1 will not be by service switching to firewall 2, firewall 2 at this time
The problem of physical interface is still inactive state, can not communicate with interchanger 2 by the physical interface of itself, lead to network interruption.
In order to solve this problem, the embodiment of the present application provides a kind of method of equipment linkage switching, cuts business in the first main equipment
First is shifted to after equipment, the first main equipment can send handoff notification message, Jin Er to the other equipment in linkage switch groups
After two main equipments receive the handoff notification message, can according to handoff notification message by service switching to second from equipment.It adopts
With this method, when in a backup group main equipment by service switching to from equipment after, handoff notification message notice linkage can be passed through
Other equipment in switch groups, and then can trigger other backup groups in linkage switch groups for the service switching of main equipment to from setting
It is standby, to realize linkage switching, avoids and led since two cannot achieve linkage switching using the backup group that different agreement is disposed
The problem of network interruption of cause.
The method switched below by way of specific embodiment to equipment linkage provided by the embodiments of the present application is illustrated.
Communication system as shown in connection with fig. 1, the embodiment of the invention provides a kind of method of equipment linkage switching, such as Fig. 2
It is shown, this method comprises:
S201, the first main equipment are by service switching to first from equipment.
It should be noted that before carrying out the method, linkage switch groups can be arranged according to networking situation, link switch groups
In include at least by the first agreement dispose the first backup group and pass through second protocol dispose the second backup group.First backup
The first main equipment and first is included at least in group, and the second main equipment and second is included at least from equipment, the second backup group from setting
It is standby.
It is understood that the first main equipment by service switching to first after equipment, first will take over from equipment
The business of one main equipment carrying, the main equipment in the first backup group will be changed to this first from equipment at this time.
Illustratively, in conjunction with Fig. 1, the first agreement can be VRRP agreement, correspondingly, the first main equipment can be interchanger
1, first from equipment can be interchanger 2.Second protocol can be IRF agreement, correspondingly, the second main equipment can be firewall
1, second from equipment can be firewall 2.
Alternatively, the first agreement can be IRF agreement, correspondingly, the first main equipment can be firewall 1, first from equipment
It can be firewall 2.Second protocol can be VRRP agreement, correspondingly, the second main equipment can be interchanger 1, second from setting
Standby can be interchanger 2.
The other equipment of S202, the first main equipment into linkage switch groups send handoff notification message.
Wherein, handoff notification message is used to that the other equipment in linkage switch groups to be notified to carry out linkage switching.Switching notice
Message can be encapsulated in IP packet, the other equipment being sent in linkage switch groups in the form of multicast.
S203, the second main equipment receive the handoff notification message that the first main equipment is sent.
It should be noted that illustrate only the step of the second main equipment receives handoff notification message in Fig. 2, practical first from
Equipment, the second main equipment and second, which can receive from equipment to the handoff notification message, first, to be connect from equipment and second from equipment
The process that equipment linkage switches will not be triggered after receiving switching request message.
S204, the second main equipment are according to handoff notification message by service switching to second from equipment.
Wherein, after the second main equipment receives handoff notification message, the first backup can be determined according to handoff notification message
Active-standby switch occurs in group, and then the second main equipment carries out linkage switching, by service switching to second from equipment, it is possible to understand that
, the second main equipment is by service switching to second after equipment, and second from the business of the second main equipment of equipment adapter tube, and second
Main equipment in backup group is changed to this second from equipment.
Using above equipment provided by the embodiments of the present application linkage switching method, the first main equipment by service switching extremely
First after equipment, and the first main equipment can send handoff notification message to the other equipment in linkage switch groups, to notify to join
Other equipment in dynamic switch groups carry out linkage switching, and then the second main equipment in the switch groups that link receives notification message
Afterwards, can according to handoff notification message by service switching to second from equipment, it is seen then that this method is used, when going out in a backup group
When now switching, the equipment in other backup groups can be notified, and then realize the equipment in other backup groups and carry out linkage switching, it can
The problem of to avoid cannot achieve network interruption caused by linkage switches using the backup group that different agreement is disposed due to two.
Below on the basis of Fig. 2, application scenarios as shown in connection with fig. 1, to equipment linkage provided by the embodiments of the present application
The method of switching is described in detail, and includes the interchanger 1 and interchanger 2 in Fig. 1 with the first backup group in this embodiment,
Second backup group include be illustrated for firewall 1 and firewall 2 in Fig. 1, as shown in figure 3, this method comprises:
S301, interchanger 1 are by service switching to interchanger 2.
Optionally, switch reasons can be updated for the VRRP priority of the equipment in the first backup group, exchange after update
The VRRP priority of machine 2 is higher than the VRRP priority of interchanger 1.Alternatively, switch reasons are different for the partial service module of interchanger 1
Often.Certain switch reasons are not restricted to both listed above.
Wherein, interchanger 1 can by VRRP handover process by service switching to interchanger 2, i.e., by interchanger 2 switching based on
Equipment.
The switching mark position (switchover flags) plus 1 that S302, interchanger 1 store itself.
Wherein, each equipment in the switch groups that link stores switching mark position, every primary switching of generation, switching mark position
Add 1.Optionally, the switching mark position of each equipment storage in the switch groups that link is 0.
For example, in S302, switching mark position can be updated if the switching mark position of interchanger 1 before handover is 0
It is 1.
S303, when interchanger 1 determine itself storage switching mark position change when, to linkage switch groups in other
Equipment sends handoff notification message.
Wherein, the handoff notification message that interchanger 1 is sent includes at least the mark (switchover of linkage switch groups
Union group identity) and the newest switching mark position that stores of interchanger 1, the marks of the switch groups that link is to link
Switch group number.Optionally, protocol version (version) and type of message (type) can also be carried in handoff notification message.
As an example, which can be encapsulated in after the heading in IP packet, and protocol number is
115, it is sent by multicast 224.2.2.2.The handoff notification message specifically includes following field:
|version|Type|Switchover union group ID|Switchover Flag|
Wherein, version is protocol version, can be 1.
Type is type of message, can be notice (advertisement) message, can set the corresponding field of type of message
It is set to 1, indicates that type of message is notification packet with the field.
Switchover union group ID is linkage switching group number, and value range can be 1 to 255.
Switchover Flag is switching mark position, and initial value 0, switching mark position of every switching adds 1.
Optionally, version can be the 0th to 3 byte in handoff notification message, and Type is the of handoff notification message
4 to 7 bytes, Switchover union group ID are the 8th to 15 byte of handoff notification message, Switchover Flag
For the 16th to 31 byte of handoff notification message.
It should be noted that each equipment in the same linkage switch groups is configured for the mark of identical linkage switching
Know, for example, interchanger 1, interchanger 2, firewall 1 and the composition linkage switch groups 1 of firewall 2 in Fig. 1, the then exchange in Fig. 1
Being configured linkage switching group number in machine 1, interchanger 2, firewall 1 and firewall 2 is 1, illustratively, can be on interchanger 1
Configure Switchover union group 1.
Optionally, after interchanger 2 receives handoff notification message, the switching mark position of itself storage can be updated to switch
The switching mark position carried in notification message, such as the switching mark position that itself is stored are updated to 1 by 0.
The handoff notification message that S304,1 desampler 1 of firewall are sent.
S305, firewall 1 judge that the linkage in the mark and handoff notification message of the linkage switch groups belonging to itself switches
Identifying whether for group is consistent.
If consistent, S306 is executed;If inconsistent, the handoff notification message can be ignored.
S306, firewall 1 judge whether the switching mark position of itself storage is less than the switching carried in handoff notification message
Flag bit.
If so, executing S307;If it is not, can then ignore the handoff notification message.
For example, if the switching mark position of itself storage is 0, and the switching mark position carried in handoff notification message is 1, then
It can determine that active-standby switch has had occurred in other backup groups in linkage switch groups.
S307, firewall 1 are by service switching to firewall 2.
Wherein, firewall 2 can be switched to main equipment by IRF process by service switching to firewall 2 by firewall 1.
The switching mark position that itself is stored is updated to the switching mark carried in handoff notification message by S308, firewall 1
Position.
Disappear it should be noted that the switching mark position itself stored is updated to switching notice by IRF process by firewall 1
The switching mark position carried in breath, since the backup group being made up of IRF agreement is considered as a combination plant, in backup group
Each equipment can regard component units of the combination plant as, which can run an IRF process, it is possible to understand that
Be each equipment in backup group use the same IRF process, so IRF process can make firewall 2 store switching mark position with
The switching mark position that firewall 1 stores is consistent, it is understood that shares the same switching mark position for firewall 1 and firewall 2.
The embodiment of the present application increases new notification packet (i.e. handoff notification message), as caused by non-interface fault
After active-standby switch occurs, using the method for the equipment linkage switching that embodiments herein provides, interchanger 1 can switch to linkage
Other equipment in group send handoff notification message, after the firewall 1 as main equipment receives the handoff notification message, if
Determine itself storage linkage switching group number with itself belonging to linkage switching group number it is identical, and itself store switching mark position
Less than the switching mark position that handoff notification message carries, then can determine in other backup groups in the linkage switch groups belonging to itself
Active-standby switch has occurred, it, can be by service switching extremely in the case where firewall 1 knows that active-standby switch has occurred in other backup groups
Firewall 2, and then the physical interface of firewall 2 will become activated state, two backup groups in the switch groups that link can still communicate, and keep away
Exempt from the case where network interruption occur.
It should be noted that active-standby switch occurs between the interchanger in Fig. 1 in Fig. 3, trigger between firewall into
For row active-standby switch.Conversely, actively switching if first having occurred between firewall, the side of linkage switching is carried out between interchanger
Method is similar with the above method, i.e., after firewall 1 is by service switching to firewall 2, switching mark that firewall 1 stores itself
Position plus 1, and the other equipment into linkage switch groups send handoff notification message, after interchanger 1 receives handoff notification message,
It can be according to handoff notification message by service switching to interchanger 2.
As it can be seen that may be implemented in by the above method using under VRRP agreement and the scene of IRF combination of protocols networking, if wherein
Active-standby switch occurs for one backup group, another backup group also carries out linkage switching, avoids and is led due to that can not link switching
The problem of network interruption of cause, improves the availability of network.
Corresponding to above method embodiment, embodiments herein provides a kind of device of equipment linkage switching, the device
It can be the first main equipment in above-described embodiment, or be the chip in the first main equipment, as shown in figure 4, the device includes:
Switching module 401 and sending module 402.
Switching module 401, for by service switching to first from equipment.
Sending module 402 sends handoff notification message, handoff notification message for the other equipment into linkage switch groups
For notifying the other equipment in linkage switch groups to carry out linkage switching, the first agreement portion that passes through is included at least in the switch groups that link
First backup group of administration and the second backup group disposed by second protocol, include at least in the first backup group the first main equipment and
First includes at least the second main equipment and second from equipment from equipment, the second backup group.
Wherein, the mark of linkage switch groups and the newest switching of memory module storage are included at least in handoff notification message
Flag bit.
Optionally, device further include: memory module 403;
Memory module 403, for when switching module 401 by service switching to first from equipment after, by itself store cut
It changes flag bit and adds 1.
Optionally, sending module 402, specifically for changing when the switching mark position for determining that memory module 403 stores
When, the other equipment into linkage switch groups send handoff notification message.
Corresponding to above method embodiment, embodiments herein also provides the device of another equipment linkage switching, should
Device can be the second main equipment in above-described embodiment, or be the chip in the second main equipment, as shown in figure 5, the device
It include: receiving module 501 and switching module 502.
Receiving module 501, for receiving the handoff notification message of the first main equipment transmission, handoff notification message is for notifying
Other equipment in linkage switch groups carry out linkage switching, and first disposed by the first agreement is included at least in the switch groups that link
Backup group and the second backup group disposed by second protocol include the first main equipment and first in the first backup group from equipment,
It include the second main equipment and second in second backup group from equipment;
Switching module 502, handoff notification message for being received according to receiving module 501 by service switching to second from
Equipment.
Wherein, mark and the switching mark position of linkage switch groups are included at least in handoff notification message.
Optionally, device further include: memory module 503;
Switching module 502, specifically for judging in the mark and handoff notification message of linkage switch groups belonging to the device
Linkage switch groups identify whether it is consistent;If consistent, judge whether the switching mark position of the storage of memory module 503 is less than and cut
Change the switching mark position carried in notification message;If being less than, by service switching to second from equipment.
Optionally, memory module 503 are also used to be updated to take in handoff notification message by the switching mark position of itself storage
The switching mark position of band.
The embodiment of the present application also provides a kind of electronic equipment, which can set for the first master in above-described embodiment
It is standby, or the second main equipment can be illustratively the interchanger 1 or firewall 1 in Fig. 1, as shown in fig. 6, including place
Manage device 601, communication interface 602, memory 603 and communication bus 604, wherein processor 601, communication interface 602, memory
603 complete mutual communication by communication bus 604,
Memory 603, for storing computer program;
In the case where electronic equipment is the first main equipment, processor 601 is stored on memory 603 for executing
When program, the step of being executed in above method embodiment by the first main equipment is realized.
In the case where electronic equipment is the second main equipment, processor 601 is stored on memory 603 for executing
When program, the step of being executed in above method embodiment by the second main equipment is realized.
The communication bus that above-mentioned electronic equipment is mentioned can be Peripheral Component Interconnect standard (Peripheral Component
Interconnect, PCI) bus or expanding the industrial standard structure (Extended Industry Standard
Architecture, EISA) bus etc..The communication bus can be divided into address bus, data/address bus, control bus etc..For just
It is only indicated with a thick line in expression, figure, it is not intended that an only bus or a type of bus.
Communication interface is for the communication between above-mentioned electronic equipment and other equipment.
Memory may include random access memory (Random Access Memory, RAM), also may include non-easy
The property lost memory (Non-Volatile Memory, NVM), for example, at least a magnetic disk storage.Optionally, memory may be used also
To be storage device that at least one is located remotely from aforementioned processor.
Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit,
CPU), network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processing, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
It is field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete
Door or transistor logic, discrete hardware components.
In another embodiment provided by the present application, a kind of computer readable storage medium is additionally provided, which can
It reads to be stored with computer program in storage medium, the computer program realizes any of the above-described equipment linkage when being executed by processor
The step of method of switching.
In another embodiment provided by the present application, a kind of computer program product comprising instruction is additionally provided, when it
When running on computers, so that the method that computer executes any appliance linkage switching in above-described embodiment.
In the above-described embodiments, can come wholly or partly by software, hardware, firmware or any combination thereof real
It is existing.When implemented in software, it can entirely or partly realize in the form of a computer program product.The computer program
Product includes one or more computer instructions.When loading on computers and executing the computer program instructions, all or
It partly generates according to process or function described in the embodiment of the present application.The computer can be general purpose computer, dedicated meter
Calculation machine, computer network or other programmable devices.The computer instruction can store in computer readable storage medium
In, or from a computer readable storage medium to the transmission of another computer readable storage medium, for example, the computer
Instruction can pass through wired (such as coaxial cable, optical fiber, number from a web-site, computer, server or data center
User's line (DSL)) or wireless (such as infrared, wireless, microwave etc.) mode to another web-site, computer, server or
Data center is transmitted.The computer readable storage medium can be any usable medium that computer can access or
It is comprising data storage devices such as one or more usable mediums integrated server, data centers.The usable medium can be with
It is magnetic medium, (for example, floppy disk, hard disk, tape), optical medium (for example, DVD) or semiconductor medium (such as solid state hard disk
Solid State Disk (SSD)) etc..
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality
Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation
In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to
Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those
Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment
Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that
There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.
The foregoing is merely the preferred embodiments of the application, are not intended to limit the protection scope of the application.It is all
Any modification, equivalent replacement, improvement and so within spirit herein and principle are all contained in the protection scope of the application
It is interior.
Claims (15)
1. a kind of method of equipment linkage switching characterized by comprising
First main equipment is by service switching to first from equipment;
Other equipment of first main equipment into linkage switch groups send handoff notification message, and the handoff notification message is used
In notifying the other equipment in the linkage switch groups to carry out linkage switching, is included at least in the linkage switch groups and pass through first
First backup group of agreement deployment and the second backup group disposed by second protocol include at least described the in the first backup group
One main equipment and described first includes at least the second main equipment and second from equipment from equipment, second backup group.
2. the method according to claim 1, wherein in first main equipment by service switching to first from setting
After standby, the method also includes:
The switching mark position itself stored is added 1 by first main equipment.
3. according to the method described in claim 2, it is characterized in that, first main equipment to linkage switch groups in other set
Preparation send handoff notification message, comprising:
When first main equipment determine itself storage switching mark position change when, to it is described linkage switch groups in its
He sends the handoff notification message at equipment.
4. according to the method in any one of claims 1 to 3, which is characterized in that at least wrapped in the handoff notification message
Include the mark of the linkage switch groups and the newest switching mark position of first main equipment storage.
5. a kind of method of equipment linkage switching characterized by comprising
Second main equipment receives the handoff notification message that the first main equipment is sent, and the handoff notification message is for notifying linkage to cut
The other equipment changed in group carry out linkage switching, included at least in the linkage switch groups disposed by the first agreement it is first standby
Part group and the second backup group disposed by second protocol, include in first backup group first main equipment and first from
Equipment includes second main equipment and second in second backup group from equipment;
Second main equipment is according to the handoff notification message by service switching to described second from equipment.
6. according to the method described in claim 5, being cut it is characterized in that, including at least the linkage in the handoff notification message
Change mark and the switching mark position of group.
7. according to the method described in claim 6, it is characterized in that, second main equipment will according to the handoff notification message
Service switching is to second from equipment, comprising:
Second main equipment judges that the mark of the linkage switch groups belonging to itself is cut with the linkage in the handoff notification message
Change identifying whether unanimously for group;
If consistent, judge whether the switching mark position of itself storage is less than the switching mark carried in the handoff notification message
Position;
If being less than, second main equipment is by service switching to described second from equipment.
8. the method according to the description of claim 7 is characterized in that in second main equipment by service switching to second from setting
After standby, the method also includes:
The switching mark position itself stored is updated to the switching mark carried in the handoff notification message by first main equipment
Will position.
9. a kind of device of equipment linkage switching, which is characterized in that described device includes:
Switching module, for by service switching to first from equipment;
Sending module sends handoff notification message for the other equipment into linkage switch groups, and the handoff notification message is used
In notifying the other equipment in the linkage switch groups to carry out linkage switching, is included at least in the linkage switch groups and pass through first
First backup group of agreement deployment and the second backup group disposed by second protocol, it is main that first is included at least in the first backup group
Equipment and described first includes at least the second main equipment and second from equipment from equipment, second backup group.
10. device according to claim 9, which is characterized in that described device further includes memory module;
The memory module, for storing switching mark position;
The sending module, specifically for when the switching mark position for determining memory module storage changes, to described
Other equipment in the switch groups that link send the handoff notification message.
11. device according to claim 9 or 10, which is characterized in that included at least in the handoff notification message described
The newest switching mark position of the mark for the switch groups that link and memory module storage.
12. a kind of device of equipment linkage switching characterized by comprising
Receiving module, for receiving the handoff notification message of the first main equipment transmission, the handoff notification message is for notifying connection
Other equipment in dynamic switch groups carry out linkage switching, and the disposed by the first agreement is included at least in the linkage switch groups
One backup group and the second backup group disposed by second protocol include first main equipment and the in first backup group
One from equipment, second backup group includes the second main equipment and second from equipment;
Switching module, the handoff notification message for being received according to the receiving module is by service switching to described second
From equipment.
13. device according to claim 12, which is characterized in that include at least the linkage in the handoff notification message
The mark of switch groups and switching mark position.
14. device according to claim 13, which is characterized in that described device further include: memory module;
The switching module, specifically for judging the mark of linkage switch groups belonging to described device and the handoff notification message
In linkage switch groups identify whether it is consistent;If consistent, judge whether the switching mark position of the memory module storage is small
The switching mark position carried in the handoff notification message;If being less than, by service switching to described second from equipment.
15. a kind of electronic equipment, which is characterized in that including processor and machine readable storage medium, the machine readable storage
Media storage has the machine-executable instruction that can be executed by the processor, and the processor is by the machine-executable instruction
Promote: realizing any method and step of claim 1-4, or realizes any method and step of claim 5-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810796098.4A CN109088818B (en) | 2018-07-19 | 2018-07-19 | Equipment linkage switching method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810796098.4A CN109088818B (en) | 2018-07-19 | 2018-07-19 | Equipment linkage switching method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109088818A true CN109088818A (en) | 2018-12-25 |
CN109088818B CN109088818B (en) | 2021-07-30 |
Family
ID=64837932
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810796098.4A Active CN109088818B (en) | 2018-07-19 | 2018-07-19 | Equipment linkage switching method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109088818B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385170A (en) * | 2020-03-18 | 2020-07-07 | 杭州迪普科技股份有限公司 | Interface state synchronization system and method thereof |
CN113660123A (en) * | 2021-08-16 | 2021-11-16 | 杭州朗和科技有限公司 | Virtual switch upgrading method and device, electronic equipment and storage medium |
CN113794631A (en) * | 2021-08-20 | 2021-12-14 | 新华三信息安全技术有限公司 | Port redundancy processing method, device, equipment and machine-readable storage medium |
CN114301842A (en) * | 2021-12-30 | 2022-04-08 | 山石网科通信技术股份有限公司 | Route searching method and device, storage medium, processor and network system |
WO2022088931A1 (en) * | 2020-10-29 | 2022-05-05 | 中兴通讯股份有限公司 | Information processing method and apparatus, broadband access server, and storage medium |
CN114978987A (en) * | 2022-05-17 | 2022-08-30 | 北京交通大学 | Server redundancy backup method |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050265230A1 (en) * | 2004-06-01 | 2005-12-01 | Samsung Electronics Co., Ltd. | Apparatus and method for performing state transition of backup router in router redundancy system |
CN1812409A (en) * | 2006-01-16 | 2006-08-02 | 杭州华为三康技术有限公司 | Method and system for realizing synchronization of major and auxiliary state |
US7197660B1 (en) * | 2002-06-26 | 2007-03-27 | Juniper Networks, Inc. | High availability network security systems |
CN101094102A (en) * | 2007-07-18 | 2007-12-26 | 杭州华三通信技术有限公司 | Main and standby switching method and route standby system for route device |
CN102256250A (en) * | 2011-07-08 | 2011-11-23 | 杭州华三通信技术有限公司 | Wireless terminal information synchronization method in wireless local area network and equipment thereof |
CN102523358A (en) * | 2012-01-12 | 2012-06-27 | 江苏电力信息技术有限公司 | Call center communication access system based on concentrated voice access NGN (Next Generation Network) soft switch network |
CN103095600A (en) * | 2013-02-07 | 2013-05-08 | 杭州华三通信技术有限公司 | Loading balancing method based on Trill network and routing device |
CN105119822A (en) * | 2015-09-08 | 2015-12-02 | 烽火通信科技股份有限公司 | Backup group management method and system based on VRRP (Virtual Router Redundancy Protocol) |
US9590900B2 (en) * | 2012-08-08 | 2017-03-07 | Cisco Technology, Inc. | Protocol for supporting gateways with redundant routers in a shared domain |
-
2018
- 2018-07-19 CN CN201810796098.4A patent/CN109088818B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7197660B1 (en) * | 2002-06-26 | 2007-03-27 | Juniper Networks, Inc. | High availability network security systems |
US20050265230A1 (en) * | 2004-06-01 | 2005-12-01 | Samsung Electronics Co., Ltd. | Apparatus and method for performing state transition of backup router in router redundancy system |
CN1812409A (en) * | 2006-01-16 | 2006-08-02 | 杭州华为三康技术有限公司 | Method and system for realizing synchronization of major and auxiliary state |
CN101094102A (en) * | 2007-07-18 | 2007-12-26 | 杭州华三通信技术有限公司 | Main and standby switching method and route standby system for route device |
CN102256250A (en) * | 2011-07-08 | 2011-11-23 | 杭州华三通信技术有限公司 | Wireless terminal information synchronization method in wireless local area network and equipment thereof |
CN102523358A (en) * | 2012-01-12 | 2012-06-27 | 江苏电力信息技术有限公司 | Call center communication access system based on concentrated voice access NGN (Next Generation Network) soft switch network |
US9590900B2 (en) * | 2012-08-08 | 2017-03-07 | Cisco Technology, Inc. | Protocol for supporting gateways with redundant routers in a shared domain |
CN103095600A (en) * | 2013-02-07 | 2013-05-08 | 杭州华三通信技术有限公司 | Loading balancing method based on Trill network and routing device |
CN105119822A (en) * | 2015-09-08 | 2015-12-02 | 烽火通信科技股份有限公司 | Backup group management method and system based on VRRP (Virtual Router Redundancy Protocol) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111385170A (en) * | 2020-03-18 | 2020-07-07 | 杭州迪普科技股份有限公司 | Interface state synchronization system and method thereof |
CN111385170B (en) * | 2020-03-18 | 2021-06-11 | 杭州迪普科技股份有限公司 | Interface state synchronization system and method thereof |
WO2022088931A1 (en) * | 2020-10-29 | 2022-05-05 | 中兴通讯股份有限公司 | Information processing method and apparatus, broadband access server, and storage medium |
CN113660123A (en) * | 2021-08-16 | 2021-11-16 | 杭州朗和科技有限公司 | Virtual switch upgrading method and device, electronic equipment and storage medium |
CN113660123B (en) * | 2021-08-16 | 2024-02-13 | 杭州网易数之帆科技有限公司 | Virtual switch upgrading method, device, electronic equipment and storage medium |
CN113794631A (en) * | 2021-08-20 | 2021-12-14 | 新华三信息安全技术有限公司 | Port redundancy processing method, device, equipment and machine-readable storage medium |
CN113794631B (en) * | 2021-08-20 | 2023-04-07 | 新华三信息安全技术有限公司 | Port redundancy processing method, device, equipment and machine-readable storage medium |
CN114301842A (en) * | 2021-12-30 | 2022-04-08 | 山石网科通信技术股份有限公司 | Route searching method and device, storage medium, processor and network system |
CN114301842B (en) * | 2021-12-30 | 2024-03-15 | 山石网科通信技术股份有限公司 | Route searching method and device, storage medium, processor and network system |
CN114978987A (en) * | 2022-05-17 | 2022-08-30 | 北京交通大学 | Server redundancy backup method |
CN114978987B (en) * | 2022-05-17 | 2023-08-29 | 北京交通大学 | Server Redundancy Backup Method |
Also Published As
Publication number | Publication date |
---|---|
CN109088818B (en) | 2021-07-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109088818A (en) | A kind of method and device of equipment linkage switching | |
CN106789264B (en) | A kind of method and apparatus that link aggregation group channel is switched fast | |
US20090249115A1 (en) | Method and system for dynamic link failover management | |
CN101951345B (en) | Message transmitting method and equipment | |
US20120233492A1 (en) | Transmitting network information using link or port aggregation protocols | |
US9467332B2 (en) | Node failure detection for distributed linear protection | |
CN104113428B (en) | A kind of equipment management device and method | |
WO2009023996A1 (en) | Method for implementing network interconnect via link aggregation | |
CN102780635B (en) | The method of pretection switch, TOR switch and system is realized based on TRILL network | |
CN102724030A (en) | Stacking system with high reliability | |
US9264300B2 (en) | Hybrid distributed linear protection | |
CN104410570B (en) | A kind of data transmission method and device based on VRRP | |
CN106533736A (en) | Network device reboot method and apparatus | |
CN101989953A (en) | Method and equipment for sending bidirectional forwarding detection message | |
CN108551679A (en) | Wireless device communication means based on LAN Mesh technologies and system | |
CN114371912A (en) | Virtual network management method of data center and data center system | |
CN109889411B (en) | Data transmission method and device | |
EP3633931B1 (en) | Method and system for implementing mux machine | |
KR101563133B1 (en) | System and method for virtual circuit protection in the dynamic multi-domain environment | |
WO2014117499A1 (en) | Multicast recovering method and apparatus, and relay device comprising multicast recovering apparatus | |
CN103825816A (en) | Service transmission protection method and device based on polycyclic-structure network intersecting rings | |
CN110545198A (en) | ERPS loop damage method and main node | |
JP2014140095A (en) | Communication system and network relay device | |
CN111131035A (en) | Data transmission method and device | |
CN109327383A (en) | A kind of fault handling method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |