WO2019052069A1 - Master/standby contention method and device, and application equipment - Google Patents

Master/standby contention method and device, and application equipment Download PDF

Info

Publication number
WO2019052069A1
WO2019052069A1 PCT/CN2017/117119 CN2017117119W WO2019052069A1 WO 2019052069 A1 WO2019052069 A1 WO 2019052069A1 CN 2017117119 W CN2017117119 W CN 2017117119W WO 2019052069 A1 WO2019052069 A1 WO 2019052069A1
Authority
WO
WIPO (PCT)
Prior art keywords
board
main control
boards
active
role
Prior art date
Application number
PCT/CN2017/117119
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 WO2019052069A1 publication Critical patent/WO2019052069A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/4013Management of data rate on the bus
    • H04L12/40136Nodes adapting their rate to the physical link properties

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Structure Of Telephone Exchanges (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present application provides a master/standby contention method and device, and application equipment. The method comprises: determining a priority rule according to slot information of a board, function type of the board, the slot information of other online boards, and the function types of the other online boards, and determining a detection startup time delay of the board according to the priority rule; detecting, in accordance with the time delay, whether primary master-control service information exists; if not, determining that the role of the board is a primary master-control service role, and sending the primary master-control service information; and if yes, connecting the primary master-control service information, and determining that the role of the board is a standby master-control service role. By means of the present application, a dual-master-control scheme is upgraded into a multi-master-control scheme, so that system reliability is improved, and the dependence degree of frame-type equipment on the dual-master-control scheme is reduced.

Description

一种主备竞争方法、装置及应用设备Active and standby competition method, device and application device 技术领域Technical field
本申请涉及通信技术领域,具体涉及一种主备竞争方法、装置及应用设备。The present application relates to the field of communications technologies, and in particular, to an active/standby competition method, apparatus, and application device.
背景技术Background technique
现有的通信设备中,特别是机框式通信设备中,为了系统的稳定运行,往往需要有两块主控板卡承担设备管理工作,一块主控板卡承担设备的主用主控角色,另一块主控板卡承担设备的备用主控角色,当主用主控板卡发生故障,无法承担设备主用主控角色时,由备用主控板卡接替主用主控板卡的角色,保证设备的正常运行,保证通信设备业务处理工作的正常运行,由此减少设备故障对用户业务的影响。以一款机框式的通信设备为例,参考图1,该通信设备1.1具有两个主控板卡1.2、1.3,两个交换板卡1.4、1.5以及N个业务板卡1.6,1.7,...,1.n。在通信设备1.1中,通过板间通道,如中板或插接件或背板,两个主控板卡1.2、1.3分别与两个交换板卡1.4、1.5和N个业务板卡1.6,1.7,...,1.n连接。两个主控板卡1.2、1.3之间通过通信设备1.1中的主备竞争机制,将各自的板卡角色确定为主用主控板和备用主控板,并由选定的主用主控板来实现整个机框式通信设备1.1的整体管理控制。In the existing communication equipment, especially the frame type communication equipment, in order to stably operate the system, it is often necessary to have two main control boards to undertake equipment management work, and one main control board bears the main main control role of the equipment. The other main control board assumes the standby main control role of the device. When the main control board fails and cannot assume the main role of the main control, the standby main control board takes over the role of the main control board to ensure the role. The normal operation of the device ensures the normal operation of the communication device service processing, thereby reducing the impact of device failure on the user service. Taking a frame type communication device as an example, referring to FIG. 1, the communication device 1.1 has two main control boards 1.2, 1.3, two switch boards 1.4, 1.5, and N service boards 1.6, 1.7, . .., 1.n. In the communication device 1.1, through the inter-board channel, such as the midplane or the connector or the backplane, the two main control boards 1.2, 1.3 and the two switch boards 1.4, 1.5 and N service boards 1.6, 1.7 ,..., 1.n connection. The two main control boards 1.2 and 1.3 are determined by the active/standby competition mechanism in the communication device 1.1, and the respective board roles are determined as the main control board and the standby main control board, and the selected main control is selected. The board realizes the overall management control of the entire chassis-type communication device 1.1.
在现有技术中,结合参考图1、2,应用于常见的机框式通信设备1.1的主备竞争机制的基本流程包括系统启动阶段的主备竞争流程,其具体步骤包括In the prior art, with reference to FIG. 1 and FIG. 2, the basic process of the active/standby competition mechanism applied to the common chassis-type communication device 1.1 includes the active-standby competition process in the system startup phase, and the specific steps include
步骤201,两个主控板卡1.2、1.3之间相互建立通信连接; Step 201, establishing communication connections between the two main control boards 1.2 and 1.3;
步骤202,两个主控板卡1.2、1.3分别向对方发送携带自身板卡信息的主备竞争消息;Step 202: The two main control boards 1.2 and 1.3 respectively send an active/standby competition message carrying the information of the own board to the other party;
步骤203,两个主控板卡1.2、1.3分别接收到对方的竞争消息;Step 203: The two main control boards 1.2 and 1.3 respectively receive the contention message of the other party;
步骤204,两个主控板卡1.2、1.3接收到对方的竞争消息后,根据对方的主备竞争消息,初步确定自身的板卡角色为主用主控板卡或备用主控板卡;Step 204: After receiving the contention message of the other party, the two main control boards 1.2 and 1.3 initially determine the role of the board as the main control board or the standby main control board according to the active/standby competition message of the other party;
步骤205,两个主控板卡1.2、1.3分别向对方发送携带自身板卡角色的应答消息;Step 205: The two main control boards 1.2 and 1.3 respectively send a response message carrying the role of the own board to the other party;
步骤206,两个主控板卡1.2、1.3分别收到对方的应答消息;Step 206: The two main control boards 1.2 and 1.3 respectively receive the response message of the other party;
步骤207,两个主控板卡1.2、1.3分别判断对方的板卡角色与自身的板卡角色是否冲突,如果有冲突,则重新竞争,如果没有冲突,则主备竞争完成,最终选出的承担主用主控角色的主控板卡1.2或1.3实现对机框式通信设备1.1中的其他板卡1.2、1.3、1.4、1.5、1.6、1.7、...、1.n的管理控制,另一块主控板卡1.3或1.2则承担设备1.1的备用主控的角色。 Step 207: The two main control boards 1.2 and 1.3 respectively determine whether the other party's board role conflicts with its own board role. If there is a conflict, the content is re-competitive. If there is no conflict, the active/standby competition is completed, and finally the selected one is selected. The main control board 1.2 or 1.3 that assumes the main control role realizes the management control of the other boards 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, ..., 1.n in the chassis type communication device 1.1, The other main control board 1.3 or 1.2 assumes the role of the standby master of device 1.1.
分析现有技术,参考图1、2,不难发现,现有机框式设备1.1多采用双主控方案,且主备竞争机制的运行完全依赖主控板卡1.2、1.3,如果两块主控板卡1.2、1.3均出现故障或拔出,那么整个机框式设备1.1在无主控状态下是无法运行的,系统可靠性随之降低。而且,如果机框式设备1.1的槽位数较少,比如仅有六个槽位的情况,在这种机框式设备1.1依赖双主控板卡运行主备竞争机制的设计会过多的占用机框槽位,使其他插卡的数量受限,不能满足更多的业务需求。After analyzing the existing technology, referring to Figures 1 and 2, it is not difficult to find that the existing chassis-type device 1.1 adopts a dual-master scheme, and the operation of the active-standby competition mechanism completely depends on the main control board 1.2, 1.3, if two masters If the boards 1.2 and 1.3 are faulty or unplugged, the entire chassis-type device 1.1 cannot be operated without the main control state, and the system reliability is reduced. Moreover, if the number of slots of the chassis-type device 1.1 is small, for example, there are only six slots, the design of the active-standby competition mechanism that relies on the dual-master board in the chassis-type device 1.1 may be excessive. The slot of the chassis is occupied, which limits the number of other cards and cannot meet more business requirements.
另外,其主备竞争机制依赖两块主控板卡1.2、1.3建立通信连接并互发竞争报文,如果发生主控板卡1.2、1.3插拔,或由于硬件差异性等原因造成两块主控板卡1.2、1.3启动时间间隔过大,则相应的两块主控板卡1.2、1.3建立通信连接的时间会变得很长,此时,整个主备竞争机制的运行会拖慢系统的启动时间。In addition, the active/standby competition mechanism relies on two main control boards 1.2 and 1.3 to establish communication connections and exchange competing messages. If the main control board 1.2, 1.3 is plugged or unplugged, or due to hardware differences, etc. If the startup interval of the control board 1.2 and 1.3 is too large, the time for establishing the communication connection between the two main control boards 1.2 and 1.3 will become very long. At this time, the operation of the entire active/standby competition mechanism will slow down the system. Start Time.
申请内容Application content
本申请的目的在于克服现有机框式设备存在的对双主控的过度依赖、系统可靠性低、双主控板卡对槽位的浪费和主备竞争机制繁琐导致的设备启动时间过长等缺陷,提出一种具有主备控制权竞争的竞争方法及其通信装置。The purpose of the present application is to overcome the excessive reliance on the dual-master control of the existing chassis-type device, the low system reliability, the waste of the slot on the dual-control board, and the cumbersome active/standby mechanism. Defect, a competition method with master-slave control competition and its communication device are proposed.
为实现上述目的,本申请的技术方案为:To achieve the above objective, the technical solution of the present application is:
根据本申请的一个方面,提供了一种主备竞争方法,包括步骤:According to an aspect of the present application, an active/standby competition method is provided, including the steps of:
步骤1,依据本板卡槽位信息、本板卡所属功能类型、其他在线板卡的槽位信息以及其他在线板卡所属功能类型确定一个优先级规则,依据所述优先级规则确定本板卡启动探测的延时时间,其中所述本板卡和其他在线板卡均插接在一中板的相应槽位上,且各板卡间通信连接,所述本板卡和其他在线板卡均具有控制功能,所述功能类型包括主控板卡、交换板卡和业务板卡;Step 1: Determine a priority rule according to the slot information of the card, the function type of the card, the slot information of other online boards, and the type of functions of other online boards, and determine the board according to the priority rule. The delay time of the detection is started, wherein the board and other online boards are plugged into corresponding slots of a middle board, and the boards are communicatively connected, and the board and other online boards are connected. Having a control function, the function type includes a main control board, a switch board, and a service board;
步骤2,依据所述延时时间探测是否存在一个主用主控服务信息,所述主用主控服务信息反映是否存在主用主控服务角色;Step 2, detecting, according to the delay time, whether there is an active main control service information, where the main use main control service information reflects whether there is an active main control service role;
步骤3,当探测到不存在主用主控服务信息时,则确定本板卡角色为主用主控服务角色,并发送一个主用主控服务信息;Step 3: When it is detected that there is no main control service information, it is determined that the card role is the main control service role, and an active main control service information is sent;
步骤4,当探测到存在一个主用主控服务信息时,则连接该主用主控服务信息,并确定本板卡角色为备用主控服务角色。Step 4: When it is detected that there is an active main control service information, connect the main control service information, and determine that the card role is an alternate main control service role.
优选的,所述步骤4中确定本板卡角色为备用主控服务角色之后还包括:向所述担任主用主控服务角色的板卡发送连接请求;所述步骤3中发送一个主用主控服务信息之后还包括:接收担任备用主控服务角色的板卡发送的连接请求并处理。 Preferably, after determining that the board role is the standby master service role in the step 4, the method further includes: sending a connection request to the board serving as the primary hosting service role; and sending an active owner in the step 3 After the service information is controlled, the method further includes: receiving a connection request sent by the board serving as the standby master service role and processing.
优选的,所述步骤4之后,还包括:Preferably, after the step 4, the method further includes:
步骤5,担任备用主控服务角色的板卡监控所述主用主控服务是否正常运行,若是则继续监控,若否则返回步骤1重新进行主备竞争流程。Step 5: The card serving as the standby main control service role monitors whether the main control service is running normally. If yes, continue to monitor. If not, return to step 1 to restart the active/standby competition process.
优选的,所述步骤1中依据本板卡槽位信息、本板卡所属功能类型、其他在线板卡的槽位信息以及其他在线板卡所属功能类型确定一个优先级规则,依据所述优先级规则确定本板卡启动探测的延时时间的具体方法为:Preferably, in step 1, a priority rule is determined according to the slot information of the card, the function type of the card, the slot information of other online boards, and the type of functions of other online boards, according to the priority. The specific method for determining the delay time for the board to initiate detection is:
步骤1.1,确定本板卡槽位序号、本板卡所属功能类型、其他在线板卡的槽位序号以及其他在线板卡所属功能类型;Step 1.1: Determine the slot number of the board, the function type of the board, the slot number of other online boards, and the type of functions of other online boards.
步骤1.2,根据本板卡槽位序号和其他在线板卡槽位序号的降序排列或升序排列顺序,以及所述本板卡和其他在线板卡所属功能类型确定一优先级顺序;Step 1.2: Determine a priority order according to the descending order or ascending order of the slot number of the card slot and other slot numbers of the online card, and the function type of the board and other online boards;
步骤1.3,根据优先级越高延时时间越短的规则确定本板卡的延时时间。In step 1.3, the delay time of the card is determined according to the rule that the higher the priority is, the shorter the delay time is.
优选的,所述步骤1.1中确定本板卡槽位序号和其他在线板卡的槽位序号的具体方法为:Preferably, the specific method for determining the slot number of the card slot and the slot number of other online board in the step 1.1 is:
利用中板上的一组高低电平来表示本板卡和其他在线板卡的槽位序号。Use a set of high and low levels on the midplane to indicate the slot number of the board and other online boards.
优选的,所述步骤1.2中根据本板卡槽位序号和其他在线板卡槽位序号的降序排列或升序排列顺序,以及所述本板卡和其他在线板卡所属功能类型确定一优先级顺序的具体方法可为:Preferably, in step 1.2, the priority order is determined according to the slot number of the card slot and the sequence number of other online card slot slots, and the order of the functions of the board and other online cards is determined. The specific method can be:
步骤1.21,根据本板卡和其他在线板卡所属功能类型确定一个外部优先级顺序;Step 1.21: Determine an external priority order according to the function type of the board and other online boards;
步骤1.22,将所属功能类型相同的板卡依据其槽位序号的降序排列或升序排列确定一个内部优先级顺序;In step 1.22, the boards of the same function type are arranged in descending order or ascending order according to the slot number thereof to determine an internal priority order;
步骤1.23,综合依据所述外部优先级顺序和内部优先级顺序确定本板卡和其他在线板卡的最终优先级顺序。In step 1.23, the final priority order of the board and other online boards is determined according to the external priority order and the internal priority order.
根据本申请的另一方面,提供了一种主备竞争装置,包括:According to another aspect of the present application, an active/standby contention apparatus is provided, including:
延时确定单元,用于依据本板卡槽位信息、本板卡所属功能类型、其他在线板卡的槽位信息以及其他在线板卡所属功能类型确定一个优先级规则,依据所述优先级规则确定本板卡启动探测的延时时间,其中所述本板卡和其他在线板卡均插接在一中板的相应槽位上,且各板卡间通信连接,所述板卡和其他在线板卡均具有控制功能,所述功能类型包括主控板卡、交换板卡和业务板卡;The delay determining unit is configured to determine a priority rule according to the slot information of the board, the function type of the board, the slot information of other online boards, and the type of functions of other online boards, according to the priority rule. Determining the delay time for starting the detection of the board, wherein the board and other online boards are plugged into corresponding slots of a middle board, and the boards are communicatively connected, the boards and other online The boards all have control functions, and the types of functions include a main control board, a switch board, and a service board;
探测单元,用于依据所述延时时间探测是否存在一个主用主控服务信息,所述主用主控服务信息反映是否存在主用主控服务角色; a detecting unit, configured to detect whether there is an active main control service information according to the delay time, where the main active service information reflects whether an active main control service role exists;
主用角色确定单元,用于当探测到不存在主用主控服务信息时,则确定本板卡角色为主用主控服务角色,并发送一个主用主控服务信息;The primary role determining unit is configured to: when it is detected that the primary hosting service information does not exist, determine that the card role is a primary hosting service role, and send a primary hosting service information;
备用角色确定单元,用于当探测到存在一个主用主控服务信息时,则连接该主用主控服务信息,并确定本板卡角色为备用主控服务角色。The standby role determining unit is configured to connect the primary hosting service information when detecting that there is one primary hosting service information, and determine that the card role is an alternate hosting service role.
优选的,所述主备竞争装置还包括:Preferably, the active/standby device further includes:
监控单元,用于担任备用主控服务角色的板卡监控所述主用主控服务是否正常运行,若是则继续监控,若否则重新进行主备竞争流程。The monitoring unit, which is used as the standby master service role, monitors whether the active main control service is running normally, and if so, continues to monitor, if otherwise, the active/standby competition process is resumed.
优选的,所述备用角色确定单元还用于:向所述担任主用主控服务角色的板卡发送连接请求;所述主用角色确定单元还用于:接收担任备用主控服务角色的板卡发送的连接请求并处理。Preferably, the standby role determining unit is further configured to: send a connection request to the board serving as the primary hosting service role; the primary role determining unit is further configured to: receive the board serving as the standby hosting service role The connection request sent by the card is processed.
优选的,所述延时确定单元具体包括:Preferably, the delay determining unit specifically includes:
第一确定单元,用于确定本板卡槽位序号、本板卡所属功能类型、其他在线板卡的槽位序号以及其他在线板卡所属功能类型;The first determining unit is configured to determine the slot number of the board, the function type of the board, the slot number of other online boards, and the type of functions of other online boards;
第二确定单元,用于根据本板卡槽位序号和其他在线板卡槽位序号的降序排列或升序排列顺序,以及所述本板卡和其他在线板卡所属功能类型确定一优先级顺序;a second determining unit, configured to determine a priority order according to a descending order or an ascending order of the slot number of the card slot and other slot numbers of the online card, and a function type of the board and other online boards;
第三确定单元,用于根据优先级越高延时时间越短的规则确定本板卡的延时时间。And a third determining unit, configured to determine a delay time of the card according to a rule that the higher the priority is, the shorter the delay time is.
优选的,所述第一确定单元具体用于:Preferably, the first determining unit is specifically configured to:
利用中板上的一组高低电平来表示本板卡和其他在线板卡的槽位序号。Use a set of high and low levels on the midplane to indicate the slot number of the board and other online boards.
优选的,所述第二确定单元具体用于:Preferably, the second determining unit is specifically configured to:
根据本板卡和其他在线板卡所属功能类型确定一个外部优先级顺序;Determine an external priority order based on the type of function of the board and other online boards;
将所属功能类型相同的板卡依据其槽位序号的降序排列或升序排列确定一个内部优先级顺序;The boards of the same function type are arranged in descending order or ascending order according to the slot number thereof to determine an internal priority order;
综合依据所述外部优先级顺序和内部优先级顺序确定本板卡和其他在线板卡的最终优先级顺序。The final priority order of the board and other online boards is determined based on the external priority order and the internal priority order.
根据本申请的又一方面,提供了一种主备竞争装置的应用设备,包括:According to still another aspect of the present application, an application device of an active/standby competition device is provided, including:
主控板卡、交换板卡、业务板卡以及所述主备竞争装置,所述主控板卡、交换板卡和业务板卡均具有独立控制功能且均插接在一中板上,所述交换板卡内设有开关切换装置SW,所述主控板卡、交换板卡和业务板卡通过所述开关切换装置SW实现通信连接和建立板间信息通道,所述主备竞争装置用于为所述主控板卡、交换板卡和业务板卡之间的主备竞争提供装置支持。 The main control board, the switch board, the service board, and the active/standby competition device, the main control board, the switch board, and the service board all have independent control functions and are all plugged into a middle board. A switch switching device SW is disposed in the switch board, and the main control board, the switch board and the service board implement communication connection and establish an inter-board information channel through the switch switching device SW, and the active/standby competition device is used. It provides device support for the active and standby competition between the main control board, the switch board and the service board.
本申请具体如下优点和有益效果:The present application specifically has the following advantages and benefits:
一、本申请当承担主用主控角色的板卡发生故障或承担主用主控角色的板卡被拔出时,会自动重新运行主备竞争程序,重新计算竞争优先级,进而动态的优化各竞争板卡的探测延时时间,使系统高效运行。1. This application automatically re-runs the active and standby competition procedures when the board that assumes the role of the main control role fails or the board that assumes the main role of the main control is pulled out, recalculates the competition priority, and then dynamically optimizes The detection delay time of each competing board enables the system to operate efficiently.
二、本申请中的各板卡,包括主控板卡、交换板卡和业务板卡等均可作为主用主控角色运行,将传统的双主控方案升级为多主控方案,提高了系统的可靠性,降低了机框式设备对双主控方案的依赖程度。2. Each board in this application, including the main control board, switch board, and service board, can be used as the main master role to upgrade the traditional dual-master solution to the multi-master solution. The reliability of the system reduces the dependence of the chassis-type equipment on the dual-master scheme.
三、本申请在设计多槽位机框式设备时能利用减少主控槽位的设计方法来减小机框体积,降低设计难度,同样也可以通过设计更多的业务板卡来提升设备的性能,进而提升设备的市场竞争力。Third, this application can reduce the size of the chassis and reduce the design difficulty by designing the multi-slot machine-frame device to reduce the design of the main control slot. It is also possible to design the device card to improve the device. Performance, which in turn increases the market competitiveness of the equipment.
附图说明DRAWINGS
为了更清楚地说明本申请实施例的技术方案,下面将对实施例描述中所需要的附图做简单的介绍,显而易见地,下面描述的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following drawings will be briefly described in the description of the embodiments. It is obvious that the drawings described below are only some embodiments of the present application. For the ordinary technicians, other drawings can be obtained based on these drawings without any creative work.
图1为现有技术中机框式通信设备组成结构示意图;1 is a schematic structural diagram of a frame type communication device in the prior art;
图2为现有技术中机框式通信设备中主备竞争方法的流程图;2 is a flowchart of a method for competing for active and standby in a chassis-type communication device in the prior art;
图3为本申请主备竞争方法的流程图;3 is a flowchart of a method for competing for active and standby in the present application;
图4为本申请主备竞争装置的组成结构框图;4 is a block diagram showing the structure of the active/standby competition device of the present application;
图5为本申请应用所述主备竞争装置的机框式通信设备具体实施例的组成结构示意图。FIG. 5 is a schematic structural diagram of a specific embodiment of a chassis-type communication device to which the active/standby competition device is applied in the present application.
具体实施方式Detailed ways
下面结合说明书附图对本申请实施例的具体实施方式作详细说明。The specific embodiments of the embodiments of the present application are described in detail below with reference to the accompanying drawings.
图3为本申请主备竞争方法的流程图,如图3所示,该主备竞争方法包括:FIG. 3 is a flowchart of a method for competing for the active and standby of the present application. As shown in FIG. 3, the active/standby competition method includes:
步骤301,依据本板卡槽位信息、本板卡所属功能类型、其他在线板卡的槽位信息以及其他在线板卡所属功能类型确定一个优先级规则,依据所述优先级规则确定本板卡启动探测的延时时间,其中所述本板卡和其他在线板卡均插接在一中板的相应槽位上,且各板卡间通信连接,所述板卡和其他在线板卡均具有控制功能,所述功能类型包括主控板卡、交换板卡和业务板卡。 Step 301: Determine a priority rule according to the slot information of the card, the function type of the card, the slot information of other online boards, and the type of functions of other online boards, and determine the board according to the priority rule. The delay time of the detection is started, wherein the board and other online boards are plugged into corresponding slots of a middle board, and each board is communicatively connected, and the board and other online boards have Control function, the function type includes a main control board, a switch board, and a service board.
所述各板卡包括主控板卡、交换板卡和业务板卡等等,所述主控板卡、交换板卡和业务板卡等各板卡均通过一中板插接在一起,即各板卡均插接在中板的一个槽位上;且各板卡之间建立通信连接,各板卡之间建立通信连接的方式可有多种,本实施方式中,可通过设置一个开关切换装置SW来实现任意两板卡之间的通信连接。Each of the boards includes a main control board, a switch board, a service board, and the like. The boards of the main control board, the switch board, and the service board are plugged together through a middle board, that is, Each board is inserted into a slot of the middle board; and a communication connection is established between the boards, and a plurality of communication connections can be established between the boards. In this embodiment, a switch can be set. The switching device SW is implemented to implement a communication connection between any two boards.
所述开关切换装置SW由具有控制功能和交换功能的智能ASIC芯片构成,该芯片具有多个接口,所述多个接口中的每个接口均可以与其他任意接口配置为通路,利用开关切换装置SW可以建立各个板卡间的板间信息通道,实现各板卡的通信连接,实现各板卡之间的两两互联。需要说明的是利用装置SW建立的各个板卡间的板间信息通道,可以是基于以太网的信息通道。The switch switching device SW is composed of a smart ASIC chip having a control function and a switching function, the chip has a plurality of interfaces, and each of the plurality of interfaces can be configured as a path with any other interface, using a switch switching device The SW can establish an inter-board information channel between each board, realize the communication connection of each board, and realize the two-two interconnection between the boards. It should be noted that the inter-board information channel between the boards established by the device SW may be an information channel based on Ethernet.
此外,各个板卡间的板间信息通道也可以是由通过中板连接的专用信号线构成。In addition, the inter-board information channel between the boards may also be constituted by a dedicated signal line connected through the middle board.
所述延时时间的确定方法包括:The method for determining the delay time includes:
a.确定各板卡的插卡槽位序号以及各板卡所实现的功能;a. Determine the serial number of the card slot of each board and the functions implemented by each board;
每块板卡均可以通过所述的中板获取到一个本板槽位信息和一个其他在线板卡槽位信息,本板槽位信息是由中板向各个板卡提供的信息,该信息反映了各个板卡所插入的槽位,在本实施方式中,中板提供的本板槽位信息是由一组高低电平信号来表示,比如001表示本板槽位为2槽,011表示本板槽位为4槽;所述其他在线板卡槽位信息,是利用各板卡正交插接在中板上,引起中板上一组高低电平的信号变化,这组信号表示各槽位是否有板卡插入和各个插卡的槽位信息,本板获取该电平信号判断其他在线板卡的槽位信息。比如001表示2槽位有板卡插入,011表示4槽位有板卡插入。所述确定各板卡所实现的功能可为例如确定所述各板卡是属于主控板卡还是交换板卡,亦或是其他业务板卡等等。Each board can obtain information about the slot of the board and a slot information of the other board through the board. The slot information of the board is the information provided by the board to each board. The information reflects In the present embodiment, the slot information of the board provided by the middle board is represented by a set of high and low level signals. For example, 001 indicates that the slot of the board is 2 slots, and 011 indicates this. The slot of the board is 4 slots. The slot information of the other online boards is orthogonally plugged into the middle board by the boards, causing a group of high and low level signal changes on the middle board. Whether the bit has the card insertion and the slot information of each card, the board obtains the level signal to determine the slot information of other online boards. For example, 001 indicates that the slot is inserted in slot 2, and 011 indicates that the slot is inserted in slot 4. The determining the functions implemented by each card may be, for example, determining whether the boards belong to a main control board or a switch board, or other service boards, and the like.
b.根据各板卡槽位序号的降序排列或升序排列顺序,以及所述各板卡所实现的功能种类确定所述各板卡的优先级顺序;b. determining the priority order of the boards according to the descending or ascending order of the slot numbers of the boards, and the types of functions implemented by the boards;
该步骤中,可根据各板卡槽位序号的降序排列或升序排列,以及各板卡所实现功能确定各板卡的优先级。例如,根据槽位序号降序原则,即槽位序号越小,板卡优先级越高,以及主控板卡优先级大于交换板卡,交换板卡优先级大于业务板卡的规则等确定各板卡的优先级顺序。需要说明的是,本申请综合考虑各板卡的槽位序号和各板卡功能来确定优先级,具体的对应规则可依据实际情况具体确定,其不受限于本申请。例如,可先按照主控板卡优先级大于交换板卡,交换板卡优先级大于业务板卡的原则将各板卡按功能划分初步排定一外部优先级顺序,然后将具有相同功能的板卡,例如多个业务板卡,再按槽位序号的降序排列或升序排列确定一内部优先级顺序,最后根据所述外部优先级顺序和内部优先 级顺序确定最终的优先级顺序。上述不仅仅根据各板卡的槽位序号和各板卡功能来确定优先级的对应规则可根据具体情况而定,而且各板卡功能所对应的优先级级别也可依据实际情况变动,例如当主控板卡需用于深度报文解析时,则此时可将优先级规则修改为交换板卡优先级大于主控板卡等等。In this step, the priority of each board may be determined according to the descending or ascending order of the slot numbers of the boards, and the functions implemented by each board. For example, the principle of descending order of the slot number, that is, the smaller the slot number, the higher the priority of the board, and the priority of the main control board is greater than the switch board, and the priority of the switch board is greater than the rules of the service board. The priority order of the cards. It should be noted that, the present application comprehensively considers the slot number of each board and the function of each board to determine the priority. The specific corresponding rules may be specifically determined according to the actual situation, and are not limited to the present application. For example, the priority of the main control board is greater than that of the switch board, and the priority of the switch board is greater than that of the service board. Each board is pre-scheduled according to the function, and then the external priority order is set, and then the board with the same function is used. The card, for example, multiple service boards, is further arranged in descending order or ascending order of the slot number to determine an internal priority order, and finally according to the external priority order and internal priority The order of the levels determines the final order of priority. The above-mentioned corresponding rules for determining the priority based on the slot number of each board and the function of each board card may be determined according to specific conditions, and the priority level corresponding to each board function may also be changed according to actual conditions, for example, when When the main control board needs to be used for deep packet parsing, the priority rule can be changed to the priority of the switch board greater than the main control board.
c.根据优先级越高延时时间越短的规则确定本板卡启动探测的延时时间。c. Determine the delay time for the board to initiate detection according to the rule that the higher the priority is, the shorter the delay time is.
在上述确定好各板卡的优先级之后,则根据优先级越高,延时时间越短的规则确定各自板卡的延时时间,以便具有更高优先级的板卡具有更大主动性和可能性来承担主用主控服务角色。具体的实现方式可为,将优先级级别priority按从高到低的顺序依次设为0级、1级、2级、...等等,0级代表优先级级别最高,通过timeout=priority*1000ms来计算各板卡的延时时间。当然,本申请也可将延时时间的确定规则设为优先级级别越低延时时间越短,其并不受限于本申请具体实施方式。After the priority of each board is determined as described above, the delay time of the respective boards is determined according to the rule that the higher the priority is, the shorter the delay time is, so that the board with higher priority has greater initiative and The possibility to assume the role of the main master service. The specific implementation manner may be that the priority level priority is set to 0 level, 1 level, 2 level, ..., etc. in order from highest to lowest, and level 0 represents the highest priority level, by timeout=priority* 1000ms to calculate the delay time of each board. Certainly, the present application may also set the determination rule of the delay time to the lower the priority level, and the shorter the delay time, which is not limited to the specific embodiment of the present application.
步骤302,依据所述延时时间探测是否存在一个主用主控服务信息,所述主用主控服务信息反映是否存在主用主控服务角色。Step 302: Detect whether there is one active master service information according to the delay time, and the master master service information reflects whether there is an active master service role.
若将优先级级别priority按从高到低的顺序依次设为0级、1级、2级、...等等,0级代表优先级级别最高,通过timeout=priority*1000ms来计算各板卡的延时时间,则具有0级优先级别的板卡延时0ms启动探测是否存在一个主用主控服务信息,具有1级优先级别的板卡延时1000ms启动探测是否存在一个主用主控服务信息,具有2级优先级别的板卡延时2000ms启动探测是否存在一个主用主控服务信息,...,以此类推,优先级别越高,则其越先探测是否存在一个主用主控服务信息,也就越先确定自身是否要承担一个主用主控服务角色。If priority level priority is set to 0, 1st, 2nd, ..., etc. in order of highest to lowest, level 0 represents the highest priority level, and each board is calculated by timeout=priority*1000ms. The delay time, the board with 0 priority level delay 0ms start detection whether there is a main control service information, the board with the priority level of 1 priority delay 1000ms start detection whether there is a main control service Information, with a level 2 priority board delay 2000ms start detection whether there is a main master service information, ..., and so on, the higher the priority level, the more it first detects whether there is a main master The service information, the first to determine whether it has to assume a role of the main master service.
步骤303,当探测到不存在主用主控服务信息时,则确定本板卡角色为主用主控服务角色,并发送一个主用主控服务信息。Step 303: When it is detected that the main control service information does not exist, determine that the board role is the main control service role, and send an active main control service information.
各板卡根据优先级规则分别延时相应的延时时间后启动探测是否存在一个主用主控服务信息,所述主用主控服务信息反映了当前是否存在主用主控服务角色,也即当存在主用主控服务角色时,即能探测到一个主用主控服务信息,反之当不存在主用主控服务角色时,即不能探测到主用主控服务信息。当有板卡探测到不存在主用主控服务信息时,则说明当前不存在主用主控服务角色,此时,该探测板卡将自身确定为主用主控服务角色,并发送一个主用主控服务信息,已告知其他板卡主用主控服务角色已在位。Each board delays the corresponding delay time according to the priority rule to start detecting whether there is an active main control service information, and the main use service information reflects whether there is a main active service role, that is, When there is a primary master service role, an active master service information can be detected. Otherwise, when the master master service role does not exist, the master master service information cannot be detected. When the board detects that there is no information about the active master service, it indicates that there is no active role of the active master service. At this time, the probe board determines itself as the master service role and sends a master. With the master service information, it has been informed that the other board master master service role is already in place.
步骤304,当探测到存在一个主用主控服务信息时,则连接该主用主控服务信息,并确定本板卡角色为备用主控服务角色。 Step 304: When it is detected that there is one main control service information, connect the main control service information, and determine that the card role is an alternate main control service role.
所述各板卡按优先级规则先后探测是否存在主用主控服务信息,当有板卡探测到存在一个主用主控服务信息时,则说明此时已有主用主控服务角色在位,于是将自身确定为备用主控服务角色,并向所述担任主用主控服务角色的板卡发送连接请求,所述担任主用主控服务角色的板卡接收该连接请求,并允许担任所述备用主控服务角色的板卡连接,所述担任备用主控服务角色的板卡通过所述主要主控服务信息对所述担任主用主控服务角色的板卡的行为进行实时监控。The boards periodically detect whether there is an active main control service information according to a priority rule. When a board detects that there is an active main control service information, it indicates that the main main control service role is in place at this time. , then determine itself as the alternate master service role, and send a connection request to the board serving as the master master service role, the board serving as the master master service role receives the connection request and is allowed to serve The board connection of the standby master service role, the board serving as the standby master service role monitors the behavior of the board serving as the master master service role in real time through the primary master service information.
作为优选实施方式,所述步骤304之后,还包括:As a preferred implementation, after the step 304, the method further includes:
步骤305,担任备用主控服务角色的板卡监控所述主用主控服务是否正常运行,若是则继续监控,若否则返回步骤301重新进行主备竞争流程。In step 305, the card serving as the standby master service role monitors whether the active main control service is running normally. If yes, the monitoring is continued. If not, the process returns to step 301 to restart the active/standby competition process.
上述主备控制权竞争步骤,通过引入主备竞争优先级和主用主控服务,使得具有主控能力的板卡能以更短的时间探测主用主控服务,探测超时后,更快的退出探测状态并启动主用主控服务和确定本板角色为主用主控。而其他具有主控能力的板卡能确保在探测超时时间内探测到主用主控服务,探测完成后,更快的退出探测状态并连接到主用主控服务和确定本板为备用主控,在监控到主用主控服务断开的情况后,主备竞争机制会重新启动,探测超时时间也会重新计算,使系统高效运行。The above-mentioned active/standby control competition step introduces the active/standby competition priority and the active main control service, so that the card with the main control capability can detect the main control service in a shorter time. After the detection timeout, the detection is faster. Exit the probe state and start the primary master service and determine the role of the board as the primary master. The other boards with the main control capability can ensure that the active main control service is detected within the detection timeout period. After the detection is completed, the detection status is quickly exited and connected to the main control service and the board is determined as the standby main control. After monitoring the disconnection of the active master service, the active/standby competition mechanism will be restarted, and the probe timeout period will be recalculated to make the system run efficiently.
图4为本申请主备竞争装置的组成结构框图,如图4所示,该主备竞争装置包括:4 is a block diagram showing the structure of the active/standby device of the present application. As shown in FIG. 4, the active/standby device includes:
延时确定单元410,用于依据本板卡槽位信息、本板卡所属功能类型、其他在线板卡的槽位信息以及其他在线板卡所属功能类型确定一个优先级规则,依据所述优先级规则确定本板卡启动探测的延时时间,其中所述本板卡和其他在线板卡均插接在一中板的相应槽位上,且各板卡间通信连接,所述板卡和其他在线板卡均具有控制功能,所述功能类型包括主控板卡、交换板卡和业务板卡;The delay determining unit 410 is configured to determine a priority rule according to the slot information of the board, the function type of the board, the slot information of other online boards, and the type of functions of other online boards, according to the priority The rule determines the delay time for the board to initiate detection, wherein the board and other online boards are plugged into corresponding slots of a middle board, and the boards are communicatively connected, the board and other The online boards all have control functions, and the types of functions include a main control board, a switch board, and a service board;
所述各板卡包括主控板卡、交换板卡和业务板卡等等,所述主控板卡、交换板卡和业务板卡等各板卡均通过一中板插接在一起,即各板卡均插接在中板的一个槽位上;且各板卡之间建立通信连接,各板卡之间建立通信连接的方式可有多种,本实施方式中,可通过设置一个开关切换装置SW来实现任意两板卡之间的通信连接。Each of the boards includes a main control board, a switch board, a service board, and the like. The boards of the main control board, the switch board, and the service board are plugged together through a middle board, that is, Each board is inserted into a slot of the middle board; and a communication connection is established between the boards, and a plurality of communication connections can be established between the boards. In this embodiment, a switch can be set. The switching device SW is implemented to implement a communication connection between any two boards.
所述开关切换装置SW由具有控制功能和交换功能的智能ASIC芯片构成,该芯片具有多个接口,所述多个接口中的每个接口均可以与其他任意接口配置为通路,利用开关切换装置SW可以建立各个板卡间的板间信息通道,实现各板卡的通信连接,实现各板卡之间的两两互联。需要说明的是利用装置SW建立的各个板卡间的板间信息通道,可以是基于以太网的信息通道。 The switch switching device SW is composed of a smart ASIC chip having a control function and a switching function, the chip has a plurality of interfaces, and each of the plurality of interfaces can be configured as a path with any other interface, using a switch switching device The SW can establish an inter-board information channel between each board, realize the communication connection of each board, and realize the two-two interconnection between the boards. It should be noted that the inter-board information channel between the boards established by the device SW may be an information channel based on Ethernet.
此外,各个板卡间的板间信息通道也可以是由通过中板连接的专用信号线构成。In addition, the inter-board information channel between the boards may also be constituted by a dedicated signal line connected through the middle board.
所述延时确定单元410进一步包括:The delay determining unit 410 further includes:
第一确定单元411,用于确定本板卡槽位序号、本板卡所属功能类型、其他在线板卡的槽位序号以及其他在线板卡所属功能类型;The first determining unit 411 is configured to determine the slot number of the board, the function type of the board, the slot number of other online boards, and the type of functions of other online boards;
每块板卡均可以通过所述的中板获取到一个本板槽位信息和一个其他在线板卡槽位信息,本板槽位信息是由中板向各个板卡提供的信息,该信息反映了各个板卡所插入的槽位,在本实施方式中,中板提供的本板槽位信息是由一组高低电平信号来表示,比如001表示本板槽位为2槽,011表示本板槽位为4槽;所述其他在线板卡槽位信息,是利用各板卡正交插接在中板上,引起中板上一组高低电平的信号变化,这组信号表示各槽位是否有板卡插入和各个插卡的槽位信息,本板获取该电平信号判断其他在线板卡的槽位信息。比如001表示2槽位有板卡插入,011表示4槽位有板卡插入。所述确定各板卡所实现的功能可为例如确定所述各板卡是属于主控板卡还是交换板卡,亦或是其他业务板卡等等。Each board can obtain information about the slot of the board and a slot information of the other board through the board. The slot information of the board is the information provided by the board to each board. The information reflects In the present embodiment, the slot information of the board provided by the middle board is represented by a set of high and low level signals. For example, 001 indicates that the slot of the board is 2 slots, and 011 indicates this. The slot of the board is 4 slots. The slot information of the other online boards is orthogonally plugged into the middle board by the boards, causing a group of high and low level signal changes on the middle board. Whether the bit has the card insertion and the slot information of each card, the board obtains the level signal to determine the slot information of other online boards. For example, 001 indicates that the slot is inserted in slot 2, and 011 indicates that the slot is inserted in slot 4. The determining the functions implemented by each card may be, for example, determining whether the boards belong to a main control board or a switch board, or other service boards, and the like.
第二确定单元412,用于根据本板卡槽位序号和其他在线板卡槽位序号的降序排列或升序排列顺序,以及所述本板卡和其他在线板卡所属功能类型确定一优先级顺序;The second determining unit 412 is configured to determine a priority order according to the descending order or ascending order of the slot number of the card slot and other slot numbers of the online card, and the function type of the board and other online cards. ;
该模块中,可根据各板卡槽位序号的降序排列或升序排列,以及各板卡所实现功能确定各板卡的优先级。例如,根据槽位序号降序原则,即槽位序号越小,板卡优先级越高,以及主控板卡优先级大于交换板卡,交换板卡优先级大于业务板卡的规则等确定各板卡的优先级顺序。需要说明的是,本申请综合考虑各板卡的槽位序号和各板卡功能来确定优先级,具体的对应规则可依据实际情况具体确定,其不受限于本申请。例如,可先按照主控板卡优先级大于交换板卡,交换板卡优先级大于业务板卡的原则将各板卡按功能划分初步排定一外部优先级顺序,然后将具有相同功能的板卡,例如多个业务板卡,再按槽位序号的降序排列或升序排列确定一内部优先级顺序,最后根据所述外部优先级顺序和内部优先级顺序确定最终的优先级顺序。上述不仅仅根据各板卡的槽位序号和各板卡功能来确定优先级的对应规则可根据具体情况而定,而且各板卡功能所对应的优先级级别也可依据实际情况变动,例如当主控板卡需用于深度报文解析时,则此时可将优先级规则修改为交换板卡优先级大于主控板卡等等。In this module, the priority of each board can be determined according to the descending or ascending order of the slot numbers of the boards, and the functions implemented by each board. For example, the principle of descending order of the slot number, that is, the smaller the slot number, the higher the priority of the board, and the priority of the main control board is greater than the switch board, and the priority of the switch board is greater than the rules of the service board. The priority order of the cards. It should be noted that, the present application comprehensively considers the slot number of each board and the function of each board to determine the priority. The specific corresponding rules may be specifically determined according to the actual situation, and are not limited to the present application. For example, the priority of the main control board is greater than that of the switch board, and the priority of the switch board is greater than that of the service board. Each board is pre-scheduled according to the function, and then the external priority order is set, and then the board with the same function is used. The card, for example, multiple service boards, determines an internal priority order by descending or ascending order of slot numbers, and finally determines the final priority order according to the external priority order and the internal priority order. The above-mentioned corresponding rules for determining the priority based on the slot number of each board and the function of each board card may be determined according to specific conditions, and the priority level corresponding to each board function may also be changed according to actual conditions, for example, when When the main control board needs to be used for deep packet parsing, the priority rule can be changed to the priority of the switch board greater than the main control board.
第三确定单元413,用于根据优先级越高延时时间越短的规则确定本板卡的延时时间。The third determining unit 413 is configured to determine a delay time of the card according to a rule that the higher the priority is, the shorter the delay time is.
在上述确定好各板卡的优先级之后,则根据优先级越高,延时时间越短的规则确定各板卡的延时时间,以便具有更高优先级的板卡具有更大主动性和可能性来承担主用主控服务角色。具体的实现方式可为,将优先级级别priority按从高到低的顺序依次设为0级、 1级、2级、...等等,0级代表优先级级别最高,通过timeout=priority*1000ms来计算各板卡的延时时间。当然,本申请也可将延时时间的确定规则设为优先级级别越低延时时间越短,其并不受限于本申请具体实施方式。After the priority of each board is determined as described above, the delay time of each board is determined according to the rule that the higher the priority is, the shorter the delay time is, so that the board with higher priority has greater initiative and The possibility to assume the role of the main master service. The specific implementation manner may be that the priority level priority is set to 0 level in order from highest to lowest. Level 1, Level 2, ..., etc., Level 0 represents the highest priority level, and the delay time of each board is calculated by timeout=priority*1000ms. Certainly, the present application may also set the determination rule of the delay time to the lower the priority level, and the shorter the delay time, which is not limited to the specific embodiment of the present application.
探测单元420,用于依据所述延时时间探测是否存在一个主用主控服务信息,所述主用主控服务信息反映是否存在主用主控服务角色;The detecting unit 420 is configured to detect, according to the delay time, whether there is an active main control service information, where the main active service information reflects whether the main active service role exists;
若将优先级级别priority按从高到低的顺序依次设为0级、1级、2级、...等等,0级代表优先级级别最高,通过timeout=priority*1000ms来计算各板卡的延时时间,则具有0级优先级别的板卡延时0ms启动探测是否存在一个主用主控服务信息,具有1级优先级别的板卡延时1000ms启动探测是否存在一个主用主控服务信息,具有2级优先级别的板卡延时2000ms启动探测是否存在一个主用主控服务信息,...,以此类推,优先级别越高,则其越先探测是否存在一个主用主控服务信息,也就越先确定自身是否要承担一个主用主控服务角色。If priority level priority is set to 0, 1st, 2nd, ..., etc. in order of highest to lowest, level 0 represents the highest priority level, and each board is calculated by timeout=priority*1000ms. The delay time, the board with 0 priority level delay 0ms start detection whether there is a main control service information, the board with the priority level of 1 priority delay 1000ms start detection whether there is a main control service Information, with a level 2 priority board delay 2000ms start detection whether there is a main master service information, ..., and so on, the higher the priority level, the more it first detects whether there is a main master The service information, the first to determine whether it has to assume a role of the main master service.
主用角色确定单元430,用于探测到不存在主用主控服务信息时,则确定本板卡角色为主用主控服务角色,并发送一个主用主控服务信息。The primary role determining unit 430 is configured to determine that the card role is the primary hosting service role and send a primary hosting service information when detecting that the primary hosting service information does not exist.
各板卡根据优先级规则分别延时相应的延时时间后启动探测是否存在一个主用主控服务信息,所述主用主控服务信息反映了当前是否存在主用主控服务角色,也即当存在主用主控服务角色时,即能探测到一个主用主控服务信息,反之当不存在主用主控服务角色时,即不能探测到主用主控服务信息。当有板卡探测到不存在主用主控服务信息时,则说明当前不存在主用主控服务角色,此时,该探测板卡将自身确定为主用主控服务角色,并发送一个主用主控服务信息,已告知其他板卡主用主控服务角色已在位。Each board delays the corresponding delay time according to the priority rule to start detecting whether there is an active main control service information, and the main use service information reflects whether there is a main active service role, that is, When there is a primary master service role, an active master service information can be detected. Otherwise, when the master master service role does not exist, the master master service information cannot be detected. When the board detects that there is no information about the active master service, it indicates that there is no active role of the active master service. At this time, the probe board determines itself as the master service role and sends a master. With the master service information, it has been informed that the other board master master service role is already in place.
备用角色确定单元440,用于当探测到存在一个主用主控服务信息时,则连接该主用主控服务信息,并确定本板卡角色为备用主控服务角色。The standby role determining unit 440 is configured to connect the primary hosting service information when detecting that there is one primary hosting service information, and determine that the card role is an alternate hosting service role.
所述各板卡按优先级规则先后探测是否存在主用主控服务信息,当有板卡探测到存在一个主用主控服务信息时,则说明此时已有主用主控服务角色在位,于是将自身确定为备用主控服务角色,并向所述担任主用主控服务角色的板卡发送连接请求,所述担任主用主控服务角色的板卡接收该连接请求,并允许担任所述备用主控服务角色的板卡连接,所述担任备用主控服务角色的板卡通过所述主要主控服务信息对所述担任主用主控服务角色的板卡的行为进行实时监控。The boards periodically detect whether there is an active main control service information according to a priority rule. When a board detects that there is an active main control service information, it indicates that the main main control service role is in place at this time. , then determine itself as the alternate master service role, and send a connection request to the board serving as the master master service role, the board serving as the master master service role receives the connection request and is allowed to serve The board connection of the standby master service role, the board serving as the standby master service role monitors the behavior of the board serving as the master master service role in real time through the primary master service information.
作为优选实施方式,所述主备竞争装置还包括: As a preferred embodiment, the active/standby device further includes:
监控单元450,用于担任备用主控服务角色的板卡监控所述主用主控服务是否正常运行,若是则继续监控,若否则重新进行主备竞争流程。The monitoring unit 450 monitors whether the active main control service is running normally, and if yes, continues to monitor, if otherwise, the active/standby competition process is resumed.
图5为本申请应用所述主备竞争装置的机框式通信设备具体实施例的组成结构示意图,如图5所示,在该实施例中,所述机框式通信设备5.1包括两个主控板卡5.2和5.3、两个交换板卡5.4和5.5以及多个业务板卡5.6,5.7,...,5.n。所述两个主控板卡、两个交换板卡以及多个业务板卡均具有独立的控制单元,借助该控制单元,每个主控板卡、交换板卡和业务板卡均可以承担机框式通信设备5.1的主用主控卡角色。作为说明,在本实施例中,所述的机框式通信设备5.1也可以设置为两个主控板卡以及两个交换板卡具有独立的控制单元,借助该控制单元,每个主控板卡和交换板卡均可以承担机框式通信设备5.1的主用主控卡角色。FIG. 5 is a schematic structural diagram of a specific embodiment of a chassis-type communication device for applying the active/standby competition device according to the present application. As shown in FIG. 5, in the embodiment, the chassis-type communication device 5.1 includes two mains. Control boards 5.2 and 5.3, two switch boards 5.4 and 5.5, and multiple service boards 5.6, 5.7, ..., 5.n. The two main control boards, two switch boards, and multiple service boards each have an independent control unit. With the control unit, each main control board, switch board, and service board can bear the machine. The main master card role of the frame communication device 5.1. As an illustration, in the embodiment, the chassis type communication device 5.1 can also be configured as two main control boards and two switch boards having independent control units, by means of which each main control board Both the card and the switch board can assume the role of the main control card of the chassis type communication device 5.1.
在本实施例中,所述的机框式通信设备5.1也可以只具有两个交换板卡和多个业务板卡,交换板卡和多个块业务板卡均具有独立的控制单元,借助该控制单元,每个交换板卡和业务板卡均可以承担机框式设备5.1的主用主控卡角色。In this embodiment, the chassis type communication device 5.1 may have only two switch board cards and multiple service board cards, and the switch board card and the plurality of block service boards each have an independent control unit. The control unit, each switch board and service board can assume the role of the main control card of the chassis type device 5.1.
在本实施例中,机框式通信设备5.1执行有一个主备控制权竞争步骤,通过该主备控制权竞争步骤,可以确定上述可以承担主用主控卡角色的板卡中的哪个板卡真正成为机框式通信设备5.1的主用主控板卡,并由该主用主控板卡实现整个机框式通信设备5.1的管理控制。In this embodiment, the chassis-type communication device 5.1 performs an active/standby control right competition step, and through the active/standby control right competition step, it can be determined which one of the boards that can assume the role of the active primary control card The main control board of the chassis type communication device 5.1 is truly realized, and the management control of the entire chassis type communication device 5.1 is realized by the main control board.
在本实施例中,交换板卡5.4、5.5分别具有一个开关切换装置SW。In this embodiment, the switch boards 5.4, 5.5 each have a switch switching device SW.
在机框式通信设备5.1中,还具有一个中板,通过该中板,两个交换板卡5.4、5.5的装置SW分别与两个主控板卡5.2、5.3连接、每个交换板卡5.4、5.5的装置SW分别和N个业务板卡5.6,5.7,...,5.n连接,两个交换板卡5.4、5.5的装置SW之间相互连接。In the chassis type communication device 5.1, there is also a middle board through which the devices SW of the two switch boards 5.4 and 5.5 are respectively connected to the two main control boards 5.2 and 5.3, and each switch board 5.4 The device SW of 5.5 is connected to N service boards 5.6, 5.7, ..., 5.n, respectively, and the devices SW of the two switch boards 5.4, 5.5 are connected to each other.
利用两个交换板卡5.4、5.5的装置SW,还可以实现如下连接能力:With the device SW of the two switch boards 5.4 and 5.5, the following connection capabilities can also be achieved:
第1种,使主控板卡5.2分别连接到主控板卡5.3、两个交换板卡5.4、5.5和N个业务板卡5.6,5.7,...,5.n;In the first type, the main control board 5.2 is respectively connected to the main control board 5.3, the two exchange boards 5.4, 5.5 and N service boards 5.6, 5.7, ..., 5.n;
第2种,使主控板卡5.3分别连接到主控板卡5.2、两个交换板卡5.4、5.5和N个业务板卡5.6,5.7,...,5.n;The second type, the main control board 5.3 is respectively connected to the main control board 5.2, two exchange boards 5.4, 5.5 and N business boards 5.6, 5.7, ..., 5.n;
第3种,使交换板卡5.4分别连接到两个主控板卡5.2、5.3、交换板卡5.5和N个业务板卡5.6,5.7,...,5.n;In the third type, the switch board 5.4 is respectively connected to two main control boards 5.2, 5.3, a switch board 5.5 and N service boards 5.6, 5.7, ..., 5.n;
第4种,使交换板卡5.5分别连接到两个主控板卡5.2、5.3、交换板卡5.4和N个业务板卡5.6,5.7,...,5.n; The fourth type, the switch board 5.5 is connected to two main control boards 5.2, 5.3, the exchange board 5.4 and N business boards 5.6, 5.7, ..., 5.n;
第5种,使任一个业务板卡分别连接到两个主控板卡5.2、5.3、两个交换板卡5.4、5.5和其他N-1个业务板卡。In the fifth type, any one of the service boards is connected to two main control boards 5.2, 5.3, two exchange boards 5.4, 5.5 and other N-1 service boards.
所述第5种连接能力可以应用在每个业务板卡5.6,5.7,...,5.n上。The fifth connection capability can be applied to each service board 5.6, 5.7, ..., 5.n.
在本实施例中,主控板卡5.2、5.3、交换板卡5.4、5.5均设计为具有控制单元可以承担主用主控卡角色的板卡,每块板卡均可以通过所述的中板获取到一个本板槽位信息和一个其他在线板卡槽位信息。In this embodiment, the main control boards 5.2, 5.3, and the exchange boards 5.4, 5.5 are all designed to have the board that the control unit can assume the role of the main control card, and each board can pass the middle board. Obtain information about one board slot and one other slot card slot.
下面以具有两个主控板卡5.2、5.3、两个交换板卡5.4、5.5和12个业务板卡的机框式通信设备5.1为例进行说明:The following is an example of a chassis-type communication device 5.1 having two main control boards 5.2, 5.3, two switch boards 5.4, 5.5, and 12 service boards:
所述的机框式通信设备5.1设置为两个主控板卡以及两个交换板卡具有独立的控制单元,借助该控制单元,每个主控板卡和交换板卡均可以承担机框式通信设备5.1的主用主控卡角色。The frame type communication device 5.1 is configured as two main control boards and two exchange boards have independent control units. With the control unit, each main control board and switch board can bear the frame type. The main master card role of the communication device 5.1.
在本实施例中,借助交换板卡5.4、5.5上的装置SW,主控板卡5.2、5.3、交换板卡5.4、5.5可在主备竞争过程中,利用各个板卡之间的板间信息通道,探测是否存在主用主控板卡。并由此,最终确定主控板卡5.2、5.3和交换板卡5.4、5.5中的哪一个板卡作为主用主控板卡,提供主用主控服务,对整个机框式通信设备5.1实施管理控制。In this embodiment, by means of the device SW on the switch boards 5.4, 5.5, the main control boards 5.2, 5.3, the switch boards 5.4, 5.5 can use the inter-board information between the boards in the active-standby competition process. Channel, detects whether there is an active main control board. Therefore, it is finally determined which one of the main control boards 5.2, 5.3 and the switch boards 5.4, 5.5 is used as the main control board, providing the main control service, and implementing the entire chassis type communication device 5.1. Management control.
在本说明中,所有板卡均正交插接到中板上,板间通道基于两个交换板5.4、5.5的装置SW连接,其中两个主控板卡5.2、5.3和两个交换板卡5.4、5.5均具有主控能力。In this description, all boards are orthogonally connected to the midplane, and the inter-board channels are connected based on the devices SW of the two switch boards 5.4, 5.5, of which two main control boards 5.2, 5.3 and two switch boards Both 5.4 and 5.5 have master control capabilities.
所述装置SW使主控板卡5.2分别连接到主控板卡5.3、交换板卡5.4、5.5和12个业务板卡。The device SW connects the main control board 5.2 to the main control board 5.3, the switch board 5.4, 5.5 and 12 service boards respectively.
所述装置SW还使主控板卡5.3分别连接到主控板卡5.2、交换板卡5.4、5.5和12个业务板卡。The device SW also connects the main control board 5.3 to the main control board 5.2, the switch board 5.4, 5.5 and 12 service boards respectively.
所述装置SW还使交换板卡5.4分别连接到主控板卡5.2、5.3、交换板卡5.5和12个业务板卡。The device SW also connects the switch board 5.4 to the main control board 5.2, 5.3, the switch board 5.5 and 12 service boards.
所述装置SW还使交换板卡5.5分别连接到两个主控板卡5.2、5.3、交换板卡5.4和12个业务板卡。The device SW also connects the switch board 5.5 to the two main control boards 5.2, 5.3, the switch board 5.4 and the 12 service boards.
在本说明中,所述主控板卡5.2为15槽位,主控板卡5.3为16槽位,交换板卡5.4为13槽位,交换板卡5.5为14槽位,12个业务板卡依次为1至12槽位。In this description, the main control board 5.2 is 15 slots, the main control board 5.3 is 16 slots, the switch board 5.4 is 13 slots, the switch board 5.5 is 14 slots, and 12 service boards are used. It is 1 to 12 slots in sequence.
依照上述方案,介绍以下两种主备竞争情况:According to the above scheme, the following two types of active and standby competitions are introduced:
第一种:如果两个主控板卡5.2、5.3和两个交换板卡5.4、5.5均已经插入设备5.1,且正常工作的情况下,开机后,四个板卡将执行主备控制权竞争,包括步骤如下: The first type: If two main control boards 5.2, 5.3 and two switch boards 5.4, 5.5 have been inserted into device 5.1, and in normal operation, after booting, four boards will perform active and standby control competition. , including the steps below:
1)系统启动后,四个板卡将运行主备竞争;1) After the system is started, the four boards will run the active and standby competition;
2)四个板卡中的任意一个板卡均将通过中板,由本板槽位信息,获取自己的本板槽位信息;2) Any one of the four boards will pass through the middle board, and the slot information of the board will obtain the information of the slot of the board.
3)四个板卡中的任意一个板卡均将通过中板,由其他槽位具有主控能力的在线板卡的槽位信息,得知其他三个具有主控能力的在线板卡插入设备5.1的信息;3) Any one of the four boards will pass through the middle board. The slot information of the online board with the main control capability in other slots will be used to learn the other three online card insertion devices with the main control capability. 5.1 information;
4)四个板卡中的任意一个板卡将依据所述的本板槽位信息和其他槽位具有主控能力的在线板卡信息,依据主控板卡5.2、5.3优先级大于交换板卡5.4、5.5,交换板卡5.4、5.5优先级大于业务板卡优先级,槽位号越低优先级越高的原则,计算出自己的本板主备竞争优先级;4) Any one of the four boards will be based on the slot information of the board and the online board information of other slots with the main control capability. The priority of the board is greater than the switch board according to the main control board 5.2 and 5.3. 5.4, 5.5, the priority of the switch board 5.4, 5.5 is greater than the priority of the service board, and the lower the slot number is, the higher the priority is, and the priority of the active/standby competition of the board is calculated.
此时,例如设定主控板卡5.2的优先级为0,主控板卡5.3的优先级为1,交换板卡.4的优先级为2,交换板卡5.5的优先级为3,即主控板卡5.2的优先级大于主控板卡5.3的优先级大于交换板卡5.4的优先级大于交换板卡5.5的优先级;In this case, for example, the priority of the main control board 5.2 is set to 0, the priority of the main control board 5.3 is 1, the priority of the switch board .4 is 2, and the priority of the switch board 5.5 is 3. The priority of the main control board 5.2 is greater than the priority of the main control board 5.3 is greater than the priority of the switch board 5.4 is greater than the priority of the switch board 5.5;
5)四个板卡中的任意一个板卡将依据依据优先级越高的探测延时时间越短的原则,计算出一个探测超时时间,5) Any one of the four boards will calculate a detection timeout according to the principle that the detection delay time is higher according to the higher priority.
比如:根据公式timeout=priority*1000计算探测延时时间:其中,主控板卡5.2为0毫秒,主控板卡5.3为1000毫秒,交换板卡5.4为2000毫秒,交换板卡5.5为3000毫秒;For example, calculate the detection delay time according to the formula timeout=priority*1000: where the main control board 5.2 is 0 milliseconds, the main control board 5.3 is 1000 milliseconds, the switch board 5.4 is 2000 milliseconds, and the switch board 5.5 is 3000 milliseconds. ;
6)四个板卡分别依据各自的探测延时时间,连接所述的主用主控服务信息;6) The four boards connect the main control service information according to the respective detection delay times;
此时:主控板卡5.2因其探测超时时间最短,最先通过板间通道,启动主用主控服务的探测任务,连接所述的主用主控服务信息,此时所述主用主控服务信息反映不存在主用主控板卡,所述的主控板卡5.2执行步骤10);At this time: the main control board 5.2 because the detection timeout time is the shortest, the first through the inter-board channel, start the detection task of the main control service, and connect the main control service information, at this time, the main user The control service information reflects that there is no active main control board, and the main control board 5.2 performs step 10);
因主控板卡5.3和交换板卡5.4、5.5的探测延时时间稍长,在通过板间通道,连接所述的主用主控服务信息时,将会探测到由控制板5.2给出的反映主用主控板卡已经在位的主用主控服务信息,执行步骤7)。Since the detection delay time of the main control board 5.3 and the switch board 5.4, 5.5 is slightly longer, when the main control service information is connected through the inter-board channel, the control panel 5.2 will be detected. The main control service information indicating that the main control board is already in place is reflected, and step 7) is performed.
7)主控板卡5.3和交换板卡5.4、5.5,确定自己的本板角色为备用主控;7) The main control board 5.3 and the switch board 5.4, 5.5, determine their own role as the standby master;
8)主控板卡5.3和交换板卡5.4、5.5连接所述的主用主控服务信息;8) The main control board 5.3 and the switch board 5.4, 5.5 are connected to the main control service information;
9)在所述的主用主控服务信息反映主用主控板卡没有正常运行时,主控板卡5.3和交换板卡5.4、5.5返回执行步骤3),启动新一轮的主备控制权竞争步骤。9) When the main control service information indicates that the main control board is not operating normally, the main control board 5.3 and the switch board 5.4, 5.5 return to step 3) to start a new round of active/standby control. The right competition step.
10)主控板卡5.2确定本板角色为主用主控角色; 10) The main control board 5.2 determines that the board role is the main control role;
11)主控板卡5.2通过所述的板间信息通道,输出反映主用主控板卡已经在位的主用主控服务信息。11) The main control board 5.2 outputs the main control service information indicating that the main control board is already in place through the inter-board information channel.
第二种:如果主控板卡5.2、5.3没有插入插入设备5.1,交换板卡5.4、5.5已经插入通信设备5.1,且正常工作的情况下,开机后,两个交换板卡5.4、5.5将执行主备控制权竞争,包括步骤如下:Second: If the main control board 5.2, 5.3 is not inserted into the plug-in device 5.1, the switch board 5.4, 5.5 has been inserted into the communication device 5.1, and in normal operation, after the boot, the two switch boards 5.4, 5.5 will execute The master-slave control competition, including the following steps:
1)系统启动后,两个交换板卡5.4、5.5将运行主备竞争;1) After the system is started, the two switch boards 5.4 and 5.5 will run the active/standby competition;
2)交换板卡5.4、5.5中的任意一个板卡均将通过中板,由本板槽位信息,获取自己的本板槽位信息;2) Any one of the boards 5.4 and 5.5 will pass through the middle board and obtain the slot information of the board from the board slot information.
3)交换板卡5.4、5.5中的任意一个板卡均将通过中板,由其他槽位具有主控能力的在线板卡的槽位信息,得知只有交换板卡5.4、5.5插入的信息;3) Any one of the switch boards 5.4 and 5.5 will pass through the middle board. The slot information of the online board with the main control capability of other slots will be used to learn only the information inserted by the switch board 5.4 and 5.5.
4)两个交换板卡5.4、5.5中的任意一个板卡将依据所述的本板槽位信息和其他槽位具有主控能力的在线板卡信息,依据主控板卡5.2、5.3优先级大于交换板卡5.4、5.5,交换板卡5.4、5.5优先级大于业务板卡优先级,槽位号越低优先级越高的原则,计算出自己的本板主备竞争优先级;4) Any one of the two switch boards 5.4 and 5.5 will be based on the slot information of the board and the online board information of other slots with the main control capability. According to the priority of the main control board 5.2 and 5.3 The priority of the switch board is 5.4, 5.5, the priority of the switch board 5.4, 5.5 is greater than the priority of the service board, and the lower the slot number is, the higher the priority is. The priority of the active/standby competition of the board is calculated.
此时,例如设定交换板卡4的优先级为0,交换板卡5的优先级为1,即交换板卡4的优先级大于交换板卡5的优先级;At this time, for example, the priority of the switch board 4 is set to 0, and the priority of the switch board 5 is 1, that is, the priority of the switch board 4 is greater than the priority of the switch board 5.
5)两个交换板卡5.4、5.5中的任意一个板卡将依据依据优先级越高的探测延时时间越短的原则,计算出一个探测延时时间,5) Any one of the two switch boards 5.4 and 5.5 will calculate a detection delay time according to the principle that the detection delay time is higher according to the higher priority.
比如:根据公式timeout=priority*1000计算探测超时时间:其中,换板卡5.4为0毫秒,交换板卡5.5为1000毫秒;For example, the detection timeout period is calculated according to the formula timeout=priority*1000: wherein the switch card 5.4 is 0 milliseconds, and the switch card 5.5 is 1000 milliseconds;
6)交换板卡5.4、5.5分别依据各自的探测超时时间,连接所述的主用主控服务信息;6) The switch board 5.4, 5.5 respectively connect the main master service information according to the respective probe timeout time;
此时:交换板卡5.4因其探测超时时间最短,最先通过板间通道,启动主用主控服务的探测任务,连接所述的主用主控服务信息,此时所述主用主控服务信息反映不存在主用主控板卡,所述的交换板卡5.4执行步骤10);At this time, the switch board 5.4 has the shortest detection timeout time, and firstly passes the inter-board channel to start the detection task of the main control service, and connects the main control service information, and the main control is at this time. The service information reflects that there is no active main control board, and the switch board 5.4 performs step 10);
因交换板卡5.5的探测超时时间稍长,在通过板间通道,连接所述的主用主控服务信息时,将会探测到由交换板卡5.4给出的反映主用主控板卡已经在位的主用主控服务信息,执行步骤7)Because the detection timeout period of the switch board 5.5 is slightly longer, when the main control service information is connected through the inter-board channel, the main control board that is reflected by the switch board 5.4 is detected. In-position master control service information, perform step 7)
步骤7)交换板卡5.5确定自己的本板角色为备用主控;Step 7) The switch board 5.5 determines that the role of the board is the standby master;
步骤8)交换板卡5.5连接所述的主用主控服务信息; Step 8) The switch board 5.5 connects the main control service information;
步骤9)在所述的主用主控服务信息反映主用主控板卡没有正常运行时,交换板卡5.5返回执行步骤3),启动新一轮的主备控制权竞争步骤。Step 9) When the main control service information indicates that the main control board is not operating normally, the switch board 5.5 returns to step 3) to start a new round of active and standby control competition steps.
10)交换板卡5.4确定本板角色为主用主控角色;10) The switch board 5.4 determines that the board role is the master role;
11)交换板卡5.4通过所述的板间信息通道,输出反映主用主控板卡已经在位的主用主控服务信息。11) The switch board 5.4 outputs the main control service information indicating that the main control board is already in place through the inter-board information channel.
应用本申请,能够有效的缩短系统的启动时间,提升系统的运行效率。特别是多主控方案提高了系统的可靠性,降低了机框式设备对双主控方案的依赖程度,而且在设计多槽位机框式设备时能利用减少主控槽位的设计方法来减小机框体积,降低设计难度,同样也可以通过设计更多的业务板卡来提升设备的性能,进而提升设备的市场竞争力。The application of the application can effectively shorten the startup time of the system and improve the operating efficiency of the system. In particular, the multi-master control scheme improves the reliability of the system, reduces the dependence of the chassis-type equipment on the dual-master control scheme, and can utilize the design method of reducing the master control slot when designing the multi-slot chassis-type device. Reduce the size of the frame and reduce the design difficulty. It is also possible to improve the performance of the device by designing more service boards, thereby improving the market competitiveness of the equipment.
以上所述实施例仅表达了本申请的优选的实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。 The above-mentioned embodiments are merely illustrative of the preferred embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the claims. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (13)

  1. 一种主备竞争方法,其特征在于,包括步骤:An active/standby competition method, comprising the steps of:
    步骤1,依据本板卡槽位信息、本板卡所属功能类型、其他在线板卡的槽位信息以及其他在线板卡所属功能类型确定一个优先级规则,依据所述优先级规则确定本板卡启动探测的延时时间,其中所述本板卡和其他在线板卡均插接在一中板的相应槽位上,且各板卡间通信连接,所述本板卡和其他在线板卡均具有控制功能,所述功能类型包括主控板卡、交换板卡和业务板卡;Step 1: Determine a priority rule according to the slot information of the card, the function type of the card, the slot information of other online boards, and the type of functions of other online boards, and determine the board according to the priority rule. The delay time of the detection is started, wherein the board and other online boards are plugged into corresponding slots of a middle board, and the boards are communicatively connected, and the board and other online boards are connected. Having a control function, the function type includes a main control board, a switch board, and a service board;
    步骤2,依据所述延时时间探测是否存在一个主用主控服务信息,所述主用主控服务信息反映是否存在主用主控服务角色;Step 2, detecting, according to the delay time, whether there is an active main control service information, where the main use main control service information reflects whether there is an active main control service role;
    步骤3,当探测到不存在主用主控服务信息时,则确定本板卡角色为主用主控服务角色,并发送一个主用主控服务信息;Step 3: When it is detected that there is no main control service information, it is determined that the card role is the main control service role, and an active main control service information is sent;
    步骤4,当探测到存在一个主用主控服务信息时,则连接该主用主控服务信息,并确定本板卡角色为备用主控服务角色。Step 4: When it is detected that there is an active main control service information, connect the main control service information, and determine that the card role is an alternate main control service role.
  2. 如权利要求1所述的一种主备竞争方法,其特征在于,所述步骤4中确定本板卡角色为备用主控服务角色之后还包括:向所述担任主用主控服务角色的板卡发送连接请求;所述步骤3中发送一个主用主控服务信息之后还包括:接收担任备用主控服务角色的板卡发送的连接请求并处理。The active/standby competition method according to claim 1, wherein after determining that the board role is the standby main control service role in the step 4, the method further includes: the board serving as the main control service role The card sends a connection request; after the sending of the primary master service information in the step 3, the method further includes: receiving a connection request sent by the board serving as the standby master service role and processing.
  3. 如权利要求1或2所述的一种主备竞争方法,其特征在于,所述步骤4之后还包括:The active/standby competition method according to claim 1 or 2, wherein after the step 4, the method further comprises:
    步骤5,担任备用主控服务角色的板卡监控所述主用主控服务是否正常运行,若是则继续监控,若否则返回步骤1重新进行主备竞争流程。Step 5: The card serving as the standby main control service role monitors whether the main control service is running normally. If yes, continue to monitor. If not, return to step 1 to restart the active/standby competition process.
  4. 如权利要求3所述的一种主备竞争方法,其特征在于,所述步骤1中依据本板卡槽位信息、本板卡所属功能类型、其他在线板卡的槽位信息以及其他在线板卡所属功能类型确定一个优先级规则,依据所述优先级规则确定本板卡启动探测的延时时间的具体方法为:The active/standby competition method according to claim 3, wherein the step 1 is based on the slot information of the card, the function type of the card, the slot information of other online boards, and other online boards. The function type of the card determines a priority rule, and the specific method for determining the delay time for starting the detection of the card according to the priority rule is:
    步骤1.1,确定本板卡槽位序号、本板卡所属功能类型、其他在线板卡的槽位序号以及其他在线板卡所属功能类型;Step 1.1: Determine the slot number of the board, the function type of the board, the slot number of other online boards, and the type of functions of other online boards.
    步骤1.2,根据本板卡槽位序号和其他在线板卡槽位序号的降序排列或升序排列顺序,以及所述本板卡和其他在线板卡所属功能类型确定一优先级顺序;Step 1.2: Determine a priority order according to the descending order or ascending order of the slot number of the card slot and other slot numbers of the online card, and the function type of the board and other online boards;
    步骤1.3,根据优先级越高延时时间越短的规则确定本板卡的延时时间。 In step 1.3, the delay time of the card is determined according to the rule that the higher the priority is, the shorter the delay time is.
  5. 如权利要求4所述的一种主备竞争方法,其特征在于,所述步骤1.1中确定本板卡槽位序号和其他在线板卡的槽位序号的具体方法为:An active/standby competition method according to claim 4, wherein the specific method for determining the slot number of the card slot and the slot number of other online card in the step 1.1 is:
    利用中板上的一组高低电平来表示本板卡和其他在线板卡的槽位序号。Use a set of high and low levels on the midplane to indicate the slot number of the board and other online boards.
  6. 如权利要求4所述的一种主备竞争方法,其特征在于,所述步骤1.2中根据本板卡槽位序号和其他在线板卡槽位序号的降序排列或升序排列顺序,以及所述本板卡和其他在线板卡所属功能类型确定一优先级顺序的具体方法可为:The active/standby competition method according to claim 4, wherein in the step 1.2, the order of the slot number of the card slot and the sequence number of the other online card slot are in descending order or ascending order, and the sequence The specific method for determining the priority order of the function types of the board and other online boards can be:
    步骤1.21,根据本板卡和其他在线板卡所属功能类型确定一个外部优先级顺序;Step 1.21: Determine an external priority order according to the function type of the board and other online boards;
    步骤1.22,将所属功能类型相同的板卡依据其槽位序号的降序排列或升序排列确定一个内部优先级顺序;In step 1.22, the boards of the same function type are arranged in descending order or ascending order according to the slot number thereof to determine an internal priority order;
    步骤1.23,综合依据所述外部优先级顺序和内部优先级顺序确定本板卡和其他在线板卡的最终优先级顺序。In step 1.23, the final priority order of the board and other online boards is determined according to the external priority order and the internal priority order.
  7. 一种主备竞争装置,其特征在于,包括:An active/standby competition device, comprising:
    延时确定单元,用于依据本板卡槽位信息、本板卡所属功能类型、其他在线板卡的槽位信息以及其他在线板卡所属功能类型确定一个优先级规则,依据所述优先级规则确定本板卡启动探测的延时时间,其中所述本板卡和其他在线板卡均插接在一中板的相应槽位上,且各板卡间通信连接,所述板卡和其他在线板卡均具有控制功能,所述功能类型包括主控板卡、交换板卡和业务板卡;The delay determining unit is configured to determine a priority rule according to the slot information of the board, the function type of the board, the slot information of other online boards, and the type of functions of other online boards, according to the priority rule. Determining the delay time for starting the detection of the board, wherein the board and other online boards are plugged into corresponding slots of a middle board, and the boards are communicatively connected, the boards and other online The boards all have control functions, and the types of functions include a main control board, a switch board, and a service board;
    探测单元,用于依据所述延时时间探测是否存在一个主用主控服务信息,所述主用主控服务信息反映是否存在主用主控服务角色;a detecting unit, configured to detect whether there is an active main control service information according to the delay time, where the main active service information reflects whether an active main control service role exists;
    主用角色确定单元,用于当探测到不存在主用主控服务信息时,则确定本板卡角色为主用主控服务角色,并发送一个主用主控服务信息;The primary role determining unit is configured to: when it is detected that the primary hosting service information does not exist, determine that the card role is a primary hosting service role, and send a primary hosting service information;
    备用角色确定单元,用于当探测到存在一个主用主控服务信息时,则连接该主用主控服务信息,并确定本板卡角色为备用主控服务角色。The standby role determining unit is configured to connect the primary hosting service information when detecting that there is one primary hosting service information, and determine that the card role is an alternate hosting service role.
  8. 如权利要求7所述的一种主备竞争装置,其特征在于,所述主备竞争装置还包括:The active/standby competition device of claim 7, wherein the active/standby competition device further comprises:
    监控单元,用于担任备用主控服务角色的板卡监控所述主用主控服务是否正常运行,若是则继续监控,若否则重新进行主备竞争流程。The monitoring unit, which is used as the standby master service role, monitors whether the active main control service is running normally, and if so, continues to monitor, if otherwise, the active/standby competition process is resumed.
  9. 如权利要求8所述的一种主备竞争装置,其特征在于,所述备用角色确定单元还用于:向所述担任主用主控服务角色的板卡发送连接请求;所述主用角色确定单元还用于:接收担任备用主控服务角色的板卡发送的连接请求并处理。 The active/standby contention apparatus according to claim 8, wherein the standby role determining unit is further configured to: send a connection request to the board serving as the primary hosting service role; the primary role The determining unit is further configured to: receive and process the connection request sent by the board serving as the standby master service role.
  10. 如权利要求8任一项所述的一种主备竞争装置,其特征在于,所述延时确定单元具体包括:The active/standby competition device according to any one of claims 8 to 8, wherein the delay determining unit specifically comprises:
    第一确定单元,用于确定本板卡槽位序号、本板卡所属功能类型、其他在线板卡的槽位序号以及其他在线板卡所属功能类型;The first determining unit is configured to determine the slot number of the board, the function type of the board, the slot number of other online boards, and the type of functions of other online boards;
    第二确定单元,用于根据本板卡槽位序号和其他在线板卡槽位序号的降序排列或升序排列顺序,以及所述本板卡和其他在线板卡所属功能类型确定一优先级顺序;a second determining unit, configured to determine a priority order according to a descending order or an ascending order of the slot number of the card slot and other slot numbers of the online card, and a function type of the board and other online boards;
    第三确定单元,用于根据优先级越高延时时间越短的规则确定本板卡的延时时间。And a third determining unit, configured to determine a delay time of the card according to a rule that the higher the priority is, the shorter the delay time is.
  11. 如权利要求10所述的一种主备竞争装置,其特征在于,所述第一确定单元具体用于:The active/standby device of claim 10, wherein the first determining unit is specifically configured to:
    利用中板上的一组高低电平来表示本板卡和其他在线板卡的槽位序号。Use a set of high and low levels on the midplane to indicate the slot number of the board and other online boards.
  12. 如权利要求10所述的一种主备竞争装置,其特征在于,所述第二确定单元具体用于:The active/standby device of claim 10, wherein the second determining unit is specifically configured to:
    根据本板卡和其他在线板卡所属功能类型确定一个外部优先级顺序;Determine an external priority order based on the type of function of the board and other online boards;
    将所属功能类型相同的板卡依据其槽位序号的降序排列或升序排列确定一个内部优先级顺序;The boards of the same function type are arranged in descending order or ascending order according to the slot number thereof to determine an internal priority order;
    综合依据所述外部优先级顺序和内部优先级顺序确定本板卡和其他在线板卡的最终优先级顺序。The final priority order of the board and other online boards is determined based on the external priority order and the internal priority order.
  13. 一种主备竞争装置的应用设备,包括主控板卡、交换板卡以及业务板卡,其特征在于,还包括如权利要求7-12任一项所述的述主备竞争装置,所述主控板卡、交换板卡和业务板卡均具有独立控制功能且均插接在一中板上,所述交换板卡内设有开关切换装置SW,所述主控板卡、交换板卡和业务板卡通过所述开关切换装置SW实现通信连接和建立板间信息通道,所述主备竞争装置用于为所述主控板卡、交换板卡和业务板卡之间的主备竞争提供装置支持。 An apparatus for an active/standby device, comprising a main control board, a switch board, and a service board, further comprising the active/standby competition device according to any one of claims 7-12, The main control board, the switch board, and the service board all have independent control functions and are all plugged into a middle board. The switch board is provided with a switch switching device SW, the main control board and the switch board. And the service board implements a communication connection and establishes an inter-board information channel through the switch switching device SW, where the active/standby competition device is used for the active-standby competition between the main control board, the switch board, and the service board. Provide device support.
