Movatterモバイル変換


[0]ホーム

URL:


CN101977128B - Interface detection method and device for communication equipment - Google Patents

Interface detection method and device for communication equipment
Download PDF

Info

Publication number
CN101977128B
CN101977128BCN201010282152.7ACN201010282152ACN101977128BCN 101977128 BCN101977128 BCN 101977128BCN 201010282152 ACN201010282152 ACN 201010282152ACN 101977128 BCN101977128 BCN 101977128B
Authority
CN
China
Prior art keywords
interface
main control
control unit
detection
veneer
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201010282152.7A
Other languages
Chinese (zh)
Other versions
CN101977128A (en
Inventor
严非
赵贵余
李健聪
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Haining Hi Tech Zone Science And Innovation Center Co Ltd
Original Assignee
ZTE Corp
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 ZTE CorpfiledCriticalZTE Corp
Priority to CN201010282152.7ApriorityCriticalpatent/CN101977128B/en
Priority to PCT/CN2011/070360prioritypatent/WO2012034366A1/en
Publication of CN101977128ApublicationCriticalpatent/CN101977128A/en
Application grantedgrantedCritical
Publication of CN101977128BpublicationCriticalpatent/CN101977128B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明公开了一种用于通讯设备的接口检测方法和装置,该检测方法包括:主控单元根据所接收的检测命令向单板发送检测数据包以检测主控单元与单板之间的接口的连接状态;当接口的连接状态为断开时,采集主控单元和单板的运行数据;根据所采集的运行数据以及预存的接口错误评判规则定位接口的错误类型。在本发明中,通过检测命令来控制主控单元自动化地检测单板接口的连接状态,并通过错误评判规则自动地定位接口的错误类型,从而节省了接口检测的时间和人力,提高了接口检测的效率。

The invention discloses an interface detection method and device for communication equipment. The detection method includes: a main control unit sends a detection data packet to a single board according to a received detection command to detect the interface between the main control unit and the single board The connection status of the interface; when the connection status of the interface is disconnected, the operation data of the main control unit and the single board are collected; the error type of the interface is located according to the collected operation data and the pre-stored interface error evaluation rules. In the present invention, the main control unit is controlled by the detection command to automatically detect the connection state of the single board interface, and the error type of the interface is automatically located by the error judgment rule, thereby saving the time and manpower of interface detection and improving the interface detection. s efficiency.

Description

Translated fromChinese
用于通讯设备的接口检测方法和装置Interface detection method and device for communication equipment

技术领域technical field

本发明涉及通讯设备的检测领域,尤其涉及一种用于通讯设备的接口检测方法和装置。The invention relates to the detection field of communication equipment, in particular to an interface detection method and device for communication equipment.

背景技术Background technique

通讯设备的系统框架通常包括:网元管理系统EMS(ElementsManagement System)、主控单元(代理层或控制平面)和底层设备单板。与设备运行和工程维护息息相关的是主控单元和底层设备单板,这两者之间的接口状态直接反映出设备稳定性。例如,在工程现网,若上下层通讯接口的通信状态不通或者断断续续,则会导致业务中断,给工程运行带来很大麻烦。The system framework of communication equipment usually includes: network element management system EMS (Elements Management System), main control unit (agent layer or control plane) and bottom equipment single board. Closely related to equipment operation and engineering maintenance are the main control unit and the underlying equipment board, and the interface status between the two directly reflects the stability of the equipment. For example, in the current project network, if the communication status of the upper and lower layer communication interfaces is disconnected or intermittent, it will cause service interruption and bring great trouble to the project operation.

目前,涉及设备通讯接口的检测仍然没有一种较好的技术来解决。现有的方法主要还是以人工操作为主,通过终端命令登陆到设备主控单元上,手动敲入待执行的命令,来检测设备通讯接口连接状态。并且,当出现接口不通时,也要人为操作输入一系列命令来采集现场信息以定位接口错误。这样的接口检测方式,当设备规模小时,可以采用;而对于大规模的现网,若遇到接口状态不稳定情况较严重时,这种以人为干预为主的检测方式,将会花费相当大的时间和人力,检测效率非常低。At present, there is still no better technology to solve the detection related to the communication interface of the equipment. Existing methods are still mainly based on manual operation, log in to the main control unit of the device through terminal commands, and manually type in the command to be executed to detect the connection status of the communication interface of the device. Moreover, when the interface fails, a series of commands must be manually input to collect on-site information to locate the interface error. Such an interface detection method can be adopted when the equipment scale is small; but for a large-scale live network, if the interface status is unstable, this detection method based on human intervention will cost a lot Time and manpower, detection efficiency is very low.

发明内容Contents of the invention

本发明的主要目的在于提供一种用于通讯设备的接口检测方法和装置,以解决现有的接口检测方式检测效率低的问题。The main purpose of the present invention is to provide an interface detection method and device for communication equipment, so as to solve the problem of low detection efficiency of the existing interface detection methods.

根据本发明的一个方面,提供了一种用于通讯设备的接口检测方法,包括:主控单元根据所接收的检测命令向单板发送检测数据包以检测主控单元与单板之间的接口的连接状态;当接口的连接状态为断开时,采集主控单元和单板的运行数据;根据所采集的运行数据以及预存的接口错误评判规则定位接口的错误类型。According to one aspect of the present invention, an interface detection method for communication equipment is provided, including: the main control unit sends a detection data packet to the single board according to the received detection command to detect the interface between the main control unit and the single board The connection status of the interface; when the connection status of the interface is disconnected, the operation data of the main control unit and the single board are collected; the error type of the interface is located according to the collected operation data and the pre-stored interface error evaluation rules.

进一步地,主控单元根据所接收的检测命令向单板发送检测数据包以检测主控单元与单板之间的接口的连接状态之前还包括:按预定规则筛选出需检测的通讯设备以及该通讯设备需检测的接口。Further, before the main control unit sends a detection data packet to the single board according to the received detection command to detect the connection status of the interface between the main control unit and the single board, it also includes: filtering out the communication equipment to be detected according to predetermined rules and the The interface to be detected by the communication device.

进一步地,预定规则为仅检测在线通讯设备的在线单板。Further, the predetermined rule is to only detect the online single board of the online communication device.

进一步地,主控单元根据所接收的检测命令向单板发送检测数据包以检测主控单元与单板之间的接口的连接状态包括:主控单元按预定次数和预定时间间隔向单板发送检测数据包;当主控单元在预定时间段内未收到单板的反馈信息,则判定接口的连接状态为断开。Further, the main control unit sends a detection data packet to the single board according to the received detection command to detect the connection state of the interface between the main control unit and the single board includes: the main control unit sends a predetermined number of times and a predetermined time interval to the single board Detecting data packets; when the main control unit does not receive the feedback information from the board within a predetermined period of time, it determines that the connection status of the interface is disconnected.

进一步地,在采集所述主控单元和所述单板的运行数据之后还包括:根据所采集的运行数据生成信息文档。Further, after collecting the operation data of the main control unit and the single board, the method further includes: generating an information document according to the collected operation data.

进一步地,运行数据还包括:通讯设备的IP地址、单板的槽位号以及检测的开始和结束时间。Further, the running data also includes: the IP address of the communication device, the slot number of the single board, and the start and end time of the detection.

进一步地,根据所采集的运行数据以及预存的接口错误评判规则定位接口的错误类型包括:将运行数据中表征接口状态的字段值与预存的接口错误评判规则进行匹配;根据匹配结果定位接口的错误类型。Further, locating the error type of the interface according to the collected operating data and the pre-stored interface error evaluation rules includes: matching the field value representing the state of the interface in the operating data with the pre-stored interface error evaluation rules; locating the interface error according to the matching result type.

进一步地,检测数据包为ping包。Further, the detection data packet is a ping packet.

根据本发明的另一方面,提供了一种用于通讯设备的接口检测装置,包括:检测单元,用于根据所接收到的检测命令向单板发送检测数据包以检测主控单元与单板之间的接口的连接状态;数据采集单元,用于当检测单元检测到接口的连接状态为断开时,采集主控单元和单板的运行数据;定位分析单元,用于根据数据采集单元所采集的运行数据以及预存的接口错误评判规则定位接口的错误类型。According to another aspect of the present invention, an interface detection device for communication equipment is provided, including: a detection unit, which is used to send a detection data packet to the single board according to the received detection command to detect the main control unit and the single board The connection status of the interface between them; the data acquisition unit is used to collect the operation data of the main control unit and the single board when the detection unit detects that the connection status of the interface is disconnected; The collected operating data and the pre-stored interface error judgment rules locate the error type of the interface.

进一步地,检测装置还包括:预处理单元,用于按预定规则筛选出需检测的通讯设备以及该通讯设备需检测的接口。Further, the detection device further includes: a preprocessing unit, configured to filter out the communication equipment to be detected and the interface of the communication device to be detected according to predetermined rules.

在本发明中,通过检测命令来控制主控单元自动化地检测单板的接口连接状态,并通过错误评判规则自动地定位接口的错误类型,从而节省了接口检测的时间和人力,提高了接口检测的效率。In the present invention, the main control unit is controlled by the detection command to automatically detect the interface connection state of the single board, and the error type of the interface is automatically located by the error judgment rule, thereby saving the time and manpower of the interface detection and improving the interface detection. s efficiency.

附图说明Description of drawings

此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The accompanying drawings described here are used to provide a further understanding of the present invention and constitute a part of the application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations to the present invention. In the attached picture:

图1示出了本发明实施例的接口检测方法流程图;Fig. 1 shows the flowchart of the interface detection method of the embodiment of the present invention;

图2示出了本发明实施例的接口检测装置框图;Fig. 2 shows the block diagram of the interface detection device of the embodiment of the present invention;

图3示出了本发明实施例一的接口检测方法流程图;FIG. 3 shows a flowchart of an interface detection method in Embodiment 1 of the present invention;

图4示出了本发明实施例二的接口检测装置框图;FIG. 4 shows a block diagram of an interface detection device according to Embodiment 2 of the present invention;

图5示出了实施例二中的预处理单元处理流程图;Fig. 5 shows the processing flowchart of the preprocessing unit in the second embodiment;

图6示出了实施例二中的检测单元处理流程图;Fig. 6 shows the detection unit processing flowchart in the second embodiment;

图7示出了实施例二中的文档输出单元处理流程图;以及Fig. 7 shows the processing flowchart of the document output unit in the second embodiment; and

图8示出了实施例二中的定位分析单元处理流程图。Fig. 8 shows a flow chart of the processing of the location analysis unit in the second embodiment.

具体实施方式Detailed ways

下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Hereinafter, the present invention will be described in detail with reference to the drawings and examples. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined with each other.

图1示出了本发明实施例的接口检测方法流程图。如图1所示,包括以下步骤:Fig. 1 shows a flowchart of an interface detection method according to an embodiment of the present invention. As shown in Figure 1, the following steps are included:

步骤S102,主控单元根据所接收的检测命令向单板发送检测数据包以检测主控单元与单板之间的接口的连接状态。Step S102, the main control unit sends a detection data packet to the single board according to the received detection command to detect the connection state of the interface between the main control unit and the single board.

步骤S104,当接口的连接状态为断开时,采集主控单元和单板的运行数据。以及Step S104, when the connection state of the interface is disconnected, collect the operation data of the main control unit and the single board. as well as

步骤S106,根据所采集的运行数据以及预存的接口错误评判规则定位接口的错误类型。Step S106, locating the error type of the interface according to the collected operating data and the pre-stored interface error evaluation rules.

在上述方法中,通过检测命令来控制主控单元自动化地检测单板的接口连接状态,并通过错误评判规则自动地定位接口的错误类型,从而节省了接口检测的时间和人力,提高了接口检测的效率。In the above method, the main control unit is controlled by the detection command to automatically detect the interface connection status of the single board, and the error type of the interface is automatically located by the error judgment rule, thereby saving the time and manpower of the interface detection and improving the interface detection. s efficiency.

在上述步骤S102之前还包括:按预定规则筛选出需检测的通讯设备以及该通讯设备需检测的接口,预定规则可以为仅检测在线通讯设备的在线单板。Before the above step S102, it also includes: screening out the communication device to be detected and the interface of the communication device to be detected according to a predetermined rule, and the predetermined rule may be to detect only the online single board of the online communication device.

上述步骤S102包括:主控单元按预定次数和预定时间间隔向单板发送检测数据包;当主控单元在预定时间段内未收到单板的反馈信息,则判定接口的连接状态为断开,其中检测数据包可以采用ping包。The above step S102 includes: the main control unit sends a detection data packet to the single board according to a predetermined number of times and a predetermined time interval; when the main control unit does not receive the feedback information from the single board within a predetermined time period, it is determined that the connection status of the interface is disconnected , where the detection data packet may be a ping packet.

在上述步骤S104之后还包括:根据所采集的运行数据生成信息文档,其中,运行数据还包括:通讯设备的IP地址、单板的槽位号以及检测的开始和结束时间。After the above step S104, it also includes: generating an information document according to the collected operation data, wherein the operation data also includes: the IP address of the communication device, the slot number of the single board, and the start and end time of the detection.

上述步骤S106包括:将运行数据中表征接口状态的字段值与预存的接口错误评判规则进行匹配;根据匹配结果定位接口的错误类型。The above step S106 includes: matching the field value representing the state of the interface in the operating data with the pre-stored interface error judgment rule; and locating the error type of the interface according to the matching result.

图2示出了本发明实施例的接口检测装置框图。如图2所示,该接口检测装置包括:检测单元10、数据采集单元20和定位分析单元30。检测单元10、数据采集单元20和定位分析单元30依次连接,其中,检测单元10,用于根据所接收到的检测命令向单板发送检测数据包以检测主控单元与单板之间的接口的连接状态;数据采集单元20,用于当检测单元10检测到接口的连接状态为断开时,采集主控单元和单板的运行数据;定位分析单元30,用于根据数据采集单元20所采集的运行数据以及预存的接口错误评判规则定位接口的错误类型。Fig. 2 shows a block diagram of an interface detection device according to an embodiment of the present invention. As shown in FIG. 2 , the interface detection device includes: a detection unit 10 , a data collection unit 20 and a location analysis unit 30 . The detection unit 10, the data acquisition unit 20 and the positioning analysis unit 30 are connected in sequence, wherein the detection unit 10 is used to send a detection data packet to the single board according to the received detection command to detect the interface between the main control unit and the single board The connection status of the interface; the data acquisition unit 20 is used to collect the operation data of the main control unit and the single board when the detection unit 10 detects that the connection status of the interface is disconnected; the positioning analysis unit 30 is used for according to the data acquisition unit 20 The collected operating data and the pre-stored interface error judgment rules locate the error type of the interface.

在上述的检测装置中,通过检测单元10自动化地检测单板的接口连接状态,并通过定位分析单元30自动地定位接口的错误类型,从而实现了通讯设备接口检测和定位的自动化,节省了接口检测的时间和人力,提高了接口检测的效率。In the above detection device, the detection unit 10 automatically detects the interface connection status of the single board, and the location analysis unit 30 automatically locates the error type of the interface, thereby realizing the automation of communication equipment interface detection and location, saving the interface. The detection time and manpower are reduced, and the efficiency of interface detection is improved.

实施例一Embodiment one

本实施例描述了通讯设备的接口检测的详细流程,如图3所示,包括以下步骤:This embodiment describes the detailed process of interface detection of communication equipment, as shown in Figure 3, including the following steps:

步骤S302,通过上层网元管理系统EMS,对全网设备和对应的单板槽位进行筛选。In step S302, the network-wide devices and corresponding board slots are screened through the upper network element management system EMS.

具体包括:对全网设备进行在线、离线或断链情况的扫描,只保留在线的设备类型和对应IP,保存在一个专门存放设备类型和IP的配置文件中;在所筛选出来的设备中,针对不同类型的设备,配以不同的筛选标准,继而过滤出确有必要进行接口状态检测的单板槽位号,保存在一个数组变量中。Specifically include: scan the online, offline or disconnected status of the entire network devices, keep only the online device type and corresponding IP, and save it in a configuration file specially storing the device type and IP; among the screened devices, For different types of equipment, with different screening criteria, and then filter out the slot number of the board that is really necessary for interface status detection, and save it in an array variable.

步骤S304,通过主控单元向单板发送命令,单板收到后在规定时间内反馈上报。In step S304, the main control unit sends a command to the single board, and the single board feeds back and reports within a specified time after receiving it.

具体包括:对每台设备的每个需要检测的槽位单板,主控单元发送一定次数,一定时间间隔的命令数据包;单板在收到数据包后,应立即反馈上报给主控单元,否则,则认定该单板的接口出现通讯故障;若接口出现通讯异常,则需在检测完该设备后,立即采集主控单元的相关数据信息,并保存在日志文档中,同时将该设备类型和对应IP自动记录到统计文档中。Specifically include: for each slot board of each device that needs to be detected, the main control unit sends command data packets for a certain number of times and at a certain time interval; after the single board receives the data packet, it should immediately report back to the main control unit , otherwise, it is determined that there is a communication failure on the interface of the board; if there is a communication failure on the interface, it is necessary to collect the relevant data information of the main control unit immediately after the detection of the device, and save it in the log file. The type and corresponding IP are automatically recorded in the statistics file.

步骤S306,检测运行时自动生成实时变化的统计文档和设备日志文档。Step S306, automatically generating real-time changing statistical documents and device log documents during detection operation.

具体包括以下步骤:先获取统计文档中出现接口异常的设备IP;在设备日志文档集中搜索出现接口异常的设备IP地址,获得设备的日志文档;在日志文档中,获取采集的主控单元的相关信息。Specifically, it includes the following steps: first obtain the IP address of the device with abnormal interface in the statistical document; search for the IP address of the device with abnormal interface in the device log file set, and obtain the log file of the device; in the log file, obtain the relevant information.

步骤S308,检测完所有设备接口后,获取输出文档相关信息,通过与错误评判规则匹配,自动定位接口错误。Step S308, after all device interfaces are detected, relevant information of the output document is obtained, and interface errors are automatically located by matching with error judging rules.

实施例二Embodiment two

本实施例描述了一个实际运用中的接口检测装置,如图4所示,该接口检测装置包括:检测单元10、数据采集单元20、定位分析单元30、接口通讯单元40、预处理单元50和文档输出单元60。接口通讯单元40、检测单元10、数据采集单元20和定位分析单元30依次连接,预处理单元50连接至检测单元10,文档输出单元60分别与数据采集单元20和定位分析单元20相连。This embodiment describes an interface detection device in actual use. As shown in FIG. Document output unit 60 . The interface communication unit 40, the detection unit 10, the data collection unit 20 and the location analysis unit 30 are connected in sequence, the preprocessing unit 50 is connected to the detection unit 10, and the document output unit 60 is connected to the data collection unit 20 and the location analysis unit 20 respectively.

接口通讯单元40与通讯设备的主控单元相连,负责下发主控单元的命令数据和上报接口通讯状态。通过下发命令数据,并控制一定的反馈延时,来判断接口通讯状态是否良好,再将反馈信息上报给主控单元。The interface communication unit 40 is connected to the main control unit of the communication device, and is responsible for issuing command data of the main control unit and reporting the communication state of the interface. By issuing command data and controlling a certain feedback delay, it is judged whether the communication status of the interface is good, and then the feedback information is reported to the main control unit.

预处理单元50与主控单元相连,在主控单元下发命令数据给单板之前,为了做到不同现网环境的自适应性,支持不同网元管理系统,需要先对每台设备进行预处理,筛选并剔除一些不必要进行接口状态判断的设备、单板及其槽位,以缩短系统运行时间,进一步提升有效时间比例。另外,在本实施例中,还支持用户自定义输入设备类型的功能,即只针对输入的设备类型进行巡检,其余的不予理会。The preprocessing unit 50 is connected to the main control unit. Before the main control unit issues command data to the board, in order to achieve adaptability to different live network environments and support different network element management systems, it is necessary to pre-process each device. Process, screen and eliminate some devices, boards and slots that do not need to judge the interface status, so as to shorten the system running time and further increase the effective time ratio. In addition, in this embodiment, the user-defined input device type function is also supported, that is, only the input device type is inspected, and the rest are ignored.

检测单元10的功能的实现是通过命令行终端登录到设备主控单元,对于每台单独的设备,接口通讯单元按照槽位号从小到大顺序,以固定的时间间隔和固定的次数发送命令数据,若在规定的时间内没有收到反馈信息,则认为该接口通讯状态出现异常,通过数据采集单元20采集主控单元相关数据。The realization of the function of the detection unit 10 is to log in to the main control unit of the device through the command line terminal. For each individual device, the interface communication unit sends command data at fixed time intervals and fixed times according to the order of slot numbers from small to large. , if no feedback information is received within the specified time, it is considered that the communication status of the interface is abnormal, and the relevant data of the main control unit is collected through the data collection unit 20 .

数据采集单元20,在检测单元10检测到接口异常时,记录接口异常的设备的IP和对应的单板槽位号,以及系统检测的开始、结束和运行时间,以及主控单元的现场运行数据,并将所采集的数据发送至文档输出单元60。The data acquisition unit 20, when the detection unit 10 detects an interface abnormality, records the IP of the equipment with the abnormal interface and the corresponding single board slot number, as well as the start, end and running time of the system detection, and the field operation data of the main control unit , and send the collected data to the document output unit 60 .

文档输出单元60,接收数据采集单元20所采集的相关数据,根据所采集的数据生成实时变化的信息文档,所生成的信息文档分为两种:统计文档:保存所有存在接口异常的设备的IP和对应的单板槽位号,以及系统检测的开始、结束和运行时间;设备日志文档:以每台设备为单位,生成其对应的单板接口状态记录日志文档。文档中包含了每块单板接收接口通讯单元下发的命令数据和反馈的全过程,以及用于定位接开错误的主控单元的现场数据。The document output unit 60 receives the relevant data collected by the data collection unit 20, and generates information files that change in real time according to the collected data. The generated information files are divided into two types: statistical files: save the IP addresses of all devices with abnormal interfaces. and the corresponding board slot number, as well as the start, end and running time of the system detection; device log file: for each device as a unit, generate its corresponding board interface status record log file. The document includes the whole process of each board receiving the command data and feedback issued by the interface communication unit, as well as the field data of the main control unit used to locate the connection error.

定位分析单元30通过获取文档输出单元60所生成的两类信息文档的相关数据,按照相应的错误评判准则,定位并分析设备通讯接口的错误类型。The location analysis unit 30 locates and analyzes the error type of the communication interface of the device according to the corresponding error judgment criteria by acquiring the relevant data of the two types of information files generated by the document output unit 60 .

图5示出了实施例二中的预处理单元处理流程图,如图5所示,包括以下处理步骤:Fig. 5 shows the processing flowchart of the preprocessing unit in the second embodiment, as shown in Fig. 5, including the following processing steps:

步骤S502,从网元管理系统EMS上导出全网中所有网元设备的报表表格。由于不同现网所使用的EMS可能不一致,因此,需要考虑由于EMS版本不同所引起的报表格式不同的情况。Step S502, exporting report forms of all network element devices in the whole network from the network element management system EMS. Since the EMS used by different live networks may be inconsistent, it is necessary to consider the different report formats caused by different EMS versions.

步骤S504,判断所检测的设备类型是否是自定义设备类型。对于有用户自定义输入设备类型的情况,仅针对输入的类型进行检测,执行步骤S506;否则,按照默认支持的设备类型检测,执行步骤S510。Step S504, judging whether the detected device type is a user-defined device type. If there is a user-defined input device type, only the input type is detected, and step S506 is performed; otherwise, the default supported device type is detected, and step S510 is performed.

步骤S506,获取自定义的设备类型和IP地址。在本实施例中,待检测设备类型和IP地址是从步骤S502导出的表格中获取的。具体的是通过对设备类型和IP所在表格中的行列数加以判断,来获取其值。Step S506, obtaining the user-defined device type and IP address. In this embodiment, the type and IP address of the device to be detected are obtained from the table derived in step S502. Specifically, the value is obtained by judging the number of rows and columns in the table where the device type and IP are located.

步骤S508,从EMS获取自定义类型设备的在线状态。在网元管理系统EMS上,可在服务器端获取每个网元设备的在线、离线或断链的状态,在本实施例中,只考虑在线的设备。Step S508, obtaining the online status of the user-defined device from the EMS. On the network element management system EMS, the online, offline or disconnected status of each network element device can be obtained on the server side. In this embodiment, only online devices are considered.

步骤S510,获取默认支持的设备类型和IP。Step S510, acquiring the device type and IP supported by default.

步骤S512,从EMS获取默认支持的类型设备的在线状态Step S512, obtaining the online status of the type equipment supported by default from the EMS

步骤S514,在EMS上进一步判断待检测设备是否在线,如果否,则执行步骤S516,将该设备过滤掉;如果是,则执行步骤S518。In step S514, it is further judged on the EMS whether the device to be detected is online, if not, execute step S516, and filter out the device; if yes, execute step S518.

步骤S516,过滤掉不在线的通讯设备。Step S516, filtering out offline communication devices.

步骤S518,得到所有符合条件的设备的类型和IP地址。可将设备的类型和IP保存在一个配置文件中,配置文件的每一行代表一台设备类型及其IP。In step S518, the types and IP addresses of all qualified devices are obtained. The device type and IP can be saved in a configuration file, and each line of the configuration file represents a device type and its IP.

步骤S520,设备的单板所在的槽位筛选。针对不同类型的通讯设备,尤其是MSTP设备,需要进行检测的单板的槽位是完全不同的,且都是只需检测一部分槽位。所以为了节省巡检时间,提高有效时间比,必须先进行各种类型设备的槽位筛选,筛选结果可以保存到一个临时的数组变量中。Step S520, screening the slots where the boards of the device are located. For different types of communication equipment, especially MSTP equipment, the slots of the boards that need to be tested are completely different, and only a part of the slots need to be tested. Therefore, in order to save inspection time and improve the effective time ratio, it is necessary to screen the slots of various types of equipment first, and the screening results can be saved in a temporary array variable.

步骤S522,槽位在线检测。Step S522, slot online detection.

步骤S524,判断槽位是否在线,对步骤S520中保存的结果,还要进行槽位在线的判断,即该槽位是否插有单板。同样为了节省时间,只对在线的槽位进行检测。In step S524, it is judged whether the slot is online. For the result saved in step S520, it is also judged whether the slot is online, that is, whether the slot is inserted with a single board. Also in order to save time, only online slots are tested.

步骤S526,得到需要检测的设备,以及该设备需要检测的单板接口。筛选的结果可以保存到最终的数组变量中。In step S526, the device to be detected and the board interface to be detected by the device are obtained. Filtered results can be saved to the final array variable.

图6示出了实施例二中的检测单元处理流程图。在本实施例中通过检测单板所插的槽位来检测单板接口,如图6所示,包括以下步骤:Fig. 6 shows a flow chart of the processing of the detection unit in the second embodiment. In this embodiment, the single board interface is detected by detecting the slot where the single board is inserted, as shown in Figure 6, including the following steps:

步骤S602,初始化当前槽位号和异常标识。在本实施例中,初始化当前槽位号n=0,异常标识flag=0。Step S602, initializing the current slot number and abnormality flag. In this embodiment, the current slot number n=0 is initialized, and the exception flag flag=0.

步骤S604,当前槽位接收上层接口通讯单元发送来的Ping包,ping包大小、次数和时间间隔可以预先设定。Step S604, the current slot receives the Ping packet sent by the upper interface communication unit, and the size, frequency and time interval of the ping packet can be preset.

步骤S606,判断单板是否在规定的时间段内上报反馈。如果在指定时间内,单板上报了所有ping包的反馈信息给接口通讯单元,则该单板通讯接口正常,执行步骤S610;否则执行步骤S608。Step S606, judging whether the single board reports feedback within a specified time period. If the single board reports all the feedback information of ping packets to the interface communication unit within the specified time, then the communication interface of the single board is normal, and step S610 is executed; otherwise, step S608 is executed.

步骤S608,若在指定时间内,单板通讯接口没有上报反馈信息给主控单元,或者说接口通讯单元没有接收到反馈,则对于该ping包,回显timeout字样,并置flag=1。在此步骤中,需传递设备日志文档信号给文档输出单元。Step S608, if the single-board communication interface does not report feedback information to the main control unit within the specified time, or the interface communication unit does not receive feedback, then for the ping packet, echo timeout and set flag=1. In this step, the device log file signal needs to be passed to the file output unit.

步骤S610,转至下一个槽位。Step S610, go to the next slot.

步骤S612,判断当前槽位的槽位号n是否大于该设备的最大槽位号。若n<最大槽位号,则n=n+1,并跳转回步骤S604继续接收接口通讯单元发给下一个槽位的ping包;如果n等于最大槽位号,则执行步骤S614。Step S612, judging whether the slot number n of the current slot is greater than the maximum slot number of the device. If n<the maximum slot number, then n=n+1, and jump back to step S604 to continue receiving the ping packet sent by the interface communication unit to the next slot; if n is equal to the maximum slot number, then execute step S614.

步骤S614,判断异常标识flag的值。若flag=1,则表明出现了超时现象,则执行步骤S616;否则,执行步骤S618。Step S614, judging the value of the abnormal flag flag. If flag=1, it indicates that a timeout phenomenon has occurred, then execute step S616; otherwise, execute step S618.

步骤S616,采集主控单元现场数据。即在检测完该设备后,执行一系列命令采集当前主控单元相关数据,并同时给文档输出单元发送共有信号,要求其输出超时的设备信息,包括设备类型、IP地址、超时的槽位号和采集的定位信息。Step S616, collecting field data of the main control unit. That is, after the device is detected, a series of commands are executed to collect relevant data of the current main control unit, and at the same time, a common signal is sent to the document output unit, requiring it to output timed out device information, including device type, IP address, and timed out slot number and collected positioning information.

步骤S618,若该设备所有待测槽位都已检测完,且flag=0则自动登录到下一台设备的主控单元,继续接收命令。同时传递设备日志文档信号给文档输出单元。Step S618, if all the slots to be tested in the device have been detected, and flag=0, then automatically log in to the main control unit of the next device, and continue to receive commands. At the same time, the device log file signal is transmitted to the file output unit.

步骤S620,生成信息文档。Step S620, generating an information document.

图7示出了实施例二中的文档输出单元处理流程图。如图7所示,包括以下步骤:FIG. 7 shows a flowchart of the processing of the document output unit in the second embodiment. As shown in Figure 7, the following steps are included:

步骤S702,获取系统开始运行的时间,输出到统计文档的第一行。Step S702, obtain the time when the system starts running, and output it to the first line of the statistics file.

步骤S704,接收信号。所接收的信号分为三种:一种只是针对设备日志文档,第二种是针对统计文档,第三种信号是两类输出文档共有的共有信号,其中,第一种信号来自接口检测单元,第二种信号来自定位分析单元,第三种信号是既可以来自接口检测单元也可以来自定位分析单元。Step S704, receiving a signal. The received signals are divided into three types: one is only for device log files, the second is for statistical files, and the third signal is a common signal shared by the two types of output files. Among them, the first signal comes from the interface detection unit, The second signal comes from the positioning analysis unit, and the third signal can come from either the interface detection unit or the positioning analysis unit.

步骤S706,判断是否是设备日志文档信号,如果是则执行步骤S708;否则,执行步骤S714。Step S706, judging whether it is a device log file signal, if yes, execute step S708; otherwise, execute step S714.

步骤S708,实时更新日志文档。对于设备日志文档的信号,由于是实时的信号,需要不断地写入日志。该步骤由图6中所示的步骤S608触发。当图6中所示步骤S618切换网元设备时,要新建设备日志,日志文件名为设备类型+设备IP+当前系统时间。Step S708, updating the log file in real time. For the signal of the device log file, since it is a real-time signal, it needs to be continuously written into the log. This step is triggered by step S608 shown in FIG. 6 . When the network element equipment is switched in step S618 shown in FIG. 6 , a new equipment log is created, and the log file name is equipment type + equipment IP + current system time.

步骤S710,判断当前设备日志信息是否输出完成,如果是执行步骤S712,如果否,执行步骤S708。Step S710, judging whether the output of the current device log information is completed, if yes, execute step S712, if not, execute step S708.

步骤S712,新建下一台设备的日志文档。Step S712, creating a log file of the next device.

步骤S714,判断是否是统计文档信号,如果是则执行步骤S720;否则,执行步骤S716。Step S714, judging whether it is a statistical document signal, if yes, execute step S720; otherwise, execute step S716.

步骤S716,在统计文档中对应的槽位号后面添加定位分析得出的结论。Step S716, adding the conclusion obtained from the positioning analysis after the corresponding slot number in the statistical document.

步骤S718,判断是否是共有信号,如果是则执行步骤S720。Step S718, judging whether it is a common signal, if yes, execute step S720.

步骤S720,同时在两个文档中输出信息。当接收到图6所示的步骤S616触发的信号时,即共有信号,表明出现了接口通讯状态异常,此时需要立即在统计文档中添加一行当前出现接口通讯故障的设备类型和对应的IP地址,同时在设备日志文档中,要输出采集的主控单元现场数据。Step S720, output information in two documents at the same time. When the signal triggered by step S616 shown in Figure 6 is received, that is, the common signal, it indicates that the interface communication status is abnormal. At this time, it is necessary to immediately add a row of the device type and the corresponding IP address in the statistical file that currently has an interface communication failure. , and at the same time, in the device log file, the field data collected by the main control unit should be output.

步骤S722,判断是否所有设备的信息均输出完成,如果是,则执行步骤S724;如果否,则执行步骤S704,即循环执行上述的输出流程。Step S722, judge whether the information of all devices has been outputted, if yes, execute step S724; if not, execute step S704, that is, execute the above output process in a loop.

步骤S724,获取系统结束的时间,同时计算系统运行时间,并输出到统计文档的最下方。In step S724, the time when the system ends is obtained, and the running time of the system is calculated at the same time, and output to the bottom of the statistics file.

图8示出了实施例二中的定位分析单元处理流程图。如图8所示,包括以下步骤:Fig. 8 shows a flow chart of the processing of the location analysis unit in the second embodiment. As shown in Figure 8, the following steps are included:

步骤S802,将当前相关字段数置零。Step S802, setting the current relevant field number to zero.

步骤S804,在检测完一台设备所有通讯接口之后,获取设备日志文档中采集的现场数据。Step S804, after detecting all the communication interfaces of a device, obtain the on-site data collected in the device log file.

步骤S806,根据添加的错误评判规则,对数据中相关字段值与规则进行对比。Step S806, according to the added error judging rules, compare the relevant field values in the data with the rules.

步骤S808,判断相关字段的值是否与错误评判规则中的某条规则相匹配,如果是,则执行步骤S810;如果否,则执行步骤S814。Step S808, judging whether the value of the relevant field matches a certain rule in the error judgment rules, if yes, execute step S810; if not, execute step S814.

步骤S810,匹配成功,得出定位结论。Step S810, the matching is successful, and a positioning conclusion is drawn.

步骤S812,向文档输出单元发出信号,要求在统计文档中添加定位结论,使用户更实时和直观了解造成接口不通的原因。In step S812, a signal is sent to the document output unit, requesting to add a positioning conclusion in the statistical document, so that the user can understand the cause of the interface failure in real time and intuitively.

步骤S814,比较下一个相关字段。设总共有M条规则,m为当前待比较的字段,则若当前第m个字段与规则比较失败,则m=m+1,继续比较下一条规则。Step S814, comparing the next relevant field. Suppose there are M rules in total, m is the current field to be compared, if the current mth field fails to compare with the rule, then m=m+1, and continue to compare the next rule.

步骤S816,判断当前字段是否大于最大规则数,如果是,则执行步骤S818;如果否,则执行步骤S806。Step S816, judging whether the current field is greater than the maximum number of rules, if yes, execute step S818; if not, execute step S806.

步骤S818,若m>M,即没有找到匹配的规则,列入遗留问题队列,有待人工分析定位,并在错误评价规则中添加新的规则,转至步骤S810。Step S818, if m>M, that is, no matching rule is found, it is put into the queue of remaining problems, to be manually analyzed and located, and a new rule is added to the error evaluation rules, and then go to step S810.

在本发明的上述实施例中,通过检测命令来控制主控单元自动化地检测单板接口的连接状态,从而节省了接口检测的时间和人力,提高了接口检测的效率。操作简单,唯一需要手动操作的只是安装运行脚本程序的软件,以及在脚本刚开始运行时需输入的几个简单变量;并且在检测的过程中,会自动生成输出文档,包括统计信息文档和与每台设备通讯接口通讯的全过程记录文档,文档中包含了全部定位所需数据,将人为参与分析定位转变成系统自动定位,减少了人为定位问题所带来的繁琐和费时;另外,上述的接口检测方法能够自适应各种传输网的现网环境,支持不同网元管理系统和不同类型的通讯设备尤其是MSTP设备。In the above embodiments of the present invention, the main control unit is controlled by the detection command to automatically detect the connection state of the single board interface, thereby saving time and manpower for interface detection and improving the efficiency of interface detection. The operation is simple, the only manual operation is to install the software to run the script program, and a few simple variables that need to be input when the script starts to run; and during the detection process, the output documents will be automatically generated, including statistical information documents and related The whole process record document of the communication interface of each device contains all the data required for positioning, which transforms human participation in analysis and positioning into automatic positioning of the system, reducing the tedious and time-consuming problems caused by human positioning; in addition, the above-mentioned The interface detection method can adapt to the current network environment of various transmission networks, and supports different network element management systems and different types of communication equipment, especially MSTP equipment.

显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that each module or each step of the above-mentioned present invention can be realized by a general-purpose computing device, and they can be concentrated on a single computing device, or distributed in a network formed by multiple computing devices Alternatively, they may be implemented in program code executable by a computing device so that they may be stored in a storage device to be executed by a computing device, and in some cases in an order different from that shown here The steps shown or described are carried out, or they are separately fabricated into individual integrated circuit modules, or multiple modules or steps among them are fabricated into a single integrated circuit module for implementation. As such, the present invention is not limited to any specific combination of hardware and software.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above descriptions are only preferred embodiments of the present invention, and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and changes. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.

Claims (10)

CN201010282152.7A2010-09-142010-09-14Interface detection method and device for communication equipmentActiveCN101977128B (en)

Priority Applications (2)

Application NumberPriority DateFiling DateTitle
CN201010282152.7ACN101977128B (en)2010-09-142010-09-14Interface detection method and device for communication equipment
PCT/CN2011/070360WO2012034366A1 (en)2010-09-142011-01-18Method and apparatus for detecting interface of communcation device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201010282152.7ACN101977128B (en)2010-09-142010-09-14Interface detection method and device for communication equipment

Publications (2)

Publication NumberPublication Date
CN101977128A CN101977128A (en)2011-02-16
CN101977128Btrue CN101977128B (en)2015-04-01

Family

ID=43576975

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201010282152.7AActiveCN101977128B (en)2010-09-142010-09-14Interface detection method and device for communication equipment

Country Status (2)

CountryLink
CN (1)CN101977128B (en)
WO (1)WO2012034366A1 (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN103312573B (en)*2013-06-142016-12-28西安交通大学A kind of domestic network system equipment finds and recognition methods
CN105743675A (en)*2014-12-102016-07-06中兴通讯股份有限公司Method and device for acquiring information
CN105049239B (en)*2015-06-252018-05-25北京百度网讯科技有限公司The recognition methods of interface connection relation and system
CN105517195A (en)*2015-11-272016-04-20上海华为技术有限公司State detection method and wireless network node
CN107529183B (en)*2016-06-222022-03-25中兴通讯股份有限公司Communication equipment detection method and device and communication equipment
CN106597927B (en)*2016-11-302019-02-22广东美的制冷设备有限公司The test method communicated between the test device, household electrical appliance and the plate that are communicated between plate
CN108627715B (en)*2017-03-212022-09-02中兴通讯股份有限公司Method and device for detecting single board state
CN108134689B (en)*2017-12-112021-07-23杭州迪普科技股份有限公司Method and device for checking faults of cascade interface inside frame type equipment
WO2021217540A1 (en)*2020-04-302021-11-04深圳市大疆创新科技有限公司Detection method, device, and system for communication link, and mobile platform
CN114760236B (en)*2022-04-082023-11-14中国银行股份有限公司Interface checking method, device, storage medium and equipment
CN118827459B (en)*2024-09-202024-12-06无锡研奇智联技术有限公司Device state detection method, device, electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1735047A (en)*2004-08-122006-02-15华为技术有限公司 A fault self-diagnosis method and device
CN1832417A (en)*2005-03-102006-09-13华为技术有限公司 A data acquisition method and system
CN100370747C (en)*2004-12-022008-02-20华为技术有限公司 A communication device and its internal link fault location method
CN101136806A (en)*2007-07-042008-03-05中兴通讯股份有限公司Label VLAN based switching chip port detecting method and apparatus
CN101699410A (en)*2009-11-112010-04-28中兴通讯股份有限公司Single plate hardware fault detection method and device
CN101707503A (en)*2009-07-032010-05-12中兴通讯股份有限公司Embedded method and device for controlling automatic positioning of channel communication failure

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6912671B2 (en)*2001-05-072005-06-28Bisher-Rosemount Systems, IncWiring fault detection, diagnosis and reporting for process control systems
US7315181B1 (en)*2005-12-012008-01-01At&T Corp.Method for automatically identifying component failure in a communication network
CN1968481A (en)*2006-04-122007-05-23华为技术有限公司Method for detecting interior hardware interface failure of base station
CN101145970B (en)*2007-10-112010-09-08中兴通讯股份有限公司 System and method for online locating communication system equipment failure
CN101227346B (en)*2008-02-052012-05-16中兴通讯股份有限公司Fault monitoring method and device in automatic testing process of communication equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN1735047A (en)*2004-08-122006-02-15华为技术有限公司 A fault self-diagnosis method and device
CN100370747C (en)*2004-12-022008-02-20华为技术有限公司 A communication device and its internal link fault location method
CN1832417A (en)*2005-03-102006-09-13华为技术有限公司 A data acquisition method and system
CN101136806A (en)*2007-07-042008-03-05中兴通讯股份有限公司Label VLAN based switching chip port detecting method and apparatus
CN101707503A (en)*2009-07-032010-05-12中兴通讯股份有限公司Embedded method and device for controlling automatic positioning of channel communication failure
CN101699410A (en)*2009-11-112010-04-28中兴通讯股份有限公司Single plate hardware fault detection method and device

Also Published As

Publication numberPublication date
CN101977128A (en)2011-02-16
WO2012034366A1 (en)2012-03-22

Similar Documents

PublicationPublication DateTitle
CN101977128B (en)Interface detection method and device for communication equipment
TWI741505B (en)Topology processing method, device and system
CN102740342B (en)The analog detection method of Network Management Equipment performance and system
US20060200373A1 (en)Facilitating Root Cause Analysis for Abnormal Behavior of Systems in a Networked Environment
CN100384162C (en) Automatic testing device and testing method for business system
CN110855493B (en)Application topological graph drawing device for mixed environment
WO2017041406A1 (en)Failure positioning method and device
CN105159964A (en)Log monitoring method and system
CN110389901B (en)ARM industrial personal computer testing method and device, computer equipment and storage medium
US20160127207A1 (en)System for Analyzing an Industrial Control Network
CN106776346B (en)Test method and device of CCMTS (China center testing System) equipment
CN111343029B (en)Monitoring platform and method based on topology monitoring of data forwarding nodes
US8738761B2 (en)Method and system to capture and playback network activity
CN111190755A (en)Application program function exception handling method and device
CN112367212B (en)Virtual machine network quality monitoring method and system in cloud environment
CN103746879A (en)Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
CN107635003A (en) System log management method, device and system
CN103746840A (en)Method and system for automatic checking of software version information of network equipment
CN113783749A (en)Method for detecting equipment fault based on network port
CN110475161B (en)Automatic fault positioning method and system for IPTV service live link
CN120166052A (en) Fault determination method and device, non-volatile storage medium, and electronic device
WO2017193763A1 (en)Testing method, apparatus and system
CN110647417B (en)Energy internet abnormal data processing method, device and system
CN115615732A (en) Method and system for monitoring abnormal state of quality detector
CN113422696B (en)Monitoring data updating method, system, equipment and readable storage medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20191217

Address after:314400 No.11, Weisan Road, Nongfa District, Chang'an Town, Haining City, Jiaxing City, Zhejiang Province

Patentee after:Haining hi tech Zone Science and Innovation Center Co., Ltd

Address before:518057 Nanshan District science and technology, Guangdong Province, South Road, No. 55, No.

Patentee before:ZTE Communications Co., Ltd.


[8]ページ先頭

©2009-2025 Movatter.jp