WO2015184730A1 - Primary and alternate routing equipment, and backup, switching method and routing system therebetween - Google Patents

Primary and alternate routing equipment, and backup, switching method and routing system therebetween Download PDF

Info

Publication number
WO2015184730A1
WO2015184730A1 PCT/CN2014/090077 CN2014090077W WO2015184730A1 WO 2015184730 A1 WO2015184730 A1 WO 2015184730A1 CN 2014090077 W CN2014090077 W CN 2014090077W WO 2015184730 A1 WO2015184730 A1 WO 2015184730A1
Authority
WO
WIPO (PCT)
Prior art keywords
routing device
primary
address resolution
resolution protocol
routing
Prior art date
Application number
PCT/CN2014/090077
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 WO2015184730A1 publication Critical patent/WO2015184730A1/en

Links

Images

Definitions

  • the present invention relates to the field of communications, and in particular, to a backup, handover method, and routing system between a primary and backup routing device and a device.
  • VRRP Virtual Router Redundancy Protocol
  • a backup group consists of a master routing device (primary routing device) and multiple backup routing devices (alternate routing devices), which is equivalent to a virtual routing device.
  • the forwarding task is performed by the master routing device.
  • the routing device works normally, the upstream and downstream traffic of the user is forwarded by the master routing device. If the link fault occurs on the primary routing device, the backup device detects that the primary device is faulty. State switching, the upstream traffic is directed to the new primary routing device (that is, the alternate routing device); the downstream traffic is routed to the new primary routing device through the route convergence, but when forwarding to the user, there is no user ARP.
  • the (Address Resolution Protocol) entry needs to initiate ARP learning, resulting in loss of traffic.
  • a method for protecting an access ring is disclosed in the Chinese Patent Application No. 101800774A, which is an access ring protection method and an access ring protection network.
  • the method includes: the aggregation ring forwards only Layer 3 packets and the access ring only forwards A Layer 2 packet, and each of the access nodes of the access ring configures the dual gateways that are uplinked to the core node by using the two aggregation nodes as the primary and secondary gateways respectively.
  • the access node accesses the L3VPN through the active and standby PWs of the L2VPN.
  • the access point (aggregation node) of each L2/L3 needs to learn thousands of ARP entries.
  • the method also has the following problem: When the primary node fails, if there is no corresponding ARP entry on the standby node, the data flow is used to re-trigger the learning of the ARP entry.
  • a large number of ARP entries can cause the CPU to increase overhead in a short period of time, and may even cause the control plane to be interrupted for a short period of time, failing to meet the 50 ms switching requirement.
  • the backup routing device needs to learn the ARP entry, which causes an increase in the switching time.
  • the main technical problem to be solved by the present invention is to provide a backup and handover method and a routing system between the primary and secondary routing devices and the devices.
  • the secondary routing device needs to learn the user.
  • the ARP entry causes a problem of increased switching time.
  • the embodiment of the present invention provides a backup method between the primary and backup routing devices, including: before the primary and secondary routing device switches, the primary routing device searches the address resolution protocol table of the learned user according to a preset rule. The item is sent to the alternate routing device; the alternate routing device receives and learns the address resolution protocol entry.
  • the preset rule is: the primary routing device periodically sends the learned address resolution protocol entry of the user to the standby routing device; or the primary routing device is learned by the user. When the number of address resolution protocol entries reaches the preset value, it is sent to the alternate routing device.
  • the method before the primary routing device sends the learned address resolution protocol entry to the backup routing device according to the preset rule, the method further includes: configuring between the primary routing device and the standby routing device. Cross-rack backup group.
  • the method includes the foregoing steps in the backup method between the primary and backup routing devices, and further includes: when the primary standby routing device switches, the standby routing device performs downlink traffic of the user according to the address resolution protocol entry. Forward.
  • the embodiment of the present invention further provides a backup method between the primary and secondary routing devices, including: before the primary and secondary routing device switches, the primary routing device sends the learned address resolution protocol entry to the standby according to the preset rule. Routing device for learning by the alternate routing device.
  • the embodiment of the present invention further provides a backup method between the primary and secondary routing devices, including: before the primary and secondary routing device switches, the standby routing device receives the address resolution protocol entry of the user sent by the primary routing device; Address resolution protocol entry.
  • the embodiment of the present invention further provides a method for switching between primary and secondary routing devices, including the steps in the backup method between the primary and secondary routing devices, and the following: the standby routing device performs downlink traffic of the user according to the address resolution protocol entry. Forwarding.
  • the embodiment of the present invention further provides a routing system, including: an active routing device and at least one standby routing device, where the primary routing device is configured to learn the primary routing device according to a preset rule before the primary standby routing device switches.
  • the address resolution protocol entry of the user is sent to the alternate routing device; the alternate routing device is configured to receive and learn the address resolution protocol entry.
  • the primary routing device is configured to periodically send the address resolution protocol entry of the user that it learns to the backup routing device; or the address resolution protocol entry of the user that it learns. When the number reaches the preset value, it is sent to the alternate routing device.
  • the routing system further includes a processor, configured to configure the primary use before the primary routing device sends the address resolution protocol entry of the learned user to the backup routing device according to a preset rule.
  • a processor configured to configure the primary use before the primary routing device sends the address resolution protocol entry of the learned user to the backup routing device according to a preset rule.
  • the backup routing device is further configured to forward the downlink traffic of the user according to the address resolution protocol entry when the primary standby routing device switches.
  • the embodiment of the present invention further provides a primary routing device, including: a sending module, configured to send the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule before the primary standby routing device switches. For learning by the alternate routing device.
  • a sending module configured to send the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule before the primary standby routing device switches. For learning by the alternate routing device.
  • the embodiment of the present invention further provides an alternate routing device, including: a receiving module and a learning module; the receiving module is configured to receive an address resolution protocol entry of the user sent by the primary routing device before the primary standby routing device switches; the learning module Set to learn address resolution protocol entries.
  • the forwarding module is further configured to perform forwarding of the downlink traffic of the user according to the address resolution protocol entry.
  • the present invention provides a backup, handover method, and a routing system between the primary and backup routing devices and the device.
  • the backup method between the primary and secondary routing devices includes: before the primary and secondary routing devices switch, the primary routing device learns according to a preset rule.
  • the address resolution protocol entry of the user is sent to the standby routing device; the alternate routing device receives and learns the address resolution protocol entry.
  • the method provided by the present invention sends the learned address resolution protocol entry of the learned user to the standby routing device, so that the standby routing device can learn the address resolution protocol of the user in advance, before the primary routing device performs the primary and secondary routing device switching. Entry.
  • the secondary routing device learns the address resolution protocol entries of the user. Therefore, the downlink traffic of the user can be directly forwarded according to the address resolution protocol entry, thereby saving the learning address resolution protocol table.
  • the time of the item speeds up the switching speed between the primary and secondary routing devices.
  • FIG. 1 is a schematic flowchart of a backup method between primary and backup routing devices according to Embodiment 1 of the present invention
  • FIG. 2 is a schematic flowchart of a backup method between primary and backup routing devices according to Embodiment 2 of the present invention
  • FIG. 3 is a schematic flowchart of a method for switching between primary and backup routing devices according to Embodiment 3 of the present invention
  • FIG. 4 is a schematic flowchart of a method for backing up between primary and backup routing devices according to Embodiment 5 of the present invention
  • FIG. 5 is a schematic flowchart of a method for backing up between primary and backup routing devices according to Embodiment 6 of the present invention.
  • FIG. 6 is a schematic structural diagram of a routing system according to Embodiment 7 of the present invention.
  • FIG. 7 is a schematic structural diagram of another routing system according to Embodiment 7 of the present invention.
  • FIG. 8 is a schematic structural diagram of an alternate routing device according to Embodiment 9 of the present invention.
  • FIG. 9 is a schematic structural diagram of another alternate routing device according to Embodiment 9 of the present invention.
  • Embodiment 1 is a diagrammatic representation of Embodiment 1:
  • This embodiment provides a backup method between the primary and secondary routing devices. Referring to FIG. 1, the method includes the following steps:
  • Step S101 Before the primary and secondary routing device switches, the primary routing device sends the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule.
  • Step S102 The alternate routing device receives and learns the address resolution protocol entry.
  • the forwarding task is performed by the primary routing device.
  • the primary routing device works normally, the uplink and downlink traffic of the user are forwarded by the primary routing device.
  • the primary routing device needs to learn the address resolution protocol entry (ie, the ARP entry) of the user before forwarding the downlink traffic of the user.
  • the primary routing device sends the ARP entry to the backup routing device. If the primary routing device learns the ARP entries of multiple users, the ARP entries of all the learned users can be sent to the alternate routing device.
  • the preset rule may be: the primary routing device periodically sends the learned address resolution protocol entry of the user to the standby routing device; or the primary routing device searches the address of the learned user. When the number of protocol entries reaches the preset value, it is sent to the alternate routing device, where the preset value may be one or more.
  • the method further includes: configuring an Inter-Chassis Backup Group (ICBG) between the primary routing device and the standby routing device.
  • ICBG Inter-Chassis Backup Group
  • the primary and secondary routing devices send the ARP entry to the standby routing device in multiple manners.
  • This embodiment provides a preferred mode: the communication protocol used by the primary routing device between the primary and secondary routing devices. Bind the address resolution protocol entry of the user to the alternate routing device through the communication protocol.
  • the communication protocol may be an Inter-Chassis Communication Protocol (ICCP) or a Service Information Backup Protocol (SIBP).
  • the standby routing device has learned the ARP entry of the user, so that the ARP entry can be used to forward the downlink traffic of the user when the primary and secondary routing devices perform the handover.
  • Embodiment 2 is a diagrammatic representation of Embodiment 1:
  • the embodiment provides a backup method between the primary and secondary routing devices.
  • the primary routing device periodically sends the learned address resolution protocol entry to the backup routing device. When it arrives, the ARP entry that needs to be backed up to the standby routing device is sent to the alternate routing device.
  • the backup method specifically includes the following steps:
  • Step S201 configuring an ICBG of the primary routing device and the standby routing device
  • Step S202 indicating an ICCP connection used between the primary and backup routing devices
  • Step S203 Binding an ARP entry to the used ICCP connection.
  • Step S204 When the set period is reached, the primary routing device sends the ARP entry to be backed up to the standby routing device.
  • Step S205 The standby routing device receives and learns the ARP entry.
  • Embodiment 3 is a diagrammatic representation of Embodiment 3
  • This embodiment provides a method for switching between primary and backup routing devices. Referring to FIG. 3, the method includes the following steps:
  • Step S301 Before the primary and secondary routing device switches, the primary routing device sends the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule.
  • Step S302 The standby routing device receives and learns the address resolution protocol entry.
  • Step S303 When the primary and secondary routing devices switch, the standby routing device forwards the downlink traffic of the user according to the address resolution protocol entry.
  • the forwarding task is performed by the primary routing device.
  • the primary routing device works normally, the uplink and downlink traffic of the user are forwarded by the primary routing device.
  • the primary routing device needs to learn the address resolution protocol entry (ie, the ARP entry) of the user before forwarding the downlink traffic of the user.
  • the primary routing device sends the ARP entry to the backup routing device. If the primary routing device learns the ARP entries of multiple users, the ARP entries of all the learned users can be sent to the alternate routing device.
  • the switching process mainly includes: directing the upstream traffic to the standby routing device; On the backup routing device, when forwarding to the user, the backup routing device needs to know the address of the user and the like, because in step S302, the backup routing device has received and learned the ARP entry of the user, so the user can be directly used here.
  • the ARP entry forwards the user's downstream traffic.
  • the preset rule may be: the primary routing device periodically sends the learned address resolution protocol entry of the user to the standby routing device; or the address resolution protocol of the learned user in the learned routing device. When the number of entries reaches the preset value, it is sent to the alternate routing device, where the preset value can be one or more.
  • the method further includes: configuring an Inter-Chassis Backup Group (ICBG) between the primary routing device and the standby routing device.
  • ICBG Inter-Chassis Backup Group
  • the primary and secondary routing devices send the ARP entry to the standby routing device in multiple manners.
  • This embodiment provides a preferred mode: the communication protocol used by the primary routing device between the primary and secondary routing devices. Bind the address resolution protocol entry of the user to the alternate routing device through the communication protocol.
  • the communication protocol may be an Inter-Chassis Communication Protocol (ICCP) or a Service Information Backup Protocol (SIBP).
  • Embodiment 4 is a diagrammatic representation of Embodiment 4:
  • the embodiment provides a backup method between the primary and secondary routing devices, including: before the primary and secondary routing devices switch, the primary routing device sends the learned address resolution protocol entry to the secondary routing device according to a preset rule. For learning by the alternate routing device.
  • the preset rule may be: the primary routing device periodically sends the learned address resolution protocol entry of the user to the standby routing device; or the address resolution protocol of the learned user in the learned routing device. When the number of entries reaches the preset value, it is sent to the alternate routing device, where the preset value can be one or more.
  • the method further includes: configuring an ICBG (Inter-Chassis Backup Group) between the primary routing device and the standby routing device. Rack backup group).
  • ICBG Inter-Chassis Backup Group
  • the primary routing device binds the user's address to the communication protocol used between the primary and secondary routing devices.
  • the protocol table entry is parsed, and the address resolution protocol table is sent to the alternate routing device by using a communication protocol.
  • the communication protocol may be an Inter-Chassis Communication Protocol (ICCP) or a Service Information Backup Protocol (SIBP).
  • Embodiment 5 is a diagrammatic representation of Embodiment 5:
  • This embodiment provides a backup method between the primary and secondary routing devices. Referring to FIG. 4, the method includes the following steps:
  • Step S401 Before the primary and secondary routing device switches, the standby routing device receives the address resolution protocol entry of the user sent by the primary routing device.
  • Step S402 The standby routing device learns an address resolution protocol entry.
  • the forwarding task is performed by the primary routing device.
  • the primary routing device works normally, the uplink and downlink traffic of the user are forwarded by the primary routing device.
  • the secondary routing device needs to perform the primary and secondary routing device switching.
  • the switching process mainly includes: directing the upstream traffic to the standby routing device; On the backup routing device, the backup routing device needs to know the user's address and other information when forwarding to the user.
  • the standby routing device has received and learned the user before the primary standby routing device switches. ARP entry, so you can directly use the user's ARP entry to forward the user's downstream traffic.
  • the present invention also provides a method for switching between primary and secondary routing devices. Referring to FIG. 5, the method includes the following steps:
  • Step S501 Before the primary and secondary routing device switches, the standby routing device receives the address resolution protocol entry of the user sent by the primary routing device.
  • Step S502 The standby routing device learns an address resolution protocol entry.
  • Step S503 The standby routing device forwards the downlink traffic of the user according to the address resolution protocol entry.
  • the forwarding task is performed by the primary routing device.
  • the primary routing device works normally, the uplink and downlink traffic of the user are forwarded by the primary routing device.
  • the secondary routing device needs to perform the primary and secondary routing device switching.
  • the switching process mainly includes: directing the upstream traffic to the standby routing device; On the backup routing device, the backup routing device needs to know the user's address and other information when forwarding to the user.
  • the standby routing device has received and learned the user before the primary standby routing device switches. ARP entry, so you can directly use the user's ARP entry to forward the user's downstream traffic.
  • the method includes: an active routing device 601 and at least one backup routing device 602.
  • the primary routing device 601 is configured to follow a preset rule before the primary standby routing device switches.
  • the address resolution protocol entry of the user learned by the primary routing device is sent to the alternate routing device; the secondary routing device 602 is configured to receive and learn the address resolution protocol entry.
  • the primary routing device 601 is configured to periodically send the address resolution protocol entry of the user that it learns to the standby routing device; or the number of address resolution protocol entries of the user that it learns reaches The preset value is sent to the alternate routing device.
  • the routing system further includes a processor 603.
  • the processor 603 is configured to send, to the backup routing device, the address resolution protocol entry of the user that the primary routing device learns according to the preset rule. Previously, configure a cross-rack backup group between the primary routing device and the alternate routing device.
  • the primary routing device 601 is further configured to bind an address resolution protocol entry to the communication protocol used between the primary and secondary routing devices, and send the address resolution protocol table to the alternate routing device through the communication protocol.
  • the backup routing device 602 is further configured to forward the downlink traffic of the user according to the address resolution protocol entry when the primary standby routing device switches.
  • the embodiment provides a primary routing device, including: a sending module, configured to send the learned address resolution protocol entry of the learned user to the standby routing device for backup after the primary standby routing device switches. Routing device learning.
  • the sending module may periodically send the address resolution protocol entry of the user that it learns to the standby routing device, or send the address resolution protocol entry of the user to the alternate route when the number of the address resolution protocol entries of the user reaches a preset value. device.
  • the sending module may also bind the address resolution protocol entry to the communication protocol used between the primary and secondary routing devices, and send the address resolution protocol table to the alternate routing device through the communication protocol.
  • the present invention further provides an alternate routing device.
  • the method includes: a receiving module 801 and a learning module 802.
  • the receiving module 801 is configured to receive an address resolution of a user sent by the primary routing device before the primary standby routing device switches.
  • the protocol table entry is set to learn the address resolution protocol entry.
  • the standby routing device includes a receiving module 901 and a learning module 902, and further includes a forwarding module 903, configured to resolve the protocol entries according to the address. Forward the downstream traffic of the user.
  • the primary routing device sends the learned address resolution protocol entry to the standby routing device before the primary routing device performs the primary and secondary routing device switching, so that the secondary routing device can advance the routing device.
  • the secondary routing device learns the address resolution protocol entries of the user. Therefore, the downlink traffic of the user can be directly forwarded according to the address resolution protocol entry, thereby saving the learning address resolution protocol table.
  • the time of the item speeds up the switching speed between the primary and secondary routing devices.

