WO2007062559A1 - A method and gateway device for service recovery when master and slaving gateway devices switched - Google Patents

A method and gateway device for service recovery when master and slaving gateway devices switched Download PDF

Info

Publication number
WO2007062559A1
WO2007062559A1 PCT/CN2006/002080 CN2006002080W WO2007062559A1 WO 2007062559 A1 WO2007062559 A1 WO 2007062559A1 CN 2006002080 W CN2006002080 W CN 2006002080W WO 2007062559 A1 WO2007062559 A1 WO 2007062559A1
Authority
WO
WIPO (PCT)
Prior art keywords
gateway device
user equipment
bgp
module
vrrp
Prior art date
Application number
PCT/CN2006/002080
Other languages
French (fr)
Chinese (zh)
Inventor
Yi Xiong
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Priority to CN200680013610.9A priority Critical patent/CN100527716C/en
Publication of WO2007062559A1 publication Critical patent/WO2007062559A1/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/56Routing software
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/40Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and a gateway device for service recovery after a state switch of an active and standby gateway device.
  • VRRP Virtual Router Redundancy Protocol
  • the user equipment is a Layer 3 device such as a router. It runs BGP with the VRJRP-enabled gateway device and exchanges routes with each other.
  • BGP Border Gateway Protocol
  • the user equipment removes the Border Gateway Protocol (BGP) established between the primary gateway device and the previous primary gateway device. Neighbor relationship, and then establish a BGP neighbor relationship with the new primary gateway device.
  • BGP Border Gateway Protocol
  • the gateway device does not use the VRRP function, and the BGP protocol connection is established between the user equipment and the dual gateway device by using the interface of the gateway device or the loopback address, and the user equipment uses the preferred technology selection of the BGP protocol itself.
  • a gateway device acts as a service uplink.
  • the user equipment uses the convergence technology of the BGP protocol to sense its fault and selects another gateway device as the service uplink.
  • the service is interrupted, and when the number of forwarding entries is large, the service is interrupted. The time is still long, and it is difficult to meet the requirements of users for network reliability.
  • the present invention provides a method for service recovery after the state switching of the active and standby gateway devices and a corresponding gateway device, and establishes a new primary gateway device and user setting without causing service interruption. Prepare a connection between the BGP protocol.
  • a method for service recovery after a state switch of an active/standby gateway device includes:
  • the gateway device uses the virtual redundant routing protocol VRRP virtual address as the source address of the BGP protocol.
  • the new primary gateway device After the primary and secondary state of the gateway device is switched, the new primary gateway device establishes a BGP connection with the user equipment by gracefully restarting the GR.
  • the gateway device includes a VRRP module and a BGP module, where the user equipment includes a BGP module, and the new primary gateway device establishes a BGP connection with the user equipment in the manner of the GR.
  • the VRRP module in the new primary gateway device notifies the gateway device state switching message to the BGP module of the new primary gateway device;
  • the BGP module of the new primary gateway device After receiving the gateway device state switching message, the BGP module of the new primary gateway device sends a BGP connection request packet to the BGP module of the user equipment;
  • the BGP module of the user equipment processes the received BGP connection request message in GR mode.
  • the sending, by the BGP module of the user equipment, the connection request message of the BGP protocol includes: the BGP module of the gateway device inserts a restart flag in the neighbor setup message, and initiates a protocol connection request with the user equipment.
  • the method further includes:
  • An IBGP protocol connection is established between the gateway devices.
  • the new primary gateway device and the previous primary gateway device have routes advertised by the user equipment.
  • the new primary gateway device establishes a BGP connection with the user equipment.
  • the new primary gateway device forwards the traffic coming back from the bearer network to the user equipment by using the route.
  • the new primary gateway device is established with the user equipment by using a GR manner.
  • the new primary gateway device re-learns from the user equipment the route that the previous primary gateway device points to the user equipment;
  • the new primary gateway device forwards the route to the previous primary network through the IBGP protocol.
  • the previous primary gateway device retains the received route and deletes the corresponding route learned directly from the user equipment according to the received route;
  • the new primary gateway device After the GR of the new primary gateway device and the user equipment ends, the new primary gateway device deletes all routes directed to the user equipment learned from the previous primary gateway device; and the new primary gateway device is used to the previous primary device.
  • the gateway device advertises that the GR ends, and the previous primary gateway device deletes all routes obtained directly from the user equipment.
  • the new active gateway device advertises the GR end to the previous active gateway device by extending the VRRP protocol packet.
  • the new primary gateway device establishes a BGP connection with the user equipment
  • the source port number different from the port number of the previous primary gateway device is used.
  • the method further includes: when the primary gateway device establishes a connection with the user equipment, the primary gateway device notifies the secondary gateway device of the source port number used by the user equipment to establish a BGP neighbor by extending the VRJ P protocol.
  • a gateway device includes a BGP module and a VRRP module; and further includes a VRRP switch sensing module and a handover notification module;
  • the switching notification module is configured to advertise a gateway device state switching message to the VRRP switching sensing module
  • the VRRP switch-aware module initiates a BGP connection request message to the BGP module of the user equipment according to the received gateway device state switching message, and initiates a process of establishing a BGP connection with the user equipment by using the graceful restart GR.
  • the switching notification module is embedded in the VRRP module.
  • the VRRP switch sensing module is embedded in the BGP module of the gateway device.
  • the VRRP switch sensing module puts a restart flag in the neighbor setup message, and initiates a protocol connection request with the user equipment.
  • the invention establishes a BGP protocol connection between the new primary gateway device and the user equipment by using the GR mode when the state of the active and standby gateway devices is switched, so as not to cause service interruption.
  • the slave can be resolved.
  • the problem that the traffic returned by the network is interrupted for a long time.
  • the service interruption time caused by the state transition of the gateway device can be effectively shortened.
  • the fault time of the end-to-end service can be made smaller than Ls, greatly better than the traditional technology of a dozen seconds, or even tens of seconds.
  • FIG. 1 is a schematic diagram of a basic networking scheme adopted by an embodiment of the present invention
  • Figure is a flow chart of an embodiment of the method of the present invention.
  • FIG. 3 is a schematic diagram of a system in accordance with an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a basic networking scheme according to an embodiment of the present invention.
  • the gateway device 111 is the default primary gateway device, and the gateway device 112 is the backup gateway device.
  • the signaling of the gateway device is between the gateway device 111—the switch 112—the switch 122—the gateway device 121. Hosted on the link.
  • the virtual redundant routing VRRP protocol is run between the gateway devices 111 and 121; the gateway devices 111, 121 and the user equipment 130 are configured to gracefully restart the GR technology.
  • a connection of the BGP protocol is established between the user equipment 130 and the primary gateway device 111.
  • the gateway device 111 uses the VRRP virtual address as the source address of the BGP protocol connection; the user equipment 130 uses the VRRP virtual address as the destination address of the BGP protocol connection.
  • the gateway devices 111 and 121 are both provided with a VRRP module and a BGP module (not shown), and the user device 130 is provided with a BGP module (not shown).
  • the binding relationship between the VRRP protocol and the BGP protocol is configured on the gateway device (including the primary gateway device 111 and the backup gateway device 121).
  • the message exchange between the specified neighbor (the user equipment 130) and the state of the gateway device is affected by the protocol. Only the master gateway device 111 can receive and send the protocol report with the user equipment 130. The backup gateway device 121 neither receives nor sends protocol packets. Therefore, the primary gateway device 111 can establish a normal protocol neighbor relationship with the user equipment 130, and the backup gateway device 121 This kind of neighbor relationship cannot be established.
  • the protocol neighbor is the gateway device 111 or the gateway device 121
  • the neighbor address of the BGP protocol is the gateway address (VRRP virtual address), and accordingly, the next forwarding entry generated according to the BGP protocol.
  • the hop address is also the gateway address (VRRP virtual address).
  • the destination MAC address of the packet forwarded by the forwarding entry is the MAC address corresponding to the VRRP virtual address.
  • the VRRP protocol can only be received by the primary gateway device 111. Perform three-layer forwarding.
  • gateway device 121 that switches to the active state can establish a normal protocol neighbor relationship with the user equipment 130, and the gateway device 111 that switches to the standby state cannot establish such a neighbor. relationship.
  • the status switch of the active and standby gateway devices includes the following situations: A. When the gateway device 111 fails, the gateway device 121 detects that the gateway device 111 is faulty by VRRP signaling or other means, and switches to the primary gateway device; B. the gateway device 111 The priority between the gateway device 121 and the gateway device 121 is reversed, the gateway device 121 is configured to be in the preemptive mode, and the gateway device 121 actively switches to the primary gateway device. C. Modify the configuration of the gateway device 111 to leave the gateway backup group. After receiving the corresponding signaling message, the device actively switches to the primary gateway device.
  • the method for the service recovery after the state-switching of the active and standby gateways is enabled by the Graceful Restart (GR) mode to establish a new primary service without causing service interruption.
  • GR Graceful Restart
  • an embodiment of the method of the present invention includes:
  • Step 201 The state of the gateway device is switched.
  • the gateway device 111 is a previous primary gateway device, and after the gateway device status is switched, the gateway device 121 is upgraded to a new primary gateway device.
  • Step 202 The VRJ P module of the new primary gateway device notifies the BGP module of the new primary gateway device to switch state.
  • the VRJ P module reports the gateway device status switch message to the BGP module.
  • Step 203 The BGP module of the new primary gateway device initiates a BGP connection request packet to the BGP module of the user equipment.
  • the gateway device 121 is configured with the GR capability of the BGP.
  • the BGP module of the gateway device 121 understands the gateway device state switching message as a GR event, and initiates a protocol connection with the user equipment.
  • the BGP module is in the OPEN (neighbor establishment). ) Put a Restart flag in the message.
  • Step 204 The BGP module of the user equipment performs an elegant restart according to the received connection request message.
  • the gateway device 111 or the gateway device 121 is not distinguished from the packet
  • the gateway device 111 or the gateway device 121 is not distinguished from the packet
  • the user equipment 130 can trigger the GR capability of the user equipment 130, and the user equipment 130 can establish a protocol neighbor with the gateway device 121.
  • the established forwarding entries are not deleted, and the uplink service of the user equipment is not guaranteed. Interrupted.
  • an IBGP neighbor is established between the primary gateway device and the backup gateway device.
  • the primary gateway device is the gateway device 111 and the backup gateway device is the gateway device 121.
  • the gateway device 111 forwards the route learned from the user equipment 130 to the gateway device 121, and the next hop address is set to be unmodified, and still points to the user equipment 130, so that the gateway device 121 also has the route advertised by the user equipment 130. .
  • the gateway device 111 After the gateway device status is switched, the gateway device 111 does not immediately delete the route learned by the BGP neighbor established by the user equipment 130, and the gateway device 121 does not immediately delete the route from the gateway device 111 to the user equipment 130, and still uses the route.
  • the route forwards the traffic returned by the bearer network to the user equipment 130 to ensure that the service returned to the user equipment 130 is not interrupted.
  • the gateway device 121 re-learns the route to the user equipment 130.
  • the gateway device 121 preferably routes the information learned from the user equipment 130 and forwards it to the gateway device 111 through the IBGP neighbor.
  • the gateway device 111 prefers the route sent by the gateway device 121, and deletes the corresponding route learned from the user equipment 130 and the route sent by the foregoing gateway device 121.
  • the gateway device deletes all the routes from the gateway device 111 to the user equipment 130, and at the same time, by extending VRRP protocol packets or other protocol packets such as IBGP, the network is notified.
  • the gateway device 111 deletes all routes obtained directly from the user device 130. So far, all the routes to the user equipment 130 on the gateway device 121 are obtained directly from the BGP neighbors established with the user equipment 130, and all the routes to the user equipment 130 on the gateway device 111 are from the IBGP established with the gateway device 111. The neighbors learned. In this process, the gateway device 111 and the gateway device 121 do not actively delete the forwarding items that are directed to the user equipment 130, but use the technology of combining update and deletion, which effectively ensures that the traffic returned to the user equipment 130 is not due to the status of the gateway device. The switch was interrupted.
  • the primary gateway device can advertise the source port number used by the BGP neighbor established by the user equipment with the user equipment by extending the VR P protocol or other protocols such as IBGP, so that the standby gateway device becomes the new primary gateway. After the device establishes a BGP neighbor relationship with the user equipment, you can avoid using this port number as the source port number.
  • the gateway device provided by the present invention is provided with a handover notification module 311 and a VRRP handover awareness module 321 .
  • the switch notification module 311 can be embedded in the VRRP module 310 of the gateway device, and the VRRP switch perception module 321 can be embedded in the BGP module 320 of the gateway device.
  • the handover notification module 311 is configured to notify the VRRP handover awareness module 321 of the gateway device status switching message.
  • the VRRP switch sensing module 321 initiates a BGP connection request message to the BGP module 400 of the user equipment according to the received gateway device state switching message.
  • the VRRP switch sensing module 321 of the gateway device understands the gateway device state switching message as a GR event, and initiates a protocol connection with the user equipment. For example, put a Restart in the OPEN (Neighbor Establishment) message. mark.
  • the BGP module 400 of the user equipment performs graceful restart of the GR according to the received BGP protocol connection request message.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A method and a gateway device for service recovery when master and slaving gateway devices switched, the said gateway device includes a VRRP module embedding a switching notify module and a BGP module embedding a VRRP apperceiving module, and the VRRP protocol is functioned between said master and slaving gateway devices. The gateway device uses the VRRP virtual address as the source address of the BGP protocol when the BGP protocol connection between the user device and the gateway device is connected, and the new master gateway device establishes BGP protocol connection with the user device by GR manner, after the gateway devices switching the states between master and slaving, so that it is able to ensure the protocol connection is established smoothly between the user device and the new master gateway device. It can short the service interrupt time caused by switching the master and slaving states of the gateway device, and enhance the network reliability to meet the user’s demand by this method.

