[go: up one dir, main page]

CN104125079B - A kind of method and device for determining two-node cluster hot backup configuration information - Google Patents

A kind of method and device for determining two-node cluster hot backup configuration information Download PDF

Info

Publication number
CN104125079B
CN104125079B CN201310142917.0A CN201310142917A CN104125079B CN 104125079 B CN104125079 B CN 104125079B CN 201310142917 A CN201310142917 A CN 201310142917A CN 104125079 B CN104125079 B CN 104125079B
Authority
CN
China
Prior art keywords
interface
backup
peer
backup peer
connectivity detection
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201310142917.0A
Other languages
Chinese (zh)
Other versions
CN104125079A (en
Inventor
李振海
牛承光
畅文俊
孙胜涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201310142917.0A priority Critical patent/CN104125079B/en
Publication of CN104125079A publication Critical patent/CN104125079A/en
Application granted granted Critical
Publication of CN104125079B publication Critical patent/CN104125079B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种确定双机热备份配置信息的方法及装置,包括:作为管理主设备的网络设备向作为管理从设备的网络设备发起链路层连通性检测,并根据所述链路层连通性检测的结果建立备份对等体,以及确定所述备份对等体包括的可以互相备份的主用接口和备用接口,其中,所述管理主设备和所述管理从设备为能够互相备份的两个网络设备;所述管理主设备将所述备份对等体包括的所述主用接口和备用接口的信息通知所述管理从设备。本发明实施例使得确定所述双机热备份配置信息的处理过程具有配置部署及维护过程简单等优点,以在不增加建网成本的情况下,极大削减网络运营成本。

The invention discloses a method and device for determining configuration information of dual-machine hot backup, comprising: a network device serving as a management master device initiates a link layer connectivity detection to a network device serving as a management slave device, and according to the link layer The result of the connectivity detection establishes a backup peer, and determines that the backup peer includes a master interface and a backup interface that can back up each other, wherein the management master device and the management slave device are capable of mutual backup Two network devices; the management master device notifies the management slave device of the information about the master interface and the backup interface included in the backup peer. The embodiment of the present invention makes the processing process of determining the configuration information of the dual-system hot backup have the advantages of simple configuration deployment and maintenance process, so as to greatly reduce the network operation cost without increasing the network construction cost.

Description

一种确定双机热备份配置信息的方法及装置A method and device for determining configuration information of dual-machine hot backup

技术领域technical field

本发明涉及一种通信技术领域,尤其涉及一种确定双机热备份配置信息的方法及装置。The invention relates to the field of communication technology, in particular to a method and device for determining configuration information of dual-system hot backup.

背景技术Background technique

随着宽带网络业务的发展,用户对网络可靠性的要求越来越高,例如,网络中断将直接影响大型网游玩家的体验,或者,影响企业用户voip(基于IP的语音,voice over IP)、视频等应用(如会议等)的体验。With the development of broadband network services, users have higher and higher requirements for network reliability. For example, network interruption will directly affect the experience of large online game players, or affect enterprise users VOIP (voice over IP, voice over IP), The experience of applications such as video (such as meetings, etc.).

基于上述需求,为提高宽带网络接入的可靠性,运营商都会采用双归接入方式,即用户设备(如交换机)通过两条接入链路分别接到两台BRAS(宽带接入服务器,BroadbandRemote Access Server)上。由于BRAS设备一般通过PPPoE(Point-to-Point Potocol OverEthernet,以太网上传送点对点会话的方式)来方式来实现接入认证,如果不对用户的认证状态等数据进行设备间的备份,那么在出现链路或节点故障而发生保护切换后,用户需要重新拨号才能完成在另一台设备上的接入,在这个过程中,用户的网络应用连接会断掉,极大影响用户体验。因此,在主备设备之间会实时备份用户的接入认证等相关用户数据。为了实现在主、备设备之间备份用户数据,目前通常采用的方式包括VRRP(Virtual RouterRedundancy Protocol,虚拟路由器冗余协议)扩展的方式。在该VRRP扩展的方式中,主要是基于VRRP的双机冗余保护实现。即为了实现BRAS双机之间的热备,对VRRP协议进行扩展,增加用户信息同步备份等功能,以充分利用原有组网和VRRP协议,实现相应的双机热备。Based on the above requirements, in order to improve the reliability of broadband network access, operators will adopt a dual-homing access method, that is, user equipment (such as a switch) is connected to two BRAS (Broadband Access Server, Broadband Access Server, BroadbandRemote Access Server). Since BRAS devices generally implement access authentication through PPPoE (Point-to-Point Protocol OverEthernet, the method of transmitting point-to-point sessions on Ethernet), if data such as user authentication status and other data are not backed up between devices, then the link After protection switching occurs due to node failure or node failure, the user needs to redial to complete the access on another device. During this process, the user's network application connection will be disconnected, which greatly affects the user experience. Therefore, related user data such as user access authentication will be backed up in real time between the active and standby devices. In order to back up user data between the active device and the standby device, currently a generally adopted method includes a VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundancy Protocol) extended method. In this VRRP extension mode, it is mainly based on VRRP dual-machine redundancy protection implementation. That is, in order to realize hot backup between two BRAS machines, the VRRP protocol is extended to add functions such as synchronous backup of user information, so as to make full use of the original networking and VRRP protocol to realize corresponding hot backup of two machines.

但是,由于VRRP是面向接口的保护协议,因而,为实现BRAS双机之间的热备,需要在主、备BRAS上连接下层网络设备的接口中的每一对互为备份的接口上配置至少一个VRRP保护组,每一个VRRP保护组都需要配置3个IP地址及配置10-20条命令,这样,针对一台实现双机热备的BRAS设备需要配置数千条命令和数百个IP地址。而且,由于实现双机热备的过程中通常需要基于VLAN(虚拟局域网,Virtual Local Area Network)粒度进行保护,因而需要对VLAN进行统一规划,同时对下层交换机的配置也需要进行调整,这就进一步提高了整个配置和维护过程的复杂度。However, since VRRP is an interface-oriented protection protocol, in order to realize hot backup between two BRASs, it is necessary to configure at least For a VRRP protection group, each VRRP protection group needs to be configured with 3 IP addresses and 10-20 commands. In this way, thousands of commands and hundreds of IP addresses need to be configured for a BRAS device that realizes dual-machine hot standby . Moreover, since the process of realizing dual-machine hot backup usually needs to be protected based on the granularity of VLAN (Virtual Local Area Network, Virtual Local Area Network), it is necessary to plan the VLAN uniformly, and at the same time, the configuration of the lower-layer switch also needs to be adjusted, which further Increased the complexity of the entire configuration and maintenance process.

发明内容Contents of the invention

本发明的目的是提供一种确定双机热备份配置信息的方法及装置,以降低配置及维护双机热备份配置信息的处理过程的复杂程度。The purpose of the present invention is to provide a method and device for determining the configuration information of dual-system hot backup, so as to reduce the complexity of the process of configuring and maintaining the configuration information of dual-system hot backup.

第一方面,本发明实施例提供了一种确定双机热备份配置信息的方法,包括:In the first aspect, the embodiment of the present invention provides a method for determining configuration information of dual-system hot backup, including:

作为管理主设备的网络设备向作为管理从设备的网络设备发起链路层连通性检测,并根据所述链路层连通性检测的结果建立备份对等体,以及确定所述备份对等体包括的可以互相备份的主用接口和备用接口,其中,所述管理主设备和所述管理从设备为能够互相备份的两个网络设备;The network device as the management master device initiates a link layer connectivity detection to the network device as the management slave device, and establishes a backup peer according to the result of the link layer connectivity detection, and determines that the backup peer includes A master interface and a backup interface that can back up each other, wherein the management master device and the management slave device are two network devices that can back up each other;

所述管理主设备将所述备份对等体包括的所述主用接口和备用接口的信息通知所述管理从设备。The management master device notifies the management slave device of the information of the master interface and the backup interface included in the backup peer.

在所述第一方面的第一种可能的实现方式中,所述发起链路层连通性检测的步骤包括:In a first possible implementation manner of the first aspect, the step of initiating link layer connectivity detection includes:

所述管理主设备根据自身与下层网络设备连接的接口的外层虚拟局域网配置信息主动发起所述链路层连通性检测。The master management device actively initiates the link layer connectivity detection according to the outer virtual local area network configuration information of the interface connecting itself to the lower layer network device.

在所述第一方面的第二种可能的实现方式中,所述发起链路层连通性检测的步骤包括:In a second possible implementation of the first aspect, the step of initiating link layer connectivity detection includes:

当所述管理主设备收到虚拟局域网的非单播接入报文时,若所述虚拟局域网尚未建立所述备份对等体,则发起所述链路层连通性检测。When the master management device receives the non-unicast access message of the virtual local area network, if the virtual local area network has not established the backup peer, it initiates the link layer connectivity detection.

基于所述第一方面或所述第一方面的第一种可能的实现方式或所述第一方面的第二种可能的实现方式,在所述第一方面的第三种可能的实现方式中,所述方法还包括:Based on the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect, in the third possible implementation of the first aspect , the method also includes:

所述管理主设备根据预定的时间间隔,周期性地针对已经建立的所述备份对等体发起所述链路层连通性检测,当确定所述已经建立的备份对等体失效,则针对失效的备份对等体的接口重新发起所述链路层连通性检测,并为所述失效的备份对等体的接口建立新的备份对等体,其中,所述备份对等体失效是指所述连通性检测的结果为所述备份对等体包括的主用接口和备用接口之间不连通。The management master device periodically initiates the link layer connectivity detection for the established backup peer according to a predetermined time interval, and when it is determined that the established backup peer fails, it The interface of the backup peer re-initiates the link layer connectivity detection, and establishes a new backup peer for the interface of the failed backup peer, wherein the failure of the backup peer refers to the failure of the backup peer The result of the connectivity detection is that there is no connectivity between the active interface and the standby interface included in the backup peer.

基于所述第一方面或所述第一方面的第一种可能的实现方式或所述第一方面的第二种可能的实现方式,在所述第一方面的第四种可能的实现方式中,确定所述备份对等体包括的可以互相备份的主用接口和备用接口的步骤包括:Based on the first aspect or the first possible implementation of the first aspect or the second possible implementation of the first aspect, in the fourth possible implementation of the first aspect , the step of determining the active interface and the backup interface included in the backup peer that can back up each other includes:

所述管理主设备根据所述备份对等体中的接口的本地属性、所述备份对等体中的接口的速率匹配、上下行链路流量均衡度、地址池均衡度或虚拟局域网数量均衡度中的一项或多项确定所述备份对等体包括的可以互相备份的主用接口和备用接口,其中,所述本地属性用于预先配置指定某接口为其所在的备份对等体中的主用接口或备用接口。The master management device according to the local attribute of the interface in the backup peer, the rate matching of the interface in the backup peer, the balance degree of uplink and downlink traffic, the balance degree of address pool or the balance degree of virtual local area network One or more of them determine the active interface and backup interface included in the backup peer that can back up each other, wherein the local attribute is used to pre-configure and specify a certain interface as the backup peer in which it is located. Active interface or standby interface.

第二方面,本发明实施例提供了一种确定双机热备份配置信息的装置,其特征在于,所述装置设置于作为管理主设备的网络设备中,且所述装置包括:In the second aspect, an embodiment of the present invention provides a device for determining configuration information of dual-system hot backup, wherein the device is set in a network device serving as a management master device, and the device includes:

连通性检测单元,用于向作为管理从设备的网络设备发起链路层连通性检测,其中,所述管理主设备和所述管理从设备为能够互相备份的两个网络设备;A connectivity detection unit, configured to initiate a link layer connectivity detection to a network device serving as a management slave device, wherein the management master device and the management slave device are two network devices that can back up each other;

备份对等体建立单元,用于根据所述连通性检测单元的所述链路层连通性检测的结果建立备份对等体,以及确定所述备份对等体包括的可以互相备份的主用接口和备用接口;A backup peer establishment unit, configured to establish a backup peer according to the result of the link layer connectivity detection of the connectivity detection unit, and determine the active interfaces that can be backed up by each other included in the backup peer and alternate interfaces;

备份对等体信息发送单元,用于将所述备份对等体建立单元建立的所述备份对等体包括的所述主用接口和备用接口的信息通知所述管理从设备。The backup peer information sending unit is configured to notify the management slave device of the information about the active interface and the backup interface included in the backup peer established by the backup peer establishment unit.

在所述第二方面的第一种可能的实现方式中,所述连通性检测单元包括静态连通性检测子单元,用于根据所述管理主设备与下层网络设备连接的接口的外层虚拟局域网配置信息主动发起所述链路层连通性检测。In the first possible implementation manner of the second aspect, the connectivity detection unit includes a static connectivity detection subunit, configured to connect the main management device to the lower-layer network device according to the outer virtual local area network The configuration information actively initiates the link layer connectivity detection.

在所述第二方面的第二种可能的实现方式中,所述连通性检测单元包括动态连通性检测子单元,用于当所述管理主设备收到虚拟局域网的非单播接入报文时,若所述虚拟局域网尚未建立所述备份对等体,则发起所述链路层连通性检测。In a second possible implementation of the second aspect, the connectivity detection unit includes a dynamic connectivity detection subunit, configured to , if the virtual local area network has not established the backup peer, initiate the link layer connectivity detection.

基于所述第二方面或所述第二方面的第一种可能的实现方式或所述第二方面的第二种可能的实现方式,在所述第二方面的第三种可能的实现方式中,所述装置还包括:Based on the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect, in the third possible implementation of the second aspect , the device also includes:

连通性监测单元,用于根据预定的时间间隔,周期性地针对已经建立的所述备份对等体发起所述链路层连通性检测,当确定所述已经建立的备份对等体失效,则针对失效的备份对等体的接口重新发起所述链路层连通性检测,并为所述失效的备份对等体的接口建立新的备份对等体,其中,所述备份对等体失效是指所述连通性检测的结果为所述备份对等体包括的主用接口和备用接口之间不连通。The connectivity monitoring unit is configured to periodically initiate the link layer connectivity detection for the established backup peer according to a predetermined time interval, and when it is determined that the established backup peer fails, then Re-initiating the link layer connectivity detection for the interface of the failed backup peer, and establishing a new backup peer for the interface of the failed backup peer, wherein the failure of the backup peer is It means that the result of the connectivity detection is that there is no communication between the active interface and the standby interface included in the backup peer.

基于所述第二方面或所述第二方面的第一种可能的实现方式或所述第二方面的第二种可能的实现方式,在所述第二方面的第四种可能的实现方式中,所述备份对等体建立单元包括:Based on the second aspect or the first possible implementation of the second aspect or the second possible implementation of the second aspect, in the fourth possible implementation of the second aspect , the backup peer establishment unit includes:

备份对等体确定子单元,用于根据所述连通性检测单元的所述链路层连通性检测的结果建立备份对等体;A backup peer determination subunit, configured to establish a backup peer according to the result of the link layer connectivity detection by the connectivity detection unit;

主备选择子单元,用于根据所述备份对等体中的接口的本地属性、所述备份对等体中的接口的速率匹配、上下行链路流量均衡度、地址池均衡度或虚拟局域网数量均衡度中的一项或多项确定所述备份对等体包括的可以互相备份的主用接口和备用接口,其中,所述本地属性用于预先配置指定某接口为其所在的备份对等体中的主用接口或备用接口。The active/standby selection subunit is configured to use the local attribute of the interface in the backup peer, the rate matching of the interface in the backup peer, the balance degree of uplink and downlink traffic, the balance degree of address pool or the virtual local area network One or more items in the quantity balance degree determine the active interface and the backup interface included in the backup peer that can back up each other, wherein the local attribute is used to pre-configure a specific interface as the backup peer where it is located active interface or standby interface in the body.

由上述本发明提供的技术方案可以看出,本发明实施例提供的技术方案使得确定所述双机热备份配置信息的处理过程具有配置部署及维护过程简单等优点。It can be seen from the above technical solution provided by the present invention that the technical solution provided by the embodiment of the present invention makes the processing process of determining the configuration information of the dual-system hot backup have the advantages of simple configuration deployment and maintenance process.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For Those of ordinary skill in the art can also obtain other drawings based on these drawings on the premise of not paying creative work.

图1为本发明实施例提供的确定双机热备份配置信息的方法的处理过程示意图;FIG. 1 is a schematic diagram of a processing procedure of a method for determining configuration information of dual-system hot backup provided by an embodiment of the present invention;

图2为本发明实施例的应用环境结构示意图;Fig. 2 is a schematic diagram of the application environment structure of the embodiment of the present invention;

图3为本发明实施例提供的确定双机热备份配置信息的方法的应用实施例处理过程示意图;FIG. 3 is a schematic diagram of the processing process of an application embodiment of a method for determining dual-system hot backup configuration information provided by an embodiment of the present invention;

图4为本发明实施例提供的确定双机热备份配置信息的装置的结构示意图一;FIG. 4 is a schematic structural diagram of a device for determining dual-system hot backup configuration information provided by an embodiment of the present invention;

图5为本发明实施例提供的确定双机热备份配置信息的装置的结构示意图二;FIG. 5 is a schematic structural diagram II of a device for determining configuration information of dual-system hot backup provided by an embodiment of the present invention;

图6为本发明实施例提供的网络设备的结构示意图。FIG. 6 is a schematic structural diagram of a network device provided by an embodiment of the present invention.

具体实施方式detailed description

下面结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明的保护范围。The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

本发明实施例提供的一种确定双机热备份配置信息的方法,如图1所示,具体可以包括以下步骤:A method for determining configuration information of dual-machine hot backup provided by an embodiment of the present invention, as shown in FIG. 1 , may specifically include the following steps:

步骤11,作为管理主设备的网络设备向作为管理从设备的网络设备发起链路层连通性检测;Step 11, the network device as the management master device initiates link layer connectivity detection to the network device as the management slave device;

其中,相应的网络设备可以但不限于包括:宽带接入服务器等;Among them, the corresponding network equipment may include, but is not limited to: a broadband access server, etc.;

相应的发起连通性检测的触发方式具体可以但不限于包括以下一种或多种:The corresponding triggering methods for initiating connectivity detection may include, but are not limited to, one or more of the following:

方式一:管理主设备根据网络设备的接口的外层虚拟局域网配置主动发起所述链路层连通性检测;Mode 1: The management master device actively initiates the link layer connectivity detection according to the outer virtual local area network configuration of the interface of the network device;

方式二:当管理主设备收到虚拟局域网的非单播接入报文时,若该虚拟局域网尚未建立所述备份对等体,则发起所述链路层连通性检测;所述非单播接入报文可以为广播报文或组播报文,所述广播报文或组播报文为二层广播域的网络设备(如管理主设备和管理从设备)均可以收到的报文;Mode 2: When the master management device receives the non-unicast access message of the virtual local area network, if the virtual local area network has not established the backup peer, it initiates the link layer connectivity detection; the non-unicast The access message can be a broadcast message or a multicast message, and the broadcast message or multicast message is a message that can be received by network devices in the Layer 2 broadcast domain (such as the management master device and the management slave device) ;

其中,在上述描述中,相应的管理主设备为根据预定的方式在所述能够互相备份的两个网络设备中选择确定的一个网络设备,且另一个网络设备可以称为管理从设备;Wherein, in the above description, the corresponding management master device is a network device selected and determined according to a predetermined method among the two network devices capable of mutual backup, and the other network device may be called a management slave device;

举例来说,相应的链路层连通性检测过程可以包括:通过LLDP(Link LayerDiscovery Protocol,链路层发现协议)报文进行连通性检测,或者,通过在同一个二层(即链路层)广播区域内发送广播报文进行连通性检测;以通过所述广播报文进行连通性检测为例,相应的连通性检测过程可以包括:管理主设备发送广播报文(如私有格式的广播报文),管理从设备接收到该广播报文后则通知所述管理主设备(通知中包含接收到该广播报文的接口的标识,如接口号等),所述管理主设备根据收到的通知判断管理主设备与管理从设备之间的接口是否连通,从而确定管理主设备与管理从设备之间接口的链路层连通情况;For example, the corresponding link layer connectivity detection process may include: performing connectivity detection through LLDP (Link Layer Discovery Protocol, Link Layer Discovery Protocol) packets, or through Send a broadcast message in the broadcast area to perform connectivity detection; taking the connectivity detection through the broadcast message as an example, the corresponding connectivity detection process may include: the management master device sends a broadcast message (such as a broadcast message in a private format) ), after the management slave device receives the broadcast message, it will notify the management master device (the notification includes the identifier of the interface that received the broadcast message, such as the interface number, etc.), and the management master device will Judging whether the interface between the management master device and the management slave device is connected, so as to determine the link layer connectivity of the interface between the management master device and the management slave device;