Abstract

Provided are primary and alternate routing equipment and backup, switching method and routing system therebetween, the backup method between the primary and alternate routing equipment comprising: prior to switching the primary and alternate routing equipment, the primary routing equipment sends the learned address resolution protocol entries of the user to the alternate routing equipment according to preset rules; the alternate routing equipment receives and learns the address resolution protocol entries. Prior to switching the primary and alternate routing equipment, the method provided by the present invention enables the primary routing equipment to send the learned address resolution protocol entries of the user to the alternate routing equipment to enable the alternate routing equipment to learn the address resolution protocol entries in advance. When the primary and alternate routing equipment switch, the alternate routing equipment, having learned the address resolution protocol entries of the user, can directly forward the downlink traffic of the user according to the address resolution protocol entries, thus accelerating the switching speed between the primary and alternate routing equipment.

Description

主、备用路由设备及设备间的备份、切换方法及路由系统Backup, switching method and routing system between primary and backup routing devices and devices 技术领域Technical field
本发明涉及通信领域,尤其涉及主、备用路由设备及设备间的备份、切换方法及路由系统。The present invention relates to the field of communications, and in particular, to a backup, handover method, and routing system between a primary and backup routing device and a device.
背景技术Background technique
VRRP(Virtual Router Redundancy Protocol,虚拟路由冗余协议)将局域网内的一组路由设备划分在一起,称为一个备份组。备份组由一个Master路由设备(主用路由设备)和多个Backup路由设备(备用路由设备)组成,功能上相当于一台虚拟路由设备。VRRP (Virtual Router Redundancy Protocol) divides a group of routing devices on a LAN into one backup group. A backup group consists of a master routing device (primary routing device) and multiple backup routing devices (alternate routing devices), which is equivalent to a virtual routing device.
转发任务由Master路由设备承担,路由设备正常工作情况下,用户的上行、下行流量均经过Master路由设备进行转发;若此时主用路由设备发生链路故障,备用路由设备检测到主设备故障发生状态切换,将上行流量引到新的主用路由设备(也即备用路由设备)上;下行流量经过路由收敛引导到新的主用路由设备上,但是在往用户转发时,由于没有用户的ARP(Address Resolution Protocol,地址解析协议)表项,需要发起ARP学习,导致流量丢失。The forwarding task is performed by the master routing device. When the routing device works normally, the upstream and downstream traffic of the user is forwarded by the master routing device. If the link fault occurs on the primary routing device, the backup device detects that the primary device is faulty. State switching, the upstream traffic is directed to the new primary routing device (that is, the alternate routing device); the downstream traffic is routed to the new primary routing device through the route convergence, but when forwarding to the user, there is no user ARP. The (Address Resolution Protocol) entry needs to initiate ARP learning, resulting in loss of traffic.
专利公开号为101800774A的中国专利申请《一种接入环保护方法及接入环保护网络》公开了一种接入环保护方法,包括:汇聚环仅转发三层报文且接入环仅转发二层报文,并且,在接入环的每个接入节点以所述两个汇聚节点分别作为主备网关,配置上行到核心节点的双网关。接入节点通过L2VPN的主备PW方式接入L3VPN,在每个L2/L3的接入点(汇聚节点)需要学习上千个ARP表项。因此该方法同样会存在如下问题:当主节点发生故障时,如果备节点上没有相应的ARP表项,则需要通过数据流来重新触发ARP表项的学习。大量的ARP表项学习会导致CPU短时间内开销增大,甚至可能导致控制面短时间的断流,无法满足50ms的切换要求。A method for protecting an access ring is disclosed in the Chinese Patent Application No. 101800774A, which is an access ring protection method and an access ring protection network. The method includes: the aggregation ring forwards only Layer 3 packets and the access ring only forwards A Layer 2 packet, and each of the access nodes of the access ring configures the dual gateways that are uplinked to the core node by using the two aggregation nodes as the primary and secondary gateways respectively. The access node accesses the L3VPN through the active and standby PWs of the L2VPN. The access point (aggregation node) of each L2/L3 needs to learn thousands of ARP entries. Therefore, the method also has the following problem: When the primary node fails, if there is no corresponding ARP entry on the standby node, the data flow is used to re-trigger the learning of the ARP entry. A large number of ARP entries can cause the CPU to increase overhead in a short period of time, and may even cause the control plane to be interrupted for a short period of time, failing to meet the 50 ms switching requirement.
由此可见,在现有技术中,当主备用路由设备进行切换时,会因备用路由设备需要学习ARP表项从而导致切换时间增加的问题。 Therefore, in the prior art, when the primary and secondary routing devices perform the handover, the backup routing device needs to learn the ARP entry, which causes an increase in the switching time.
发明内容Summary of the invention
本发明要解决的主要技术问题是,提供主、备用路由设备及设备间的备份、切换方法及路由系统,解决现有技术中,当主备用路由设备进行切换时,因备用路由设备需要学习用户的ARP表项从而导致切换时间增加的问题。The main technical problem to be solved by the present invention is to provide a backup and handover method and a routing system between the primary and secondary routing devices and the devices. In the prior art, when the primary and secondary routing devices perform the handover, the secondary routing device needs to learn the user. The ARP entry causes a problem of increased switching time.
为解决上述技术问题,本发明实施例提供一种主备用路由设备间的备份方法,包括:在主备用路由设备切换之前,主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备;备用路由设备接收并学习地址解析协议表项。In order to solve the above technical problem, the embodiment of the present invention provides a backup method between the primary and backup routing devices, including: before the primary and secondary routing device switches, the primary routing device searches the address resolution protocol table of the learned user according to a preset rule. The item is sent to the alternate routing device; the alternate routing device receives and learns the address resolution protocol entry.
在本发明的一种实施例中,预设规则为:主用路由设备周期性地将学习到的用户的地址解析协议表项发送给备用路由设备;或主用路由设备在学习到的用户的地址解析协议表项的数量达到预设值时将其发送给备用路由设备。In an embodiment of the present invention, the preset rule is: the primary routing device periodically sends the learned address resolution protocol entry of the user to the standby routing device; or the primary routing device is learned by the user. When the number of address resolution protocol entries reaches the preset value, it is sent to the alternate routing device.
在本发明的一种实施例中,在主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备之前还包括:配置主用路由设备和备用路由设备之间的跨机架备份组。In an embodiment of the present invention, before the primary routing device sends the learned address resolution protocol entry to the backup routing device according to the preset rule, the method further includes: configuring between the primary routing device and the standby routing device. Cross-rack backup group.
在本发明的一种实施例中,包括上述主备用路由设备间的备份方法中的各步骤;还包括:当主备用路由设备切换时,备用路由设备根据地址解析协议表项进行用户的下行流量的转发。In an embodiment of the present invention, the method includes the foregoing steps in the backup method between the primary and backup routing devices, and further includes: when the primary standby routing device switches, the standby routing device performs downlink traffic of the user according to the address resolution protocol entry. Forward.
本发明实施例还提供了一种主备用路由设备间的备份方法,包括:在主备用路由设备切换之前,主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备,供备用路由设备学习。The embodiment of the present invention further provides a backup method between the primary and secondary routing devices, including: before the primary and secondary routing device switches, the primary routing device sends the learned address resolution protocol entry to the standby according to the preset rule. Routing device for learning by the alternate routing device.
本发明实施例还提供了一种主备用路由设备间的备份方法,包括:在主备用路由设备切换之前,备用路由设备接收主用路由设备发送的用户的地址解析协议表项;备用路由设备学习地址解析协议表项。The embodiment of the present invention further provides a backup method between the primary and secondary routing devices, including: before the primary and secondary routing device switches, the standby routing device receives the address resolution protocol entry of the user sent by the primary routing device; Address resolution protocol entry.
本发明实施例还提供了一种主备用路由设备间的切换方法,包括上述主备用路由设备间的备份方法中的各步骤;还包括:备用路由设备根据地址解析协议表项进行用户的下行流量的转发。The embodiment of the present invention further provides a method for switching between primary and secondary routing devices, including the steps in the backup method between the primary and secondary routing devices, and the following: the standby routing device performs downlink traffic of the user according to the address resolution protocol entry. Forwarding.
本发明实施例还提供了一种路由系统,包括:主用路由设备和至少一个备用路由设备,主用路由设备用于在主备用路由设备切换之前,按照预设规则将主用路由设备学习到的用户的地址解析协议表项发送给备用路由设备;备用路由设备用于接收并学习地址解析协议表项。 The embodiment of the present invention further provides a routing system, including: an active routing device and at least one standby routing device, where the primary routing device is configured to learn the primary routing device according to a preset rule before the primary standby routing device switches. The address resolution protocol entry of the user is sent to the alternate routing device; the alternate routing device is configured to receive and learn the address resolution protocol entry.
在本发明的一种实施例中,主用路由设备用于周期性地将其学习到的用户的地址解析协议表项发送给备用路由设备;或在其学习到的用户的地址解析协议表项的数量达到预设值时将其发送给备用路由设备。In an embodiment of the present invention, the primary routing device is configured to periodically send the address resolution protocol entry of the user that it learns to the backup routing device; or the address resolution protocol entry of the user that it learns. When the number reaches the preset value, it is sent to the alternate routing device.
在本发明的一种实施例中,路由系统还包括处理器,用于在主用路由设备按照预设规则将其学习到的用户的地址解析协议表项发送给备用路由设备之前,配置主用路由设备和备用路由设备之间的跨机架备份组。In an embodiment of the present invention, the routing system further includes a processor, configured to configure the primary use before the primary routing device sends the address resolution protocol entry of the learned user to the backup routing device according to a preset rule. A cross-rack backup group between a routing device and an alternate routing device.
在本发明的一种实施例中,备用路由设备还用于在主备用路由设备切换时,根据地址解析协议表项进行用户的下行流量的转发。In an embodiment of the present invention, the backup routing device is further configured to forward the downlink traffic of the user according to the address resolution protocol entry when the primary standby routing device switches.
本发明实施例还提供了一种主用路由设备,包括:发送模块,设置为在主备用路由设备切换之前,按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备,供备用路由设备学习。The embodiment of the present invention further provides a primary routing device, including: a sending module, configured to send the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule before the primary standby routing device switches. For learning by the alternate routing device.
本发明实施例还提供了一种备用路由设备,包括:接收模块和学习模块;接收模块设置为在主备用路由设备切换之前,接收主用路由设备发送的用户的地址解析协议表项;学习模块设置为学习地址解析协议表项。The embodiment of the present invention further provides an alternate routing device, including: a receiving module and a learning module; the receiving module is configured to receive an address resolution protocol entry of the user sent by the primary routing device before the primary standby routing device switches; the learning module Set to learn address resolution protocol entries.
在本发明的一种实施例中,还包括转发模块,设置为根据地址解析协议表项进行用户的下行流量的转发。In an embodiment of the present invention, the forwarding module is further configured to perform forwarding of the downlink traffic of the user according to the address resolution protocol entry.
本发明的有益效果是:The beneficial effects of the invention are:
本发明提供了主、备用路由设备及设备间的备份、切换方法及路由系统,该主备用路由设备间的备份方法包括:在主备用路由设备切换之前,主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备;备用路由设备接收并学习该地址解析协议表项。本发明提供的方法通过让主用路由设备在进行主备用路由设备切换之前,就将学习到的用户的地址解析协议表项发送给备用路由设备,让备用路由设备可以提前学习用户的地址解析协议表项。当主备用路由设备进行切换时,备用路由设备因已经学习了用户的地址解析协议表项,所以就可以直接根据该地址解析协议表项进行用户的下行流量的转发,从而节省了学习地址解析协议表项的时间,加快了主备用路由设备间的切换速度。The present invention provides a backup, handover method, and a routing system between the primary and backup routing devices and the device. The backup method between the primary and secondary routing devices includes: before the primary and secondary routing devices switch, the primary routing device learns according to a preset rule. The address resolution protocol entry of the user is sent to the standby routing device; the alternate routing device receives and learns the address resolution protocol entry. The method provided by the present invention sends the learned address resolution protocol entry of the learned user to the standby routing device, so that the standby routing device can learn the address resolution protocol of the user in advance, before the primary routing device performs the primary and secondary routing device switching. Entry. When the primary and secondary routing devices switch, the secondary routing device learns the address resolution protocol entries of the user. Therefore, the downlink traffic of the user can be directly forwarded according to the address resolution protocol entry, thereby saving the learning address resolution protocol table. The time of the item speeds up the switching speed between the primary and secondary routing devices.
附图说明DRAWINGS
图1为本发明实施例一提供的一种主备用路由设备间的备份方法的流程示意图; 1 is a schematic flowchart of a backup method between primary and backup routing devices according to Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种主备用路由设备间的备份方法的流程示意图;2 is a schematic flowchart of a backup method between primary and backup routing devices according to Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种主备用路由设备间的切换方法的流程示意图;3 is a schematic flowchart of a method for switching between primary and backup routing devices according to Embodiment 3 of the present invention;
图4为本发明实施例五提供的一种主备用路由设备间的备份方法的流程示意图;4 is a schematic flowchart of a method for backing up between primary and backup routing devices according to Embodiment 5 of the present invention;
图5为本发明实施例六提供的一种主备用路由设备间的备份方法的流程示意图;FIG. 5 is a schematic flowchart of a method for backing up between primary and backup routing devices according to Embodiment 6 of the present invention;
图6为本发明实施例七提供的一种路由系统的结构示意图;6 is a schematic structural diagram of a routing system according to Embodiment 7 of the present invention;
图7为本发明实施例七提供的另一种路由系统的结构示意图;FIG. 7 is a schematic structural diagram of another routing system according to Embodiment 7 of the present invention;
图8为本发明实施例九提供的一种备用路由设备的结构示意图;FIG. 8 is a schematic structural diagram of an alternate routing device according to Embodiment 9 of the present invention; FIG.
图9为本发明实施例九提供的另一种备用路由设备的结构示意图。FIG. 9 is a schematic structural diagram of another alternate routing device according to Embodiment 9 of the present invention.
具体实施方式detailed description
下面通过具体实施方式结合附图对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings.
实施例一:Embodiment 1:
本实施例提供了一种主备用路由设备间的备份方法,请参考图1,该方法包括如下步骤:This embodiment provides a backup method between the primary and secondary routing devices. Referring to FIG. 1, the method includes the following steps:
步骤S101:在主备用路由设备切换之前,主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备;Step S101: Before the primary and secondary routing device switches, the primary routing device sends the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule.
步骤S102:备用路由设备接收并学习该地址解析协议表项。Step S102: The alternate routing device receives and learns the address resolution protocol entry.
在本实施例中,在主备用路由设备进行切换之前,转发任务由主用路由设备承担,主用路由设备正常工作情况下,用户的上行、下行流量均经过主用路由设备进行转发。主用路由设备在转发用户的下行流量之前,需要学习用户的地址解析协议表项(即ARP表项),在上述步骤S101中,主用路由设备向备用路由设备发送的就是该ARP表项。如果主用路由设备学习了多个用户的ARP表项,可以将学习到的所有的用户的ARP表项都发送给备用路由设备。In this embodiment, before the primary and secondary routing devices perform the handover, the forwarding task is performed by the primary routing device. When the primary routing device works normally, the uplink and downlink traffic of the user are forwarded by the primary routing device. The primary routing device needs to learn the address resolution protocol entry (ie, the ARP entry) of the user before forwarding the downlink traffic of the user. In the foregoing step S101, the primary routing device sends the ARP entry to the backup routing device. If the primary routing device learns the ARP entries of multiple users, the ARP entries of all the learned users can be sent to the alternate routing device.
在上述步骤S101中,预设规则可以为:主用路由设备周期性地将学习到的用户的地址解析协议表项发送给备用路由设备;或主用路由设备在学习到的用户的地址解析 协议表项的数目达到预设值时将其发送给备用路由设备,其中预设值可以为一个也可以为多个。In the foregoing step S101, the preset rule may be: the primary routing device periodically sends the learned address resolution protocol entry of the user to the standby routing device; or the primary routing device searches the address of the learned user. When the number of protocol entries reaches the preset value, it is sent to the alternate routing device, where the preset value may be one or more.
在上述步骤S101之前还包括:配置主用路由设备和备用路由设备之间的ICBG(Inter-Chassis Backup Group,跨机架备份组)。Before the step S101, the method further includes: configuring an Inter-Chassis Backup Group (ICBG) between the primary routing device and the standby routing device.
在上述步骤S101中,主备用路由设备将ARP表项发送给备用路由设备的方式有多种,本实施例提供一种较优的方式:主用路由设备在主备用路由设备间使用的通信协议上绑定用户的地址解析协议表项,通过通信协议将该地址解析协议表发送给备用路由设备。进一步地,通信协议可以为ICCP(Inter-Chassis Communication Protocol,机架间通信协议),也可以为SIBP(Service Information Backup Protocol,业务信息备份协议)。In the above step S101, the primary and secondary routing devices send the ARP entry to the standby routing device in multiple manners. This embodiment provides a preferred mode: the communication protocol used by the primary routing device between the primary and secondary routing devices. Bind the address resolution protocol entry of the user to the alternate routing device through the communication protocol. Further, the communication protocol may be an Inter-Chassis Communication Protocol (ICCP) or a Service Information Backup Protocol (SIBP).
在上述步骤S101之后,备用路由设备已经学习了用户的ARP表项,因此可以在主备用路由设备进行切换时利用该ARP表项进行用户的下行流量的转发。After the foregoing step S101, the standby routing device has learned the ARP entry of the user, so that the ARP entry can be used to forward the downlink traffic of the user when the primary and secondary routing devices perform the handover.
实施例二:Embodiment 2:
本实施例提供了一种主备用路由设备间的备份方法,在该备份方法中,主用路由设备周期性地将学习到的用户的地址解析协议表项发送给备用路由设备,当设置的周期到达时,把需要备份到备用路由设备的ARP表项发送给备用路由设备。请参见图2,该备份方法具体包括如下步骤:The embodiment provides a backup method between the primary and secondary routing devices. In the backup method, the primary routing device periodically sends the learned address resolution protocol entry to the backup routing device. When it arrives, the ARP entry that needs to be backed up to the standby routing device is sent to the alternate routing device. Referring to FIG. 2, the backup method specifically includes the following steps:
步骤S201:配置主用路由设备和备用路由设备的ICBG;Step S201: configuring an ICBG of the primary routing device and the standby routing device;
步骤S202:指明主备用路由设备间使用的ICCP连接;Step S202: indicating an ICCP connection used between the primary and backup routing devices;
步骤S203:在使用的ICCP连接上绑定ARP表项;Step S203: Binding an ARP entry to the used ICCP connection.
步骤S204:设置的周期到达时,主用路由设备把需要备份的ARP表项发送给备用路由设备;Step S204: When the set period is reached, the primary routing device sends the ARP entry to be backed up to the standby routing device.
步骤S205:备用路由设备接收并学习该ARP表项。Step S205: The standby routing device receives and learns the ARP entry.
实施例三:Embodiment 3:
本实施例提供了一种主备用路由设备间的切换方法,请参考图3,该方法包括如下步骤: This embodiment provides a method for switching between primary and backup routing devices. Referring to FIG. 3, the method includes the following steps:
步骤S301:在主备用路由设备切换之前,主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备;Step S301: Before the primary and secondary routing device switches, the primary routing device sends the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule.
步骤S302:备用路由设备接收并学习该地址解析协议表项;Step S302: The standby routing device receives and learns the address resolution protocol entry.
步骤S303:当主备用路由设备切换时,备用路由设备根据地址解析协议表项进行用户的下行流量的转发。Step S303: When the primary and secondary routing devices switch, the standby routing device forwards the downlink traffic of the user according to the address resolution protocol entry.
在本实施例中,在主备用路由设备进行切换之前,转发任务由主用路由设备承担,主用路由设备正常工作情况下,用户的上行、下行流量均经过主用路由设备进行转发。主用路由设备在转发用户的下行流量之前,需要学习用户的地址解析协议表项(即ARP表项),在上述步骤S301中,主用路由设备向备用路由设备发送的就是该ARP表项。如果主用路由设备学习了多个用户的ARP表项,可以将学习到的所有的用户的ARP表项都发送给备用路由设备。In this embodiment, before the primary and secondary routing devices perform the handover, the forwarding task is performed by the primary routing device. When the primary routing device works normally, the uplink and downlink traffic of the user are forwarded by the primary routing device. The primary routing device needs to learn the address resolution protocol entry (ie, the ARP entry) of the user before forwarding the downlink traffic of the user. In the foregoing step S301, the primary routing device sends the ARP entry to the backup routing device. If the primary routing device learns the ARP entries of multiple users, the ARP entries of all the learned users can be sent to the alternate routing device.
当主用路由设备发生链路故障,备用路由设备检测到主设备故障时,就需要进行主备用路由设备切换,切换过程主要包括:将上行流量引到备用路由设备上;下行流量经过路由收敛引导到备用路由设备上,在往用户转发时,备用路由设备需要获知用户的地址等信息,因为在步骤S302中,备用路由设备已经接收并学习了该用户的ARP表项,所以可以这里可以直接使用用户的ARP表项进行用户下行流量的转发。When the primary routing device is faulty, the secondary routing device needs to perform the primary and secondary routing device switching. The switching process mainly includes: directing the upstream traffic to the standby routing device; On the backup routing device, when forwarding to the user, the backup routing device needs to know the address of the user and the like, because in step S302, the backup routing device has received and learned the ARP entry of the user, so the user can be directly used here. The ARP entry forwards the user's downstream traffic.
在上述步骤S301中,预设规则可以为:主用路由设备周期性地将学习到的用户的地址解析协议表项发送给备用路由设备;或主用路由设备在学习到的用户的地址解析协议表项的数目达到预设值时将其发送给备用路由设备,其中预设值可以为一个也可以为多个。In the foregoing step S301, the preset rule may be: the primary routing device periodically sends the learned address resolution protocol entry of the user to the standby routing device; or the address resolution protocol of the learned user in the learned routing device. When the number of entries reaches the preset value, it is sent to the alternate routing device, where the preset value can be one or more.
在上述步骤S301之前还包括:配置主用路由设备和备用路由设备之间的ICBG(Inter-Chassis Backup Group,跨机架备份组)。Before the step S301, the method further includes: configuring an Inter-Chassis Backup Group (ICBG) between the primary routing device and the standby routing device.
在上述步骤S301中,主备用路由设备将ARP表项发送给备用路由设备的方式有多种,本实施例提供一种较优的方式:主用路由设备在主备用路由设备间使用的通信协议上绑定用户的地址解析协议表项,通过通信协议将该地址解析协议表发送给备用路由设备。进一步地,通信协议可以为ICCP(Inter-Chassis Communication Protocol,机架间通信协议),也可以为SIBP(Service Information Backup Protocol,业务信息备份协议)。 In the foregoing step S301, the primary and secondary routing devices send the ARP entry to the standby routing device in multiple manners. This embodiment provides a preferred mode: the communication protocol used by the primary routing device between the primary and secondary routing devices. Bind the address resolution protocol entry of the user to the alternate routing device through the communication protocol. Further, the communication protocol may be an Inter-Chassis Communication Protocol (ICCP) or a Service Information Backup Protocol (SIBP).
实施例四:Embodiment 4:
本实施例提供了一种主备用路由设备间的备份方法,包括:在主备用路由设备切换之前,主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备,供备用路由设备学习。The embodiment provides a backup method between the primary and secondary routing devices, including: before the primary and secondary routing devices switch, the primary routing device sends the learned address resolution protocol entry to the secondary routing device according to a preset rule. For learning by the alternate routing device.
在本实施例中,预设规则可以为:主用路由设备周期性地将学习到的用户的地址解析协议表项发送给备用路由设备;或主用路由设备在学习到的用户的地址解析协议表项的数目达到预设值时将其发送给备用路由设备,其中预设值可以为一个也可以为多个。In this embodiment, the preset rule may be: the primary routing device periodically sends the learned address resolution protocol entry of the user to the standby routing device; or the address resolution protocol of the learned user in the learned routing device. When the number of entries reaches the preset value, it is sent to the alternate routing device, where the preset value can be one or more.
在主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备之前还包括:配置主用路由设备和备用路由设备之间的ICBG(Inter-Chassis Backup Group,跨机架备份组)。Before the primary routing device sends the learned address resolution protocol entry to the standby routing device according to the preset rule, the method further includes: configuring an ICBG (Inter-Chassis Backup Group) between the primary routing device and the standby routing device. Rack backup group).
主备用路由设备将ARP表项发送给备用路由设备的方式有多种,本实施例提供一种较优的方式:主用路由设备在主备用路由设备间使用的通信协议上绑定用户的地址解析协议表项,通过通信协议将该地址解析协议表发送给备用路由设备。进一步地,通信协议可以为ICCP(Inter-Chassis Communication Protocol,机架间通信协议),也可以为SIBP(Service Information Backup Protocol,业务信息备份协议)。There are several ways for the primary and secondary routing devices to send ARP entries to the alternate routing device. This embodiment provides a preferred mode: the primary routing device binds the user's address to the communication protocol used between the primary and secondary routing devices. The protocol table entry is parsed, and the address resolution protocol table is sent to the alternate routing device by using a communication protocol. Further, the communication protocol may be an Inter-Chassis Communication Protocol (ICCP) or a Service Information Backup Protocol (SIBP).
实施例五:Embodiment 5:
本实施例提供了一种主备用路由设备间的备份方法,请参见图4,包括如下步骤:This embodiment provides a backup method between the primary and secondary routing devices. Referring to FIG. 4, the method includes the following steps:
步骤S401:在主备用路由设备切换之前,备用路由设备接收主用路由设备发送的用户的地址解析协议表项;Step S401: Before the primary and secondary routing device switches, the standby routing device receives the address resolution protocol entry of the user sent by the primary routing device.
步骤S402:备用路由设备学习地址解析协议表项。Step S402: The standby routing device learns an address resolution protocol entry.
在本实施例中,在主备用路由设备进行切换之前,转发任务由主用路由设备承担,主用路由设备正常工作情况下,用户的上行、下行流量均经过主用路由设备进行转发。当主用路由设备发生链路故障,备用路由设备检测到主设备故障时,就需要进行主备用路由设备切换,切换过程主要包括:将上行流量引到备用路由设备上;下行流量经过路由收敛引导到备用路由设备上,在往用户转发时,备用路由设备需要获知用户的地址等信息,因为在本实施例提供的备份方法中,备用路由设备已经在主备用路由设备切换之前接收并学习了该用户的ARP表项,所以可以这里可以直接使用用户的ARP表项进行用户下行流量的转发。 In this embodiment, before the primary and secondary routing devices perform the handover, the forwarding task is performed by the primary routing device. When the primary routing device works normally, the uplink and downlink traffic of the user are forwarded by the primary routing device. When the primary routing device is faulty, the secondary routing device needs to perform the primary and secondary routing device switching. The switching process mainly includes: directing the upstream traffic to the standby routing device; On the backup routing device, the backup routing device needs to know the user's address and other information when forwarding to the user. In the backup method provided in this embodiment, the standby routing device has received and learned the user before the primary standby routing device switches. ARP entry, so you can directly use the user's ARP entry to forward the user's downstream traffic.
实施例六:Example 6:
本发明还提供了一种主备用路由设备间的切换方法,请参见图5,包括如下步骤:The present invention also provides a method for switching between primary and secondary routing devices. Referring to FIG. 5, the method includes the following steps:
步骤S501:在主备用路由设备切换之前,备用路由设备接收主用路由设备发送的用户的地址解析协议表项;Step S501: Before the primary and secondary routing device switches, the standby routing device receives the address resolution protocol entry of the user sent by the primary routing device.
步骤S502:备用路由设备学习地址解析协议表项;Step S502: The standby routing device learns an address resolution protocol entry.
步骤S503:备用路由设备根据地址解析协议表项进行用户的下行流量的转发。Step S503: The standby routing device forwards the downlink traffic of the user according to the address resolution protocol entry.
在本实施例中,在主备用路由设备进行切换之前,转发任务由主用路由设备承担,主用路由设备正常工作情况下,用户的上行、下行流量均经过主用路由设备进行转发。当主用路由设备发生链路故障,备用路由设备检测到主设备故障时,就需要进行主备用路由设备切换,切换过程主要包括:将上行流量引到备用路由设备上;下行流量经过路由收敛引导到备用路由设备上,在往用户转发时,备用路由设备需要获知用户的地址等信息,因为在本实施例提供的备份方法中,备用路由设备已经在主备用路由设备切换之前接收并学习了该用户的ARP表项,所以可以这里可以直接使用用户的ARP表项进行用户下行流量的转发。In this embodiment, before the primary and secondary routing devices perform the handover, the forwarding task is performed by the primary routing device. When the primary routing device works normally, the uplink and downlink traffic of the user are forwarded by the primary routing device. When the primary routing device is faulty, the secondary routing device needs to perform the primary and secondary routing device switching. The switching process mainly includes: directing the upstream traffic to the standby routing device; On the backup routing device, the backup routing device needs to know the user's address and other information when forwarding to the user. In the backup method provided in this embodiment, the standby routing device has received and learned the user before the primary standby routing device switches. ARP entry, so you can directly use the user's ARP entry to forward the user's downstream traffic.
实施例七:Example 7:
本实施例提供了一种路由系统,请参见图6,包括:主用路由设备601和至少一个备用路由设备602,主用路由设备601用于在主备用路由设备切换之前,按照预设规则将主用路由设备学习到的用户的地址解析协议表项发送给备用路由设备;备用路由设备602用于接收并学习地址解析协议表项。This embodiment provides a routing system. Referring to FIG. 6, the method includes: an active routing device 601 and at least one backup routing device 602. The primary routing device 601 is configured to follow a preset rule before the primary standby routing device switches. The address resolution protocol entry of the user learned by the primary routing device is sent to the alternate routing device; the secondary routing device 602 is configured to receive and learn the address resolution protocol entry.
在本实施例中,主用路由设备601用于周期性地将其学习到的用户的地址解析协议表项发送给备用路由设备;或在其学习到的用户的地址解析协议表项的数量达到预设值时将其发送给备用路由设备。In this embodiment, the primary routing device 601 is configured to periodically send the address resolution protocol entry of the user that it learns to the standby routing device; or the number of address resolution protocol entries of the user that it learns reaches The preset value is sent to the alternate routing device.
在本实施例中,路由系统还包括处理器603,请参见图7,处理器603用于在主用路由设备按照预设规则将其学习到的用户的地址解析协议表项发送给备用路由设备之前,配置主用路由设备和备用路由设备之间的跨机架备份组。In this embodiment, the routing system further includes a processor 603. Referring to FIG. 7, the processor 603 is configured to send, to the backup routing device, the address resolution protocol entry of the user that the primary routing device learns according to the preset rule. Previously, configure a cross-rack backup group between the primary routing device and the alternate routing device.
在本实施例中,主用路由设备601还用于在主备用路由设备间使用的通信协议上绑定地址解析协议表项,通过通信协议将地址解析协议表发送给备用路由设备。 In this embodiment, the primary routing device 601 is further configured to bind an address resolution protocol entry to the communication protocol used between the primary and secondary routing devices, and send the address resolution protocol table to the alternate routing device through the communication protocol.
在本实施例中,备用路由设备602还用于在主备用路由设备切换时,根据地址解析协议表项进行用户的下行流量的转发。In this embodiment, the backup routing device 602 is further configured to forward the downlink traffic of the user according to the address resolution protocol entry when the primary standby routing device switches.
实施例八:Example 8:
本实施例提供了一种主用路由设备,包括:发送模块,设置为在主备用路由设备切换之前,按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备,供备用路由设备学习。发送模块可周期性地将其学习到的用户的地址解析协议表项发送给备用路由设备;或在其学习到的用户的地址解析协议表项的数量达到预设值时将其发送给备用路由设备。发送模块还可在主备用路由设备间使用的通信协议上绑定地址解析协议表项,通过通信协议将地址解析协议表发送给备用路由设备。The embodiment provides a primary routing device, including: a sending module, configured to send the learned address resolution protocol entry of the learned user to the standby routing device for backup after the primary standby routing device switches. Routing device learning. The sending module may periodically send the address resolution protocol entry of the user that it learns to the standby routing device, or send the address resolution protocol entry of the user to the alternate route when the number of the address resolution protocol entries of the user reaches a preset value. device. The sending module may also bind the address resolution protocol entry to the communication protocol used between the primary and secondary routing devices, and send the address resolution protocol table to the alternate routing device through the communication protocol.
实施例九:Example 9:
本发明还提供了一种备用路由设备,请参见图8,包括:接收模块801和学习模块802;接收模块801设置为在主备用路由设备切换之前,接收主用路由设备发送的用户的地址解析协议表项;学习模块802设置为学习地址解析协议表项。The present invention further provides an alternate routing device. Referring to FIG. 8, the method includes: a receiving module 801 and a learning module 802. The receiving module 801 is configured to receive an address resolution of a user sent by the primary routing device before the primary standby routing device switches. The protocol table entry is set to learn the address resolution protocol entry.
在本实施例中,还提供了另一种备用路由设备,请参见图9,该备用路由设备除包括接收模块901和学习模块902外,还包括转发模块903,设置为根据地址解析协议表项进行用户的下行流量的转发。In this embodiment, another alternate routing device is further provided. Referring to FIG. 9, the standby routing device includes a receiving module 901 and a learning module 902, and further includes a forwarding module 903, configured to resolve the protocol entries according to the address. Forward the downstream traffic of the user.
以上内容是结合具体的实施方式对本发明所作的进一步详细说明,不能认定本发明的具体实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明的保护范围。The above is a further detailed description of the present invention in connection with the specific embodiments, and the specific embodiments of the present invention are not limited to the description. It will be apparent to those skilled in the art that the present invention may be made without departing from the spirit and scope of the invention.
工业实用性Industrial applicability
基于本发明实施例提供的上述技术方案,通过让主用路由设备在进行主备用路由设备切换之前,就将学习到的用户的地址解析协议表项发送给备用路由设备,让备用路由设备可以提前学习用户的地址解析协议表项。当主备用路由设备进行切换时,备用路由设备因已经学习了用户的地址解析协议表项,所以就可以直接根据该地址解析协议表项进行用户的下行流量的转发,从而节省了学习地址解析协议表项的时间,加快了主备用路由设备间的切换速度。 Based on the foregoing technical solution provided by the embodiment of the present invention, the primary routing device sends the learned address resolution protocol entry to the standby routing device before the primary routing device performs the primary and secondary routing device switching, so that the secondary routing device can advance the routing device. Learn the address resolution protocol entries of the user. When the primary and secondary routing devices switch, the secondary routing device learns the address resolution protocol entries of the user. Therefore, the downlink traffic of the user can be directly forwarded according to the address resolution protocol entry, thereby saving the learning address resolution protocol table. The time of the item speeds up the switching speed between the primary and secondary routing devices.