Description

主备网关设备状态切换后业务恢复的方法及网关设备 技术领域 本发明涉及通信领域, 尤其是涉及一种主备网关设备状态切换后业 务恢复的方法及网关设备。  TECHNICAL FIELD The present invention relates to the field of communications, and in particular, to a method and a gateway device for service recovery after a state switch of an active and standby gateway device.
背景技术 Background technique
随着网络技术的发展, 用户对网络可靠性的要求日益提高, 用户设 备通常都要求接入双网关设备, 网关设备之间运行虚拟冗余路由协议 ( Virtual Router Redundancy Protocol, VRRP ) , 以使得网关设备的倒换对 用户设备是透明的。 在某些场景下, 用户设备是路由器等三层设备, 与 运行 VRJRP协议的网关设备之间运行 BGP协议, 彼此之间交互路由。 现 有技术中, 在此种应用场景下, 如果主用网关设备故障导致网关设备状 态发生切换, 用户设备拆除与先前的主用网关设备之间建立的边界网关 协议(Border Gateway Protocol, BGP ) 的邻居关系, 再与新的主用网关 设备建立 BGP协议的邻居关系,这其中存在一个 BGP协议生成的转发表 项先删除再创建的一个过程, 将导致较长时间 (几秒、 十几秒甚至几十 秒) 的业务中断, 难以满足客户对网絡可靠性的要求。  With the development of network technology, users have increasingly demanded network reliability. User equipment usually requires access to dual gateway devices. Virtual Router Redundancy Protocol (VRRP) is implemented between gateway devices to enable gateways. The switching of the device is transparent to the user device. In some scenarios, the user equipment is a Layer 3 device such as a router. It runs BGP with the VRJRP-enabled gateway device and exchanges routes with each other. In the prior art, in the application scenario, if the primary gateway device fails to cause the gateway device state to be switched, the user equipment removes the Border Gateway Protocol (BGP) established between the primary gateway device and the previous primary gateway device. Neighbor relationship, and then establish a BGP neighbor relationship with the new primary gateway device. There is a process in which a forwarding entry generated by the BGP protocol is deleted and then created, which will result in a long time (a few seconds, ten seconds, or even Tens of seconds of business interruption, it is difficult to meet customer requirements for network reliability.
在另一种现有的网絡系统中, 网关设备不使用 VRRP功能, 用户设 备与双网关设备之间使用网关设备的接口或者环回地址建立 BGP协议连 接, 用户设备利用 BGP协议自身的优选技术选择一个网关设备作为业务 上行出口。 当被选中的网关设备发生故障时, 用户设备利用 BGP协议自 身的收敛技术感知其故障, 选择另外一个网关设备作为业务上行出口。 在该现有技术中, 当用户设备感知主用网关设备故障并且将指向主用网 关设备的转发表项修改成指向备用网关期间, 业务是中断的, 当该转发 项数量较多时, 其业务中断时间依然比较长, 难以满足用户对网络可靠 性的要求。  In another existing network system, the gateway device does not use the VRRP function, and the BGP protocol connection is established between the user equipment and the dual gateway device by using the interface of the gateway device or the loopback address, and the user equipment uses the preferred technology selection of the BGP protocol itself. A gateway device acts as a service uplink. When the selected gateway device fails, the user equipment uses the convergence technology of the BGP protocol to sense its fault and selects another gateway device as the service uplink. In this prior art, when the user equipment senses that the primary gateway device is faulty and changes the forwarding entry pointing to the primary gateway device to point to the backup gateway, the service is interrupted, and when the number of forwarding entries is large, the service is interrupted. The time is still long, and it is difficult to meet the requirements of users for network reliability.
发明内容 Summary of the invention
本发明提供一种主备网关设备状态切换后业务恢复的方法及相应的 网关设备, 在不引起业务中断的情况下建立新的主用网关设备与用户设 备之间的 BGP协议的连接。 The present invention provides a method for service recovery after the state switching of the active and standby gateway devices and a corresponding gateway device, and establishes a new primary gateway device and user setting without causing service interruption. Prepare a connection between the BGP protocol.
根据本发明的一个方面, 一种主备网关设备状态切换后业务恢复的 方法, 包括:  According to an aspect of the present invention, a method for service recovery after a state switch of an active/standby gateway device includes:
当用户设备与网关设备之间建立边界网关协议 BGP连接时, 网关设 备使用虛拟冗余路由协议 VRRP虚地址作为 BGP协议的源地址;  When a border gateway protocol BGP connection is established between the user equipment and the gateway device, the gateway device uses the virtual redundant routing protocol VRRP virtual address as the source address of the BGP protocol.
在网关设备主备用状态切换之后, 新的主用网关设备采用优雅重启 GR的方式与用户设备建立 BGP连接。  After the primary and secondary state of the gateway device is switched, the new primary gateway device establishes a BGP connection with the user equipment by gracefully restarting the GR.
可选地, 所述网关设备包括 VRRP模块和 BGP模块, 所述用户设备 包括 BGP模块; 所述的新的主用网关设备采用 GR的方式与用户设备建 立 BGP连接具体包括:  Optionally, the gateway device includes a VRRP module and a BGP module, where the user equipment includes a BGP module, and the new primary gateway device establishes a BGP connection with the user equipment in the manner of the GR.
新的主用网关设备中的 VRRP模块将网关设备状态切换消息通告给 该新的主用网关设备的 BGP模块;  The VRRP module in the new primary gateway device notifies the gateway device state switching message to the BGP module of the new primary gateway device;
所述新的主用网关设备的 BGP模块收到网关设备状态切换消息后, 向用户设备的 BGP模块发送 BGP协议的连接请求报文;  After receiving the gateway device state switching message, the BGP module of the new primary gateway device sends a BGP connection request packet to the BGP module of the user equipment;
所述用户设备的 BGP模块以 GR方式处理所收到的 BGP连接请求报 文。  The BGP module of the user equipment processes the received BGP connection request message in GR mode.
可选地,所述的向用户设备的 BGP模块发送 BGP协议的连接请求报 文具体包括: 网关设备的 BGP模块在邻居建立报文中放入重启标记, 发 起与用户设备的协议连接请求。  Optionally, the sending, by the BGP module of the user equipment, the connection request message of the BGP protocol includes: the BGP module of the gateway device inserts a restart flag in the neighbor setup message, and initiates a protocol connection request with the user equipment.
可选地, 该方法还包括:  Optionally, the method further includes:
网关设备之间建立有 IBGP协议连接,新的主用网关设备和先前主用 网关设备都有用户设备发布的路由; 在网关设备状态切换之后, 新的主 用网关设备与用户设备建立 BGP连接时, 新的主用网关设备使用所述的 路由将从承载网回来的流量转发给用户设备。  An IBGP protocol connection is established between the gateway devices. The new primary gateway device and the previous primary gateway device have routes advertised by the user equipment. After the gateway device state is switched, the new primary gateway device establishes a BGP connection with the user equipment. The new primary gateway device forwards the traffic coming back from the bearer network to the user equipment by using the route.
可选地, 所述的新的主用网关设备采用 GR的方式与用户设备建立 Optionally, the new primary gateway device is established with the user equipment by using a GR manner.
BGP连接时, 还包括: When BGP is connected, it also includes:
新的主用网关设备从用户设备重新学到先前主用网关设备指向用户 设备的路由;  The new primary gateway device re-learns from the user equipment the route that the previous primary gateway device points to the user equipment;
新的主用网关设备通过 IBGP协议将所述的路由转发给先前主用网 关设备, 先前主用网关设备保留所收到的所述路由并根据所收到的所述 路由删除其从用户设备直接学到的相对应的路由; The new primary gateway device forwards the route to the previous primary network through the IBGP protocol. Off the device, the previous primary gateway device retains the received route and deletes the corresponding route learned directly from the user equipment according to the received route;
当新的主用网关设备与用户设备的 GR结束之后,新的主用网关设备 删除掉所有从先前主用网关设备学到的指向用户设备的路由; 同时新的 主用网关设备向先前主用网关设备通告 GR结束,先前主用网关设备删除 掉所有直接从用户设备获得的路由。  After the GR of the new primary gateway device and the user equipment ends, the new primary gateway device deletes all routes directed to the user equipment learned from the previous primary gateway device; and the new primary gateway device is used to the previous primary device. The gateway device advertises that the GR ends, and the previous primary gateway device deletes all routes obtained directly from the user equipment.
可选地, 所述的新的主用网关设备通过扩展 VRRP协议报文向先前 主用网关设备通告 GR结束。  Optionally, the new active gateway device advertises the GR end to the previous active gateway device by extending the VRRP protocol packet.
可选地, 新的主用网关设备与用户设备建立 BGP连接时, 使用与先 前主用网关设备连接的端口号不同的源端口号。  Optionally, when the new primary gateway device establishes a BGP connection with the user equipment, the source port number different from the port number of the previous primary gateway device is used.
可选地, 该方法还包括: 当主用网关设备与用户设备建立连接时, 主用网关设备通过扩展 VRJ P协议向备用网关设备通告其与用户设备建 立 BGP邻居使用的源端口号。  Optionally, the method further includes: when the primary gateway device establishes a connection with the user equipment, the primary gateway device notifies the secondary gateway device of the source port number used by the user equipment to establish a BGP neighbor by extending the VRJ P protocol.
根据本发明的另一方面, 一种网关设备, 包括 BGP模块和 VRRP模 块; 还包括 VRRP切换感知模块和切换通知模块; 其中,  According to another aspect of the present invention, a gateway device includes a BGP module and a VRRP module; and further includes a VRRP switch sensing module and a handover notification module;
所述的切换通知模块用于通告网关设备状态切换消息给 VRRP切换 感知模块;  The switching notification module is configured to advertise a gateway device state switching message to the VRRP switching sensing module;
所述的 VRRP切换感知模块根据所收到的网关设备状态切换消息向 用户设备的 BGP模块发起 BGP协议连接请求报文, 启动采用优雅重启 GR的方式与用户设备建立 BGP连接的过程。  The VRRP switch-aware module initiates a BGP connection request message to the BGP module of the user equipment according to the received gateway device state switching message, and initiates a process of establishing a BGP connection with the user equipment by using the graceful restart GR.
可选地, 所述的切换通知模块内嵌于 VRRP模块内部。  Optionally, the switching notification module is embedded in the VRRP module.
可选地 , 所述的 VRRP切换感知模块内嵌于网关设备的 BGP模块内 部。  Optionally, the VRRP switch sensing module is embedded in the BGP module of the gateway device.
可选地, 所述 VRRP切换感知模块在邻居建立报文中放入重启标记, 发起与用户设备的协议连接请求。  Optionally, the VRRP switch sensing module puts a restart flag in the neighbor setup message, and initiates a protocol connection request with the user equipment.
本发明通过在主备网关设备状态发生切换的时候, 采用 GR的方式, 建立新的主用网关设备与用户设备之间的 BGP协议的连接, 从而不引起 业务的中断。  The invention establishes a BGP protocol connection between the new primary gateway device and the user equipment by using the GR mode when the state of the active and standby gateway devices is switched, so as not to cause service interruption.
此外, 由于在主备网关设备之间建立 IBGP邻居, 因此可以解决从承 载网返回的流量长时间中断的问题。 In addition, since IBGP neighbors are established between the master and backup gateway devices, the slave can be resolved. The problem that the traffic returned by the network is interrupted for a long time.
在用户设备与网关设备之间建立 BGP邻居的场景下, 可以有效的缩 短网关设备状态切换造成的业务中断时间, 在结合 VRRP故障快速检测 技术的基础上, 可以使得端到端业务的故障时间小于 ls, 大大优于传统 技术的十几秒, 甚至几十秒。  In the scenario of establishing a BGP peer relationship between the user equipment and the gateway device, the service interruption time caused by the state transition of the gateway device can be effectively shortened. Based on the fast detection technology of the VRRP fault, the fault time of the end-to-end service can be made smaller than Ls, greatly better than the traditional technology of a dozen seconds, or even tens of seconds.
附图说明 图 1为本发明实施方式采用的基本組网方案示意图; BRIEF DESCRIPTION OF DRAWINGS FIG. 1 is a schematic diagram of a basic networking scheme adopted by an embodiment of the present invention;
图 为本发明的方法的实施例的流程图;  Figure is a flow chart of an embodiment of the method of the present invention;
图 3为本发明的一实施例的系统的示意图。  3 is a schematic diagram of a system in accordance with an embodiment of the present invention.
具体实施方式 为使本发明的目的、 技术方案和优点表达得更加清楚明白, 下面结 合附图及具体实施例对本发明作进一步详细的说明。 DETAILED DESCRIPTION OF THE INVENTION The present invention will be further described in detail with reference to the accompanying drawings and specific embodiments.
图 1为本发明实施方式的基本组网方案示意图。 参见图 1 , 假设网关 设备 111为缺省的主用网关设备, 网关设备 112为备用网关设备, 网关设 备的信令在网关设备 111—一交换机 112——交换机 122——网关设备 121 之间的链路上承载。  FIG. 1 is a schematic diagram of a basic networking scheme according to an embodiment of the present invention. Referring to FIG. 1 , it is assumed that the gateway device 111 is the default primary gateway device, and the gateway device 112 is the backup gateway device. The signaling of the gateway device is between the gateway device 111—the switch 112—the switch 122—the gateway device 121. Hosted on the link.
所述的网关设备 111和 121之间运行虚拟冗余路由 VRRP协议; 所 述的网关设备 111、 121和用户设备 130均配置优雅重启 GR技术。  The virtual redundant routing VRRP protocol is run between the gateway devices 111 and 121; the gateway devices 111, 121 and the user equipment 130 are configured to gracefully restart the GR technology.
用户设备 130和主用网关设备 111之间建立 BGP协议的连接。 所述 的网关设备 111使用 VRRP虚地址作为 BGP协议连接的源地址; 所述的 用户设备 130使用 VRRP虚地址作为 BGP协议连接的目的地址。  A connection of the BGP protocol is established between the user equipment 130 and the primary gateway device 111. The gateway device 111 uses the VRRP virtual address as the source address of the BGP protocol connection; the user equipment 130 uses the VRRP virtual address as the destination address of the BGP protocol connection.
网关设备 111和 121均设置有 VRRP模块和 BGP模块(图未示), 用户设备 130设置有 BGP模块(图未示)。  The gateway devices 111 and 121 are both provided with a VRRP module and a BGP module (not shown), and the user device 130 is provided with a BGP module (not shown).
此外, 在网关设备 (包括主用网关设备 111和备用网关设备 121 )上 配置 VRRP协议与 BGP协议的绑定关系。 依据所述协议与指定邻居(用 户设备 130 )之间进行的报文交互受其绑定的网关设备状态的影响, 只有 主用网关设备 111能正常接收、发送与用户设备 130之间的协议报文, 而 备用网关设备 121 则既不接收也不发送协议报文。 因此, 主用网关设备 111可以与用户设备 130建立正常的协议邻居关系, 而备用网关设备 121 则无法建立此种邻居关系。 对于用户设备 130说, 并不关心其协议邻居 是网关设备 111还是网关设备 121 , 其 BGP协议的邻居地址是网关地址 ( VRRP虛地址),相应地,依据 BGP协议生成的转发表项的下一跳地址 也是网关地址 (VRRP虚地址), 由该转发表项指导转发的报文的目的 MAC地址是 VRRP虛地址对应的 MAC地址, 根据 VRRP协议的原理, 只能由主用网关设备 111接收并进行三层转发。 In addition, the binding relationship between the VRRP protocol and the BGP protocol is configured on the gateway device (including the primary gateway device 111 and the backup gateway device 121). The message exchange between the specified neighbor (the user equipment 130) and the state of the gateway device is affected by the protocol. Only the master gateway device 111 can receive and send the protocol report with the user equipment 130. The backup gateway device 121 neither receives nor sends protocol packets. Therefore, the primary gateway device 111 can establish a normal protocol neighbor relationship with the user equipment 130, and the backup gateway device 121 This kind of neighbor relationship cannot be established. For the user equipment 130, it is not concerned whether the protocol neighbor is the gateway device 111 or the gateway device 121, and the neighbor address of the BGP protocol is the gateway address (VRRP virtual address), and accordingly, the next forwarding entry generated according to the BGP protocol. The hop address is also the gateway address (VRRP virtual address). The destination MAC address of the packet forwarded by the forwarding entry is the MAC address corresponding to the VRRP virtual address. According to the principle of the VRRP protocol, the VRRP protocol can only be received by the primary gateway device 111. Perform three-layer forwarding.
当然, 在发生主备网关设备状态切换后, 则只有切换为主用状态的 网关设备 121可以与用户设备 130建立正常的协议邻居关系, 而切换为 备用状态的网关设备 111则无法建立此种邻居关系。  Of course, after the status switch of the active and standby gateway devices occurs, only the gateway device 121 that switches to the active state can establish a normal protocol neighbor relationship with the user equipment 130, and the gateway device 111 that switches to the standby state cannot establish such a neighbor. relationship.
主备网关设备发生状态切换包括如下情形: A.当网关设备 111发生故 障时, 网关设备 121通过 VRRP信令或者其他方式检测到网关设备 111 故障,切换成主用网关设备; B.网关设备 111与网关设备 121之间的优先 级发生翻转, 网关设备 121配置成抢占模式, 网关设备 121主动切换成 主用网关设备; C.修改网关设备 111的配置, 使其离开网关备份组, 网关 设备 121收到相应的信令报文之后, 主动切换成主用网关设备。  The status switch of the active and standby gateway devices includes the following situations: A. When the gateway device 111 fails, the gateway device 121 detects that the gateway device 111 is faulty by VRRP signaling or other means, and switches to the primary gateway device; B. the gateway device 111 The priority between the gateway device 121 and the gateway device 121 is reversed, the gateway device 121 is configured to be in the preemptive mode, and the gateway device 121 actively switches to the primary gateway device. C. Modify the configuration of the gateway device 111 to leave the gateway backup group. After receiving the corresponding signaling message, the device actively switches to the primary gateway device.
当主备网关设备状态发生切换后, 本发明提供的主备网关设备状态 切换后业务恢复的方法通过优雅重启 (Gracef l Restart, GR ) 的方式, 在不引起业务中断的情况下建立新的主用网关设备与用户设备之间的 BGP协议的连接。  After the status of the active and standby gateways is switched, the method for the service recovery after the state-switching of the active and standby gateways is enabled by the Graceful Restart (GR) mode to establish a new primary service without causing service interruption. The connection of the BGP protocol between the gateway device and the user device.
如图 2所示, 本发明的方法的实施方式包括:  As shown in FIG. 2, an embodiment of the method of the present invention includes:
步骤 201、 网关设备状态发生切换。  Step 201: The state of the gateway device is switched.
例如, 网关设备 111为先前主用网关设备, 当网关设备状态发生切换 后, 网关设备 121升级为新的主用网关设备。  For example, the gateway device 111 is a previous primary gateway device, and after the gateway device status is switched, the gateway device 121 is upgraded to a new primary gateway device.
步骤 202、新的主用网关设备的 VRJ P模块通知新的主用网关设备的 BGP模块发生状态切换。  Step 202: The VRJ P module of the new primary gateway device notifies the BGP module of the new primary gateway device to switch state.
当网关设备状态发生切换后, VRJ P模块将网关设备状态切换消息通 告给 BGP模块。  After the gateway device status is switched, the VRJ P module reports the gateway device status switch message to the BGP module.
步骤 203、新的主用网关设备的 BGP模块向用户设备的 BGP模块发 起 BGP协议连接请求报文。 如前所述, 网关设备 121配置有 BGP的 GR能力, 网关设备 121的 BGP模块将该网关设备状态切换消息理解成 GR事件, 主动发起与用户 设备的协议连接;例如 BGP模块在 OPEN(邻居建立)报文中放入 Restart (重起)标记。 Step 203: The BGP module of the new primary gateway device initiates a BGP connection request packet to the BGP module of the user equipment. As described above, the gateway device 121 is configured with the GR capability of the BGP. The BGP module of the gateway device 121 understands the gateway device state switching message as a GR event, and initiates a protocol connection with the user equipment. For example, the BGP module is in the OPEN (neighbor establishment). ) Put a Restart flag in the message.
步骤 204、 用户设备的 BGP模块根据所收到的连接请求报文进行优 雅重启。  Step 204: The BGP module of the user equipment performs an elegant restart according to the received connection request message.
由于用户设备 130也配置了 BGP的 GR能力, 而从报文中又区分不 出与之建立连接的是网关设备 111还是网关设备 121 , 因此, 当网关设备 121的 BGP模块发起新的协议连接时, 将触发用户设备 130的 GR能力, 用户设备 130可以和网关设备 121平滑的建立协议邻居; 而且, 在 BGP 协议建立过程中, 不会删除已经建立的转发项, 保证用户设备上行的业 务不会中断。  Since the user equipment 130 is also configured with the GR capability of the BGP, and the gateway device 111 or the gateway device 121 is not distinguished from the packet, when the BGP module of the gateway device 121 initiates a new protocol connection, The user equipment 130 can trigger the GR capability of the user equipment 130, and the user equipment 130 can establish a protocol neighbor with the gateway device 121. Moreover, during the establishment of the BGP protocol, the established forwarding entries are not deleted, and the uplink service of the user equipment is not guaranteed. Interrupted.
此外, 为了解决从承载网返回的流量长时间中断的问题, 本发明的 实施方式中,在主用网关设备和备用网关设备之间建立 IBGP邻居。例如, 主用网关设备为网关设备 111 , 备用网关设备为网关设备 121。 贝' j , 网关 设备 111向网关设备 121转发从用户设备 130学习到的路由,其下一跳地 址设置为不修改, 依然指向用户设备 130, 使得网关设备 121上同样有用 户设备 130发布的路由。 当网关设备状态发生切换之后, 网关设备 111 不立即删除与用户设备 130建立的 BGP邻居学到的路由, 网关设备 121 也不立即删除从网关设备 111学到的指向用户设备 130的路由,依然使用 所述路由将承载网回来的流量转发给用户设备 130,以保证返回用户设备 130的业务不中断。  In addition, in order to solve the problem that the traffic returned from the bearer network is interrupted for a long time, in the embodiment of the present invention, an IBGP neighbor is established between the primary gateway device and the backup gateway device. For example, the primary gateway device is the gateway device 111 and the backup gateway device is the gateway device 121. The gateway device 111 forwards the route learned from the user equipment 130 to the gateway device 121, and the next hop address is set to be unmodified, and still points to the user equipment 130, so that the gateway device 121 also has the route advertised by the user equipment 130. . After the gateway device status is switched, the gateway device 111 does not immediately delete the route learned by the BGP neighbor established by the user equipment 130, and the gateway device 121 does not immediately delete the route from the gateway device 111 to the user equipment 130, and still uses the route. The route forwards the traffic returned by the bearer network to the user equipment 130 to ensure that the service returned to the user equipment 130 is not interrupted.
在网关设备 121与用户设备 130的 GR过程中,网关设备 121会重新 学到指向用户设备 130的路由, 网关设备 121优选从用户设备 130学到 的路由并通过 IBGP邻居将其转发给网关设备 111。 网关设备 111优选网 关设备 121发来的路由, 并删除从用户设备 130直接学到的与前述网关 设备 121发来的路由的相应路由。在网关设备 121与用户设备 130的 GR 结束之后, 网关设备删除掉所有从网关设备 111学到的指向用户设备 130 的路由, 同时通过扩展 VRRP协议报文或 IBGP等其它协议报文,知会网 关设备 111 GR结束, 网关设备 111再删除掉所有直接从用户设备 130获 得的路由。 至此, 网关设备 121上所有指向用户设备 130的路由都是从 与用户设备 130建立的 BGP邻居直接获得的, 而网关设备 111上所有指 向用户设备 130的路由都是从与网关设备 111建立的 IBGP邻居学习到的。 在此过程中,网关设备 111和网关设备 121都没有主动删除指向用户设备 130的转发项, 而是采用更新与删除相结合的技术, 有效的保证了返回用 户设备 130的流量不因为网关设备状态的切换而中断。 During the GR process of the gateway device 121 and the user equipment 130, the gateway device 121 re-learns the route to the user equipment 130. The gateway device 121 preferably routes the information learned from the user equipment 130 and forwards it to the gateway device 111 through the IBGP neighbor. . The gateway device 111 prefers the route sent by the gateway device 121, and deletes the corresponding route learned from the user equipment 130 and the route sent by the foregoing gateway device 121. After the GR of the gateway device 121 and the user equipment 130 ends, the gateway device deletes all the routes from the gateway device 111 to the user equipment 130, and at the same time, by extending VRRP protocol packets or other protocol packets such as IBGP, the network is notified. After the device 111 GR ends, the gateway device 111 deletes all routes obtained directly from the user device 130. So far, all the routes to the user equipment 130 on the gateway device 121 are obtained directly from the BGP neighbors established with the user equipment 130, and all the routes to the user equipment 130 on the gateway device 111 are from the IBGP established with the gateway device 111. The neighbors learned. In this process, the gateway device 111 and the gateway device 121 do not actively delete the forwarding items that are directed to the user equipment 130, but use the technology of combining update and deletion, which effectively ensures that the traffic returned to the user equipment 130 is not due to the status of the gateway device. The switch was interrupted.
可以理解的是, 当用户对承载网返回的流量中断时间不敏感, 或者 采用在网关设备 111和网关设备 121上部署静态路由或者 IBGP协议等其 他技术指导从承载网返回的流量的转发的时候,在网关设备 111和网关设 备 121之间部署 IBGP协议不是必须的。  It can be understood that when the user is insensitive to the traffic interruption time returned by the bearer network, or other technologies such as static routing or IBGP protocol are deployed on the gateway device 111 and the gateway device 121 to guide the forwarding of the traffic returned from the bearer network, It is not necessary to deploy the IBGP protocol between the gateway device 111 and the gateway device 121.
此外, 对于 GR过程来说, 一般要求新建立的连接的源端口号与先前 连接的端口号不同, 否则 TCP可能会忽略或者错误处理新的连接请求, 导 致 GR失效或者 GR恢复时间变长。 为了解决这个问题, 主用网关设备可通 过扩展 VR P协议或 IBGP等其它协议向备用网关设备通告其与用户设备 建立的 BGP邻居使用的源端口号,从而在备用网关设备成为新的主用网关 设备之后,与用户设备建立 BGP邻居时,可以避免使用此端口号作为源端 口号。  In addition, for the GR process, the source port number of the newly established connection is generally required to be different from the previously connected port number. Otherwise, TCP may ignore or incorrectly process the new connection request, resulting in GR failure or GR recovery time becoming longer. In order to solve this problem, the primary gateway device can advertise the source port number used by the BGP neighbor established by the user equipment with the user equipment by extending the VR P protocol or other protocols such as IBGP, so that the standby gateway device becomes the new primary gateway. After the device establishes a BGP neighbor relationship with the user equipment, you can avoid using this port number as the source port number.
如图 3 所示, 本发明提供的网关设备中, 设置有切换通知模块 311 和 VRRP切换感知模块 321。  As shown in FIG. 3, the gateway device provided by the present invention is provided with a handover notification module 311 and a VRRP handover awareness module 321 .
切换通知模块 311可内嵌在网关设备的 VRRP模块 310内部, VRRP 切换感知模块 321可内嵌于网关设备的 BGP模块 320内部。  The switch notification module 311 can be embedded in the VRRP module 310 of the gateway device, and the VRRP switch perception module 321 can be embedded in the BGP module 320 of the gateway device.
其中, 切换通知模块 311用于向 VRRP切换感知模块 321通知网关 设备状态切换消息;  The handover notification module 311 is configured to notify the VRRP handover awareness module 321 of the gateway device status switching message.
所述的 VRRP切换感知模块 321根据所收到的网关设备状态切换消 息向用户设备的 BGP模块 400发起 BGP协议连接请求报文。  The VRRP switch sensing module 321 initiates a BGP connection request message to the BGP module 400 of the user equipment according to the received gateway device state switching message.
实施例中 , 网关设备的 VRRP切换感知模块 321将该网关设备状态 切换消息理解成 GR事件,主动发起与用户设备的协议连接;例如在 OPEN (邻居建立)报文中放入 Restart (重起)标记。 所述用户设备的 BGP模块 400根据所收到的 BGP协议连接请求报文 进行优雅重启 GR。 In an embodiment, the VRRP switch sensing module 321 of the gateway device understands the gateway device state switching message as a GR event, and initiates a protocol connection with the user equipment. For example, put a Restart in the OPEN (Neighbor Establishment) message. mark. The BGP module 400 of the user equipment performs graceful restart of the GR according to the received BGP protocol connection request message.
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围 并不局限于此, 任何熟悉该技术的人在本发明所揭露的技术范围内, 可 轻易想到的变化或替换, 都应涵盖在本发明的保护范围之内。  The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or replacements within the technical scope of the present invention. All should be covered by the scope of the present invention.