步骤12,根据所述链路层连通性检测的结果建立备份对等体,所述备份对等体包括可以互相备份的接口,即主用接口和备用接口;Step 12, establishing a backup peer according to the result of the link layer connectivity detection, the backup peer includes interfaces that can back up each other, that is, a main interface and a backup interface;

根据所述链路层连通性检测的结果建立备份对等体的处理步骤具体可以包括:所述管理主设备根据接收到的所述管理从设备发送来的通知,若发现管理主设备上的A接口与管理从设备上的A’接口之间能够传递上述广播报文,即A接口与A’接口之间连通,则建立包含A接口与A’接口的备份对等体。The processing step of establishing a backup peer according to the result of the link layer connectivity detection may specifically include: the management master device, according to the received notification sent by the management slave device, if A on the management master device is found The above-mentioned broadcast message can be transmitted between the interface and the A' interface on the management slave device, that is, the A interface and the A' interface are connected, and a backup peer including the A interface and the A' interface is established.

进一步地,在该步骤中,当管理主设备建立所述备份对等体后,管理主设备还可以根据所述备份对等体中的接口的本地属性、所述备份对等体中的接口的速率匹配、上下行链路流量均衡度、地址池均衡度或虚拟局域网数量均衡度中的一项或多项确定所述备份对等体中的主用接口和备用接口,其中,所述本地属性用于预先配置指定某接口为其所在的备份对等体中的主用接口,例如,若希望某接口为主用接口,则可以通过为配置该接口的本地属性的方式表示该接口需要作为备份对等体中的主用接口,即通过接口的本地属性的配置可以人工干预备份对等体的主用接口的选择;或者,也可以通过所述接口的本地属性人工干预备份对等体中的备用接口的选择,处理方式与人工干预备份对等体中的主用接口的选择方式类似,即预先配置指定某接口为其所在的备份对等体中的备用接口;Further, in this step, after the master management device establishes the backup peer, the master management device may also according to the local attribute of the interface in the backup peer, the One or more of rate matching, uplink and downlink traffic balance, address pool balance, or virtual local area network number balance determines the active interface and standby interface in the backup peer, wherein the local attribute It is used to pre-configure and specify an interface as the active interface in the backup peer where it is located. For example, if you want an interface to be the active interface, you can indicate that the interface needs to be used as a backup by configuring the local attribute of the interface for The active interface in the peer, that is, the selection of the active interface of the backup peer can be manually intervened through the configuration of the local attribute of the interface; or, the local attribute of the interface can also be manually intervened in the backup peer. The selection of the standby interface is similar to the selection of the active interface in the backup peer by manual intervention, that is, the pre-configuration designates an interface as the standby interface in the backup peer where it is located;