PCT/CN2017/117119 2017-09-18 2017-12-19 Master/standby contention method and device, and application equipment WO2019052069A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710837810.6A CN107547281B (en) 2017-09-18 2017-09-18 Main/standby competition method, device and application equipment
CN201710837810.6 2017-09-18

Publications (1)

Publication Number Publication Date
WO2019052069A1 true WO2019052069A1 (en) 2019-03-21

Family

ID=60963207

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/117119 WO2019052069A1 (en) 2017-09-18 2017-12-19 Master/standby contention method and device, and application equipment

Country Status (2)

Country Link
CN (1) CN107547281B (en)
WO (1) WO2019052069A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001963A (en) * 2022-05-05 2022-09-02 武汉光迅信息技术有限公司 Information configuration method and device based on multi-configuration storage communication equipment
CN117434824A (en) * 2023-12-20 2024-01-23 天津航空机电有限公司 Redundant control board power-on main and standby determination method

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108600122A (en) * 2018-03-28 2018-09-28 北京百度网讯科技有限公司 Frame-type switch webmaster cause for gossip shows method and device
CN109302359A (en) * 2018-11-27 2019-02-01 迈普通信技术股份有限公司 A kind of network equipment, link converting method and device
CN111007753B (en) * 2019-10-25 2021-07-06 苏州浪潮智能科技有限公司 Main/standby arbitration method and device for double controllers
CN110780589A (en) * 2019-11-08 2020-02-11 航天柏克(广东)科技有限公司 Contention generation method of host
CN111314180B (en) * 2020-02-27 2022-02-18 深圳震有科技股份有限公司 Ethernet link test method, terminal and storage medium
CN112666910A (en) * 2020-12-28 2021-04-16 浙江中控技术股份有限公司 Scheduling system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060068306A (en) * 2004-12-16 2006-06-21 삼성전자주식회사 Apparatus and method for controlling redundancy board
CN101242310A (en) * 2008-03-21 2008-08-13 北京佳讯飞鸿电气股份有限公司 A master-slave switching method for communication interface board
CN101834748A (en) * 2009-03-12 2010-09-15 中兴通讯股份有限公司 Method and device for main and standby competition
CN101938417A (en) * 2010-09-01 2011-01-05 中兴通讯股份有限公司 Method for realizing configuration of main and auxiliary board cards as well as board cards
CN106598888A (en) * 2016-12-22 2017-04-26 广东威创视讯科技股份有限公司 Multi-board card communication system and method adopting RS485 protocol

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101447858B (en) * 2008-01-17 2012-01-11 中兴通讯股份有限公司 Method for realizing synchronous switching of virtual router redundancy protocol in dual-machine hot backup system
CN102291303B (en) * 2011-08-12 2014-07-23 大唐移动通信设备有限公司 Single board and method for determining primary and standby states for the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20060068306A (en) * 2004-12-16 2006-06-21 삼성전자주식회사 Apparatus and method for controlling redundancy board
CN101242310A (en) * 2008-03-21 2008-08-13 北京佳讯飞鸿电气股份有限公司 A master-slave switching method for communication interface board
CN101834748A (en) * 2009-03-12 2010-09-15 中兴通讯股份有限公司 Method and device for main and standby competition
CN101938417A (en) * 2010-09-01 2011-01-05 中兴通讯股份有限公司 Method for realizing configuration of main and auxiliary board cards as well as board cards
CN106598888A (en) * 2016-12-22 2017-04-26 广东威创视讯科技股份有限公司 Multi-board card communication system and method adopting RS485 protocol

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115001963A (en) * 2022-05-05 2022-09-02 武汉光迅信息技术有限公司 Information configuration method and device based on multi-configuration storage communication equipment
CN115001963B (en) * 2022-05-05 2024-01-05 武汉光迅信息技术有限公司 Information configuration method and device based on multi-configuration storage communication equipment
CN117434824A (en) * 2023-12-20 2024-01-23 天津航空机电有限公司 Redundant control board power-on main and standby determination method
CN117434824B (en) * 2023-12-20 2024-04-09 天津航空机电有限公司 Redundant control board power-on main and standby determination method