Claims

权 利 要 求 Rights request
1. 一种主备网关设备状态切换后业务恢复的方法, 其特征在于, 包 括:  A method for service recovery after a state switch of an active/standby gateway device, which is characterized by:
当用户设备与网关设备之间建立边界网关协议 BGP连接时, 网关设 备使用虚拟冗余路由协议 VRJ P虚地址作为 BGP协议的源地址;  When a border gateway protocol BGP connection is established between the user equipment and the gateway device, the gateway device uses the virtual redundant routing protocol VRJ P virtual address as the source address of the BGP protocol;
在网关设备主备用状态切换之后, 新的主用网关设备采用优雅重启 GR的方式与用户设备建立 BGP连接。  After the primary and secondary state of the gateway device is switched, the new primary gateway device establishes a BGP connection with the user equipment by gracefully restarting the GR.
2. 根据权利要求 1 所述的方法, 其特征在于, 所述网关设备包括 VRRP模块和 BGP模块, 所述用户设备包括 BGP模块; 所述的新的主用 网关设备采用 GR的方式与用户设备建立 BGP连接具体包括:  The method of claim 1, wherein the gateway device comprises a VRRP module and a BGP module, the user equipment comprises a BGP module, and the new primary gateway device adopts a GR mode and a user equipment. Establishing a BGP connection specifically includes:
新的主用网关设备中的 VRRP模块将网关设备状态切换消息通告给 该新的主用网关设备的 BGP模块;  The VRRP module in the new primary gateway device notifies the gateway device state switching message to the BGP module of the new primary gateway device;
所述新的主用网关设备的 BGP模块收到网关设备状态切换消息后, 向用户设备的 BGP模块发送 BGP协议的连接请求报文;  After receiving the gateway device state switching message, the BGP module of the new primary gateway device sends a BGP connection request packet to the BGP module of the user equipment;
所述用户设备的 BGP模块以 GR方式处理所收到的 BGP连接请求报 文。  The BGP module of the user equipment processes the received BGP connection request message in GR mode.
3. 根据权利要求 2所述的方法, 其特征在于, 所述的向用户设备的 BGP模块发送 BGP协议的连接请求报文具体包括: 网关设备的 BGP模 块在邻居建立报文中放入重启标记, 发起与用户设备的协议连接请求。  The method according to claim 2, wherein the sending the BGP connection request message to the BGP module of the user equipment comprises: the BGP module of the gateway device placing a restart flag in the neighbor setup message , initiate a protocol connection request with the user equipment.
4. 根据权利要求 1所述的方法, 其特征在于, 还包括:  4. The method according to claim 1, further comprising:
网关设备之间建立有 IBGP协议连接,新的主用网关设备和先前主用 网关设备都有用户设备发布的路由; 在网关设备状态切换之后, 新的主 用网关设备与用户设备建立 BGP连接时, 新的主用网关设备使用所述的 路由将从承载网回来的流量转发给用户设备。  An IBGP protocol connection is established between the gateway devices. The new primary gateway device and the previous primary gateway device have routes advertised by the user equipment. After the gateway device state is switched, the new primary gateway device establishes a BGP connection with the user equipment. The new primary gateway device forwards the traffic coming back from the bearer network to the user equipment by using the route.
5. 根据权利要求 4所述的方法, 其特征在于, 所述的新的主用网关 设备采用 GR的方式与用户设备建立 BGP连接时, 还包括:  The method according to claim 4, wherein when the new primary gateway device establishes a BGP connection with the user equipment in the manner of the GR, the method further includes:
新的主用网关设备从用户设备重新学到先前主用网关设备指向用户 设备的路由;  The new primary gateway device re-learns from the user equipment the route that the previous primary gateway device points to the user equipment;
新的主用网关设备通过 IBGP协议将所述的路由转发给先前主用网 关设备, 先前主用网关设备保留所收到的所述路由并根据所收到的所述 路由删除其从用户设备直接学到的相对应的路由; The new primary gateway device forwards the route to the previous primary network through the IBGP protocol. Off the device, the previous primary gateway device retains the received route and deletes the corresponding route learned directly from the user equipment according to the received route;
当新的主用网关设备与用户设备的 GR结束之后,新的主用网关设备 删除掉所有从先前主用网关设备学到的指向用户设备的路由; 同时新的 主用网关设备向先前主用网关设备通告 GR结束,先前主用网关设备删除 掉所有直接从用户设备获得的路由。  After the GR of the new primary gateway device and the user equipment ends, the new primary gateway device deletes all routes directed to the user equipment learned from the previous primary gateway device; and the new primary gateway device is used to the previous primary device. The gateway device advertises that the GR ends, and the previous primary gateway device deletes all routes obtained directly from the user equipment.
6. 根据权利要求 5所述的方法, 其特征在于, 所述的新的主用网关 设备通过扩展 VRJRP协议报文向先前主用网关设备通告 GR结束。  The method according to claim 5, wherein the new active gateway device advertises the GR end to the previous active gateway device by extending the VRJRP protocol message.
7. 根据权利要求 1所述的方法, 其特征在于, 新的主用网关设备与 用户设备建立 BGP连接时, 使用与先前主用网关设备连接的端口号不同 的源端口号。  The method according to claim 1, wherein when the new primary gateway device establishes a BGP connection with the user equipment, the source port number different from the port number of the previous primary gateway device is used.
8. 根据权利要求 7所述的方法, 其特征在于, 还包括: 当主用网关 设备与用户设备建立连接时, 主用网关设备通过扩展 VRRP协议向备用 网关设备通告其与用户设备建立 BGP邻居使用的源端口号。  The method according to claim 7, further comprising: when the primary gateway device establishes a connection with the user equipment, the primary gateway device notifies the secondary gateway device that the BGP neighbor relationship is established with the user equipment by using the extended VRRP protocol. Source port number.
9. 一种网关设备, ^括 BGP模块和 VRRP模块; 其特征在于, 还 包括 VR P切换感知模块和切换通知模块; 其中,  A gateway device, including a BGP module and a VRRP module, further comprising a VR P switch sensing module and a switch notification module;
所述的切换通知模块用于通告网关设备状态切换消息给 VRRP切换 感知模块;  The switching notification module is configured to advertise a gateway device state switching message to the VRRP switching sensing module;
所述的 VRRP切换感知模块根据所收到的网关设备状态切换消息向 用户设备的 BGP模块发起 BGP协议连接请求报文, 启动采用优雅重启 GR的方式与用户设备建立 BGP连接的过程。  The VRRP switch-aware module initiates a BGP connection request message to the BGP module of the user equipment according to the received gateway device state switching message, and initiates a process of establishing a BGP connection with the user equipment by using the graceful restart GR.
10. 根据权利要求 9 所述的网关设备, 其特征在于, 所述的切换通 知模块内嵌于 VRRP模块内部。  10. The gateway device according to claim 9, wherein the switching notification module is embedded in the VRRP module.
11. 根据权利要求 9所述的网关设备, 其特征在于, 所述的 VRRP 切换感知模块内嵌于网关设备的 BGP模块内部。  The gateway device according to claim 9, wherein the VRRP switch sensing module is embedded in a BGP module of the gateway device.
12. 根据权利要求 9至 11任一项所述的网关设备, 其特征在于, 所 述 VRRP切换感知模块在邻居建立报文中放入重启标记, 发起与用户设 备的协议连接请求。  The gateway device according to any one of claims 9 to 11, wherein the VRRP handover aware module puts a restart flag in the neighbor setup message, and initiates a protocol connection request with the user equipment.
PCT/CN2006/002080 2005-12-01 2006-08-16 A method and gateway device for service recovery when master and slaving gateway devices switched WO2007062559A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200680013610.9A CN100527716C (en) 2005-12-01 2006-08-16 Method and gateway equipment for resuming service after switching status of main/standby gateway device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200510102085.5 2005-12-01
CN 200510102085 CN1980224A (en) 2005-12-01 2005-12-01 Method and system for recovering business after apparatus state switching-over based on main and spare netgate

