WO2016086582A1 - 信号检测方法及装置 - Google Patents

信号检测方法及装置 Download PDF

Info

Publication number
WO2016086582A1
WO2016086582A1 PCT/CN2015/077872 CN2015077872W WO2016086582A1 WO 2016086582 A1 WO2016086582 A1 WO 2016086582A1 CN 2015077872 W CN2015077872 W CN 2015077872W WO 2016086582 A1 WO2016086582 A1 WO 2016086582A1
Authority
WO
WIPO (PCT)
Prior art keywords
connection state
slot
state
interrupt signal
board
Prior art date
Application number
PCT/CN2015/077872
Other languages
English (en)
French (fr)
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 WO2016086582A1 publication Critical patent/WO2016086582A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks

Definitions

  • the present invention relates to the field of communications, and in particular to a signal detection method and apparatus.
  • Synchronous Digital Hierarchy (SDH) devices Multi Service Transfer Platform (MSTP), Packet Transfer Network (PTN) devices, Optical Transport Network (Optical Transport) Data communication equipment such as Network (OTN), carrier-class switches and routers have been developed to date, and have reached unprecedented height and complexity in terms of large capacity, high reliability, hierarchical cooperation, high distribution, and instant response. It's not something that can be done with just two single boards.
  • the architecture that is commonly used is that one or two main control boards (redundant backup) and a series of service boards are formed together to realize the separation and independent work between the control plane and the forwarding plane, but at the same time, it must cooperate fully and quickly. Interacting information to form an integrated and collaborative whole.
  • the traditional method is to provide a hard connection (commonly known as HW line) for quickly detecting the dislocation of a board between the main control board and the service board.
  • the CPU of the main control board can quickly detect the detachment event of the service board through the physical connection, thus triggering the protection switching mechanism.
  • single-board cabling per unit area is becoming more and more dense. With the increase in the number of slots, it may be difficult to lay down this hardwire, but the telecom operators' time requirements for switching will not change. Therefore, how to find a corresponding alternative in the case of the lack of the hard connection becomes a technical problem.
  • the embodiment of the invention provides a signal detection method and device, so as to solve at least the problem of monitoring the detachment event of the service board in the absence of hard connection in the prior art.
  • a signal detection method including: detecting an interrupt signal, the interrupt signal is used to indicate that a current connection state between a board and a slot changes, and the connection state includes at least one of the following: Disconnected; the connection state is compared with the pre-stored connection state, and the plug-in information corresponding to the interrupt signal is obtained; and the corresponding operation is triggered according to the plug-in information.
  • the method before acquiring the interrupt signal, the method further includes: acquiring a connection state of each slot; storing a connection state of each slot to obtain a pre-stored connection state.
  • the plug-in information includes at least one of the following: a slot position, a plug-in state, where the connection state of the board is changed.
  • the current connection state is compared with the current connection state stored in advance, and the plug-in information corresponding to the interrupt signal is obtained, including: when the pre-stored connection state is connected. Comparing the connection state of the interrupt signal with the corresponding slot to determine that the current state is in the unplugged state; when the pre-stored connection state corresponding to the slot is disconnected, the interrupt signal is compared with the connection state of the corresponding slot to determine Currently in the inserted state.
  • the corresponding operation is triggered according to the insertion and removal information, and the protection switching operation of the corresponding slot is triggered when the insertion and removal information indicates that the slot is in the state of the board being pulled out;
  • the switchback operation of the corresponding slot is triggered.
  • the interrupt signal is detected, and the interrupt signal generated when the connection state between the board and the corresponding slot changes is detected through the Layer 2 switch chip.
  • a signal detecting apparatus comprising: a monitoring module configured to detect an interrupt signal, wherein the interrupt signal is used to indicate that a current connection state between the board and the slot changes, and the connection status includes the following: At least one of: connecting and disconnecting; the signal processing module is configured to compare the connection state detected by the monitoring module with the pre-stored connection state, and obtain the plug-in information corresponding to the interrupt signal; the trigger module is set to be processed according to the signal The plug-in information obtained by the module triggers the corresponding operation.
  • the device includes: an obtaining module, configured to acquire a connection state of each slot before acquiring an interrupt signal; and a storage module configured to store a connection state of each slot to obtain a pre-stored connection state.
  • the signal processing module is configured to compare the connection state detected by the monitoring module with a pre-stored connection state by using one of the following manners, and obtain the plug-in information corresponding to the interrupt signal.
  • the first signal processing unit is configured to: when the connection state stored in advance is connected, compare the connection state of the interrupt signal with the corresponding slot to determine that the current state is in the unplugged state; and the second signal processing unit is set to be the slot.
  • the interrupt signal is compared with the connection state of the corresponding slot to determine that it is currently in the inserted state.
  • the triggering module is configured to trigger the corresponding operation according to the insertion and removal information
  • the first triggering unit is configured to: when the insertion and removal information indicating that the slot is in the state of the board being pulled out, The protection switching operation of the corresponding slot is triggered.
  • the second triggering unit is configured to trigger a switchback operation of the corresponding slot when the insertion and removal information indicates that the slot is in the board insertion state.
  • the interrupt signal is detected, and the interrupt signal is used to indicate that the current connection state of the board and the slot is changed.
  • the connection state includes at least one of the following: connecting and disconnecting;
  • the stored connection states are compared, and the plug-in information corresponding to the interrupt signal is obtained; and the corresponding operation is triggered according to the plug-in information.
  • the problem of the detachment event of the monitoring service board is lacking in the case of the lack of the hard-wired connection, thereby achieving the effect of saving the design cost and reducing the wiring density of the board in the unit area, and when the service board is plugged and unplugged.
  • the main control board can obtain the status of the card slot where the current service board is located according to the terminal signal, reduce the query time of the insertion and removal event, and trigger the response time of the corresponding operation.
  • FIG. 1 is a flow chart of signal detection in accordance with an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of a signal detecting apparatus according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing the structure of a signal detecting apparatus according to a preferred embodiment of the present invention.
  • FIG. 4 is a block diagram showing the structure of a signal detecting apparatus according to a preferred embodiment of the present invention.
  • FIG. 5 is a structural block diagram of a signal detecting apparatus according to a preferred embodiment of the present invention.
  • FIG. 6 is a block diagram showing the structure of a signal detecting apparatus according to a preferred embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a connection structure between a main control and each service board through a Layer 2 switch chip according to an embodiment of the present invention
  • Figure 8 is a block diagram showing the structure of a signal detecting device according to an embodiment of the present invention.
  • FIG. 9 is a flow chart showing a signal detecting method according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of signal detection according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • step S102 an interrupt signal is detected.
  • the interrupt signal is used to indicate that the current connection state between the board and the slot changes, and the connection state includes at least one of the following: connecting and disconnecting;
  • step S104 the connection state is compared with the connection state stored in advance, and the plug-in information corresponding to the interrupt signal is obtained.
  • Step S106 triggering a corresponding operation according to the plug-in information.
  • the signal detection method provided by the embodiment of the present invention can be applied to one or two main control boards (redundant backup), and a communication system composed of a plurality of service boards, and steps S102 to S106.
  • the main control board can obtain the interrupt signal of the standby board of the main control board, in which the main control board can pass the interrupt signal of the main control board.
  • the Layer 2 switch chip detects the interrupt signal from the service board or the standby board connected to the main control board.
  • the interrupt signal is used to indicate the connection status between the current slot of the service board or the standby board and the main control board.
  • the connection state corresponding to the interrupt signal is compared with the connection state of each service board and the standby board, and the plug-in information corresponding to the interrupt signal is obtained, and the corresponding operation is triggered according to the plug-in information.
  • an interrupt signal is detected, and the interrupt signal is used to indicate that the current connection state of the board and the slot is changed, and the connection state includes at least one of the following: connecting, disconnecting; connecting the current connection state with the pre-stored connection.
  • the status is compared, and the plug-in information corresponding to the interrupt signal is obtained; the corresponding operation is triggered according to the plug-in information.
  • the design cost is reduced, and the effect of the board density on the board is reduced.
  • the master board can obtain the status of the card slot where the current service board is located according to the terminal signal, and reduce the insertion.
  • step S102 before the interrupt signal is acquired in step S102, the following processing steps may also be performed:
  • Step S96 obtaining connection status of each slot
  • the main control board obtains the connection status of the slots in which the service boards or standby boards are connected to the main control board through the Layer 2 switch.
  • step S98 the connection state of each slot is stored, and a connection state stored in advance is obtained.
  • the main control board stores the connection status of each slot in the slot, so that when the slot is physically inserted and removed, the main control board can pass the pre-stored connection status and the corresponding slot corresponding to the interrupt signal.
  • the connection states are compared and the corresponding processing operations are obtained.
  • the plug-in information includes at least one of the following: a slot in which the connection state with the board changes, and a plug-in state.
  • step S104 compares the connection state with the pre-stored connection state by using one of the following manners, and obtains the plug-in information corresponding to the interrupt signal, including:
  • the interrupt signal is compared with the connection state of the corresponding slot to determine that the connection state is currently being pulled out;
  • the device is in the unplugged state.
  • the master board obtains the current outbound event of the service board connected to the main control board.
  • the slot in which the service board is located generates an interrupt signal, indicating the service board. Pull out.
  • the interrupt signal is compared with the connection state of the corresponding slot to determine that it is currently in the inserted state.
  • determining that the current state is in the inserted state means that the master board obtains the insertion event of the service board currently connected to the main control board, and the slot in which the service board is located generates an interrupt signal to indicate the service.
  • the board is inserted.
  • the step S106 triggers the corresponding operation according to the insertion and removal information, including:
  • the protection switching operation of the corresponding slot is triggered.
  • the switchback operation of the corresponding slot is triggered.
  • the step S102 detects the interrupt signal, including:
  • the interrupt signal generated when the connection status between the board and the corresponding slot changes is detected by the Layer 2 switch chip.
  • a signal detecting device is further provided, which is used to implement the above-mentioned embodiments and preferred embodiments, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus includes: a monitoring module 22, a signal processing module 24, and a triggering module 26, wherein
  • the monitoring module 22 is configured to detect an interrupt signal, where the interrupt signal is used to indicate that the current connection state of the board and the slot changes, and the connection state includes at least one of the following: connecting and disconnecting;
  • the signal processing module 24 is connected to the monitoring module 22, and is configured to compare the connection state detected by the monitoring module 22 with the pre-stored connection state, and obtain the plug-in information corresponding to the interrupt signal;
  • the triggering module 26 establishes a connection with the signal processing module 24, and is configured to trigger a corresponding operation according to the plug-in information obtained by the signal processing module 24.
  • FIG. 3 is a structural block diagram of a signal detecting apparatus according to a preferred embodiment of the present invention.
  • the signal detecting apparatus includes: an obtaining module 20 and a storage module 21, wherein
  • the obtaining module 20 is configured to acquire a connection state of each slot before acquiring the interrupt signal
  • the storage module 21 establishes a connection with the acquisition module 21, and is configured to store the connection state of each slot to obtain a pre-stored connection state.
  • FIG. 4 is a structural block diagram of a signal detecting apparatus according to a preferred embodiment of the present invention.
  • the signal processing module 24 is configured to connect the state and the foregoing in one of the following manners.
  • the stored connection status is compared, and the plug-in information corresponding to the interrupt signal is obtained, including:
  • the first signal processing unit 241 is configured to compare the interrupt signal with the connection state of the corresponding slot when the connection state stored in advance is connected, and determine that the current state is in the unplugged state;
  • the second signal processing unit 242 is configured to compare the interrupt signal with the connection state of the corresponding slot when the previously stored connection state corresponding to the slot is off, and determine that the current state is in the inserted state.
  • FIG. 5 is a structural block diagram of a signal detecting apparatus according to a preferred embodiment of the present invention.
  • the triggering module 26 is configured to trigger a corresponding according to the plugging and unplugging information. Operations, including:
  • the first triggering unit 261 is configured to trigger a protection switching operation of the corresponding slot when the insertion and removal information indicates that the slot is in the state of the board being pulled out;
  • the second triggering unit 262 is configured to trigger a switchback operation of the corresponding slot when the insertion and removal information indicates that the slot is in the board insertion state.
  • FIG. 6 is a structural block diagram of a signal detecting apparatus according to a preferred embodiment of the present invention.
  • the monitoring module 22 includes:
  • the monitoring unit 221 is configured to detect, by using the Layer 2 switch chip, an interrupt signal generated when the connection state between the board and the corresponding slot changes.
  • the signal detection method provided by the embodiment of the present invention is as follows: the physical connection relationship between the main control and each service board through the Layer 2 switch chip, as shown in FIG. 7 .
  • the main control board there is a device called a Layer 2 switch chip, which is responsible for the message exchange between the main control board and the CPU of each service board.
  • Each of the service boards is connected to one port of the Layer 2 switch chip through the 100 Mbps Ethernet technology.
  • the Layer 2 switch chip and the CPU of the main control board are connected through the SGMII bus to implement control and status query of the CPU on the Layer 2 switch chip. Due to the reliability requirements of the telecommunication device, the two main controllers are provided with redundancy protection.
  • the standby main control can be treated as the same as other service boards, that is, the main control can be used.
  • the connection status of all service boards and standby masters is monitored.
  • the LINK status of the corresponding connection port of the Layer 2 switch chip (P2 to Pn in Figure 1) is immediately down.
  • the CPU of the main control board can quickly capture the state change through polling or interrupt mode, which can realize the rapid sensing of the dislocation of the board and achieve the same effect as the HW hard connection.
  • the corresponding connection port LINK status will become up, and the CPU can also be perceived.
  • the impact of the board on the service is more serious, the requirements for the switching time are higher, and the timeliness of the perception is higher.
  • Step S202 Initialize a communication layer 2 switch chip, and obtain and record an initial LINK state of each connection port;
  • Step S204 enable the communication layer 2 switch chip port state change interrupt, and hook the interrupt service response program
  • Step S206 When the physical plug-in board event occurs, the interrupt is generated and sent to the CPU, and the interrupt service response program is called.
  • Step S208 The interrupt service response program reads the LINK status of each port of the L2 switch chip, compares it with the historical status, and identifies the changed port, corresponding to a specific plug-in board slot;
  • Step S210 The interrupt service response program notifies the protection switching module of the specific plug-in board information to implement fast protection switching or failback of the service. At this time, the history status may also be updated.
  • the signal monitoring method and device provided by the embodiment of the present invention can realize the rapid detection of the in-position state of the board by using the existing hardware resources, and the HW hard connection is missing.
  • the equivalent effect of the HW line Under the premise of meeting the 50ms service protection switching time requirement, it not only saves hardware cost investment, but also reduces the density and complexity of single board wiring, reduces signal interference, improves system reliability, and achieves good results.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. Perform the steps shown or described, or separate them into individual integrated circuit modules, or Multiple of these modules or steps are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
  • the technical solution provided by the embodiment of the present invention can be applied to the signal detection process.
  • the technical solution provided by the embodiment of the present invention solves the problem of lacking the detachment event of monitoring the service board in the absence of hard connection by adopting the following technical solutions.
  • the interrupt signal is detected, and the interrupt signal is used to indicate that the current connection state of the board and the slot is changed.
  • the connection state includes at least one of the following: connection, disconnection; comparing the current connection state with the pre-stored connection state. Yes, the plug-in information corresponding to the interrupt signal is obtained; and the corresponding operation is triggered according to the plug-in information.
  • the above solution achieves the effect of saving the design cost and reducing the wiring density of the board in a unit area.
  • the main control board can obtain the card slot where the current service board is located according to the terminal signal.
  • the state reduces the query time when the plug-in event occurs and the response time that triggers the corresponding action.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Details Of Connecting Devices For Male And Female Coupling (AREA)

