WO2012048585A1 - Switching method and router - Google Patents

Switching method and router Download PDF

Info

Publication number
WO2012048585A1
WO2012048585A1 PCT/CN2011/076077 CN2011076077W WO2012048585A1 WO 2012048585 A1 WO2012048585 A1 WO 2012048585A1 CN 2011076077 W CN2011076077 W CN 2011076077W WO 2012048585 A1 WO2012048585 A1 WO 2012048585A1
Authority
WO
WIPO (PCT)
Prior art keywords
router
alternate
primary
session
standby
Prior art date
Application number
PCT/CN2011/076077
Other languages
French (fr)
Chinese (zh)
Inventor
翟洪军
龚协丰
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012048585A1 publication Critical patent/WO2012048585A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers

Abstract

The present invention discloses a switching method and router, wherein the switching method includes: an Alternate router detects whether a master router is out of service according to a fast detection session established between the Alternate router and the master router, wherein the Alternate router is selected from backup routers; after detecting that the master router has been out of service, the Alternate router switches from an Alternate state to a master state and switches to be a new master router. The present invention solves the problem in the prior art of fast switching when the master router fails.

Description

切换方法和路由器 技术领域 本发明涉及网络通信领域, 具体而言, 涉及一种切换方法和路由器。 背景技术 随着因特网 ( Internet ) 的日益普及, 人们对网络的依赖性也越来越强, 网 络的可靠性已成为当今局域网中的关键因素。为此, IETF制定了 VRRP ( Virtual Router Redundancy Protocol, 虚拟路由器冗余协议)。 该协议应用于三层交换机 和路由器上, 为依赖缺省网关进行外网访问的终端系统提供了更快、 更有效的 冗余容错能力, 增强了局域网网关的可靠性。 VRRP的工作原理为: 两个或多个路由器聚集在一起, 组成一个虚拟路由 器 (或称为 VRRP备份组), 并对外提供一致的虚拟 IP ( Internet Protocol, 互 联网协议) 和虚拟 MAC ( Media Access Control, 媒体接入控制) 地址。 局域 网内的主机通过将该虚拟 IP指定为默认的下一跳来实现对外部网络的访问。任 何时刻, 备份组内只有一个路由器负责在内外之间转发数据, 称为主用路由器 或 Master, 其他的路由器作为备用路由器或 Backup路由器。 主用路由器通过 周期性地发送保活 4艮文来宣称自己的存在, 备用路由通过接收保活 4艮文来检测 主用路由器的状态。 如果在连续几个周期 (秒级周期) 内未收到保活报文, 备 用路由器就认为主用路由器已经失效, 并发起主用路由器竟选。 最优 (包括: 优先级最高或优先级相同但主 IP地址最大)的备用路由器将会成为新的主用路 由器, 并接替原主用路由器的报文转发工作, 从而保证局域网与外部网络通信 的畅通。 秒级的保活报文发送周期, 导致 VRRP故障路由器的检测和切换时间也是 秒级的 ,远远不能满足语音等实时业务的毫秒级要求。为此,一般通过在 VRRP 主备路由器之间加快保活报文发送的频率或釆用建立故障快速检测会话(比如 BFD ( Bidirectional Forwarding Detection, 双向转发检测)会话)等技术, 以加 快故障的检测和设备的切换速度, 满足实时业务的需要。 但是, 这些技术在满 足实时业务需要的同时也带来一些新的问题。 其中, 釆用建立 BFD会话的方法的原理是: 通过在 VRRP主备路由器之 间建立 BFD 会话来检测主用路由器的状态, 达到故障快速检测和设备快速切 换的目的。 在 VRRP中, 当主用路由器发生故障后, 主用路由器会从一台设备 迁移到另一台。 对于存在多台路由器的 VRRP备份组来说, 为了能够始终使用 BFD会话检测主用路由器的状态,备份组内任意两台路由器之间都需要建立一 条 BFD会话。 这样, 就需要在包含多台路由器的 VRRP备份组内建立全网状 BFD会话, 不但会消耗大量带宽, 还会增加设备 (尤其是主用路由器) 负担。 更为重要的是, 当 VRRP备份组包括两台以上的路由器时, 单纯通过 BFD 会话检测主用路由器的状态, 并不能保证主用路由器失效后, 一定具有亚秒级 的设备切换能力。 例如, 如图 1所示, 局域网设备 (Hl、 H2、 H3、 H4 ) 之间通过二层交换 机连接在一起, 其中路由器 A、 路由器 B和路由器 C组成虚拟路由器, 路由器 A为主用路由器, 为了快速检测主用路由器的状态, 路由器 B和路由器 C都与 路由器 A建立了 BFD会话。 某个时刻路由器 A发生了故障, 数十毫秒后, 路由器 B和路由器 C几乎 同时发现了该故障, 便通过发送保活 4艮文的方式展开主用路由器的竟选。 假设 路由器 B先将保活报文发送到网络上, 交换机的 MAC表被更新, 即到达虚拟 路由器虚拟 MAC的出端口更改为端口 B。 在路由器 C已将自己的保活报文放 入了发送端口的緩冲队列后, VRRP模块才收到路由器 B的保活报文 (比如, 进程调度或系统负载重等原因)。 随后, 路由器 C的保活报文被发送到网络上, 交换机的 MAC表被再次更新, 端口 C成了虚拟 MAC的出端口。 因为路由器 B的优先级更高, 所以被选为新的主用路由器, 但是发往虚拟 路由器的报文却被交换机发送到了路由器 C (不承担报文转发工作), 从而造 成内外网访问的中断。 该问题只有在路由器 B的发送下一个保活后才能解决, 这至少需要 1秒以上的时间, 难以满足实时业务的需要。 发明内容 本发明的主要目的在于提供一种切换方法和路由器, 解决了现有技术中主 用路由器故障时的快速切换问题。 根据本发明的一个方面, 提供了一种切换方法, 包括: 预备 (Alternate ) 路由器通过与主用路由器之间建立的快速检测会话来检测主用路由器是否失 效, 其中, Alternate路由器是从备用路由器中选举的; 在检测到主用路由器失 效后, Alternate路由器从 Alternate状态转换到主用状态并切换为新主用路由器。 在 Alternate 路由器通过与主用路由器之间建立的快速检测会话来检测主 用路由器是否失效之前, 还包括: 主用路由器发起 Alternate路由器选举, 选举 最优的备用路由器作为 Alternate路由器; 主用路由器建立与 Alternate路由器 之间的快速检测会话。 主用路由器发起 Alternate 路由器选举, 选举最优的备用路由器作为TECHNICAL FIELD The present invention relates to the field of network communications, and in particular to a handover method and a router. BACKGROUND With the increasing popularity of the Internet (Internet), people are becoming more and more dependent on the network, and the reliability of the network has become a key factor in today's local area networks. To this end, the IETF has developed VRRP (Virtual Router Redundancy Protocol). The protocol is applied to Layer 3 switches and routers to provide faster and more efficient redundancy fault tolerance for terminal systems that rely on the default gateway for external network access, and enhances the reliability of the LAN gateway. VRRP works as follows: Two or more routers are grouped together to form a virtual router (or VRRP backup group), and provide a consistent virtual IP (Internet Protocol) and virtual MAC (Media Access Control). , Media Access Control) Address. A host in the local area network accesses the external network by designating the virtual IP as the default next hop. At any time, only one router in the backup group is responsible for forwarding data between the internal and external, called the primary router or the master, and the other routers are used as backup routers or backup routers. The primary router declares its existence by periodically sending a keep-alive message, and the alternate route detects the state of the primary router by receiving the keep-alive message. If the keep-alive message is not received within a few consecutive cycles (seconds), the standby router considers that the primary router has failed and initiates the primary router. The optimal standby router (including: the highest priority or the same priority but the primary IP address is the largest) will become the new primary router and take over the packet forwarding of the original primary router, thus ensuring the smooth communication between the local area network and the external network. . The second-level keep-alive packet sending period causes the detection and switching time of the VRRP faulty router to be second-order, which is far from satisfying the millisecond requirement of real-time services such as voice. To speed up fault detection, you can speed up the detection of faults by speeding up the transmission of keep-alive packets between the VRRP master and backup routers, or by using techniques such as BFD (bidirectional forwarding detection). And the switching speed of the device to meet the needs of real-time business. However, these technologies bring new problems while meeting real-time business needs. The principle of the method for establishing a BFD session is as follows: The BFD session is established between the VRRP master and backup routers to detect the status of the active router. The purpose of the change. In VRRP, when the primary router fails, the primary router migrates from one device to another. For a VRRP backup group with multiple routers, you need to establish a BFD session between any two routers in the backup group to detect the status of the primary router. In this way, a full mesh BFD session needs to be established in a VRRP backup group that includes multiple routers. This not only consumes a lot of bandwidth, but also increases the burden on the device (especially the primary router). More importantly, when the VRRP backup group includes more than two routers, the status of the active router is detected through the BFD session. This does not guarantee that the primary router fails. For example, as shown in Figure 1, LAN devices (Hl, H2, H3, and H4) are connected through Layer 2 switches. Router A, Router B, and Router C form a virtual router. Router A is the primary router. The status of the active router is quickly detected. Both Router B and Router C establish a BFD session with Router A. At some point, Router A has failed. After several tens of milliseconds, Router B and Router C have discovered the fault almost simultaneously, and then expand the selection of the primary router by sending a keep-alive message. Assume that Router B first sends keep-alive packets to the network, and the MAC table of the switch is updated, that is, the egress port that reaches the virtual router virtual MAC is changed to port B. After Router C has placed its keep-alive packet in the buffer queue of the sending port, the VRRP module receives the keep-alive packet of Router B (for example, process scheduling or system load, etc.). Subsequently, the keep-alive message of the router C is sent to the network, the MAC table of the switch is updated again, and the port C becomes the egress port of the virtual MAC. Because Router B has a higher priority, it is selected as the new primary router, but the packets sent to the virtual router are sent by the switch to Router C (do not bear the packet forwarding work), resulting in interruption of internal and external network access. . This problem can only be solved after the next keep-alive of Router B. This takes at least 1 second, which is difficult to meet the needs of real-time services. SUMMARY OF THE INVENTION A primary object of the present invention is to provide a handover method and a router, which solve the problem of fast handover when a primary router fails in the prior art. According to an aspect of the present invention, a handover method is provided, including: an Alternate router detects whether a primary router fails by a fast detection session established with a primary router, wherein the alternate router is from the standby router. Elected; After detecting that the primary router has failed, the Alternate router transitions from the Alternate state to the active state and switches to the new primary router. Before the Alternate router detects the failure of the primary router through a fast detection session established with the primary router, the following includes: the primary router initiates an alternate router election, elects the optimal standby router as an alternate router; the primary router establishes and A fast detection session between Alternate routers. The primary router initiates an alternate router election, electing the optimal standby router as
Alternate路由器包括: 主用路由器周期性地发送保活报文, 并通过向备用路由 器发送 Alternate路由器选举请求报文来发起 Alternate路由器选举; 备用路由 器向主用路由器返回 Alternate路由器选举请求报文的应答报文, 其中, 应答报 文中携带有备用路由器的优先级和 /或主 IP地址; 主用路由器选举具有最高优 先级的备用路由器作为 Alternate路由器, 或者, 在优先级相同的情况下, 主用 路由器选举主 IP地址最大的备用路由器作为 Alternate路由器; 具有最高优先 级或者主 IP地址最大的备用路由器从备用状态转换到 Alternate状态并切换为 Alternate路由器。 在主用路由器建立与 Alternate路由器之间的快速检测会话之前, 还包括: 主用路由器分别通过快速检测会话类型协商 4艮文和快速检测会话参数协商 4艮 文, 与 Alternate路由器协商快速检测会话的类型和参数; 则主用路由器建立与 Alternate路由器之间的快速检测会话包括: 协商成功后, 主用路由器按照协商 好的类型和参数建立与 Alternate路由器之间的快速检测会话。 在上述的方法中, 还包括: 若建立失败或协商失败, 则 Alternate路由器从 Alternate状态转换到备用状态并重新切换为备用路由器; 备用路由器侦听主用 路由器发送的保活报文; 若在一定时间内未收到来自主用路由器的保活报文, 则备用路由器发起主用路由器选举, 选举最优的备用路由器作为新主用路由 器, 并进入主用路由器发起 Alternate路由器选举, 选举最优的备用路由器作为 Alternate路由器的步 4聚。 在 Alternate路由器从 Alternate状态转换到主用状态并切换为新主用路由 器之后, 新主用路由器进入主用路由器发起 Alternate路由器选举, 选举最优的 备用路由器作为 Alternate路由器的步骤。 快速检测会话包括但不限于: 双向转发检测 (BFD )会话、 同步数字体系 ( SDH )会话、 心跳会话。 根据本发明的另一方面, 提供了一种路由器, 包括: 检测模块, 设置为在 该路由器为预备 (Alternate ) 路由器的情况下, 通过与主用路由器之间建立的 快速检测会话来检测主用路由器是否失效, 其中, Alternate路由器是从备用路 由器中选举的; 切换模块, 设置为在该路由器为 Alternate路由器的情况下, 在 检测模块检测到主用路由器失效后,从 Alternate状态转换到主用状态并切换为 主用路由器。 上述路由器还包括: 收发模块,设置为在该路由器为主用路由器的情况下, 发起 Alternate 路由器选举, 选举具有最高优先级的备用路由器作为 Alternate 路由器或在优先级相同时, 选举主 IP地址最大的备用路由器作为 Alternate路 由器; 建立模块, 设置为在收发模块选举出 Alternate 路由器之后, 建立与 Alternate路由器之间的快速检测会话以使得 Alternate路由器通过快速检测会话 来检测路由器是否失效; 其中, 切换模块还设置为在该路由器为主用路由器的 情况下, 在检测模块检测到该路由器失效后, 从主用状态转换到备用状态并切 换为备用路由器。 上述路由器还包括: 协商模块, 设置为在建立模块建立与 Alternate路由器 之间的快速检测会话之前, 分别通过快速检测会话类型协商报文和快速检测会 话参数协商报文, 与 Alternate路由器协商快速检测会话的类型和参数; 其中, 建立模块在协商模块协商成功后, 设置为按照协商好的类型和参数建立与 Alternate路由器之间的快速检测会话。 通过本发明, 仅在 Master路由器和 Alternate路由器之间建立快速检测会 话, 而无需在备份组内的任意两台路由器之间都建立一条快速检测会话, 因此, 解决了现有技术中的主用路由器故障时的快速切换问题, 确保了保证了主备路 由器之间的亚秒级快速切换。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的不 当限定。 在附图中: 图 1是根据相关技术的 VRRP中利用 BFD会话检测主用路由器的状态的 示意图; 图 2是 居本发明实施例的切换方法的流程图; 图 3是根据本发明优选实施例的 VRRP中路由器的状态转换图; 图 4是 居本发明优选实施例的切换方法的流程图; 图 5是根据本发明优选实施例的 Backup路由器的状态变化流程图; 图 6是根据本发明优选实施例的 Alternate路由器的状态变化流程图; 图 7是根据本发明优选实施例的 Master路由器的状态变化流程图; 图 8是 居本发明实施例的路由器的示意图; 图 9是根据本发明优选实施例的路由器的示意图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在不 冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 为了解决相关技术中存在的会消耗大量带宽和增加设备负担的问题, 以及 当 VRRP备份组包括两台以上的备用路由器时, 单纯通过 BFD会话检测主用 路由器的状态, 并不能保证主用路由器失效后一定具有亚秒级的设备切换能力 的问题至少之一, 本发明以下实施例通过扩展现有的 VRRP协议, 即通过扩展 的 VRRP协议 ( Enhanced Virtual Redundant Router Protocol, EVRRP ) 来实现 VRRP主备路由器的快速切换的方法, 该 EVRRP主要包括: The Alternate router includes: the primary router periodically sends keep-alive messages, and sends an alternate router election request message to the standby router to initiate an alternate router election; the standby router returns a response report of the alternate router election request message to the primary router. The response message carries the priority and/or the primary IP address of the standby router; the primary router elects the backup router with the highest priority as the alternate router, or, in the case of the same priority, the primary router The standby router with the largest primary IP address is elected as the alternate router; the standby router with the highest priority or the largest primary IP address is switched from the standby state to the alternate state and switched to the alternate router. Before the active router establishes a fast detection session with the alternate router, the method includes: the primary router negotiates the session type and the fast detection session parameter negotiation, and negotiates with the alternate router to quickly detect the session. Type and parameters; The fast detection session between the primary router and the alternate router includes: After the negotiation succeeds, the active router establishes a fast detection session with the alternate router according to the negotiated type and parameters. In the foregoing method, the method further includes: if the establishment fails or the negotiation fails, the alternate router transitions from the alternate state to the standby state and re-switches to the standby router; the standby router listens to the keep-alive message sent by the primary router; If the keep-alive packet from the active router is not received within the time, the standby router initiates the election of the primary router, elects the optimal standby router as the new primary router, and enters the primary router to initiate the election of the alternate router to elect the optimal backup. The router acts as a step 4 of the alternate router. After the Alternate router transitions from the Alternate state to the active state and switches to the new primary router, the new primary router enters the primary router to initiate an alternate router election, and the optimal standby router is elected as the Alternate router. Fast detection sessions include, but are not limited to, bidirectional forwarding detection (BFD) sessions, synchronous digital hierarchy (SDH) sessions, and heartbeat sessions. According to another aspect of the present invention, a router is provided, comprising: a detecting module, configured to be established between a router and an active router in a case where the router is an alternate router Quickly check the session to detect whether the primary router is invalid. The Alternate router is elected from the standby router. The switching module is set to be in the case that the router is an alternate router. After the detection module detects that the primary router is invalid, The Alternate state transitions to the active state and switches to the primary router. The router further includes: a transceiver module configured to initiate an alternate router election when the router is the primary router, and elect the backup router with the highest priority as the alternate router or when the priority is the same, the election primary IP address is the largest. The standby router acts as an alternate router; the module is set up to establish a fast detection session with the alternate router after the transceiver module elects the alternate router, so that the alternate router detects the failure of the router through the fast detection session; wherein, the switching module also sets In the case that the router is the primary router, after the detection module detects that the router has failed, it switches from the primary state to the standby state and switches to the standby router. The router further includes: a negotiation module, configured to quickly detect a session type negotiation packet and a fast detection session parameter negotiation packet, and negotiate a fast detection session with the alternate router, respectively, before the establishment module establishes a fast detection session with the alternate router. The type and parameters of the setup module are set to establish a fast detection session with the alternate router according to the negotiated type and parameters. With the present invention, a fast detection session is established only between the master router and the alternate router, and a fast detection session is not required between any two routers in the backup group. Therefore, the primary router in the prior art is solved. The fast switching problem at the time of failure ensures that sub-second fast switching between the primary and backup routers is guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a schematic diagram of detecting a state of a primary router by using a BFD session in a VRRP according to the related art; FIG. 2 is a flowchart of a handover method according to an embodiment of the present invention; FIG. 3 is a flowchart according to a preferred embodiment of the present invention. State transition diagram of the router in VRRP; 4 is a flow chart of a switching method of a preferred embodiment of the present invention; FIG. 5 is a flow chart showing a state change of a Backup router according to a preferred embodiment of the present invention; FIG. 6 is a flow chart showing a state change of an alternate router according to a preferred embodiment of the present invention. Figure 7 is a flow chart showing the state change of the master router according to a preferred embodiment of the present invention; Figure 8 is a schematic diagram of a router in accordance with an embodiment of the present invention; and Figure 9 is a schematic diagram of a router in accordance with a preferred embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. In order to solve the problem that the related art may consume a large amount of bandwidth and increase the burden on the device, and when the VRRP backup group includes more than two standby routers, the state of the primary router is simply detected through the BFD session, and the primary router cannot be guaranteed to be invalid. The VRRP active/standby router is implemented by the VRRP protocol, which is an enhanced virtual redundant router protocol (ERRRP). The method of fast switching, the EVRRP mainly includes:
( 1 )VRRP状态的扩展,除了 VRRP路由器原有的 Initialize(初始;)、 Backup (备用) 和 Master (主用) 三种状态以外, 扩展一种 Alternate (预备) 状态。 处在 Alternate状态的路由器 (即称为 Alternate路由器) 会通过快速检测会话 来检测 Master路由器的状态(即检测主用路由器是否失效), 当发现 Master路 由器出现故障 (即失效) 后, 立即接替其工作, 即切换为新的主用路由器。 (1) The VRRP state extension expands an Alternate state in addition to the original Initialize, Backup, and Master states of the VRRP router. The router in the Alternate state (called the Alternate router) will detect the status of the master router by detecting the session quickly (that is, detecting whether the primary router is invalid). When it finds that the master router is faulty (that is, it fails), it immediately takes over its work. , that is, switch to the new primary router.
( 2 )协议报文的扩展, 除了现有 VRRP的 Advertisement报文(即保活报 文)以夕卜,扩展出了 Alternate路由器选举请求艮文( Alternate Request ), Alternate 路由器选举请求报文的应答报文 ( Alternate Reply )、 快速检测会话类型协商报 文 ( Session Type Negotiate ) , 以及快速检测会话参数协商 4艮文 ( Session Parameters Negotiate )。 其中,上述扩展出的各种报文的格式可以根据实际需求, 自行或统一规定。 图 2是才艮据本发明实施例的切换方法的流程图, 包括以下步骤: 步骤 S202, Alternate路由器通过与主用 ( Master )路由器之间建立的快速 检测会话检测主用路由器是否失效, 其中, 该 Alternate路由器是从当前所有的 备用 ( Backup )路由器中选举的; 步骤 S204 , 在检测到主用路由器失效后, Alternate路由器从 Alternate状 态转换到主用状态 (如图 3所示) 并切换为新主用路由器。 本实施例仅在 Master路由器和 Alternate路由器之间建立快速检测会话, 而无需在备份组内的任意两台路由器之间都建立一条快速检测会话, 因此, 解 决了相关技术中存在的会消耗大量带宽和增加设备负担的问题, 从而在一个 VRRP备份组内仅建立一条快速检测会话, 带宽占用小, 并减轻了设备 (尤其 是备用路由器) 的负担。 另外, 本实施例还解决了现有技术中的主用路由器故障时的快速切换问 题, 从而确保了保证了主备路由器之间的亚秒级快速切换。 如图 4所示, 才艮据本发明优选实施例的切换方法包括以下具体处理步骤。 步骤 S402, Backup (备份) 路由器侦听 Master (主用) 路由器发送的保 活 4艮文。 步骤 S404, Backup路由器判断在一定时间内是否收到来自 Master路由器 的保活报文, 若否, 则发起 Master路由器选举, 并进入步骤 S406; 若是, 则 转至步 4聚 S402。 具体地, 备用路由器发起主用路由器选举, 选举具有最优的备用路由器作 为新的 Master路由器(如图 3所示, 被选举为新的路由器即从备用状态切换到 Master状态)。 其中, 最优的备用路由器是指具有最高优先级的备用路由器或者在优先级 相同的情况下, 主 IP地址最大的备用路由器。 步骤 S406, 新的 Master路由器发起 Alternate路由器选举, 选举最优的备 用路由器作为 Alternate路由器。 同上, 最优的备用路由器是指具有最高优先级的备用路由器或者在优先级 相同的情况下, 主 IP地址最大的备用路由器。 例如, 该步骤 S406包括以下步骤 1-4: 步骤 1 , 新的 Master路由器对外发送周期性的保活报文(即周期性地发送 保活 艮文 ), 并通过向 Backup路由器发送 Alternate Request 艮文 ( Alternate路 由器选举请求报文) 来发起 Alternate路由器选举; 步骤 2 ,所有的 Backup路由器 4欠到 Alternate Request 4艮文后,回应 Alternate Reply报文, 其中, Alternate Reply报文中携带有备用路由器的优先级和主 IP 地址等信息; 步骤 3 , 新的主用路由器据此选举出最优的备用路由器作为 Alternate路由 器; 步骤 4 , 该最优的备用路由器 (即被选举出的备用路由器) 从备用状态转 换到 Alternate状态 (如图 3所示) 并切换为 Alternate路由器。 显然,在步骤 1-2中,主用路由器也可以釆用其他类型的报文发起 Alternate 路由器选举, 备用路由器也可以回应其他类型的 4艮文来携带自己的优先级和主 IP地址等信息以完成选举。 步骤 S408, Master路由器和 Alternate路由器之间, 通过发送 Session Type Negotiate 4艮文 (快速检测会话类型十办商 4艮文) 和 Session Parameters Negotiate 报文 (快速检测会话参数协商报文), 协商快速检测会话的类型和参数, 若协 商成功, 则进入步 4聚 S410; 否则, 转至步 4聚 S418。 步骤 S410, Master路由器和 Alternate路由器之间建立快速检测会话, 若 会话建立成功, 则进入步骤 S412, 否则转至步骤 S418。 具体地, Master路由器和 Alternate路由器之间按照协商好的快速检测会话 的类型和参数建立快速检测会话。 这里值得注意的是: 在 VRRP备份组中仅建立 Master路由器和 Alternate 路由器之间的快速检测会话, 即 Master路由器仅建立与 Alternate路由器之间 的快速检测会话。 步骤 S412, Alternate路由器通过步骤 S410中与 Master路由器之间建立的 快速检测会话来检测 Master路由器的状态 (即检测 Master路由器是否失效或 发生故障), 并进入步骤 S414。 该步 4聚 S412对应于图 2中的步 4聚 S202。 步骤 S414, 如果发现 Master路由器失效, 进入步骤 S416, 否则转至步骤 S412。 步骤 S416, Alternate路由器晋升为 Master路由器, 如图 3所示, 其状态 也从 Alternate状态转换为 Master状态, 转至步骤 S406。 上述步 4聚 S414-步 4聚 S416对应于图 2中的步 4聚 S204。 步 4聚 S418, Alternate路由器回退到 Backup路由器, 如图 3所示, 其^! 态 也从 Alternate状态转换到 Backup状态; 转至步骤 S402。 在如图 2和图 4所示的实施例中, 快速检测会话可以为 BFD会话、 SDH ( Synchronous Digital Hierarchy, 同步数字体系)会话、 或心跳会话等快速故 障检测会话。 本发明上述优选实施例通过对 VRRP协议的扩展 (即 EVRRP协议), 在 VRRP的状态中增力口了一种 Alternate状态,处于 Alternate状态的路由器作为所 有 Backup路由器中最有资格替代 Master路由器工作的一个 Backup路由器。 在进行主备切换或快速检测时, Master路由器仅与 Alternate路由器之间动态建 立快速检测会话, 通过该会话, Alternate路由器可以快速地检测到 Master路由 器的失效, 并立刻接替 Master路由器的工作 (即切换为主用路由器), 从而实 现故障设备的快速切换, 并提高了设备的切换速度。 此外, 上述优选实施例中, Master路由器和 Alternate路由器之间的快速检 测会话是通过协商的方式自动建立的, 不会增加网络管理人员维护负担, 因此 维护简单。 并且, 快速检测会话的类型和参数是通过协商方式确定的, 实施中 可以根据需要进行扩展, 从而具有较好的可扩展性。 值得注意的是, 本发明实施例提出的 EVRRP协议可以兼容标准的 VRRP 协议, 支持 EVRRP协议的设备, 除了发送 EVRRP扩展报文外, 还会发送标 准的 VRRP 4艮文。 所以, 在 EVRRP设备与 VRRP设备互连环境中, 设备之间 将按照标准的 VRRP机制进行工作, 而在只有 EVRRP设备的环境中, 设备之 间通过动态建立快速检测会话机制, 实现故障设备的亚秒级快速切换。 从上述图 2和图 4所示的实施例中可以看出, 如图 3所示, 根据本发明优 选实施例的 VRRP备份组中的每个路由器的 EVRRP状态包括以下四种状态: ( 1 ) Initial (初始)状态: EVRRP路由器的初始态, 在该状态下, 设备不 处理任何报文, 当出现 Startup (启动)事件后, 路由器将根据自己的优先级是 否为 255跃迁到 Master或 Backup 大态; (2) The extension of the protocol packet, in addition to the existing VRRP Advertisement message (that is, the keep-alive message), the Alternate router election request message (Alternate Request) is extended, and the response of the Alternate router election request message is extended. The message (Alternate Reply), the session type negotiation type (Session Type Negotiate), and the session parameter Negotiate are quickly detected. The format of the various extended messages can be determined according to actual needs. 2 is a flow chart of a handover method according to an embodiment of the present invention, including the following steps: Step S202, the Alternate router detects whether the primary router is invalid through a fast detection session established between the primary router and the master router, wherein the alternate router is elected from all current backup routers; Step S204, After detecting that the primary router has failed, the alternate router switches from the alternate state to the primary state (as shown in Figure 3) and switches to the new primary router. In this embodiment, a fast detection session is established only between the master router and the alternate router, and no fast detection session is established between any two routers in the backup group. Therefore, the related technologies may consume a large amount of bandwidth. And the problem of increasing the burden on the device, so that only one fast detection session is established in a VRRP backup group, the bandwidth occupation is small, and the burden on the device (especially the standby router) is alleviated. In addition, the present embodiment also solves the problem of fast switching when the primary router fails in the prior art, thereby ensuring fast sub-second fast switching between the primary and secondary routers. As shown in FIG. 4, the switching method according to the preferred embodiment of the present invention includes the following specific processing steps. In step S402, the backup router listens for the keep-alive message sent by the master router. In step S404, the backup router determines whether the keep-alive message from the master router is received within a certain period of time. If not, the master router election is initiated, and the process proceeds to step S406; if yes, the process goes to step S402. Specifically, the standby router initiates an election of the primary router, and elects the optimal backup router as the new master router (as shown in FIG. 3, being elected as a new router, that is, switching from the standby state to the master state). The optimal standby router refers to the standby router with the highest priority or the standby router with the largest primary IP address in the case of the same priority. Step S406, the new master router initiates an alternate router election, and elects an optimal standby router as an alternate router. As above, the optimal standby router refers to the standby router with the highest priority or the standby router with the largest primary IP address in the case of the same priority. For example, the step S406 includes the following steps 1-4: Step 1: The new master router sends a periodic keep-alive packet (that is, periodically sends the keep-alive message), and sends an alternate request message (Alternate router election request packet) to the backup router to initiate the alternate router. After the backup router 4 owes the Alternate Request 4 message, it responds to the Alternate Reply message. The Alternate Reply message carries the information such as the priority and the primary IP address of the standby router. Step 3: New The primary router elects the optimal backup router as the alternate router accordingly; Step 4, the optimal standby router (ie, the elected standby router) transitions from the standby state to the alternate state (as shown in FIG. 3) and Switch to the Alternate router. Obviously, in step 1-2, the active router can also use other types of packets to initiate an alternate router election. The backup router can also respond to other types of messages to carry information such as its own priority and primary IP address. Complete the election. Step S408: The Master Router and the Alternate Router negotiate a fast detection by sending a Session Type Negotiate message (a fast detection session type 10 message) and a Session Parameters Negotiate message (fast detection session parameter negotiation message). The type and parameters of the session. If the negotiation is successful, go to step 4 to gather S410; otherwise, go to step 4 to gather S418. Step S410, a fast detection session is established between the master router and the alternate router. If the session establishment is successful, the process proceeds to step S412, otherwise, the process goes to step S418. Specifically, the master router and the alternate router establish a fast detection session according to the negotiated type and parameters of the fast detection session. It is worth noting here: In the VRRP backup group, only the fast detection session between the master router and the alternate router is established. That is, the master router only establishes a fast detection session with the alternate router. Step S412, the Alternate router detects the status of the master router (ie, detects whether the master router is invalid or fails) through the fast detection session established in step S410 with the master router, and proceeds to step S414. This step 4 S S412 corresponds to step 4 S202 in FIG. In step S414, if the master router is found to be invalid, the process goes to step S416, otherwise the process goes to step S412. In step S416, the Alternate router is promoted to the master router. As shown in FIG. 3, its state is also changed from the Alternate state to the Master state, and the process goes to step S406. The above step 4 gathers S414-step 4 gathers S416 corresponding to step 4 gathers S204 in FIG. Step 4 gathers S418, and the Alternate router falls back to the Backup router, as shown in Figure 3. The state also transitions from the Alternate state to the Backup state; Go to step S402. In the embodiment shown in FIG. 2 and FIG. 4, the fast detection session may be a fast failure detection session such as a BFD session, an SDH (Synchronous Digital Hierarchy) session, or a heartbeat session. The above-mentioned preferred embodiment of the present invention enhances the VRRP protocol (ie, the EVRRP protocol), and adds an alternate state to the VRRP state. The router in the alternate state is the most qualified of all the backup routers to replace the master router. A Backup router. During the active/standby switchover or fast detection, the master router dynamically establishes a fast detection session with the alternate router. Through this session, the alternate router can quickly detect the failure of the master router and immediately take over the work of the master router (ie, switch As the main router), the fast switching of the faulty device is realized, and the switching speed of the device is improved. In addition, in the above preferred embodiment, the fast detection session between the master router and the alternate router is automatically established through negotiation, and the maintenance burden of the network administrator is not increased, so the maintenance is simple. Moreover, the type and parameters of the fast detection session are determined through negotiation, and the implementation can be extended as needed, thereby having better scalability. It should be noted that the EVRRP protocol proposed by the embodiment of the present invention can be compatible with the standard VRRP protocol. The device supporting the EVRRP protocol sends a standard VRRP packet in addition to the EVRRP extension packet. Therefore, in the environment where the EVRRP device and the VRRP device are interconnected, the device works according to the standard VRRP mechanism. In the environment where only the EVRRP device is used, the device dynamically establishes a fast detection session mechanism to implement the faulty device. Fast switching in seconds. As shown in the foregoing embodiment of FIG. 2 and FIG. 4, as shown in FIG. 3, the EVRRP state of each router in the VRRP backup group according to the preferred embodiment of the present invention includes the following four states: (1) Initial state: The initial state of the EVRRP router. In this state, the device does not process any message. When the Startup event occurs, the router will transition to the Master according to whether its own priority is 255. Backup
( 2 ) Backup (备用或备份) 状态: 处于该状态下的路由器不作任何数据 报文转发工作, 但会侦听 Master路由器的保活报文, 侦听和回复 Alternate路 由器选举 4艮文和快速检测会话协商 4艮文(包括快速检测会话类型协商 4艮文和快 速检测会话参数协商报文)。 参与 Alternate 路由器竟选, 如果获胜就跃迁到 Alternate状态; 否则在 Backup状态下检测 Master路由器的保活 4艮文; (2) Backup (standby or backup) status: The router in this state does not perform any data packet forwarding, but it will listen to the keep-alive packets of the master router, listen and reply to the alternate router election and fast detection. Session negotiation 4 (including fast detection session type negotiation 4 和 and fast detection session parameter negotiation message). Participate in the Alternate router, if it wins, it will transition to the Alternate state; otherwise, it will detect the keep-alive of the Master router in the Backup state;
( 3 ) Alternate (预备)状态: 处于该状态下的路由器不转发报文, 但会通 过快速检测会话检测 Master路由器的状态, 如果发现 Master路由器失效, 就 晋升为 Master路由器, 否则继续侦听 Master路由器的状态; (3) Alternate (prepared) status: The router in this state does not forward packets, but detects the status of the master through a fast detection session. If the master fails, it is promoted to the master. Otherwise, it continues to listen to the master. status;
( 4 ) Master (主用)状态: 处于该状态下的路由器^担实际的 4艮文转发工 作, 并定期发送保活报文, 宣称自己的存在。 同时, 还负责发起 Alternate路由 器的选举、 快速检测会话的建立, 并通过建立的快速检测会话发送快速检测保 活报文以使得 Alternate 路由器能够利用建立的快速检测会话并通过接收该快 速检测保活 艮文来检测 Master路由器的状态是否失效或发生故障。 其中, 除了 Initial状态, 其他任何状态下只要收到 Shutdown (停止)事件, 将立刻回退到 Initial状态。 下面通过图 5、 图 6和图 7来分别说明 Backup路由器、 Alternate路由器和 Master路由器的状态变化的流程。 如图 5所示, 根据本发明优选实施例的 Backup路由器的状态变化流程包 括以下步 4聚 S 502-步 4聚 S520。 步骤 S502: 侦听协议报文, 侦听 Master路由器的保活报文和 Master路由 器发起的 Alternate选举请求报文。 收到保活报文后, 将重置 Master保活定时 器。 步骤 S504: 如果 Master 保活定时器超时 (即在连续几个周期内未收到 Master路由器的保活报文), 就认为 Master路由器失效, 继续步骤 S506 , 否则 转至步 4聚 S512。 步骤 S506: 开始 Master路由器竟选, Backup路由器通过对外发送保活报 文, 发起 Master路由器竟选。 步骤 S508: 竟选获胜, 最优的 Backup路由器将在 Master竟选中获胜, 如 果获胜, 继续步骤 S510; 否则, 转至步骤 S502。 步骤 S510: 切换到 Master状态, 竟选获胜的路由器会对外发送包含虚拟(4) Master (active) status: The router in this state is responsible for the actual 4 艮 text forwarding work, and periodically sends keep-alive messages to declare their existence. At the same time, it is also responsible for initiating the election of the alternate router, establishing the fast detection session, and sending a fast detection keep-alive message through the established fast detection session, so that the alternate router can utilize the established fast detection session and receive the fast detection and keep alive. The text is used to check whether the status of the master router is invalid or has failed. Among them, except for the Initial state, as long as the Shutdown event is received in any other state, it will immediately fall back to the Initial state. The flow of the state change of the Backup Router, the Alternate Router, and the Master Router will be respectively described below with reference to FIG. 5, FIG. 6, and FIG. As shown in FIG. 5, the state change process of the Backup router according to the preferred embodiment of the present invention includes the following steps: S 502 - Step 4 S S520. Step S502: Listening to the protocol packet, and listening to the keep-alive message of the master router and the alternate election request message initiated by the master router. After receiving the keep-alive message, the Master keep-alive timer will be reset. Step S504: If the master keep-alive timer expires (that is, the keep-alive message of the master router is not received within consecutive cycles), the master router is considered to be invalid, and the process proceeds to step S506, otherwise, the process proceeds to step 4, S512. Step S506: The master router is selected, and the backup router sends the keep-alive message to the outside to initiate the election of the master router. Step S508: If the winning is selected, the optimal Backup router will select the winning in the Master. If it wins, proceed to step S510; otherwise, go to step S502. Step S510: Switch to the Master state, and the selected router will send the virtual
IP和虚拟 MAC的免费 ARP 4艮文, 更新交互机的 MAC表和主机的 ARP表。 然后, 路由器结束 Backup流程, 进入如图 7所示的 Master路由器的状态处理 流程。 步骤 S512: 如果收到 Alternate路由器选举报文, 继续步骤 S514, 否则转 至步 4聚 S502。 步骤 S514: 对于收到的 Alternate路由器选举请求报文, 回复应答报文, 其中, 该应答 4艮文中携带有自己当前的优先级和主 IP地址等信息。 步骤 S516-S518: 主用路由器根据 Alternate选举请求报文和 Backup路由 器回应的 Alternate应答报文选举出最优的备用路由器作为 Alternate路由器后, 备用路由器判断 Alternate选举是否获胜, 如果在 Alternate选举中获胜, 则继 续步骤 S520, 否则转至步骤 S502。 步骤 S520: 从备用路由器晋升为 Alternate 路由器, 从备用状态转换到 Alternate状态, 结束 Backup路由器的处理流程, 进入如图 6所示的 Alternate 路由器的状态处理流程。 如图 6所示, 对于 Alternate路由器, 其状态变化流程包括以下步骤 S602- 步骤 S616。 步骤 S602: 通过和 Master路由器之间交互 Session Type Negotiate 4艮文和 Session Parameters Negotiate 4艮文,协商快速检测会话的类型和建立会话所需的 参数。 步骤 S604: 如果针对会话类型和参数, 与 Master达成一致(即协商成功), 则继续步 4聚 S606, 否则转至步 4聚 S616。 步骤 S606: 根据协商好的会话类型和建立会话所需的参数, Alternate路由 器和 Master路由器之间建立故障快速检测会话 (即快速检测会话)。 步骤 S608: Alternate路由器通过快速检测会话来检测 Master路由器的状 态, 如果通过快速检测会话收到快速保活报文, 则重置快速保活定时器。 步骤 S610: 如果快速保活定时器超时, 即在连续的几个快速检测周期内未 收到快速保活报文, Alternate路由器就认为 Master路由器已经失效, 如果失效 则继续步 4聚 S612, 否则转至步 4聚 S614。 步骤 S612: Alternate 路由器发现 Master 路由器失效后, 会立即迁移到 Master状态, 并接替 Master的 4艮文转发工作, 结束 Alternate路由器的状态处 理流程, 进入如图 7所示的 Master路由器的状态的处理流程。 步骤 S614: 在 Alternate路由器与 Master路由器建立快速检测会话后, Alternate路由器依然会检测保活报文和 Alternate路由器选举 /应答报文。 如果 在抢占模式下发现这些报文发送者的更优(即优先级更高, 或优先级相同但其 主 IP地址更大), 就表明网络中存在比 Master更优的路由器, 继续步骤 S616, 否则转至步 4聚 S608。 步 4聚 S616 : 拆除与 Master 路由器之间的快速检测会话, 放弃自己的 Alternate身份, 回退到 Backup状态, 进入如图 5所示的 Backup路由器的状态 处理流程。 如图 7所示, Master路由器的状态变化流程包括以下步骤 S702-S722。 步骤 S702: 查看自己是否与 Alternate路由器之间存在故障快速检测会话。 步骤 S704: 如果与 Alternate路由器之间存在快速检测会话, 则说明网络 中已经存在 Alternate路由器, 转至步骤 S716, 否则继续步骤 S706。 步骤 S706 : 通过对外发送 Alternate Request 4艮文, Master 路由器发起 Alternate路由器选举。 收到该 4艮文后, Backup路由器会回应 Alternate Reply 4艮 文。利用上述两种报文携带的信息,最优的路由器将被选举为 Alternate路由器。 步骤 S708: 如果存在某个 Backup路由器被选举为 Alternate路由器, 将继 续步 4聚 S710, 否则转至步 4聚 S716。 步骤 S710: 与 Alternate路由器协商建立故障快速检测会话的会话类型和 所需参数。 十办商中, 用到 Session Type Negotiate和 Session Parameters Negotiate 两种 4艮文。 步骤 S712: ,如果 Master和 Alternate就快速检测会话的类型和参数达成一 致 (即协商成功), 继续步骤 S714, 否则转至步骤 S716。 步骤 S714: 按照协商好的会话类型和参数, 与 Alternate路由器建立故障 快速检测会话。 步骤 S716: 发送 VRRP保活报文和检测会话保活报文, 侦听其他路由器 发送的保活 4艮文、 Alternate Reply等 4艮文。 通过将自己的优先级和主 IP地址与 这些 4艮文中携带的优先级和主 IP地址相比 (即 4艮文发送者的优先级和主 IP地 址), 可以查看网络中是否存在更优的路由器。 步骤 S718: 如果是抢占模式且发现网络上存在更优的路由器, 继续步骤 S720, 否则转至步 4聚 S716。 步骤 S720: 拆除与 Alternate路由器之间建立的故障快速检测会话。 步骤 S722: 回退到 Backup状态, 放弃 Master身份, 退回 Backup状态, 进入如图 5所示的 Backup路由器的状态处理流程。 图 8是根据本发明实施例的 VRRP备份组中的路由器, 该路由器(也可以 称为 EVRRP路由器) 包括: 检测模块 10 , 设置为在该路由器为 Alternate路由 器的情况下 (即处于 Alternate状态), 通过与主用路由器之间建立的快速检测 会话来检测主用路由器是否失效, 其中, Alternate路由器是从所有备用路由器 中选举的; 切换模块 20 , 设置为在该路由器为 Alternate路由器的情况下 (即 处于 Alternate状态), 在检测模块 10检测到主用路由器失效后, 从 Alternate 状态转换到主用状态并切换为主用路由器。 在实际实施时, 为了实现 Alternate 路由器的选举和建立主用路由器与 Alternate路由器之间的快速检测会话, 该路由器还可以包括: 收发模块 30 , 设 置为在该路由器为主用路由器的情况下 (即处于 Master状态), 发起 Alternate 路由器选举, 选举最优的备用路由器作为 Alternate路由器; 建立模块 40 , 设 置为在收发模块 30选举出了 Alternate路由器之后, 建立与 Alternate路由器之 间的快速检测会话以使得 Alternate 路由器能够通过该快速检测会话检测自己 的状态是否失效; 则切换模块 20还设置为在该路由器为主用路由器的情况下, 在检测模块 10检测到该路由器失效后, 使能该路由器从主用状态转换到备用 状态并切换为备用路由器。 其中, 收发模块 30还设置为在该路由器为主用路由器的情况下, 周期性 地发送保活报文,并通过向所有备用路由器发送 Alternate路由器选举请求 4艮文 来发起 Alternate路由器选举; 还用于在该路由器为备用路由器(即处于备用状 态)的情况下, 向主用路由器返回接收到的 Alternate路由器选举请求报文的应 答报文, 其中, 该应答报文中携带有自己的优先级和 /或主 IP地址以使得主用 路由器选举出具有最高优先级的备用路由器作为 Alternate 路由器或者在优先 级相同的情况下, 选举出主 IP地址最大的备用路由器作为 Alternate路由器; 其中, 该具有最高优先级或者主 IP 地址最大的备用路由器从备用状态转换到 Alternate 态并切换为 Alternate路由器。 为了使得 Master路由器和 Alternate路由器之间能够自动建立快速检测会 话,该路由器还可以包括: 协商模块 50,设置为在建立模块 40建立与 Alternate 路由器之间的快速检测会话之前, 分别通过快速检测会话类型协商报文和快速 检测会话参数协商报文与 Alternate 路由器协商上述快速检测会话的类型和参 数; 其中, 建立模块 40在协商模块 50协商成功后, 设置为按照协商好的类型 和参数建立与 Alternate路由器之间的快速检测会话。 其中, 若建立模块 40建立快速检测会话失败或协商模块 50协商快速检测 会话的类型和参数失败, 则切换模块 20还设置为在该路由器为 Alternate路由 器的情况下, 从 Alternate状态转换到备用状态并重新切换为备用路由器。 该路由器中的收发模块 30还设置为在该路由器为备用路由器的情况下, 侦听主用路由器发送的保活报文, 若在一定时间内未收到来自主用路由器的保 活报文,则发起主用路由器选举,选举出最优的备用路由器作为新主用路由器, 并进入发起 Alternate路由器选举, 选举最优的备用路由器作为 Alternate路由 器的步骤。 其中, 最优是指具有最高的优先级或者在优先级相同的情况下, 主 IP地址 最大。 其中, 上述的快速检测会话可以为 BFD会话、 SDH会话、 或心跳会话等 快速故障检测会话。 如图 9所示, 在实际实施过程中, 收发模块 30和切换模块 20可以由报文 收发模块 901、 VRRP 4艮文收发模块 902和 VRRP状态管理模块 903来实现, 协商模块 50可以由快速检测会话管理模块 904来实现, 检测模块 10和建立模 块 40可以由故障快速检测模块 905来实现。 各个功能模块的具体功能如下: 报文收发模块 901 , 设置为负责数据报文、 协议报文以及故障检测报文的 接收和发送。 对于接收的报文, 该模块会实现报文的转发或根据报文类型将报 文分发给 VRRP 4艮文收发模块 902或故障快速检测模块 905。 对于来自 VRRP 报文收发模块 902和故障快速检测模块 905模块的报文, 该模块进行适当封装 后, 从相应出端口发送出去。 另外, 该模块报文的接收和发送还受 VRRP状态 管理模块 903控制信息的影响; Free ARP 4 for IP and virtual MAC, update the MAC table of the interactive machine and the ARP table of the host. Then, the router ends the Backup process and enters the state processing flow of the Master router as shown in FIG. 7. Step S512: If the Alternate router election message is received, proceed to step S514, otherwise, go to step 4 to gather S502. Step S514: For the received Alternate router election request message, replying to the response message, wherein the response message carries information such as its current priority and primary IP address. Step S516-S518: After the primary router elects the optimal standby router as the alternate router according to the alternate notification request message and the alternate response message of the backup router, the standby router determines whether the alternate election wins. If the election is won in the Alternate election, Then, proceed to step S520, otherwise, go to step S502. Step S520: Promote from the standby router to the alternate router, switch from the standby state to the alternate state, end the processing flow of the backup router, and enter the state processing flow of the alternate router as shown in FIG. 6. As shown in FIG. 6, for the alternate router, the state change process includes the following steps S602-S616. Step S602: Negotiating the type of the session and the parameters required for establishing the session by interacting with the Master Router by using a Session Type Negotiate message and a Session Parameters Negotiate message. Step S604: If the agreement is reached with the master for the session type and the parameter (that is, the negotiation is successful), the process continues to step S606, otherwise, the process proceeds to step 4 to S616. Step S606: A fault fast detection session (ie, a fast detection session) is established between the Alternate router and the master router according to the negotiated session type and parameters required for establishing the session. Step S608: The Alternate router detects the status of the master router by quickly detecting the session. If the fast keep-alive message is received through the fast detection session, the fast keep-alive timer is reset. Step S610: If the fast keep-alive timer expires, that is, the fast keep-alive packet is not received within consecutive fast detection periods, the Alternate router considers that the master router has expired, and if it fails, continues to step 4 to gather S612, otherwise, Up to step 4 gathers S614. Step S612: After the master router finds that the master router is invalid, it will immediately migrate to the master state, and take over the master's 4 艮 text forwarding work, end the status processing process of the alternate router, and enter the process flow of the master router as shown in FIG. 7 . . Step S614: After the Alternate router establishes a fast detection session with the master router, the Alternate router still detects the keep-alive message and the alternate router election/response message. If the sender of the packet is found to be better in the preemptive mode (that is, the priority is higher, or the priority is the same but the primary IP address is larger), it indicates that there is a router superior to the master in the network, and the process proceeds to step S616. Otherwise, go to step 4 to gather S608. Step 4: S616: Remove the fast detection session with the master router, abandon its own identity, and roll back to the backup state, and enter the state processing flow of the backup router as shown in Figure 5. As shown in FIG. 7, the state change process of the master router includes the following steps S702-S722. Step S702: Check whether there is a fault fast detection session between the router and the alternate router. Step S704: If there is a fast detection session with the alternate router, the Alternate router already exists in the network, and the process goes to step S716, otherwise the process continues to step S706. Step S706: The Master router initiates an alternate router election by sending an Alternate Request message. After receiving the 4 essays, the Backup Router will respond to the Alternate Reply 4 message. Using the information carried in the above two types of packets, the optimal router will be elected as an alternate router. Step S708: If a backup router is elected as an alternate router, step 4 is continued to S710, otherwise, the process proceeds to step 4 to S716. Step S710: Negotiate with the Alternate router to establish a session type and a required parameter of the fault fast detection session. In the ten business operators, Session Type Negotiate and Session Parameters Negotiate are used. Step S712: If the Master and the Alternate agree on the type and parameters of the fast detection session (ie, the negotiation is successful), proceed to step S714, otherwise, go to step S716. Step S714: Establish a fault fast detection session with the alternate router according to the negotiated session type and parameters. Step S716: Sending a VRRP keep-alive message and detecting a session keep-alive message, and listening to the message of the keep-alive message, the alternate reply, and the like sent by other routers. By comparing the priority and the primary IP address with the priority and primary IP address carried in these 4 messages (ie, the priority of the sender and the primary IP address of the message), it is possible to check whether there is a better network. router. Step S718: If it is the preemption mode and finds that there is a better router on the network, proceed to step S720, otherwise, go to step 4 to S716. Step S720: Removing the fault fast detection session established between the router and the alternate router. Step S722: Roll back to the Backup state, abandon the Master identity, and return to the Backup state, and enter the state processing flow of the Backup router as shown in FIG. 5. 8 is a router in a VRRP backup group according to an embodiment of the present invention. The router (also referred to as an EVRRP router) includes: a detecting module 10, configured to be in a case where the router is an alternate router (ie, in an Alternate state), Detecting whether the primary router is invalid through a fast detection session established with the primary router, wherein the alternate router is elected from all the standby routers; and the switching module 20 is configured to be in the case that the router is an alternate router (ie, In the Alternate state, after the detection module 10 detects that the primary router has failed, it transitions from the Alternate state to the active state and switches to the primary router. In actual implementation, in order to implement the election of the alternate router and establish a fast detection session between the primary router and the alternate router, the router may further include: a transceiver module 30, configured to be in the case that the router is the primary router (ie, In the master state, the election of the alternate router is initiated, and the optimal standby router is elected as the alternate router. The establishing module 40 is configured to establish a fast detection session with the alternate router after the transceiver module 30 elects the alternate router to make the alternate. The router can detect whether the status of the router is invalid through the fast detection session. The switching module 20 is further configured to enable the router to be used from the primary device after the detection module 10 detects that the router is invalid. The state transitions to the standby state and switches to the standby router. The transceiver module 30 is further configured to periodically send a keep-alive message when the router is the primary router, and initiate an alternate router election by sending an alternate router election request to all the backup routers; When the router is a standby router (that is, in a standby state), the response packet of the received alternate router election request message is returned to the primary router, where the response packet carries its own priority and / or the primary IP address is such that the primary router elects the backup router with the highest priority as the alternate router or if the priority is the same, the standby router with the largest primary IP address is elected as the alternate router; wherein, the highest priority The standby router with the highest level or primary IP address transitions from the standby state to the alternate state and switches to the alternate router. In order to enable a fast detection session between the master router and the alternate router, the router may further include: a negotiation module 50 configured to quickly detect the session type before the establishment module 40 establishes a fast detection session with the alternate router. The negotiation packet and the fast detection session parameter negotiation packet negotiate with the alternate router for the types and parameters of the fast detection session. The establishment module 40 is configured to establish an Alternate router according to the negotiated type and parameters after the negotiation module 50 negotiates successfully. A quick detection session between. If the establishment module 40 fails to establish a fast detection session or the negotiation module 50 fails to negotiate the type and parameter of the fast detection session, the switching module 20 is further configured to switch from the alternate state to the standby state when the router is an alternate router. Switch back to the standby router. The transceiver module 30 in the router is further configured to listen to the keep-alive message sent by the active router if the router is the backup router, and if the keep-alive message from the active router is not received within a certain period of time, Initiating the election of the primary router, electing the optimal standby router as the new primary router, and entering the step of initiating the election of the alternate router and electing the optimal standby router as the alternate router. Among them, the optimal means that the highest priority is given or the primary IP address is the largest when the priorities are the same. The fast detection session may be a fast fault detection session such as a BFD session, an SDH session, or a heartbeat session. As shown in FIG. 9, in the actual implementation process, the transceiver module 30 and the switching module 20 can be implemented by the packet transceiver module 901, the VRRP protocol module 902, and the VRRP state management module 903. The negotiation module 50 can be quickly detected. The session management module 904 is implemented, and the detection module 10 and the establishment module 40 can be implemented by the fault fast detection module 905. The specific functions of each function module are as follows: The packet sending and receiving module 901 is configured to receive and send data packets, protocol packets, and fault detection packets. For the received packet, the module forwards the packet or distributes the packet to the VRRP packet transmission module 902 or the fault fast detection module 905 according to the packet type. For the packets from the VRRP packet sending and receiving module 902 and the fault fast detecting module 905, the module is properly encapsulated and sent out from the corresponding outgoing port. In addition, the receiving and sending of the module message is also affected by the control information of the VRRP state management module 903;
VRRP报文收发模块 902, 设置为完成 VRRP标准协议报文以及本发明中 的扩展协议 (或称为 EVRRP协议)报文接收和发送。 与该模块相关的协议报 文包括: VRRP保活 4艮文、 EVRRP协议的 Alternate Request/Reply 4艮文和 Session Type/Parameters Negotiate 4艮文。通过对来自 4艮文收发模块 901的协议 4艮文进行 分析, 分别控制协议状态机和故障快速检测会话。 该模块还根据路由器的状态 构建协议报文, 并下发给报文收发模块 901完成协议报文发送; The VRRP packet sending and receiving module 902 is configured to complete the receiving and sending of the VRRP standard protocol packet and the extended protocol (or EVRRP protocol) packet in the present invention. The protocol messages related to the module include: VRRP keep-alive 4, EVRRP Alternate Request/Reply 4 and Session Type/Parameters Negotiate 4. By analyzing the protocol from the 4 收发 transceiver module 901, the protocol state machine and the fault fast detection session are respectively controlled. The module also constructs a protocol packet according to the state of the router, and sends the protocol packet to the packet transceiver module 901 to complete the protocol packet transmission.
VRRP状态管理模块 903 , 设置为负责 VRRP路由器的状态管理, 比如从 Backup路由器中选举 Alternate路由器、 Alternate路由器升级为 Master等。 影 响 VRRP状态管理的因素主要包括 VRRP报文的收发(来自 VRRP报文收发模 块 902 )和快速检测会话管理信息(来自快速检测会话管理模块 904 )。 反过来, 路由器的状态信息又会影响 VRRP报文、数据报文和检测报文的收发以及快速 检测会话的管理; 快速检测会话管理模块 904, 设置为完成快速检测会话类型和会话参数的 协商, 并通知故障快速检测模块 905建立或拆除快速检测会话。 会话状态会影 响 VRRP路由器的状态跃迁; 故障快速检测模块 905, 设置为快速检测会话的建立、 维护与拆除, 并检 测对端设备的状态。 如果发现设备故障, 将通知快速检测会话管理模块 904, 进而影响 VRRP路由器的状态。 从以上的描述中, 可以看出, 本发明实现了如下技术效果: The VRRP state management module 903 is configured to be responsible for the state management of the VRRP router, such as electing an Alternate router from the Backup router and upgrading the Alternate router to the Master. The factors affecting VRRP state management include VRRP packet transmission and reception (from VRRP packet transmission and reception module 902) and fast detection of session management information (from fast detection session management module 904). Conversely, the status information of the router affects the sending and receiving of VRRP packets, data packets, and detection packets, and the management of the fast detection session. The fast detection session management module 904 is configured to complete the negotiation of the fast detection session type and session parameters. And the fault fast detection module 905 is notified to establish or tear down the fast detection session. The session state affects the state transition of the VRRP router. The fault fast detection module 905 is set to quickly detect the establishment, maintenance, and teardown of the session, and check the status of the peer device. If a device failure is found, the fast detection session management module 904 is notified, which in turn affects the state of the VRRP router. From the above description, it can be seen that the present invention achieves the following technical effects:
Master路由器会在 Backup路由器中选择一台最优的路由器作为 Alternate 路由器, 并利用协商的方式在两者之间建立一条故障快速检测会话。 通过该会 话, Alternate路由器可以实时地检测 Master路由器的状态, 一旦 Master路由 器失效, Alternate路由器会立即接替 Master路由器的工作, 满足实时业务的需 要。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可以 用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布在多 个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程序代码 来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并且在某些 情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者将它们分别 制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作成单个集成电 路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本领 域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和原则 之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护范围之 内。 The master router selects an optimal router as the alternate router in the backup router, and establishes a fault fast detection session between the two by negotiation. Through this session, the Alternate router can detect the status of the master router in real time. Once the master router fails, the Alternate router will immediately take over the work of the master router to meet the needs of real-time services. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 一种切换方法, 包括: Claims A method of switching, including:
预备 Alternate路由器通过与主用路由器之间建立的快速检测会话来 检测所述主用路由器是否失效, 其中, 所述 Alternate路由器是从备用路 由器中选举的;  The standby Alternate router detects whether the primary router is invalid through a fast detection session established between the primary router and the primary router, wherein the alternate router is elected from the standby router;
在检测到所述主用路由器失效后, 所述 Alternate路由器从 Alternate 状态转换到主用状态并切换为新主用路由器。 根据权利要求 1所述的方法, 其中, 在 Alternate路由器通过与主用路由 器之间建立的快速检测会话来检测所述主用路由器是否失效之前, 还包 括:  After detecting that the primary router fails, the Alternate router transitions from the Alternate state to the active state and switches to the new primary router. The method according to claim 1, wherein before the Alternate router detects whether the primary router is invalid through a fast detection session established between the primary router and the primary router, the method further includes:
所述主用路由器发起 Alternate路由器选举, 选举最优的备用路由器 作为 Alternate路由器;  The primary router initiates an election of an alternate router, and elects an optimal standby router as an alternate router;
所述主用路由器建立与所述 Alternate路由器之间的所述快速检测会 话。 根据权利要求 2所述的方法, 其中, 所述主用路由器发起 Alternate路由 器选举, 选举最优的备用路由器作为 Alternate路由器包括:  The primary router establishes the fast detection session with the alternate router. The method according to claim 2, wherein the primary router initiates an election of an alternate router, and the election of the optimal standby router as an alternate router includes:
所述主用路由器周期性地发送保活报文, 并通过向所述备用路由器 发送 Alternate路由器选举请求 4艮文来发起所述 Alternate路由器选举; 所述备用路由器向所述主用路由器返回所述 Alternate路由器选举请 求报文的应答报文, 其中, 所述应答报文中携带有所述备用路由器的优 先级和 /或主 IP地址;  The primary router periodically sends a keep-alive message, and initiates the alternate router election by sending an alternate router election request message to the backup router; the standby router returns the same to the primary router. The response message of the Alternate router election request message, where the response message carries the priority and/or the primary IP address of the standby router;
所述主用路由器选举具有最高优先级的备用路由器作为 Alternate路 由器, 或者, 在优先级相同的情况下, 所述主用路由器选举主 IP地址最 大的备用路由器作为 Alternate路由器;  The primary router elects the backup router with the highest priority as the Alternate router, or, in the case of the same priority, the primary router elects the backup router with the largest primary IP address as the alternate router;
所述具有最高优先级或者主 IP 地址最大的备用路由器从备用状态 转换到 Alternate状态并切换为 Alternate路由器。 The standby router with the highest priority or the largest primary IP address transitions from the standby state to the alternate state and switches to the alternate router.
4. 根据权利要求 2所述的方法, 其中, 4. The method according to claim 2, wherein
在所述主用路由器建立与所述 Alternate路由器之间的所述快速检测 会话之前, 还包括: 所述主用路由器分别通过快速检测会话类型协商 4艮 文和快速检测会话参数协商报文, 与所述 Alternate路由器协商所述快速 检测会话的类型和参数;  Before the primary router establishes the fast detection session with the alternate router, the method further includes: the primary router separately negotiates the session type negotiation and quickly detects the session parameter negotiation packet, and the The Alternate router negotiates the type and parameters of the fast detection session;
所述主用路由器建立与所述 Alternate路由器之间的所述快速检测会 话包括: 协商成功后, 所述主用路由器按照协商好的所述类型和参数建 立与所述 Alternate路由器之间的所述快速检测会话。  The fast detecting session between the primary router and the alternate router includes: after the negotiation succeeds, the primary router establishes the relationship with the alternate router according to the negotiated type and parameter. Quickly detect sessions.
5. 根据权利要求 4所述的方法, 其中, 还包括: 5. The method according to claim 4, further comprising:
若建立失败或协商失败,则所述 Alternate路由器从 Alternate状态转 换到备用状态并重新切换为备用路由器;  If the establishment fails or the negotiation fails, the Alternate router switches from the Alternate state to the standby state and switches back to the standby router.
所述备用路由器侦听所述主用路由器发送的保活报文; 若在一定时间内未收到来自所述主用路由器的保活报文, 则所述备 用路由器发起主用路由器选举, 选举最优的备用路由器作为新主用路由 器, 并进入所述主用路由器发起 Alternate路由器选举, 选举最优的备用 路由器作为 Alternate路由器的步骤。  The standby router listens to the keep-alive message sent by the primary router; if the keep-alive message from the primary router is not received within a certain period of time, the standby router initiates election of the primary router, and the election The optimal standby router acts as the new primary router, and enters the primary router to initiate an alternate router election, and elects the optimal standby router as an Alternate router.
6. 根据权利要求 1所述的方法, 其中, 在所述 Alternate路由器从 Alternate 状态转换到主用状态并切换为新主用路由器之后, 所述新主用路由器进 入所述主用路由器发起 Alternate路由器选举, 选举最优的备用路由器作 为 Alternate路由器的步骤。 6. The method according to claim 1, wherein after the Alternate router transitions from the Alternate state to the active state and switches to the new primary router, the new primary router enters the primary router to initiate an alternate router. Election, the step of electing the optimal backup router as an alternate router.
7. 根据权利要求 1至 6中任一项所述的方法, 其中, 所述快速检测会话包 括但不限于: 双向转发检测 BFD会话、 同步数字体系 SDH会话、 心跳 会话。 The method according to any one of claims 1 to 6, wherein the fast detection session includes but is not limited to: a bidirectional forwarding detection BFD session, a synchronous digital system SDH session, a heartbeat session.
8. —种路由器, 包括: 8. A type of router, including:
检测模块, 设置为在所述路由器为预备 Alternate路由器的情况下, 通过与主用路由器之间建立的快速检测会话来检测所述主用路由器是否 失效, 其中, 所述 Alternate路由器是从备用路由器中选举的;  a detecting module, configured to detect, by using a fast detection session established between the router and the primary router, whether the primary router is invalid, wherein the alternate router is from the standby router. Elected
切换模块, 设置为在所述路由器为 Alternate路由器的情况下, 在所 述检测模块检测到所述主用路由器失效后, 从 Alternate状态转换到主用 状态并切换为主用路由器。 The switching module is configured to switch from the alternate state to the active state and switch to the primary router after the detecting module detects that the primary router fails after the router is an alternate router.
9. 根据权利要求 8所述的路由器, 其中, 还包括: 9. The router according to claim 8, further comprising:
收发模块, 设置为在所述路由器为主用路由器的情况下, 发起 Alternate路由器选举, 选举具有最高优先级的备用路由器作为 Alternate 路由器或在优先级相同时, 选举主 IP 地址最大的备用路由器作为 Alternate路由器;  The transceiver module is configured to initiate an alternate router election when the router is the primary router, and elect the standby router with the highest priority as the alternate router or elect the standby router with the largest primary IP address as the alternate when the priorities are the same. Router
建立模块, 设置为在所述收发模块选举出 Alternate路由器之后, 建 立与所述 Alternate路由器之间的快速检测会话以使得所述 Alternate路由 器通过所述快速检测会话来检测所述路由器是否失效; 其中, 切换模块还设置为在所述路由器为主用路由器的情况下, 在 所述检测模块检测到所述路由器失效后, 从主用状态转换到备用状态并 切换为备用路由器。  Establishing a module, configured to: after the transceiver module elects an alternate router, establish a fast detection session with the alternate router to enable the alternate router to detect whether the router is invalid through the fast detection session; The switching module is further configured to switch from the active state to the standby state and switch to the standby router after the detecting module detects that the router fails after the router is the primary router.
10. 根据权利要求 9所述的路由器, 其中, 还包括: 协商模块, 设置为在所 述建立模块建立与所述 Alternate路由器之间的所述快速检测会话之前, 分别通过快速检测会话类型协商报文和快速检测会话参数协商报文, 与 所述 Alternate路由器协商所述快速检测会话的类型和参数; The router according to claim 9, further comprising: a negotiation module, configured to quickly detect a session type negotiation report before the establishing module establishes the fast detection session with the alternate router And quickly detecting a session parameter negotiation message, and negotiating, with the Alternate router, the type and parameter of the fast detection session;
其中, 所述建立模块在所述协商模块协商成功后, 设置为按照协商 好的所述类型和参数建立与所述 Alternate路由器之间的所述快速检测会 话。  After the negotiation of the negotiation module is successful, the establishing module is configured to establish the fast detection session with the alternate router according to the negotiated type and parameter.
PCT/CN2011/076077 2010-10-15 2011-06-21 Switching method and router WO2012048585A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105100648A CN102447615A (en) 2010-10-15 2010-10-15 Switching method and router
CN201010510064.8 2010-10-15