Claims (14)

  1. 一种主备用路由设备间的备份方法,包括:A backup method between primary and secondary routing devices, including:
    在主备用路由设备切换之前,主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备;Before the primary and secondary routing devices are switched, the primary routing device sends the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule.
    所述备用路由设备接收并学习所述地址解析协议表项。The alternate routing device receives and learns the address resolution protocol entry.
  2. 如权利要求1所述的主备用路由设备间的备份方法,其中,所述预设规则为:The method for backing up between primary and secondary routing devices according to claim 1, wherein the preset rule is:
    所述主用路由设备周期性地将学习到的用户的地址解析协议表项发送给备用路由设备;The primary routing device periodically sends the learned address resolution protocol entry of the learned user to the standby routing device;
    或所述主用路由设备在学习到的用户的地址解析协议表项的数量达到预设值时将其发送给备用路由设备。Or the primary routing device sends the learned address resolution protocol entry to the alternate routing device when the number of the address resolution protocol entries reaches a preset value.
  3. 如权利要求1或2所述的主备用路由设备间的备份方法,其中,在所述主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备之前还包括:配置主用路由设备和备用路由设备之间的跨机架备份组。The method for backing up between the primary and secondary routing devices according to claim 1 or 2, wherein before the primary routing device sends the learned address resolution protocol entry of the learned user to the backup routing device according to the preset rule, the method further includes : Configure a cross-rack backup group between the primary routing device and the alternate routing device.
  4. 一种主备用路由设备间的切换方法,包括如权利要求1-3任一项所述的主备用路由设备间的备份方法中的各步骤;还包括:当主备用路由设备切换时,备用路由设备根据所述地址解析协议表项进行用户的下行流量的转发。A method for switching between primary and secondary routing devices, including the steps in the method for backing up between primary and secondary routing devices according to any one of claims 1-3; and further comprising: when the primary and secondary routing devices switch, the alternate routing device Forwarding the downlink traffic of the user according to the address resolution protocol entry.
  5. 一种主备用路由设备间的备份方法,包括:A backup method between primary and secondary routing devices, including:
    在主备用路由设备切换之前,主用路由设备按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备,供备用路由设备学习。Before the primary and secondary routing devices are switched, the primary routing device sends the learned address resolution protocol entries of the learned user to the standby routing device for learning by the standby routing device.
  6. 一种主备用路由设备间的备份方法,包括:A backup method between primary and secondary routing devices, including:
    在主备用路由设备切换之前,备用路由设备接收主用路由设备发送的用户的地址解析协议表项;Before the primary and secondary routing device switches, the standby routing device receives the address resolution protocol entry of the user sent by the primary routing device.
    所述备用路由设备学习所述地址解析协议表项。The standby routing device learns the address resolution protocol entry.
  7. 一种主备用路由设备间的切换方法,包括如权利要求6所述的主备用路由设备间的备份方法中的各步骤; A method for switching between primary and secondary routing devices, comprising the steps in the backup method between primary and secondary routing devices according to claim 6;
    还包括:所述备用路由设备根据所述地址解析协议表项进行用户的下行流量的转发。The method further includes: the standby routing device forwarding the downlink traffic of the user according to the address resolution protocol entry.
  8. 一种路由系统,包括:主用路由设备和至少一个备用路由设备,所述主用路由设备用于在主备用路由设备切换之前,按照预设规则将主用路由设备学习到的用户的地址解析协议表项发送给备用路由设备;A routing system includes: an active routing device and at least one standby routing device, where the primary routing device is configured to resolve the address of the user learned by the primary routing device according to a preset rule before the primary standby routing device switches. The protocol entry is sent to the alternate routing device.
    所述备用路由设备用于接收并学习所述地址解析协议表项。The alternate routing device is configured to receive and learn the address resolution protocol entry.
  9. 如权利要求8所述的路由系统,其中,所述主用路由设备用于周期性地将其学习到的用户的地址解析协议表项发送给备用路由设备;或在其学习到的用户的地址解析协议表项的数量达到预设值时将其发送给备用路由设备。The routing system according to claim 8, wherein said primary routing device is configured to periodically transmit the address resolution protocol entry of the user it learned to the alternate routing device; or the address of the user at which it learned When the number of resolution protocol entries reaches the preset value, it is sent to the alternate routing device.
  10. 如权利要求8或9所述的路由系统,其中,所述路由系统还包括处理器,用于在所述主用路由设备按照预设规则将其学习到的用户的地址解析协议表项发送给备用路由设备之前,配置主用路由设备和备用路由设备之间的跨机架备份组。The routing system according to claim 8 or 9, wherein the routing system further comprises a processor, configured to send, to the primary routing device, the address resolution protocol entry of the user that it learns according to a preset rule Before the alternate routing device, configure a cross-rack backup group between the primary routing device and the alternate routing device.
  11. 如权利要求8或9所述的路由系统,其中,所述备用路由设备还用于在主备用路由设备切换时,根据所述地址解析协议表项进行用户的下行流量的转发。The routing system according to claim 8 or 9, wherein the backup routing device is further configured to forward the downlink traffic of the user according to the address resolution protocol entry when the primary standby routing device switches.
  12. 一种主用路由设备,包括:发送模块,设置为在主备用路由设备切换之前,按照预设规则将学习到的用户的地址解析协议表项发送给备用路由设备,供备用路由设备学习。An active routing device includes: a sending module, configured to send the learned address resolution protocol entry of the learned user to the standby routing device according to a preset rule before the primary and secondary routing device switches, for the standby routing device to learn.
  13. 一种备用路由设备,包括:接收模块和学习模块;An alternate routing device includes: a receiving module and a learning module;
    所述接收模块设置为在主备用路由设备切换之前,接收主用路由设备发送的用户的地址解析协议表项;The receiving module is configured to receive an address resolution protocol entry of the user sent by the primary routing device before the primary standby routing device switches;
    所述学习模块设置为学习所述地址解析协议表项。The learning module is configured to learn the address resolution protocol entry.
  14. 如权利要求13所述的备用路由设备,其中,还包括转发模块,设置为根据所述地址解析协议表项进行用户的下行流量的转发。 The backup routing device of claim 13, further comprising a forwarding module configured to forward the downlink traffic of the user according to the address resolution protocol entry.