Abstract

一种信号检测方法及装置,其中,该方法包括:检测到中断信号(S102),中断信号用于指示单板与槽位所处的当前连接状态发生改变,连接状态包括以下至少之一:连接、断开;将连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息(S104);依据插拔信息触发对应操作(S106)。上述技术方案解决了在缺失硬连线的情况下,缺少监测业务单板的脱离事件的问题。

Description

信号检测方法及装置 技术领域
本发明涉及通信领域,具体而言,涉及一种信号检测方法及装置。
背景技术
诸如同步数字体系(Synchronous Digital Hierarchy,简称为SDH)设备、多业务传输平台(Multi Service Transfer Platform,简称为MSTP)、分组传送网(Packet Transfer Network,简称为PTN)设备、光传输网络(Optical Transport Network,简称为OTN)、电信级交换机和路由器等数据通信设备发展到现在,已经在大容量、高可靠性、分层协作、高分发、即时响应等方面达到了前所未有的高度与复杂性,已经不是单单一两块单板就可以完成的事情了。目前普遍采用的架构是,一块或两块主控单板(冗余备份),外加一系列业务单板共同组成,实现控制面与转发面的分离与独立工作,但同时又必须充分合作,快速交互信息,形成既独立又协作的整体。
电信级数据设备除了对可靠性要求极高外,对快速保护倒换的时间要求也极为苛刻,要求业务倒换时间在50ms内必须完成。保护倒换有很多种,有端口级保护,单板级保护,路径级保护等。其中单板级保护,当其中一块业务单板出现故障或者意外脱位时,要求能够以最快速度检测到该事件并触发响应的保护倒换。因此,如何做到对单板脱位的快速检测,成为电信级数据交换设备硬件设计时必须考虑的一个问题。
传统的做法是,在主控单板与业务单板之间提供用于快速检测单板脱位的硬连线(俗称HW线)。主控单板的CPU通过该物理连线可以快速监测到业务单板的脱离事件,从而触发保护倒换机制。然而,随着电信运营商对设备技术复杂、体积及成本的要求越来越高,尤其是低成本但功能齐全技术复杂的接入式设备,单位面积的单板布线越来越密集,随着槽位数目的增加,可能已经很难再布下这条硬连线了,但电信运营商对倒换的时间要求并不会因此而改变。因此如何在该硬连线缺失的情况下,寻找相应的替代方案,成为一个技术难题。
针对现有技术中在缺失硬连线的情况下,缺少监测业务单板的脱离事件的问题,目前尚未提出有效的解决方案。
发明内容
本发明实施例提供了一种信号检测方法及装置,以至少解决现有技术中在缺失硬连线的情况下,缺少监测业务单板的脱离事件的问题。
根据本发明的一个实施例,提供了一种信号检测方法,包括:检测到中断信号,中断信号用于指示单板与槽位当前的连接状态发生改变,连接状态包括以下至少之一:连接、断开;将连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息;依据插拔信息触发对应操作。
在本发明实施例中,在获取中断信号之前,还包括:获取各个槽位的连接状态;存储各个槽位的连接状态,得到预先存储的连接状态。
在本发明实施例中,插拔信息,包括以下至少之一:与单板的连接状态发生改变的槽位、插拔状态。
在本发明实施例中,通过以下方式之一,将所述当前连接状态与预先存储当前的连接状态进行比对,得到中断信号对应的插拔信息,包括:当预先存储的连接状态为连接时,将中断信号与对应槽位的连接状态进行对比,确定当前处于拔出状态;当槽位对应的预先存储的连接状态为断开时,将中断信号与对应槽位的连接状态进行对比,确定当前处于插入状态。
在本发明实施例中,通过以下方式之一,依据插拔信息触发对应操作,包括:当插拔信息指示槽位处于单板拔出状态时,触发对应槽位的保护倒换操作;当插拔信息指示槽位处于单板插入状态时,触发对应槽位的回切操作。
在本发明实施例中,检测到中断信号,包括:通过二层交换芯片,检测到单板与对应槽位的连接状态发生改变时产生的中断信号。
根据本发明的另一个实施例,提供了一种信号检测装置,包括:监测模块,设置为检测到中断信号,中断信号用于指示单板与槽位当前的连接状态发生改变,连接状态包括以下至少之一:连接、断开;信号处理模块,设置为将监测模块检测到的连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息;触发模块,设置为依据信号处理模块得到的插拔信息触发对应操作。
在本发明实施例中,装置包括:获取模块,设置为在获取中断信号之前,获取各个槽位的连接状态;存储模块,设置为存储各个槽位的连接状态,得到预先存储的连接状态。
在本发明实施例中,信号处理模块,设置为通过以下方式之一,将所述监测模块检测到的所述连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息,包括:第一信号处理单元,设置为当预先存储的连接状态为连接时,将中断信号与对应槽位的连接状态进行对比,确定当前处于拔出状态;第二信号处理单元,设置为当槽位对应的预先存储的连接状态为断开时,将中断信号与对应槽位的连接状态进行对比,确定当前处于插入状态。
在本发明实施例中,触发模块,设置为通过以下方式之一,依据插拔信息触发对应操作,包括:第一触发单元,设置为当插拔信息指示槽位处于单板拔出状态时,触发对应槽位的保护倒换操作;第二触发单元,设置为当插拔信息指示槽位处于单板插入状态时,触发对应槽位的回切操作。
通过本发明实施例,采用检测到中断信号,中断信号用于指示单板与槽位所处的当前连接状态发生改变,连接状态包括以下至少之一:连接、断开;将当前连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息;依据插拔信息触发对应操作。解决了在缺失硬连线的情况下,缺少监测业务单板的脱离事件的问题,进而达到了节约设计成本,降低单位面积上单板的布线密度的效果,并且在业务单板发生插拔时,主控单板能够根据终端信号及时获取当前业务单板所在的卡槽的状态,缩减了插拔事件发生的查询时间,以及触发对应操作的响应时间。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是根据本发明实施例的信号检测的流程图;
图2是根据本发明实施例的一种信号检测装置的结构框图;
图3是根据本发明优选实施例的一种信号检测装置的结构框图;
图4是根据本发明优选实施例的一种信号检测装置的结构框图;
图5是根据本发明优选实施例的一种信号检测装置的结构框图;
图6是根据本发明优选实施例的一种信号检测装置的结构框图;
图7是根据本发明实施的主控与各业务单板之间通过二层交换芯片的连接结构示意图;
图8是根据本发明实施的信号检测装置的框架结构示意图;
图9是根据本发明实施的一种信号检测方法的流程示意图。
具体实施方式
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。
在本实施例中提供了一种信号检测方法,图1是根据本发明实施例的信号检测的流程图,如图1所示,该流程包括如下步骤:
步骤S102,检测到中断信号。
其中,该中断信号用于指示单板与槽位当前的连接状态发生改变,连接状态包括以下至少之一:连接、断开;
步骤S104,将连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息。
步骤S106,依据插拔信息触发对应操作。
由上可知,本发明实施例提供的一种信号检测方法可以适用于一块或两块主控单板(冗余备份),外加一系列业务单板共同组成的通信系统中,步骤S102至步骤S106应用于主控单板,本发明实施例中主控单板除了能够获取多个业务单板的中断信号,还能够获取作为主控单板备板的中断信号,其中,主控单板,通过二层交换芯片检测来自各个与主控单板连接的业务单板或备板的中断信号,该中断信号用于指示业务单板或备板当前所处槽位与主控单板的连接状态,将该中断信号对应的连接状态与预先存储的各个业务单板与备板的连接状态进行对比,得到该中断信号对应的插拔信息,并根据该插拔信息触发对应操作。
通过上述步骤,检测到中断信号,中断信号用于指示单板与槽位所处的当前连接状态发生改变,连接状态包括以下至少之一:连接、断开;将当前连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息;依据插拔信息触发对应操作。解决了在缺失硬连线的情况下,缺少监测业务单板的脱离事件的问题,进而达到了节 约设计成本,降低单位面积上单板的布线密度的效果,并且在业务单板发生插拔时,主控单板能够根据终端信号及时获取当前业务单板所在的卡槽的状态,缩减了插拔事件发生的查询时间,以及触发对应操作的响应时间。
在本发明实施例中,在步骤S102,获取中断信号之前,还可以执行以下处理步骤:
步骤S96,获取各个槽位的连接状态;
由上可知,主控单板通过二层交换芯片获取与主控单板连接的各个业务单板或备板所处槽位的连接状态。
步骤S98,存储各个槽位的连接状态,得到预先存储的连接状态。
这里主控单板将获取到的各个槽位的连接状态进行存储,以使得当上述槽位发生物理插拔时,主控单板能够通过该预先存储的连接状态与中断信号对应的各个槽位的连接状态进行比对,得到对应的处理操作。
在本发明实施例中,由上可知,插拔信息,包括以下至少之一:与单板的连接状态发生改变的槽位、插拔状态。
在本发明实施例中,步骤S104通过以下方式之一,将连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息,包括:
方式一,当预先存储的连接状态为连接时,将中断信号与对应槽位的连接状态进行对比,确定当前处于拔出状态;
其中,确定当前处于拔出状态是指主控单板获取当前与主控单板连接的业务单板发生拔出事件,该业务单板所处的槽位对应产生中断信号,指示该业务单板拔出。
方式二,当槽位对应的预先存储的连接状态为断开时,将中断信号与对应槽位的连接状态进行对比,确定当前处于插入状态。
如方式一所述,确定当前处于插入状态是指主控单板获取当前与主控单板连接的业务单板发生插入事件,该业务单板所处的槽位对应产生中断信号,指示该业务单板插入。
在本发明实施例中,步骤S106通过以下方式之一,依据插拔信息触发对应操作,包括:
方式一,当插拔信息指示槽位处于单板拔出状态时,触发对应槽位的保护倒换操作;
方式二,当插拔信息指示槽位处于单板插入状态时,触发对应槽位的回切操作。
在本发明实施例中,步骤S102检测到中断信号,包括:
通过二层交换芯片,检测到单板与对应槽位的连接状态发生改变时产生的中断信号。
在本实施例中还提供了一种信号检测装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图2是根据本发明实施例的一种信号检测装置的结构框图,如图2所示,该装置包括:监测模块22、信号处理模块24、和触发模块26,其中,
监测模块22,设置为检测到中断信号,中断信号用于指示单板与槽位当前的连接状态发生改变,连接状态包括以下至少之一:连接、断开;
信号处理模块24,与监测模块22建立连接,设置为将监测模块22检测到的连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息;
触发模块26,与信号处理模块24建立连接,设置为依据信号处理模块24得到的插拔信息触发对应操作。
在本发明实施例中,图3是根据本发明优选实施例的一种信号检测装置的结构框图,如图3所示,信号检测装置包括:获取模块20和存储模块21,其中,
获取模块20,设置为在获取中断信号之前,获取各个槽位的连接状态;
存储模块21,与获取模块21建立连接,设置为存储各个槽位的连接状态,得到预先存储的连接状态。
在本发明实施例中,图4是根据本发明优选实施例的一种信号检测装置的结构框图,如图4所示,信号处理模块24,设置为通过以下方式之一,将连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息,包括:
第一信号处理单元241,设置为当预先存储的连接状态为连接时,将中断信号与对应槽位的连接状态进行对比,确定当前处于拔出状态;
第二信号处理单元242,设置为当槽位对应的预先存储的连接状态为断开时,将中断信号与对应槽位的连接状态进行对比,确定当前处于插入状态。
在本发明实施例中,图5是根据本发明优选实施例的一种信号检测装置的结构框图,如图5所示,触发模块26,设置为通过以下方式之一,依据插拔信息触发对应操作,包括:
第一触发单元261,设置为当插拔信息指示槽位处于单板拔出状态时,触发对应槽位的保护倒换操作;
第二触发单元262,设置为当插拔信息指示槽位处于单板插入状态时,触发对应槽位的回切操作。
在本发明实施例中,图6是根据本发明优选实施例的一种信号检测装置的结构框图,如图6所示,监测模块22,包括:
监测单元221,设置为通过二层交换芯片,检测到单板与对应槽位的连接状态发生改变时产生的中断信号。
综上所述,本发明实施例提供的一种信号检测方法,具体实现方式为:主控与各业务单板之间通过二层交换芯片的物理连接关系,见图7。
在主控单板上,有一块称之为二层交换芯片的器件,承担主控单板与各业务单板CPU之间的通信连接报文交换作用。通过百兆以太技术,每个业务单板连接到二层交换芯片的一个端口。同时,二层交换芯片与主控单板CPU之间通过SGMII总线连接,实现CPU对二层交换芯片的控制、状态查询等。由于电信设备的可靠性要求,提供了主备两块主控实现冗余保护,但在本发明实施例的关注层面,可以将备用主控与其它业务单板等同对待,即主用主控可同时监控所有业务单板和备用主控的连接状态。
当其中一块业务单板被物理拔板后,会立即体现到二层交换芯片相应的连接端口(图1中的P2到Pn某端口)的LINK状态down掉。主控单板CPU通过轮询或者中断方式快速捕捉该状态变化,即可实现对单板脱位的快速感知,实现与HW硬连线相同的效果。同理,在单板插上时,相应的连接端口LINK状态会变成up,CPU也同样可以感知到。只不过拔板对业务的影响比较严重,对倒换时间的要求更高,对感知的及时性要求更高。
那么在软件层面,如何实现CPU对二层交换芯片端口LINK状态的快速感知,一般有两种方案。其一是通过起小粒度定时器(例如10ms)定期查询LINK状态,这种方式优点是实现简单方便,缺点是高频度读取芯片状态,CPU占用率较高,耗费资源,对其它事务的处理有一定影响;而且即使是目前linux等操作系统通常能支持的最小粒度10ms,相对于保护倒换的50ms要求而言,这部分占用的时间也比较长。另外一种方案是通过中断方式,在二层交换芯片的端口LINK状态发生变化的时候,向CPU传递中断信号,CPU捕捉中断,实现快速感知;这种方案虽然实现稍微麻烦一些,但优点非常明显,对CPU的平均占用率非常低,因为只有状态发生变化时才发起中断,而这个事件的发生几率是很低的,另外就是中断速度非常快,省去了轮询的10ms,为保护倒换的其它事务处理预留更多的宝贵时间。实现方案简要框架,参见图8。
技术方案实现步骤(参见图9):
步骤S202:初始化通信二层交换芯片,获取并记录各连接端口的初始LINK状态;
步骤S204:使能通信二层交换芯片端口状态变化中断,挂接中断服务响应程序;
步骤S206:在物理插拔板事件发生时,中断产生并送至CPU,调用中断服务响应程序;
步骤S208:中断服务响应程序读取L2交换芯片各端口LINK状态,并与历史状态进行比较,识别变化端口,对应到具体的插拔板槽位;
步骤S210:中断服务响应程序将具体的插拔板信息通知保护倒换模块,实现业务的快速保护倒换或回切,此时,还可以对历史状态进行更新。
由上可知本发明实施例提供的一种信号监测方法及装置,通过巧妙利用现有硬件资源,在HW硬连线缺失的情况下,实现了单板在位状态的快速检测,达到了与硬HW线等同的效果。在满足50ms的业务保护倒换时间要求的前提下,既节省了硬件成本投入,又降低了单板布线密度与复杂性,减少了信号干扰,提高了系统可靠性,取得了良好的效果。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将 它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
工业实用性
本发明实施例提供的技术方案可以应用于信号检测过程中,本发明实施例提供的技术方案通过采用以下技术方案解决了在缺失硬连线的情况下,缺少监测业务单板的脱离事件的问题:检测到中断信号,中断信号用于指示单板与槽位所处的当前连接状态发生改变,连接状态包括以下至少之一:连接、断开;将当前连接状态与预先存储的连接状态进行比对,得到中断信号对应的插拔信息;依据插拔信息触发对应操作。通过上述方案达到了节约设计成本,降低单位面积上单板的布线密度的效果,并且在业务单板发生插拔时,主控单板能够根据终端信号及时获取当前业务单板所在的卡槽的状态,缩减了插拔事件发生的查询时间,以及触发对应操作的响应时间。

