WO2011143888A1 - Method and system for backing up protocol state between devices - Google Patents

Method and system for backing up protocol state between devices Download PDF

Info

Publication number
WO2011143888A1
WO2011143888A1 PCT/CN2010/077497 CN2010077497W WO2011143888A1 WO 2011143888 A1 WO2011143888 A1 WO 2011143888A1 CN 2010077497 W CN2010077497 W CN 2010077497W WO 2011143888 A1 WO2011143888 A1 WO 2011143888A1
Authority
WO
WIPO (PCT)
Prior art keywords
protocol
request
backup
status
state
Prior art date
Application number
PCT/CN2010/077497
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 WO2011143888A1 publication Critical patent/WO2011143888A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • H04L41/0856Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information by backing up or archiving configuration information

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to a method and system for back-up between devices in a protocol state.
  • SN service node
  • BRAS broadband remote access server
  • SR service router
  • the number of users is increasing, and broadband users are increasingly demanding high reliability of broadband. Therefore, operators require higher access to backup users. Therefore, user information backup technology is widely used among existing SNs.
  • the existing user backup technology is dual-system hot standby or multi-machine hot standby.
  • This technology enables an access node (Access Node, referred to as AN) to access multiple uplink SNs, the primary SN access port and the standby SN.
  • Backup port The primary and secondary SNs use the Virtual Router Redundancy Protocol (VRRP) and Bidirectional Forwarding Detection (BFD) technology to switch states.
  • the primary SN 4 access user information is synchronized to the standby SN.
  • the standby SN When the standby SN receives the user information transmitted by the primary SN, the standby SN immediately sends the user information to the interface module in the form of a user table.
  • the standby SN is switched to the primary SN, and the user traffic is switched at the same time.
  • the uplink and downlink traffic of the user is forwarded through the standby SN, and the standby SN is based on the backed up user.
  • Information controls and manages user traffic.
  • one of the problems in the above manner is that the existing implementation is a copy of an entry statically stored on the device and then delivered to the standby SN device, and then for some states of the dynamic protocol that require interaction between the SN and the external device, This method cannot be backed up.
  • A The active device pre-establishes a status table, where the status table saves the processing status of the request/response message;
  • B establishes a backup relationship between the active device and the standby device, and the primary device transfers the status table to the standby device. The device, the backup device backs up the content of the status table;
  • the switched primary device that is, the standby device, resends the request/response message according to the content of the state table; or requests the external device to resend the request/response message.
  • the processing status includes at least one of the following: a request has not been received, a request has been sent, and a response is received.
  • the status table further includes: a content of the request/response message, a sending object, and an identifier ID.
  • the protocol for request/response messages includes one of the following: an access node control protocol ANCP, a general open policy service protocol COPS, and a remote user dial-up authentication system protocol RADIUS.
  • the pre-establishment status table of the primary device includes: the primary device establishes a status table for each type of the protocol, or establishes a unified status table, and adds a protocol type through the status table.
  • the system for backing up between devices in the protocol state of the present invention includes an active device and a standby device, wherein the primary device is configured to pre-establish a state table, and transmit the state table to the standby device;
  • the status table saves the processing status of the request/response message;
  • the standby device is configured to back up the content of the status table sent by the active device; and is used to reset the content of the status table according to the content of the status table when the active/standby switchover occurs Send a request/response message; or request an external device to resend the request/response message.
  • the processing status includes at least one of the following: a sent request does not receive a response, and a sent request receives a response.
  • the status table further includes: a content of the request/response message, a sending object, and an identifier ID.
  • the protocol for requesting/responding messages includes one of the following: an access node control protocol
  • the pre-establishment status table of the primary device includes: the primary device establishes a status table for each type of the protocol, or establishes a unified status table, and adds the status table. The type of agreement is distinguished.
  • the invention has the following advantages: The method and system for back-to-device backup according to the protocol state of the present invention, the state table is established in advance by the master device, and the state table is periodically transmitted to the standby device through the backup protocol, when the master occurs During standby switching, the original standby device resends the request/response message according to the content of the state table; or requests the external device to resend the request/response message, thereby enabling backup between devices of the dynamic protocol.
  • FIG. 1 is a schematic diagram of a network topology according to an embodiment of the present invention
  • the SN device establishes a state table for the protocol of the request/response message to record the processing state of each pair of protocol interactions, and the primary SN synchronizes these states to the standby SN, and the standby SN occurs during the active/standby switchover.
  • the request/response message is resent according to this state. As shown in FIG.
  • the system for backing up between devices of the dynamic protocol of the embodiment of the present invention includes an active device and a standby device, wherein the primary device is configured to pre-establish a state table, and periodically transmit the state table to the standby device through a backup protocol;
  • the status table stores the processing status of each pair of dynamic protocol "Request/Response (Ack)"messages;
  • the standby device is used to periodically back up the contents of the status table transmitted by the active device; and is used when the active/standby switchover occurs.
  • the processing status includes one or any combination of the following: a sent request has not received a response, and a sent request has received a response.
  • the protocol generally refers to a dynamic policy delivery protocol, that is, a protocol for requesting/responding messages, including one of the following: an Access Node Control Protocol (ANCP), and a General Open Policy Monthly Protocol ( Common Open Policy Service Protocol (COPS), Remote Authentication Dial In User Service (RADIUS), etc., may also include other request/response architecture protocols.
  • ANCP Access Node Control Protocol
  • COPS Common Open Policy Service Protocol
  • RADIUS Remote Authentication Dial In User Service
  • the active and standby SNs correspond to the dynamic cutting and negotiation configuration.
  • the processing status includes one or any combination of the following: "The sent request did not receive the response, and
  • the status protocol corresponds to each pair of request/response interactions.
  • the status table of the dynamic protocol further includes the content of the request/response message, the sending object, and the detailed ID of the pair of requests, which correspond to each pair of requests/responses.
  • the master device pre-establishes a state table, which means that the master device establishes a state table for each type of protocol that uses the request/response message, or establishes a unified state table, and adds it through the state table. The type of agreement is distinguished.
  • the method for inter-device backup of the protocol status includes the following steps: Step 100: The SN device is pre- Establishing a state table, wherein the state table holds the processing of the request/response message ⁇ !
  • the status table further includes a content of the request/response message, a sending object, and an identifier ID of the pair of requests.
  • the above request/response message protocol includes one of the following: an access node control protocol ANCP, a general open policy service protocol COPS, and a remote user dialing authentication system RADIUS.
  • the SN can establish a status table for each type of protocol, or create a unified status table and distinguish it by adding protocol types in the status table. Step 200: The primary and secondary SNs establish a backup relationship, and the primary SN passes the status table to the backup SN backup, and the standby SN backs up the content of the status table.
  • Step 300 During the active/standby switchover, the switched primary device is the original standby SN.
  • the content of the status table is to resend the request/response message; or the external device is requested to resend the request/response message, such as the request message (Request) content of all protocols that have been delivered to the original active SN.
  • the original standby SN resends the request/response message according to the content of the state table, and the policy is sent to the external device by the original active SN through the protocol of the protocol; the standby SN requests the external
  • the device resends the request content of all the protocols that have been delivered to the original active SN, and is a situation in which the external device actively sends a policy or other content to the SN through the protocol Request.
  • the primary SN periodically scans the status table.
  • the status table content is advertised to the standby SN, and the standby SN backs up the content of the interaction; or
  • the active SN finds that the current status table is a "sent request and receives a response"
  • the primary SN notifies the status of the status table to the standby SN, and the active and standby SN deletes the status table after the notification is completed.
  • the original standby SN After the active/standby switchover, the original standby SN resends the content sent by the protocol message whose status is the sent request but does not receive the response according to the status table, and the original standby SN may also request the external device to resend the external device.
  • the content of the request message that the protocol actively sends to the SN is described by taking an SN device as an example.
  • the present invention is also applicable to an AN or other device having an active/standby relationship.
  • the method and system for back-to-device backup of the protocol state according to the present invention the state table is pre-established by the master device, and the state table is periodically transmitted to the standby device through the backup protocol, when the master-slave switchover occurs.
  • the original standby device resends the request/response message according to the content of the state table; Or request an external device to resend the request/response message, thereby enabling backup between devices of the dynamic protocol.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)
  • Computer And Data Communications (AREA)

