WO2011063725A1 - Method and system for active-standby synchronization - Google Patents

Method and system for active-standby synchronization Download PDF

Info

Publication number
WO2011063725A1
WO2011063725A1 PCT/CN2010/078889 CN2010078889W WO2011063725A1 WO 2011063725 A1 WO2011063725 A1 WO 2011063725A1 CN 2010078889 W CN2010078889 W CN 2010078889W WO 2011063725 A1 WO2011063725 A1 WO 2011063725A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration information
forwarding plane
plane configuration
node
unit
Prior art date
Application number
PCT/CN2010/078889
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 WO2011063725A1 publication Critical patent/WO2011063725A1/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

Definitions

  • the present invention relates to an active/standby switching technology, and in particular, to a master-slave synchronization method and system. Background technique
  • a common hardware architecture in a large-scale communication device is a centralized active/standby redundancy system.
  • the service switching center is completed on the main control board, and the main control board is a redundant system. Guarantee reliability.
  • the real-time reliability synchronization of the forwarding plane (driver) configuration must be achieved.
  • the prior art mainly has the following two implementation forwarding planes. (Drive) configuration of real-time reliability synchronization methods:
  • the active/standby system only the host can receive data streams and control commands.
  • the active and standby service units (upper layer, control layer) configuration data and dynamic data are actively initiated by the service units of the host and the host according to the configuration data and dynamic data changes.
  • business layer configuration data and dynamic data from the host are set to the forwarding plane (driver) in real time through the business layer semantics, and the reliability and real-time performance of synchronization are ensured through a complex business layer method.
  • driver forwarding plane
  • the master-slave synchronization using this method is based on business semantics.
  • the problem is that all upper-layer service semantics need to be mapped in the synchronization process, and the upper-layer protocol services may be very complicated to implement (such as Complex protocol state machine dynamic data), which increases the complexity of master-slave synchronization.
  • the active and standby systems use hardware replication to enable the active and standby main control boards to receive the same data flow and control flow.
  • This avoids the complex business layer semantic synchronization in the former method, but also has the following problems:
  • There are timers, and the timers on the active and standby timers are difficult to time-out, etc.), the same control flow input (such as protocol messages, protocol messages and protocol timer events are tightly coupled). The same result. Summary of the invention
  • the main purpose of the present invention is to provide a master-slave synchronization method and system, which can reduce the complexity of the master-slave synchronization and improve the reliability of the active/standby switchover.
  • a master-slave synchronization method includes:
  • the standby device obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby control plane;
  • the standby device filters the obtained configuration information, filters the forwarding plane configuration information initiated by the standby control plane, and performs forwarding plane configuration information setting according to the forwarding plane configuration information from the host.
  • the method further includes: the host sending the forwarding plane configuration information that needs to be synchronized to the standby machine according to the type, function, and configuration data index of the current forwarding plane configuration.
  • the host organizes the forwarding plane configuration information that needs to be synchronized in a linked list.
  • the host sends the forwarding plane configuration information to be synchronized to the standby device as follows:
  • the forwarding plane configuration information of each node in the linked list is sent sequentially from the chain header, and the host determines that the forwarding plane configuration information of the node is successfully sent, and then deletes the node, and then deletes the node. Send the forwarding plane configuration information of the next node.
  • the method further includes: the host sets a serial number for the node in the linked list, and when the forwarding plane configuration information that needs to be synchronized in the node is updated, the serial number of the node is added by one, and the host sends the forwarding plane configuration information of the node to the standby machine. Carrying the sequence number of the node, and after receiving the forwarding plane configuration information, the standby machine returns a response carrying the corresponding serial number to the host,
  • Whether the host determines whether the forwarding plane configuration information of the node is successfully sent determining whether the serial number carried by the standby device returns the same sequence number as the host carries the forwarding plane configuration information, and the serial number carried by the standby machine when returning the response The sequence carried by the host when sending the forwarding plane configuration information If the column number is the same, the forwarding plane configuration information of the node is sent successfully; otherwise, the forwarding plane configuration information of the node fails to be sent.
  • the host setting check period further includes: the host periodically checking whether the node still exists in the linked list according to the check period, and sending the forwarding plane configuration information of the node when the node exists.
  • An active/standby synchronization system includes a host and a backup device, and the backup device includes: a forwarding plane configuration information acquiring unit, a forwarding plane configuration information initiating unit, a filtering unit, and a setting unit, wherein the forwarding plane configuration information acquiring unit, The forwarding plane configuration information used by the initiating unit initiated by the forwarding plane configuration information and the forwarding plane configuration information initiating unit;
  • the forwarding plane configuration information initiating unit is configured to initiate forwarding plane configuration information
  • the filtering unit is configured to filter the configuration information acquired by the forwarding plane configuration information acquiring unit, filter the forwarding plane configuration information initiated by the forwarding plane configuration information initiating unit, and send the forwarding plane configuration information from the host to the setting.
  • the setting unit is configured to perform forwarding plane configuration information setting according to forwarding plane configuration information from the filtering unit.
  • the host includes a forwarding plane configuration information sending unit, configured to send forwarding plane configuration information that needs to be synchronized to the standby machine according to the type, function, and configuration data index of the current forwarding plane configuration.
  • the host further includes: a linked list storage unit and a determining unit,
  • the linked list storage unit is configured to store, in a linked list form, forwarding plane configuration information that needs to be synchronized; and maintain the stored linked list according to the notification of the determining unit;
  • the forwarding plane configuration information sending unit is further configured to sequentially send forwarding plane configuration information of each node according to the notification of the determining unit and the linked list stored in the linked list storage unit;
  • the determining unit is configured to notify the forwarding plane configuration information sending unit to send the forwarding plane configuration information of the node in the linked list when determining to start transmitting the forwarding plane configuration information; and determine whether the forwarding plane configuration information of the node is successfully sent, and determine the forwarding of the node. If the configuration information is successfully sent, the communication is successful.
  • the knowledge list storage unit deletes the node, and notifies the forwarding plane configuration information sending unit to transmit the forwarding plane configuration information of the next node in the linked list.
  • the host further includes: a forwarding plane configuration information updating unit, where the standby device further includes a response unit,
  • the forwarding plane configuration information updating unit is configured to update forwarding plane configuration information stored in the linked list storage unit;
  • the linked list storage unit is further configured to store a serial number of a node in the linked list, and add a sequence number of the node when the forwarding plane configuration information updating unit updates the forwarding plane configuration information that needs to be synchronized;
  • the forwarding plane configuration information sending unit is further configured to carry the sequence number of the node when transmitting the forwarding plane configuration information of the node to the standby device;
  • the response unit is configured to: after the forwarding plane configuration information acquiring unit receives the forwarding plane configuration information, return a response carrying the corresponding serial number to the host;
  • the determining unit determines whether the forwarding plane configuration information of the node is successfully sent: determining whether the serial number carried by the standby machine returns the same serial number carried by the host when transmitting the forwarding plane configuration information, and the serial number carried by the standby machine when returning the response If the serial number carried in the forwarding plane configuration information is the same, the configuration information of the forwarding plane of the node is sent successfully. Otherwise, the configuration information of the forwarding plane of the node fails to be sent.
  • the host further includes an checking unit, configured to periodically check whether a node still exists in the linked list stored by the linked list storage unit according to the set check period, and notify the forwarding plane configuration information sending unit to send the forwarding plane of the node when the node exists Configuration information.
  • an checking unit configured to periodically check whether a node still exists in the linked list stored by the linked list storage unit according to the set check period, and notify the forwarding plane configuration information sending unit to send the forwarding plane of the node when the node exists Configuration information.
  • the active/standby synchronization method and system of the present invention after the standby device obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby device, filters the obtained configuration information, and filters the forwarding plane configuration information initiated by the standby control plane. And the forwarding plane configuration information is set according to the forwarding plane configuration information from the host, so that the real-time synchronization of the configuration of the active/standby forwarding plane is realized. Because the invention avoids Semantic synchronization of the complex service layer can reduce the complexity of the active/standby synchronization. Moreover, based on the active/standby synchronization method of the present invention, the active/standby switchover has only a very small hardware delay and no software delay, which can improve the active/standby switchover. Reliability. DRAWINGS
  • FIG. 1 is a schematic flowchart of a master-slave synchronization method according to the present invention
  • FIG. 2 is a schematic structural diagram of a master-slave synchronization system according to the present invention. detailed description
  • the basic idea of the present invention is: after the standby device obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby device, the configuration information is filtered, and the forwarding plane configuration information initiated by the standby control plane is filtered out, and The forwarding plane configuration information is set according to the forwarding plane configuration information from the host, so that real-time synchronization of the configuration of the active and standby forwarding planes is implemented.
  • FIG. 1 is a schematic flowchart of a method for synchronizing the master and the backup according to the present invention.
  • the master-synchronization method of the present invention generally includes the following steps:
  • Step 11 The host sends the forwarding plane configuration information that needs to be synchronized to the standby.
  • the host sends the forwarding plane configuration information that needs to be synchronized to the standby device according to the type, function, and configuration data of the current forwarding plane configuration.
  • Step 12 The standby machine obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby control plane.
  • Step 13 The standby device filters the obtained configuration information, and filters the forwarding plane configuration information initiated by the standby control plane.
  • the standby device directly filters out the forwarding plane configuration information actively initiated by its control plane, and only receives the slave host.
  • the forwarding plane configuration information that is synchronized.
  • Step 14 The standby device performs forwarding plane configuration information setting according to the forwarding plane configuration information from the host.
  • the forwarding plane configuration may have timing dependencies. For example, configuration type A must be before configuration type B. Therefore, after the corresponding configuration information is synchronized to the standby machine, the same forwarding plane operation timing as that on the host needs to be guaranteed.
  • the present invention proposes a "synchronous chain architecture", that is, the host organizes the forwarding plane configuration information that needs to be synchronized in a linked list manner, and when the host sends the forwarding plane configuration information to the standby device, The forwarding plane configuration information of each node in the linked list is sent in sequence from the chain.
  • the host determines that the forwarding plane configuration information of the node is successfully transmitted, the node is deleted, and the forwarding plane configuration information of the next node is transmitted.
  • the configured new nodes are added to the end of the chain in turn, and are sent from the chain each time. If the transmission is successful, the subsequent nodes cannot be sent. This mechanism can ensure the timing of the synchronization between the primary and the backup. In addition, only the configured index information is recorded in the linked list, and the actual data does not need to be recorded, which can save memory usage.
  • the present invention can also introduce the following two mechanisms: First, for a node that has not yet been transmitted, if a data update occurs again, the node serial number mechanism is used to ensure reliability.
  • the host sets a sequence number for the node in the linked list, and when the forwarding plane configuration information that needs to be synchronized in the node is updated, the sequence number of the node is incremented by one, and the host carries the forwarding plane configuration information of the node to the standby device. After receiving the forwarding plane configuration information, the standby device returns a response carrying the corresponding serial number to the host.
  • the host determines whether the forwarding plane configuration information of the node is successfully sent:
  • the sequence number carried by the standby device is the same as the sequence number carried by the host when transmitting the forwarding plane configuration information, and the serial number carried by the standby device when the response is returned is sent by the host.
  • Serial number phase carried when forwarding face configuration information If the configuration information of the forwarding plane of the node is sent successfully, the configuration information of the forwarding plane of the node fails to be sent.
  • the serial number is designed to be:
  • the master-slave synchronization process of the synchronization chain node and the host control node-to-node operation process are completely concurrent, so when the node is being synchronized, the node configuration is updated by the control plane, in order to be accurate. Judging whether the configuration information of the forwarding plane of the node is synchronized or not depends on the serial number of the node.
  • the present invention performs reliability assurance through a periodic timing check mechanism for reliability problems such as loss of information that may exist during synchronization.
  • the host sets the check period
  • the method further includes: the host periodically checks whether the node still exists in the linked list according to the check period, and sends the forwarding plane configuration information of the node to the standby device when the node exists. It should be noted that the host starts the periodic check from the system startup.
  • the operation of the Layer 2 switch port includes setting the physical attributes of the port, such as the optical port attributes, and the rate duplex configuration.
  • the physical attributes must be set first on the standby device. Setting other physical properties sets other configurations to their default values, such as rate duplexing.
  • the port index information is recorded and inserted into the tail of the synchronization chain.
  • the tail of the synchronization chain is also inserted.
  • the host sends the link configuration to the standby device.
  • the response is sent to the host.
  • the host sends the next configuration node by comparing the sequence number of the comparison and determining that the synchronization is normal. If the message is lost, the host sends the current link node to the standby according to the periodic transmission mechanism of the reliability assurance unit.
  • the master-slave synchronization system of the present invention includes a host 21 and a backup machine 22, and the backup device 22 includes: a forwarding plane configuration information acquiring unit 221, and a forwarding plane configuration information is initiated. a unit 222, a filtering unit 223, and a setting unit 224, where The forwarding plane configuration information acquiring unit 221 is configured to obtain forwarding plane configuration information from the host and forwarding plane configuration information initiated by the forwarding plane configuration information initiating unit 222.
  • the forwarding plane configuration information initiating unit 222 is configured to initiate forwarding plane configuration information, and the forwarding plane configuration information initiating unit generally initiates forwarding plane configuration information according to logic inherent to the standby machine;
  • the filtering unit 223 is configured to filter the configuration information acquired by the forwarding plane configuration information acquiring unit 221, filter the forwarding plane configuration information initiated by the forwarding plane configuration information initiating unit, and send the forwarding plane configuration information from the host to the setting.
  • the setting unit 224 is configured to perform forwarding plane configuration information setting according to the forwarding plane configuration information from the filtering unit 223.
  • the host 21 includes a forwarding plane configuration information sending unit 211, configured to send forwarding plane configuration information that needs to be synchronized to the standby machine 22 according to the type, function, and configuration data index of the current forwarding plane configuration.
  • the host 21 further includes: a linked list storage unit 212 and a determining unit 213,
  • the linked list storage unit 212 is configured to store the forwarding plane configuration information that needs to be synchronized in a linked list form, and maintain the stored linked list according to the notification of the determining unit 213;
  • the forwarding plane configuration information sending unit 211 is further configured to sequentially send forwarding plane configuration information of each node according to the notification of the determining unit 213 and the linked list stored in the linked list storage unit;
  • the determining unit 213 is configured to notify the forwarding plane configuration information sending unit 211 to transmit the forwarding plane configuration information of the node in the linked list when determining to start transmitting the forwarding plane configuration information; and determine whether the forwarding plane configuration information of the node is successfully sent, and determine the forwarding of the node. If the plane configuration information is successfully transmitted, the notification linked list storage unit 212 deletes the node, and notifies the forwarding plane configuration information transmitting unit 211 to transmit the forwarding plane configuration information of the next node in the linked list.
  • the host 21 further includes a forwarding plane configuration information updating unit 214, and the standby unit 22 further includes a response unit.
  • the forwarding plane configuration information updating unit 214 is configured to forward the forwarding stored in the linked list storage unit 212.
  • Surface configuration information is updated;
  • the linked list storage unit 212 is further configured to store the serial number of the node in the linked list, and when the forwarding plane configuration information updating unit 214 updates the forwarding plane configuration information that needs to be synchronized in the node, the serial number of the node is incremented by one;
  • the forwarding plane configuration information sending unit 211 is further configured to carry the sequence number of the node when transmitting the forwarding plane configuration information of the node to the standby device 22;
  • the response unit 225 is configured to: after the forwarding plane configuration information acquiring unit 221 receives the forwarding plane configuration information, return a response carrying the corresponding serial number to the host 21;
  • the determining unit 213 determines whether the forwarding plane configuration information of the node is successfully sent: determining whether the serial number carried by the standby machine returns the same serial number carried by the host when transmitting the forwarding plane configuration information, and the serial number carried by the standby machine when returning the response When the host sends the forwarding plane configuration information with the same sequence number, the forwarding plane configuration information of the node is sent successfully. Otherwise, the forwarding plane configuration information of the node fails to be sent.
  • the host 21 further includes an checking unit 215, configured to periodically check whether a node still exists in the linked list stored by the linked list storage unit according to the set check period, and notify the forwarding plane configuration information sending unit 211 to send the forwarding of the node when the node exists. Face configuration information.
  • the present invention relies on monitoring and synchronization in the forwarding plane configuration. Since the configuration of the forwarding plane is simple and simple, there is no complicated control plane semantics, which can avoid complicated master-synchronization of control plane data, and at the same time guarantees Synchronization reliability and real-time performance, the master-slave switching speed is greatly improved, only very small hardware delay.