Publications (1)

Publication Number Publication Date
WO2012048585A1 true WO2012048585A1 (en) 2012-04-19

Family

ID=45937871

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076077 WO2012048585A1 (en) 2010-10-15 2011-06-21 Switching method and router

Country Status (2)

Country Link
CN (1) CN102447615A (en)
WO (1) WO2012048585A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11343137B2 (en) 2019-08-23 2022-05-24 Cisco Technology, Inc. Dynamic selection of active router based on network conditions
CN115023927A (en) * 2019-12-20 2022-09-06 路创技术有限责任公司 Handling loss or removal of devices in a mesh network

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312605B (en) 2013-05-29 2017-06-20 华为技术有限公司 A kind of gateway device identity setting method and management gateway equipment
CN104113476A (en) * 2014-07-22 2014-10-22 深圳市邦彦信息技术有限公司 Communication line switching method and system
CN106302152A (en) * 2015-05-21 2017-01-04 中兴通讯股份有限公司 A kind of control method generating route and routing device
CN106341245B (en) * 2015-07-06 2020-02-18 中兴通讯股份有限公司 State information synchronization method and device of static tunnel
CN107395531A (en) * 2016-05-16 2017-11-24 中兴通讯股份有限公司 A kind of address distribution method and device and interchanger
CN106411574B (en) * 2016-09-05 2020-01-03 新华三信息技术有限公司 Management control method and device
CN110233746B (en) * 2019-06-19 2021-05-14 烽火通信科技股份有限公司 Home networking method and home networking AP

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070230472A1 (en) * 2006-02-02 2007-10-04 Nortel Networks Limited Method and apparatus for learning VRRP backup routers
CN101667927A (en) * 2009-09-16 2010-03-10 杭州华三通信技术有限公司 Method and device for rapidly restoring service
CN101729426A (en) * 2009-12-29 2010-06-09 中兴通讯股份有限公司 Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1949767A (en) * 2005-10-11 2007-04-18 华为技术有限公司 Method for switching master-slave back-up route apparatus based on virtual router redundant protocol
CN100563251C (en) * 2006-02-28 2009-11-25 华为技术有限公司 A kind of method for establishing two-way transmitted inspecting session

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070230472A1 (en) * 2006-02-02 2007-10-04 Nortel Networks Limited Method and apparatus for learning VRRP backup routers
CN101667927A (en) * 2009-09-16 2010-03-10 杭州华三通信技术有限公司 Method and device for rapidly restoring service
CN101729426A (en) * 2009-12-29 2010-06-09 中兴通讯股份有限公司 Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11343137B2 (en) 2019-08-23 2022-05-24 Cisco Technology, Inc. Dynamic selection of active router based on network conditions
CN115023927A (en) * 2019-12-20 2022-09-06 路创技术有限责任公司 Handling loss or removal of devices in a mesh network