Abstract

A method and system for backing up the protocol state between devices are disclosed in the present invention. In the above method, a master device preliminarily establishes a state list, wherein the state list preserves the processing state of a Request/Ack message; a backup relationship is built between the master device and a backup device, the master device transmits the state list to the backup device, and the backup device backs up the content of the state list; and when the master device and the backup device are switched, according to the content of the state list, the master device after the switch, i.e. the backup device, transmits the Request/Ack message again, or requests the external device to transmit the Request/Ack message again. According to the technical scheme provided by the present invention, the backup of the dynamic protocol between devices can be implemented.

Description

一种对协议状态的设备间备 的方法及系统 技术领域 本发明涉及网络通信技术领域, 特别涉及一种对协议状态的设备间备份 的方法及系统。 背景技术 随着业务节点 ( Service Node , 简称为 SN ), 如宽带远端接入 艮务器 ( Broadband Remote Access Server, 简称为 BRAS )、 业务路由器 (Service Router, 简称为 SR )等接入的宽带用户数量越来越多, 宽带用户对宽带的高 可靠性要求越来越高, 因此, 运营商要求对用户备份的接入也越来越高。 因 此, 现有 SN之间广泛使用了用户信息备份技术。 现有使用的用户备份技术是双机热备或多机热备, 该项技术使接入节点 ( Access Node, 简称为 AN )接入多个上行 SN, 主用 SN的接入端口和备用 SN 的备份端口——对应, 主备 SN 釆用虚拟路由冗余协议 ( Virtual Router Redundancy Protocol , 简称为 VRRP ) 和双向转发检测 ( Bidirectional Forwarding Detection, 简称为 BFD )技术来切换状态。 主 SN 4巴接入用户信 息同步到备 SN, 备 SN收到主 SN传递的用户信息时, 备 SN马上将该用户 信息以用户表的方式下发到接口模块。 当主 SN的接入端口下接入用户的链 路故障时, 备用 SN切换成主用 SN, 用户流量同时发生切换, 切换后用户的 上下行流量都通过备用 SN转发, 备用 SN基于已备份的用户信息对用户业 务流进行控制和管理。 但是, 上述方式存在的一个问题是: 现有实现的方式是对静态保存在设 备上的表项的拷贝、 然后传递给备用 SN设备, 那么对于一些需要 SN和外 部设备交互的动态协议的状态, 这种方式是无法备份的。 第一种情况, 假如是 SN设备主动向外部设备通告策略或者其他内容, ;^时 SN和外部设备需要请求 /响应的动态交互, 当请求艮文发送时发生主备 切换, 响应 4艮文可能无法正确送到 SN, 现有的备份机制无法解决这种问题。 还有一种情况, 如是外部设备主动通过动态协议上~¾ SN策略或者其 他内容, 那么在发生切换时, 通告信息有可能丢失无法到达备用 SN, 因此 现有备份方式对这种情况也是无法处理的。 发明内容 本发明的目的在于, 提供一种对协议状态的设备间备份的方法, 能够实 现动态协议的设备之间的备份。 本发明的另一目的在于, 提供一种对协议状态的设备间备份的系统, 能 够实现动态协议的设备之间的备份。 本发明的对协议状态的设备间备份的方法, 包括下列步骤: TECHNICAL FIELD The present invention relates to the field of network communication technologies, and in particular, to a method and system for back-up between devices in a protocol state. BACKGROUND OF THE INVENTION With the service node (Service Node, referred to as SN), such as a broadband remote access server (BRAS), a service router (Service Router, abbreviated as SR), etc. The number of users is increasing, and broadband users are increasingly demanding high reliability of broadband. Therefore, operators require higher access to backup users. Therefore, user information backup technology is widely used among existing SNs. The existing user backup technology is dual-system hot standby or multi-machine hot standby. This technology enables an access node (Access Node, referred to as AN) to access multiple uplink SNs, the primary SN access port and the standby SN. Backup port—The primary and secondary SNs use the Virtual Router Redundancy Protocol (VRRP) and Bidirectional Forwarding Detection (BFD) technology to switch states. The primary SN 4 access user information is synchronized to the standby SN. When the standby SN receives the user information transmitted by the primary SN, the standby SN immediately sends the user information to the interface module in the form of a user table. When the link of the user accessing the access port of the primary SN is faulty, the standby SN is switched to the primary SN, and the user traffic is switched at the same time. After the switchover, the uplink and downlink traffic of the user is forwarded through the standby SN, and the standby SN is based on the backed up user. Information controls and manages user traffic. However, one of the problems in the above manner is that the existing implementation is a copy of an entry statically stored on the device and then delivered to the standby SN device, and then for some states of the dynamic protocol that require interaction between the SN and the external device, This method cannot be backed up. In the first case, if the SN device actively advertises the policy or other content to the external device, the SN and the external device need dynamic interaction of the request/response, and the active/standby switchover occurs when the request message is sent, and the response may be The SN cannot be sent correctly, and the existing backup mechanism cannot solve this problem. In another case, if the external device actively passes the ~3⁄4 SN policy or other content on the dynamic protocol, the notification information may be lost and cannot reach the standby SN when the handover occurs, so Existing backup methods are also incapable of handling this situation. SUMMARY OF THE INVENTION It is an object of the present invention to provide a method for back-up between devices in a protocol state, which enables backup between devices of a dynamic protocol. Another object of the present invention is to provide a system for inter-device backup of protocol status, which enables backup between devices of a dynamic protocol. The method for backing up devices between protocol states of the present invention includes the following steps:
A: 主用设备预先建立状态表, 其中, 所述状态表保存请求 /响应消息的 处理状态; B: 主用设备与备用设备之间建立备份关系, 主用设备将所述状态表传 递给备用设备, 备用设备备份所述状态表的内容; A: The active device pre-establishes a status table, where the status table saves the processing status of the request/response message; B: establishes a backup relationship between the active device and the standby device, and the primary device transfers the status table to the standby device. The device, the backup device backs up the content of the status table;
C: 主备切换时, 切换后的主用设备即上述备用设备根据所述状态表的 内容重发请求 /响应消息; 或者请求外部设备重发请求 /响应消息。 其中, 所述处理状态包括以下至少之一: 已发请求未收到响应、 已发请 求) 到响应。 其中, 所述状态表, 进一步包括: 请求 /响应消息的内容、 发送对象、 和 标识 ID。 其中, 釆用请求 /响应消息的协议, 包括以下之一: 接入节点控制协议 ANCP、通用开放策略服务协议 COPS、远程用户拨号认证系统协议 RADIUS。 其中, 所述主用设备预先建立状态表包括: 所述主用设备为每一种类型 的所述协议建立一份状态表, 或者建立一张统一的状态表, 并通过状态表中 增加协议类型来区分。 本发明的对协议状态的设备间备份的系统, 包括主用设备和备用设备, 其中, 所述主用设备, 用于预先建立状态表, 并将所述状态表传给备用设备; 其中, 所述状态表保存请求 /响应消息的处理状态; 所述备用设备, 用于备份 所述主用设备传来的状态表的内容; 并用于在发生主备切换时, 根据所述状 态表的内容重发请求 /响应消息; 或者请求外部设备重发请求 /响应消息。 其中, 所述处理状态包括以下至少之一: 已发请求未收到响应、 已发请 求收到响应。 其中, 所述状态表, 进一步包括: 请求 /响应消息的内容、 发送对象、 和 标识 ID。 其中, 釆用请求 /响应消息的协议, 包括以下之一: 接入节点控制协议C: When the active/standby switchover, the switched primary device, that is, the standby device, resends the request/response message according to the content of the state table; or requests the external device to resend the request/response message. The processing status includes at least one of the following: a request has not been received, a request has been sent, and a response is received. The status table further includes: a content of the request/response message, a sending object, and an identifier ID. The protocol for request/response messages includes one of the following: an access node control protocol ANCP, a general open policy service protocol COPS, and a remote user dial-up authentication system protocol RADIUS. The pre-establishment status table of the primary device includes: the primary device establishes a status table for each type of the protocol, or establishes a unified status table, and adds a protocol type through the status table. To distinguish. The system for backing up between devices in the protocol state of the present invention includes an active device and a standby device, wherein the primary device is configured to pre-establish a state table, and transmit the state table to the standby device; The status table saves the processing status of the request/response message; the standby device is configured to back up the content of the status table sent by the active device; and is used to reset the content of the status table according to the content of the status table when the active/standby switchover occurs Send a request/response message; or request an external device to resend the request/response message. The processing status includes at least one of the following: a sent request does not receive a response, and a sent request receives a response. The status table further includes: a content of the request/response message, a sending object, and an identifier ID. The protocol for requesting/responding messages includes one of the following: an access node control protocol
ANCP、通用开放策略服务协议 COPS、远程用户拨号认证系统协议 RADIUS。 其中, 所述主用设备预先建立状态表包括: 是指所述主用设备为每一种 类型的所述协议建立一份状态表, 或者建立一张统一的状态表, 并通过状态 表中增加协议类型来区分。 本发明的有益效果是: 依照本发明的协议状态的设备间备份的方法及系 统, 通过主用设备预先为建立状态表, 并通过备份协议定期将所述状态表传 递给备用设备, 当发生主备切换时, 原备用设备根据所述状态表的内容重发 请求 /响应消息; 或者请求外部设备重发请求 /响应消息, 从而能够实现动态 协议的设备之间的备份。 附图说明 图 1为本发明实施例的网络拓朴示意图; 图 2为本发明实施例的网络在 SN设备间备份动态协议的方法流程图。 具体实施方式 以下, 参考附图 1〜2详细描述本发明的动态协议的设备间备份的方法及 系统。 本发明的核心思想是: SN设备为釆用请求 /响应消息的协议建立一个状 态表去记录每对协议交互的处理状态, 主用 SN将这些状态同步到备用 SN, 发生主备倒换时备用 SN根据这个状态重发请求 /响应消息。 如图 1 所示, 为本发明的网络拓朴示意图, 其中, 动态协议可以在 SN 和 AN以及 SN和应用月艮务器之间交互。 本发明实施例的动态协议的设备间备份的系统, 包括主用设备和备用设 备, 其中, 主用设备, 用于预先建立状态表, 并通过备份协议定期将该状态 表传给备用设备; 其中, 状态表保存每对动态协议 "请求 ( Request ) /响应 ( Ack )" 消息的处理状态; 备用设备, 用于定期备份主用设备传来的状态表 的内容;并用于在发生主备切换时,根据该状态表的内容重发请求 /响应消息; 或者请求外部设备重发请求 /响应消息。 其中, 该处理状态包括以下之一或任意组合: 已发请求未收到响应、 已 发请求收到响应。 其中,所述协议一般指动态策略下发协议,即釆用请求 /响应消息的协议, 包括以下之一: 接入节点控制协议 ( Access Node Control Protocol, ANCP )、 通用开放策略月艮务协议 (Common Open Policy Service Protocol, COPS )、 远 程用户拨号认证系统十办议 ( Remote Authentication Dial In User Service , RADIUS )等, 也可以包括其他请求 /响应架构的协议。 另外, 需要说明的是, 主备 SN对于动态切、议的配置——对应。 另外, 该处理状态包括以下之一或任意组合: "已发请求未收到响应,,和ANCP, Common Open Policy Service Protocol (COPS), Remote User Dial-Up Authentication System Protocol (RADIUS). The pre-establishment status table of the primary device includes: the primary device establishes a status table for each type of the protocol, or establishes a unified status table, and adds the status table. The type of agreement is distinguished. The invention has the following advantages: The method and system for back-to-device backup according to the protocol state of the present invention, the state table is established in advance by the master device, and the state table is periodically transmitted to the standby device through the backup protocol, when the master occurs During standby switching, the original standby device resends the request/response message according to the content of the state table; or requests the external device to resend the request/response message, thereby enabling backup between devices of the dynamic protocol. BRIEF DESCRIPTION OF THE DRAWINGS FIG. 1 is a schematic diagram of a network topology according to an embodiment of the present invention; FIG. 2 is a flowchart of a method for backing up a dynamic protocol between SN devices according to an embodiment of the present invention. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, a method and system for inter-device backup of a dynamic protocol of the present invention will be described in detail with reference to FIGS. The core idea of the present invention is: The SN device establishes a state table for the protocol of the request/response message to record the processing state of each pair of protocol interactions, and the primary SN synchronizes these states to the standby SN, and the standby SN occurs during the active/standby switchover. The request/response message is resent according to this state. As shown in FIG. 1 , it is a schematic diagram of a network topology according to the present invention, wherein a dynamic protocol can interact between the SN and the AN and the SN and the application server. The system for backing up between devices of the dynamic protocol of the embodiment of the present invention includes an active device and a standby device, wherein the primary device is configured to pre-establish a state table, and periodically transmit the state table to the standby device through a backup protocol; The status table stores the processing status of each pair of dynamic protocol "Request/Response (Ack)"messages; the standby device is used to periodically back up the contents of the status table transmitted by the active device; and is used when the active/standby switchover occurs. Resending the request/response message according to the content of the state table; or requesting the external device to resend the request/response message. The processing status includes one or any combination of the following: a sent request has not received a response, and a sent request has received a response. The protocol generally refers to a dynamic policy delivery protocol, that is, a protocol for requesting/responding messages, including one of the following: an Access Node Control Protocol (ANCP), and a General Open Policy Monthly Protocol ( Common Open Policy Service Protocol (COPS), Remote Authentication Dial In User Service (RADIUS), etc., may also include other request/response architecture protocols. In addition, it should be noted that the active and standby SNs correspond to the dynamic cutting and negotiation configuration. In addition, the processing status includes one or any combination of the following: "The sent request did not receive the response, and
"已发请求收到响应", 该状态协议和每一对请求 /响应交互相对应。 该动态 协议的状态表还包括了请求 /响应消息的内容、 发送对象、 该对请求详细的标 i只 ID , 这些内容和每一对请求 /响应相对应。 另外, 主用设备预先建立状态表, 是指主用设备为每一种类型的釆用请 求 /响应消息的协议建立一份状态表, 或者建立一张统一的状态表, 并通过状 态表中增加协议类型来区分。 当所述协议在某次 "请求 /响应,, 的交互过程中, 当 SN发送请求时, 该 动态协议的状态表记录状态为 "已发请求未收到响应", 当收到该次请求对应 的响应后, 该协议的状态表记录状态为 "已发请求收到响应" 如图 2所示, 本发明实施例的协议状态的设备间备份的方法, 包括以下 步骤: 步骤 100: SN设备预先建立一个状态表, 其中, 这个状态表保存请求 / 响应消息的处理^!大态; 另外, 所述的状态表, 进一步包括请求 /响应消息的内容、 发送对象、 该 对请求的标识 ID。 上述请求 /响应消息的协议, 包括以下之一: 接入节点控 制协议 ANCP、 通用开放策略服务协议 COPS 和远程用户拨号认证系统 RADIUS等。 另外, SN 可以为每一种类型的协议建立一份状态表, 也可以建立一张 统一的状态表, 并通过状态表中增加协议类型来区分。 步骤 200: 主备 SN建立备份关系, 主用 SN将该状态表传递给备用 SN 备份, 备用 SN备份该状态表内容; 步骤 300: 主备切换时, 切换后的主用设备即原备用 SN根据该状态表 的内容去重发请求 /响应消息; 或者请求外部设备重发请求 /响应消息, 例如 已下发给原主用 SN的所有协议的请求消息 (Request ) 内容。 其中, 在步骤 300中, 原备用 SN根据该状态表的内容去重发请求 /响应 消息, 是针对原主用 SN通过协议的 Request主动向外部设备下发策略或者 其他内容的情况; 备用 SN请求外部设备重发已下发给原主用 SN的所有协 议的 Request内容,是针对外部设备主动通过协议 Request主向 SN下发策略 或者其他内容的情况。 具体地, 主用 SN定期扫描状态表, 在状态表中某次协议交互处理状态 是已发请求但未收到响应时, 向备用 SN通告该状态表内容, 备用 SN备份 这些交互的内容; 或者在主用 SN发现当前状态表某次协议交互处理状态是 "已发请求且收到响应" 时, 主用 SN向备用 SN通告该状态表内容, 主备 SN在通告完毕后在状态表中删除这些已经完成交互的协议的状态信息。 在主备切换后, 原备用 SN根据这个状态表重发那些状态为已发请求但 未收到响应的协议消息所发送的内容, 原备用 SN也可以向外部设备请求外 部设备重新发送使用所述协议主动发送给 SN的请求消息内容。 在上述的实施例中, 是以 SN设备为例对本发明进行描述, 本发明也可 以适用于 AN或其他存在主备关系的设备。 综上所述, 依照本发明的协议状态的设备间备份的方法及系统, 通过主 用设备预先建立状态表,并通过备份协议定期将所述状态表传递给备用设备, 当发生主备切换时, 原备用设备根据所述状态表的内容重发请求 /响应消息; 或者请求外部设备重发请求 /响应消息,从而能够实现动态协议的设备之间的 备份。 以上是为了使本领域普通技术人员理解本发明, 而对本发明所进行的详 细描述, 但可以想到, 在不脱离本发明的权利要求所涵盖的范围内还可以做 出其它的变化和 4爹改, 这些变化和 4爹改均在本发明的保护范围内。 "Sent a request received response", the status protocol corresponds to each pair of request/response interactions. The status table of the dynamic protocol further includes the content of the request/response message, the sending object, and the detailed ID of the pair of requests, which correspond to each pair of requests/responses. In addition, the master device pre-establishes a state table, which means that the master device establishes a state table for each type of protocol that uses the request/response message, or establishes a unified state table, and adds it through the state table. The type of agreement is distinguished. When the protocol is in a "request/response" interaction process, when the SN sends a request, the status table of the dynamic protocol records the status as "the sent request has not received the response", and when the request is received, the corresponding request is received. After the response, the status record of the protocol is recorded as "received request received response". As shown in FIG. 2, the method for inter-device backup of the protocol status according to the embodiment of the present invention includes the following steps: Step 100: The SN device is pre- Establishing a state table, wherein the state table holds the processing of the request/response message ^! In addition, the status table further includes a content of the request/response message, a sending object, and an identifier ID of the pair of requests. The above request/response message protocol includes one of the following: an access node control protocol ANCP, a general open policy service protocol COPS, and a remote user dialing authentication system RADIUS. In addition, the SN can establish a status table for each type of protocol, or create a unified status table and distinguish it by adding protocol types in the status table. Step 200: The primary and secondary SNs establish a backup relationship, and the primary SN passes the status table to the backup SN backup, and the standby SN backs up the content of the status table. Step 300: During the active/standby switchover, the switched primary device is the original standby SN. The content of the status table is to resend the request/response message; or the external device is requested to resend the request/response message, such as the request message (Request) content of all protocols that have been delivered to the original active SN. In the step 300, the original standby SN resends the request/response message according to the content of the state table, and the policy is sent to the external device by the original active SN through the protocol of the protocol; the standby SN requests the external The device resends the request content of all the protocols that have been delivered to the original active SN, and is a situation in which the external device actively sends a policy or other content to the SN through the protocol Request. Specifically, the primary SN periodically scans the status table. When a protocol interaction processing status in the status table is a sent request but does not receive a response, the status table content is advertised to the standby SN, and the standby SN backs up the content of the interaction; or When the active SN finds that the current status table is a "sent request and receives a response", the primary SN notifies the status of the status table to the standby SN, and the active and standby SN deletes the status table after the notification is completed. These have completed the status information of the interacting protocol. After the active/standby switchover, the original standby SN resends the content sent by the protocol message whose status is the sent request but does not receive the response according to the status table, and the original standby SN may also request the external device to resend the external device. The content of the request message that the protocol actively sends to the SN. In the above embodiments, the present invention is described by taking an SN device as an example. The present invention is also applicable to an AN or other device having an active/standby relationship. In summary, the method and system for back-to-device backup of the protocol state according to the present invention, the state table is pre-established by the master device, and the state table is periodically transmitted to the standby device through the backup protocol, when the master-slave switchover occurs. And the original standby device resends the request/response message according to the content of the state table; Or request an external device to resend the request/response message, thereby enabling backup between devices of the dynamic protocol. The above is a detailed description of the present invention to enable those skilled in the art to understand the invention, but it is contemplated that other variations and modifications may be made without departing from the scope of the invention as claimed. These changes and 4 tampering are all within the scope of the present invention.

