WO2009009977A1 - Master backup switch method for route device and backup system for route device - Google Patents

Master backup switch method for route device and backup system for route device Download PDF

Info

Publication number
WO2009009977A1
WO2009009977A1 PCT/CN2008/071301 CN2008071301W WO2009009977A1 WO 2009009977 A1 WO2009009977 A1 WO 2009009977A1 CN 2008071301 W CN2008071301 W CN 2008071301W WO 2009009977 A1 WO2009009977 A1 WO 2009009977A1
Authority
WO
WIPO (PCT)
Prior art keywords
backup
group
advanced
groups
standby
Prior art date
Application number
PCT/CN2008/071301
Other languages
French (fr)
Chinese (zh)
Inventor
Yuanxiang Qiu
Original Assignee
Hangzhou H3C Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co., Ltd. filed Critical Hangzhou H3C Technologies Co., Ltd.
Publication of WO2009009977A1 publication Critical patent/WO2009009977A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques

Definitions

  • the present invention relates to an active/standby switching technology, and more particularly to an active/standby switching method and a routing device backup system for a routing device. Background of the invention
  • VRRP organizes a group of routers on a subnet, including a master device and a plurality of backup devices, into a virtual router, which is called a backup group.
  • Each backup group has a virtual IP address.
  • the host in the subnet only needs to know the virtual IP address of the backup group and set the virtual IP address of the backup group to the next hop address of the default route.
  • the host can communicate with the external network through the backup group.
  • the primary device in the backup group assumes the gateway function. However, once the primary device that assumes the gateway function in the backup group fails, the remaining backup devices will replace it to continue to perform the gateway duties, thus ensuring the network.
  • the host communicates with the external network without interruption, that is, once the primary device in the backup group fails, the primary and backup switches are performed.
  • the specific process of performing the active/standby switchover is as follows: When the routing device that is the primary device of the backup group fails, the active device of the standby group switches itself to the standby device of the backup group, and the priority in the backup group The highest-level standby device switches itself to the primary device of the backup group.
  • the next hop address of the terminal does not change when the routing device of the primary device that is the primary device of the VRRP group is faulty, so that the terminal can be connected to the corresponding virtual routing device, thereby maintaining the network. It is not affected by a single point of failure due to switching of routing devices at different addresses.
  • the embodiment of the present invention provides an active/standby switching method and a route backup system of a routing device, so as to implement switching between a primary device and a standby device in the backup group.
  • the active/standby switching method of the routing device provided by the embodiment of the present invention includes:
  • the primary device sends, to the standby device, a message indicating that the active device is running normally for the advanced backup group;
  • the at least two backup groups perform the active/standby switchover at the same time.
  • the active/standby switching method of the routing device includes:
  • a routing device backup system provided by the embodiment of the present invention includes: at least two backup groups, wherein the at least two backup groups have the same active device and standby device, and the at least two backup groups include one The selected advanced backup group;
  • the primary device is configured to send, to the standby device, a packet indicating that the primary device is in normal operation for the advanced backup group;
  • the standby device is configured to receive the packet indicating that the active device is in normal operation, and trigger the at least two backups when the packet indicating that the active device is in normal operation is not received within a preset period.
  • the group performs the active/standby switchover.
  • the primary device when at least two backup groups have the same primary device and backup device, although the primary device only sends a message to the backup device indicating that the primary device is operating normally for the advanced backup group, The packet can be learned whether the active device is working properly. If the received packet indicates that the active device is not working properly for the advanced backup group, it is obvious that the active device is not normal for other backup groups. With the present invention, switching between the primary device and the standby device in the backup group can be displayed.
  • the primary device since the primary device only sends the primary device to the backup device for the advanced backup group. A packet running normally does not need to be sent to all the backup groups to indicate that the active device is running normally. That is, the number of packets matching the normal operation of the primary device is not required to be sent, which reduces the number of packets in the network. Traffic, saving network bandwidth resources.
  • the standby device only needs to receive and process a message indicating that the primary device is running normally, and it can be known that the primary device that is the plurality of backup groups is in a normal working state, and does not receive the same number of backup groups as the backup group. If the active device is running normally, the packets that indicate that the active device is running normally will not be processed in time, and the packets indicating that the active device is running normally will not be discarded. The probability of network oscillating is greatly reduced.
  • the primary device does not need to send a packet indicating that the primary device is running normally for each backup group, so that the number of packets between the routing devices does not increase with the number of the backup group. Therefore, the number of backup groups supported by multiple routing devices can be increased without increasing the number of routing devices, that is, without additional cost. Moreover, the number of backup groups supported by the same multiple routing devices can be multiplied, without increasing the number of packets between routing devices, and not increasing the burden of routing devices acting as backup devices of the backup group. In the existing solution, the number of packets between routing devices can be greatly reduced when the number of backup groups is increased.
  • FIG. 1 is an exemplary flowchart of a method for switching between active and standby routes of a routing device according to an embodiment of the present invention.
  • FIG. 2 is a schematic structural diagram of a route backup system according to an embodiment of the present invention. Mode for carrying out the invention
  • the routing device For a backup group, when the routing device as its primary device works normally, its primary device sends a route to other routing devices that are backup devices of the backup group in a preset advertising period ( Advertisement_Interval, Adver Int).
  • Advertisement_Interval Adver Int
  • a packet indicating that the active device is working properly for example, a VRRP-based advertisement, to notify other routing devices of the current status.
  • the routing device of the active device is in normal working state.
  • the routing device that is the standby device does not receive a packet indicating that the active device is working normally, for example, during the advertised period, that is, when the standby device receives the timeout, the active/standby switchover is performed.
  • the existing advertisement packet usually includes the following fields: the protocol version number (Version), for example, the Version 2 of the VRRP (VRRPv2) is 2; the VRRP packet type (Type), for example, the VRRP-based Advertisement 4
  • the value of the backup group is 1; the virtual router number (VRR), which is the backup group number, can range from 1 to 255; the priority (Priority), which can range from 0 to 255; The number of addresses (Count IP Addrs); the type of authentication (Auth Type), which indicates the mechanism used to authenticate the received message; Adver Int, which can be in seconds, the default value can be 1 second; 16-bit Checksum is used to detect data corruption in VRRP packets.
  • IP address (IP Address) 1 ⁇ IP Address n which represents the virtual IP address entry of the VRRP group. n is equal to Count IP Addrs; Authentication Data ) 1 and Authentication Data 2.
  • the routing device that is the primary device of the VRRP group and the routing device that serves as the backup device of the VRRP group you need to set the routing group priority, packet authentication information, timer, and other backup group parameters of the VRRP group.
  • the inventor of the present application found that, in a backup group, the amount of information that the active device needs to send to the backup device indicating that the active device is working normally is large.
  • the inventor of the present application finds that, because the same multiple routing devices can simultaneously correspond to multiple subnets, the VRRP technology can enable the same multiple routing devices to simultaneously support multiple backup groups, that is, the same primary device and Several spare devices act as backup groups for different subnets at the same time.
  • the number of backup groups consisting of the same primary device and several standby devices is equal to the number of virtual IP addresses that the same primary device and several standby devices have.
  • the routing device that is the primary device of each backup group sends one to each routing device that is the standby device of the backup group.
  • the routing device acting as the primary device will send 1000 Advertisements to the routing device acting as the standby device in one advertised period. Message.
  • the more the number of backup groups the more the advertisements between the routing devices will be. If the number of advertisements reaches a certain number, the advertisement packets may flood, causing network traffic congestion and affecting other services. Forwarding of traffic.
  • the advertisement packet needs to be processed by the CPU in the routing device that receives the packet.
  • the CPU processing capability of the routing device is limited, when a large number of Advertisement packets are simultaneously flooded, the routing device is likely to be due to the Advertisement packet. Too many cannot be processed in time, or the hardware queue overflows and the Advertisement packet is discarded. As a result, the backup device receives the timeout and switches to the active device, causing network flapping and affecting traffic forwarding in the network.
  • the existing method generally limits the number of backup groups supported by the same multiple routing devices to less than 300, but this limits the application of the VRRP technology and cannot meet the actual needs of more backup groups. If you need more backup groups, you can only increase the number of routing devices. For example, when 600 backup groups are required, four routing devices are provided. Each of the two routing devices supports 300 backup groups, but this will cause hardware. The cost has doubled as the backup group has increased.
  • the primary device and at least one backup device support multiple backup groups at the same time, only the primary device sends a message to the at least one standby device for indicating that the primary device is running normally. If the at least one standby device receives the timeout, all the multiple backup groups perform the active/standby switchover.
  • the multiple backup groups are bundled, and then one of the bundled multiple backup groups is elected as the advanced backup group, and the other backup groups are followed by the advanced backup group. State switching.
  • the elected advanced backup group represents all the backup groups that are bundled, and the routing device that serves as the primary device of all the backup groups only needs to send the advanced backup to the routing device that is the standby device of the backup group in one notification period.
  • the packets indicating that the active device is running normally do not need to send packets equal to the number of backup groups to indicate that the primary device is running normally. This reduces traffic on the network and saves network bandwidth resources.
  • the routing device that is the backup device of all the backup groups receives a packet indicating that the active device is running normally, the routing device that is the primary device of all the backup groups is in a normal working state, and is not received at the same time. If the number of the backup group is equal to the number of the backup group, the packets indicating the normal operation of the active device will not be processed in time, and the received packets indicating that the active device is running normally will not be processed. The device is running normally.
  • the primary device of all the backup groups does not need to send packets indicating that the primary device is running normally, and the number of packets between the routing devices does not increase with the increase of the number of backup groups.
  • FIG. 1 is an exemplary flowchart of a method for switching between active and standby routes of a routing device according to an embodiment of the present invention.
  • the active/standby switchover method of the routing device in this embodiment includes the following steps:
  • Step 101 Elect a backup group from at least two backup groups as an advanced backup group.
  • the active devices of at least two backup groups are the same routing device, and the standby devices of at least two backup groups are the same at least one routing device.
  • any one of at least two backup groups may be manually set in a routing device that is the primary device of at least two backup groups and a routing device that is a backup device of at least two backup groups.
  • the backup group is set to an advanced backup group. For example, set a special identifier corresponding to its number for any one of the backup groups, and the routing device that is the primary device of at least two backup groups and the standby device that is the backup device of at least two backup groups.
  • Advanced backup group set up in the routing device The same is true; or, in the automatic setting mode, the routing device that is the primary device of the at least two backup groups and the routing device that is the standby device of the at least two backup groups negotiate any one of the at least two backup groups.
  • a routing device that is the primary device of at least two backup groups randomly elects one backup group from at least two backup groups as an advanced backup group, and notifies the route of the backup device as at least two backup groups. device.
  • Step 102 The primary device of the advanced backup group sends a packet indicating that the active device is running normally to the standby device in the backup group. That is, the active device sends a packet to the standby device indicating that the active device is running normally for the advanced backup group.
  • Step 103 When the backup device of the advanced backup group receives the timeout, at least two backup groups perform the active/standby switchover at the same time.
  • the primary device that is the at least two backup groups switches itself to the backup device of the at least two backup groups, and at the same time, the backup device that is the two backup groups switches itself to the at least two backups.
  • the primary device of the group
  • the backup device with the highest priority in the advanced backup group switches itself to the active device of the at least two backup groups.
  • the active/standby switchover method of the routing device does not need to be used as a routing device of all the backup group master devices to send packets indicating that the master device is running normally.
  • the routing device only needs to send packets indicating that the primary device is running normally for the advanced backup group, so that the number of packets between the routing devices does not increase with the number of backup groups, so the route can be increased without adding routes.
  • the at least two backup groups are set to the bundled state.
  • the active device sends a report to the standby device indicating that the active device is running as the advanced backup group. If the standby device receives the timeout, all the backup groups set to the bundled state perform the active/standby switchover, so that the masters of at least two backup groups set to the bundled state are configured. In the standby state, the advanced backup group transitions are followed, so that the number of backup groups set to the bundled state can be arbitrarily expanded.
  • the active/standby switchover is completely dependent on the advanced backup group. Therefore, in the case of manually setting the advanced backup group, in the routing device that is the primary device of at least two backup groups, and as at least two backups. In the routing device of the standby device of the group, only the priority in the advanced backup group needs to be considered when setting the priority of the routing device, regardless of its priority in other backup groups except the advanced backup group. You only need to set the authentication information of the advanced backup group.
  • the authentication mechanism of the advanced backup group can be the same as that of the existing backup group. You do not need to set the authentication information of the backup group other than the advanced backup group. You only need to set the timer of the advanced VRRP group to determine the advertised period.
  • the timer configuration of the VRRP group other than the advanced VRRP group does not take effect.
  • Other backup groups other than the advanced backup group do not need to consider the virtual IP address.
  • Other backup groups except the advanced backup group do not elect the primary device separately, and completely follow the state transition of the advanced backup group.
  • the embodiment of the present invention only needs to set the backup group parameters of the advanced backup group, and does not need to set the backup group parameters of all the backup groups in the routing device of the primary device of at least two backup groups and as at least two backups.
  • the group of spare devices in the routing device thereby reducing the complexity of parameter settings in the routing device.
  • the election of the advanced backup group in the auto-negotiation mode it is not possible to determine which of the at least two backup groups the elected advanced backup group is in advance. Therefore, it is preferable to prioritize and report the routing devices in all the backup groups.
  • the backup group parameters such as the text authentication information and timer are set in the routing device.
  • the virtual IP address of each backup group and the number of each backup group are set as the masters of at least two backup groups.
  • the packet indicating that the active device is running normally may be an advertisement packet or other custom packet.
  • the text type can be regarded as the receiving timeout when it does not receive the Advertisement text or other custom text for a long time.
  • the packets on the master device running for senior numbered backup group Advertisement packets, shellfish 1 J Advertisement packets VRID is elected; if the packets on the master device running a custom message, Preferably, the message should also include the number of the elected advanced backup group.
  • routing device backup system in the embodiment of the present invention is described in detail below.
  • the routing device backup system in this embodiment includes: at least two backup groups, wherein at least two backup groups include a pre-selected advanced backup group.
  • the primary devices of the at least two backup groups are the same routing device, and the backup devices of the at least two backup groups are the same at least one routing device.
  • the primary device of the advanced backup group in the at least two backup groups is configured to send a packet indicating that the active device is running normally to the standby device in the advanced backup group, that is, sending the advanced backup group to the backup device. Indicates the packet that the active device is running normally.
  • the standby device is configured to receive the packet indicating that the primary device is in normal operation, and trigger the at least two backups when the receiving timeout occurs, that is, the packet indicating that the primary device is in normal operation is not received within the preset period.
  • the group performs active/standby switchover at the same time.
  • the primary device of all the backup groups does not need to send the packets indicating that the primary device is running normally, and the number of packets between the routing devices does not increase with the number of the backup groups. Therefore, the number of backup groups supported by multiple routing devices can be increased without adding routing devices. Since the number of backup groups is increased, there is no need to add routing devices, so that the above system does not require additional cost.
  • any one of the at least two backup groups may be set as a routing device of the primary device that is the at least two backup groups and a routing device that is the standby device of the at least two backup groups.
  • the advanced backup group is the same as the advanced backup group set in the routing device of the standby device of the at least two backup groups, that is, the advanced backup group is manually set. .
  • the routing device that is the primary device of at least two backup groups and the routing device that serves as the backup device of at least two backup groups only the advanced backup group is required.
  • the backup group parameters such as the priority of the routing device, packet authentication information, and timers in the advanced backup group are used to set the parameters of the routing device.
  • the routing device that is the primary device of the at least two backup groups may negotiate with the routing device that is the standby device of the at least two backup groups to determine the same backup group in the at least two backup groups as the advanced backup. Group, that is, the automatic backup mode to elect an advanced backup group.
  • FIG. 2 is a schematic structural diagram of a route backup system according to an embodiment of the present invention.
  • the system includes two routing devices, namely, routing device 1 and routing device 2.
  • Routing device 1 and routing device 2 support N backup groups at the same time, that is, backup group 1 to backup group N, and backup group 1
  • the backup group N corresponds to the external switch 1 to switch N that are connected to the routing device 1 and the routing device 2, and each switch corresponds to one subnet.
  • the packet indicating the normal operation of the active device is an Advertisement packet.
  • N 1000.
  • the primary devices of the 1000 backup groups are all routing devices.
  • the standby devices of the 1000 backup groups are all routing devices.
  • the routing device 1 only needs to send one advertisement packet for the advanced backup group indicating that the active device is running normally to the routing device 2 in each advertisement period.
  • the number of Advertisement packets between the routing device 1 and the routing device 2 is still one in each advertising period.
  • the traffic of 1000 switches is all forwarded by routing device 1. If the routing device 2 that is the standby device of the advanced backup group receives the timeout, the 1000 backup groups perform the active/standby switchover at the same time, and the traffic of the 1000 switches is all transferred to the routing device 2. It can be seen that, in the above case, the number of backup groups supported by the routing device 1 and the routing device 2 can be increased without limitation, and the number of Advertisement packets between the routing device 1 and the routing device 2 is not increased, and the number of the packets is not increased. The burden of routing device 2 of the standby device of 1000 backup groups.
  • the advertisement packet indicating that the active device is running normally is used as an example.
  • the primary device of the 500 backup group is the routing device 1 and the standby device is the routing device 2.
  • the primary device of the other 500 backup groups is the routing device 2 and the standby device is the routing device 1.
  • the 500 backup groups are bound to each other. . In this way, after an advanced backup group 1 is elected in 500 backup groups, and an advanced backup group 2 is elected in another 500 backup groups, the routing device 1 only needs to send one to the routing device 2 in each advertisement period.
  • the routing device 2 For the advertisement packet of the advanced backup group 1 indicating that the active device is running normally, the routing device 2 only needs to send one advertisement packet for the advanced backup group 2 indicating that the active device is running normally to the routing device 1 in each advertisement period. . Moreover, even if any number of backup groups with routing device 1 as the primary device are added, and/or any number of backup groups with routing device 2 as the primary device are added, routing device 1 and each advertising cycle The number of Advertisement packets between routing devices 2 is still two.
  • the traffic of 500 switches is forwarded by routing device 1, and the traffic of the other 500 switches is forwarded by routing device 2. If the routing device 2 that is the backup device of the advanced backup group 1 receives the timeout, the 500 backup groups corresponding to the advanced backup group 1 perform the active/standby switchover at the same time. The traffic of the 500 switches that were originally forwarded by the routing device 1 is transferred to the route. Device 2. If the routing device 1 that is the backup device of the advanced backup group 2 receives the timeout, the other 500 backup groups corresponding to the advanced backup group 2 perform the active/standby switchover at the same time. The traffic of the 500 switches that were originally forwarded by the routing device 2 is transferred to the traffic. Routing device 1.
  • the number of backup groups supported by the routing device 1 and the routing device 2 can be increased without limitation, and the number of Advertisement packets between the routing device 1 and the routing device 2 is not increased, and the number of Advertisement packets is not increased.
  • an advanced backup group is elected from multiple backup groups.
  • the routing device that serves as the primary device and the routing device that serves as the backup device only need to transmit the advanced backup group to indicate that the primary device is running normally.
  • the Advertisement packet so that the number of backup groups that can be supported by the routing device of the primary device and the routing device as the standby device can be expanded.
  • the number of Advertisement packets between the routing device 1 and the routing device 2 is 100 in each advertising period.
  • the number of backup groups that can be supported by the routing device 1 and the routing device 2 is , , and the advertisement packet between the routing device 1 and the routing device 2 is used in each advertising period.
  • the number can be at least one.
  • the present invention can increase the number of backup groups supported by the same multiple routing devices by a multiple, without increasing the number of packets between routing devices, and not increasing the routing device of the standby device as the backup group.
  • the burden In the case of increasing the number of backup groups, there is no need to increase the routing device, so that the technical solution in the embodiment of the present invention is not required to increase the cost.
  • the embodiment of the present invention further provides a computer software to implement active/standby switching of a routing device.
  • the computer software includes computer program code which, when executed on a computer, can perform one or more steps of the method embodiments of the present invention, and one or more components and functions of the device embodiments.
  • the functionality of step 102 can be implemented when a certain piece of computer program code is run on the computer.
  • the computer software can be stored in a computer readable medium such as a read only memory ROM, a random access memory RAM, or a flash memory. It will be appreciated that the program code can be loaded into the computer via a suitable data network and the program code loaded into the computer can replace or update the program code already on the computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A master backup switch method for route device, comprises, selecting a backup group as a high-class backup group from at least two backup groups. Wherein, the said at least two backup groups have same master device and backup device, the message showing that the main device of the high-class backup group is running normally is sent to the backup device by the main device. While the backup device does not receive the message showing the master device is running normally, the said at least two backup groups perform master backup switch at the same time.