Publications (1)

Publication Number Publication Date
WO2007062559A1 true WO2007062559A1 (en) 2007-06-07

Family

ID=38091859

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/002080 WO2007062559A1 (en) 2005-12-01 2006-08-16 A method and gateway device for service recovery when master and slaving gateway devices switched

Country Status (2)

Country Link
CN (2) CN1980224A (en)
WO (1) WO2007062559A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011127665A1 (en) * 2010-04-16 2011-10-20 华为技术有限公司 Method, system and corresponding device for implementing border gateway protocol - advertised discovery (bgp-ad)
US8879392B2 (en) 2012-04-26 2014-11-04 Hewlett-Packard Development Company, L.P. BGP security update intercepts
CN106603272A (en) * 2016-11-17 2017-04-26 上海斐讯数据通信技术有限公司 Controller protection method and system based on smooth restart
CN106656791A (en) * 2015-10-30 2017-05-10 华为技术有限公司 Device state switching method, device and system
CN108430039A (en) * 2017-01-20 2018-08-21 迈普通信技术股份有限公司 A kind of multicast optimization method, multicast equipment and system
CN109067546A (en) * 2018-09-19 2018-12-21 杭州数梦工场科技有限公司 A kind of method, apparatus, equipment and computer storage medium managing safety certificate
CN112463204A (en) * 2020-11-11 2021-03-09 浙江爱充网络科技有限公司 Pile service program gray level release method without sensing of direct connection charging pile
CN116112348A (en) * 2023-04-12 2023-05-12 广州河东科技有限公司 Working mode switching method of intelligent gateway