Claims (10)

  1. 一种信号检测方法,包括:
    检测到中断信号,所述中断信号用于指示单板与槽位当前的连接状态发生改变,所述连接状态包括以下至少之一:连接、断开;
    将所述连接状态与预先存储的连接状态进行比对,得到所述中断信号对应的插拔信息;
    依据所述插拔信息触发对应操作。
  2. 根据权利要求1所述的方法,其中,在获取中断信号之前,还包括:
    获取各个槽位的连接状态;
    存储所述各个槽位的连接状态,得到所述预先存储的连接状态。
  3. 根据权利要求1所述的方法,其中,所述插拔信息,包括以下至少之一:与单板的连接状态发生改变的槽位、插拔状态。
  4. 根据权利要求3所述的方法,其中,通过以下方式之一,将所述当前连接状态与预先存储当前的连接状态进行比对,得到所述中断信号对应的插拔信息,包括:
    当所述预先存储的连接状态为连接时,将所述中断信号与对应所述槽位的连接状态进行对比,确定当前处于拔出状态;
    当所述槽位对应的预先存储的连接状态为断开时,将所述中断信号与对应所述槽位的连接状态进行对比,确定当前处于插入状态。
  5. 根据权利要求4所述的方法,其中,通过以下方式之一,依据所述插拔信息触发对应操作,包括:
    当所述插拔信息指示所述槽位处于单板拔出状态时,触发对应所述槽位的保护倒换操作;
    当所述插拔信息指示所述槽位处于单板插入状态时,触发对应所述槽位的回切操作。
  6. 根据权利要求1所述的方法,其中,所述检测到中断信号,包括:
    通过二层交换芯片,检测到所述单板与对应槽位的连接状态发生改变时产生的中断信号。
  7. 一种信号检测装置,包括:
    监测模块,设置为检测到中断信号,所述中断信号用于指示单板与槽位当前的连接状态发生改变,所述连接状态包括以下至少之一:连接、断开;
    信号处理模块,设置为将所述监测模块检测到的所述连接状态与预先存储的连接状态进行比对,得到所述中断信号对应的插拔信息;
    触发模块,设置为依据所述信号处理模块得到的所述插拔信息触发对应操作。
  8. 根据权利要求7所述的装置,其中,所述装置包括:
    获取模块,设置为在获取中断信号之前,获取各个槽位的连接状态;
    存储模块,设置为存储所述各个槽位的连接状态,得到所述预先存储的连接状态。
  9. 根据权利要求7所述的装置,其中,所述信号处理模块,设置为通过以下方式之一,将所述监测模块检测到的所述连接状态与预先存储的连接状态进行比对,得到所述中断信号对应的插拔信息,包括:
    第一信号处理单元,设置为当所述预先存储的连接状态为连接时,将所述中断信号与对应所述槽位的连接状态进行对比,确定当前处于拔出状态;
    第二信号处理单元,设置为当所述槽位对应的预先存储的连接状态为断开时,将所述中断信号与对应所述槽位的连接状态进行对比,确定当前处于插入状态。
  10. 根据权利要求9所述的装置,其中,所述触发模块,设置为通过以下方式之一,依据所述插拔信息触发对应操作,包括:
    第一触发单元,设置为当所述插拔信息指示所述槽位处于单板拔出状态时,触发对应所述槽位的保护倒换操作;
    第二触发单元,设置为当所述插拔信息指示所述槽位处于单板插入状态时,触发对应所述槽位的回切操作。