Description

路由设备的主备切换方法和路由设备备份系统  Active/standby switching method of routing device and routing device backup system
技术领域 Technical field
本发明涉及主备切换技术,特别涉及路由设备的主备切换方法和路由设 备备份系统。 发明背景  The present invention relates to an active/standby switching technology, and more particularly to an active/standby switching method and a routing device backup system for a routing device. Background of the invention
现有技术中, VRRP将一个子网的一组路由器, 包括一个主用 (Master ) 设备和若干个备用 (Backup )设备, 组织成一个虚拟的路由器, 称之为一个 备份组。 每个备份组具有一个虚拟 IP地址, 位于子网内的主机仅需知道备 份组的虚拟 IP地址, 并将备份组的虚拟 IP地址设置为缺省路由的下一跳地 址, 这样子网内的主机就可以通过该备份组与外部网络进行通信。  In the prior art, VRRP organizes a group of routers on a subnet, including a master device and a plurality of backup devices, into a virtual router, which is called a backup group. Each backup group has a virtual IP address. The host in the subnet only needs to know the virtual IP address of the backup group and set the virtual IP address of the backup group to the next hop address of the default route. The host can communicate with the external network through the backup group.
在正常情况下, 由备份组中的主用设备承担网关功能, 但一旦备份组内 承担网关功能的主用设备发生故障时,其余的备用设备将取代它继续履行网 关职责, 从而保证网络内的主机不间断地与外部网络进行通信, 即一旦备份 组内的主用设备发生故障, 就进行主备切换。 这里执行主备切换的具体过程 为: 当作为该备份组主用设备的路由设备发生故障时, 该备用组的主用设备 将自身切换为该备份组的备用设备,而该备份组内的优先级最高的备用设备 将自身切换为该备份组的主用设备。  Under normal circumstances, the primary device in the backup group assumes the gateway function. However, once the primary device that assumes the gateway function in the backup group fails, the remaining backup devices will replace it to continue to perform the gateway duties, thus ensuring the network. The host communicates with the external network without interruption, that is, once the primary device in the backup group fails, the primary and backup switches are performed. The specific process of performing the active/standby switchover is as follows: When the routing device that is the primary device of the backup group fails, the active device of the standby group switches itself to the standby device of the backup group, and the priority in the backup group The highest-level standby device switches itself to the primary device of the backup group.
由于在作为该备份组的主用设备的路由设备发生故障并进行主备切换 时, 该终端的下一跳地址并未改变, 从而能够保证该终端与对应虚拟路由设 备的连接,进而能够保持网络不会受到由于不同地址的路由设备切换而产生 的单点故障的影响。 发明内容  The next hop address of the terminal does not change when the routing device of the primary device that is the primary device of the VRRP group is faulty, so that the terminal can be connected to the corresponding virtual routing device, thereby maintaining the network. It is not affected by a single point of failure due to switching of routing devices at different addresses. Summary of the invention
本发明实施例提供了路由设备的主备切换方法和路由备份系统,以实现 备份组中主用设备与备用设备的切换。 本发明实施例提供的一种路由设备的主备切换方法包括: The embodiment of the present invention provides an active/standby switching method and a route backup system of a routing device, so as to implement switching between a primary device and a standby device in the backup group. The active/standby switching method of the routing device provided by the embodiment of the present invention includes:
从至少两个备份组中选择一个备份组作为高级备份组, 其中, 所述至少两 个备份组具有相同的主用设备和备用设备;  Selecting one backup group from the at least two backup groups as the advanced backup group, where the at least two backup groups have the same active device and standby device;
所述主用设备向所述备用设备发送针对所述高级备份组的表示主用设备正 常运行的4艮文;  And the primary device sends, to the standby device, a message indicating that the active device is running normally for the advanced backup group;
在所述备用设备在预设周期内未接收到所述表示主用设备正常运行的报文 的情况下, 所述至少两个备份组同时进行主备切换。  When the standby device does not receive the packet indicating that the active device is running normally in the preset period, the at least two backup groups perform the active/standby switchover at the same time.
本发明实施例提供的一种路由设备的主备切换方法包括:  The active/standby switching method of the routing device provided by the embodiment of the present invention includes:
将至少两个具有相同的主用设备和备用设备的备份组设置为捆绑状态, 并 从所述至少两个备份组中选择一个备份组作为高级备份组;  Setting at least two backup groups having the same active device and standby device as a bundled state, and selecting one backup group from the at least two backup groups as an advanced backup group;
设置为捆绑状态的除高级备份组外的其他备份组跟随所述高级备份组进行 主备切换。  Other backup groups except the advanced backup group set to the bundled state follow the advanced backup group for active/standby switchover.
本发明实施例提供的一种路由设备备份系统包括: 至少两个备份组, 其中 所述至少两个备份组具有相同的主用设备和备用设备, 且所述至少两个备份组 中包括一个预先选择出来的高级备份组;  A routing device backup system provided by the embodiment of the present invention includes: at least two backup groups, wherein the at least two backup groups have the same active device and standby device, and the at least two backup groups include one The selected advanced backup group;
所述主用设备, 用于向所述备用设备发送针对所述高级备份组的表示主用 设备正常运行的报文;  The primary device is configured to send, to the standby device, a packet indicating that the primary device is in normal operation for the advanced backup group;
所述备用设备, 用于接收所述表示主用设备正常运行的报文, 并当在预设 周期内未接收到所述表示主用设备正常运行的报文时, 触发所述至少两个备份 组进行主备切换。  The standby device is configured to receive the packet indicating that the active device is in normal operation, and trigger the at least two backups when the packet indicating that the active device is in normal operation is not received within a preset period. The group performs the active/standby switchover.
由此可见, 当至少两个备份组具有相同的主用设备及备用设备时, 虽然 主用设备只是向备用设备发送针对高级备份组的表示主用设备正常运行的 报文, 但由于备用设备根据该报文就可以了解到主用设备工作是否正常, 一 旦收到的报文指示主用设备针对高级备份组工作不正常,很显然可以推知该 主用设备针对其他备份组也不正常, 为此利用本发明, 可以显示在备份组中 的主用设备与备用设备的切换。  It can be seen that when at least two backup groups have the same primary device and backup device, although the primary device only sends a message to the backup device indicating that the primary device is operating normally for the advanced backup group, The packet can be learned whether the active device is working properly. If the received packet indicates that the active device is not working properly for the advanced backup group, it is obvious that the active device is not normal for other backup groups. With the present invention, switching between the primary device and the standby device in the backup group can be displayed.
另外由于主用设备只向备用设备发送针对高级备份组的表示主用设备 正常运行的报文,而不需要为所有备份组均发送表示主用设备正常运行的报 文, 即不需要发送与备份组数量相等的表示主用设备正常运行的报文, 减少 了网络中的流量, 节省了网络带宽资源。 而且备用设备只需接收并处理一个 表示主用设备正常运行的报文, 即可获知作为上述多个备份组的主用设备处 于正常工作状态,而不会同时接收到与备份组数量相等的表示主用设备正常 运行的报文, 从而不会无法及时处理接收到的表示主用设备正常运行的报 文, 也不会导致其硬件队列溢出而丟弃表示主用设备正常运行的报文, 这样 使得网络震荡的概率大大减少。 In addition, since the primary device only sends the primary device to the backup device for the advanced backup group. A packet running normally does not need to be sent to all the backup groups to indicate that the active device is running normally. That is, the number of packets matching the normal operation of the primary device is not required to be sent, which reduces the number of packets in the network. Traffic, saving network bandwidth resources. Moreover, the standby device only needs to receive and process a message indicating that the primary device is running normally, and it can be known that the primary device that is the plurality of backup groups is in a normal working state, and does not receive the same number of backup groups as the backup group. If the active device is running normally, the packets that indicate that the active device is running normally will not be processed in time, and the packets indicating that the active device is running normally will not be discarded. The probability of network oscillating is greatly reduced.
由于在本发明实施例中主用设备不需要为每个备份组均发送表示主用 设备正常运行的报文,使得路由设备间的报文数量不会随着备份组数量的增 加而等量增加, 因而能够在不增加路由设备的前提下, 即不需要额外增加成 本的前提下, 提高多个路由设备所支持的备份组数量。 而且, 相同的多个路 由设备所支持的备份组数量可以成倍地增加,而不会增加路由设备间的报文 数量, 更不会增加作为备份组的备用设备的路由设备的负担, 相比于现有方 案, 还可以在增加备份组数量的情况下, 大大减少路由设备间的报文数量。 附图简要说明  In the embodiment of the present invention, the primary device does not need to send a packet indicating that the primary device is running normally for each backup group, so that the number of packets between the routing devices does not increase with the number of the backup group. Therefore, the number of backup groups supported by multiple routing devices can be increased without increasing the number of routing devices, that is, without additional cost. Moreover, the number of backup groups supported by the same multiple routing devices can be multiplied, without increasing the number of packets between routing devices, and not increasing the burden of routing devices acting as backup devices of the backup group. In the existing solution, the number of packets between routing devices can be greatly reduced when the number of backup groups is increased. BRIEF DESCRIPTION OF THE DRAWINGS
图 1为本发明实施例中路由设备的主备切换方法的示例性流程图。 图 2为本发明实施例中路由备份系统的结构示意图。 实施本发明的方式  FIG. 1 is an exemplary flowchart of a method for switching between active and standby routes of a routing device according to an embodiment of the present invention. FIG. 2 is a schematic structural diagram of a route backup system according to an embodiment of the present invention. Mode for carrying out the invention
为使本发明的目的、技术方案及优点更加清楚明白, 以下参照附图并举 实施例, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the accompanying drawings.
对于一个备份组而言, 在作为其主用设备的路由设备正常工作时, 其主 用设备会以预设的通告周期 ( Advertisement_Interval, Adver Int ) 向作为该 备份组备用设备的其他路由设备发送一个表示主用设备正常工作的报文,例 如基于 VRRP的通告(Advertisement ) 文, 以通知其他路由设备当前作为 主用设备的路由设备处于正常工作状态。 当作为备用设备的路由设备在预设 周期内, 例如通告周期内, 没有接收到表示主用设备正常工作的报文, 即备 用设备接收超时时, 则进行主备切换。 For a backup group, when the routing device as its primary device works normally, its primary device sends a route to other routing devices that are backup devices of the backup group in a preset advertising period ( Advertisement_Interval, Adver Int). A packet indicating that the active device is working properly, for example, a VRRP-based advertisement, to notify other routing devices of the current status. The routing device of the active device is in normal working state. When the routing device that is the standby device does not receive a packet indicating that the active device is working normally, for example, during the advertised period, that is, when the standby device receives the timeout, the active/standby switchover is performed.
现有的 Advertisement报文中通常包括如下字段:协议版本号( Version ), 例如第 2版 VRRP ( VRRPv2 )对应的 Version为 2; VRRP报文类型( Type ) , 例如基于 VRRP 的 Advertisement 4艮文对应的 Type 为 1 ; 虚拟路由器号 ( Virtual Rtr ID, VRID ) , 即备份组编号, 取值范围可以为 1 ~ 255 ; 优先 级( Priority ) , 取值范围可以为 0 ~ 255 ; 备份组的虚拟 IP地址个数( Count IP Addrs ) ; 认证类型 ( Auth Type ) , 表示对接收到的报文进行认证所采用 的机制; Adver Int, 可以以秒为单位, 缺省值可以为 1秒; 16位的校验和 ( Checksum ) ,用于检测 VRRP报文中的数据破坏情况; IP地址( IP Address ) 1~ IP Address n, 表示备份组的虚拟 IP地址表项, n等于 Count IP Addrs; 验证字 ( Authentication Data ) 1和 Authentication Data 2。  The existing advertisement packet usually includes the following fields: the protocol version number (Version), for example, the Version 2 of the VRRP (VRRPv2) is 2; the VRRP packet type (Type), for example, the VRRP-based Advertisement 4 The value of the backup group is 1; the virtual router number (VRR), which is the backup group number, can range from 1 to 255; the priority (Priority), which can range from 0 to 255; The number of addresses (Count IP Addrs); the type of authentication (Auth Type), which indicates the mechanism used to authenticate the received message; Adver Int, which can be in seconds, the default value can be 1 second; 16-bit Checksum is used to detect data corruption in VRRP packets. IP address (IP Address) 1~ IP Address n, which represents the virtual IP address entry of the VRRP group. n is equal to Count IP Addrs; Authentication Data ) 1 and Authentication Data 2.
在作为一个备份组主用设备的路由设备、以及作为该备份组备用设备的 路由设备中, 还需要设置该备份组的路由设备优先级、 报文认证信息、 定时 器等备份组参数; 如果支持多个备份组, 则在同时作为多个备份组主用设备 的路由设备、 以及作为多个备份组备用设备的路由设备中, 需要设置多个备 份组的备份组参数。  In the routing device that is the primary device of the VRRP group and the routing device that serves as the backup device of the VRRP group, you need to set the routing group priority, packet authentication information, timer, and other backup group parameters of the VRRP group. For multiple backup groups, you need to set the backup group parameters of multiple backup groups in the routing device that serves as the primary device for multiple backup groups and the routing device that serves as the standby device for multiple backup groups.
本申请的发明人发现, 在一个备份组内, 主用设备需要向备用设备发送 的表示主用设备正常工作的报文的信息量较大。  The inventor of the present application found that, in a backup group, the amount of information that the active device needs to send to the backup device indicating that the active device is working normally is large.
本申请的发明人还发现,由于相同的多个路由设备可以同时对应多个子 网,因此采用 VRRP技术可以使得相同的多个路由设备可以同时支持多个备 份组, 即相同的一个主用设备和若干个备用设备同时作为不同子网的备份 组。相同的一个主用设备和若干个备用设备构成的备份组数目等于该相同的 一个主用设备和若干备用设备所具有的虚拟 IP地址数目。  The inventor of the present application also finds that, because the same multiple routing devices can simultaneously correspond to multiple subnets, the VRRP technology can enable the same multiple routing devices to simultaneously support multiple backup groups, that is, the same primary device and Several spare devices act as backup groups for different subnets at the same time. The number of backup groups consisting of the same primary device and several standby devices is equal to the number of virtual IP addresses that the same primary device and several standby devices have.
这种情况下, 同时支持多个备份组的多个路由设备中, 作为每个备份组 的主用设备的路由设备,会向作为该备份组备用设备的每个路由设备发送一 个表示主用设备正常工作的报文。 也就是说, 两个路由设备间表示主用设备 正常工作的报文数量会随着备份组数量的增加而等量增加。 In this case, among the multiple routing devices that support multiple backup groups, the routing device that is the primary device of each backup group sends one to each routing device that is the standby device of the backup group. A message indicating that the active device is working properly. That is to say, the number of packets indicating that the active device works normally between the two routing devices increases with the number of backup groups.
这样, 相同的多个路由设备构成的备份组数量比较多时, 在上述多个路 由设备之间就会出现大量表示主用设备正常工作的报文。  In this way, when the number of backup groups formed by the same plurality of routing devices is relatively large, a large number of packets indicating that the active device is working normally appear between the plurality of routing devices.
如果两个路由设备分别为 1000个备份组的主用设备和备用设备, 则在 一个通告周期内, 作为主用设备的路由设备会为所有备份组, 向作为备用设 备的路由设备发送 1000个 Advertisement报文。 而且, 备份组的数量越多, 上述路由设备间的 Advertisement才艮文就会越多, 当 Advertisement才艮文达到 一定数量时, 可能产生 Advertisement报文泛洪, 从而造成网络流量拥塞, 影响其他业务流量的转发。  If the two routing devices are the primary and backup devices of the 1000 backup groups, the routing device acting as the primary device will send 1000 Advertisements to the routing device acting as the standby device in one advertised period. Message. In addition, the more the number of backup groups, the more the advertisements between the routing devices will be. If the number of advertisements reaches a certain number, the advertisement packets may flood, causing network traffic congestion and affecting other services. Forwarding of traffic.
而且, Advertisement报文需要由接收该报文的路由设备中的 CPU进行 处理, 但由于路由设备的 CPU处理能力有限, 当大量 Advertisement报文同 时涌入时, 该路由设备很可能会由于 Advertisement报文太多而无法及时处 理, 或者导致其硬件队列溢出而丟弃 Advertisement报文, 从而引发备用设 备接收超时而切换成主用设备, 造成网络震荡, 影响网络中的流量转发。  In addition, the advertisement packet needs to be processed by the CPU in the routing device that receives the packet. However, because the CPU processing capability of the routing device is limited, when a large number of Advertisement packets are simultaneously flooded, the routing device is likely to be due to the Advertisement packet. Too many cannot be processed in time, or the hardware queue overflows and the Advertisement packet is discarded. As a result, the backup device receives the timeout and switches to the active device, causing network flapping and affecting traffic forwarding in the network.
为了解决上述问题,现有的方法通常将相同的多个路由设备支持的备份 组的数量限定在 300个以下, 但这样就限制了 VRRP技术的应用, 无法满足 更多备份组的实际需要。 如果需要更多的备份组, 只能够增加路由设备的数 量, 例如, 当需要 600个备份组时, 提供 4个路由设备, 其中, 每 2个路由 设备支持 300个备份组,但这样会使得硬件成本随着备份组的增加而成倍增 长。  In order to solve the above problem, the existing method generally limits the number of backup groups supported by the same multiple routing devices to less than 300, but this limits the application of the VRRP technology and cannot meet the actual needs of more backup groups. If you need more backup groups, you can only increase the number of routing devices. For example, when 600 backup groups are required, four routing devices are provided. Each of the two routing devices supports 300 backup groups, but this will cause hardware. The cost has doubled as the backup group has increased.
为此在本发明实施例中, 当一个主用设备和至少一个备用设备同时支持 多个备份组时,仅由该主用设备针对一个备份组向该至少一个备用设备发送 表示主用设备正常运行的报文, 如果该至少一个备用设备接收超时, 则所有 的多个备份组都进行主备切换。  To this end, in the embodiment of the present invention, when one primary device and at least one backup device support multiple backup groups at the same time, only the primary device sends a message to the at least one standby device for indicating that the primary device is running normally. If the at least one standby device receives the timeout, all the multiple backup groups perform the active/standby switchover.
也就是说, 可以看作将上述多个备份组进行捆绑, 然后从捆绑的多个备 份组中选举一个作为高级备份组,其他备份组则跟随高级备份组进行主备状 态的切换。 In other words, it can be seen that the multiple backup groups are bundled, and then one of the bundled multiple backup groups is elected as the advanced backup group, and the other backup groups are followed by the advanced backup group. State switching.
这样, 选举出的高级备份组代表捆绑的所有备份组, 作为上述所有备份 组的主用设备的路由设备, 在一个通告周期内, 只需向作为该备份组备用设 备的路由设备发送针对高级备份组的表示主用设备正常运行的报文,而不需 要发送与备份组数量相等的表示主用设备正常运行的报文,减少了网络中的 流量, 节省了网络带宽资源。  In this way, the elected advanced backup group represents all the backup groups that are bundled, and the routing device that serves as the primary device of all the backup groups only needs to send the advanced backup to the routing device that is the standby device of the backup group in one notification period. The packets indicating that the active device is running normally do not need to send packets equal to the number of backup groups to indicate that the primary device is running normally. This reduces traffic on the network and saves network bandwidth resources.
而且,只要作为所有备份组的备用设备的路由设备接收到一个表示主用 设备正常运行的报文, 即可获知作为所有备份组的主用设备的路由设备处于 正常工作状态,而不会同时接收到与备份组数量相等的表示主用设备正常运 行的报文, 从而不会无法及时处理接收到的表示主用设备正常运行的报文, 也不会导致其硬件队列溢出而丟弃表示主用设备正常运行的报文。  Moreover, as long as the routing device that is the backup device of all the backup groups receives a packet indicating that the active device is running normally, the routing device that is the primary device of all the backup groups is in a normal working state, and is not received at the same time. If the number of the backup group is equal to the number of the backup group, the packets indicating the normal operation of the active device will not be processed in time, and the received packets indicating that the active device is running normally will not be processed. The device is running normally.
可见, 采用上述方案, 不需要所有备份组的主用设备均发送表示主用设 备正常运行的报文,路由设备间的报文数量不会随着备份组数量的增加而等 量增加, 因而能够在不增加路由设备的前提下, 提高多个路由设备所支持的 备份组数量。 由于在增加备份组数量的情况下, 不需要增加路由设备, 从而 使得实现本发明实施例中的技术方案不需要额外增加成本。  It can be seen that, in the foregoing solution, the primary device of all the backup groups does not need to send packets indicating that the primary device is running normally, and the number of packets between the routing devices does not increase with the increase of the number of backup groups. Increase the number of backup groups supported by multiple routing devices without adding routing devices. Since the routing device is not required to be added in the case of increasing the number of backup groups, the technical solution in the embodiments of the present invention is not required to increase the cost.
下面, 对本发明实施例中路由设备的主备切换方法进行详细说明。 图 1为本发明实施例中路由设备的主备切换方法的示例性流程图。如图 1所示, 本实施例中的路由设备的主备切换方法包括以下步骤:  The active/standby switching method of the routing device in the embodiment of the present invention is described in detail below. FIG. 1 is an exemplary flowchart of a method for switching between active and standby routes of a routing device according to an embodiment of the present invention. As shown in Figure 1, the active/standby switchover method of the routing device in this embodiment includes the following steps:
步骤 101 : 从至少两个备份组中选举出一个备份组作为高级备份组。 本步骤中, 至少两个备份组的主用设备为同一个路由设备, 至少两个备 份组的备用设备为相同的至少一个路由设备。  Step 101: Elect a backup group from at least two backup groups as an advanced backup group. In this step, the active devices of at least two backup groups are the same routing device, and the standby devices of at least two backup groups are the same at least one routing device.
实际应用中, 可以通过手工设置, 在作为至少两个备份组的主用设备的 路由设备中、 和作为至少两个备份组的备用设备的路由设备中, 将至少两个 备份组中的任意一个备份组设置为高级备份组, 例如, 为任意一个备份组设 置一个与其编号相对应的特殊标识,且作为至少两个备份组的主用设备的路 由设备、和作为至少两个备份组的备用设备的路由设备中设置的高级备份组 相同; 或者, 采用自动设置方式, 即作为至少两个备份组的主用设备的路由 设备与作为至少两个备份组的备用设备的路由设备,协商出至少两个备份组 中的任意一个备份组作为高级备份组, 例如, 作为至少两个备份组的主用设 备的路由设备从至少两个备份组中随机选举一个备份组作为高级备份组,并 通知作为至少两个备份组的备用设备的路由设备。 In an actual application, any one of at least two backup groups may be manually set in a routing device that is the primary device of at least two backup groups and a routing device that is a backup device of at least two backup groups. The backup group is set to an advanced backup group. For example, set a special identifier corresponding to its number for any one of the backup groups, and the routing device that is the primary device of at least two backup groups and the standby device that is the backup device of at least two backup groups. Advanced backup group set up in the routing device The same is true; or, in the automatic setting mode, the routing device that is the primary device of the at least two backup groups and the routing device that is the standby device of the at least two backup groups negotiate any one of the at least two backup groups. As an advanced backup group, for example, a routing device that is the primary device of at least two backup groups randomly elects one backup group from at least two backup groups as an advanced backup group, and notifies the route of the backup device as at least two backup groups. device.
步骤 102: 高级备份组的主用设备, 向该备份组内的备用设备发送表示 主用设备正常运行的报文。即主用设备向备用设备发送针对该高级备份组的 表示主用设备正常运行的报文。  Step 102: The primary device of the advanced backup group sends a packet indicating that the active device is running normally to the standby device in the backup group. That is, the active device sends a packet to the standby device indicating that the active device is running normally for the advanced backup group.
步骤 103: 在高级备份组的备用设备接收超时时, 至少两个备份组同时 进行主备切换。  Step 103: When the backup device of the advanced backup group receives the timeout, at least two backup groups perform the active/standby switchover at the same time.
也就是说, 作为上述至少两个备份组的主用设备, 将自身切换为上述至 少两个备份组的备用设备, 同时, 作为上述两个备份组的备用设备将自身切 换为上述至少两个备份组的主用设备。  That is, the primary device that is the at least two backup groups switches itself to the backup device of the at least two backup groups, and at the same time, the backup device that is the two backup groups switches itself to the at least two backups. The primary device of the group.
本步骤中, 如果作为备份设备的路由设备为多个, 则在高级备份组内的 优先级最高的备用设备将其自身切换为上述至少两个备份组的主用设备。  In this step, if there are multiple routing devices as the backup device, the backup device with the highest priority in the advanced backup group switches itself to the active device of the at least two backup groups.
至此, 本流程结束。  At this point, the process ends.
由上述流程可见, 本实施例中路由设备的主备切换方法, 对于路由设备 来说,不需要作为所有备份组主用设备的路由设备为所有备份组均发送表示 主用设备正常运行的报文,而只需要该路由设备为高级备份组发送表示主用 设备正常运行的报文,使得路由设备间的报文数量不会随着备份组数量的增 加而等量增加, 因而能够在不增加路由设备的前提下, 提高多个路由设备所 支持的备份组数量。由于在增加备份组数量的情况下,不需要增加路由设备, 从而使得实现上述方案不需要额外增加成本。  It can be seen from the foregoing process that, in this embodiment, the active/standby switchover method of the routing device does not need to be used as a routing device of all the backup group master devices to send packets indicating that the master device is running normally. The routing device only needs to send packets indicating that the primary device is running normally for the advanced backup group, so that the number of packets between the routing devices does not increase with the number of backup groups, so the route can be increased without adding routes. On the premise of the device, increase the number of backup groups supported by multiple routing devices. Since the number of backup groups is increased, there is no need to increase the routing device, so that the above solution does not require additional cost.
对于备份组来说, 将上述至少两个备份组设置为捆绑状态, 在每个通告 周期内,主用设备向其备用设备发送针对选举出的作为高级备份组的表示主 用设备正常运行的报文, 并在备用设备接收超时的情况下, 设置为捆绑状态 的所有备份组均进行主备切换,使得设置为捆绑状态的至少两个备份组的主 备状态, 均跟随高级备份组变迁, 从而能够任意扩大设置为捆绑状态的备份 组数量。 For the VRRP group, the at least two backup groups are set to the bundled state. In each advertised period, the active device sends a report to the standby device indicating that the active device is running as the advanced backup group. If the standby device receives the timeout, all the backup groups set to the bundled state perform the active/standby switchover, so that the masters of at least two backup groups set to the bundled state are configured. In the standby state, the advanced backup group transitions are followed, so that the number of backup groups set to the bundled state can be arbitrarily expanded.
实际应用中, 由于主备切换完全依赖于高级备份组, 因此, 对于手工设 置方式选举高级备份组的情况,在作为至少两个备份组的主用设备的路由设 备中、 以及作为至少两个备份组的备用设备的路由设备中, 在设置路由设备 的优先级时只需考虑其在高级备份组中的优先级,而无需考虑其在除高级备 份组之外的其他备份组内的优先级。只需设置高级备份组所对应的报文认证 信息, 高级备份组的认证机制可以与现有机制保持一致, 而无需设置除高级 备份组之外的其他备份组对应的报文认证信息。只需设置高级备份组的定时 器用于确定通告周期, 除高级备份组之外的其他备份组的定时器配置不生 效, 是否超时要以高级备份组的定时器为准。 除高级备份组之外的其他备份 组也不需要考虑虚拟 IP地址。 除高级备份组之外的其他备份组不单独选举 主用设备, 完全跟随高级备份组的状态变迁。  In the actual application, the active/standby switchover is completely dependent on the advanced backup group. Therefore, in the case of manually setting the advanced backup group, in the routing device that is the primary device of at least two backup groups, and as at least two backups. In the routing device of the standby device of the group, only the priority in the advanced backup group needs to be considered when setting the priority of the routing device, regardless of its priority in other backup groups except the advanced backup group. You only need to set the authentication information of the advanced backup group. The authentication mechanism of the advanced backup group can be the same as that of the existing backup group. You do not need to set the authentication information of the backup group other than the advanced backup group. You only need to set the timer of the advanced VRRP group to determine the advertised period. The timer configuration of the VRRP group other than the advanced VRRP group does not take effect. Other backup groups other than the advanced backup group do not need to consider the virtual IP address. Other backup groups except the advanced backup group do not elect the primary device separately, and completely follow the state transition of the advanced backup group.
这样, 本发明实施例只需设置高级备份组的备份组参数, 而无需将所有 备份组的备份组参数均设置在作为至少两个备份组的主用设备的路由设备 中和作为至少两个备份组的备用设备的路由设备中,从而降低了路由设备中 参数设置的复杂度。  In this way, the embodiment of the present invention only needs to set the backup group parameters of the advanced backup group, and does not need to set the backup group parameters of all the backup groups in the routing device of the primary device of at least two backup groups and as at least two backups. The group of spare devices in the routing device, thereby reducing the complexity of parameter settings in the routing device.
而对于自动协商方式选举高级备份组的情况,由于预先无法确定选举的 高级备份组为至少两个备份组中的哪一个, 因此, 较佳地, 将所有备份组内 的路由设备优先级、 报文认证信息、 定时器等备份组参数均设置在路由设备 中。  In the case of the election of the advanced backup group in the auto-negotiation mode, it is not possible to determine which of the at least two backup groups the elected advanced backup group is in advance. Therefore, it is preferable to prioritize and report the routing devices in all the backup groups. The backup group parameters such as the text authentication information and timer are set in the routing device.
无论是手工设置方式选举高级备份组,还是自动协商方式选举高级备份 组, 较佳地, 每个备份组的虚拟 IP地址以及每个备份组的编号等均设置在 作为至少两个备份组的主用设备的路由设备和作为至少两个备份组的备用 设备的路由设备中。  Either manually electing an advanced backup group or automatically electing an advanced backup group, preferably, the virtual IP address of each backup group and the number of each backup group are set as the masters of at least two backup groups. Use the routing device of the device and the routing device as the standby device of at least two backup groups.
本发明实施例中, 表示主用设备正常运行的报文可以为 Advertisement 报文或者其他自定义报文。 相应地, 对于备用设备来说, 根据预先约定的报 文类型, 在长时间未接收到 Advertisement 文或者其他自定义 文时, 均 可看作接收超时。 In the embodiment of the present invention, the packet indicating that the active device is running normally may be an advertisement packet or other custom packet. Correspondingly, for the standby device, according to the pre-agreed report The text type can be regarded as the receiving timeout when it does not receive the Advertisement text or other custom text for a long time.
如果表示主用设备正常运行的报文为 Advertisement 报文, 贝1 J Advertisement报文中的 VRID为选举出的高级备份组的编号;如果表示主用 设备正常运行的报文为自定义报文, 则较佳地, 该报文中也应包括选举出的 高级备份组的编号。 If the packets on the master device running for senior numbered backup group Advertisement packets, shellfish 1 J Advertisement packets VRID is elected; if the packets on the master device running a custom message, Preferably, the message should also include the number of the elected advanced backup group.
下面, 对本发明实施例中的路由设备备份系统进行详细说明。  The routing device backup system in the embodiment of the present invention is described in detail below.
本实施例中的路由设备备份系统包括: 至少两个备份组, 其中, 至少两个 备份组中包括一个预先选择出来的高级备份组。  The routing device backup system in this embodiment includes: at least two backup groups, wherein at least two backup groups include a pre-selected advanced backup group.
该至少两个备份组的主用设备为同一个路由设备, 且该至少两个备份组的 备用设备为相同的至少一个路由设备。  The primary devices of the at least two backup groups are the same routing device, and the backup devices of the at least two backup groups are the same at least one routing device.
该至少两个备份组中的高级备份组的主用设备, 用于向该高级备份组内的 备用设备发送表示主用设备正常运行的报文, 即向备用设备发送针对所述高级 备份组的表示主用设备正常运行的报文。  The primary device of the advanced backup group in the at least two backup groups is configured to send a packet indicating that the active device is running normally to the standby device in the advanced backup group, that is, sending the advanced backup group to the backup device. Indicates the packet that the active device is running normally.
备用设备, 用于接收所述表示主用设备正常运行的报文, 并在接收超时的 情况下, 即预设周期内未接收到表示主用设备正常运行的报文, 触发这至少两 个备份组同时进行主备切换。  The standby device is configured to receive the packet indicating that the primary device is in normal operation, and trigger the at least two backups when the receiving timeout occurs, that is, the packet indicating that the primary device is in normal operation is not received within the preset period. The group performs active/standby switchover at the same time.
由上述系统可见, 本实施例不需要所有备份组的主用设备均发送表示主用 设备正常运行的报文, 路由设备间的报文数量不会随着备份组数量的增加而等 量增加, 因而能够在不增加路由设备的前提下, 提高多个路由设备所支持的备 份组数量。 由于在增加备份组数量的情况下, 不需要增加路由设备, 从而使得 实现上述系统不需要额外增加成本。  It can be seen from the foregoing that, in this embodiment, the primary device of all the backup groups does not need to send the packets indicating that the primary device is running normally, and the number of packets between the routing devices does not increase with the number of the backup groups. Therefore, the number of backup groups supported by multiple routing devices can be increased without adding routing devices. Since the number of backup groups is increased, there is no need to add routing devices, so that the above system does not require additional cost.
上述系统中, 可以在作为至少两个备份组的主用设备的路由设备和作为所 述至少两个备份组的备用设备的路由设备中, 将至少两个备份组中的任意一个 备份组设置为高级备份组, 且作为至少两个备份组的主用设备的路由设备和作 为所述至少两个备份组的备用设备的路由设备中设置的高级备份组相同, 即采 用手工设置方式选举高级备份组。 对于采用手工设置方式选举高级备份组的情况, 在作为至少两个备份组的 主用设备的路由设备和作为至少两个备份组的备用设备的路由设备中, 只需设 置高级备份组所对应的高级备份组内路由设备的优先级、 报文认证信息和定时 器等备份组参数, 以筒化路由设备的参数设置。 In the foregoing system, any one of the at least two backup groups may be set as a routing device of the primary device that is the at least two backup groups and a routing device that is the standby device of the at least two backup groups. The advanced backup group is the same as the advanced backup group set in the routing device of the standby device of the at least two backup groups, that is, the advanced backup group is manually set. . In the case of the election of the advanced backup group by manual setting, in the routing device that is the primary device of at least two backup groups and the routing device that serves as the backup device of at least two backup groups, only the advanced backup group is required. The backup group parameters such as the priority of the routing device, packet authentication information, and timers in the advanced backup group are used to set the parameters of the routing device.
上述系统中, 还可以由作为至少两个备份组的主用设备的路由设备, 与 作为至少两个备份组的备用设备的路由设备协商,确定至少两个备份组中同 一个备份组作为高级备份组, 即自动协商方式选举高级备份组。  In the foregoing system, the routing device that is the primary device of the at least two backup groups may negotiate with the routing device that is the standby device of the at least two backup groups to determine the same backup group in the at least two backup groups as the advanced backup. Group, that is, the automatic backup mode to elect an advanced backup group.
以上是对本发明实施例中路由设备的主备切换方法和路由设备备份系 统的说明, 下面, 结合具体实例, 对本发明实施例中的技术方案进行进一步 说明。  The foregoing is a description of the active/standby switching method and the routing device backup system of the routing device in the embodiment of the present invention. The technical solution in the embodiment of the present invention is further described below with reference to specific examples.
图 2为本发明实施例中路由备份系统的结构示意图。 如图 2所示, 该系 统中包括两个路由设备, 即路由设备 1和路由设备 2, 路由设备 1和路由设 备 2同时支持 N个备份组, 即备份组 1~备份组 N, 备份组 1~备份组 N分别 对应同时与路由设备 1和路由设备 2相连的外部交换机 1~交换机 N, 每个 交换机对应一个子网。  FIG. 2 is a schematic structural diagram of a route backup system according to an embodiment of the present invention. As shown in Figure 2, the system includes two routing devices, namely, routing device 1 and routing device 2. Routing device 1 and routing device 2 support N backup groups at the same time, that is, backup group 1 to backup group N, and backup group 1 The backup group N corresponds to the external switch 1 to switch N that are connected to the routing device 1 and the routing device 2, and each switch corresponds to one subnet.
实例 1 :  Example 1 :
以表示主用设备正常运行的报文为 Advertisement报文为例, 假设路由 设备 1和路由设备 2同时支持 1000个备份组, 即 N=1000。 且 1000个备份 组的主用设备均为路由设备 1、 1000个备份组的备用设备均为路由设备 2。 这样, 选举出一个高级备份组后, 路由设备 1只需在每个通告周期内向路由 设备 2发送 1个针对该高级备份组的表示主用设备正常运行的 Advertisement 报文。 而且, 即便再增加任意数量的以路由设备 1作为主用设备的备份组, 在每个通告周期内, 路由设备 1和路由设备 2之间的 Advertisement报文数 量仍为 1个。  As an example, the packet indicating the normal operation of the active device is an Advertisement packet. Assume that the routing device 1 and the routing device 2 support 1000 backup groups at the same time, that is, N=1000. The primary devices of the 1000 backup groups are all routing devices. The standby devices of the 1000 backup groups are all routing devices. In this way, after an advanced backup group is elected, the routing device 1 only needs to send one advertisement packet for the advanced backup group indicating that the active device is running normally to the routing device 2 in each advertisement period. Moreover, even if any number of backup groups with the routing device 1 as the primary device are added, the number of Advertisement packets between the routing device 1 and the routing device 2 is still one in each advertising period.
1000个交换机的流量全部由路由设备 1 来转发。 如果作为高级备份组 的备用设备的路由设备 2接收超时, 则 1000个备份组同时进行主备切换, 1000个交换机的流量全部转移到路由设备 2。 可见, 在上述情况下, 路由设备 1和路由设备 2所支持的备份组数量可 以无限制地增加,而不会增加路由设备 1与路由设备 2之间的 Advertisement 报文数量,更不会增加作为 1000个备份组的备用设备的路由设备 2的负担。 The traffic of 1000 switches is all forwarded by routing device 1. If the routing device 2 that is the standby device of the advanced backup group receives the timeout, the 1000 backup groups perform the active/standby switchover at the same time, and the traffic of the 1000 switches is all transferred to the routing device 2. It can be seen that, in the above case, the number of backup groups supported by the routing device 1 and the routing device 2 can be increased without limitation, and the number of Advertisement packets between the routing device 1 and the routing device 2 is not increased, and the number of the packets is not increased. The burden of routing device 2 of the standby device of 1000 backup groups.
实例 2:  Example 2:
仍以表示主用设备正常运行的 Advertisement报文为例, 假设路由设备 1和路由设备 2同时支持 1000个备份组, 即 N=1000。 其中 500个备份组的 主用设备为路由设备 1、 备用设备为路由设备 2, 另外 500个备份组的主用 设备为路由设备 2、 备用设备为路由设备 1 , 即将每 500个备份组分别捆绑。 这样, 在 500个备份组中选举出一个高级备份组 1 , 并在另外 500个备份组 中选举出一个高级备份组 2后,路由设备 1只需在每个通告周期内向路由设 备 2发送 1个针对高级备份组 1的表示主用设备正常运行的 Advertisement 报文,路由设备 2只需在每个通告周期内向路由设备 1发送 1个针对高级备 份组 2的表示主用设备正常运行的 Advertisement报文。 而且, 即便再增加 任意数量的以路由设备 1 作为主用设备的备份组、 和 /或增加任意数量的以 路由设备 2作为主用设备的备份组, 在每个通告周期内, 路由设备 1和路由 设备 2之间的 Advertisement报文数量仍为 2个。  For example, the advertisement packet indicating that the active device is running normally is used as an example. Assume that the routing device 1 and the routing device 2 support 1000 backup groups at the same time, that is, N=1000. The primary device of the 500 backup group is the routing device 1 and the standby device is the routing device 2. The primary device of the other 500 backup groups is the routing device 2 and the standby device is the routing device 1. The 500 backup groups are bound to each other. . In this way, after an advanced backup group 1 is elected in 500 backup groups, and an advanced backup group 2 is elected in another 500 backup groups, the routing device 1 only needs to send one to the routing device 2 in each advertisement period. For the advertisement packet of the advanced backup group 1 indicating that the active device is running normally, the routing device 2 only needs to send one advertisement packet for the advanced backup group 2 indicating that the active device is running normally to the routing device 1 in each advertisement period. . Moreover, even if any number of backup groups with routing device 1 as the primary device are added, and/or any number of backup groups with routing device 2 as the primary device are added, routing device 1 and each advertising cycle The number of Advertisement packets between routing devices 2 is still two.
1000个交换机中, 500个交换机的流量由路由设备 1来转发, 另外 500 个交换机的流量由路由设备 2来转发。如果作为高级备份组 1的备用设备的 路由设备 2接收超时,则高级备份组 1对应的 500个备份组同时进行主备切 换,原来由路由设备 1转发流量的 500个交换机的流量全部转移到路由设备 2。 如果作为高级备份组 2的备用设备的路由设备 1接收超时, 则高级备份 组 2对应的另外 500个备份组同时进行主备切换,原来由路由设备 2转发流 量的 500个交换机的流量全部转移到路由设备 1。  Of the 1000 switches, the traffic of 500 switches is forwarded by routing device 1, and the traffic of the other 500 switches is forwarded by routing device 2. If the routing device 2 that is the backup device of the advanced backup group 1 receives the timeout, the 500 backup groups corresponding to the advanced backup group 1 perform the active/standby switchover at the same time. The traffic of the 500 switches that were originally forwarded by the routing device 1 is transferred to the route. Device 2. If the routing device 1 that is the backup device of the advanced backup group 2 receives the timeout, the other 500 backup groups corresponding to the advanced backup group 2 perform the active/standby switchover at the same time. The traffic of the 500 switches that were originally forwarded by the routing device 2 is transferred to the traffic. Routing device 1.
可见, 在上述情况下, 路由设备 1和路由设备 2所支持的备份组数量也 可以无限制地增加, 而不会增加路由设备 1 与路由设备 2 之间的 Advertisement报文数量,更不会增加作为备用设备的路由设备 1和路由设备 2的负担。 由上述两个实例可见, 从多个备份组中选举出一个高级备份组, 作为主 用设备的路由设备和作为备用设备的路由设备之间只需传输针对高级备份 组的表示主用设备正常运行的 Advertisement报文, 这样作为主用设备的路 由设备和作为备用设备的路由设备能够支持的备份组数量即可扩大。而且按 照现有技术的方案, 若路由设备 1和路由设备 2能够支持 100个备份组, 且 每个通告周期内, 路由设备 1和路由设备 2之间的 Advertisement报文数量 为 100个。 则采用本发明实施例中的方案后, 路由设备 1和路由设备 2能够 支持的备份组数量为 ΙΟΟ χ Ν个, 且每个通告周期内, 路由设备 1和路由设 备 2之间的 Advertisement报文数量最少可以为 1个。 It can be seen that, in the above case, the number of backup groups supported by the routing device 1 and the routing device 2 can be increased without limitation, and the number of Advertisement packets between the routing device 1 and the routing device 2 is not increased, and the number of Advertisement packets is not increased. The burden of routing device 1 and routing device 2 as backup devices. As shown in the above two examples, an advanced backup group is elected from multiple backup groups. The routing device that serves as the primary device and the routing device that serves as the backup device only need to transmit the advanced backup group to indicate that the primary device is running normally. The Advertisement packet, so that the number of backup groups that can be supported by the routing device of the primary device and the routing device as the standby device can be expanded. In addition, according to the solution of the prior art, if the routing device 1 and the routing device 2 can support 100 backup groups, the number of Advertisement packets between the routing device 1 and the routing device 2 is 100 in each advertising period. After the solution in the embodiment of the present invention, the number of backup groups that can be supported by the routing device 1 and the routing device 2 is , ,, and the advertisement packet between the routing device 1 and the routing device 2 is used in each advertising period. The number can be at least one.
也就是说,本发明能够使得相同的多个路由设备所支持的备份组数量成 倍地增加, 而不会增加路由设备间的报文数量, 更不会增加作为备份组的备 用设备的路由设备的负担。 由于在增加备份组数量的情况下, 不需要增加路 由设备, 从而使得实现本发明实施例中的技术方案不需要额外增加成本。  In other words, the present invention can increase the number of backup groups supported by the same multiple routing devices by a multiple, without increasing the number of packets between routing devices, and not increasing the routing device of the standby device as the backup group. The burden. In the case of increasing the number of backup groups, there is no need to increase the routing device, so that the technical solution in the embodiment of the present invention is not required to increase the cost.
另外, 本发明实施例还提供了一种计算机软件, 以实现路由设备的主备 切换。计算机软件中包括计算机程序代码,当这些程序代码运行于计算机时, 可以执行本发明方法实施例中的一个或多个步骤,以及装置实施例中一个或 多个部件以及功能。 例如, 当某一段计算机程序代码运行于计算机中时, 可 以实现步骤 102的功能。  In addition, the embodiment of the present invention further provides a computer software to implement active/standby switching of a routing device. The computer software includes computer program code which, when executed on a computer, can perform one or more steps of the method embodiments of the present invention, and one or more components and functions of the device embodiments. For example, the functionality of step 102 can be implemented when a certain piece of computer program code is run on the computer.
计算机软件可以存储在计算机可读介质中, 如只读存储器 ROM、 随机 存取存储器 RAM、 或闪存等。 可以理解的是, 这些程序代码可以经由适当 的数据网络加载到计算机中,并且这些加载到计算机中的程序代码可以替换 或更新计算机上已有的程序代码。  The computer software can be stored in a computer readable medium such as a read only memory ROM, a random access memory RAM, or a flash memory. It will be appreciated that the program code can be loaded into the computer via a suitable data network and the program code loaded into the computer can replace or update the program code already on the computer.
以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范 围。凡在本发明的精神和原则之内,所作的任何修改、等同替换以及改进等, 均应包含在本发明的保护范围之内。  The above description is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, and improvements made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.