步骤13,所述管理主设备将所述备份对等体包括的所述主用接口和备用接口的信息通知所述管理从设备;Step 13, the management master device notifies the management slave device of the information of the master interface and the backup interface included in the backup peer;

具体地,所述主用接口和备用接口的信息可以但不限于包括接口号和接口的主备状态等信息。Specifically, the information of the active interface and the standby interface may include, but is not limited to, information such as an interface number and an active/standby state of the interface.

假设所述备份对等体是在管理主设备上连接下层网络设备的接口以及管理从设备上连接下层网络设备的接口之间建立,则通过上述方式建立了双机热备份配置信息后,当备份对等体中正处于工作状态的主用接口发生故障时,则可以由备用接口所在的网络设备通知下层网络设备将业务流导向所述备份对等体中的所述备用接口,相应的下层网络设备可以但不限于包括:下层交换设备,如交换机等;Assuming that the backup peer is established between the interface connected to the lower-layer network device on the management master device and the interface connected to the lower-layer network device on the management slave device, after the dual-machine hot backup configuration information is established in the above-mentioned way, when the backup When the active interface in the working state of the peer fails, the network device where the backup interface is located can notify the lower-layer network device to direct the service flow to the backup interface in the backup peer, and the corresponding lower-layer network device It can include but is not limited to: lower layer switching equipment, such as switches, etc.;

具体地,由备用接口所在的网络设备通知下层网络设备将业务流导向所述备份对等体中的所述备用接口的过程中,具体可以由备份对等体中的主用接口向下层网络设备发送Gratuitous ARP(Gratuitous Address Resolution Protocol,免费地址解析协议)报文,以通知下层网络设备将业务流导向所述接口备份对等体中的备用接口。Specifically, during the process in which the network device where the backup interface is located notifies the lower-layer network device to direct the service flow to the backup interface in the backup peer, specifically, the active interface in the backup peer may send the service flow to the lower-layer network device. Sending a Gratuitous ARP (Gratuitous Address Resolution Protocol, free address resolution protocol) message to notify the lower layer network device to direct the service flow to the standby interface in the interface backup peer.

