WO2012013050A1 - Method and server used for information synchronization between master equipment and standby equipment - Google Patents

Method and server used for information synchronization between master equipment and standby equipment Download PDF

Info

Publication number
WO2012013050A1
WO2012013050A1 PCT/CN2011/072892 CN2011072892W WO2012013050A1 WO 2012013050 A1 WO2012013050 A1 WO 2012013050A1 CN 2011072892 W CN2011072892 W CN 2011072892W WO 2012013050 A1 WO2012013050 A1 WO 2012013050A1
Authority
WO
WIPO (PCT)
Prior art keywords
level channel
information
channel
backup group
server
Prior art date
Application number
PCT/CN2011/072892
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 WO2012013050A1 publication Critical patent/WO2012013050A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2023Failover techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/202Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant
    • G06F11/2041Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements where processing functionality is redundant with more than one idle spare processing component
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/16Error detection or correction of the data by redundancy in hardware
    • G06F11/20Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements
    • G06F11/2097Error detection or correction of the data by redundancy in hardware using active fault-masking, e.g. by switching out faulty elements or by switching in spare elements maintaining the standby controller/processing unit updated

Definitions

  • the present invention relates to the field of communications, and in particular to an information synchronization method and server between primary and backup devices.
  • the service control layer of a broadband metropolitan area network is a unique layer of a service access network connected to a core switching network.
  • a device that plays an important role is a BRAS (Broadband Remote Access Server), which mainly undertakes service connection.
  • BRAS Broadband Remote Access Server
  • higher requirements are placed on the performance and reliability of the BRAS products in the service control layer.
  • the BRAS dual-system hot backup is usually adopted.
  • Figure 1 shows the structure of the BRAS dual-system hot backup network.
  • the unit is sent to the peer backup device by the information synchronization module of the main control unit. After the backup device is decapsulated, the information is sent to the corresponding service subcard according to the correspondence between the backup group ID and the service subcard.
  • the main control unit uniformly processes all user dial-up, multicast-on-demand events, and synchronizes information with the remote backup device, and the service sub-card information is as follows: main control unit 1 > remote main Control unit> The synchronization path of the remote service daughter card adds a lot of load to the system. However, the processing capacity of the main control unit is limited.
  • a primary object of the present invention is to provide an information synchronization method and a server between primary and backup devices to solve at least the problem that the above-mentioned main control unit has a large load.
  • a method for synchronizing information between primary and backup devices including: a primary device and a standby device establish a synchronization channel, where the synchronization channel includes a device-level channel and a daughter-card channel, wherein the device-level channel transmits information.
  • the synchronization control message, the sub-card level channel transmits the information synchronization data message, and the main device and the standby device establish the sub-card level channel through the information synchronization control message; the main device encapsulates the user information into the information synchronization data message and sends the information through the sub-card level channel.
  • the standby device synchronizes the channel encapsulation information in the data message according to the received information, and forwards the information synchronization data message to the corresponding subcard, and the subcard processes the information synchronization data message.
  • the channel encapsulation information includes an address and a port number of the sub-card level channel.
  • the information synchronization control message carries the address of the sub-card level channel, the port number, and the backup group information for sending the information synchronization data message through the channel.
  • the backup group information includes the backup group number and the correspondence between the backup group and the port.
  • the address of the sub-card level channel is the same as the address of the device-level channel, and the device-level channel and the sub-card level channel are distinguished by the port number.
  • the triggering the primary device to send the information synchronization data message includes at least one of the following: the user goes online; the user goes offline; and the user information changes.
  • the method further includes: the standby device sends the information synchronization control message to the active device through the device-level channel, and notifies the batch synchronization operation; after the primary device receives the information synchronization control message, The locally stored user information is sent to the standby device through the daughter card level channel; after receiving the user information, the standby device sends the message to the corresponding daughter card for processing.
  • a method for synchronizing information between a primary and a backup device including: a primary device and a backup device establish a synchronization channel, where the synchronization channel includes a device level channel and a backup group level channel, wherein the device level channel
  • the information synchronization control message is transmitted, the backup group level channel transmits the information synchronization data message, and the primary device and the standby device establish a backup group level channel through the information synchronization control message;
  • the primary device encapsulates the user information into the information synchronization data message through the backup group level channel.
  • the standby device synchronizes the channel encapsulation information in the data message according to the received information, and forwards the information synchronization data message to the corresponding sub-card, and the sub-card processes the information synchronization data message.
  • the channel encapsulation information includes an address and a port number of the backup group level channel.
  • the information synchronization control message carries the address of the backup group-level channel, the port number, and the backup group information of the information synchronization data message sent through the channel.
  • the backup group information includes a backup group number, a correspondence between the backup group and the port.
  • the address of the backup group-level channel is the same as the address of the device-level channel.
  • the device-level channel and the backup group-level channel are distinguished by the port number.
  • a server a server as a main server, includes: a device management module, configured to establish a synchronization channel with a standby server, where the synchronization channel includes a device level channel and a sub-card level channel, or The synchronization channel includes a device-level channel and a backup group-level channel.
  • the information synchronization module is configured to determine a corresponding sub-card level channel or a backup group-level channel according to the backup group where the user is located, according to the sub-card level channel or the backup group level channel.
  • the information is encapsulated into an information synchronization data message; the data forwarding module is configured to send the encapsulated information synchronization data message to the standby server through the sub-card level channel or the backup group level channel.
  • the device management module includes: a device-level channel establishing unit, configured to establish a device-level channel by negotiating with the standby server according to the configured address and port of the standby server; and the port allocating unit, configured for each device
  • the sub-card or the backup group allocates a communication port;
  • the information interaction unit is configured to exchange the correspondence between the backup group identifier and the port through the device-level channel with the standby server;
  • the sub-card level channel establishment unit is set to be established according to the address and port of the standby server.
  • Sub-card level channel; Backup group-level channel establishment unit set to establish a backup group-level channel for the address and port of the standby server.
  • the server is a broadband remote access server or a service router.
  • a server is provided, and the server is a standby server, including: a device management module, configured to establish a synchronization channel with the primary server, where the synchronization channel includes a device level channel and a sub-card level channel, or The synchronization channel includes a device-level channel and a backup group-level channel; the data forwarding module is configured to receive the information synchronization data message sent by the primary server, and forward the information synchronization data message to the corresponding child according to the encapsulated address and port of the information synchronization data message.
  • Card an information synchronization module, configured to process information synchronization data messages on the daughter card.
  • the device management module includes: a device-level channel establishing unit, configured to establish a device-level channel by negotiating with the main server according to the configured address and port of the main server; and the port allocating unit is configured to be a device
  • Each subcard or backup group is assigned a communication port;
  • the information interaction unit is configured to exchange the correspondence between the backup group identifier and the port through the device level channel with the main server;
  • the subcard level channel establishing unit is set according to the main
  • the sub-card level channel is established by using the address and port of the server;
  • the backup group-level channel establishing unit is set to establish a backup group-level channel for the address and port of the host server.
  • the server is a broadband remote access server or a service router.
  • FIG. 5 is a schematic diagram of information synchronization between primary and backup devices according to Embodiment 3 of the present invention
  • FIG. 6 is a schematic diagram of networking of primary and secondary devices in a step-by-step architecture according to Embodiment 4 of the present invention
  • FIG. 7 is a synchronous processing of information in a step-by-step architecture according to Embodiment 4 of the present invention
  • Figure 8 is a flow chart showing the information synchronization processing of the step-by-step architecture of the fourth embodiment of the present invention
  • Figure 9 is a block diagram showing the structure of a server according to Embodiment 5 of the present invention
  • Figure 10 is a block diagram of a server according to Embodiment 6 of the present invention
  • the primary backup device in the embodiment of the present invention may be a BRAS, or an SR, or other devices.
  • the primary device and the backup device may perform real-time synchronization, or may perform batch synchronization as needed.
  • the embodiment of the present invention provides an information synchronization method and a server between the main standby devices. Example 1 Referring to FIG.
  • this embodiment provides a method for synchronizing information between a primary backup device, and the method includes the following steps: Step S302: A primary device and a backup device establish a synchronization channel, where the synchronization channel includes a device-level channel and a sub-channel.
  • the card-level channel; the sub-card-level channel transmits the information synchronization data message, and the primary device and the standby device establish the sub-card-level channel through the information synchronization control message; the primary device and the standby device can establish the synchronization channel according to the following manner:
  • the active device negotiates with the standby device to establish a device-level channel according to the configured address and port of the standby device, and the device-level channel sets signaling and synchronization information between the primary device and the standby device.
  • the primary device and the standby device respectively allocate communication ports for each daughter card of the own device, and there are multiple service daughter cards on the primary device and the standby device, and each service daughter card corresponds to a group of users;
  • the daughter card of the active device establishes a daughter card level channel according to the address and port of the standby device.
  • the information synchronization control message carries the address of the sub-card level channel, the port number, and the backup group information of the information synchronization data message sent through the channel.
  • the backup group information includes the backup group number and the correspondence between the backup group and the port.
  • the address of the daughter card level channel is the same as the address of the device level channel, and the device level channel and the daughter card level channel are distinguished by the port number.
  • Step S306 The standby device forwards the information synchronization data message to the corresponding sub-card according to the channel encapsulation information in the received information synchronization data message, and the sub-card processes the information synchronization data message.
  • the channel encapsulation information includes the address and port number of the sub-card level channel.
  • the method further includes: the standby device sends the information synchronization control message to the active device through the device-level channel, and notifies the batch synchronization operation; after receiving the information synchronization control message, the primary device passes the The sub-card level channel sends the locally stored user information to the standby device; after receiving the user information, the standby device sends the information to the corresponding sub-card for processing.
  • the primary and backup devices are composed of a main control unit and a plurality of service sub-cards.
  • the service sub-card completes the protocol conversion within the sub-card, and reports the result to the main control unit to improve the throughput capacity and processing performance of the entire system.
  • IPTV IPTV
  • the service daughter card maintains the on-demand relationship between 10,000 users and 500 program sources in the card, and the master control unit only needs to know which program sources the child card is on, and does not care about tens of thousands of users on the entire device.
  • the sub-card of the active device when the information is synchronized, the sub-card of the active device is usually required to send the synchronization information to the main control unit of the active device, and then the main control unit sends the synchronization information to the standby device through the device-level channel.
  • the processing load of the main control unit of the active device is increased to a large extent; while the primary device of the embodiment needs to synchronize the user information, the daughter card can directly send the information synchronization data message by using the established sub-card level channel.
  • the backup device determines the corresponding daughter card according to the address information carried in the information synchronization data message, thereby completing the information synchronization operation, solving the problem that the main control unit is heavily loaded, and the method is not subject to the performance bottleneck of the main control unit.
  • the synchronization channel in the embodiment 1 includes a device-level channel and a sub-card-level channel
  • the synchronization channel in this embodiment includes a device-level channel and a backup group-level channel
  • the device and the backup device establish the backup group level channel by using the information synchronization control message; correspondingly, the embodiment uses the backup group level channel to transmit the information synchronization data message; for example, after the active device encapsulates the user information into the information synchronization data message,
  • the backup group level channel is sent to the standby device; based on this, the channel encapsulation information includes the address and port number of the backup group level channel.
  • the information synchronization control message carries the address of the backup group-level channel, the port number, and the backup group information of the information synchronization data message sent through the channel.
  • the backup group information includes the backup group number and the correspondence between the backup group and the port.
  • the address of the backup group level channel is the same as the address of the device level channel, and the device level channel and the backup group level channel are distinguished by the port number.
  • the method further includes: the standby device sends an information synchronization control message to the primary device through the device-level channel, and notifies the batch synchronization operation; after receiving the information synchronization control message, the primary device passes the The backup group-level channel sends the locally stored user information to the standby device. After receiving the user information, the standby device sends the information to the corresponding daughter card for processing.
  • the child card can directly send the information synchronization data message to the standby device by using the established backup group level channel, and the backup device determines the corresponding information according to the address information carried by the information synchronization data message.
  • Embodiment 3 This embodiment provides a method for synchronizing information between primary and backup devices. The method is described by taking the BRAS dual-system hot backup networking structure shown in FIG. 2 as an example to better explain the operation process of information synchronization. Referring to FIG. 2
  • a device management module 42 is responsible for maintaining information maintenance between two active and standby BRASs, for example, establishing a synchronization channel; and the information synchronization module 44 is responsible for The user information synchronization sending and receiving process is performed between the active and standby BRAS devices; the backup group management module 46 is responsible for maintenance of the backup group unit, such as active/standby selection, abnormality detection, and information channel between the backup groups; the data forwarding module 48 is responsible for data. Forwarding of messages, and sending of local information.
  • the device management module 42 and the information synchronization module 44 may be disposed on the main control unit.
  • the backup group management module 46 and the data forwarding module 48 may be disposed on each service subcard.
  • the device management module 42 is connected to the backup group management module 46; the information synchronization module 44 is connected to the backup group management module 46 and the data forwarding module 48; the backup group management module 46 and the device management module 42, the information synchronization module 44, and The data forwarding module 48 is connected; the data forwarding module 48 is connected to the backup group management module 46 and the information synchronization module 44.
  • the information synchronization method between the primary and backup devices includes the following steps: Step S502: The device management module of the primary device negotiates with the remote end according to the configured remote address and port to establish device-level synchronization of signaling and information. aisle.
  • the remote end refers to the standby device; in step S504, the device management module of the primary standby device allocates a communication port for each service daughter card of the device; Step S506, the backup group management module of the primary device is configured according to the port managed by the backup group. Select the sync channel to use, which includes: device level sync channel and daughter card level sync channel. The device-level synchronization channel uses the device-level port, and the daughter-card-level synchronization channel uses the port allocated by the service daughter card. Step S508, the backup group management module of the primary standby device invokes the interface of the device management module, and sends the backup group ID (identification) and the selected local port to the remote end through the device-level synchronization channel.
  • the backup group management module of the primary standby device invokes the interface of the device management module, and sends the backup group ID (identification) and the selected local port to the remote end through the device-level synchronization channel.
  • Step S510 the backup group management module of the primary backup device sends the corresponding relationship between the address/port of the synchronization channel and the processing unit to the data forwarding module.
  • the processing unit refers to the main control unit or service corresponding to the synchronization channel selected in step S506. Child card.
  • step S512 when the user information needs to be synchronized, the information synchronization module of the active device queries the backup group management module for the used synchronization channel according to the backup group where the user is located, and encapsulates the local/remote address and port according to the result of the query.
  • the synchronization information can be transmitted.
  • the backup group/device level abnormality causes the backup information to be lost, the user information is completely synchronized again by means of batch synchronization.
  • the device level synchronization channel can be used for the synchronization information transmission.
  • the device specifies the address of the backup device to establish a reachable route and carries the user information synchronization protocol.
  • a distributed information synchronization channel negotiation/processing mechanism is introduced. When only a single physical path is required between the primary and backup devices, the centralized processing information of the original control unit is synchronized, and the service sub-card can be freely selected.
  • FIG. 6 is a schematic diagram of networking of primary and backup devices in a step-by-step architecture.
  • Step S802 After device-level negotiation, the BRAS 1 and the BRAS 2 form a device-level synchronization channel with an IP address of 1.1.1.1, a port of 100, an IP address of 1.1.1.2, and a port of 100, and complete device resource synchronization and the like.
  • step S804 BRAS 1 assigns port 301 to service subcard 1, and service subcard 2 assigns port 302; BRAS2 is service subcard U ⁇ port 401, and service subcard 2 has port 402.
  • Step S806 the backup group management module of the BRAS 1 invokes the device management module interface to negotiate with the remote end.
  • the backup group 1 forms the local 1.1.1.1, the port 301, the remote end 1.1.1.2, the port 401, and the processing unit is the corresponding relationship of the service sub-card 1 and is delivered to the data forwarding module; the BRAS 2 performs the same operation.
  • step S808 the service sub-card 1 of the BRAS 1 is online, and the service information synchronization module on the sub-card 1 queries the backup group management module with the backup group to which the user belongs, and obtains the processing unit as local (ie, sub-card 1), and encapsulates Source IP 1.1.1.1, port 301, destination IP 1.1.1.2, port 401, find the remote route sent to the physical exit. If the processing unit negotiated by the backup group is the master control unit, the subcard 1 sends the user information to the main control unit, and the main control unit sends the information to the remote end through the device level channel.
  • the processing unit negotiated by the backup group is the master control unit
  • the subcard 1 sends the user information to the main control unit, and the main control unit sends the information to the remote end through the device level channel.
  • Step S810 the remote device receives the user synchronization information of the backup group 1, and the data forwarding module searches the local mapping table sent in step S806, and finds that IP1.1.1.2 and port 401 point to the local service subcard 1, and then directly send it to the local service subcard 1.
  • a distributed information synchronization channel negotiation/processing mechanism is introduced. When only a single physical path is required between the primary and backup devices, the centralized processing information of the original control unit is synchronized, and the service sub-card can be freely selected. , or the information synchronization between the service daughter card and the main control unit, effectively reducing the load of the main control unit and the transmission efficiency of the entire system.
  • Embodiment 5 This embodiment provides a server, which is a server for a host.
  • the server includes: a device management module 92, configured to establish a synchronization channel with a standby server, where the synchronization channel includes a device level channel and a daughter card. Level channel, or, the synchronization channel includes a device level channel and a backup group level channel;
  • the information synchronization module 94 is connected to the device management module 92, and is configured to determine a corresponding sub-card level channel or a backup group level channel according to the backup group where the user is located, according to the address and port number corresponding to the sub-card level channel or the backup group level channel.
  • the user information is encapsulated into an information synchronization data message; the data forwarding module 96 is connected to the information synchronization module 94, and is configured to send the encapsulated information synchronization data message to the standby server through the sub-card level channel or the backup group level channel.
  • the device management module 92 includes: a device-level channel establishing unit, configured to establish a device-level channel by negotiating with the standby server according to the configured address and port of the standby server; and a port allocation unit, configured to be a sub-card or a backup group of the own device.
  • the communication communication unit is connected to the device-level channel establishing unit, and is configured to exchange the correspondence between the backup group identifier and the port through the device-level channel with the standby server; the sub-card level channel establishing unit is set according to the address of the standby server. And the port establishes a sub-card level channel; the backup group-level channel establishing unit is set to establish a backup group-level channel according to the address and port of the standby server.
  • the device management module 92 may not include the above backup group level channel establishing unit; when the synchronization channel includes the device level channel and the backup group level channel, the device management module 92 may not include the above. Subcard level channel establishment unit.
  • the server can be a broadband remote access server or a service router.
  • the server may further include a backup group management module, configured to perform maintenance on the configured backup group, whether the server is abnormal, and select a primary server or a backup server according to the detected result, and between the standby server and the standby server. Synchronous channel maintenance.
  • the information synchronization module 94 determines that user information needs to be synchronized when it is detected that a user is online, offline, or has user information changes. When the server receives the batch synchronization operation notification of the standby device, the server will send the synchronization information to the standby server through the device level synchronization channel.
  • Embodiment 6 This embodiment provides a server, which is a standby server.
  • the server includes: a device management module 102, configured to establish a synchronization channel with the primary server, where the synchronization channel includes a device level channel and a daughter card.
  • the level channel, or the synchronization channel includes a device level channel and a backup group level channel;
  • the data forwarding module 104 is connected to the device management module 102, and is configured to receive the information synchronization data message sent by the primary server, and then synchronize the data message according to the information.
  • the encapsulated address and port forwards the information synchronization data message to the corresponding daughter card.
  • the information synchronization module 106 is connected to the data forwarding module 104 and configured to process the information synchronization data message on the daughter card.
  • the device management module 102 may not include the above-mentioned backup group level channel establishing unit; when the synchronization channel includes the device level channel and the backup group level channel, the device management module 102 may not include the above. Subcard level channel establishment unit.
  • the server can be a broadband remote access server or a service router. When the backup information on the server is lost, the server may notify the primary server to perform a batch synchronization operation through the device-level channel. After receiving the batch synchronization operation notification, the primary server sends the locally stored user information to the device-level channel. The server; after receiving the user information, the server performs a synchronization operation.
  • the server in this embodiment After receiving the information synchronization data message, the server in this embodiment determines the corresponding sub-card according to the address information carried in the information synchronization data message, thereby completing the information synchronization operation, and solving the problem that the main control unit of the main server has a large load. And this method is not limited by the performance bottleneck of the main control unit, and provides a reliable guarantee for the active/standby switchover.
  • the present invention achieves the following technical effects: When the user equipment of the above embodiment needs to synchronize the user information, the child card can directly send the information synchronization data message to the used sub-card level channel.
  • the standby device determines the corresponding daughter card according to the address information carried in the information synchronization data message, thereby completing the information synchronization operation, and solving the problem that the main control unit has a large load, and the method is not limited by the performance bottleneck of the main control unit. , providing reliable protection for active and standby switching.
  • a general-purpose computing device which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.