Claims

权利要求书 Claim
1、 一种路由设备的主备切换方法, 其特征在于, 包括:  A method for switching between active and standby devices of a routing device, comprising:
从至少两个备份组中选择一个备份组作为高级备份组, 其中, 所述至少两 个备份组具有相同的主用设备和备用设备;  Selecting one backup group from the at least two backup groups as the advanced backup group, where the at least two backup groups have the same active device and standby device;
所述主用设备向所述备用设备发送针对所述高级备份组的表示主用设备正 常运行的"¾文;  And the primary device sends, to the standby device, a "3⁄4 text" indicating that the primary device is running normally for the advanced backup group;
在所述备用设备在预设周期内未接收到所述表示主用设备正常运行的报文 的情况下, 所述至少两个备份组同时进行主备切换。  When the standby device does not receive the packet indicating that the active device is running normally in the preset period, the at least two backup groups perform the active/standby switchover at the same time.
2、 如权利要求 1所述的方法, 其特征在于, 所述从至少两个备份组中选择 一个备份组作为高级备份组包括:  2. The method according to claim 1, wherein the selecting one backup group from the at least two backup groups as the advanced backup group comprises:
将所述至少两个备份组中的任意一个备份组手工设置为高级备份组; 所述方法进一步包括:  Manually setting any one of the at least two backup groups as an advanced backup group. The method further includes:
在所述主用设备向所述备用设备发送针对所述高级备份组的表示主用设备 正常运行的报文之前, 在所述主用设备以及备用设备中设置所述选择出的高级 备份组的备份组参数。  Before the primary device sends a message to the backup device indicating that the primary device is running normally, the selected advanced backup group is set in the primary device and the backup device. Backup group parameters.
3、 如权利要求 1所述的方法, 其特征在于, 所述从至少两个备份组中选择 一个备份组作为高级备份组包括:  3. The method according to claim 1, wherein the selecting one backup group from the at least two backup groups as the advanced backup group comprises:
所述主用设备和所述备用设备从所述至少两个备份组中自动协商出一个备 份组作为高级备份组;  The active device and the standby device automatically negotiate a backup group from the at least two backup groups as an advanced backup group;
所述方法进一步包括:  The method further includes:
在所述主用设备向所述备用设备发送针对所述高级备份组的表示主用设备 正常运行的报文之前, 在所述主用设备以及所述备用设备中设置所述至少两个 备份组的备份组参数。  Before the primary device sends the packet indicating that the primary device is running normally to the standby device, setting the at least two backup groups in the primary device and the standby device. Backup group parameters.
4、 如权利要求 1所述的方法, 其特征在于, 所述针对所述高级备份组的表 示主用设备正常运行的报文为通告(Advertisement )报文, 所述通告报文中的 中的参数均针对所述高级备份组。 The method according to claim 1, wherein the packet indicating that the active device is in normal operation of the advanced backup group is an advertisement packet, and the advertisement packet is in the advertisement packet. The parameters are for the advanced backup group.
5、 如权利要求 1所述的方法, 其特征在于, 当所述至少两个备份组具有的 相同的备用设备超过一个时, 在进行主备切换时, 在高级备份组内具有最高优 先级的备用设备将其自身切换为上述至少两个备份组的主用设备。 The method according to claim 1, wherein when the at least two backup groups have more than one identical standby device, when the active/standby switchover is performed, the highest priority group has the highest priority. The standby device switches itself to the primary device of at least two of the above backup groups.
6、 一种路由设备的主备切换方法, 其特征在于, 包括:  A method for switching between active and standby devices of a routing device, comprising:
将至少两个具有相同的主用设备和备用设备的备份组设置为捆绑状态, 并 从所述至少两个备份组中选择一个备份组作为高级备份组;  Setting at least two backup groups having the same active device and standby device as a bundled state, and selecting one backup group from the at least two backup groups as an advanced backup group;
设置为捆绑状态的除高级备份组外的其他备份组跟随所述高级备份组进行 主备切换。  Other backup groups except the advanced backup group set to the bundled state follow the advanced backup group for active/standby switchover.
7、 如权利要求 6所述的方法, 其特征在于, 所述其他备份组跟随所述高级 备份组进行主备切换包括:  The method according to claim 6, wherein the performing the active/standby switchover by the other backup group following the advanced backup group includes:
所述主用设备, 向所述备用设备发送针对所述高级备份组的表示主用设备 正常运行的 文;  The primary device sends, to the standby device, a text indicating that the primary device is in normal operation for the advanced backup group;
当所述备用设备在预设周期内未接收到针对所述高级备份组的表示主用设 备正常运行的报文时, 所述其他备份组跟随所述高级备份组进行主备切换。  When the standby device does not receive the packet indicating that the active device is running normally for the advanced backup group, the other backup group follows the advanced backup group to perform the active/standby switchover.
8、 如权利要求 6所述的方法, 其特征在于, 从所述至少两个备份组中选择 一个备份组作为高级备份组包括:  8. The method according to claim 6, wherein selecting one of the at least two backup groups as the advanced backup group comprises:
将所述至少两个备份组中的任意一个备份组手工设置为高级备份组; 所述方法进一步包括:  Manually setting any one of the at least two backup groups as an advanced backup group. The method further includes:
在所述主用设备向所述备用设备发送针对所述高级备份组的表示主用设备 正常运行的报文之前, 在所述主用设备以及备用设备中, 设置所述选择出的高 级备份组的备份组参数。  Setting the selected advanced backup group in the primary device and the standby device before the primary device sends a message to the backup device indicating that the primary device is running normally. Backup group parameters.
9、 如权利要求 6所述的方法, 其特征在于, 从所述至少两个备份组中选择 一个备份组作为高级备份组包括:  9. The method according to claim 6, wherein selecting one backup group from the at least two backup groups as an advanced backup group comprises:
所述主用设备和所述备用设备从所述至少两个备份组中自动协商出一个备 份组作为高级备份组;  The active device and the standby device automatically negotiate a backup group from the at least two backup groups as an advanced backup group;
所述方法进一步包括:  The method further includes:
在所述主用设备向所述备用设备发送针对所述高级备份组的表示主用设备 正常运行的报文之前, 在所述主用设备以及所述备用设备中, 设置所述至少两 个备份组的备份组参数。 Sending, by the primary device, the primary device for the advanced backup group to the backup device Before the normal running message, the backup group parameters of the at least two backup groups are set in the primary device and the standby device.
10、 一种路由设备备份系统, 其特征在于, 包括至少两个备份组, 其中所 述至少两个备份组具有相同的主用设备和备用设备, 且所述至少两个备份组中 包括一个预先选择出来的高级备份组;  A routing device backup system, comprising: at least two backup groups, wherein the at least two backup groups have the same primary device and backup device, and the at least two backup groups include one The selected advanced backup group;
所述主用设备, 用于向所述备用设备发送针对所述高级备份组的表示主用 设备正常运行的报文;  The primary device is configured to send, to the standby device, a packet indicating that the primary device is in normal operation for the advanced backup group;
所述备用设备, 用于接收所述表示主用设备正常运行的报文, 并当在预设 周期内未接收到所述表示主用设备正常运行的报文时, 触发所述至少两个备份 组进行主备切换。  The standby device is configured to receive the packet indicating that the active device is in normal operation, and trigger the at least two backups when the packet indicating that the active device is in normal operation is not received within a preset period. The group performs the active/standby switchover.
PCT/CN2008/071301 2007-07-18 2008-06-13 Master backup switch method for route device and backup system for route device WO2009009977A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007101192189A CN101094102B (en) 2007-07-18 2007-07-18 Main and standby switching method and route standby system for route device
CN200710119218.9 2007-07-18