PCT/CN2014/090077 2014-07-08 2014-10-31 Primary and alternate routing equipment, and backup, switching method and routing system therebetween WO2015184730A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410323432.6 2014-07-08
CN201410323432.6A CN105306358A (en) 2014-07-08 2014-07-08 Main and spare routing equipment, backup and switch method between equipment and routing system

Publications (1)

Publication Number Publication Date
WO2015184730A1 true WO2015184730A1 (en) 2015-12-10

Family

ID=54766006

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/090077 WO2015184730A1 (en) 2014-07-08 2014-10-31 Primary and alternate routing equipment, and backup, switching method and routing system therebetween

Country Status (2)

Country Link
CN (1) CN105306358A (en)
WO (1) WO2015184730A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107968827A (en) * 2017-11-29 2018-04-27 杭州迪普科技股份有限公司 A kind of session backup method and device based on multichannel agreement
CN109995648A (en) * 2017-12-29 2019-07-09 北京华为数字技术有限公司 A kind of equipment switching method and forwarding device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102647304A (en) * 2012-05-09 2012-08-22 中兴通讯股份有限公司南京分公司 Synchronizing method of address resolution protocols and device
CN102684915A (en) * 2012-04-25 2012-09-19 中兴通讯股份有限公司 Method and device for synchronizing ARP tables of host device and backup device through network management system
CN102711234A (en) * 2012-05-22 2012-10-03 中兴通讯股份有限公司 Method for synchronizing ARP (address resolution protocol) tables between master and slave VRRP (virtual router redundancy protocol) devices and VRRP device
CN103001868A (en) * 2012-12-31 2013-03-27 杭州华三通信技术有限公司 Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582802B (en) * 2009-06-12 2013-04-24 华为技术有限公司 Operation maintenance system and method of network access device
CN102255633B (en) * 2010-05-20 2015-08-12 中兴通讯股份有限公司 A kind of method and system of multi-stand user backup

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102684915A (en) * 2012-04-25 2012-09-19 中兴通讯股份有限公司 Method and device for synchronizing ARP tables of host device and backup device through network management system
CN102647304A (en) * 2012-05-09 2012-08-22 中兴通讯股份有限公司南京分公司 Synchronizing method of address resolution protocols and device
CN102711234A (en) * 2012-05-22 2012-10-03 中兴通讯股份有限公司 Method for synchronizing ARP (address resolution protocol) tables between master and slave VRRP (virtual router redundancy protocol) devices and VRRP device
CN103001868A (en) * 2012-12-31 2013-03-27 杭州华三通信技术有限公司 Method and device used for synchronous ARP (Address Resolution Protocol) list item of virtual router redundancy protocol backup set