PCT/CN2015/077872 2014-12-02 2015-04-29 信号检测方法及装置 WO2016086582A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410720476.2A CN105656711A (zh) 2014-12-02 2014-12-02 信号检测方法及装置
CN201410720476.2 2014-12-02

Publications (1)

Publication Number Publication Date
WO2016086582A1 true WO2016086582A1 (zh) 2016-06-09

Family

ID=56090913

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/077872 WO2016086582A1 (zh) 2014-12-02 2015-04-29 信号检测方法及装置

Country Status (2)

Country Link
CN (1) CN105656711A (zh)
WO (1) WO2016086582A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112565022A (zh) * 2020-12-23 2021-03-26 新华三技术有限公司 一种端口的检测方法和检测装置
CN113037653A (zh) * 2019-12-24 2021-06-25 中兴通讯股份有限公司 交换设备、控制方法、装置、终端设备和存储介质
CN114184935A (zh) * 2021-11-30 2022-03-15 上海御渡半导体科技有限公司 一种ate板卡状态显示装置和显示方法

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107888519A (zh) * 2017-11-14 2018-04-06 湖北三江航天红峰控制有限公司 一种局域千兆以太网交换机
CN108600044B (zh) * 2018-03-30 2020-11-20 新华三信息安全技术有限公司 一种接口状态获取方法、装置及设备
CN108628714B (zh) * 2018-04-27 2022-02-01 上海晨兴希姆通电子科技有限公司 移动终端的测试方法及系统
CN111385133A (zh) * 2018-12-29 2020-07-07 中兴通讯股份有限公司 资源管理方法及系统
CN110868366A (zh) * 2019-12-09 2020-03-06 盛科网络(苏州)有限公司 基于asic的通信设备板级保护方法和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040246982A1 (en) * 2003-06-06 2004-12-09 Sun Microsystems, Inc. Methods and apparatus for configuring a packet switching (PS) backplane to support various configurations
CN1873632A (zh) * 2005-06-03 2006-12-06 英业达股份有限公司 热插拔的外围装置识别系统及其方法
CN101008911A (zh) * 2007-02-06 2007-08-01 杭州华为三康技术有限公司 实现虚拟热插拔的方法及实现虚拟热插拔的主机设备
CN101159590A (zh) * 2007-08-02 2008-04-09 中兴通讯股份有限公司 检测单板插拔情况的系统和方法
CN103530265A (zh) * 2013-10-24 2014-01-22 烽火通信科技股份有限公司 实现电子设备的cf卡安全热插拔的装置及方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100341255C (zh) * 2002-12-26 2007-10-03 华为技术有限公司 一种交叉主备保护的热备份方法
CN100375402C (zh) * 2004-07-08 2008-03-12 中兴通讯股份有限公司 一种防止单板在热插拔过程中主备倒换电路误操作的方法
CN100356707C (zh) * 2004-11-16 2007-12-19 华为技术有限公司 单板保护倒换装置
CN101668358B (zh) * 2009-09-30 2012-06-06 中兴通讯股份有限公司 保护倒换的校验方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040246982A1 (en) * 2003-06-06 2004-12-09 Sun Microsystems, Inc. Methods and apparatus for configuring a packet switching (PS) backplane to support various configurations
CN1873632A (zh) * 2005-06-03 2006-12-06 英业达股份有限公司 热插拔的外围装置识别系统及其方法
CN101008911A (zh) * 2007-02-06 2007-08-01 杭州华为三康技术有限公司 实现虚拟热插拔的方法及实现虚拟热插拔的主机设备
CN101159590A (zh) * 2007-08-02 2008-04-09 中兴通讯股份有限公司 检测单板插拔情况的系统和方法
CN103530265A (zh) * 2013-10-24 2014-01-22 烽火通信科技股份有限公司 实现电子设备的cf卡安全热插拔的装置及方法

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113037653A (zh) * 2019-12-24 2021-06-25 中兴通讯股份有限公司 交换设备、控制方法、装置、终端设备和存储介质
CN113037653B (zh) * 2019-12-24 2024-05-28 中兴通讯股份有限公司 交换设备、控制方法、装置、终端设备和存储介质
CN112565022A (zh) * 2020-12-23 2021-03-26 新华三技术有限公司 一种端口的检测方法和检测装置
CN114184935A (zh) * 2021-11-30 2022-03-15 上海御渡半导体科技有限公司 一种ate板卡状态显示装置和显示方法