Abstract

The present invention discloses a method and server used for information synchronization between a master equipment and a standby equipment. The method comprises the following steps: the master equipment and the standby equipment establish a synchronization channel which comprises an equipment level channel, a subcard level channel and a backup group level channel on the subcard; the master equipment determines that some user information needs to be synchronized, determines the corresponding subcard level channel or the backup group level channel according to the backup group to which the user belongs, encapsulates synchronization information according to the address and the port which corresponds to the subcard level channel or the backup group level channel, and transmits the encapsulated synchronization information to the standby equipment through the subcard level channel or the backup group level channel; the standby equipment analyzes the synchronization information to acquire the address and the port and forwards the synchronization information to the subcard corresponding to the port; and the subcard processes the synchronization information. With the present invention, the problem of high load of a main control unit is solved, the mode is not limited by the performance bottleneck of the main control unit, and reliable guarantee is provided for the switching between the master equipment and the standby equipment.

Description

主备用设备间的信息同步方法和月 务器 技术领域 本发明涉及通信领域, 具体而言, 涉及一种主备用设备间的信息同步方 法和服务器。 背景技术 宽带城域网的业务控制层是业务接入网络连接核心交换网络的一个特有 的层面, 起重要角色的设备就是 BRAS ( Broadband Remote Access Server, 宽带远程接入服务器), 其主要承担业务接入控制和用户管理方面的功能。 随 着对网络提供的业务高质量保障需求的提出, 对业务控制层 BRAS产品的性 能和可靠性也提出了更高的要求, 为了保证服务能够顺利进行, 通常釆用 BRAS双机热备份的方式。 如图 1 所示的 BRAS 双机热备份组网结构示意图, 其中 SR ( Server Router, 服务路由器) 1为城域网的核心设备, 其分别与 BRAS 2和 BRAS 3 相连, 两个 BRAS设备实现双机热备份功能, BRAS设备下连接 SW (交换 机设备 ) 4, 通过交换机接入用户。  TECHNICAL FIELD The present invention relates to the field of communications, and in particular to an information synchronization method and server between primary and backup devices. BACKGROUND OF THE INVENTION The service control layer of a broadband metropolitan area network is a unique layer of a service access network connected to a core switching network. A device that plays an important role is a BRAS (Broadband Remote Access Server), which mainly undertakes service connection. Into control and user management functions. With the demand for high-quality security services provided by the network, higher requirements are placed on the performance and reliability of the BRAS products in the service control layer. In order to ensure the smooth operation of the services, the BRAS dual-system hot backup is usually adopted. . Figure 1 shows the structure of the BRAS dual-system hot backup network. The SR (Server Router) is the core device of the metropolitan area network. It is connected to BRAS 2 and BRAS 3. The two BRAS devices are dual. The hot backup function is connected to the SW (switch device) 4 under the BRAS device and accesses the user through the switch.
BRAS双机热备份是在网络的控制层部署两台 BRAS产品, 在工作时, 两台设备通过协商或者手动配置设置成一个为主状态, 一个为备状态, 主设 备用来控制用户接入和记录用户信息, 并通过实时同步或者批量同步的方式 将用户信息备份到备用设备上。 当主用设备发生故障时, 能快速的实现主备 切换, 由于用户信息已经备份到备状态设备, 所以设备主备切换过程中用户 无感知, 确保了服务质量, 并提高了用户服务的体验。 在互为备份的两台 BRAS设备间, 可以支持整机级、 线卡级、 端口级和 虚拟子接口级的备份, 一组互相备份的最小异常切换单元称作备份组。 主备 设备间可以建立多个备份组关系。 如主设备的 20 个端口与备设备——进行 备份, 设备间有 20个备份组。 两台 BRAS设备间由不同的 VRRP ( Virtual Router Redundancy Protocol, 虚拟路由冗余协议, RFC2338 ) 实例进行主备 的选举和异常检测切换, 以及备份组细化, 可以有效地控制故障发生时对设 备的影响范围。 如图 2所示的 BRAS双机热备份组网中集中式处理信息同步的示意图, 其中, 主备设备间釆用单一通道, 进行信息同步时, 业务子卡上的信息统一 上送到主控单元, 由主控单元的信息同步模块发送到对端备份设备, 备份设 备解封装后, 再根据备份组 ID 与业务子卡的对应关系, 将信息下发到对应 的业务子卡处理。 上述 BRAS双机热备份组网中, 主控单元统一处理所有的用户拨号, 组 播点播事件, 并与远端备份设备进行信息同步, 而业务子卡信息一 >主控单 元一 >远端主控单元 >远端业务子卡的同步路径, 为系统增加了大量的负 荷。 但是主控单元的处理能力是有限的, 当负荷超过其处理能力时, 主控单 元将不能完成信息同步操作, 进而影响了系统的服务质量。 发明内容 本发明的主要目的在于提供一种主备用设备间的信息同步方法和服务 器, 以至少解决上述的主控单元负荷较大的问题。 根据本发明的一个方面, 提供了一种主备用设备间的信息同步方法, 包 括: 主用设备和备用设备建立同步通道, 同步通道包括设备级通道和子卡级 通道, 其中, 设备级通道传送信息同步控制消息, 子卡级通道传送信息同步 数据消息, 主用设备和备用设备通过信息同步控制消息建立子卡级通道; 主 用设备将用户信息封装成信息同步数据消息并通过子卡级通道发送给备用设 备; 备用设备根据收到的信息同步数据消息中的通道封装信息, 将信息同步 数据消息转发至对应的子卡, 子卡对信息同步数据消息进行处理。 其中, 通道封装信息包括子卡级通道的地址和端口号。 其中, 在建立子卡级通道时, 上述信息同步控制消息中携带子卡级通道 的地址、 端口号及通过该通道发送信息同步数据消息的备份组信息。 其中, 备份组信息包括备份组号、 备份组与端口的对应关系。 其中, 子卡级通道的地址与设备级通道的地址相同, 设备级通道和子卡 级通道通过端口号来区分。 其中, 触发主用设备发送信息同步数据消息至少包括以下之一: 用户上 线; 用户离线; 用户信息发生变更。 其中, 上述备用设备上的用户信息丢失时, 该方法还包括: 备用设备通 过设备级通道发送信息同步控制消息给主用设备, 通知进行批量同步操作; 主用设备接收到信息同步控制消息后, 通过子卡级通道将本地存储的用户信 息发送给备用设备; 备用设备接收到用户信息后, 发送至对应的子卡进行处 理。 根据本发明的另一方面, 提供了一种主备用设备间的信息同步方法, 包 括: 主用设备和备用设备建立同步通道, 同步通道包括设备级通道和备份组 级通道, 其中, 设备级通道传送信息同步控制消息, 备份组级通道传送信息 同步数据消息, 主用设备和备用设备通过信息同步控制消息建立备份组级通 道; 主用设备通过备份组级通道将用户信息封装成信息同步数据消息并发送 给备用设备; 备用设备根据收到的信息同步数据消息中的通道封装信息, 将 信息同步数据消息转发至对应的子卡, 子卡对信息同步数据消息进行处理。 其中, 通道封装信息包括备份组级通道的地址和端口号。 其中, 在建立备份组级通道时, 信息同步控制消息中携带备份组级通道 的地址、 端口号及通过该通道发送信息同步数据消息的备份组信息。 其中, 该备份组信息包括备份组号、 备份组与端口的对应关系。 其中, 备份组级通道的地址与设备级通道的地址相同, 设备级通道和备 份组级通道通过端口号来区分。 其中, 触发主用设备发送信息同步数据消息至少包括以下之一: 用户上 线; 用户离线; 用户信息发生变更。 其中, 备用设备上的用户信息丢失时, 该方法还包括: 备用设备通过设 备级通道发送信息同步控制消息给主用设备, 通知进行批量同步操作; 主用 设备接收到信息同步控制消息后, 通过备份组级通道将本地存储的用户信息 发送给备用设备;备用设备接收到用户信息后,发送至对应的子卡进行处理。 根据本发明的又一方面, 提供了一种服务器, 服务器为主用服务器, 包 括: 设备管理模块, 设置为与备用服务器建立同步通道, 同步通道包括设备 级通道与子卡级通道, 或所述同步通道包括设备级通道与备份组级通道; 信 息同步模块, 设置为根据用户所在的备份组, 确定对应的子卡级通道或备份 组级通道, 按照子卡级通道或备份组级通道对应的地址和端口号, 将用户信 息封装成信息同步数据消息; 数据转发模块, 设置为通过子卡级通道或备份 组级通道将封装后的信息同步数据消息发送给备用服务器。 其中, 设备管理模块包括: 设备级通道建立单元, 设置为根据配置的备 用月艮务器的地址和端口与备用月艮务器协商建立设备级通道; 端口分配单元, 用于为自身设备的每个子卡或备份组分配通讯端口; 信息交互单元, 设置为 与备用服务器通过设备级通道相互交换备份组标识与端口的对应关系; 子卡 级通道建立单元, 设置为根据备用服务器的地址和端口建立子卡级通道; 备 份组级通道建立单元, 设置为 居备用 艮务器的地址和端口建立备份组级通 道。 其中, 服务器为宽带远程接入服务器或服务路由器。 根据本发明的再一方面, 提供了一种服务器, 服务器为备用服务器, 包 括: 设备管理模块, 设置为与主用服务器建立同步通道, 同步通道包括设备 级通道与子卡级通道, 或所述同步通道包括设备级通道与备份组级通道; 数 据转发模块, 设置为接收主用服务器发送的信息同步数据消息, 根据信息同 步数据消息的封装地址和端口, 将信息同步数据消息转发至对应的子卡; 信 息同步模块, 设置为对子卡上的信息同步数据消息进行处理。 其中, 设备管理模块包括: 设备级通道建立单元, 设置为根据配置的主 用月艮务器的地址和端口与主用月艮务器协商建立设备级通道; 端口分配单元, 用于为自身设备的每个子卡或备份组分配通讯端口; 信息交互单元, 设置为 与主用月艮务器通过设备级通道相互交换备份组标识与端口的对应关系; 子卡 级通道建立单元, 设置为根据主用服务器的地址和端口建立子卡级通道; 备 份组级通道建立单元, 设置为 居主用 艮务器的地址和端口建立备份组级通 道。 其中, 服务器为宽带远程接入服务器或服务路由器。 通过本发明, 釆用主用设备在有用户信息需要同步时, 子卡可以直接使 用建立的子卡级通道或备份组级通道将信息同步数据消息发送给备用设备, 备用设备完成信息同步操作, 解决了主控单元负荷较大的问题, 并且该方式 不受主控单元性能瓶颈的限制, 为主备切换提供了可靠的保障。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1是根据相关技术的 BRAS双机热备份组网结构示意图; 图 2是根据相关技术的 BRAS双机热备份组网中集中式处理信息同步的 示意图; 图 3是根据本发明实施例 1的主备用设备间的信息同步方法流程图; 图 4是根据本发明实施例 3的主备用设备的结构框图; 图 5是根据本发明实施例 3的主备用设备间的信息同步方法流程图; 图 6 是才艮据本发明实施例 4 的釆用分步式构架的主备用设备组网示意 图; 图 7是 居本发明实施例 4的釆用分步式构架的信息同步处理示意图; 图 8是 居本发明实施例 4的釆用分步式构架的信息同步处理流程图; 图 9是根据本发明实施例 5的服务器的结构框图; 图 10是根据本发明实施例 6的服务器的结构框图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 本发明实施例中的主备用设备可以是 BRAS , 也可以是 SR, 或者是其它 的设备, 其中, 主用设备和备用设备间可以进行实时同步, 也可以根据需要 进行批量同步。 为了降低主用设备的主控单元因信息同步带来的负荷, 本发 明实施例提供了一种主备用设备间的信息同步方法和服务器。 实施例 1 参见图 3 , 本实施例提供了一种主备用设备间的信息同步方法, 该方法 包括以下步 4聚: 步骤 S302, 主用设备和备用设备建立同步通道, 其中, 同步通道包括设 备级通道和子卡级通道; 该子卡级通道传送信息同步数据消息, 主用设备和 备用设备通过信息同步控制消息建立该子卡级通道; 主用设备和备用设备可以按照以下方式建立同步通道: BRAS dual-system hot backup is to deploy two BRAS products at the control layer of the network. When working, two devices are set to a primary state through negotiation or manual configuration, one is in standby state, and the primary device is used to control user access and Record user information and back up user information to the standby device through real-time synchronization or batch synchronization. When the primary device is faulty, the active/standby switchover can be implemented quickly. Since the user information has been backed up to the standby state device, the user has no awareness during the active/standby switchover process, ensuring service quality and improving the user service experience. Backups between the two BRAS devices that are mutually backed up can support the whole machine level, line card level, port level, and virtual sub-interface level. A group of minimum abnormal switching units that back up each other is called a backup group. Multiple backup group relationships can be established between the active and standby devices. For example, the 20 ports of the primary device and the standby device are backed up, and there are 20 backup groups between the devices. Between the two BRAS devices, the VRRP (Virtual Router Redundancy Protocol, RFC2338) instance performs the election and anomaly detection switching, and the backup group is refined, which can effectively control the device when the fault occurs. Sphere of influence. As shown in Figure 2, the centralized processing of information in the BRAS dual-system hot backup network is synchronized. In the case of a single channel between the active and standby devices, information on the service daughter card is sent to the master. The unit is sent to the peer backup device by the information synchronization module of the main control unit. After the backup device is decapsulated, the information is sent to the corresponding service subcard according to the correspondence between the backup group ID and the service subcard. In the above-mentioned BRAS dual-system hot backup network, the main control unit uniformly processes all user dial-up, multicast-on-demand events, and synchronizes information with the remote backup device, and the service sub-card information is as follows: main control unit 1 > remote main Control unit> The synchronization path of the remote service daughter card adds a lot of load to the system. However, the processing capacity of the main control unit is limited. When the load exceeds its processing capacity, the main control unit will not be able to complete the information synchronization operation, which in turn affects the service quality of the system. SUMMARY OF THE INVENTION A primary object of the present invention is to provide an information synchronization method and a server between primary and backup devices to solve at least the problem that the above-mentioned main control unit has a large load. According to an aspect of the present invention, a method for synchronizing information between primary and backup devices is provided, including: a primary device and a standby device establish a synchronization channel, where the synchronization channel includes a device-level channel and a daughter-card channel, wherein the device-level channel transmits information. The synchronization control message, the sub-card level channel transmits the information synchronization data message, and the main device and the standby device establish the sub-card level channel through the information synchronization control message; the main device encapsulates the user information into the information synchronization data message and sends the information through the sub-card level channel. The standby device synchronizes the channel encapsulation information in the data message according to the received information, and forwards the information synchronization data message to the corresponding subcard, and the subcard processes the information synchronization data message. The channel encapsulation information includes an address and a port number of the sub-card level channel. The information synchronization control message carries the address of the sub-card level channel, the port number, and the backup group information for sending the information synchronization data message through the channel. The backup group information includes the backup group number and the correspondence between the backup group and the port. The address of the sub-card level channel is the same as the address of the device-level channel, and the device-level channel and the sub-card level channel are distinguished by the port number. The triggering the primary device to send the information synchronization data message includes at least one of the following: the user goes online; the user goes offline; and the user information changes. When the user information on the standby device is lost, the method further includes: the standby device sends the information synchronization control message to the active device through the device-level channel, and notifies the batch synchronization operation; after the primary device receives the information synchronization control message, The locally stored user information is sent to the standby device through the daughter card level channel; after receiving the user information, the standby device sends the message to the corresponding daughter card for processing. According to another aspect of the present invention, a method for synchronizing information between a primary and a backup device is provided, including: a primary device and a backup device establish a synchronization channel, where the synchronization channel includes a device level channel and a backup group level channel, wherein the device level channel The information synchronization control message is transmitted, the backup group level channel transmits the information synchronization data message, and the primary device and the standby device establish a backup group level channel through the information synchronization control message; the primary device encapsulates the user information into the information synchronization data message through the backup group level channel. And sending to the backup device; the standby device synchronizes the channel encapsulation information in the data message according to the received information, and forwards the information synchronization data message to the corresponding sub-card, and the sub-card processes the information synchronization data message. The channel encapsulation information includes an address and a port number of the backup group level channel. The information synchronization control message carries the address of the backup group-level channel, the port number, and the backup group information of the information synchronization data message sent through the channel. The backup group information includes a backup group number, a correspondence between the backup group and the port. The address of the backup group-level channel is the same as the address of the device-level channel. The device-level channel and the backup group-level channel are distinguished by the port number. The triggering the primary device to send the information synchronization data message includes at least one of the following: the user goes online; the user goes offline; and the user information changes. When the user information on the backup device is lost, the method further includes: the standby device sends the information synchronization control message to the active device through the device-level channel, and notifies the batch synchronization operation; after receiving the information synchronization control message, the primary device passes the The backup group-level channel sends the locally stored user information to the standby device. After receiving the user information, the backup device sends the information to the corresponding daughter card for processing. According to still another aspect of the present invention, a server, a server as a main server, includes: a device management module, configured to establish a synchronization channel with a standby server, where the synchronization channel includes a device level channel and a sub-card level channel, or The synchronization channel includes a device-level channel and a backup group-level channel. The information synchronization module is configured to determine a corresponding sub-card level channel or a backup group-level channel according to the backup group where the user is located, according to the sub-card level channel or the backup group level channel. Address and port number, will be user letter The information is encapsulated into an information synchronization data message; the data forwarding module is configured to send the encapsulated information synchronization data message to the standby server through the sub-card level channel or the backup group level channel. The device management module includes: a device-level channel establishing unit, configured to establish a device-level channel by negotiating with the standby server according to the configured address and port of the standby server; and the port allocating unit, configured for each device The sub-card or the backup group allocates a communication port; the information interaction unit is configured to exchange the correspondence between the backup group identifier and the port through the device-level channel with the standby server; the sub-card level channel establishment unit is set to be established according to the address and port of the standby server. Sub-card level channel; Backup group-level channel establishment unit, set to establish a backup group-level channel for the address and port of the standby server. The server is a broadband remote access server or a service router. According to still another aspect of the present invention, a server is provided, and the server is a standby server, including: a device management module, configured to establish a synchronization channel with the primary server, where the synchronization channel includes a device level channel and a sub-card level channel, or The synchronization channel includes a device-level channel and a backup group-level channel; the data forwarding module is configured to receive the information synchronization data message sent by the primary server, and forward the information synchronization data message to the corresponding child according to the encapsulated address and port of the information synchronization data message. Card; an information synchronization module, configured to process information synchronization data messages on the daughter card. The device management module includes: a device-level channel establishing unit, configured to establish a device-level channel by negotiating with the main server according to the configured address and port of the main server; and the port allocating unit is configured to be a device Each subcard or backup group is assigned a communication port; the information interaction unit is configured to exchange the correspondence between the backup group identifier and the port through the device level channel with the main server; the subcard level channel establishing unit is set according to the main The sub-card level channel is established by using the address and port of the server; the backup group-level channel establishing unit is set to establish a backup group-level channel for the address and port of the host server. The server is a broadband remote access server or a service router. According to the present invention, when the user equipment needs to synchronize, the child card can directly send the information synchronization data message to the standby device by using the established sub-card level channel or the backup group level channel, and the standby device completes the information synchronization operation. The problem that the main control unit has a large load is solved, and the method is not limited by the performance bottleneck of the main control unit, and provides a reliable guarantee for the active/standby switchover. BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set to illustrate,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, In the drawings: FIG. 1 is a schematic diagram of a BRAS dual-system hot backup networking structure according to the related art; FIG. 2 is a schematic diagram of centralized processing information synchronization in a BRAS dual-system hot backup networking according to the related art; FIG. 4 is a block diagram showing the structure of a primary backup device according to Embodiment 3 of the present invention; FIG. 5 is a schematic diagram of information synchronization between primary and backup devices according to Embodiment 3 of the present invention; FIG. 6 is a schematic diagram of networking of primary and secondary devices in a step-by-step architecture according to Embodiment 4 of the present invention; FIG. 7 is a synchronous processing of information in a step-by-step architecture according to Embodiment 4 of the present invention; Figure 8 is a flow chart showing the information synchronization processing of the step-by-step architecture of the fourth embodiment of the present invention; Figure 9 is a block diagram showing the structure of a server according to Embodiment 5 of the present invention; Figure 10 is a block diagram of a server according to Embodiment 6 of the present invention; A block diagram of the server. BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, the present invention will be described in detail with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict. The primary backup device in the embodiment of the present invention may be a BRAS, or an SR, or other devices. The primary device and the backup device may perform real-time synchronization, or may perform batch synchronization as needed. In order to reduce the load caused by the information synchronization of the main control unit of the main device, the embodiment of the present invention provides an information synchronization method and a server between the main standby devices. Example 1 Referring to FIG. 3, this embodiment provides a method for synchronizing information between a primary backup device, and the method includes the following steps: Step S302: A primary device and a backup device establish a synchronization channel, where the synchronization channel includes a device-level channel and a sub-channel. The card-level channel; the sub-card-level channel transmits the information synchronization data message, and the primary device and the standby device establish the sub-card-level channel through the information synchronization control message; the primary device and the standby device can establish the synchronization channel according to the following manner:
1 ) 主用设备根据配置的备用设备的地址和端口与备用设备协商建立设 备级通道,该设备级通道设置为主用设备和备用设备间传输信令和同步信息; 1) The active device negotiates with the standby device to establish a device-level channel according to the configured address and port of the standby device, and the device-level channel sets signaling and synchronization information between the primary device and the standby device.
2 ) 主用设备和备用设备分别为自身设备的每个子卡分配通讯端口, 在 主用设备和备用设备上有多个业务子卡, 每个业务子卡对应一组用户; 2) The primary device and the standby device respectively allocate communication ports for each daughter card of the own device, and there are multiple service daughter cards on the primary device and the standby device, and each service daughter card corresponds to a group of users;
3 ) 主用设备和备用设备通过上述设备级通道相互交换备份组标识与端 口的对应关系; 例如, 主用设备和备用设备将备份组标识与分配的通讯端口 的对应关系保存在一个映射表中, 在相互交换备份组标识与端口的对应关系 时, 可以将该映射表相互交换。 3) The primary device and the standby device exchange the correspondence between the backup group identifier and the port through the device-level channel; for example, the primary device and the backup device store the correspondence between the backup group identifier and the assigned communication port in a mapping table. When the correspondence between the backup group identifier and the port is exchanged, the mapping table can be exchanged with each other.
4 ) 主用设备的子卡分别根据备用设备的地址和端口建立子卡级通道。 在建立上述子卡级通道时,信息同步控制消息中携带子卡级通道的地址、 端口号及通过该通道发送信息同步数据消息的备份组信息。 备份组信息包括 备份组号、 备份组与端口的对应关系。 子卡级通道的地址与设备级通道的地 址相同, 设备级通道和子卡级通道通过端口号来区分。 步骤 S304 , 主用设备将用户信息封装成信息同步数据消息, 并通过上述 子卡级通道发送给备用设备; 主用设备确定有用户信息需要同步, 根据用户所在的备份组确定对应的 子卡级通道, 按照该子卡级通道对应的地址和端口号封装成信息同步数据消 息, 通过该子卡级通道将封装后的信息同步数据消息发送给备用设备; 触发主用设备发送信息同步数据消息至少包括以下之一: 有用户上线, 有用户离线, 或者有用户信息发生变更。 步骤 S306, 备用设备根据收到的信息同步数据消息中的通道封装信息, 将信息同步数据消息转发至对应的子卡, 该子卡对信息同步数据消息进行处 理。 通道封装信息包括子卡级通道的地址和端口号。 当上述备用设备上的备份信息丢失时, 该方法还包括: 备用设备通过设 备级通道发送信息同步控制消息给主用设备, 通知进行批量同步操作; 主用 设备接收到信息同步控制消息后, 通过子卡级通道将本地存储的用户信息发 送给所述备用设备; 备用设备接收到所述用户信息后, 发送至对应的子卡进 行处理。 上述主备用设备均由主控单元和多个业务子卡构成, 业务子卡完成子卡 内部的协议换算收敛, 向主控单元上报结果, 以提高整个系统的吞吐容量和 处理性能。 以 IPTV为例, 业务子卡维护卡内 1万用户与 500个节目源的点 播关系, 而主控单元只需了解子卡点播了哪些节目源, 不用关心整个设备上 的几万个用户。 相关技术在进行信息同步时, 通常需要主用设备的子卡将同步信息先发 送到主用设备的主控单元, 再由主控单元通过设备级通道将同步信息发送给 备用设备, 这种方式较大程度地增加了主用设备的主控单元的处理负荷; 而 本实施例的主用设备在有用户信息需要同步时, 子卡可以直接使用建立的子 卡级通道将信息同步数据消息发送给备用设备, 备用设备再根据信息同步数 据消息携带的地址信息确定对应的子卡, 进而完成信息同步操作, 解决了主 控单元负荷较大的问题, 并且该方式不受主控单元性能瓶颈的限制, 为主备 切换提供了可靠的保障。 实施例 2 本实施例与实施例 1不同之处在于: 实施例 1中的同步通道包括设备级 通道和子卡级通道, 而本实施例中的同步通道包括设备级通道和备份组级通 道; 主用设备和备用设备通过信息同步控制消息建立该备份组级通道; 相应 地, 本实施例使用备份组级通道传送信息同步数据消息; 例如, 主用设备将 用户信息封装成信息同步数据消息后,将通过备份组级通道发送给备用设备; 基于此, 上述通道封装信息包括备份组级通道的地址和端口号。 在建立备份组级通道时,信息同步控制消息中携带备份组级通道的地址、 端口号及通过该通道发送信息同步数据消息的备份组信息。 其中, 备份组信 息包括备份组号、 备份组与端口的对应关系。 优选地, 备份组级通道的地址 与设备级通道的地址相同, 设备级通道和备份组级通道通过端口号来区分。 备用设备上的用户信息丢失时, 该方法还包括: 备用设备通过设备级通 道发送信息同步控制消息给所述主用设备, 通知进行批量同步操作; 主用设 备接收到信息同步控制消息后, 通过备份组级通道将本地存储的用户信息发 送给所述备用设备; 备用设备接收到用户信息后, 发送至对应的子卡进行处 理。 本实施例的主用设备在有用户信息需要同步时, 子卡可以直接使用建立 的备份组级通道将信息同步数据消息发送给备用设备, 备用设备再根据信息 同步数据消息携带的地址信息确定对应的子卡, 进而完成信息同步操作, 解 决了主控单元负荷较大的问题, 并且该方式不受主控单元性能瓶颈的限制, 为主备切换提供了可靠的保障。 实施例 3 本实施例提供了一种主备用设备间的信息同步方法, 该方法以图 2所示 的 BRAS双机热备份组网结构为例进行说明, 为了更好地说明信息同步的操 作流程, 参见图 4, 本实施例的主备用设备上分别设置有下述模块: 设备管理模块 42 , 负责维护两台主备 BRAS间的信息维护, 例如同步通 道的建立; 信息同步模块 44 ,负责在主备 BRAS设备间进行用户信息同步发送和接 收处理; 备份组管理模块 46 , 负责备份组单元的维护, 如主备选择, 异常检测, 以及备份组间的信息通道; 数据转发模块 48 , 负责数据报文的转发, 以及本地信息的上送。 其中, 设备管理模块 42、 信息同步模块 44可以设置在主控单元上; 备 份组管理模块 46与数据转发模块 48可以设置在每个业务子卡上。 由图 4可知, 设备管理模块 42与备份组管理模块 46连接; 信息同步模 块 44与备份组管理模块 46和数据转发模块 48连接; 备份组管理模块 46与 设备管理模块 42、 信息同步模块 44和数据转发模块 48连接; 数据转发模块 48与备份组管理模块 46和信息同步模块 44连接。 参见图 5 , 该主备用设备间的信息同步方法包括以下步骤: 步骤 S502,主用设备的设备管理模块根据配置的远端地址和端口与远端 协商, 建立传输信令与信息的设备级同步通道。 其中, 远端指备用设备; 步骤 S504,主备用设备的设备管理模块为本设备的每个业务子卡分配一 个通讯端口; 步骤 S506 , 主用设备的备份组管理模块根据备份组管理的端口, 选择使 用的同步通道, 该同步通道包括: 设备级同步通道和子卡级同步通道。 其中, 设备级同步通道使用设备级端口,子卡级同步通道使用业务子卡分配的端口。 步骤 S508 , 主备用设备的备份组管理模块调用设备管理模块的接口, 将 备份组 ID (标识)和选定的本地端口通过设备级同步通道发送到远端, 双向 交互完成后, 业务子卡 居本地地址、 端口和远端地址、 端口建立子卡级同 步通道。 步骤 S510 , 主备用设备的备份组管理模块将同步通道的地址 /端口与处 理单元的对应关系下发到数据转发模块; 其中, 处理单元指步骤 S506 中选 择的同步通道对应的主控单元或业务子卡。 步骤 S512 , 当有用户信息需要同步时, 主用设备的信息同步模块根据用 户所在的备份组, 向备份组管理模块查询釆用的同步通道, 根据查询的结果 封装本地 /远端地址和端口, 将封装后的同步信息发送到远端。 步骤 S514 , 备用设备上的数据转发模块接收到远端的同步消息时, 根据 地址 /端口信息, 查询才艮据步骤 S510 中下发的对应关系, 将同步信息直接上 送到对应的主控 /业务子卡的控制层面, 信息同步模块接收信息, 并进行相应 的处理。 其中, 上述数据转发模块属于转发层面, 不占用 CPU资源。 上述两台设备间的信息同步, 一般分为实时同步和批量同步两种, 新用 户上线时、 用户离线时或用户信息变更时, 可以釆用实时同步方式将单个用 户信息同步到备份设备, 此时, 可以釆用子卡级同步通道进行同步信息的传 输。当发生备份组 /设备级异常导致备份信息丢失时,则釆用批量同步的方式, 将用户信息重新全部同步, 此时, 可以釆用设备级同步通道进行同步信息的 传输。 一般设备指定备份设备的地址来建立路由可达的通道, 承载用户信息 同步协议。 本实施例引入分布式的信息同步通道协商 /处理机制,在主备用设备间只 需要单条物理通路的情况下, 将原有的主控单元集中处理信息同步, 扩展为 可以自由选择业务子卡间, 或业务子卡与主控单元间进行信息同步处理, 有 效的减轻的主控单元的负荷和整个系统的传输效率。 上述双机热备份的方式, 主用和备用设备间通过同步通道, 来承载设备 下所有用户的业务信息同步。 备用设备的主控单元接收远端的用户信息, 重 新在本地生成用户信息, 并下发到业务子卡的转发层面, 当主备切换时, 实 时生效, 实现用户的无感知切换。 实施例 4 如图 6所示的釆用分步式构架的主备用设备组网示意图; 本实施例以备 份组为粒度, 约定相互进行信息的同步和处理的对象。 其中备份组与业务子 卡的对应关系如下: 备份组 1对 BRAS 1的业务子卡 1与 BRAS2的业务子卡 1的多组端口进 行保护; 备份组 2对 BRAS 1的业务子卡 2与 BRAS2的业务子卡 1的多组端口进 行保护; 备份组 3对 BRAS 1的业务子卡 2与 BRAS2的业务子卡 2的多组端口进 行保护。 图 7示出了根据本实施例的釆用分步式构架的信息同步处理示意图, 图 8 出了才艮据本实施例的釆用分步式构架的信息同步处理流程图, 该信息同步 处理包括以下步 4聚: 步骤 S802, BRAS 1和 BRAS2进行设备级协商后,形成 IP地址为 1.1.1.1、 端口为 100与 IP地址为 1.1.1.2、端口为 100的设备级同步通道, 并完成设备 资源同步等协商。 步骤 S804, BRAS 1为业务子卡 1分配端口 301 , 业务子卡 2分配端口 302; BRAS2为业务子卡 U 己端口 401 , 业务子卡 2 己端口 402。 步骤 S806, BRAS 1 的备份组管理模块调用设备管理模块接口与远端进 行协商。 例如备份组 1形成本地 1.1.1.1、 端口 301 , 远端 1.1.1.2、 端口 401 , 处理单元为业务子卡 1的对应关系, 并下发到数据转发模块; BRAS2执行相 同操作。 步骤 S808, BRAS 1的业务子卡 1有用户上线, 子卡 1上的业务信息同 步模块用该用户所属备份组向备份组管理模块查询, 获取到处理单元为本地 (即子卡 1 ), 封装源 IP1.1.1.1、 端口 301,目的 IP1.1.1.2、 端口 401 , 查找远 端路由发送到物理出口。 如果备份组协商出的处理单元为主控单元, 则子卡 1将用户信息上送到 主控单元, 由主控单元通过设备级通道发送至远端。 步骤 S810, 远端设备接收到备份组 1的用户同步信息, 数据转发模块查 找步骤 S806下发的本地映射表,发现 IP1.1.1.2、端口 401指向本地业务子卡 1 , 则直接上送到业务子卡 1的 CPU处理。 本实施例引入分布式的信息同步通道协商 /处理机制,在主备用设备间只 需要单条物理通路的情况下, 将原有的主控单元集中处理信息同步, 扩展为 可以自由选择业务子卡间, 或业务子卡与主控单元间进行信息同步处理, 有 效的减轻的主控单元的负荷和整个系统的传输效率。 实施例 5 本实施例提供了一种服务器, 该服务器为主用服务器, 参见图 9, 该服 务器包括: 设备管理模块 92 , 设置为与备用服务器建立同步通道, 该同步通道包括 设备级通道和子卡级通道, 或者, 该同步通道包括设备级通道和备份组级通 道; 信息同步模块 94 , 与设备管理模块 92相连, 设置为根据用户所在的备 份组确定对应的子卡级通道或备份组级通道, 按照子卡级通道或备份组级通 道对应的地址和端口号, 将用户信息封装成信息同步数据消息; 数据转发模块 96 , 与信息同步模块 94相连, 设置为通过子卡级通道或 备份组级通道将封装后的信息同步数据消息发送给备用服务器。 其中, 设备管理模块 92包括: 设备级通道建立单元, 设置为根据配置的备用服务器的地址和端口与备 用服务器协商建立设备级通道; 端口分配单元, 用于为自身设备的每个子卡或备份组分配通讯端口; 信息交互单元, 与设备级通道建立单元相连, 设置为与备用服务器通过 设备级通道相互交换备份组标识与端口的对应关系; 子卡级通道建立单元, 设置为根据备用服务器的地址和端口建立子卡级 通道; 备份组级通道建立单元, 设置为根据备用服务器的地址和端口建立备份 组级通道。 当同步通道包括设备级通道和子卡级通道时, 设备管理模块 92 可以不 包括上述备份组级通道建立单元; 当同步通道包括设备级通道和备份组级通 道时, 设备管理模块 92可以不包括上述子卡级通道建立单元。 该服务器可以为宽带远程接入服务器或服务路由器。 优选地, 该服务器还可以包括备份组管理模块, 设置为对配置的备份组 进行维护、 服务器是否异常的检测, 并根据检测的结果进行主用服务器或备 用服务器的选择, 以及与备用服务器间的同步通道的维护。 信息同步模块 94 在监测到有用户上线、 离线或者有用户信息变更时, 确定有用户信息需要同步。 该服务器在接收到备用设备的批量同步操作通知 时, 该服务器将通过设备级同步通道将同步信息发送给备用服务器。 本实施例的主用服务器在有用户信息需要同步时, 子卡可以直接使用建 立的子卡级通道将信息同步数据消息发送给备用服务器, 进而完成信息同步 操作, 解决了主控单元负荷较大的问题, 并且该方式不受主控单元性能瓶颈 的限制, 为主备切换提供了可靠的保障。 实施例 6 本实施例提供了一种服务器, 该服务器为备用服务器, 参见图 10 , 该服 务器包括: 设备管理模块 102 , 设置为与主用服务器建立同步通道, 该同步通道包 括设备级通道和子卡级通道, 或者, 该同步通道包括设备级通道和备份组级 通道; 数据转发模块 104 , 与设备管理模块 102相连, 设置为接收主用服务器 发送的信息同步数据消息, 才艮据信息同步数据消息的封装地址和端口, 将信 息同步数据消息转发至对应的子卡; 信息同步模块 106 , 与数据转发模块 104相连, 设置为对子卡上的信息 同步数据消息进行处理。 设备管理模块 102包括: 设备级通道建立单元, 设置为 居配置的主用 艮务器的地址和端口与主 用服务器协商建立设备级通道; 端口分配单元, 用于为自身设备的每个子卡或备份组分配通讯端口; 信息交互单元, 与设备级通道建立单元相连, 设置为与主用服务器通过 设备级通道相互交换备份组标识与端口的对应关系; 子卡级通道建立单元, 设置为 据主用 艮务器的地址和端口建立子卡级 通道; 备份组级通道建立单元, 设置为根据主用服务器的地址和端口建立备份 组级通道。 当同步通道包括设备级通道和子卡级通道时, 设备管理模块 102可以不 包括上述备份组级通道建立单元; 当同步通道包括设备级通道和备份组级通 道时, 设备管理模块 102可以不包括上述子卡级通道建立单元。 该服务器可以为宽带远程接入服务器或服务路由器。 当该服务器上的备份信息丢失时, 该服务器可以通过上述设备级通道通 知主用服务器进行批量同步操作; 主用服务器接收到批量同步操作通知后, 通过设备级通道将本地存储的用户信息发送给该服务器; 该服务器接收到这 些用户信息后, 进行同步操作。 本实施例的服务器在接收到信息同步数据消息后, 根据信息同步数据消 息携带的地址信息确定对应的子卡, 进而完成信息同步操作, 解决了主用服 务器的主控单元负荷较大的问题,并且该方式不受主控单元性能瓶颈的限制, 为主备切换提供了可靠的保障。 从以上的描述中可以看出, 本发明实现了如下技术效果: 以上实施例的 主用设备在有用户信息需要同步时, 子卡可以直接使用建立的子卡级通道将 信息同步数据消息发送给备用设备, 备用设备再根据信息同步数据消息携带 的地址信息确定对应的子卡, 进而完成信息同步操作, 解决了主控单元负荷 较大的问题, 并且该方式不受主控单元性能瓶颈的限制, 为主备切换提供了 可靠的保障。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的 ^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。 4) The daughter card of the active device establishes a daughter card level channel according to the address and port of the standby device. When the sub-card level channel is established, the information synchronization control message carries the address of the sub-card level channel, the port number, and the backup group information of the information synchronization data message sent through the channel. The backup group information includes the backup group number and the correspondence between the backup group and the port. The address of the daughter card level channel is the same as the address of the device level channel, and the device level channel and the daughter card level channel are distinguished by the port number. Step S304, the active device encapsulates the user information into an information synchronization data message, and sends the information to the backup device through the sub-card level channel; the primary device determines that the user information needs to be synchronized, and determines the corresponding sub-card level according to the backup group where the user is located. The channel is encapsulated into an information synchronization data message according to the address and port number corresponding to the sub-card level channel, and the encapsulated information synchronization data message is sent to the standby device through the sub-card level channel; triggering the primary device to send the information synchronization data message to at least It includes one of the following: A user goes online, a user is offline, or a user information changes. Step S306: The standby device forwards the information synchronization data message to the corresponding sub-card according to the channel encapsulation information in the received information synchronization data message, and the sub-card processes the information synchronization data message. The channel encapsulation information includes the address and port number of the sub-card level channel. When the backup information on the backup device is lost, the method further includes: the standby device sends the information synchronization control message to the active device through the device-level channel, and notifies the batch synchronization operation; after receiving the information synchronization control message, the primary device passes the The sub-card level channel sends the locally stored user information to the standby device; after receiving the user information, the standby device sends the information to the corresponding sub-card for processing. The primary and backup devices are composed of a main control unit and a plurality of service sub-cards. The service sub-card completes the protocol conversion within the sub-card, and reports the result to the main control unit to improve the throughput capacity and processing performance of the entire system. Taking IPTV as an example, the service daughter card maintains the on-demand relationship between 10,000 users and 500 program sources in the card, and the master control unit only needs to know which program sources the child card is on, and does not care about tens of thousands of users on the entire device. In the related art, when the information is synchronized, the sub-card of the active device is usually required to send the synchronization information to the main control unit of the active device, and then the main control unit sends the synchronization information to the standby device through the device-level channel. The processing load of the main control unit of the active device is increased to a large extent; while the primary device of the embodiment needs to synchronize the user information, the daughter card can directly send the information synchronization data message by using the established sub-card level channel. The backup device determines the corresponding daughter card according to the address information carried in the information synchronization data message, thereby completing the information synchronization operation, solving the problem that the main control unit is heavily loaded, and the method is not subject to the performance bottleneck of the main control unit. Restrictions provide a reliable guarantee for active/standby switching. Embodiment 2 The difference between the embodiment and the embodiment 1 is that: the synchronization channel in the embodiment 1 includes a device-level channel and a sub-card-level channel, and the synchronization channel in this embodiment includes a device-level channel and a backup group-level channel; The device and the backup device establish the backup group level channel by using the information synchronization control message; correspondingly, the embodiment uses the backup group level channel to transmit the information synchronization data message; for example, after the active device encapsulates the user information into the information synchronization data message, The backup group level channel is sent to the standby device; based on this, the channel encapsulation information includes the address and port number of the backup group level channel. When the backup group-level channel is established, the information synchronization control message carries the address of the backup group-level channel, the port number, and the backup group information of the information synchronization data message sent through the channel. The backup group information includes the backup group number and the correspondence between the backup group and the port. Preferably, the address of the backup group level channel is the same as the address of the device level channel, and the device level channel and the backup group level channel are distinguished by the port number. When the user information on the backup device is lost, the method further includes: the standby device sends an information synchronization control message to the primary device through the device-level channel, and notifies the batch synchronization operation; after receiving the information synchronization control message, the primary device passes the The backup group-level channel sends the locally stored user information to the standby device. After receiving the user information, the standby device sends the information to the corresponding daughter card for processing. When the user equipment of the embodiment needs to be synchronized, the child card can directly send the information synchronization data message to the standby device by using the established backup group level channel, and the backup device determines the corresponding information according to the address information carried by the information synchronization data message. The daughter card completes the information synchronization operation, solves the problem that the main control unit has a large load, and the method is not limited by the performance bottleneck of the main control unit, and provides a reliable guarantee for the active/standby switchover. Embodiment 3 This embodiment provides a method for synchronizing information between primary and backup devices. The method is described by taking the BRAS dual-system hot backup networking structure shown in FIG. 2 as an example to better explain the operation process of information synchronization. Referring to FIG. 4, the following modules are respectively disposed on the primary backup device of the embodiment: a device management module 42 is responsible for maintaining information maintenance between two active and standby BRASs, for example, establishing a synchronization channel; and the information synchronization module 44 is responsible for The user information synchronization sending and receiving process is performed between the active and standby BRAS devices; the backup group management module 46 is responsible for maintenance of the backup group unit, such as active/standby selection, abnormality detection, and information channel between the backup groups; the data forwarding module 48 is responsible for data. Forwarding of messages, and sending of local information. The device management module 42 and the information synchronization module 44 may be disposed on the main control unit. The backup group management module 46 and the data forwarding module 48 may be disposed on each service subcard. As shown in FIG. 4, the device management module 42 is connected to the backup group management module 46; the information synchronization module 44 is connected to the backup group management module 46 and the data forwarding module 48; the backup group management module 46 and the device management module 42, the information synchronization module 44, and The data forwarding module 48 is connected; the data forwarding module 48 is connected to the backup group management module 46 and the information synchronization module 44. Referring to FIG. 5, the information synchronization method between the primary and backup devices includes the following steps: Step S502: The device management module of the primary device negotiates with the remote end according to the configured remote address and port to establish device-level synchronization of signaling and information. aisle. Wherein, the remote end refers to the standby device; in step S504, the device management module of the primary standby device allocates a communication port for each service daughter card of the device; Step S506, the backup group management module of the primary device is configured according to the port managed by the backup group. Select the sync channel to use, which includes: device level sync channel and daughter card level sync channel. The device-level synchronization channel uses the device-level port, and the daughter-card-level synchronization channel uses the port allocated by the service daughter card. Step S508, the backup group management module of the primary standby device invokes the interface of the device management module, and sends the backup group ID (identification) and the selected local port to the remote end through the device-level synchronization channel. After the two-way interaction is completed, the service sub-card resides. The local address, port, and remote address, and the port establish a sub-card level synchronization channel. Step S510, the backup group management module of the primary backup device sends the corresponding relationship between the address/port of the synchronization channel and the processing unit to the data forwarding module. The processing unit refers to the main control unit or service corresponding to the synchronization channel selected in step S506. Child card. In step S512, when the user information needs to be synchronized, the information synchronization module of the active device queries the backup group management module for the used synchronization channel according to the backup group where the user is located, and encapsulates the local/remote address and port according to the result of the query. Send the encapsulated synchronization information to the remote end. Step S514: When the data forwarding module on the standby device receives the remote synchronization message, according to the address/port information, the query sends the synchronization information directly to the corresponding master control according to the corresponding relationship sent in step S510. At the control level of the service daughter card, the information synchronization module receives the information and performs corresponding processing. The data forwarding module belongs to the forwarding layer and does not occupy CPU resources. The information synchronization between the two devices is generally divided into real-time synchronization and batch synchronization. When a new user goes online, when the user is offline, or when the user information is changed, the user information can be synchronized to the backup device by using the real-time synchronization mode. When the sub-card level synchronization channel is used, the synchronization information can be transmitted. When the backup group/device level abnormality causes the backup information to be lost, the user information is completely synchronized again by means of batch synchronization. At this time, the device level synchronization channel can be used for the synchronization information transmission. The device specifies the address of the backup device to establish a reachable route and carries the user information synchronization protocol. In this embodiment, a distributed information synchronization channel negotiation/processing mechanism is introduced. When only a single physical path is required between the primary and backup devices, the centralized processing information of the original control unit is synchronized, and the service sub-card can be freely selected. , or the information synchronization between the service daughter card and the main control unit, effectively reducing the load of the main control unit and the transmission efficiency of the entire system. In the dual-system hot backup mode, the active and backup devices use the synchronization channel to synchronize the service information of all users on the device. The master unit of the standby device receives the user information of the remote device, and then generates the user information locally and sends it to the forwarding layer of the service subcard. When the active/standby switchover is performed, the real-time effect is implemented, and the user's non-aware handover is implemented. Embodiment 4 FIG. 6 is a schematic diagram of networking of primary and backup devices in a step-by-step architecture. In this embodiment, a backup group is used as a granularity, and objects for synchronizing and processing information with each other are agreed. The correspondence between the backup group and the service sub-card is as follows: The backup group 1 protects the service sub-card 1 of the BRAS 1 and the multi-group port of the service sub-card 1 of the BRAS 2; the backup group 2 pairs the service sub-card 2 of the BRAS 1 and the BRAS 2 The plurality of groups of ports of the service subcard 1 are protected; the backup group 3 protects the plurality of groups of ports of the service subcard 2 of the BRAS 1 and the service subcard 2 of the BRAS 2. FIG. 7 is a schematic diagram showing the information synchronization processing of the step-by-step architecture according to the present embodiment, and FIG. 8 is a flowchart showing the information synchronization processing of the step-by-step architecture according to the embodiment, and the information synchronization processing is performed. Including the following steps: Step S802: After device-level negotiation, the BRAS 1 and the BRAS 2 form a device-level synchronization channel with an IP address of 1.1.1.1, a port of 100, an IP address of 1.1.1.2, and a port of 100, and complete device resource synchronization and the like. In step S804, BRAS 1 assigns port 301 to service subcard 1, and service subcard 2 assigns port 302; BRAS2 is service subcard U □ port 401, and service subcard 2 has port 402. Step S806, the backup group management module of the BRAS 1 invokes the device management module interface to negotiate with the remote end. For example, the backup group 1 forms the local 1.1.1.1, the port 301, the remote end 1.1.1.2, the port 401, and the processing unit is the corresponding relationship of the service sub-card 1 and is delivered to the data forwarding module; the BRAS 2 performs the same operation. In step S808, the service sub-card 1 of the BRAS 1 is online, and the service information synchronization module on the sub-card 1 queries the backup group management module with the backup group to which the user belongs, and obtains the processing unit as local (ie, sub-card 1), and encapsulates Source IP 1.1.1.1, port 301, destination IP 1.1.1.2, port 401, find the remote route sent to the physical exit. If the processing unit negotiated by the backup group is the master control unit, the subcard 1 sends the user information to the main control unit, and the main control unit sends the information to the remote end through the device level channel. Step S810, the remote device receives the user synchronization information of the backup group 1, and the data forwarding module searches the local mapping table sent in step S806, and finds that IP1.1.1.2 and port 401 point to the local service subcard 1, and then directly send it to the local service subcard 1. The CPU processing of the service daughter card 1. In this embodiment, a distributed information synchronization channel negotiation/processing mechanism is introduced. When only a single physical path is required between the primary and backup devices, the centralized processing information of the original control unit is synchronized, and the service sub-card can be freely selected. , or the information synchronization between the service daughter card and the main control unit, effectively reducing the load of the main control unit and the transmission efficiency of the entire system. Embodiment 5 This embodiment provides a server, which is a server for a host. Referring to FIG. 9, the server includes: a device management module 92, configured to establish a synchronization channel with a standby server, where the synchronization channel includes a device level channel and a daughter card. Level channel, or, the synchronization channel includes a device level channel and a backup group level channel; The information synchronization module 94 is connected to the device management module 92, and is configured to determine a corresponding sub-card level channel or a backup group level channel according to the backup group where the user is located, according to the address and port number corresponding to the sub-card level channel or the backup group level channel. The user information is encapsulated into an information synchronization data message; the data forwarding module 96 is connected to the information synchronization module 94, and is configured to send the encapsulated information synchronization data message to the standby server through the sub-card level channel or the backup group level channel. The device management module 92 includes: a device-level channel establishing unit, configured to establish a device-level channel by negotiating with the standby server according to the configured address and port of the standby server; and a port allocation unit, configured to be a sub-card or a backup group of the own device. The communication communication unit is connected to the device-level channel establishing unit, and is configured to exchange the correspondence between the backup group identifier and the port through the device-level channel with the standby server; the sub-card level channel establishing unit is set according to the address of the standby server. And the port establishes a sub-card level channel; the backup group-level channel establishing unit is set to establish a backup group-level channel according to the address and port of the standby server. When the synchronization channel includes the device level channel and the daughter card level channel, the device management module 92 may not include the above backup group level channel establishing unit; when the synchronization channel includes the device level channel and the backup group level channel, the device management module 92 may not include the above. Subcard level channel establishment unit. The server can be a broadband remote access server or a service router. Preferably, the server may further include a backup group management module, configured to perform maintenance on the configured backup group, whether the server is abnormal, and select a primary server or a backup server according to the detected result, and between the standby server and the standby server. Synchronous channel maintenance. The information synchronization module 94 determines that user information needs to be synchronized when it is detected that a user is online, offline, or has user information changes. When the server receives the batch synchronization operation notification of the standby device, the server will send the synchronization information to the standby server through the device level synchronization channel. When the primary server of the embodiment needs to synchronize the user information, the daughter card can directly send the information synchronization data message to the standby server by using the established daughter card level channel, thereby completing the information synchronization. The operation solves the problem that the main control unit has a large load, and the method is not limited by the performance bottleneck of the main control unit, and provides a reliable guarantee for the active/standby switchover. Embodiment 6 This embodiment provides a server, which is a standby server. Referring to FIG. 10, the server includes: a device management module 102, configured to establish a synchronization channel with the primary server, where the synchronization channel includes a device level channel and a daughter card. The level channel, or the synchronization channel includes a device level channel and a backup group level channel; the data forwarding module 104 is connected to the device management module 102, and is configured to receive the information synchronization data message sent by the primary server, and then synchronize the data message according to the information. The encapsulated address and port forwards the information synchronization data message to the corresponding daughter card. The information synchronization module 106 is connected to the data forwarding module 104 and configured to process the information synchronization data message on the daughter card. The device management module 102 includes: a device-level channel establishing unit, configured to establish a device-level channel by negotiating an address and a port of the configured primary server with the primary server; and a port allocation unit, configured to be used for each daughter card of the own device or The backup group is assigned a communication port; the information interaction unit is connected to the device-level channel establishing unit, and is configured to exchange the correspondence between the backup group identifier and the port through the device-level channel with the active server; the sub-card level channel establishing unit is set as the master The sub-card level channel is established by using the address and port of the server; the backup group level channel establishing unit is set to establish a backup group level channel according to the address and port of the active server. When the synchronization channel includes the device level channel and the sub-card level channel, the device management module 102 may not include the above-mentioned backup group level channel establishing unit; when the synchronization channel includes the device level channel and the backup group level channel, the device management module 102 may not include the above. Subcard level channel establishment unit. The server can be a broadband remote access server or a service router. When the backup information on the server is lost, the server may notify the primary server to perform a batch synchronization operation through the device-level channel. After receiving the batch synchronization operation notification, the primary server sends the locally stored user information to the device-level channel. The server; after receiving the user information, the server performs a synchronization operation. After receiving the information synchronization data message, the server in this embodiment determines the corresponding sub-card according to the address information carried in the information synchronization data message, thereby completing the information synchronization operation, and solving the problem that the main control unit of the main server has a large load. And this method is not limited by the performance bottleneck of the main control unit, and provides a reliable guarantee for the active/standby switchover. As can be seen from the above description, the present invention achieves the following technical effects: When the user equipment of the above embodiment needs to synchronize the user information, the child card can directly send the information synchronization data message to the used sub-card level channel. The standby device determines the corresponding daughter card according to the address information carried in the information synchronization data message, thereby completing the information synchronization operation, and solving the problem that the main control unit has a large load, and the method is not limited by the performance bottleneck of the main control unit. , providing reliable protection for active and standby switching. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Claims