Also Published As

Publication number Publication date
CN107547281B (en) 2020-07-24
CN107547281A (en) 2018-01-05

Similar Documents

Publication Publication Date Title
WO2019052069A1 (en) Master/standby contention method and device, and application equipment
EP2793428B1 (en) Pcie switch-based server system and switching method and device thereof
US10284499B2 (en) Dedicated control path architecture for systems of devices
EP2854369B1 (en) Method and apparatus for detecting interface connection between devices
US20070008898A1 (en) Point-to-point link negotiation method and apparatus
EP2663038A1 (en) Switch chip port management method, main control board, switch board, and system
EP2391061B1 (en) Method, apparatus and system for configuring master-slave network devices
US8244793B2 (en) Resetting a HyperTransport link in a blade server
CN104899170A (en) Distributed intelligent platform management bus (IPMB) connection method and ATCA (Advanced Telecom Computing Architecture) machine frame
CN115686872B (en) Memory resource processing equipment, method, device and medium based on BMC (baseboard management controller)
US20100257400A1 (en) Network loop healing apparatus and methods
WO2013075501A1 (en) Method and device for hot-plugging a node
US20130242798A1 (en) Apparatus for duplicating router in building automatic control system and controlling method thereof
US9100336B2 (en) Method for managing a switch chip port, main control board, switch board, and system
US9705823B2 (en) Port status synchronization method, related device, and system
JP2006020224A (en) Communication controller, electronic apparatus, and communication control method
CN115509333A (en) Server collaborative power-on and power-off device, method, system and medium
CN111181766B (en) Redundant FC network system and method for realizing dynamic configuration of switch
CN111211927B (en) Resource synchronization method and device
US9811496B2 (en) Method and apparatus for detecting interface connection between devices
JP2003348109A (en) Data communication system and communication apparatus
JP2010136038A (en) Transmitter, and method for switching system in redundant configuration
JP2000040013A (en) Method for detecting line abnormality for duplex communication system
JP6982246B2 (en) Communication equipment, communication system and communication method
TWI680683B (en) Network management device with wireless transmission

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

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

Country of ref document: EP

Kind code of ref document: A1