Also Published As

Publication number Publication date
CN102447615A (en) 2012-05-09

Similar Documents

Publication Publication Date Title
WO2012048585A1 (en) Switching method and router
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
EP2720418B1 (en) Lacp link switching and data transmission method and device
US7433317B2 (en) Network connection apparatus and network connection switching method
JP4711411B2 (en) Failover of SoftRouter protocol
US8498299B2 (en) Flooding-based routing protocol having average-rate and burst-rate control
US8509059B2 (en) Method for operating a virtual router redundancy protocol router and communication system therefor
US9705782B2 (en) Method and system for efficient graceful restart in an open shortest path first (OSPF) network
JP2006135970A (en) SoftRouter DYNAMIC BINDING PROTOCOL
US10164824B2 (en) Indicating a master network controller in a virtual router redundancy protocol
WO2012000234A1 (en) Method, apparatus and system for fast switching between links
WO2009023996A1 (en) Method for implementing network interconnect via link aggregation
CN104541482A (en) System and method using RSVP HELLO suppression for graceful restart capable neighbors
WO2007062573A1 (en) A method for managing virtual router redundancy protocol backup group
CN1893338A (en) Communication path redundancy protection systems and methods
CN102638389A (en) Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network
WO2009009977A1 (en) Master backup switch method for route device and backup system for route device
WO2014059844A1 (en) Method and device for dynamically switching gateway of distributed resilient network interconnect
WO2004082222A1 (en) Communication method having the function of partaking the network load
US9215078B2 (en) Multicast method and multicast device
WO2014090083A1 (en) Service bearing method and apparatus during distributed resilient network interconnect
WO2012058915A1 (en) Method, system and node equipment for path computation
WO2014075216A1 (en) Method and network device for establishing virtual cluster
EP2571211A2 (en) OSPF NSR with delayed neighbor synchronization
KR101075462B1 (en) Method to elect master nodes from nodes of a subnet

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: 11831982

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: 11831982

Country of ref document: EP

Kind code of ref document: A1