权 利 要 求 书 一种主备用设备间的信息同步方法, 包括:  Claims A method for synchronizing information between primary and backup devices, including:
主用设备和备用设备建立同步通道, 所述同步通道包括设备级通道 和子卡级通道, 其中, 所述设备级通道传送信息同步控制消息, 所述子 卡级通道传送信息同步数据消息, 所述主用设备和备用设备通过所述信 息同步控制消息建立所述子卡级通道;  The master device and the backup device establish a synchronization channel, where the synchronization channel includes a device level channel and a daughter card level channel, where the device level channel transmits an information synchronization control message, and the child card level channel transmits an information synchronization data message, The primary device and the standby device establish the subcard level channel by using the information synchronization control message;
所述主用设备将用户信息封装成所述信息同步数据消息并通过所述 子卡级通道发送给所述备用设备;  The active device encapsulates user information into the information synchronization data message and sends the information to the standby device through the daughter card level channel;
所述备用设备根据收到的所述信息同步数据消息中的通道封装信 息, 将所述信息同步数据消息转发至对应的子卡, 所述子卡对所述信息 同步数据消息进行处理。 根据权利要求 1所述的方法, 其中, 所述通道封装信息包括子卡级通道 的地址和端口号。 根据权利要求 1所述的方法, 其中, 在建立所述子卡级通道时, 所述信 息同步控制消息中携带子卡级通道的地址、 端口号及通过该通道发送所 述信息同步数据消息的备份组信息。 根据权利要求 3所述的方法, 其中, 所述备份组信息包括备份组号、 备 份组与端口的对应关系。 才艮据权利要求 2所述的方法, 其中, 所述子卡级通道的地址与设备级通 道的地址相同, 所述设备级通道和所述子卡级通道通过端口号来区分。 根据权利要求 1所述的方法, 其中, 触发所述主用设备发送所述信息同 步数据消息至少包括以下之一:  The standby device forwards the information synchronization data message to the corresponding sub-card according to the received channel encapsulation information in the information synchronization data message, and the sub-card processes the information synchronization data message. The method according to claim 1, wherein the channel encapsulation information includes an address and a port number of the sub-card level channel. The method according to claim 1, wherein, in the establishing the sub-card level channel, the information synchronization control message carries an address, a port number of the sub-card level channel, and the information synchronization data message is sent through the channel Backup group information. The method according to claim 3, wherein the backup group information includes a backup group number, a correspondence between the backup group and the port. The method according to claim 2, wherein the address of the sub-card level channel is the same as the address of the device-level channel, and the device-level channel and the sub-card level channel are distinguished by a port number. The method according to claim 1, wherein the triggering the primary device to send the information synchronization data message comprises at least one of the following:
用户上线;  The user goes online;
用户离线;  User offline
用户信息发生变更。 User information has changed.
7. 根据权利要求 1所述的方法, 其中, 所述备用设备上的所述用户信息丢 失时, 所述方法还包括: The method according to claim 1, wherein, when the user information on the backup device is lost, the method further includes:
所述备用设备通过所述设备级通道发送所述信息同步控制消息给所 述主用设备, 通知进行批量同步操作;  Sending, by the device-level channel, the information synchronization control message to the active device, and notifying the batch synchronization operation;
所述主用设备接收到所述信息同步控制消息后, 通过所述子卡级通 道将本地存储的所述用户信息发送给所述备用设备;  After receiving the information synchronization control message, the primary device sends the locally stored user information to the standby device through the daughter card level channel;
所述备用设备接收到所述用户信息后,发送至对应的子卡进行处理。  After receiving the user information, the standby device sends the message to the corresponding daughter card for processing.
8. —种主备用设备间的信息同步方法, 包括: 8. A method for synchronizing information between primary and backup devices, including:
主用设备和备用设备建立同步通道, 所述同步通道包括设备级通道 和备份组级通道, 其中, 所述设备级通道传送信息同步控制消息, 备份 组级通道传送信息同步数据消息, 所述主用设备和备用设备通过信息同 步控制消息建立所述备份组级通道;  The active device and the standby device establish a synchronization channel, where the synchronization channel includes a device-level channel and a backup group-level channel, where the device-level channel transmits an information synchronization control message, and the backup group-level channel transmits an information synchronization data message, where the primary device Establishing, by the device and the standby device, the backup group level channel by using an information synchronization control message;
所述主用设备通过所述备份组级通道将用户信息封装成所述信息同 步数据消息并发送给所述备用设备;  The primary device encapsulates user information into the information synchronization data message through the backup group level channel and sends the information to the standby device.
所述备用设备根据收到的所述信息同步数据消息中的通道封装信 息, 将所述信息同步数据消息转发至对应的子卡, 所述子卡对所述信息 同步数据消息进行处理。  The standby device forwards the information synchronization data message to the corresponding sub-card according to the received channel encapsulation information in the information synchronization data message, and the sub-card processes the information synchronization data message.
9. 根据权利要求 8所述的方法, 其中, 所述通道封装信息包括备份组级通 道的地址和端口号。 9. The method according to claim 8, wherein the channel encapsulation information comprises an address and a port number of a backup group level channel.
10. 根据权利要求 8所述的方法, 其中, 在建立所述备份组级通道时, 所述 信息同步控制消息中携带备份组级通道的地址、 端口号及通过该通道发 送所述信息同步数据消息的备份组信息。 The method according to claim 8, wherein, when the backup group level channel is established, the information synchronization control message carries an address, a port number of the backup group level channel, and sends the information synchronization data through the channel. Backup group information for the message.
11. 根据权利要求 10所述的方法, 其中, 所述备份组信息包括备份组号、 备 份组与端口的对应关系。 The method according to claim 10, wherein the backup group information includes a backup group number, a correspondence between a backup group and a port.
12. 居权利要求 9所述的方法, 其中, 所述备份组级通道的地址与所述设 备级通道的地址相同, 所述设备级通道和所述备份组级通道通过端口号 来区分。 12. The method of claim 9, wherein the address of the backup group level channel is the same as the address of the device level channel, and the device level channel and the backup group level channel are distinguished by a port number.
13. 根据权利要求 8所述的方法, 其中, 触发所述主用设备发送所述信息同 步数据消息至少包括以下之一: 13. The method according to claim 8, wherein triggering the primary device to send the information synchronization data message comprises at least one of the following:
用户上线;  The user goes online;
用户离线;  User offline
用户信息发生变更。  User information has changed.
14. 根据权利要求 8所述的方法, 其中, 所述备用设备上的所述用户信息丢 失时, 所述方法还包括: The method according to claim 8, wherein, when the user information on the backup device is lost, the method further includes:
所述备用设备通过所述设备级通道发送所述信息同步控制消息给所 述主用设备, 通知进行批量同步操作;  Sending, by the device-level channel, the information synchronization control message to the active device, and notifying the batch synchronization operation;
所述主用设备接收到所述信息同步控制消息后, 通过所述备份组级 通道将本地存储的所述用户信息发送给所述备用设备;  After receiving the information synchronization control message, the primary device sends the locally stored user information to the standby device through the backup group level channel;
所述备用设备接收到所述用户信息后,发送至对应的子卡进行处理。  After receiving the user information, the standby device sends the message to the corresponding daughter card for processing.
15. —种服务器, 所述服务器为主用服务器, 包括: 15. A server, the server being a primary server, comprising:
设备管理模块, 设置为与备用服务器建立同步通道, 所述同步通道 包括设备级通道与子卡级通道, 或所述同步通道包括设备级通道与备份 组级通道; 信息同步模块, 设置为根据用户所在的备份组, 确定对应的子卡级 通道或备份组级通道, 按照所述子卡级通道或备份组级通道对应的地址 和端口号, 将用户信息封装成信息同步数据消息;  The device management module is configured to establish a synchronization channel with the standby server, where the synchronization channel includes a device level channel and a sub-card level channel, or the synchronization channel includes a device level channel and a backup group level channel; and the information synchronization module is set to be based on the user. The backup group, the corresponding sub-card level channel or the backup group level channel, and the user information is encapsulated into an information synchronization data message according to the address and port number corresponding to the sub-card level channel or the backup group level channel;
数据转发模块, 设置为通过所述子卡级通道或备份组级通道将封装 后的所述信息同步数据消息发送给所述备用服务器。  And a data forwarding module, configured to send the encapsulated information synchronization data message to the standby server by using the sub-card level channel or the backup group level channel.
16. 根据权利要求 15所述的服务器, 其中, 所述设备管理模块包括: The server according to claim 15, wherein the device management module comprises:
设备级通道建立单元, 设置为根据配置的所述备用服务器的地址和 端口与所述备用服务器协商建立设备级通道;  a device-level channel establishing unit, configured to establish a device-level channel by negotiating with the standby server according to the configured address and port of the standby server;
端口分配单元,用于为自身设备的每个子卡或备份组分配通讯端口; 信息交互单元, 设置为与所述备用服务器通过所述设备级通道相互 交换备份组标识与端口的对应关系;  a port allocation unit, configured to allocate a communication port to each of the sub-cards or the backup group of the device; the information interaction unit is configured to exchange the correspondence between the backup group identifier and the port through the device-level channel with the standby server;
子卡级通道建立单元, 设置为根据所述备用服务器的地址和端口建 立子卡级通道; 备份组级通道建立单元, 设置为 居所述备用 艮务器的地址和端口 建立备份组级通道。 a sub-card level channel establishing unit, configured to establish a sub-card level channel according to the address and port of the standby server; The backup group level channel establishing unit is configured to establish a backup group level channel at the address and port of the standby server.
17. 根据权利要求 15所述的服务器, 其中, 所述服务器为宽带远程接入服务 器或服务路由器。 17. The server according to claim 15, wherein the server is a broadband remote access server or a service router.
18. —种服务器, 所述服务器为备用服务器, 包括: 18. A server, the server being an alternate server, comprising:
设备管理模块, 设置为与主用服务器建立同步通道, 所述同步通道 包括设备级通道与子卡级通道, 或所述同步通道包括设备级通道与备份 组级通道; 数据转发模块, 设置为接收所述主用服务器发送的信息同步数据消 息, 根据所述信息同步数据消息的封装地址和端口, 将所述信息同步数 据消息转发至对应的子卡;  The device management module is configured to establish a synchronization channel with the primary server, where the synchronization channel includes a device level channel and a sub-card level channel, or the synchronization channel includes a device level channel and a backup group level channel; and the data forwarding module is configured to receive The information synchronization data message sent by the primary server forwards the information synchronization data message to the corresponding daughter card according to the encapsulated address and port of the information synchronization data message;
信息同步模块, 设置为对所述子卡上的所述信息同步数据消息进行 处理。  An information synchronization module is configured to process the information synchronization data message on the child card.
19. 根据权利要求 18所述的服务器, 其中, 所述设备管理模块包括: The server according to claim 18, wherein the device management module comprises:
设备级通道建立单元, 设置为才艮据配置的所述主用 艮务器的地址和 端口与所述主用服务器协商建立设备级通道;  a device-level channel establishing unit, configured to establish a device-level channel by negotiating with the primary server according to the configured address and port of the primary server;
端口分配单元,用于为自身设备的每个子卡或备份组分配通讯端口; 信息交互单元, 设置为与所述主用服务器通过所述设备级通道相互 交换备份组标识与端口的对应关系;  a port allocation unit, configured to allocate a communication port to each of the sub-cards or the backup group of the device; the information interaction unit is configured to exchange the correspondence between the backup group identifier and the port through the device-level channel with the active server;
子卡级通道建立单元, 设置为 -据所述主用 艮务器的地址和端口建 立子卡级通道; 备份组级通道建立单元, 设置为 居所述主用 艮务器的地址和端口 建立备份组级通道。  a sub-card level channel establishing unit, configured to: establish a sub-card level channel according to an address and a port of the main server; a backup group level channel establishing unit, configured to establish an address and a port of the main server Back up the group level channel.
20. 居权利要求 18所述的 艮务器, 其中, 所述艮务器为宽带远程接入艮务 器或服务路由器。 20. The server of claim 18, wherein the server is a broadband remote access server or a service router.
PCT/CN2011/072892 2010-07-28 2011-04-15 Method and server used for information synchronization between master equipment and standby equipment WO2012013050A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010243003XA CN101902360A (en) 2010-07-28 2010-07-28 Method for synchronizing information between master equipment and standby equipment and server
CN201010243003.X 2010-07-28