Also Published As

Publication number Publication date
CN105306358A (en) 2016-02-03

Similar Documents

Publication Publication Date Title
WO2018054156A1 (en) Vxlan message forwarding method, device and system
JP4729119B2 (en) Communication device in label switching network
EP1905203B1 (en) Router and method for protocol process migration
EP2675121B1 (en) Vpls fast rerouting method and device
WO2017002017A1 (en) Fast convergence in vrrp with multipoint bidirectional forwarding detection
WO2014177967A1 (en) Arp-table synchronisation in vrrp-based routers
CN102638389A (en) Redundancy backup method and system of TRILL (Transparent Interconnection over Lots of Links) network
EP3217608B1 (en) Switchback delay methods and devices
CN102142948A (en) Data forwarding method, device and system
WO2016034127A1 (en) System and method for achieving dual-node interconnection pseudo-wire
WO2016095322A1 (en) Vrrp-based data transmission method and apparatus
CN113259235B (en) IPv 6-based dual-active route redundancy method and system
CN105591800A (en) Traffic protection method and device
CN102209035B (en) Traffic forwarding method and devices
CN114567522B (en) Message forwarding method and device
WO2016065804A1 (en) Traffic load balancing method and routing device
EP3035609B1 (en) Data transmission method and device
CN101262407A (en) A method for virtual router to establish tunnel
EP3291486B1 (en) Selective transmission of bidirectional forwarding detection (bfd) messages for verifying multicast connectivity
WO2012103708A1 (en) Media access control address protection method and switch
EP3695569B1 (en) A system and method for providing a layer 2 fast re-switch for a wireless controller
CN102651711B (en) A kind of methods, devices and systems set up and use the floating network segment
WO2015184730A1 (en) Primary and alternate routing equipment, and backup, switching method and routing system therebetween
CN107547347B (en) VNI-based path adjustment method and device
US20080212610A1 (en) Communication techniques and generic layer 3 automatic switching protection

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

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

Country of ref document: EP

Kind code of ref document: A1