Publications (1)

Publication Number Publication Date
WO2009009977A1 true WO2009009977A1 (en) 2009-01-22

Family

ID=38992150

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/071301 WO2009009977A1 (en) 2007-07-18 2008-06-13 Master backup switch method for route device and backup system for route device

Country Status (2)

Country Link
CN (1) CN101094102B (en)
WO (1) WO2009009977A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314136A (en) * 2020-02-18 2020-06-19 安科讯(福建)科技有限公司 Method and terminal for triggering LTE Femto gateway switching
CN112600704A (en) * 2020-12-14 2021-04-02 北京神经元网络技术有限公司 High-speed industrial bus system, method and device for switching control nodes of high-speed industrial bus system and storage medium
CN112953926A (en) * 2021-02-05 2021-06-11 广东电网有限责任公司 Information interaction system, method, device, equipment and storage medium
CN114978296A (en) * 2022-08-01 2022-08-30 成都星联芯通科技有限公司 Equipment switching method, device, earth station and readable storage medium
CN116708283A (en) * 2023-08-08 2023-09-05 珠海派诺科技股份有限公司 Automatic network switching method and switching system

Families Citing this family (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094102B (en) * 2007-07-18 2010-06-02 杭州华三通信技术有限公司 Main and standby switching method and route standby system for route device
CN101252464B (en) * 2008-03-17 2011-04-13 华为技术有限公司 Dual system and dual system online upgrading method
CN101951345B (en) * 2010-10-15 2013-06-05 杭州华三通信技术有限公司 Message transmitting method and equipment
CN102349266B (en) * 2011-08-12 2013-11-06 华为技术有限公司 Processing method and device for service failure on node equipment in communication system
US8553532B2 (en) * 2011-08-23 2013-10-08 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for avoiding inter-chassis redundancy switchover to non-functional standby nodes
CN102448095A (en) * 2012-01-20 2012-05-09 杭州华三通信技术有限公司 Dual homing protection method and equipment
CN104836677B (en) * 2014-02-11 2018-10-12 华为技术有限公司 A kind of method and server of dual-host backup
CN106254087A (en) * 2015-06-12 2016-12-21 中兴通讯股份有限公司 A kind of method and apparatus checking that VRRP configures
CN105119822A (en) * 2015-09-08 2015-12-02 烽火通信科技股份有限公司 Backup group management method and system based on VRRP (Virtual Router Redundancy Protocol)
CN105357057B (en) * 2015-12-06 2019-03-08 浙江宇视科技有限公司 A kind of acentric monitoring management node strange land redundancy approach
CN107343012B (en) * 2016-04-28 2019-12-03 杭州海康威视数字技术股份有限公司 Video Storage System and its video data transmitting method
CN106411574B (en) * 2016-09-05 2020-01-03 新华三信息技术有限公司 Management control method and device
CN106341323A (en) * 2016-10-27 2017-01-18 杭州迪普科技有限公司 VRRP state synchronizing method and device
CN106685818B (en) * 2016-12-30 2020-07-28 北京华为数字技术有限公司 Message feedback method and device
CN107124731A (en) * 2017-05-05 2017-09-01 杭州迪普科技股份有限公司 A kind of method and system of WAP backup
CN108075971B (en) * 2017-12-25 2021-01-26 新华三技术有限公司 Main/standby switching method and device
CN109088818B (en) * 2018-07-19 2021-07-30 新华三信息安全技术有限公司 Equipment linkage switching method and device
CN109101370A (en) * 2018-08-30 2018-12-28 重庆富民银行股份有限公司 The date storage method of principal and subordinate's bi-directional synchronization
CN109271280A (en) * 2018-08-30 2019-01-25 重庆富民银行股份有限公司 Storage failure is switched fast processing method
CN111464438B (en) * 2020-03-04 2023-02-28 邦彦技术股份有限公司 Method and device for managing state of VRRP node, and method and device for improving equipment
CN116055299A (en) * 2023-01-18 2023-05-02 紫光云技术有限公司 Method for optimizing cut-off after soft gateway fault recovery

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7859992B2 (en) * 2005-07-07 2010-12-28 Solace Systems, Inc. Router redundancy in data communication networks
CN100417141C (en) * 2005-11-29 2008-09-03 华为技术有限公司 Group broadcasting business realizing method
CN1980230B (en) * 2005-11-30 2011-06-01 华为技术有限公司 Method for managing VRRP group

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314136A (en) * 2020-02-18 2020-06-19 安科讯(福建)科技有限公司 Method and terminal for triggering LTE Femto gateway switching
CN111314136B (en) * 2020-02-18 2022-12-27 安科讯(福建)科技有限公司 Method and terminal for triggering LTE Femto gateway switching
CN112600704A (en) * 2020-12-14 2021-04-02 北京神经元网络技术有限公司 High-speed industrial bus system, method and device for switching control nodes of high-speed industrial bus system and storage medium
CN112953926A (en) * 2021-02-05 2021-06-11 广东电网有限责任公司 Information interaction system, method, device, equipment and storage medium
CN112953926B (en) * 2021-02-05 2023-01-24 广东电网有限责任公司 Information interaction system, method, device, equipment and storage medium
CN114978296A (en) * 2022-08-01 2022-08-30 成都星联芯通科技有限公司 Equipment switching method, device, earth station and readable storage medium
CN116708283A (en) * 2023-08-08 2023-09-05 珠海派诺科技股份有限公司 Automatic network switching method and switching system
CN116708283B (en) * 2023-08-08 2023-10-31 珠海派诺科技股份有限公司 Automatic network switching method and switching system

Also Published As

Publication number Publication date
CN101094102A (en) 2007-12-26
CN101094102B (en) 2010-06-02

Similar Documents

Publication Publication Date Title
WO2009009977A1 (en) Master backup switch method for route device and backup system for route device
EP3525405B1 (en) Packet sending method and network device
US10257265B2 (en) Redundancy network protocol system
US10178007B2 (en) Determining liveness of protocols and interfaces
WO2018054156A1 (en) Vxlan message forwarding method, device and system
JP4874340B2 (en) Distribution management of control protocol information in network nodes
US8509059B2 (en) Method for operating a virtual router redundancy protocol router and communication system therefor
US9276898B2 (en) Method and device for link fault detecting and recovering based on ARP interaction
WO2009023996A1 (en) Method for implementing network interconnect via link aggregation
WO2004082222A1 (en) Communication method having the function of partaking the network load
WO2015095996A1 (en) Technique for network service availability
CN107911291A (en) VRRP routers switching method, router, VRRP active-standby switch system and storage medium
WO2012171378A1 (en) Method and router for preventing flow interruption caused by failover from vpls to l3
US20140016639A1 (en) Multicast method and multicast device
WO2012048585A1 (en) Switching method and router
CN1859423B (en) Synchronous switching method for host and repeat device
WO2013104279A1 (en) Method and device for setting cvlan in trill network
WO2017219868A1 (en) Arp entry processing method and apparatus
WO2008092329A2 (en) A method and system for master and backup application
Cisco Access and Communication Servers Release Notes for Cisco IOS Release 11.0
Cisco Access and Communication Servers Release Notes for Cisco IOS Release 11.0
Cisco Access and Communication Servers Release Notes for Cisco IOS Release 11.0
Cisco Novell IPX Commands
Cisco Access and Communication Servers Release Notes for Cisco IOS Release 11.0
Cisco Access and Communication Servers Release Notes for Cisco IOS Release 11.0

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 08757712

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 08757712

Country of ref document: EP

Kind code of ref document: A1