Also Published As

Publication number Publication date
CN105656711A (zh) 2016-06-08

Similar Documents

Publication Publication Date Title
WO2016086582A1 (zh) 信号检测方法及装置
EP2352253B1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
RU2606053C2 (ru) Метод управления изменением состояния в узле межсоединения
EP2426827A1 (en) Method and network system for implementing user port orientation in multi-machine backup scenario of broadband remote access server
CN103780407A (zh) 分布式弹性网络互连(drni)中网关动态切换方法和装置
CN108462601B (zh) 应用于光传输网络的多保护组倒换方法、装置及网元设备
TWI455525B (zh) 環狀網路之復原方法
CN108804260B (zh) 一种srio系统倒换的方法和装置
CN101729426A (zh) 一种虚拟路由冗余协议主备用设备快速切换的方法及系统
CN100550783C (zh) 热插拔的检测和处理方法
CN110912815B (zh) 一种网元防成环方法、装置、设备及可读存储介质
CN105790965A (zh) 链路切换方法、装置及线卡
KR101961053B1 (ko) 불량 광 네트워크 유닛을 검출하는 방법, 장치 및 시스템
EP0748546A1 (en) Hierarchical synchronization method
CN111585835B (zh) 一种带外管理系统的控制方法、装置和存储介质
US11258666B2 (en) Method, device, and system for implementing MUX machine
WO2016124044A1 (zh) 无源光网络设备告警信息处理方法及光线路终端
JP6383232B2 (ja) 中継システムおよびスイッチ装置
CN111698157B (zh) 一种链路管理方法、板卡及交换机
CN103414591A (zh) 一种端口故障恢复时的快速收敛方法和系统
WO2017146718A1 (en) Ring protection network division
EP2698949B1 (en) METHOD AND SYSTEM FOR SETTING DETECTION FRAME TIMEOUT DURATION OF ETHERNET NODEs
CN108881070A (zh) 用于在Smart Link组中的选择端口的方法和装置
CN114301763A (zh) 分布式集群故障的处理方法及系统、电子设备及存储介质
CN108616461B (zh) 一种策略切换方法及装置

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

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

Country of ref document: EP

Kind code of ref document: A1