Publications (1)

Publication Number Publication Date
WO2012013050A1 true WO2012013050A1 (en) 2012-02-02

Family

ID=43227579

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/072892 WO2012013050A1 (en) 2010-07-28 2011-04-15 Method and server used for information synchronization between master equipment and standby equipment

Country Status (2)

Country Link
CN (1) CN101902360A (en)
WO (1) WO2012013050A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110768242A (en) * 2018-07-27 2020-02-07 珠海格力电器股份有限公司 Power peak regulation system and its general data interface and data transmission format

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902360A (en) * 2010-07-28 2010-12-01 中兴通讯股份有限公司 Method for synchronizing information between master equipment and standby equipment and server
CN102957718B (en) 2011-08-23 2018-04-03 中兴通讯股份有限公司 The method of User Agreement message synchronization between a kind of service node and service node
CN103124278A (en) * 2011-11-21 2013-05-29 苏州达联信息科技有限公司 Implement method and processing device of primary and standby synchronization information of video distribution network global server
CN102571430B (en) * 2012-01-05 2015-01-21 华为技术有限公司 Method for synchronizing network devices and network devices
CN102739453B (en) * 2012-07-03 2015-07-29 华为软件技术有限公司 Main/standby switching method, equipment and system
CN102907037B (en) * 2012-08-01 2016-11-09 华为技术有限公司 The method of service backup, Apparatus and system is carried out between a kind of multimachine
CN103068034B (en) * 2013-01-29 2016-05-11 大唐移动通信设备有限公司 A kind of method that data are synchronous and device
CN104038362B (en) * 2013-03-08 2018-03-23 中国移动通信集团广东有限公司 A kind of network system
CN104994071B (en) * 2015-05-28 2018-11-09 新华三技术有限公司 The backup method and device of broadband remote access server equipment
CN105939366A (en) * 2015-07-03 2016-09-14 杭州迪普科技有限公司 User information synchronization method, user information synchronization device and access equipment
CN105227455A (en) * 2015-10-08 2016-01-06 北京星网锐捷网络技术有限公司 A kind of method and system of batch user web authentication active-standby switch
CN106855834B (en) * 2015-12-08 2020-11-10 华为技术有限公司 Data backup method, device and system
CN107306235A (en) * 2016-04-21 2017-10-31 中兴通讯股份有限公司 Link extended method and device between a kind of dual master control equipment master control
CN108574626A (en) * 2017-03-13 2018-09-25 中兴通讯股份有限公司 A kind of distribution NAT two-node cluster hot backup flow switching systems and method
CN113055215B (en) * 2019-12-27 2022-11-25 华为技术有限公司 Information transmission method and related equipment
CN112511326B (en) * 2020-03-16 2024-02-02 中兴通讯股份有限公司 Switching method, device, equipment and storage medium
CN112732483A (en) * 2020-12-31 2021-04-30 联想(北京)有限公司 Data recovery method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1146108A (en) * 1996-05-24 1997-03-26 北京大学 Data network controlling method using telephone network or computer internet
CN1797976A (en) * 2004-12-29 2006-07-05 华为技术有限公司 Method for transmitting data between main and standby boards
CN101179366A (en) * 2006-11-06 2008-05-14 中兴通讯股份有限公司 Method of synchronizing master/slave data of digital subscriber line access multiplexer
CN101902360A (en) * 2010-07-28 2010-12-01 中兴通讯股份有限公司 Method for synchronizing information between master equipment and standby equipment and server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1146108A (en) * 1996-05-24 1997-03-26 北京大学 Data network controlling method using telephone network or computer internet
CN1797976A (en) * 2004-12-29 2006-07-05 华为技术有限公司 Method for transmitting data between main and standby boards
CN101179366A (en) * 2006-11-06 2008-05-14 中兴通讯股份有限公司 Method of synchronizing master/slave data of digital subscriber line access multiplexer
CN101902360A (en) * 2010-07-28 2010-12-01 中兴通讯股份有限公司 Method for synchronizing information between master equipment and standby equipment and server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110768242A (en) * 2018-07-27 2020-02-07 珠海格力电器股份有限公司 Power peak regulation system and its general data interface and data transmission format