Landscapes

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

Abstract

A method for active-standby synchronization is disclosed. After a standby device obtains the forwarding plane configuration information from an active device and the forwarding plane configuration information initiated from the standby device (12), the standby device filters the obtained configuration information to filter out the forwarding plane configuration information initiated from the standby device control plane (13), and sets up the forwarding plane configuration information according to the forwarding plane configuration information from the active device (14), thereby the real time synchronization of the active-standby forwarding plane configuration is implemented. A system for active-standby synchronization is also disclosed.

Description

一种主备同步方法及系统 技术领域  Master-synchronization synchronization method and system
本发明涉及主备倒换技术, 尤其涉及一种主备同步方法及系统。 背景技术  The present invention relates to an active/standby switching technology, and in particular, to a master-slave synchronization method and system. Background technique
大型通讯设备中常见的一种硬件架构为集中式主备冗余系统, 对集中 式主备系统而言, 业务交换中心是在主控板上完成的, 主控板为主备冗余 系统以保障可靠性。 对这样的系统而言, 要做到主备倒换业务不中断或中 断时间尽可能的短, 必须做到转发面 (驱动) 配置的实时可靠性同步, 现 有技术主要有以下两种实现转发面(驱动)配置的实时可靠性同步的方法: A common hardware architecture in a large-scale communication device is a centralized active/standby redundancy system. For a centralized primary and backup system, the service switching center is completed on the main control board, and the main control board is a redundant system. Guarantee reliability. For such a system, in order to ensure that the active/standby switching service is not interrupted or the interruption time is as short as possible, the real-time reliability synchronization of the forwarding plane (driver) configuration must be achieved. The prior art mainly has the following two implementation forwarding planes. (Drive) configuration of real-time reliability synchronization methods:
1 )主备系统只有主机能接收数据流和控制命令, 主备之间由主机各业 务单元根据配置数据与动态数据变化主动发起实时的业务层 (上层、 控制 层) 配置数据与动态数据同步, 在备机上, 需要运用业务层语义将来自主 机的业务层配置数据与动态数据实时设置到转发面 (驱动), 通过复杂的 业务层方法确保同步的可靠性与实时性。 可以看出, 釆用这种方法的主备 同步是基于业务语义的, 这样的问题在于: 所有的上层业务语义都需要在 同步过程中进行映射, 而上层协议业务实现起来可能会非常复杂 (如复杂 的协议状态机动态数据 ), 从而会增大主备同步的复杂度。 1) In the active/standby system, only the host can receive data streams and control commands. The active and standby service units (upper layer, control layer) configuration data and dynamic data are actively initiated by the service units of the host and the host according to the configuration data and dynamic data changes. On the standby machine, business layer configuration data and dynamic data from the host are set to the forwarding plane (driver) in real time through the business layer semantics, and the reliability and real-time performance of synchronization are ensured through a complex business layer method. It can be seen that the master-slave synchronization using this method is based on business semantics. The problem is that all upper-layer service semantics need to be mapped in the synchronization process, and the upper-layer protocol services may be very complicated to implement (such as Complex protocol state machine dynamic data), which increases the complexity of master-slave synchronization.
2 ) 主备系统通过硬件复制来使主备主控板接收同样的数据流与控制 流, 这样虽然可以避免实现前一种方法中复杂的业务层语义同步, 但也存 在以下问题: 首先, 并不是所有的硬件体系都支持数据流和控制流的硬件 复制, 即这种方法的应用范围有限; 其次, 即使复制可以通过硬件手段实 现, 但是, 对控制流进行复制在软件实现上可能会出现主备倒换可靠性差 的问题, 比如, 当主备动态运行环境不一致时 (如很多协议状态机中都会 有定时器,而主备上定时器很难做到同时超时等等),同样的控制流输入(如 协议消息, 协议消息与协议定时器事件是紧耦合关系)备机上不一定产生 和主机上同样的结果。 发明内容 2) The active and standby systems use hardware replication to enable the active and standby main control boards to receive the same data flow and control flow. This avoids the complex business layer semantic synchronization in the former method, but also has the following problems: First, and Not all hardware systems support hardware replication of data streams and control streams, that is, the scope of application of this method is limited. Second, even if replication can be implemented by hardware, copying control streams may appear in software implementation. Poor reliability of the standby switchover, for example, when the active and standby dynamic operating environments are inconsistent (as in many protocol state machines) There are timers, and the timers on the active and standby timers are difficult to time-out, etc.), the same control flow input (such as protocol messages, protocol messages and protocol timer events are tightly coupled). The same result. Summary of the invention
有鉴于此, 本发明的主要目的在于提供一种主备同步方法及系统, 能 够降低主备同步的复杂度, 并提高主备倒换的可靠性。  In view of the above, the main purpose of the present invention is to provide a master-slave synchronization method and system, which can reduce the complexity of the master-slave synchronization and improve the reliability of the active/standby switchover.
为达到上述目的, 本发明的技术方案是这样实现的:  In order to achieve the above object, the technical solution of the present invention is achieved as follows:
一种主备同步方法, 包括:  A master-slave synchronization method includes:
备机获取来自主机的转发面配置信息及备机控制面发起的转发面配置 信息;  The standby device obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby control plane;
备机对所述获取的配置信息进行过滤, 滤去备机控制面发起的转发面 配置信息, 并根据来自主机的转发面配置信息进行转发面配置信息设置。  The standby device filters the obtained configuration information, filters the forwarding plane configuration information initiated by the standby control plane, and performs forwarding plane configuration information setting according to the forwarding plane configuration information from the host.
该方法还包括: 主机根据其当前转发面配置的类型、 功能、 配置数据 的索引向备机发送需要同步的转发面配置信息。  The method further includes: the host sending the forwarding plane configuration information that needs to be synchronized to the standby machine according to the type, function, and configuration data index of the current forwarding plane configuration.
主机以链表形式对需要同步的转发面配置信息进行组织,  The host organizes the forwarding plane configuration information that needs to be synchronized in a linked list.
所述主机向备机发送需要同步的转发面配置信息为: 从链头开始依次 发送链表中各节点的转发面配置信息, 主机判定节点的转发面配置信息发 送成功, 则删除所述节点, 再发送下一节点的转发面配置信息。  The host sends the forwarding plane configuration information to be synchronized to the standby device as follows: The forwarding plane configuration information of each node in the linked list is sent sequentially from the chain header, and the host determines that the forwarding plane configuration information of the node is successfully sent, and then deletes the node, and then deletes the node. Send the forwarding plane configuration information of the next node.
该方法还包括: 主机为链表中的节点设置序列号, 更新节点中需要同 步的转发面配置信息时, 将所述节点的序列号加一, 所述主机向备机发送 节点的转发面配置信息时携带所述节点的序列号, 所述备机收到转发面配 置信息后, 向主机返回携带相应序列号的响应,  The method further includes: the host sets a serial number for the node in the linked list, and when the forwarding plane configuration information that needs to be synchronized in the node is updated, the serial number of the node is added by one, and the host sends the forwarding plane configuration information of the node to the standby machine. Carrying the sequence number of the node, and after receiving the forwarding plane configuration information, the standby machine returns a response carrying the corresponding serial number to the host,
所述主机判断节点的转发面配置信息是否发送成功为: 判断备机返回 响应时携带的序列号是否与主机发送转发面配置信息时携带的序列号相 同, 备机返回响应时携带的序列号与主机发送转发面配置信息时携带的序 列号相同, 则节点的转发面配置信息发送成功; 否则, 节点的转发面配置 信息发送失败。 Whether the host determines whether the forwarding plane configuration information of the node is successfully sent: determining whether the serial number carried by the standby device returns the same sequence number as the host carries the forwarding plane configuration information, and the serial number carried by the standby machine when returning the response The sequence carried by the host when sending the forwarding plane configuration information If the column number is the same, the forwarding plane configuration information of the node is sent successfully; otherwise, the forwarding plane configuration information of the node fails to be sent.
主机设置检查周期, 该方法还包括: 主机按照所述检查周期周期性检 查所述链表中是否仍存在节点, 并在存在节点时, 发送所述节点的转发面 配置信息。  The host setting check period, the method further includes: the host periodically checking whether the node still exists in the linked list according to the check period, and sending the forwarding plane configuration information of the node when the node exists.
一种主备同步系统, 包括主机和备机, 所述备机包括: 转发面配置信 息获取单元、 转发面配置信息发起单元、 过滤单元、 设置单元, 其中, 所述转发面配置信息获取单元, 用于获取来自主机的转发面配置信息 及转发面配置信息发起单元发起的转发面配置信息;  An active/standby synchronization system includes a host and a backup device, and the backup device includes: a forwarding plane configuration information acquiring unit, a forwarding plane configuration information initiating unit, a filtering unit, and a setting unit, wherein the forwarding plane configuration information acquiring unit, The forwarding plane configuration information used by the initiating unit initiated by the forwarding plane configuration information and the forwarding plane configuration information initiating unit;
所述转发面配置信息发起单元, 用于发起转发面配置信息;  The forwarding plane configuration information initiating unit is configured to initiate forwarding plane configuration information;
所述过滤单元, 用于对转发面配置信息获取单元获取的配置信息进行 过滤, 滤去所述转发面配置信息发起单元发起的转发面配置信息, 并将来 自主机的转发面配置信息发送到设置单元;  The filtering unit is configured to filter the configuration information acquired by the forwarding plane configuration information acquiring unit, filter the forwarding plane configuration information initiated by the forwarding plane configuration information initiating unit, and send the forwarding plane configuration information from the host to the setting. Unit
所述设置单元, 用于根据来自过滤单元的转发面配置信息进行转发面 配置信息设置。  The setting unit is configured to perform forwarding plane configuration information setting according to forwarding plane configuration information from the filtering unit.
所述主机包括转发面配置信息发送单元, 用于根据其当前转发面配置 的类型、 功能、 配置数据的索引向备机发送需要同步的转发面配置信息。  The host includes a forwarding plane configuration information sending unit, configured to send forwarding plane configuration information that needs to be synchronized to the standby machine according to the type, function, and configuration data index of the current forwarding plane configuration.
所述主机还包括: 链表存储单元和判断单元,  The host further includes: a linked list storage unit and a determining unit,
所述链表存储单元, 用于以链表形式对需要同步的转发面配置信息进 行存储; 以及根据判断单元的通知, 对存储的链表进行维护;  The linked list storage unit is configured to store, in a linked list form, forwarding plane configuration information that needs to be synchronized; and maintain the stored linked list according to the notification of the determining unit;
所述转发面配置信息发送单元, 还用于根据判断单元的通知以及链表 存储单元中存储的链表依次发送各节点的转发面配置信息;  The forwarding plane configuration information sending unit is further configured to sequentially send forwarding plane configuration information of each node according to the notification of the determining unit and the linked list stored in the linked list storage unit;
所述判断单元, 用于在判定开始发送转发面配置信息时, 通知转发面 配置信息发送单元发送链表中节点的转发面配置信息; 以及判断节点的转 发面配置信息是否发送成功, 判定节点的转发面配置信息发送成功, 则通 知链表存储单元删除所述节点, 并通知转发面配置信息发送单元发送链表 中下一节点的转发面配置信息。 The determining unit is configured to notify the forwarding plane configuration information sending unit to send the forwarding plane configuration information of the node in the linked list when determining to start transmitting the forwarding plane configuration information; and determine whether the forwarding plane configuration information of the node is successfully sent, and determine the forwarding of the node. If the configuration information is successfully sent, the communication is successful. The knowledge list storage unit deletes the node, and notifies the forwarding plane configuration information sending unit to transmit the forwarding plane configuration information of the next node in the linked list.
所述主机还包括: 转发面配置信息更新单元, 所述备机还包括响应单 元,  The host further includes: a forwarding plane configuration information updating unit, where the standby device further includes a response unit,
所述转发面配置信息更新单元, 用于对链表存储单元中存储的转发面 配置信息进行更新;  The forwarding plane configuration information updating unit is configured to update forwarding plane configuration information stored in the linked list storage unit;
所述链表存储单元, 还用于存储链表中节点的序列号, 并在转发面配 置信息更新单元更新节点中需要同步的转发面配置信息时, 将所述节点的 序列号加一;  The linked list storage unit is further configured to store a serial number of a node in the linked list, and add a sequence number of the node when the forwarding plane configuration information updating unit updates the forwarding plane configuration information that needs to be synchronized;
所述转发面配置信息发送单元, 还用于在向备机发送节点的转发面配 置信息时携带所述节点的序列号;  The forwarding plane configuration information sending unit is further configured to carry the sequence number of the node when transmitting the forwarding plane configuration information of the node to the standby device;
所述响应单元, 用于在转发面配置信息获取单元收到转发面配置信息 后, 向主机返回携带相应序列号的响应;  The response unit is configured to: after the forwarding plane configuration information acquiring unit receives the forwarding plane configuration information, return a response carrying the corresponding serial number to the host;
所述判断单元判断节点的转发面配置信息是否发送成功为: 判断备机 返回响应时携带的序列号是否与主机发送转发面配置信息时携带的序列号 相同, 备机返回响应时携带的序列号与主机发送转发面配置信息时携带的 序列号相同, 则节点的转发面配置信息发送成功; 否则, 节点的转发面配 置信息发送失败。  The determining unit determines whether the forwarding plane configuration information of the node is successfully sent: determining whether the serial number carried by the standby machine returns the same serial number carried by the host when transmitting the forwarding plane configuration information, and the serial number carried by the standby machine when returning the response If the serial number carried in the forwarding plane configuration information is the same, the configuration information of the forwarding plane of the node is sent successfully. Otherwise, the configuration information of the forwarding plane of the node fails to be sent.
所述主机还包括检查单元, 用于按照设置的检查周期周期性检查链表 存储单元存储的链表中是否仍存在节点, 并在存在节点时, 通知转发面配 置信息发送单元发送所述节点的转发面配置信息。  The host further includes an checking unit, configured to periodically check whether a node still exists in the linked list stored by the linked list storage unit according to the set check period, and notify the forwarding plane configuration information sending unit to send the forwarding plane of the node when the node exists Configuration information.
本发明主备同步方法及系统, 备机获取来自主机的转发面配置信息及 备机发起的转发面配置信息后, 对获取的配置信息进行过滤, 滤去备机控 制面发起的转发面配置信息, 并根据来自主机的转发面配置信息进行转发 面配置信息设置, 从而实现主备转发面配置的实时同步。 由于本发明避免 了复杂的业务层语义同步, 能够降低主备同步的复杂度; 并且, 基于本发 明的主备同步方法, 主备倒换时只有非常小的硬件时延, 没有软件时延, 能够提高主备倒换的可靠性。 附图说明 The active/standby synchronization method and system of the present invention, after the standby device obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby device, filters the obtained configuration information, and filters the forwarding plane configuration information initiated by the standby control plane. And the forwarding plane configuration information is set according to the forwarding plane configuration information from the host, so that the real-time synchronization of the configuration of the active/standby forwarding plane is realized. Because the invention avoids Semantic synchronization of the complex service layer can reduce the complexity of the active/standby synchronization. Moreover, based on the active/standby synchronization method of the present invention, the active/standby switchover has only a very small hardware delay and no software delay, which can improve the active/standby switchover. Reliability. DRAWINGS
图 1为本发明主备同步方法流程示意图;  1 is a schematic flowchart of a master-slave synchronization method according to the present invention;
图 2为本发明主备同步系统结构示意图。 具体实施方式  2 is a schematic structural diagram of a master-slave synchronization system according to the present invention. detailed description
本发明的基本思想是: 备机获取来自主机的转发面配置信息及备机发 起的转发面配置信息后, 对获取的配置信息进行过滤, 滤去备机控制面发 起的转发面配置信息, 并根据来自主机的转发面配置信息进行转发面配置 信息设置, 从而实现主备转发面配置的实时同步。  The basic idea of the present invention is: after the standby device obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby device, the configuration information is filtered, and the forwarding plane configuration information initiated by the standby control plane is filtered out, and The forwarding plane configuration information is set according to the forwarding plane configuration information from the host, so that real-time synchronization of the configuration of the active and standby forwarding planes is implemented.
下面结合附图对技术方案的实施作进一步的详细描述。  The implementation of the technical solution will be further described in detail below with reference to the accompanying drawings.
图 1为本发明主备同步方法流程示意图, 如图 1所示, 本发明主备同 步方法一般包括以下步骤:  FIG. 1 is a schematic flowchart of a method for synchronizing the master and the backup according to the present invention. As shown in FIG. 1, the master-synchronization method of the present invention generally includes the following steps:
步骤 11: 主机向备机发送需要同步的转发面配置信息。  Step 11: The host sends the forwarding plane configuration information that needs to be synchronized to the standby.
这里, 主机具体根据其当前转发面配置的类型、 功能、 配置数据的索 引向备机发送需要同步的转发面配置信息。  Here, the host sends the forwarding plane configuration information that needs to be synchronized to the standby device according to the type, function, and configuration data of the current forwarding plane configuration.
一般情况下, 并不需要对所有配置信息进行同步, 主机只需要按照预 先的设置对需要同步的配置类型进行监控即可。  In general, it is not necessary to synchronize all configuration information. The host only needs to monitor the configuration types that need to be synchronized according to the preset settings.
步骤 12: 备机获取来自主机的转发面配置信息及备机控制面发起的转 发面配置信息。  Step 12: The standby machine obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby control plane.
步骤 13: 备机对所述获取的配置信息进行过滤, 滤去备机控制面发起 的转发面配置信息。  Step 13: The standby device filters the obtained configuration information, and filters the forwarding plane configuration information initiated by the standby control plane.
备机直接过滤掉其控制面主动发起的转发面配置信息, 仅接收从主机 上同步过来的转发面配置信息。 The standby device directly filters out the forwarding plane configuration information actively initiated by its control plane, and only receives the slave host. The forwarding plane configuration information that is synchronized.
步骤 14: 备机根据来自主机的转发面配置信息进行转发面配置信息设 置。  Step 14: The standby device performs forwarding plane configuration information setting according to the forwarding plane configuration information from the host.
实际应用中,转发面配置可能是有时序依赖关系的, 比如, 配置类型 A 必须在配置类型 B之前, 因此, 相应的配置信息同步到备机上后需要保证 与主机上一样的转发面操作时序。  In actual applications, the forwarding plane configuration may have timing dependencies. For example, configuration type A must be before configuration type B. Therefore, after the corresponding configuration information is synchronized to the standby machine, the same forwarding plane operation timing as that on the host needs to be guaranteed.
为了保证主备机的转发面时序一致,本发明提出了一种 "同步链架构", 即主机以链表形式对需要同步的转发面配置信息进行组织, 主机向备机发 送转发面配置信息时, 从链头开始依次发送链表中各节点的转发面配置信 息, 主机判定节点的转发面配置信息发送成功, 则删除所述节点, 再发送 下一节点的转发面配置信息。  In order to ensure that the forwarding planes of the primary and backup machines are in the same sequence, the present invention proposes a "synchronous chain architecture", that is, the host organizes the forwarding plane configuration information that needs to be synchronized in a linked list manner, and when the host sends the forwarding plane configuration information to the standby device, The forwarding plane configuration information of each node in the linked list is sent in sequence from the chain. When the host determines that the forwarding plane configuration information of the node is successfully transmitted, the node is deleted, and the forwarding plane configuration information of the next node is transmitted.
需要说明的是, 配置的新节点依次加入链尾, 每次从链头开始发送。 没发送成功不能发送后续节点, 利用此机制即可保证主备同步的时序问题。 另外, 链表中一般仅记录配置的索引信息, 无需记录实际数据, 这样可以 节约内存的使用。  It should be noted that the configured new nodes are added to the end of the chain in turn, and are sent from the chain each time. If the transmission is successful, the subsequent nodes cannot be sent. This mechanism can ensure the timing of the synchronization between the primary and the backup. In addition, only the configured index information is recorded in the linked list, and the actual data does not need to be recorded, which can save memory usage.
为了保证主备同步的可靠性, 本发明还可以引入以下两个机制: 首先, 对尚未发送的节点, 如果又发生了数据更新, 则依靠节点序列 号机制保证可靠性。  In order to ensure the reliability of the master-slave synchronization, the present invention can also introduce the following two mechanisms: First, for a node that has not yet been transmitted, if a data update occurs again, the node serial number mechanism is used to ensure reliability.
具体的, 主机为链表中的节点设置序列号, 更新节点中需要同步的转 发面配置信息时, 将所述节点的序列号加一, 所述主机向备机发送节点的 转发面配置信息时携带所述节点的序列号, 所述备机收到转发面配置信息 后, 向主机返回携带相应序列号的响应。  Specifically, the host sets a sequence number for the node in the linked list, and when the forwarding plane configuration information that needs to be synchronized in the node is updated, the sequence number of the node is incremented by one, and the host carries the forwarding plane configuration information of the node to the standby device. After receiving the forwarding plane configuration information, the standby device returns a response carrying the corresponding serial number to the host.
主机判断节点的转发面配置信息是否发送成功为: 判断备机返回响应 时携带的序列号是否与主机发送转发面配置信息时携带的序列号相同, 备 机返回响应时携带的序列号与主机发送转发面配置信息时携带的序列号相 同, 则节点的转发面配置信息发送成功; 否则, 节点的转发面配置信息发 送失败。 The host determines whether the forwarding plane configuration information of the node is successfully sent: The sequence number carried by the standby device is the same as the sequence number carried by the host when transmitting the forwarding plane configuration information, and the serial number carried by the standby device when the response is returned is sent by the host. Serial number phase carried when forwarding face configuration information If the configuration information of the forwarding plane of the node is sent successfully, the configuration information of the forwarding plane of the node fails to be sent.
序列号的设计目的在于: 同步链节点的主备同步过程和主机控制面对 节点的操作过程是完全并发的, 因此可能正在同步节点的时候, 节点的配 置又被控制面更新了, 为了准确的判断节点的转发面配置信息是否同步完 成, 就要依靠节点的序列号来判断。  The serial number is designed to be: The master-slave synchronization process of the synchronization chain node and the host control node-to-node operation process are completely concurrent, so when the node is being synchronized, the node configuration is updated by the control plane, in order to be accurate. Judging whether the configuration information of the forwarding plane of the node is synchronized or not depends on the serial number of the node.
其次, 对与同步过程中可能存在的信息丟失等可靠性问题, 本发明通 过周期定时检查机制来进行可靠性保证。  Secondly, the present invention performs reliability assurance through a periodic timing check mechanism for reliability problems such as loss of information that may exist during synchronization.
具体的, 主机设置检查周期, 该方法还包括: 主机按照所述检查周期 周期性检查所述链表中是否仍存在节点, 并在存在节点时, 发送所述节点 的转发面配置信息到备机。 需要说明的是, 主机从系统启动就开始进行周 期性检查。  Specifically, the host sets the check period, and the method further includes: the host periodically checks whether the node still exists in the linked list according to the check period, and sends the forwarding plane configuration information of the node to the standby device when the node exists. It should be noted that the host starts the periodic check from the system startup.
以二层交换机端口的转发面配置同步为例, 二层交换机端口的操作包 括设置端口物理属性, 如光电口属性, 以及速率双工配置等等, 其中必须 保证物理属性在备机上先设置, 因为设置物理属性时会将其他配置设置为 默认值, 如速率双工。  Take the configuration of the forwarding plane of the Layer 2 switch port as an example. The operation of the Layer 2 switch port includes setting the physical attributes of the port, such as the optical port attributes, and the rate duplex configuration. The physical attributes must be set first on the standby device. Setting other physical properties sets other configurations to their default values, such as rate duplexing.
当主机发起物理端口属性配置且判定此操作是需要同步的配置类型, 则记录端口索引信息, 将其插入同步链尾部。 后续控制面再发起速率双工 配置时, 也插入同步链尾部。 之后, 主机发送链头配置到备机; 备机配置 完后, 发送响应给主机; 主机收到回应后, 通过比对判定序列号一致, 认 为同步正常, 则发送下一个配置节点。 如果消息丟失, 主机根据可靠性保 证单元的周期性发送机制, 会发送当前的链头节点到备机。  When the host initiates physical port attribute configuration and determines that this operation is a configuration type that needs to be synchronized, the port index information is recorded and inserted into the tail of the synchronization chain. When the subsequent control plane initiates the rate duplex configuration, the tail of the synchronization chain is also inserted. After that, the host sends the link configuration to the standby device. After the standby device is configured, the response is sent to the host. After receiving the response, the host sends the next configuration node by comparing the sequence number of the comparison and determining that the synchronization is normal. If the message is lost, the host sends the current link node to the standby according to the periodic transmission mechanism of the reliability assurance unit.
图 2为本发明主备同步系统结构示意图, 如图 2所示, 本发明主备同 步系统包括主机 21和备机 22,备机 22包括:转发面配置信息获取单元 221、 转发面配置信息发起单元 222、 过滤单元 223、 设置单元 224, 其中, 转发面配置信息获取单元 221 ,用于获取来自主机的转发面配置信息及 转发面配置信息发起单元 222发起的转发面配置信息; 2 is a schematic structural diagram of a master-slave synchronization system according to the present invention. As shown in FIG. 2, the master-slave synchronization system of the present invention includes a host 21 and a backup machine 22, and the backup device 22 includes: a forwarding plane configuration information acquiring unit 221, and a forwarding plane configuration information is initiated. a unit 222, a filtering unit 223, and a setting unit 224, where The forwarding plane configuration information acquiring unit 221 is configured to obtain forwarding plane configuration information from the host and forwarding plane configuration information initiated by the forwarding plane configuration information initiating unit 222.
转发面配置信息发起单元 222, 用于发起转发面配置信息, 转发面配置 信息发起单元一般根据备机固有的逻辑发起转发面配置信息;  The forwarding plane configuration information initiating unit 222 is configured to initiate forwarding plane configuration information, and the forwarding plane configuration information initiating unit generally initiates forwarding plane configuration information according to logic inherent to the standby machine;
过滤单元 223 ,用于对转发面配置信息获取单元 221获取的配置信息进 行过滤, 滤去所述转发面配置信息发起单元发起的转发面配置信息, 并将 来自主机的转发面配置信息发送到设置单元 224;  The filtering unit 223 is configured to filter the configuration information acquired by the forwarding plane configuration information acquiring unit 221, filter the forwarding plane configuration information initiated by the forwarding plane configuration information initiating unit, and send the forwarding plane configuration information from the host to the setting. Unit 224;
设置单元 224,用于根据来自过滤单元 223的转发面配置信息进行转发 面配置信息设置。  The setting unit 224 is configured to perform forwarding plane configuration information setting according to the forwarding plane configuration information from the filtering unit 223.
主机 21 包括转发面配置信息发送单元 211 , 用于根据其当前转发面配 置的类型、 功能、 配置数据的索引向备机 22发送需要同步的转发面配置信 息。  The host 21 includes a forwarding plane configuration information sending unit 211, configured to send forwarding plane configuration information that needs to be synchronized to the standby machine 22 according to the type, function, and configuration data index of the current forwarding plane configuration.
主机 21还包括: 链表存储单元 212和判断单元 213 ,  The host 21 further includes: a linked list storage unit 212 and a determining unit 213,
链表存储单元 212,用于以链表形式对需要同步的转发面配置信息进行 存储; 以及根据判断单元 213的通知, 对存储的链表进行维护;  The linked list storage unit 212 is configured to store the forwarding plane configuration information that needs to be synchronized in a linked list form, and maintain the stored linked list according to the notification of the determining unit 213;
转发面配置信息发送单元 211 ,还用于根据判断单元 213的通知以及链 表存储单元中存储的链表依次发送各节点的转发面配置信息;  The forwarding plane configuration information sending unit 211 is further configured to sequentially send forwarding plane configuration information of each node according to the notification of the determining unit 213 and the linked list stored in the linked list storage unit;
判断单元 213 , 用于在判定开始发送转发面配置信息时, 通知转发面配 置信息发送单元 211 发送链表中节点的转发面配置信息; 以及判断节点的 转发面配置信息是否发送成功, 判定节点的转发面配置信息发送成功, 则 通知链表存储单元 212删除所述节点,并通知转发面配置信息发送单元 211 发送链表中下一节点的转发面配置信息。  The determining unit 213 is configured to notify the forwarding plane configuration information sending unit 211 to transmit the forwarding plane configuration information of the node in the linked list when determining to start transmitting the forwarding plane configuration information; and determine whether the forwarding plane configuration information of the node is successfully sent, and determine the forwarding of the node. If the plane configuration information is successfully transmitted, the notification linked list storage unit 212 deletes the node, and notifies the forwarding plane configuration information transmitting unit 211 to transmit the forwarding plane configuration information of the next node in the linked list.
主机 21还包括转发面配置信息更新单元 214,备机 22还包括响应单元 The host 21 further includes a forwarding plane configuration information updating unit 214, and the standby unit 22 further includes a response unit.
225 , 225,
转发面配置信息更新单元 214,用于对链表存储单元 212中存储的转发 面配置信息进行更新; The forwarding plane configuration information updating unit 214 is configured to forward the forwarding stored in the linked list storage unit 212. Surface configuration information is updated;
链表存储单元 212,还用于存储链表中节点的序列号, 并在转发面配置 信息更新单元 214更新节点中需要同步的转发面配置信息时, 将所述节点 的序列号加一;  The linked list storage unit 212 is further configured to store the serial number of the node in the linked list, and when the forwarding plane configuration information updating unit 214 updates the forwarding plane configuration information that needs to be synchronized in the node, the serial number of the node is incremented by one;
转发面配置信息发送单元 211 , 还用于在向备机 22发送节点的转发面 配置信息时携带所述节点的序列号;  The forwarding plane configuration information sending unit 211 is further configured to carry the sequence number of the node when transmitting the forwarding plane configuration information of the node to the standby device 22;
响应单元 225 ,用于在转发面配置信息获取单元 221收到转发面配置信 息后, 向主机 21返回携带相应序列号的响应;  The response unit 225 is configured to: after the forwarding plane configuration information acquiring unit 221 receives the forwarding plane configuration information, return a response carrying the corresponding serial number to the host 21;
判断单元 213判断节点的转发面配置信息是否发送成功为: 判断备机 返回响应时携带的序列号是否与主机发送转发面配置信息时携带的序列号 相同, 备机返回响应时携带的序列号与主机发送转发面配置信息时携带的 序列号相同, 则节点的转发面配置信息发送成功; 否则, 节点的转发面配 置信息发送失败。  The determining unit 213 determines whether the forwarding plane configuration information of the node is successfully sent: determining whether the serial number carried by the standby machine returns the same serial number carried by the host when transmitting the forwarding plane configuration information, and the serial number carried by the standby machine when returning the response When the host sends the forwarding plane configuration information with the same sequence number, the forwarding plane configuration information of the node is sent successfully. Otherwise, the forwarding plane configuration information of the node fails to be sent.
主机 21还包括检查单元 215, 用于按照设置的检查周期周期性检查链 表存储单元存储的链表中是否仍存在节点, 并在存在节点时, 通知转发面 配置信息发送单元 211发送所述节点的转发面配置信息。  The host 21 further includes an checking unit 215, configured to periodically check whether a node still exists in the linked list stored by the linked list storage unit according to the set check period, and notify the forwarding plane configuration information sending unit 211 to send the forwarding of the node when the node exists. Face configuration information.
可以看出, 本发明依靠在转发面配置中进行监控及同步, 由于转发面 的配置是很单纯简单的, 没有复杂的控制面语义, 这样可以避免复杂的控 制面数据主备同步, 同时保障了同步的可靠性和实时性, 主备倒换速度得 到大大提高, 只有非常小的硬件时延而已。  It can be seen that the present invention relies on monitoring and synchronization in the forwarding plane configuration. Since the configuration of the forwarding plane is simple and simple, there is no complicated control plane semantics, which can avoid complicated master-synchronization of control plane data, and at the same time guarantees Synchronization reliability and real-time performance, the master-slave switching speed is greatly improved, only very small hardware delay.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims

权利要求书 Claim
1、 一种主备同步方法, 其特征在于, 该方法包括:  A master-slave synchronization method, the method comprising:
备机获取来自主机的转发面配置信息及备机控制面发起的转发面配置 信息;  The standby device obtains the forwarding plane configuration information from the host and the forwarding plane configuration information initiated by the standby control plane;
备机对所述获取的配置信息进行过滤, 滤去备机控制面发起的转发面 配置信息, 并根据来自主机的转发面配置信息进行转发面配置信息设置。  The standby device filters the obtained configuration information, filters the forwarding plane configuration information initiated by the standby control plane, and performs forwarding plane configuration information setting according to the forwarding plane configuration information from the host.
2、 根据权利要求 1所述的方法, 其特征在于, 该方法还包括: 主机根 据其当前转发面配置的类型、 功能、 配置数据的索引向备机发送需要同步 的转发面配置信息。  The method according to claim 1, wherein the method further comprises: the host sending the forwarding plane configuration information that needs to be synchronized to the standby machine according to the type, function, and configuration data index of the current forwarding plane configuration.
3、 根据权利要求 2所述的方法, 其特征在于, 主机以链表形式对需要 同步的转发面配置信息进行组织,  The method according to claim 2, wherein the host organizes the forwarding plane configuration information that needs to be synchronized in a linked list manner.
所述主机向备机发送需要同步的转发面配置信息为: 从链头开始依次 发送链表中各节点的转发面配置信息, 主机判定节点的转发面配置信息发 送成功, 则删除所述节点, 再发送下一节点的转发面配置信息。  The host sends the forwarding plane configuration information to be synchronized to the standby device as follows: The forwarding plane configuration information of each node in the linked list is sent sequentially from the chain header, and the host determines that the forwarding plane configuration information of the node is successfully sent, and then deletes the node, and then deletes the node. Send the forwarding plane configuration information of the next node.
4、 根据权利要求 3所述的方法, 其特征在于, 该方法还包括: 主机为 链表中的节点设置序列号, 更新节点中需要同步的转发面配置信息时, 将 所述节点的序列号加一, 所述主机向备机发送节点的转发面配置信息时携 带所述节点的序列号, 所述备机收到转发面配置信息后, 向主机返回携带 相应序列号的响应,  The method according to claim 3, wherein the method further comprises: the host setting a serial number for the node in the linked list, and updating the serial number of the node when updating the forwarding plane configuration information that needs to be synchronized in the node After the host sends the forwarding plane configuration information of the node to the standby device, the sequence number of the node is carried, and after receiving the forwarding plane configuration information, the standby device returns a response carrying the corresponding sequence number to the host.
所述主机判断节点的转发面配置信息是否发送成功为: 判断备机返回 响应时携带的序列号是否与主机发送转发面配置信息时携带的序列号相 同, 备机返回响应时携带的序列号与主机发送转发面配置信息时携带的序 列号相同, 则节点的转发面配置信息发送成功; 否则, 节点的转发面配置 信息发送失败。  Whether the host determines whether the forwarding plane configuration information of the node is successfully sent: determining whether the serial number carried by the standby device returns the same sequence number as the host carries the forwarding plane configuration information, and the serial number carried by the standby machine when returning the response When the host sends the forwarding plane configuration information with the same sequence number, the forwarding plane configuration information of the node is sent successfully. Otherwise, the forwarding plane configuration information of the node fails to be sent.
5、根据权利要求 3或 4所述的方法,其特征在于,主机设置检查周期, 该方法还包括: 主机按照所述检查周期周期性检查所述链表中是否仍存在 节点, 并在存在节点时, 发送所述节点的转发面配置信息。 The method according to claim 3 or 4, wherein the host sets an inspection period, The method further includes: the host periodically checking whether the node still exists in the linked list according to the checking period, and sending the forwarding plane configuration information of the node when the node exists.
6、 一种主备同步系统, 包括主机和备机, 其特征在于, 所述备机包括: 转发面配置信息获取单元、 转发面配置信息发起单元、 过滤单元、 设置单 元, 其中,  An active/standby synchronization system, including a host and a backup device, wherein the backup device includes: a forwarding plane configuration information acquiring unit, a forwarding plane configuration information initiating unit, a filtering unit, and a setting unit, where
所述转发面配置信息获取单元, 用于获取来自主机的转发面配置信息 及转发面配置信息发起单元发起的转发面配置信息;  The forwarding plane configuration information acquiring unit is configured to obtain forwarding plane configuration information from the host and forwarding plane configuration information initiated by the forwarding plane configuration information initiating unit;
所述转发面配置信息发起单元, 用于发起转发面配置信息;  The forwarding plane configuration information initiating unit is configured to initiate forwarding plane configuration information;
所述过滤单元, 用于对转发面配置信息获取单元获取的配置信息进行 过滤, 滤去所述转发面配置信息发起单元发起的转发面配置信息, 并将来 自主机的转发面配置信息发送到设置单元;  The filtering unit is configured to filter the configuration information acquired by the forwarding plane configuration information acquiring unit, filter the forwarding plane configuration information initiated by the forwarding plane configuration information initiating unit, and send the forwarding plane configuration information from the host to the setting. Unit
所述设置单元, 用于根据来自过滤单元的转发面配置信息进行转发面 配置信息设置。  The setting unit is configured to perform forwarding plane configuration information setting according to forwarding plane configuration information from the filtering unit.
7、 根据权利要求 6所述的系统, 其特征在于, 所述主机包括转发面配 置信息发送单元, 用于根据其当前转发面配置的类型、 功能、 配置数据的 索引向备机发送需要同步的转发面配置信息。  The system according to claim 6, wherein the host includes a forwarding plane configuration information sending unit, configured to send, to the standby device, a synchronization that needs to be synchronized according to an index of the type, function, and configuration data of the current forwarding plane configuration. Forwarding plane configuration information.
8、 根据权利要求 7所述的系统, 其特征在于, 所述主机还包括: 链表 存储单元和判断单元,  The system according to claim 7, wherein the host further comprises: a linked list storage unit and a determining unit,
所述链表存储单元, 用于以链表形式对需要同步的转发面配置信息进 行存储; 以及根据判断单元的通知, 对存储的链表进行维护;  The linked list storage unit is configured to store, in a linked list form, forwarding plane configuration information that needs to be synchronized; and maintain the stored linked list according to the notification of the determining unit;
所述转发面配置信息发送单元, 还用于根据判断单元的通知以及链表 存储单元中存储的链表依次发送各节点的转发面配置信息;  The forwarding plane configuration information sending unit is further configured to sequentially send forwarding plane configuration information of each node according to the notification of the determining unit and the linked list stored in the linked list storage unit;
所述判断单元, 用于在判定开始发送转发面配置信息时, 通知转发面 配置信息发送单元发送链表中节点的转发面配置信息; 以及判断节点的转 发面配置信息是否发送成功, 判定节点的转发面配置信息发送成功, 则通 知链表存储单元删除所述节点, 并通知转发面配置信息发送单元发送链表 中下一节点的转发面配置信息。 The determining unit is configured to notify the forwarding plane configuration information sending unit to send the forwarding plane configuration information of the node in the linked list when determining to start transmitting the forwarding plane configuration information; and determine whether the forwarding plane configuration information of the node is successfully sent, and determine the forwarding of the node. If the configuration information is successfully sent, the communication is successful. The knowledge list storage unit deletes the node, and notifies the forwarding plane configuration information sending unit to transmit the forwarding plane configuration information of the next node in the linked list.
9、 根据权利要求 8所述的系统, 其特征在于, 所述主机还包括: 转发 面配置信息更新单元, 所述备机还包括响应单元,  The system according to claim 8, wherein the host further comprises: a forwarding plane configuration information updating unit, wherein the standby device further comprises a response unit,
所述转发面配置信息更新单元, 用于对链表存储单元中存储的转发面 配置信息进行更新;  The forwarding plane configuration information updating unit is configured to update forwarding plane configuration information stored in the linked list storage unit;
所述链表存储单元, 还用于存储链表中节点的序列号, 并在转发面配 置信息更新单元更新节点中需要同步的转发面配置信息时, 将所述节点的 序列号加一;  The linked list storage unit is further configured to store a serial number of a node in the linked list, and add a sequence number of the node when the forwarding plane configuration information updating unit updates the forwarding plane configuration information that needs to be synchronized;
所述转发面配置信息发送单元, 还用于在向备机发送节点的转发面配 置信息时携带所述节点的序列号;  The forwarding plane configuration information sending unit is further configured to carry the sequence number of the node when transmitting the forwarding plane configuration information of the node to the standby device;
所述响应单元, 用于在转发面配置信息获取单元收到转发面配置信息 后, 向主机返回携带相应序列号的响应;  The response unit is configured to: after the forwarding plane configuration information acquiring unit receives the forwarding plane configuration information, return a response carrying the corresponding serial number to the host;
所述判断单元判断节点的转发面配置信息是否发送成功为: 判断备机 返回响应时携带的序列号是否与主机发送转发面配置信息时携带的序列号 相同, 备机返回响应时携带的序列号与主机发送转发面配置信息时携带的 序列号相同, 则节点的转发面配置信息发送成功; 否则, 节点的转发面配 置信息发送失败。  The determining unit determines whether the forwarding plane configuration information of the node is successfully sent: determining whether the serial number carried by the standby machine returns the same serial number carried by the host when transmitting the forwarding plane configuration information, and the serial number carried by the standby machine when returning the response If the serial number carried in the forwarding plane configuration information is the same, the configuration information of the forwarding plane of the node is sent successfully. Otherwise, the configuration information of the forwarding plane of the node fails to be sent.
10、 根据权利要求 8或 9所述的系统, 其特征在于, 所述主机还包括 检查单元, 用于按照设置的检查周期周期性检查链表存储单元存储的链表 中是否仍存在节点, 并在存在节点时, 通知转发面配置信息发送单元发送 所述节点的转发面配置信息。  The system according to claim 8 or 9, wherein the host further comprises an checking unit, configured to periodically check whether a node still exists in the linked list stored in the linked list storage unit according to the set check cycle, and exists in the presence At the time of the node, the notification forwarding plane configuration information transmitting unit transmits the forwarding plane configuration information of the node.
PCT/CN2010/078889 2009-11-25 2010-11-18 Method and system for active-standby synchronization WO2011063725A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200910224254.0 2009-11-25
CN200910224254.0A CN102075341B (en) 2009-11-25 2009-11-25 Method and system for main-standby synchronization

