WO2012034366A1 - 用于通讯设备的接口检测方法和装置 - Google Patents

用于通讯设备的接口检测方法和装置 Download PDF

Info

Publication number
WO2012034366A1
WO2012034366A1 PCT/CN2011/070360 CN2011070360W WO2012034366A1 WO 2012034366 A1 WO2012034366 A1 WO 2012034366A1 CN 2011070360 W CN2011070360 W CN 2011070360W WO 2012034366 A1 WO2012034366 A1 WO 2012034366A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
board
main control
control unit
detection
Prior art date
Application number
PCT/CN2011/070360
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 WO2012034366A1 publication Critical patent/WO2012034366A1/zh

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0751Error or fault detection not based on redundancy
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3041Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is an input/output interface
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3055Monitoring arrangements for monitoring the status of the computing system or of the computing system component, e.g. monitoring if the computing system is on, off, available, not available

Definitions

  • the present invention relates to the field of detection of communication devices, and more particularly to an interface detection method and apparatus for a communication device.
  • the system framework of a communication device usually includes: a network element management system EMS (Element
  • the interface status between the two directly reflects the stability of the equipment. For example, in the engineering network, if the communication status of the upper and lower communication interfaces is unsatisfactory or intermittent, the service will be interrupted, which will cause great trouble to the project operation. At present, there is still no better technology to solve the detection of the communication interface of the device.
  • the existing method is mainly based on manual operation. Log in to the main control unit of the device through a terminal command, and manually press the command to be executed to detect the connection status of the communication interface of the device.
  • a primary object of the present invention is to provide an interface detection method and apparatus for a communication device to solve the problem of the detection efficiency of the existing interface detection mode.
  • an interface detection method for a communication device including: the main control unit sends a detection data packet to a board according to the received detection command to detect an interface between the main control unit and the board.
  • connection status When the connection status of the interface is disconnected, the operation data of the main control unit and the board are collected; the error type of the interface is located according to the collected operation data and the pre-stored interface error evaluation rule.
  • the method further includes: screening the communication device to be detected according to a predetermined rule, and the communication device needs to be Detected interface.
  • the predetermined rule is to detect only the online board of the online communication device.
  • the main control unit sends the detection data packet to the board according to the received detection command to detect the connection status of the interface between the main control unit and the board.
  • the main control unit sends the detection data packet to the board according to the predetermined number of times and the predetermined time interval.
  • the main control unit determines that the connection status of the interface is disconnected.
  • the method further includes: an operation data generation information file of the residence collection.
  • the running data also includes: the IP address of the communication device, the slot number of the board, and the start and end time of the detection.
  • the error type of the positioning interface includes: matching the field value representing the interface state in the running data with the pre-stored interface error judging rule; and locating the error type of the interface according to the matching result.
  • an interface detecting apparatus for a communication device including: a detecting unit, configured to send a detection data packet to a board according to the received detection command to detect the main control unit and the board The connection state of the interface; the data collection unit is configured to set the operation data of the main control unit and the board when the detection unit detects that the connection state of the interface is disconnected; the positioning analysis unit is set to be based on the data The operation data collected by the set unit and the error type of the pre-stored interface error evaluation rule positioning interface.
  • the detecting device further includes: a pre-processing unit configured to filter out the communication device to be detected according to a predetermined rule and an interface to be detected by the communication device.
  • the control unit is automatically controlled to detect the interface connection status of the board by detecting the command, and the error type of the interface is automatically located by the error evaluation rule, thereby saving the time and manpower of the interface detection and improving the interface detection. s efficiency.
  • FIG. 4 is a block diagram of an interface detecting apparatus according to Embodiment 2 of the present invention
  • FIG. 5 is a flowchart of processing of a preprocessing unit in Embodiment 2
  • FIG. 6 is a flowchart showing a processing procedure of a detecting unit in Embodiment 2.
  • Figure 7 is a flow chart showing the processing of the document output unit in the second embodiment; and
  • Figure 8 is a flow chart showing the processing of the positioning analysis unit in the second embodiment.
  • Step S102 The main control unit sends a detection data packet to the board according to the received detection command to detect a connection state of the interface between the main control unit and the board.
  • step S104 when the connection state of the interface is disconnected, the operation data of the main control unit and the board are collected.
  • step S106 locating the error type of the interface according to the collected operational data and the pre-stored interface error evaluation rule.
  • the control unit automatically controls the interface connection status of the board by detecting the command, and automatically locates the error type of the interface by using an error judging rule, thereby saving the time and manpower of the interface detection, and improving the interface detection. s efficiency.
  • the method further includes: screening the communication device to be detected and the interface to be detected by the communication device according to a predetermined rule, and the predetermined rule may be detecting only the online board of the online communication device.
  • the step S102 includes: the main control unit sends the detection data packet to the board according to the predetermined number of times and the predetermined time interval; when the main control unit does not receive the feedback information of the board within the predetermined time period, the connection status of the interface is determined.
  • the detection packet can use the ping packet.
  • the method further includes: generating an information file according to the collected operational data, where the running data further includes: an IP address of the communication device, a slot number of the board, and a start and end time of the detection.
  • the foregoing step S106 includes: matching the field value indicating the interface state in the running data with the pre-stored interface error judging rule; and locating the error type of the interface according to the matching result.
  • Fig. 2 is a block diagram showing an interface detecting apparatus of an embodiment of the present invention. As shown in FIG. 2, the interface detecting device includes: a detecting unit 10, a data collecting unit 20, and a positioning analyzing unit 30.
  • the detecting unit 10, the data collecting unit 20 and the positioning analyzing unit 30 are sequentially connected, wherein the detecting unit 10 is configured to send a detection data packet to the board according to the received detection command to detect the relationship between the main control unit and the board.
  • the connection state of the interface; the data collection unit 20 is configured to collect the operation data of the main control unit and the board when the detection unit 10 detects that the connection state of the interface is disconnected; the positioning analysis unit 30 is set to be based on the data.
  • Embodiment 1 This embodiment describes a detailed process of interface detection of a communication device. As shown in FIG. 3, the following steps are included: In step S302, the upper network element management system EMS is used to filter the entire network device and the corresponding board slot.
  • step S302 can be implemented by: performing online, offline, or broken link scanning on the entire network device, and retaining only the online device type and corresponding IP, and storing in a configuration file for storing the device type and IP;
  • the selected device has different filtering criteria for different types of devices, and then filters out the slot number of the board that needs to be checked for interface status and saves it in an array variable.
  • Step S304 The main control unit sends a command to the board, and the board reports and reports the report within a specified time.
  • step S304 can be implemented in the following manner: For each slot board that needs to be detected by each device, the main control unit sends a command packet of a certain number of times and a certain time interval; after receiving the data packet, the board should The feedback is reported to the main control unit. Otherwise, the interface of the board is faulty. If the communication is abnormal, you need to collect the relevant data of the main control unit immediately after detecting the device. In the log file, both the device type and the corresponding IP are automatically recorded in the statistical document. Step S306, the real-time changing statistical document and the device log document are automatically generated during the detection runtime.
  • the above step 4 can be implemented in the following manner: First, obtain the device IP of the interface abnormality in the statistical document; search for the IP address of the device with the abnormal interface in the device log document set, and obtain the log file of the device; Information about the master unit of the collection. Step S308, after detecting all the device interfaces, obtaining information related to the output document, and automatically matching the interface error by matching with the error evaluation rule.
  • Embodiment 2 This embodiment describes an interface detecting device in actual use. As shown in FIG. 4, the interface detecting device includes: a detecting unit 10, a data collecting unit 20, a positioning analyzing unit 30, an interface communication unit 40, and a pre- Processing unit 50 and document output unit 60.
  • the interface communication unit 40, the detecting unit 10, the data collecting unit 20 and the positioning analyzing unit 30 are sequentially connected, the pre-processing unit 50 is connected to the detecting unit 10, and the document output unit 60 is connected to the data collecting unit 20 and the positioning analyzing unit 20, respectively.
  • the interface communication unit 40 is connected to the main control unit of the communication device, and is responsible for issuing the command data of the main control unit and the communication status of the reporting interface. The command data is sent and the feedback delay is controlled to determine whether the communication status of the interface is good, and the feedback information is reported to the main control unit.
  • the pre-processing unit 50 is connected to the main control unit.
  • each device Before the command data is sent to the board by the main control unit, in order to achieve the adaptability of different existing network environments and support different network element management systems, each device needs to be pre-processed. Processes, filters, and eliminates devices, boards, and slots that are not required for interface state judgment to shorten system running time and further increase the effective time ratio.
  • the function of the user-defined input device type is also supported, that is, the inspection is performed only for the input device type, and the rest are ignored.
  • the function of the detecting unit 10 is implemented by logging in to the device main control unit through the command line terminal. For each individual device, the interface communication unit sends command data at a fixed time interval and a fixed number of times according to the slot number from small to large.
  • the communication state of the interface is considered abnormal, and the data related to the main control unit is collected by the data collection unit 20.
  • the data collection unit 20 records the IP address of the device with the abnormal interface and the corresponding slot number of the board, and the start, end, and running time of the system detection, and the field operation of the main control unit when the detection unit 10 detects the interface abnormality.
  • the data is sent to the document output unit 60.
  • the document output unit 60 receives the related data collected by the data collection unit 20, and generates a real-time changed information document according to the collected data.
  • the generated information document is divided into two types: a statistical document: saves all existing interface abnormalities.
  • FIG. 5 is a flowchart of the processing of the pre-processing unit in the second embodiment. As shown in FIG.
  • Step S502 Exporting reports of all network element devices in the entire network from the EMS of the network element management system form. Since the EMSs used in different live networks may be inconsistent, it is necessary to consider different report formats caused by different EMS versions.
  • Step S504 determining whether the detected device type is a custom device type. For the case where there is a user-defined input device type, only the type of the input is detected, and step S506 is performed; otherwise, according to the default supported device type detection, step S510 is performed. Step S506, obtaining a customized device type and an IP address. In the present embodiment, the device type to be detected and the IP address are acquired from the table derived in step S502.
  • Step S508 obtaining an online state of the device of the custom type from the EMS.
  • the online, offline, or disconnected state of each network element device can be obtained on the server side. In this embodiment, only online devices are considered.
  • Step 4 gathers S510 to obtain the device type and IP supported by default.
  • step S512 the online state of the device of the type supported by the EMS is obtained from the EMS.
  • the step S514 is performed on the EMS to determine whether the device to be detected is online. If no, step S516 is performed to filter the device; if yes, step S518 is performed.
  • Step S516, filtering out the communication device that is not online.
  • the device type and IP can be saved in a configuration file, with each line of the configuration file representing a device type and its IP.
  • step S524 it is determined whether the slot is online. If the result is saved in step S520, the slot is determined to be online, that is, whether the slot is inserted with a board. Also to save time, only the slots in the line are detected. Step S526, obtaining a device that needs to be detected, and a board interface that the device needs to detect. The filtered results can be saved to the final array variable.
  • Fig. 6 is a flow chart showing the processing of the detecting unit in the second embodiment. In this embodiment, the board interface is detected by detecting the slotted position of the board. As shown in FIG. 6, the following steps are included: Step 4: S602, initial 4 ⁇ Current Cao number and abnormal identifier.
  • Step S604 The current slot receives the Ping packet sent by the upper interface communication unit, and the ping packet size, the number of times, and the time interval may be preset.
  • Step S606 Determine whether the board reports feedback within a specified period of time. If the feedback information of all the ping packets is reported to the interface communication unit within the specified time, the board communication interface is normal, and step S610 is performed; otherwise, step S608 is performed.
  • Step 4 gathers S610 and moves to the next ⁇ Cao position.
  • Fig. 7 is a flow chart showing the processing of the document output unit in the second embodiment. As shown in FIG.
  • Step S702 Obtain the time when the system starts running, and output to the first line of the statistical document.
  • Step S704 receiving a signal.
  • the received signals are classified into three types: one for the device log file, the second for the statistical document, and the third signal is the common signal common to the two types of output documents, wherein the first signal comes from the interface detection unit.
  • the second signal is from the positioning analysis unit, and the third signal can be from the interface detection unit or the positioning analysis unit.
  • Step S708 updating the log document in real time.
  • step S608 For the signal of the device log file, since it is a real-time signal, it needs to be continuously written to the log. This step is triggered by step S608 shown in FIG.
  • the network element device is switched in step S618 shown in FIG. 6, a new device log is created, and the log file name is device type + device IP + current system time.
  • step S710 it is determined whether the current device log information is outputted. If yes, step S712 is performed. If no, step S708 is performed. Step S712, creating a log file of the next device.
  • step S714 it is determined whether it is a statistical document signal, and if yes, step S720 is performed; otherwise, step S716 is performed.
  • Step S716 Add a conclusion of the positioning analysis after the corresponding slot number in the statistical document.
  • step S718 it is determined whether it is a common signal, and if yes, step S720 is performed.
  • step S720 information is outputted in two documents at the same time.
  • the signal triggered by the step S616 shown in FIG. 6 is received, that is, the common signal indicates that the interface communication status is abnormal, and the device type and the corresponding IP address of the current interface communication failure need to be added to the statistical document immediately.
  • the field data of the master unit of the set is output.
  • Step S722 determining whether the information of all devices is outputted, if yes, executing step S724; if not, executing step S704, that is, performing the above output flow cyclically. Step S724, obtaining the time when the system ends, calculating the system running time, and outputting to the bottom of the statistical document.
  • FIG. 8 is a flow chart showing the processing of the positioning analysis unit in the second embodiment. As shown in FIG. 8, the following steps are included: Step S802, the current number of related fields is set to zero. Step S804, after detecting all communication interfaces of one device, acquiring field data collected in the device log file. Step S806, comparing the relevant field values in the data with the rules according to the added error evaluation rule.
  • Step S808 determining whether the value of the related field matches a certain rule in the error evaluation rule, and if yes, performing step 4 to S810; if not, performing step 4 to S814.
  • Step 4 gathers S810, and the matching is successful, and the positioning conclusion is obtained.
  • Step S812 sending a signal to the document output unit, requesting to add a positioning conclusion in the statistical document, so that the user can understand the reason that the interface is unreasonable in a more real-time and intuitive manner.
  • Step S816, determining whether the current field is greater than the maximum number of rules, if yes, executing step S818; if not, executing step S806.
  • Step 4 gathers S818, if 111 > 1 ⁇ , that no matching rule is found, is included in the queue of legacy questions, needs to be manually analyzed, and a new rule is added in the error evaluation rule, and the process goes to step S810.
  • the control unit automatically controls the connection state of the board interface by detecting the command, thereby saving the time and labor of the interface detection and improving the efficiency of the interface detection.
  • the operation is simple, the only thing that needs to be manually operated is the software that installs the running script, and several simple variables that need to be input when the script starts running.
  • the output document is automatically generated, including the statistical information document and
  • the whole process record document of each device communication interface communication the document contains all the data required for positioning, and the human participation in analysis and positioning is transformed into a system. Automatic positioning reduces the cumbersome and time-consuming of the human positioning problem.
  • the above interface detection method can adapt to the existing network environment of various transmission networks, and supports different network element management systems and different types of communication equipment, especially MSTP. device. Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general-purpose computing device, which can be concentrated on a single computing device or distributed over a network composed of multiple computing devices.
  • the computing device may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the above is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the scope of the present invention are intended to be included within the scope of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Mathematical Physics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Description

用于通讯设备的接口检测方法和装置 技术领域 本发明涉及通讯设备的检测领域, 尤其涉及一种用于通讯设备的接口检 测方法和装置。 背景技术 通讯设备的系统框架通常包括: 网元管理系统 EMS ( Elements
Management System ), 主控单元 (代理层或控制平面) 和底层设备单板。 与 设备运行和工程维护息息相关的是主控单元和底层设备单板, 这两者之间的 接口状态直接反映出设备稳定性。 例如, 在工程现网, 若上下层通讯接口的 通信状态不通或者断断续续, 则会导致业务中断,给工程运行带来艮大麻烦。 目前, 涉及设备通讯接口的检测仍然没有一种较好的技术来解决。 现有 的方法主要还是以人工操作为主, 通过终端命令登陆到设备主控单元上, 手 动敲入待执行的命令, 来检测设备通讯接口连接状态。 并且, 当出现接口不 通时, 也要人为操作输入一系列命令来釆集现场信息以定位接口错误。 这样 的接口检测方式, 当设备规模小时, 可以釆用; 而对于大规模的现网, 若遇 到接口状态不稳定情况较严重时, 这种以人为千预为主的检测方式, 将会花 费相当大的时间和人力, 检测效率非常低。 发明内容 本发明的主要目的在于提供一种用于通讯设备的接口检测方法和装置, 以解决现有的接口检测方式检测效率氐的问题。 根据本发明的一个方面, 提供了一种用于通讯设备的接口检测方法, 包 括: 主控单元根据所接收的检测命令向单板发送检测数据包以检测主控单元 与单板之间的接口的连接状态; 当接口的连接状态为断开时, 釆集主控单元 和单板的运行数据; 才艮据所釆集的运行数据以及预存的接口错误评判规则定 位接口的错误类型。 主控单元根据所接收的检测命令向单板发送检测数据包以检测主控单元 与单板之间的接口的连接状态之前还包括: 按预定规则筛选出需检测的通讯 设备以及该通讯设备需检测的接口。 预定规则为仅检测在线通讯设备的在线单板。 主控单元根据所接收的检测命令向单板发送检测数据包以检测主控单元 与单板之间的接口的连接状态包括: 主控单元按预定次数和预定时间间隔向 单板发送检测数据包; 当主控单元在预定时间段内未收到单板的反馈信息, 则判定接口的连接状态为断开。 在釆集所述主控单元和所述单板的运行数据之后还包括: 居所釆集的 运行数据生成信息文档。 运行数据还包括: 通讯设备的 IP地址、单板的槽位号以及检测的开始和 结束时间。 根据所釆集的运行数据以及预存的接口错误评判规则定位接口的错误类 型包括: 将运行数据中表征接口状态的字段值与预存的接口错误评判规则进 行匹配; 根据匹配结果定位接口的错误类型。 检测数据包为 ping包。 根据本发明的另一方面, 提供了一种用于通讯设备的接口检测装置, 包 括: 检测单元, 设置为根据所接收到的检测命令向单板发送检测数据包以检 测主控单元与单板之间的接口的连接状态; 数据釆集单元, 设置为当检测单 元检测到接口的连接状态为断开时, 釆集主控单元和单板的运行数据; 定位 分析单元, 设置为根据数据釆集单元所釆集的运行数据以及预存的接口错误 评判规则定位接口的错误类型。 检测装置还包括: 预处理单元, 设置为按预定规则筛选出需检测的通讯 设备以及该通讯设备需检测的接口。 在本发明中, 通过检测命令来控制主控单元自动化地检测单板的接口连 接状态, 并通过错误评判规则自动地定位接口的错误类型, 从而节省了接口 检测的时间和人力, 提高了接口检测的效率。 附图说明 此处所说明的附图用来提供对本发明的进一步理解, 构成本申请的一部 分, 本发明的示意性实施例及其说明用于解释本发明, 并不构成对本发明的 不当限定。 在附图中: 图 1示出了本发明实施例的接口检测方法流程图; 图 2示出了本发明实施例的接口检测装置框图; 图 3示出了本发明实施例一的接口检测方法流程图; 图 4示出了本发明实施例二的接口检测装置框图; 图 5示出了实施例二中的预处理单元处理流程图; 图 6示出了实施例二中的检测单元处理流程图; 图 7示出了实施例二中的文档输出单元处理流程图; 以及 图 8示出了实施例二中的定位分析单元处理流程图。 具体实施方式 下文中将参考附图并结合实施例来详细说明本发明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互组合。 图 1示出了本发明实施例的接口检测方法流程图。 如图 1所示, 包括以 下步骤: 步骤 S 102,主控单元根据所接收的检测命令向单板发送检测数据包以检 测主控单元与单板之间的接口的连接状态。 步骤 S 104, 当接口的连接状态为断开时, 釆集主控单元和单板的运行数 据。 以及 步骤 S 106,根据所釆集的运行数据以及预存的接口错误评判规则定位接 口的错误类型。 在上述方法中, 通过检测命令来控制主控单元自动化地检测单板的接口 连接状态, 并通过错误评判规则自动地定位接口的错误类型, 从而节省了接 口检测的时间和人力, 提高了接口检测的效率。 在上述步骤 S 102之前还包括: 按预定规则筛选出需检测的通讯设备以 及该通讯设备需检测的接口, 预定规则可以为仅检测在线通讯设备的在线单 板。 上述步 4聚 S 102包括: 主控单元按预定次数和预定时间间隔向单板发送 检测数据包; 当主控单元在预定时间段内未收到单板的反馈信息, 则判定接 口的连接状态为断开, 其中检测数据包可以釆用 ping包。 在上述步骤 S 104之后还包括: 才艮据所釆集的运行数据生成信息文档, 其中, 运行数据还包括: 通讯设备的 IP地址、 单板的槽位号以及检测的开始 和结束时间。 上述步骤 S 106包括: 将运行数据中表征接口状态的字段值与预存的接 口错误评判规则进行匹配; 根据匹配结果定位接口的错误类型。 图 2示出了本发明实施例的接口检测装置框图。 如图 2所示, 该接口检 测装置包括: 检测单元 10、 数据釆集单元 20和定位分析单元 30。 检测单元 10、 数据釆集单元 20和定位分析单元 30依次连接, 其中, 检测单元 10, 设 置为根据所接收到的检测命令向单板发送检测数据包以检测主控单元与单板 之间的接口的连接状态; 数据釆集单元 20, 设置为当检测单元 10检测到接 口的连接状态为断开时,釆集主控单元和单板的运行数据;定位分析单元 30, 设置为根据数据釆集单元 20所釆集的运行数据以及预存的接口错误评判规 则定位接口的错误类型。 在上述的检测装置中, 通过检测单元 10 自动化地检测单板的接口连接 状态, 并通过定位分析单元 30 自动地定位接口的错误类型, 从而实现了通 讯设备接口检测和定位的自动化, 节省了接口检测的时间和人力, 提高了接 口检测的效率。 实施例一 本实施例描述了通讯设备的接口检测的详细流程, 如图 3所示, 包括以 下步骤: 步骤 S302 , 通过上层网元管理系统 EMS , 对全网设备和对应的单板槽 位进行筛选。 上述步骤 S302可以通过以下方式来实现: 对全网设备进行在线、 离线 或断链情况的扫描, 只保留在线的设备类型和对应 IP, 保存在一个专门存放 设备类型和 IP的配置文件中;在所筛选出来的设备中,针对不同类型的设备, 配以不同的筛选标准,继而过滤出确有必要进行接口状态检测的单板槽位号, 保存在一个数组变量中。 步骤 S304 , 通过主控单元向单板发送命令, 单板收到后在规定时间内反 馈上报。 上述步骤 S304可以通过以下方式来实现: 对每台设备的每个需要检测 的槽位单板, 主控单元发送一定次数, 一定时间间隔的命令数据包; 单板在 收到数据包后, 应立即反馈上报给主控单元, 否则, 则认定该单板的接口出 现通讯故障; 若接口出现通讯异常, 则需在检测完该设备后, 立即釆集主控 单元的相关数据信息, 并保存在日志文档中, 同时将该设备类型和对应 IP 自 动 ΐ己录到统计文档中。 步骤 S306 , 检测运行时自动生成实时变化的统计文档和设备日志文档。 上述步 4聚 S306可以通过以下方式来实现: 先获取统计文档中出现接口 异常的设备 IP; 在设备日志文档集中搜索出现接口异常的设备 IP地址, 获 得设备的日志文档; 在日志文档中, 获取釆集的主控单元的相关信息。 步骤 S308 , 检测完所有设备接口后, 获取输出文档相关信息, 通过与错 误评判规则匹配, 自动定位接口错误。 实施例二 本实施例描述了一个实际运用中的接口检测装置, 如图 4所示, 该接口 检测装置包括: 检测单元 10、 数据釆集单元 20、 定位分析单元 30、 接口通 讯单元 40、 预处理单元 50和文档输出单元 60。 接口通讯单元 40、 检测单元 10、 数据釆集单元 20和定位分析单元 30依次连接, 预处理单元 50连接至 检测单元 10, 文档输出单元 60分别与数据釆集单元 20和定位分析单元 20 相连。 接口通讯单元 40与通讯设备的主控单元相连, 负责下发主控单元的命 令数据和上报接口通讯状态。 通过下发命令数据, 并控制一定的反馈延时, 来判断接口通讯状态是否良好, 再将反馈信息上报给主控单元。 预处理单元 50与主控单元相连, 在主控单元下发命令数据给单板之前, 为了做到不同现网环境的自适应性, 支持不同网元管理系统, 需要先对每台 设备进行预处理, 筛选并剔除一些不必要进行接口状态判断的设备、 单板及 其槽位, 以缩短系统运行时间, 进一步提升有效时间比例。 另外, 在本实施 例中, 还支持用户自定义输入设备类型的功能, 即只针对输入的设备类型进 行巡检, 其余的不予理会。 检测单元 10的功能的实现是通过命令行终端登录到设备主控单元, 对 于每台单独的设备, 接口通讯单元按照槽位号从小到大顺序, 以固定的时间 间隔和固定的次数发送命令数据, 若在规定的时间内没有收到反馈信息, 则 认为该接口通讯状态出现异常, 通过数据釆集单元 20釆集主控单元相关数 据。 数据釆集单元 20, 在检测单元 10检测到接口异常时, 记录接口异常的 设备的 IP和对应的单板槽位号, 以及系统检测的开始、 结束和运行时间, 以 及主控单元的现场运行数据, 并将所釆集的数据发送至文档输出单元 60。 文档输出单元 60, 接收数据釆集单元 20所釆集的相关数据, 根据所釆 集的数据生成实时变化的信息文档, 所生成的信息文档分为两种: 统计文档: 保存所有存在接口异常的设备的 IP和对应的单板槽位号,以及系统检测的开 始、 结束和运行时间; 设备日志文档: 以每台设备为单位, 生成其对应的单 板接口状态记录日志文档。 文档中包含了每块单板接收接口通讯单元下发的 命令数据和反馈的全过程, 以及用于定位接开错误的主控单元的现场数据。 定位分析单元 30通过获取文档输出单元 60所生成的两类信息文档的相 关数据, 按照相应的错误评判准则, 定位并分析设备通讯接口的错误类型。 图 5示出了实施例二中的预处理单元处理流程图, 如图 5所示, 包括以 下处理步 4聚: 步骤 S502 , 从网元管理系统 EMS上导出全网中所有网元设备的报表表 格。 由于不同现网所使用的 EMS可能不一致, 因此, 需要考虑由于 EMS版 本不同所引起的报表格式不同的情况。 步骤 S504, 判断所检测的设备类型是否是自定义设备类型。 对于有用户 自定义输入设备类型的情况, 仅针对输入的类型进行检测, 执行步骤 S506; 否则, 按照默认支持的设备类型检测, 执行步骤 S510。 步骤 S506, 获取自定义的设备类型和 IP地址。 在本实施例中, 待检测 设备类型和 IP地址是从步骤 S502导出的表格中获取的。 具体的是通过对设 备类型和 IP所在表格中的行列数加以判断, 来获取其值。 步骤 S508, 从 EMS获取自定义类型设备的在线状态。 在网元管理系统 EMS上, 可在服务器端获取每个网元设备的在线、 离线或断链的状态, 在本 实施例中, 只考虑在线的设备。 步 4聚 S510, 获取默认支持的设备类型和 IP。 步骤 S512, 从 EMS获取默认支持的类型设备的在线状态 步骤 S514, 在 EMS上进一步判断待检测设备是否在线, 如果否, 则执 行步骤 S516, 将该设备过滤掉; 如果是, 则执行步骤 S518。 步骤 S516, 过滤掉不在线的通讯设备。 步骤 S518, 得到所有符合条件的设备的类型和 IP地址。 可将设备的类 型和 IP保存在一个配置文件中, 配置文件的每一行代表一台设备类型及其 IP。 步骤 S520, 设备的单板所在的槽位筛选。 针对不同类型的通讯设备, 尤 其是 MSTP ( Multi-Service Transport Platform, 多业务传送平台)设备, 需要 进行检测的单板的槽位是完全不同的, 且都是只需检测一部分槽位。 所以为 了节省巡检时间, 提高有效时间比, 必须先进行各种类型设备的槽位筛选, 筛选结果可以保存到一个临时的数组变量中。 步骤 S522, ^曹位在线检测。 步骤 S524, 判断槽位是否在线, 对步骤 S520中保存的结果, 还要进行 槽位在线的判断, 即该槽位是否插有单板。 同样为了节省时间, 只对在线的 槽位进行检测。 步骤 S526, 得到需要检测的设备, 以及该设备需要检测的单板接口。 筛 选的结果可以保存到最终的数组变量中。 图 6示出了实施例二中的检测单元处理流程图。 在本实施例中通过检测 单板所插的 ^曹位来检测单板接口, 如图 6所示, 包括以下步 4聚: 步 4聚 S602, 初始 4匕当前 ^曹位号和异常标识。 在本实施例中, 初始 4匕当前 槽位号 n=0, 异常标识 flag=0。 步骤 S604, 当前槽位接收上层接口通讯单元发送来的 Ping包, ping包 大小、 次数和时间间隔可以预先设定。 步骤 S606, 判断单板是否在规定的时间段内上报反馈。 如果在指定时间 内, 单板上报了所有 ping包的反馈信息给接口通讯单元, 则该单板通讯接口 正常, 执行步骤 S610; 否则执行步骤 S608。 步骤 S608, 若在指定时间内, 单板通讯接口没有上报反馈信息给主控单 元, 或者说接口通讯单元没有接收到反馈, 则对于该 ping包, 回显 timeout 字样, 并置 flag=l。 在此步骤中, 需传递设备日志文档信号给文档输出单元。 步 4聚 S610, 转至下一个 ^曹位。 步骤 S612, 判断当前槽位的槽位号 n是否大于该设备的最大槽位号。 若 n<最大槽位号, j n=n+1 , 并跳转回步骤 S604继续接收接口通讯单元发给 下一个槽位的 ping包; 如果 n等于最大槽位号, 则执行步骤 S614。 步骤 S614, 判断异常标识 flag的值。若 flag=l , 则表明出现了超时现象, 则执行步 4聚 S616; 否则, 执行步 4聚 S618。 步骤 S616, 釆集主控单元现场数据。 即在检测完该设备后, 执行一系列 命令釆集当前主控单元相关数据, 并同时给文档输出单元发送共有信号, 要 求其输出超时的设备信息, 包括设备类型、 IP地址、 超时的槽位号和釆集的 定位信息。 步骤 S618 , 若该设备所有待测槽位都已检测完, 且 flag = 0则自动登录 到下一台设备的主控单元, 继续接收命令。 同时传递设备日志文档信号给文 档输出单元。 步 4聚 S620, 生成信息文档。 图 7示出了实施例二中的文档输出单元处理流程图。 如图 7所示, 包括 以下步 4聚: 步骤 S702 , 获取系统开始运行的时间, 输出到统计文档的第一行。 步骤 S704, 接收信号。 所接收的信号分为三种: 一种只是针对设备日志 文档, 第二种是针对统计文档, 第三种信号是两类输出文档共有的共有信号, 其中, 第一种信号来自接口检测单元, 第二种信号来自定位分析单元, 第三 种信号是既可以来自接口检测单元也可以来自定位分析单元。 步骤 S706, 判断是否是设备日志文档信号, 如果是则执行步骤 S708; 否则, 执行步 4聚 S714。 步骤 S708, 实时更新日志文档。 对于设备日志文档的信号, 由于是实时 的信号, 需要不断地写入日志。 该步骤由图 6中所示的步骤 S608触发。 当 图 6中所示步骤 S618切换网元设备时, 要新建设备日志, 日志文件名为设 备类型 +设备 IP+当前系统时间。 步骤 S710,判断当前设备日志信息是否输出完成,如果是执行步骤 S712, 如果否, 执行步骤 S708。 步骤 S712, 新建下一台设备的日志文档。 步骤 S714, 判断是否是统计文档信号, 如果是则执行步骤 S720; 否则, 执行步骤 S716。 步骤 S716, 在统计文档中对应的槽位号后面添加定位分析得出的结论。 步骤 S718, 判断是否是共有信号, 如果是则执行步骤 S720。 步骤 S720, 同时在两个文档中输出信息。 当接收到图 6所示的步骤 S616 触发的信号时, 即共有信号, 表明出现了接口通讯状态异常, 此时需要立即 在统计文档中添加一行当前出现接口通讯故障的设备类型和对应的 IP地址, 同时在设备日志文档中, 要输出釆集的主控单元现场数据。 步骤 S722, 判断是否所有设备的信息均输出完成, 如果是, 则执行步骤 S724; 如果否, 则执行步骤 S704, 即循环执行上述的输出流程。 步骤 S724, 获取系统结束的时间, 同时计算系统运行时间, 并输出到统 计文档的最下方。 图 8示出了实施例二中的定位分析单元处理流程图。 如图 8所示, 包括 以下步 4聚: 步骤 S802, 将当前相关字段数置零。 步骤 S804, 在检测完一台设备所有通讯接口之后, 获取设备日志文档中 釆集的现场数据。 步骤 S806, 根据添加的错误评判规则, 对数据中相关字段值与规则进行 对比。 步骤 S808, 判断相关字段的值是否与错误评判规则中的某条规则相匹 配, 如果是, 则执行步 4聚 S810; 如果否, 则执行步 4聚 S814。 步 4聚 S810, 匹配成功, 得出定位结论。 步骤 S812,向文档输出单元发出信号,要求在统计文档中添加定位结论, 使用户更实时和直观了解造成接口不通的原因。 步骤 S814, 比较下一个相关字段。 设总共有 M条规则, m为当前待比 较的字段, 则若当前第 m个字段与规则比较失败, 则 111=111+1 , 继续比较下 一条规则。 步骤 S816, 判断当前字段是否大于最大规则数, 如果是, 则执行步骤 S818; 如果否, 则执行步骤 S806。 步 4聚 S818, 若111 > 1^, 即没有找到匹配的规则, 列入遗留问题队列, 有 待人工分析定位, 并在错误评价规则中添加新的规则, 转至步骤 S810。 在本发明的上述实施例中, 通过检测命令来控制主控单元自动化地检测 单板接口的连接状态, 从而节省了接口检测的时间和人力, 提高了接口检测 的效率。 操作简单, 唯一需要手动操作的只是安装运行脚本程序的软件, 以 及在脚本刚开始运行时需输入的几个简单变量; 并且在检测的过程中, 会自 动生成输出文档, 包括统计信息文档和与每台设备通讯接口通讯的全过程记 录文档, 文档中包含了全部定位所需数据, 将人为参与分析定位转变成系统 自动定位, 减少了人为定位问题所带来的繁瑣和费时; 另外, 上述的接口检 测方法能够自适应各种传输网的现网环境, 支持不同网元管理系统和不同类 型的通讯设备尤其是 MSTP设备。 显然, 本领域的技术人员应该明白, 上述的本发明的各模块或各步骤可 以用通用的计算装置来实现, 它们可以集中在单个的计算装置上, 或者分布 在多个计算装置所组成的网络上, 可选地, 它们可以用计算装置可执行的程 序代码来实现, 从而, 可以将它们存储在存储装置中由计算装置来执行, 并 且在某些情况下, 可以以不同于此处的顺序执行所示出或描述的步骤, 或者 将它们分别制作成各个集成电路模块, 或者将它们中的多个模块或步骤制作 成单个集成电路模块来实现。 这样, 本发明不限制于任何特定的硬件和软件 结合。 以上所述仅为本发明的优选实施例而已, 并不用于限制本发明, 对于本 领域的技术人员来说, 本发明可以有各种更改和变化。 凡在本发明的^"神和 原则之内, 所作的任何修改、 等同替换、 改进等, 均应包含在本发明的保护 范围之内。

Claims

权 利 要 求 书
1. 一种用于通讯设备的接口检测方法, 包括:
主控单元根据所接收的检测命令向单板发送检测数据包以检测所 述主控单元与所述单板之间的接口的连接状态;
当所述接口的连接状态为断开时, 釆集所述主控单元和所述单板 的运行数据;
才艮据所釆集的所述运行数据以及预存的接口错误评判规则定位所 述接口的错误类型。
2. 根据权利要求 1所述的接口检测方法, 其中, 主控单元根据所接收的 检测命令向单板发送检测数据包以检测所述主控单元与所述单板之间 的接口的连接状态之前还包括:
按预定规则筛选出需检测的通讯设备以及该通讯设备需检测的接 α。
3. 根据权利要求 2所述的接口检测方法, 其中, 所述预定规则为仅检测 在线通讯设备的在线单板。
4. 根据权利要求 1所述的接口检测方法, 其中, 主控单元根据所接收的 检测命令向单板发送检测数据包以检测所述主控单元与所述单板之间 的接口的连接状态包括:
所述主控单元按预定次数和预定时间间隔向所述单板发送所述检 测数据包;
当所述主控单元在预定时间段内未收到所述单板的反馈信息, 则 判定所述接口的连接状态为断开。
5. 根据权利要求 1至 4中任一项所述的接口检测方法, 其中, 在釆集所述 主控单元和所述单板的运行数据之后还包括: 才艮据所述运行数据生成信息文档。
6. 根据权利要求 5所述的接口检测方法, 其中, 所述运行数据还包括: 所述通讯设备的 IP地址、 所述单板的槽位号以及检测的开始和结束时 间。
7. 根据权利要求 1所述的接口检测方法, 其中, 根据所釆集的所述运行 数据以及预存的接口错误评判规则定位所述接口的错误类型包括: 将所述运行数据中表征所述接口状态的字段值与所述预存的接口 错误评判规则进行匹配;
才艮据匹配结果定位所述接口的错误类型。
8. 根据权利要求 1至 4、 7中任一项所述的接口检测方法, 其中, 所述检 测数据包为 ping包。
9. 一种用于通讯设备的接口检测装置, 包括:
检测单元, 设置为根据所接收到的检测命令向单板发送检测数据 包以检测所述主控单元与所述单板之间的接口的连接状态;
数据釆集单元, 设置为当所述检测单元检测到所述接口的连接状 态为断开时, 釆集所述主控单元和所述单板的运行数据;
定位分析单元, 设置为 居所述数据釆集单元所釆集的所述运行 数据以及预存的接口错误评判规则定位所述接口的错误类型。
10. 根据权利要求 9所述的接口检测装置, 还包括:
预处理单元, 设置为按预定规则筛选出需检测的通讯设备以及该 通讯设备需检测的接口。
PCT/CN2011/070360 2010-09-14 2011-01-18 用于通讯设备的接口检测方法和装置 WO2012034366A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010282152.7A CN101977128B (zh) 2010-09-14 2010-09-14 用于通讯设备的接口检测方法和装置
CN201010282152.7 2010-09-14

Publications (1)

Publication Number Publication Date
WO2012034366A1 true WO2012034366A1 (zh) 2012-03-22

Family

ID=43576975

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/070360 WO2012034366A1 (zh) 2010-09-14 2011-01-18 用于通讯设备的接口检测方法和装置

Country Status (2)

Country Link
CN (1) CN101977128B (zh)
WO (1) WO2012034366A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760236A (zh) * 2022-04-08 2022-07-15 中国银行股份有限公司 接口检查方法、装置、存储介质和设备

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312573B (zh) * 2013-06-14 2016-12-28 西安交通大学 一种家庭网络系统设备发现与识别方法
CN105743675A (zh) * 2014-12-10 2016-07-06 中兴通讯股份有限公司 信息采集方法及装置
CN105049239B (zh) * 2015-06-25 2018-05-25 北京百度网讯科技有限公司 接口连接关系的识别方法和系统
CN105517195A (zh) * 2015-11-27 2016-04-20 上海华为技术有限公司 一种状态检测的方法及无线网络节点
CN107529183B (zh) * 2016-06-22 2022-03-25 中兴通讯股份有限公司 一种通讯设备的检测方法、装置及通讯设备
CN106597927B (zh) * 2016-11-30 2019-02-22 广东美的制冷设备有限公司 板间通讯的测试装置、家用电器及板间通讯的测试方法
CN108627715B (zh) * 2017-03-21 2022-09-02 中兴通讯股份有限公司 单板状态的检测方法及装置
CN108134689B (zh) * 2017-12-11 2021-07-23 杭州迪普科技股份有限公司 一种框式设备内部级联口故障检查方法及装置
WO2021217540A1 (zh) * 2020-04-30 2021-11-04 深圳市大疆创新科技有限公司 通信链路的检测方法、装置、系统和可移动平台

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735047A (zh) * 2004-08-12 2006-02-15 华为技术有限公司 一种故障自诊断方法和装置
CN1832417A (zh) * 2005-03-10 2006-09-13 华为技术有限公司 一种数据采集方法及系统
US7315181B1 (en) * 2005-12-01 2008-01-01 At&T Corp. Method for automatically identifying component failure in a communication network
CN101145970A (zh) * 2007-10-11 2008-03-19 中兴通讯股份有限公司 在线定位通信系统设备故障的系统和方法
CN101227346A (zh) * 2008-02-05 2008-07-23 中兴通讯股份有限公司 通信设备自动化测试过程中故障监控方法与装置

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6912671B2 (en) * 2001-05-07 2005-06-28 Bisher-Rosemount Systems, Inc Wiring fault detection, diagnosis and reporting for process control systems
CN100370747C (zh) * 2004-12-02 2008-02-20 华为技术有限公司 一种通信设备及其内部链路故障的定位方法
CN1968481A (zh) * 2006-04-12 2007-05-23 华为技术有限公司 基站内部硬件接口的故障检测方法
CN101136806B (zh) * 2007-07-04 2010-08-04 中兴通讯股份有限公司 基于标签vlan的交换芯片端口检测方法和装置
CN101707503B (zh) * 2009-07-03 2014-10-22 中兴通讯股份有限公司 嵌入式控制通道通讯故障自动定位方法和装置
CN101699410B (zh) * 2009-11-11 2012-07-18 中兴通讯股份有限公司 一种单板硬件故障的检测方法和装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1735047A (zh) * 2004-08-12 2006-02-15 华为技术有限公司 一种故障自诊断方法和装置
CN1832417A (zh) * 2005-03-10 2006-09-13 华为技术有限公司 一种数据采集方法及系统
US7315181B1 (en) * 2005-12-01 2008-01-01 At&T Corp. Method for automatically identifying component failure in a communication network
CN101145970A (zh) * 2007-10-11 2008-03-19 中兴通讯股份有限公司 在线定位通信系统设备故障的系统和方法
CN101227346A (zh) * 2008-02-05 2008-07-23 中兴通讯股份有限公司 通信设备自动化测试过程中故障监控方法与装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114760236A (zh) * 2022-04-08 2022-07-15 中国银行股份有限公司 接口检查方法、装置、存储介质和设备
CN114760236B (zh) * 2022-04-08 2023-11-14 中国银行股份有限公司 接口检查方法、装置、存储介质和设备

Also Published As

Publication number Publication date
CN101977128A (zh) 2011-02-16
CN101977128B (zh) 2015-04-01

Similar Documents

Publication Publication Date Title
WO2012034366A1 (zh) 用于通讯设备的接口检测方法和装置
CN109787817B (zh) 网络故障诊断方法、装置和计算机可读存储介质
US7836341B1 (en) System and method for automatically diagnosing protocol errors from packet traces
CN101170438B (zh) 一种远程串口调试方法及其系统
CN111190755B (zh) 应用程序的功能异常处理方法及装置
CN112737886B (zh) 一种工装测试方法、系统、电子设备和存储介质
CN110501956B (zh) 生产测试报警系统、服务器及报警信息采集设备
CN113533887B (zh) 一种配电终端智能调试方法及系统
CN106776346B (zh) Ccmts设备的测试方法和装置
CN115615732A (zh) 一种质量检测器异常状态监测方法及系统
CN112988537A (zh) 一种服务器故障诊断方法、装置及相关设备
CN103731663A (zh) 一种智能电视的测试方法和装置
CN115277510A (zh) 自动识别网络会话中设备、设备接口、设备路径的方法
CN105515890A (zh) OpenFlow协议一致性测试方法与设备
CN113783749B (zh) 一种基于网络端口检测设备故障的方法
US20050111063A1 (en) Modular scanning system for cabling systems
TWI638548B (zh) 寬頻迴路障礙查測系統
CN108881345B (zh) 消息推送方法及路由设备
KR20130063866A (ko) 엠투엠 단말기 진단시스템 및 방법
CN110609761B (zh) 确定故障源的方法、装置、存储介质和电子设备
CN116506340A (zh) 流量链路的测试方法、装置、电子设备及存储介质
CN106598793A (zh) 一种基于BIOS串口log数据的测试系统及测试方法
CN110095144B (zh) 一种终端设备本地故障识别方法及系统
CN116955232A (zh) 一种基于控制系统的硬件识别方法和装置
CN114050960B (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: 11824437

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

Country of ref document: EP

Kind code of ref document: A1