本发明实施例中,还可以在所述两个网络设备(即管理主设备和管理从设备)之间建立控制连接,如TCP(Transmission Control Protocol,传输控制协议)连接等,并通过建立的所述控制连接在所述管理主设备和管理从设备之间备份所述下层网络设备下连接的用户接入网络所需要的全局信息,如用户信息等;也可以通过该控制连接在管理主设备和管理从设备之间传递所述接口的本地属性等信息。进一步地,为了保证相应的全局信息的可靠备份,还可以在一个所述备份对等体包含的主用接口和备用接口之间建立备份控制连接,用于作为所述两个网络设备之间建立的所述控制连接的备份连接,即当建立的控制连接出现故障时可以通过该备份控制连接进行全局信息的备份,以提高全局信息备份的可靠性。In the embodiment of the present invention, a control connection, such as a TCP (Transmission Control Protocol, transmission control protocol) connection, etc., can also be established between the two network devices (that is, the management master device and the management slave device), and through the established The control connection backs up the global information required by the users connected under the lower network device to access the network between the management master device and the management slave device, such as user information; The management transfers information such as the local attribute of the interface between the slave devices. Further, in order to ensure the reliable backup of the corresponding global information, a backup control connection can also be established between the active interface and the backup interface contained in one of the backup peers, which is used as the connection between the two network devices. The backup connection of the control connection, that is, when the established control connection fails, the global information can be backed up through the backup control connection, so as to improve the reliability of the global information backup.

本发明实施例中,若所述能够互相备份的两个网络设备中的一个网络设备无法正常工作,则可以将所述能够互相备份的两个网络设备中的另一个网络设备上的所有备用接口升级为主用接口,并通知下层网络设备进行业务流向的切换。In the embodiment of the present invention, if one of the two network devices that can back up each other fails to work normally, all the backup interfaces on the other network device of the two network devices that can back up each other can be Upgrade to the active interface, and notify the lower-layer network equipment to switch the service flow direction.

通过上述本发明实施例可以看出,由于本发明实施例中是通过网络自动化技术来实现保护链路的自动发现和保护倒换(即通过连通性检测技术的检测结果建立所述备份对等体,以进行相应的双机热备份处理),且相应的建立所述备份对等体的过程可以基于VLAN 属性自动实现,使得建立所述备份对等体的过程能够很好地适应已经规划布置完成的 VLAN,而不需要人工统一规划VLAN来适应所需要建立的备份对等体,进而也不需要因人工 统一规划VLAN所导致的调整下层交换机配置的操作。因此,相应的实现双机热备份的过程中需要的配置命令数量较少且配置操作过程简单,极大降低了配置和维护的复杂性,提高了维护效率。It can be seen from the above-mentioned embodiments of the present invention that in the embodiments of the present invention, the automatic discovery and protection switching of the protection link are realized through the network automation technology (that is, the backup peer is established through the detection result of the connectivity detection technology, to carry out corresponding dual-machine hot backup processing) , and the corresponding process of establishing the backup peer can be automatically realized based on the VLAN attribute, so that the process of establishing the backup peer can well adapt to the already planned and arranged It does not need to manually plan VLANs to adapt to the backup peers that need to be established, and there is no need to adjust the configuration of lower-layer switches caused by manually planning VLANs. Therefore , correspondingly, the number of configuration commands required in the process of realizing dual-system hot backup is relatively small and the configuration operation process is simple, which greatly reduces the complexity of configuration and maintenance, and improves maintenance efficiency.

下面将结合附图对本发明实施例提供的实现双机热备的技术方案作进一步地描述。The technical solution for realizing dual-device hot backup provided by the embodiment of the present invention will be further described below in conjunction with the accompanying drawings.

如图2所示,假设备份组包含网络设备A和网络设备B,网络设备A和B可以分别为两个BRAS,网络设备A上有两个BAS(宽带接入服务,Broadband Access Service)接口,分别是BAS接口1和BAS接口2,BAS接口1连接下层网络设备C,BAS接口2连接下层网络设备D;网络设备B有两个BAS接口,分别是BAS接口3和BAS接口4,BAS接口3连接下层网络设备C,BAS接口4连接下层网络设备D。结合图2所示的备份系统框架,本发明实施例提供的实现双机热备的处理方案的具体实现过程如图3所示,以自动完成配置网络设备A上的BAS接口与网络设备B上的BAS接口间的主备关系以及相应的保护倒换,具体可以包括以下步骤:As shown in Figure 2, assume that the backup group includes network equipment A and network equipment B, network equipment A and B can be two BRAS respectively, and there are two BAS (Broadband Access Service) interfaces on network equipment A, They are BAS interface 1 and BAS interface 2 respectively, BAS interface 1 is connected to lower-layer network device C, and BAS interface 2 is connected to lower-layer network device D; network device B has two BAS interfaces, namely BAS interface 3 and BAS interface 4, and BAS interface 3 Connect to lower-layer network device C, and BAS interface 4 to connect to lower-layer network device D. In conjunction with the backup system framework shown in Figure 2, the specific implementation process of the processing scheme for realizing dual-machine hot backup provided by the embodiment of the present invention is shown in Figure 3, to automatically complete the configuration of the BAS interface on the network device A and the network device B. The active-standby relationship between the BAS interfaces and the corresponding protection switching, which may specifically include the following steps:

步骤31,建立控制连接,选取管理主设备和管理从设备;Step 31, establishing a control connection, selecting a management master device and a management slave device;

具体地,可以在备份组的两个peer(即网络设备)之间建立TCP连接,并根据优先级等策略选择其中一个peer为管理主设备,另一个为管理从设备,这里的主从概念只是管理意义上的主从,而不是接口的主从;Specifically, a TCP connection can be established between two peers (network devices) in the backup group, and one of the peers can be selected as the management master device and the other as the management slave device according to policies such as priority. The master-slave concept here is only Master-slave in the sense of management, not master-slave of interface;

相应的备份组包含能够互相备份的两个网络设备,即两个peer。在本实施例中,假设指定网络设备A为管理主设备,网络设备B为管理从设备。The corresponding backup group includes two network devices that can back up each other, that is, two peers. In this embodiment, it is assumed that network device A is designated as the management master device, and network device B is designated as the management slave device.

步骤32,配置BAS接口的VLAN属性及local(本地)属性;Step 32, configuring VLAN attributes and local (local) attributes of the BAS interface;

具体地,BAS接口的VLAN属性及local属性用于作为建立所述备份对等体的依据,其中,BAS接口的VLAN属性用于作为建立所述备份对等体的依据,BAS接口的local属性用于作为确定所述备份对等体中的主用接口和备用接口的依据。Specifically, the VLAN attribute and the local attribute of the BAS interface are used as the basis for establishing the backup peer, wherein the VLAN attribute of the BAS interface is used as the basis for establishing the backup peer, and the local attribute of the BAS interface is used as the basis for establishing the backup peer. as the basis for determining the active interface and the standby interface in the backup peer.

例如,若要将BAS接口1和BAS接口3加入到备份对等体1中,将BAS接口2和BAS接口4加入到备份对等体2中,并且将BAS1设置为备份对等体1中的主用端口,将BAS4设置为备份对等体2中的主用端口,则可以将BAS接口1和BAS接口3的VLAN属性的值设置为1,将BAS接口2和BAS接口4的VLAN属性的值设置为2,配置BAS接口1和BAS接口4的local属性的值为1(这里假设local属性的值为1表示设置为local,为0表示没有设置为local),配置BAS接口2和BAS接口3的local属性的值为0。For example, to add BAS interface 1 and BAS interface 3 to backup peer 1, add BAS interface 2 and BAS interface 4 to backup peer 2, and set BAS1 as the If you set BAS4 as the active port of backup peer 2, you can set the value of the VLAN attribute of BAS interface 1 and BAS interface 3 to 1, and set the value of the VLAN attribute of BAS interface 2 and BAS interface 4 to Set the value to 2, configure the value of the local attribute of BAS interface 1 and BAS interface 4 to 1 (here assume that the value of the local attribute is 1, which means it is set to local, and 0 means it is not set to local), and configure BAS interface 2 and BAS interface The value of the local attribute of 3 is 0.

通过该步骤可以根据拓扑结构需要为本地优先接入的VLAN指定local属性,以指定某接口作为备份对等体中的主用接口,基于该local属性可以控制下层交换机尽量同侧接入,即对于一对连通的备份对等体(即备份组包含的两个网络设备的BAS的接口)之间优先选择指定了所述local属性的接口为主用接口,以减少U型组网等情况下交换机之间的穿越流量。Through this step, the local attribute can be specified for the VLAN with local priority according to the topology structure, so as to designate a certain interface as the active interface in the backup peer. Between a pair of connected backup peers (that is, the BAS interfaces of the two network devices included in the backup group), the interface specified with the local attribute is preferentially selected as the active interface to reduce the number of switches in U-shaped networking. traffic between them.