Claims

权 利 要 求 书 Claim
1. 一种对协议状态的设备间备份的方法, 其特征在于, 包括: A method for backing up devices between protocol states, characterized in that it comprises:
主用设备预先建立状态表, 其中, 所述状态表保存请求 /响应消息 的处理状态;  The active device pre-establishes a state table, wherein the state table stores a processing state of the request/response message;
主用设备与备用设备之间建立备份关系, 主用设备将所述状态表 传递给备用设备, 所述备用设备备份所述状态表的内容;  A backup relationship is established between the active device and the standby device, and the primary device transfers the state table to the standby device, and the standby device backs up the content of the state table.
主备切换时, 切换后的主用设备即所述备用设备根据所述状态表 的内容重发请求 /响应消息; 或者请求外部设备重发请求 /响应消息。  In the active/standby switchover, the switched primary device, that is, the standby device, resends the request/response message according to the content of the state table; or requests the external device to resend the request/response message.
2. 如权利要求 1 所述的对协议状态的设备间备份的方法, 其特征在于, 所述处理状态包括以下至少之一: 已发请求未收到响应、 已发请求收 到响应。 2. The method for inter-device backup of a protocol status according to claim 1, wherein the processing status comprises at least one of the following: a sent request has not received a response, and a sent request has received a response.
3. 如权利要求 2所述的对协议状态的设备间备份的方法, 其特征在于, 所述状态表, 进一步包括: 请求 /响应消息的内容、 发送对象、 和标识 ID。 The method for back-to-device backup of a protocol state according to claim 2, wherein the status table further comprises: a content of the request/response message, a sending object, and an identifier ID.
4. 如权利要求 1至 3 中任一项所述的对协议状态的设备间备份的方法, 其特征在于, 釆用请求 /响应消息的协议, 包括以下之一: 接入节点控 制协议 ANCP、通用开放策略服务协议 COPS、远程用户拨号认证系统 协议 RADIUS。 The method for inter-device backup of a protocol state according to any one of claims 1 to 3, characterized in that the protocol for requesting/responding messages includes one of the following: an access node control protocol ANCP, General Open Policy Service Protocol (COPS), Remote User Dial-Up Authentication System Protocol (RADIUS).
5. 如权利要求 4所述的对协议状态的设备间备份的方法, 其特征在于, 所述主用设备预先建立状态表包括: 所述主用设备为每一种类型的所 述协议建立一份状态表, 或者建立一张统一的状态表, 并通过状态表 中增加协议类型来区分。 The method for pre-device backup of a protocol status according to claim 4, wherein the pre-establishing a status table of the active device comprises: the primary device establishing one for each type of the protocol A status table, or a unified status table, and differentiated by adding protocol types in the status table.
6. —种对协议状态的设备间备份的系统, 其特征在于, 包括主用设备和 备用设备, 其中, 6. A system for back-to-device backup of a protocol state, comprising: a primary device and a backup device, wherein
所述主用设备, 用于预先建立状态表, 并将所述状态表传给备用 设备; 其中, 所述状态表保存请求 /响应消息的处理状态;  The primary device is configured to pre-establish a state table, and transmit the state table to the standby device; where the state table saves a processing state of the request/response message;
所述备用设备, 用于备份所述主用设备传来的状态表的内容; 并 用于在发生主备切换时, 根据所述状态表的内容重发请求 /响应消息; 或者请求外部设备重发请求 /响应消息。 The standby device is configured to back up the content of the status table sent by the primary device, and is configured to resend the request/response message according to the content of the status table when the active/standby switchover occurs; Or request an external device to resend the request/response message.
7. 如权利要求 6所述的对协议状态的设备间备份的系统, 其特征在于, 所述处理状态包括至少之一: 已发请求未收到响应、 已发请求收到响 应。 7. The system for inter-device backup of protocol status according to claim 6, wherein the processing status comprises at least one of: a sent request has not received a response, and a sent request has received a response.
8. 如权利要求 7所述的对协议状态的设备间备份的系统, 其特征在于, 所述状态表, 进一步包括: 请求 /响应消息的内容、 发送对象、 和标识 ID。 The system for back-to-device backup of a protocol state according to claim 7, wherein the status table further comprises: a content of the request/response message, a sending object, and an identifier ID.
9. 如权利要求 6至 8中任一项所述的对协议状态的设备间备份的系统, 其特征在于, 釆用请求 /响应消息的协议, 包括以下之一: 接入节点控 制协议 ANCP、通用开放策略服务协议 COPS、远程用户拨号认证系统 协议 RADIUS。 The system for inter-device backup of protocol status according to any one of claims 6 to 8, characterized in that the protocol for requesting/responding messages includes one of the following: an access node control protocol ANCP, General Open Policy Service Protocol (COPS), Remote User Dial-Up Authentication System Protocol (RADIUS).
10. 如权利要求 6至 8中任一项所述的对协议状态的设备间备份的系统, 其特征在于, 所述主用设备预先建立状态表包括: 所述主用设备为每 一种类型的所述协议建立一份状态表, 或者建立一张统一的状态表, 并通过状态表中增加协议类型来区分。 The system for inter-device backup of a protocol state according to any one of claims 6 to 8, wherein the pre-establishment status table of the main device comprises: the main device is of each type The protocol establishes a state table, or establishes a unified state table, and distinguishes it by adding a protocol type in the state table.
PCT/CN2010/077497 2010-05-20 2010-09-29 Method and system for backing up protocol state between devices WO2011143888A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010177835.6 2010-05-20
CN201010177835.6A CN102255716B (en) 2010-05-20 2010-05-20 A kind of method and system of the backup between equipment to protocol status