Also Published As

Publication number Publication date
CN101902360A (en) 2010-12-01

Similar Documents

Publication Publication Date Title
WO2012013050A1 (en) Method and server used for information synchronization between master equipment and standby equipment
CN101695043B (en) Method for multiplexing hot backup port and network system
US8842518B2 (en) System and method for supporting management network interface card port failover in a middleware machine environment
US8761001B2 (en) Method and network system for implementing user port orientation in multi-machine backup scenario of broadband remote access server
WO2016037554A1 (en) Hybrid network system, communication method and network node
CN102098201B (en) Method for realizing L2TP user access backup and network system
WO2015013896A1 (en) Network control method and apparatus
CN103117876B (en) The synchronous method and device of user state information
US9385944B2 (en) Communication system, path switching method and communication device
CN104104570A (en) Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN103780510B (en) Method and device for negotiating flow path in link aggregation group
US20120179826A1 (en) Address Distribution Method, Device and System Thereof
CN102130776A (en) Communication method and system
WO2014090120A1 (en) Method and system for link switchover
CN104506372B (en) A kind of method and system for realizing active/standby server switching
JP6795043B2 (en) Gateway devices, network address translators, communication systems, communication methods, and programs
US9166868B2 (en) Distributed control plane for link aggregation
WO2016124117A1 (en) Method, switching device and network controller for protecting links in software-defined network (sdn)
JP6383232B2 (en) Relay system and switch device
CN103501299A (en) Firewall cluster management method and system
CN109245911A (en) A kind of implementation method that BRAS is hot standby, equipment and computer readable storage medium
WO2012000338A1 (en) Method and system for achieving main/standby switch for single boards
CN101409829B (en) Method and apparatus for forwarding multicast in IP monitoring network
WO2014146395A1 (en) Method, apparatus and system for protecting multicast switchover
CN114268581B (en) Method for realizing high availability and load sharing of network equipment

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

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

Country of ref document: EP

Kind code of ref document: A1