步骤33,管理主设备发起连通性检测,以建立备份对等体;Step 33, the management master device initiates connectivity detection to establish a backup peer;

在该步骤中,具体可以通过静态连通性检测的方式建立备份对等体,也可以通过动态连通性检测的方式建立备份对等体,下面将分别进行说明;In this step, specifically, a backup peer can be established through static connectivity detection, or a backup peer can be established through dynamic connectivity detection, which will be described separately below;

(1)静态连通性检测的方式建立备份对等体(1) Establish a backup peer by means of static connectivity detection

所述管理主设备根据步骤32中配置的BAS接口的VLAN属性的值主动向管理从设备发起连通性检测(即根据VLAN配置仅在同一VLAN内发起接口之间的连通性检测),以检测相应的所述管理主设备的BAS接口与所述管理从设备的BAS接口之间的连通性,并根据检测结果建立备份对等体并通告管理从设备,所述备份对等体包含可以互相备份的接口及VLAN信息,例如可以为“port(接口)+vlan”对。例如,网络设备A向网络设备B发起连通性检测,具体可以但不限于在连通性检测报文中携带BAS接口1和VLAN1的信息,获得网络设备B的响应,得知网络设备B的BAS接口3也在VLAN1中,从而建立备份对等体1,所述备份对等体1中包括BAS接口1和BAS接口3。之后,网络设备A再次向网络设备B发起连通性检测,在连通性检测报文中携带BAS接口2和VLAN2的信息,获得网络设备B的响应,得知网络设备B的BAS接口4也在VLAN2中,从而建立备份对等体2,所述备份对等体2中包括BAS接口2和BAS接口4。The management master device actively initiates connectivity detection to the management slave device according to the value of the VLAN attribute of the BAS interface configured in step 32 (that is, only initiates connectivity detection between interfaces in the same VLAN according to the VLAN configuration) to detect the corresponding The connectivity between the BAS interface of the management master device and the BAS interface of the management slave device, and establish a backup peer according to the detection result and notify the management slave device, the backup peer includes mutual backup Interface and VLAN information, for example, may be a pair of "port (interface) + vlan". For example, network device A initiates a connectivity detection to network device B. Specifically, it may, but not limited to, carry the information of BAS interface 1 and VLAN1 in the connectivity detection message, obtain the response of network device B, and know the BAS interface of network device B. 3 is also in VLAN1, so that a backup peer 1 is established, and the backup peer 1 includes BAS interface 1 and BAS interface 3. Afterwards, network device A initiates a connectivity test to network device B again, carries the information of BAS interface 2 and VLAN2 in the connectivity test message, obtains a response from network device B, and learns that BAS interface 4 of network device B is also in VLAN2 , so as to establish a backup peer 2, and the backup peer 2 includes a BAS interface 2 and a BAS interface 4.

管理主设备还根据备份对等体中的接口的local属性、接口速率匹配、上下行链路流量均衡度、地址池均衡度和VLAN数量均衡度等一项或多项策略生成备份对等体的主备关系(即确定相应的主用接口和备用接口)并通告管理从设备。例如,当确定主用接口和备用接口的策略被设置为需要考虑接口的local属性时,可以根据上述步骤32中配置了的各BAS接口的local属性来确定备份对等体的主备关系。The master management device also generates the backup peer’s ID according to one or more strategies such as the local attribute of the interface in the backup peer, interface rate matching, uplink and downlink traffic balance, address pool balance, and VLAN quantity balance. Active-standby relationship (that is, determine the corresponding active interface and standby interface) and notify the management slave device. For example, when the policy for determining the active interface and the standby interface is set to consider the local attribute of the interface, the active-standby relationship of the backup peer can be determined according to the local attribute of each BAS interface configured in step 32 above.

可选地,在管理主从设备之间还可以选择其中一个备份对等体创建备用控制连接,以作为步骤31建立的TCP连接的备份链路;Optionally, one of the backup peers can also be selected between the management master and slave devices to create a backup control connection as the backup link of the TCP connection established in step 31;

(2)动态连通性检测的方式建立备份对等体(2) Establish a backup peer by means of dynamic connectivity detection

如果BAS接口VLAN配置(即VLAN属性)为anyother(即若不清楚下层交换机的配置则使用该命令,表示任何VLAN或QinQ都可接入),则需要通过非单播接入报文动态触发建立备份对等体,该非单播接入报文可以为用户的接入协议相关报文,如ARP报文或DHCP(动态主机配置协议,Dynamic Host Configuration Protocol)报文等等;相应的建立备份对等体的过程可以包括:If the BAS interface VLAN configuration (that is, the VLAN attribute) is anyother (that is, if you do not know the configuration of the lower-layer switch, use this command, which means that any VLAN or QinQ can be accessed), you need to dynamically trigger the establishment of the BAS interface through non-unicast access packets. Backup peer, the non-unicast access message can be the user's access protocol related message, such as ARP message or DHCP (Dynamic Host Configuration Protocol, Dynamic Host Configuration Protocol) message, etc.; correspondingly establish a backup The peer process can include:

当管理主设备首次收到某VLAN的非单播接入报文时,则判断该VLAN是否建立备份对等体,若该VLAN还没有建立备份对等体,则发起连通性检测并建立备份对等体,相应的连通性检测过程中也可以通过与管理从设备检测报文配合实现,或者,也可以通过专门发起的检测报文实现;管理主设备还根据备份对等体物理接口上的VLAN的local属性、接口速率匹配、上下行链路流量均衡度、地址池均衡度和VLAN数量均衡度等一项或多项策略生成备份对等体的主备关系并通告管理从设备;When the master management device receives a non-unicast access packet of a VLAN for the first time, it will judge whether the VLAN has established a backup peer. If the VLAN has not established a backup peer, it will initiate a connectivity check and establish a backup peer. peers, the corresponding connectivity detection process can also be realized by cooperating with the detection message of the management slave device, or it can also be realized through the detection message specially initiated; One or more strategies, such as local attribute, interface rate matching, uplink and downlink traffic balance, address pool balance, and VLAN number balance, generate the master-backup relationship of the backup peer and notify the management slave device;

进一步地,当管理从设备首次收到某VLAN的非单播接入报文时,如果该VLAN还没有建立备份对等体,则在该接收到非单播接入报文的接口上发起连接通性检测,如果检测结果为连通,则表明管理主设备可以完成相应的连通性检测工作,此时可以丢弃该非单播接入报文;如果连通性检测失败,则该管理从设备对该VLAN做接入处理并通告管理主设备。Further, when the management slave device receives a non-unicast access message of a certain VLAN for the first time, if the VLAN has not established a backup peer, a connection is initiated on the interface that received the non-unicast access message Connectivity detection, if the detection result is connected, it indicates that the management master device can complete the corresponding connectivity detection work, at this time, the non-unicast access packet can be discarded; if the connectivity detection fails, the management slave device VLAN does access processing and notifies the management master device.

另外,本发明实施例中,由于网络的拓扑结构和VLAN配置可能会发生变化,故所述管理主设备还可以根据预定的时间间隔,周期性地针对已经建立的所述备份对等体发起所述链路层连通性检测,当确定所述已经建立的备份对等体失效,则针对失效的备份对等体的接口重新发起所述链路层连通性检测,并为所述失效的备份对等体的接口建立新的备份对等体,其中,所述备份对等体失效是指所述连通性检测的结果为所述备份对等体包括的主用接口和备用接口之间不连通。即所述管理主设备还可以周期性进行连通性检测以适应下层交换网络的拓扑变化,当发现备份对等体无效(如三个检测周期无效)后,对原备份对等体包含的接口开始新的连通性检测过程,当检测到新的连通性后(即检测到新的接口与所述原备份对等体包含的接口连通),则更新所述原有备份对等体包含的接口信息(即主用接口和备用接口信息);其中,检测周期的长短可以根据网络的拓扑结构和VLAN配置的变化间隔时间确定,例如,可以设置为60秒等)。In addition, in the embodiment of the present invention, since the network topology and VLAN configuration may change, the management master device may also periodically initiate the The above link layer connectivity detection, when it is determined that the established backup peer fails, then re-initiate the link layer connectivity detection for the interface of the failed backup peer, and provide a backup for the failed backup peer The interface of the peer establishes a new backup peer, wherein the failure of the backup peer means that the result of the connectivity detection is that there is no connectivity between the active interface and the backup interface included in the backup peer. That is to say, the management master device can also perform connectivity detection periodically to adapt to the topology changes of the lower-layer switching network. When it is found that the backup peer is invalid (for example, three detection cycles are invalid), the interface contained in the original backup peer starts New connectivity detection process, when new connectivity is detected (that is, it is detected that the new interface is connected to the interface contained in the original backup peer), update the interface information contained in the original backup peer (that is, information about the active interface and the standby interface); wherein, the length of the detection cycle can be determined according to the topology of the network and the change interval of the VLAN configuration, for example, it can be set to 60 seconds, etc.).