Publications (1)

Publication Number Publication Date
WO2011143888A1 true WO2011143888A1 (en) 2011-11-24

Family

ID=44982723

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/077497 WO2011143888A1 (en) 2010-05-20 2010-09-29 Method and system for backing up protocol state between devices

Country Status (2)

Country Link
CN (1) CN102255716B (en)
WO (1) WO2011143888A1 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102882735B (en) * 2012-10-26 2015-09-09 杭州迪普科技有限公司 A kind of MSTP changing method and device
CN104954162B (en) * 2014-03-31 2018-07-24 杭州迪普科技股份有限公司 A kind of data backup, the method and device for assisting data backup
CN104301140B (en) * 2014-10-08 2019-07-30 广州华多网络科技有限公司 Service request response method, device and system
CN111654384A (en) * 2019-09-27 2020-09-11 中兴通讯股份有限公司 Main/standby switching method, BRAS (broadband remote Access Server) equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050265230A1 (en) * 2004-06-01 2005-12-01 Samsung Electronics Co., Ltd. Apparatus and method for performing state transition of backup router in router redundancy system
CN1725733A (en) * 2005-06-10 2006-01-25 杭州华为三康技术有限公司 Method of route backup in combination equipment and combination equipment
CN1906593A (en) * 2003-11-24 2007-01-31 Tsx公司 System and method for failover
CN1921369A (en) * 2006-08-08 2007-02-28 华为技术有限公司 Adapting method for network connection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1906593A (en) * 2003-11-24 2007-01-31 Tsx公司 System and method for failover
US20050265230A1 (en) * 2004-06-01 2005-12-01 Samsung Electronics Co., Ltd. Apparatus and method for performing state transition of backup router in router redundancy system
CN1725733A (en) * 2005-06-10 2006-01-25 杭州华为三康技术有限公司 Method of route backup in combination equipment and combination equipment
CN1921369A (en) * 2006-08-08 2007-02-28 华为技术有限公司 Adapting method for network connection