Families Citing this family (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101094049B (en) * 2007-07-18 2010-09-01 杭州华三通信技术有限公司 Smoothing restarting method and neighbor devices
CN100558057C (en) * 2007-07-20 2009-11-04 华为技术有限公司 A kind of processing method of two-way converting inspection session and device
CN101521616B (en) 2008-02-27 2012-07-04 华为技术有限公司 Method and system for neighbor migration in Border Gateway Protocol (BGP) distributed system
CN101616069B (en) * 2008-06-23 2012-04-04 华为技术有限公司 Information restoration method based on graceful restart and router
CN101340369B (en) * 2008-08-14 2011-01-19 杭州华三通信技术有限公司 Method and router for realizing virtual connection supported optimum restart
CN101494604B (en) * 2009-03-04 2013-01-02 华为技术有限公司 Migrating method and migrating device for VRF, and VRF distributed communication system
CN101695069B (en) * 2009-10-22 2012-04-04 南京科远自动化集团股份有限公司 Enetgw communication gateway
WO2011075911A1 (en) 2009-12-25 2011-06-30 中兴通讯股份有限公司 Method and system for implementing call by media gateway
CN101883116B (en) * 2010-06-30 2016-01-20 中兴通讯股份有限公司 Call processing method and media gateway
CN102801542A (en) * 2011-05-23 2012-11-28 镇江金钛软件有限公司 Communication-gateway-based communication redundancy fault-tolerant system
CN103607293B (en) * 2013-10-30 2017-08-22 新华三技术有限公司 A kind of flow rate protecting method and equipment
CN105704747A (en) * 2014-11-25 2016-06-22 中兴通讯股份有限公司 Method and device for base station to transmit control/service data reliably
CN105813111B (en) * 2014-12-31 2021-01-26 中兴通讯股份有限公司 Service flow transmission path optimization method and device and MME
CN106911568B (en) * 2017-02-24 2019-11-12 新华三技术有限公司 BGP GR implementation method and device
CN109412943B (en) * 2017-08-18 2022-04-05 中兴通讯股份有限公司 SDN controller cluster flow processing method, device, equipment and storage medium
CN107769984B (en) * 2017-12-04 2020-08-28 阳光凯讯(北京)科技有限公司 Low-cost active/standby hot switching system and method based on gateway
CN112073319B (en) * 2019-06-10 2022-04-29 烽火通信科技股份有限公司 Path switching method and system
CN112615914B (en) * 2020-12-10 2022-07-05 中国电信股份有限公司江苏分公司 Method for transmitting multicast hot standby table entries by using border gateway protocol
CN112953832B (en) * 2021-02-20 2023-06-23 中国联合网络通信集团有限公司 Processing method and device for MAC address table entry

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466322A (en) * 2002-06-23 2004-01-07 ��Ϊ�������޹�˾ Method for realfizing router interface backup utilizing virtual router redundancy procotol
US20040090913A1 (en) * 2002-11-12 2004-05-13 Cisco Technology, Inc. Routing system and method for synchronizing a routing system with peers after failover
CN1533108A (en) * 2003-03-21 2004-09-29 ��Ϊ�������޹�˾ Method for realizing dynamic gateway load sharing and backup

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1466322A (en) * 2002-06-23 2004-01-07 ��Ϊ�������޹�˾ Method for realfizing router interface backup utilizing virtual router redundancy procotol
US20040090913A1 (en) * 2002-11-12 2004-05-13 Cisco Technology, Inc. Routing system and method for synchronizing a routing system with peers after failover
CN1533108A (en) * 2003-03-21 2004-09-29 ��Ϊ�������޹�˾ Method for realizing dynamic gateway load sharing and backup

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
FU X.: "Research and Implementation on High-Available Networks and BGP Graceful Restart", A DISSERTATION SUBMITTED FOR THE MASTER'S DEGREE COMPUTER COLLEGE NATIONAL UNIVERSITY OF DEFENSE TECHNOLOGY, November 2004 (2004-11-01) *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011127665A1 (en) * 2010-04-16 2011-10-20 华为技术有限公司 Method, system and corresponding device for implementing border gateway protocol - advertised discovery (bgp-ad)
CN102232277A (en) * 2010-04-16 2011-11-02 华为技术有限公司 Method, system and corresponding device for implementing border gateway protocol - advertised discovery (BGP-AD)
CN102232277B (en) * 2010-04-16 2013-12-04 华为技术有限公司 Method, system and corresponding device for implementing border gateway protocol - advertised discovery (BGP-AD)
US8879392B2 (en) 2012-04-26 2014-11-04 Hewlett-Packard Development Company, L.P. BGP security update intercepts
CN106656791A (en) * 2015-10-30 2017-05-10 华为技术有限公司 Device state switching method, device and system
CN106603272A (en) * 2016-11-17 2017-04-26 上海斐讯数据通信技术有限公司 Controller protection method and system based on smooth restart
CN108430039A (en) * 2017-01-20 2018-08-21 迈普通信技术股份有限公司 A kind of multicast optimization method, multicast equipment and system
CN108430039B (en) * 2017-01-20 2021-12-14 迈普通信技术股份有限公司 Multicast optimization method, multicast equipment and system
CN109067546A (en) * 2018-09-19 2018-12-21 杭州数梦工场科技有限公司 A kind of method, apparatus, equipment and computer storage medium managing safety certificate
CN112463204A (en) * 2020-11-11 2021-03-09 浙江爱充网络科技有限公司 Pile service program gray level release method without sensing of direct connection charging pile
CN116112348A (en) * 2023-04-12 2023-05-12 广州河东科技有限公司 Working mode switching method of intelligent gateway

Also Published As

Publication number Publication date
CN101164307A (en) 2008-04-16
CN100527716C (en) 2009-08-12
CN1980224A (en) 2007-06-13

Similar Documents

Publication Publication Date Title
WO2007062559A1 (en) A method and gateway device for service recovery when master and slaving gateway devices switched
WO2018054156A1 (en) Vxlan message forwarding method, device and system
US7490161B2 (en) Method and system for implementing OSPF redundancy
CN102439903B (en) Method, device and system for realizing disaster-tolerant backup
WO2012000234A1 (en) Method, apparatus and system for fast switching between links
US20040078619A1 (en) Method and system for implementing IS-IS protocol redundancy
WO2009138036A1 (en) Method for updating forwarding table during ethernet service transmission, and device and system thereof
WO2007115493A1 (en) A method, device and system for achieving the switch in the dual-homed network based on the vpls
WO2006136088A1 (en) A method for implementing active/standby gateway device in the network and a system thereof
WO2014059844A1 (en) Method and device for dynamically switching gateway of distributed resilient network interconnect
US20080225699A1 (en) Router and method of supporting nonstop packet forwarding on system redundant network
EP3217608B1 (en) Switchback delay methods and devices
WO2007012239A1 (en) A method for switching the serving services of virtual private lan and a system thereof
CN101340380B (en) Method and apparatus for uninterrupted forwarding of bi-directional forwarding detection in master-slave switch implementation
JPWO2008120267A1 (en) Edge node redundancy system
WO2012028029A1 (en) Switching method and system
WO2006053497A1 (en) A method for quickly rerouting
WO2008028382A1 (en) A method and apparatus for carrying out link detecting, routing strategy conversion of end-to-end
WO2008083590A1 (en) Method and apparatus of rapid convergence of point-to-point service
WO2008046358A1 (en) A method and device to realize punch-through of point-to-multipoint network link status
CN101364927A (en) Method, apparatus and system realizing fault recovery of virtual private network
WO2012159489A1 (en) Switching method, system and dual homing provider device for pseudowire dual homing network
JP2013519268A (en) Data transfer method, data transfer apparatus, and data transfer system
WO2012171378A1 (en) Method and router for preventing flow interruption caused by failover from vpls to l3
WO2014090083A1 (en) Service bearing method and apparatus during distributed resilient network interconnect

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 200680013610.9

Country of ref document: CN

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 06775398

Country of ref document: EP

Kind code of ref document: A1