步骤34,基于建立的备份对等体进行相应的主用接口和备用接口的选择及切换;Step 34, select and switch the corresponding active interface and standby interface based on the established backup peer;

在确定所述备份对等体包含的主用接口及备用接口后,所述主用接口及备用接口还可以根据事件的触发而发生改变,即原主用接口可能变成备用接口,备用接口也可能变成主用接口。具体地,首先,管理从设备根据事件触发上报等途径收集本机的接口状态以及通过主动周期获取等方式获取外层VLAN粒度的流量统计,并向管理主设备通告;之后,管理主设备可以根据各设备状态、接口状态、上下行链路流量均衡度进行主备选择,若已经建立的备份对等体包含的主用接口及备用接口发生变化,则由新的主用接口发送免费ARP报文通知下层交换机将业务流导向所述新的主用接口(即原备用接口)接口,以进行主用接口及备用接口的切换;需要说明的是,对于已上线的备份对等体是否因为流量不均衡而发起主动主备切换具体可以设计成可选配置(如流量不均衡度超过预定值触发切换,且预定值大小可配置),默认为不切换,从而可以防止流量变化引起主备反复频繁切换;After determining the active interface and the standby interface contained in the backup peer, the active interface and the standby interface can also be changed according to the triggering of the event, that is, the original active interface may become a standby interface, and the standby interface may also be become the primary interface. Specifically, first, the management slave device collects the interface status of the local machine through event-triggered reporting and other means, and obtains traffic statistics at the granularity of the outer VLAN through active periodic acquisition, and notifies the management master device; after that, the management master device can according to The status of each device, interface status, and uplink and downlink traffic balance are selected for master and backup. If the master interface and backup interface contained in the established backup peer change, the new master interface will send free ARP packets. Notify the lower-layer switch to direct the service flow to the new active interface (that is, the original standby interface) to switch between the active interface and the standby interface; Initiating active master-standby switchover due to balance can be specifically designed as an optional configuration (for example, if the traffic imbalance exceeds a predetermined value to trigger the switchover, and the predetermined value is configurable), the default is no switchover, which can prevent traffic changes from causing frequent master-standby switchover ;

进一步地,当设备检测到对端设备DOWN(失效)时,则将发生设备级主备切换,即未失效的设备的所有备用接口升级为主用接口,并发送免费ARP报文通知下层交换机接口将业务流导向未失效的设备中的所述备用接口;之后,当故障设备恢复正常后,两端重新建立连接,重新选择管理主设备和管理从设备并建立相应的备份对等体,同步用户备份数据及用户信息等,以及根据主备选择策略选举主备用接口,选择确定的主用接口发送免费ARP报文通知下层交换机将业务流导向所述选择确定的主用接口。Furthermore, when the device detects that the peer device is DOWN (failed), a device-level active-standby switchover will occur, that is, all the standby interfaces of the unfailed device will be upgraded to active interfaces, and a free ARP message will be sent to notify the lower-layer switch interface Direct the service flow to the backup interface in the device that has not failed; after that, when the faulty device returns to normal, re-establish the connection at both ends, re-select the management master device and the management slave device and establish a corresponding backup peer, and synchronize the user Back up data and user information, etc., and elect the active and standby interfaces according to the active-standby selection strategy, select the determined active interface and send a free ARP message to notify the lower layer switch to direct the service flow to the selected active interface.

在上述针对本发明实施例的描述中,只重点描述了根据拓扑结构的配置自动发现保护链路以及实现主备切换的处理过程,对于切换过程中涉及的用户数据备份以及BRAS地址池分配及路由发布等的备份处理采用现有技术中的处理方式即可,故未做特别说明。In the above description for the embodiments of the present invention, only the process of automatically discovering protection links and realizing active/standby switchover according to the configuration of the topology is emphatically described. For user data backup and BRAS address pool allocation and routing involved in the switchover process The backup processing such as publishing can be performed in a processing manner in the prior art, so no special description is made.

通过上述本发明实施例提供的技术方案可以看出,本发明实施例具有部署简单、备份策略和粒度选择灵活、对已有网络有较强的适应性等优点。而且,利用本发明实施例提供的技术方案来实现相应的双机热备,还可以在不增加建网成本的情况下,极大削减网络运营成本。It can be seen from the above technical solutions provided by the embodiments of the present invention that the embodiments of the present invention have the advantages of simple deployment, flexible selection of backup strategies and granularity, strong adaptability to existing networks, and the like. Moreover, using the technical solutions provided by the embodiments of the present invention to realize corresponding dual-machine hot backup can also greatly reduce network operation costs without increasing network construction costs.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random AccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM), and the like.

本发明实施例还提供了一种确定双机热备份配置信息的装置,所述装置设置于作为管理主设备的网络设备中,如图4所示,所述装置具体可以包括以下单元:The embodiment of the present invention also provides a device for determining the configuration information of dual-system hot backup, the device is set in the network device as the management master device, as shown in Figure 4, the device may specifically include the following units:

连通性检测单元41,用于向作为管理从设备的网络设备发起链路层连通性检测,其中,所述管理主设备和所述管理从设备为能够互相备份的两个网络设备;The connectivity detection unit 41 is configured to initiate a link layer connectivity detection to a network device serving as a management slave device, wherein the management master device and the management slave device are two network devices capable of mutual backup;

备份对等体建立单元42,用于根据所述连通性检测单元41的所述链路层连通性检测的结果建立备份对等体,以及确定所述备份对等体包括的可以互相备份的主用接口和备用接口;A backup peer establishment unit 42, configured to establish a backup peer according to the result of the link layer connectivity detection of the connectivity detection unit 41, and determine that the backup peers include masters that can back up each other. interface and backup interface;

备份对等体信息发送单元43,用于将所述备份对等体建立单元42建立的所述备份对等体包括的所述主用接口和备用接口的信息通知所述管理从设备。The backup peer information sending unit 43 is configured to notify the management slave device of the information about the active interface and the backup interface included in the backup peer established by the backup peer establishment unit 42 .

进一步地,如图5所示,所述连通性检测单元41可以包括静态连通性检测子单元411,用于根据所述管理主设备与下层网络设备连接的接口的外层虚拟局域网配置信息主动发起所述链路层连通性检测。Further, as shown in FIG. 5, the connectivity detection unit 41 may include a static connectivity detection subunit 411, configured to actively initiate The link layer connectivity detection.

可选地,如图5所示,所述连通性检测单元41也可以包括动态连通性检测子单元412,用于当所述管理主设备收到虚拟局域网的非单播接入报文时,若所述虚拟局域网尚未建立所述备份对等体,则发起所述链路层连通性检测。Optionally, as shown in FIG. 5 , the connectivity detection unit 41 may also include a dynamic connectivity detection subunit 412, configured to, when the management master device receives a non-unicast access packet of a virtual local area network, If the virtual local area network has not established the backup peer, initiate the link layer connectivity detection.

如图5所示,本发明实施例提供的所述确定双机热备份配置信息的装置还可以包括连通性监测单元44,用于根据预定的时间间隔,周期性地针对已经建立的所述备份对等体发起所述链路层连通性检测,当确定所述已经建立的备份对等体失效,则针对失效的备份对等体的接口重新发起所述链路层连通性检测,并为失效的备份对等体的接口建立新的备份对等体,其中,所述备份对等体失效是指所述连通性检测的结果为所述备份对等体包括的主用接口和备用接口之间不连通。As shown in Figure 5, the device for determining the configuration information of the dual-system hot backup provided by the embodiment of the present invention may further include a connectivity monitoring unit 44, which is used to periodically target the established backup The peer initiates the link layer connectivity detection, and when it is determined that the established backup peer fails, the link layer connectivity detection is re-initiated for the interface of the failed backup peer, and the failure The interface of the backup peer establishes a new backup peer, wherein the failure of the backup peer means that the result of the connectivity detection is that the backup peer includes a primary interface and a backup interface. Not connected.