Also Published As

Publication number Publication date
CN102255716B (en) 2015-12-16
CN102255716A (en) 2011-11-23

Similar Documents

Publication Publication Date Title
JP5828954B2 (en) Packet processing method and router during server failure
WO2011147312A1 (en) Method, device and system for port backup of service access router
WO2014056454A1 (en) Method and system for ike packet negotiation
WO2009023996A1 (en) Method for implementing network interconnect via link aggregation
JP5419907B2 (en) Network system and communication recovery method
WO2013113228A1 (en) Method, routing device and system for redundant backup of network device
WO2019184923A1 (en) Information backup method and related device
WO2008014696A1 (en) Method and apparatus for realizing communication take-over
JP2010283427A (en) Lac device and failover method
WO2009082978A1 (en) Access network protecting method, system and access edge node
WO2011143893A1 (en) Multi-rack user backup method and system
WO2021129754A1 (en) Message processing method and device, and storage medium
WO2012048585A1 (en) Switching method and router
WO2011113395A2 (en) A method and apparatus for load balance
WO2011143888A1 (en) Method and system for backing up protocol state between devices
WO2011060677A1 (en) Method, device and system for main/standby switch
WO2011143891A1 (en) Method and apparatus for backup of subscriber service information
KR20200072941A (en) Method and apparatus for handling VRRP(Virtual Router Redundancy Protocol)-based network failure using real-time fault detection
CN114071458A (en) Distribution network differential protection method and device
CA2789794C (en) Method and system for emergency switching
KR101587332B1 (en) Method for checking connectivity between controllers and network apparatuses
WO2014044088A1 (en) L2tp network protection method, apparatus and system
WO2015100637A1 (en) Method and switching device for link alternation
CN108768798B (en) Equipment access method and device
KR20180099143A (en) Apparatus and method for recovering tcp-session

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

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

Country of ref document: EP

Kind code of ref document: A1