Publications (1)

Publication Number Publication Date
WO2011063725A1 true WO2011063725A1 (en) 2011-06-03

Family

ID=44033696

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/078889 WO2011063725A1 (en) 2009-11-25 2010-11-18 Method and system for active-standby synchronization

Country Status (2)

Country Link
CN (1) CN102075341B (en)
WO (1) WO2011063725A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833280A (en) * 2018-03-19 2018-11-16 新华三信息安全技术有限公司 A kind of user management list item delivery method, device and control plane equipment

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077242B (en) * 2013-01-11 2016-03-09 北京佳讯飞鸿电气股份有限公司 The method of a kind of fulfillment database server two-node cluster hot backup
CN105007293A (en) * 2015-05-25 2015-10-28 国家计算机网络与信息安全管理中心 Double master control network system and double writing method for service request therein
CN106341251A (en) * 2015-07-10 2017-01-18 中兴通讯股份有限公司 Master and slave switching method and device based on dual master control
CN106169964B (en) * 2016-09-28 2019-05-07 杭州迪普科技股份有限公司 Network equipments configuration synchronous method and device
CN107274827B (en) * 2017-05-04 2020-05-19 西安诺瓦星云科技股份有限公司 Display screen controller backup method and device
CN108933873B (en) * 2018-06-08 2021-02-05 新华三技术有限公司 User data synchronization method and device
CN112455496B (en) * 2020-10-26 2023-02-17 中国铁道科学研究院集团有限公司通信信号研究所 Railway signal system safety communication connection dynamic switching method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2002091203A1 (en) * 2001-05-03 2002-11-14 Nokia Inc. Method and system for implementing mpls redundancy
US6694450B1 (en) * 2000-05-20 2004-02-17 Equipe Communications Corporation Distributed process redundancy
US20060072480A1 (en) * 2004-09-29 2006-04-06 Manasi Deval Method to provide high availability in network elements using distributed architectures

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110706A (en) * 2007-07-23 2008-01-23 中兴通讯股份有限公司 Configuration data synchronization method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6694450B1 (en) * 2000-05-20 2004-02-17 Equipe Communications Corporation Distributed process redundancy
WO2002091203A1 (en) * 2001-05-03 2002-11-14 Nokia Inc. Method and system for implementing mpls redundancy
US20060072480A1 (en) * 2004-09-29 2006-04-06 Manasi Deval Method to provide high availability in network elements using distributed architectures

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108833280A (en) * 2018-03-19 2018-11-16 新华三信息安全技术有限公司 A kind of user management list item delivery method, device and control plane equipment

Also Published As

Publication number Publication date
CN102075341B (en) 2015-06-10
CN102075341A (en) 2011-05-25

Similar Documents

Publication Publication Date Title
WO2011063725A1 (en) Method and system for active-standby synchronization
US7304940B2 (en) Network switch assembly, network switching device, and method
JP3930743B2 (en) Method for providing network connectivity in a fault tolerant platform
KR101099822B1 (en) Redundant routing capabilities for a network node cluster
CN109155788B (en) Method for fast reconfiguration of GM clocks in a TSN network by means of explicit tear-down messages
WO2012071920A1 (en) Method, system, token conreoller and memory database for implementing distribute-type main memory database system
WO2015006371A2 (en) Replication of data between mirrored data sites
CN101573940A (en) System and method for TCP high availability
JP2010045760A (en) Connection recovery device for redundant system, method and processing program
JP2012208649A (en) Dispersion file system
WO2017000832A1 (en) Mac address synchronization method, device and system
WO2010062384A1 (en) Link data transmission method, node and system
WO2012065337A1 (en) Distributed method and system for implementing link aggregation control protocol (lacp) standard state machines
WO2020134199A1 (en) Method and apparatus for implementing data consistency, and server and terminal
US8463945B2 (en) Method for synchronizing local clocks in a distributed computer network
CN105472024A (en) Cross-region data synchronizing method based on message pushing mode
CN114297296A (en) Server active-standby switching system for broadcasting
WO2009024083A1 (en) Method, device and system for data synchronization of a control session
CN111352959B (en) Data synchronous remedying and storing method and cluster device
TWI669605B (en) Fault tolerance method and system for virtual machine group
WO2016183735A1 (en) Method, apparatus and device for synchronizing virtualized network function (vnf) states
CN101841428B (en) System hot standby processing method, management board and communication equipment
CN111181766B (en) Redundant FC network system and method for realizing dynamic configuration of switch
KR100940488B1 (en) Method for operating resilience system by using multi-mode
JP3604380B2 (en) Data relay method, data relay device, and data relay system using the device

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

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

Country of ref document: EP

Kind code of ref document: A1