在所述确定双机热备份配置信息的装置中,如图5所示,所述备份对等体建立单元42具体可以包括备份对等体确定子单元421和主备选择子单元422,其中:In the device for determining the configuration information of dual-machine hot backup, as shown in FIG. 5 , the backup peer establishment unit 42 may specifically include a backup peer determination subunit 421 and an active/standby selection subunit 422, wherein:

备份对等体确定子单元421,用于根据所述连通性检测单元的所述链路层连通性检测的结果建立备份对等体;A backup peer determination subunit 421, configured to establish a backup peer according to the result of the link layer connectivity detection by the connectivity detection unit;

主备选择子单元422,用于根据所述管理主设备与下层网络设备连接的接口的本地属性、接口速率匹配、上下行链路流量均衡度、地址池均衡度或虚拟局域网数量均衡度中的一项或多项确定所述备份对等体包括的可以互相备份的主用接口和备用接口,其中,所述本地属性用于预先配置指定某接口为其所在的备份对等体中的主用接口,或者,所述本地属性也可以用于预先配置指定某接口为其所在的备份对等体中的备用接口。The active/standby selection subunit 422 is used to select the local attributes, interface rate matching, uplink and downlink traffic balance degree, address pool balance degree or virtual local area network quantity balance degree according to the local attribute of the interface connecting the management master device and the lower layer network device. One or more items determine the active interface and standby interface included in the backup peer that can back up each other, wherein the local attribute is used to pre-configure and designate a certain interface as the active interface of the backup peer where it is located. interface, or, the local attribute may also be used to pre-configure and designate a certain interface as the backup interface in the backup peer where it is located.

本发明实施例提供的上述装置使得确定所述双机热备份配置信息的处理过程具有配置部署简单、备份策略和粒度选择灵活、对已有网络有较强的适应性等优点。而且还可以在不增加建网成本的情况下,极大削减网络运营成本。The above-mentioned device provided by the embodiment of the present invention enables the process of determining the configuration information of the dual-system hot backup to have the advantages of simple configuration and deployment, flexible selection of backup strategies and granularity, strong adaptability to existing networks, and the like. Moreover, the network operation cost can be greatly reduced without increasing the network construction cost.

需要说明的是,上述装置中包含的各个处理单元所实现的功能的具体实现方式在前面的各个实施例中已经有详细描述,故在这里不再赘述。It should be noted that, the specific implementation manners of the functions implemented by each processing unit included in the above apparatus have been described in detail in the foregoing embodiments, so details will not be repeated here.

本发明实施例提供的上述装置具体可以设置于网络设备中,如BAS设备中,以便于所述网络设备作为管理主设备应用时可以完成上述处理功能。具体的,所述网络设备的结构如图6所示,可以包括:存储器61、发送器62和接收器63,以及分别与存储器61、发送器62和接收器63连接的处理器64,且存储器61用于存储一组程序代码,处理器64用于调用存储器61存储的程序执行如下操作:The above-mentioned apparatus provided by the embodiment of the present invention can be specifically set in a network device, such as a BAS device, so that the above-mentioned processing function can be completed when the network device is used as a management master device. Specifically, the structure of the network device is shown in FIG. 6, which may include: a memory 61, a transmitter 62, and a receiver 63, and a processor 64 connected to the memory 61, the transmitter 62, and the receiver 63 respectively, and the memory 61 is used to store a set of program codes, and the processor 64 is used to call the program stored in memory 61 to perform the following operations:

通过发送器62向作为管理从设备的网络设备发起链路层连通性检测,根据接收器63接收到的信息确定所述链路层连通性检测的结果,根据所述链路层连通性检测的结果建立备份对等体,以及确定所述备份对等体包括的可以互相备份的主用接口和备用接口;还用于将所述备份对等体包括的所述主用接口和备用接口的信息通过所述发送器62通知所述管理从设备。The sender 62 initiates link layer connectivity detection to the network device as the management slave device, determines the result of the link layer connectivity detection according to the information received by the receiver 63, and determines the result of the link layer connectivity detection according to the link layer connectivity detection result. As a result, a backup peer is established, and the main interface and the backup interface that can be mutually backed up by the backup peer are determined; and the information of the main interface and the backup interface included by the backup peer is also used The management slave device is notified through the transmitter 62 .

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能单元的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元完成,即将装置的内部结构划分成不同的功能单元,以完成以上描述的全部或者部分功能。上述描述的装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of description, only the division of the above-mentioned functional units is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units according to needs. The internal structure of the device is divided into different functional units to complete all or part of the functions described above. For the specific working process of the devices and units described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not repeated here.

在本申请所提供的几个实施例中,应该理解到,所揭露的系统和方法,可以通过其它的方式实现。例如,以上所描述的系统实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system and method can be implemented in other ways. For example, the system embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or May be integrated into another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of units may be in electrical, mechanical or other forms.

所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware or in the form of software functional units.

以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明披露的技术范围内,可轻易想到的变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应该以权利要求书的保护范围为准。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person familiar with the technical field can easily conceive of changes or changes within the technical scope disclosed in the present invention. Replacement should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be determined by the protection scope of the claims.

Claims (8)

1.一种确定双机热备份配置信息的方法,其特征在于,包括:1. A method for determining configuration information of dual-machine hot backup, characterized in that, comprising: 作为管理主设备的网络设备向作为管理从设备的网络设备发起链路层连通性检测,并根据所述链路层连通性检测的结果建立备份对等体,以及确定所述备份对等体包括的可以互相备份的主用接口和备用接口,其中,所述管理主设备和所述管理从设备为能够互相备份的两个网络设备;The network device as the management master device initiates a link layer connectivity detection to the network device as the management slave device, and establishes a backup peer according to the result of the link layer connectivity detection, and determines that the backup peer includes A master interface and a backup interface that can back up each other, wherein the management master device and the management slave device are two network devices that can back up each other; 所述管理主设备将所述备份对等体包括的所述主用接口和备用接口的信息通知所述管理从设备;The management master device notifies the management slave device of the information of the master interface and the backup interface included in the backup peer; 其中,确定所述备份对等体包括的可以互相备份的主用接口和备用接口的步骤包括:Wherein, the step of determining the active interface and the backup interface included in the backup peer that can back up each other includes: 所述管理主设备根据所述备份对等体中的接口的本地属性、所述备份对等体中的接口的速率匹配、上下行链路流量均衡度、地址池均衡度或虚拟局域网数量均衡度中的一项或多项确定所述备份对等体包括的可以互相备份的主用接口和备用接口,其中,所述本地属性用于预先配置指定某接口为其所在的备份对等体中的主用接口或备用接口。The master management device according to the local attribute of the interface in the backup peer, the rate matching of the interface in the backup peer, the balance degree of uplink and downlink traffic, the balance degree of address pool or the balance degree of virtual local area network One or more of them determine the active interface and backup interface included in the backup peer that can back up each other, wherein the local attribute is used to pre-configure and specify a certain interface as the backup peer in which it is located. Active interface or standby interface. 2.根据权利要求1所述的方法,其特征在于,所述发起链路层连通性检测的步骤包括:2. The method according to claim 1, wherein the step of initiating link layer connectivity detection comprises: 所述管理主设备根据自身与下层网络设备连接的接口的外层虚拟局域网配置信息主动发起所述链路层连通性检测。The master management device actively initiates the link layer connectivity detection according to the outer virtual local area network configuration information of the interface connecting itself to the lower layer network device. 3.根据权利要求1所述的方法,其特征在于,所述发起链路层连通性检测的步骤包括:3. The method according to claim 1, wherein the step of initiating link layer connectivity detection comprises: 当所述管理主设备收到虚拟局域网的非单播接入报文时,若所述虚拟局域网尚未建立所述备份对等体,则发起所述链路层连通性检测。When the master management device receives the non-unicast access message of the virtual local area network, if the virtual local area network has not established the backup peer, it initiates the link layer connectivity detection. 4.根据权利要求1、2或3所述的方法,其特征在于,所述方法还包括:4. according to the method described in claim 1,2 or 3, it is characterized in that, described method also comprises: 所述管理主设备根据预定的时间间隔,周期性地针对已经建立的所述备份对等体发起所述链路层连通性检测,当确定所述已经建立的备份对等体失效,则针对失效的备份对等体的接口重新发起所述链路层连通性检测,并为所述失效的备份对等体的接口建立新的备份对等体,其中,所述备份对等体失效是指所述连通性检测的结果为所述备份对等体包括的主用接口和备用接口之间不连通。The management master device periodically initiates the link layer connectivity detection for the established backup peer according to a predetermined time interval, and when it is determined that the established backup peer fails, it The interface of the backup peer re-initiates the link layer connectivity detection, and establishes a new backup peer for the interface of the failed backup peer, wherein the failure of the backup peer refers to the failure of the backup peer The result of the connectivity detection is that there is no connectivity between the active interface and the standby interface included in the backup peer. 5.一种确定双机热备份配置信息的装置,其特征在于,所述装置设置于作为管理主设备的网络设备中,且所述装置包括:5. A device for determining configuration information of dual-machine hot backup, characterized in that, the device is set in the network device as the management master device, and the device includes: 连通性检测单元,用于向作为管理从设备的网络设备发起链路层连通性检测,其中,所述管理主设备和所述管理从设备为能够互相备份的两个网络设备;A connectivity detection unit, configured to initiate a link layer connectivity detection to a network device serving as a management slave device, wherein the management master device and the management slave device are two network devices that can back up each other; 备份对等体建立单元,用于根据所述连通性检测单元的所述链路层连通性检测的结果建立备份对等体,以及确定所述备份对等体包括的可以互相备份的主用接口和备用接口;A backup peer establishment unit, configured to establish a backup peer according to the result of the link layer connectivity detection of the connectivity detection unit, and determine the active interfaces that can be backed up by each other included in the backup peer and alternate interfaces; 备份对等体信息发送单元,用于将所述备份对等体建立单元建立的所述备份对等体包括的所述主用接口和备用接口的信息通知所述管理从设备;a backup peer information sending unit, configured to notify the management slave device of the information of the active interface and the backup interface included in the backup peer established by the backup peer establishment unit; 其中,所述备份对等体建立单元包括:Wherein, the backup peer establishment unit includes: 备份对等体确定子单元,用于根据所述连通性检测单元的所述链路层连通性检测的结果建立备份对等体;A backup peer determination subunit, configured to establish a backup peer according to the result of the link layer connectivity detection by the connectivity detection unit; 主备选择子单元,用于根据所述备份对等体中的接口的本地属性、所述备份对等体中的接口的速率匹配、上下行链路流量均衡度、地址池均衡度或虚拟局域网数量均衡度中的一项或多项确定所述备份对等体包括的可以互相备份的主用接口和备用接口,其中,所述本地属性用于预先配置指定某接口为其所在的备份对等体中的主用接口或备用接口。The active/standby selection subunit is configured to use the local attribute of the interface in the backup peer, the rate matching of the interface in the backup peer, the balance degree of uplink and downlink traffic, the balance degree of address pool or the virtual local area network One or more items in the quantity balance degree determine the active interface and the backup interface included in the backup peer that can back up each other, wherein the local attribute is used to pre-configure a specific interface as the backup peer where it is located active interface or standby interface in the body. 6.根据权利要求5所述的装置,其特征在于,所述连通性检测单元包括静态连通性检测子单元,用于根据所述管理主设备与下层网络设备连接的接口的外层虚拟局域网配置信息主动发起所述链路层连通性检测。6. The device according to claim 5, wherein the connectivity detection unit comprises a static connectivity detection subunit, configured to configure an outer virtual local area network according to the interface connecting the management master device and the lower-layer network device The information actively initiates the link layer connectivity detection. 7.根据权利要求5所述的装置,其特征在于,所述连通性检测单元包括动态连通性检测子单元,用于当所述管理主设备收到虚拟局域网的非单播接入报文时,若所述虚拟局域网尚未建立所述备份对等体,则发起所述链路层连通性检测。7. The device according to claim 5, wherein the connectivity detection unit comprises a dynamic connectivity detection subunit, configured to receive a non-unicast access packet of a virtual local area network when the main management device receives , if the virtual local area network has not established the backup peer, initiate the link layer connectivity detection. 8.根据权利要求5、6或7所述的装置,其特征在于,所述装置还包括:8. The device according to claim 5, 6 or 7, characterized in that the device further comprises: 连通性监测单元,用于根据预定的时间间隔,周期性地针对已经建立的所述备份对等体发起所述链路层连通性检测,当确定所述已经建立的备份对等体失效,则针对失效的备份对等体的接口重新发起所述链路层连通性检测,并为所述失效的备份对等体的接口建立新的备份对等体,其中,所述备份对等体失效是指所述连通性检测的结果为所述备份对等体包括的主用接口和备用接口之间不连通。The connectivity monitoring unit is configured to periodically initiate the link layer connectivity detection for the established backup peer according to a predetermined time interval, and when it is determined that the established backup peer fails, then Re-initiating the link layer connectivity detection for the interface of the failed backup peer, and establishing a new backup peer for the interface of the failed backup peer, wherein the failure of the backup peer is It means that the result of the connectivity detection is that there is no communication between the active interface and the standby interface included in the backup peer.
CN201310142917.0A 2013-04-23 2013-04-23 A kind of method and device for determining two-node cluster hot backup configuration information Active CN104125079B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310142917.0A CN104125079B (en) 2013-04-23 2013-04-23 A kind of method and device for determining two-node cluster hot backup configuration information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310142917.0A CN104125079B (en) 2013-04-23 2013-04-23 A kind of method and device for determining two-node cluster hot backup configuration information

Publications (2)

Publication Number Publication Date
CN104125079A CN104125079A (en) 2014-10-29
CN104125079B true CN104125079B (en) 2017-11-17

Family

ID=51770351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310142917.0A Active CN104125079B (en) 2013-04-23 2013-04-23 A kind of method and device for determining two-node cluster hot backup configuration information

Country Status (1)

Country Link
CN (1) CN104125079B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105790825B (en) * 2014-12-25 2020-08-14 中兴通讯股份有限公司 Method and device for hot backup of controller in distributed protection
CN109873761A (en) * 2017-12-04 2019-06-11 中兴通讯股份有限公司 A method and device for switching active and standby devices in a hot standby environment
CN108319679B (en) * 2018-01-30 2021-03-23 杭州迪普科技股份有限公司 Method and device for generating primary key
CN114070781B (en) * 2020-08-05 2023-08-08 北京威努特技术有限公司 Data communication method, device, system and computer equipment
CN114531722B (en) * 2022-03-01 2024-05-03 杭州老板电器股份有限公司 Networking method and device for equipment in local network and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN101197733A (en) * 2007-12-18 2008-06-11 中兴通讯股份有限公司 Automatic detection method and device for network connectivity
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009105690A (en) * 2007-10-24 2009-05-14 Alaxala Networks Corp Layer 2 redundancy protocol interconnection device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079795A (en) * 2007-07-27 2007-11-28 杭州华三通信技术有限公司 Data forwarding method and forwarding device
CN101197733A (en) * 2007-12-18 2008-06-11 中兴通讯股份有限公司 Automatic detection method and device for network connectivity
CN101695043A (en) * 2009-10-15 2010-04-14 中兴通讯股份有限公司 Method for multiplexing hot backup port and network system

Also Published As

Publication number Publication date
CN104125079A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
CN102439903B (en) Method, device and system for realizing disaster recovery and backup
CN105453487B (en) Method, apparatus, and medium for dual-homing deployment in a data center environment
CN106685818B (en) Message feedback method and device
CN100373799C (en) A method for hot backup of broadband access server
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
EP2985952B1 (en) Method and device for protecting service reliability, and network virtualization system
CN106605387B (en) Node, system and method for WAN control failover proxy for vHGW
WO2018054156A1 (en) Vxlan message forwarding method, device and system
CN101860492A (en) Method, device and system for fast switching
JP2004032758A (en) Router interface backup execution method by VRRP (VirtualRouterRedundancyProtocol)
KR101691759B1 (en) Virtual chassis system control protocols
EP2911346B1 (en) Method and network device for establishing virtual cluster
CN101060533B (en) A method, system and device for improving reliability of VGMP protocol
WO2013113228A1 (en) Method, routing device and system for redundant backup of network device
CN105024836B (en) A switching method, device and SR of an active service router SR and a standby SR
WO2012048585A1 (en) Switching method and router
CN103119400B (en) For the method and apparatus of the state synchronized of serial data link session connected across IP network
CN105162704A (en) Method and device for multicast replication in Overlay network
CN104125079B (en) A kind of method and device for determining two-node cluster hot backup configuration information
CN101159608A (en) A network management system and its normal communication method
CN102142978B (en) Data backup transmission processing method, device and system
CN103546308A (en) Distribution method, device and system for wireless controller networking
CN102187627B (en) Method and device for load sharing, broadband access server system
JP5974911B2 (en) Communication system and network relay device
JP2013172393A (en) Edge device redundant system, switching controller and edge device redundancy method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant