WO2016091141A1 - Method and apparatus for information collection - Google Patents

Method and apparatus for information collection Download PDF

Info

Publication number
WO2016091141A1
WO2016091141A1 PCT/CN2015/096584 CN2015096584W WO2016091141A1 WO 2016091141 A1 WO2016091141 A1 WO 2016091141A1 CN 2015096584 W CN2015096584 W CN 2015096584W WO 2016091141 A1 WO2016091141 A1 WO 2016091141A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
information
detected
collection
command
Prior art date
Application number
PCT/CN2015/096584
Other languages
French (fr)
Chinese (zh)
Inventor
张桂莲
韩玉
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016091141A1 publication Critical patent/WO2016091141A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks

Definitions

  • the present invention relates to the field of communications, and in particular to an information collection method and apparatus.
  • the invention provides an information collecting method and device, so as to at least solve the problem that the related technology cannot collect information inside the unit.
  • an information collection method including: a client device acquires an acquisition command for collecting information for detecting a network element; and the client device sends the collection command to a proxy server, and The collection information of the to-be-detected network element is received by the proxy server.
  • the method before the obtaining, by the client device, the collection command for collecting the information to be detected by the network element, the method includes: acquiring the attribute information of the network element to be detected.
  • the acquiring the attribute information of the to-be-detected network element includes: acquiring the attribute information of the to-be-detected network element from the network management device; and/or, the client device acquiring the attribute information of the to-be-detected network element locally.
  • the attribute information includes at least one of the following: a name of the to-be-detected network element, an identifier of the to-be-detected network element, a type of the to-be-detected network element, and a network protocol IP address of the to-be-detected network element.
  • the obtaining, by the client device, the collection command for collecting information about the network element to be detected includes: obtaining, by the client device, the collection command from a local configuration file.
  • the collecting information includes at least: fault information of the network element to be detected.
  • another method for collecting information including: receiving, by the proxy server, an acquisition command for collecting information about the network element to be detected, and transmitting the foregoing collection command to the network element to be detected.
  • the proxy server receives the collection information collected by the to-be-detected network element according to the foregoing collection command, and sends the collected information to the client terminal.
  • the proxy server after receiving the foregoing collection command, includes: the proxy server establishes a connection with the to-be-detected network element; after establishing the connection, the proxy server sends the chain establishment authentication information to the to-be-detected network element; The above-mentioned link establishment authentication information is used to confirm whether the above connection is successfully established.
  • the proxy server sends the link establishment authentication information to the to-be-detected network element, where the proxy server sends the link establishment authentication information through a link established by the Qx port; or the proxy server passes the foregoing
  • the remote terminal protocol TELNET link sends the above-mentioned chain establishment authentication information.
  • the proxy server receives the foregoing collection command in the following manner: a Qx interface mode, a remote terminal protocol TELNET command mode, and a File Transfer Protocol (FTP) method.
  • FTP File Transfer Protocol
  • an information collection device is provided.
  • the device is applied to a client device, and includes: an acquisition module, configured to acquire an acquisition command for collecting information of a network element to be detected; and a processing module configured to The collection command is sent to the proxy server, and the collection information of the to-be-detected network element is received by the proxy server.
  • the collecting information includes at least: fault information of the network element to be detected.
  • another information collection apparatus is provided.
  • the apparatus is applied to a proxy server, and includes: a receiving module, configured to receive an acquisition command for collecting information of a network element to be detected, and to acquire the foregoing collection command.
  • the processing module is configured to receive the collection information collected by the to-be-detected network element according to the foregoing collection command, and send the collection information to the client terminal.
  • the client device obtains an acquisition command for collecting information for detecting the network element; the client device sends the collection command to the proxy server, and receives the collection information of the network element to be detected through the proxy server.
  • FIG. 1 is a flow chart of an information collecting method according to an embodiment of the present invention.
  • FIG. 2 is a block diagram showing the structure of an information collecting apparatus according to an embodiment of the present invention.
  • FIG 3 is another flow chart of an information collecting method according to an embodiment of the present invention.
  • FIG. 4 is a block diagram showing another structure of an information collecting apparatus according to an embodiment of the present invention.
  • FIG. 5 is a general structural diagram of a fault information collection tool according to an embodiment of the present invention.
  • FIG. 6 is a flow chart of fault information collection according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of an information collection method according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
  • Step S102 The client device acquires an acquisition command for collecting information about the network element to be detected.
  • Step S104 The client device sends the collection command to the proxy server, and receives the collection information of the network element to be detected through the proxy server.
  • the client device sends the collection command for collecting the information to be detected to the proxy server, and receives the collection information of the network element to be detected through the proxy server, so that the user can treat the collected information of the network element to be detected according to the acquired information.
  • the status of the network element is detected to determine.
  • the problem that the information inside the unit cannot be collected in the related art is solved, and the information of the board can be flexibly collected, so that the developer can locate the fault.
  • the client device obtains the attribute information of the network element to be detected before acquiring the collection command for collecting the information of the network element to be detected. Therefore, according to the attribute information of the network element to be detected, it is determined whether to collect information about which to-be-detected network element.
  • the attribute information of the network element to be detected can be obtained in various manners, which is exemplified below.
  • the attribute information of the network element to be detected may be obtained from the network management device.
  • the client device may also obtain the attribute information of the network element to be detected from the local device.
  • the attribute information may include a name of the network element to be detected, an identifier of the network element to be detected, a type of the network element to be detected, and a network protocol IP address of the network element to be detected.
  • step S102 involves the client device acquiring an acquisition command for collecting information for the network element to be detected.
  • the client device acquires the collection command from the local configuration file.
  • the collecting information includes at least the fault information of the network element to be detected, so that the user can locate the fault according to the fault information of the network element to be detected.
  • module may implement a combination of software and/or hardware of a predetermined function.
  • 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 device is applied to a client device. As shown in FIG. 2, the device includes: an acquiring module 22, configured to acquire an information collection of a network element to be detected.
  • the processing module 24 is configured to send the collection command to the proxy server, and receive the collection information of the network element to be detected through the proxy server.
  • the collecting information includes at least: fault information of the network element to be detected.
  • FIG. 3 is another flowchart of an information collecting method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
  • Step S302 the proxy server receives an acquisition command for collecting information for detecting the network element, and sends the collection command to the network element to be detected.
  • Step S304 the proxy server receives the collection information collected by the network element to be detected according to the collection command, and sends the collection information to the client.
  • the client device receives the collection information of the network element to be detected through the proxy server, so that the user can determine the state of the network element to be detected according to the acquired collection information of the network element to be detected.
  • the problem that the information inside the unit cannot be collected in the related art is solved, and the information of the board can be flexibly collected, so that the developer can locate the fault.
  • the proxy server establishes a connection with the network element to be detected according to the received collection command. In another optional embodiment, after establishing the connection, the proxy server sends a link to the network element to be detected. The authentication information is used to confirm whether the connection between the proxy server and the network element to be detected is successfully established.
  • the proxy server may send the link establishment authentication information through the link established by the Qx port. In another optional embodiment, the proxy server may also send the link establishment through the remote terminal protocol TELNET link. Right information.
  • the proxy server may receive the collection command through the Qx interface mode or the remote terminal protocol TELNET command mode or the file transfer protocol FTP mode.
  • module may implement a combination of software and/or hardware of a predetermined function.
  • apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 4 is another structural block diagram of an information collecting apparatus according to an embodiment of the present invention.
  • the apparatus is applied to a proxy server.
  • the apparatus includes: a receiving module 42 configured to receive information for detecting a network element to be detected.
  • the collection command is sent to the network element to be detected, and the processing module 44 is configured to receive the collection information collected by the network element to be detected according to the collection command, and send the collection information to the client.
  • each of the above modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are respectively located.
  • the first processor, the second processor, and the third processor In the first processor, the second processor, and the third processor.
  • the optional embodiment relates to a fault information collection system and an acquisition method, which mainly focuses on dynamic network running state, static data analysis, and network hidden danger analysis, and is an independent tool for intelligent automatic health check of the existing network.
  • the scope of the inspection mainly includes the current network health.
  • a fast fault information collection tool consisting of a client (equivalent to the above client device), a business logic control manager (manager) and a communication agent module (Agent) (the communication agent module is related to the proxy server described below)
  • the three components are composed of three components, wherein the client mainly provides interface display and human-computer interaction.
  • the business logic control processing module mainly implements parallel processing between each network element and serial processing of each data item of a single network element, and the communication agent module implements Direct communication of network elements, without any business logic processing.
  • the client implements functions such as operation interface display, configuration file reading, report output, file downloading, and memory management.
  • the components included include:
  • the collection tool accesses the communication device through the agent agent, and needs to log in to the agent agent before performing the collection, and set the protocol (Internet Protocol, IP for short) to be interconnected between the networks of the login agent in the system setting menu. And the port, the connection test between the collection tool and the agent can be performed, and the directory for outputting the report can also be set in the system setting.
  • IP Internet Protocol
  • the collecting device adopts a configuration file to organize a fault command to be collected, and the process of initializing the data is to read the configuration file.
  • the device type, the board type, the collection type, and the collection command are used to store the mappings between the board types of the specific NE types and the commands to be queried.
  • the process of performing the acquisition is to call the entry function of the manager module, and then start the Manager module processing flow.
  • the Manager module implements communication functions, including reading memory, organizing data, constructing messages, issuing and accepting commands, and reporting returns.
  • the Manager module processing process consists of the following steps:
  • the client After the link establishment command is successfully returned, the client sends an NE login command, and the agent logs in to the network element.
  • the proxy server is a tool that connects the client and the device, and establishes a chain with the network element to complete the delivery of the command.
  • the agent allocates and sends commands to the NE according to different command types, and the receiving device responds or reports the command to the client.
  • the proxy server is divided into four functional modules:
  • a connection is established with the client module, and the receiving client sends a command to the processing queue, and sends a response or a voluntary reporting command to the client.
  • the server completes the processing and transparent transmission of command packets, such as the command to collect NEs on the Qx interface, and obtain the board information.
  • the NE actively reports the command. Generally, the command is blocked. The command is blocked according to the user's requirements and reported and reported.
  • the ping packet mechanism actively sends ping packets to the client and the network element. Ping the packet upwards: guarantee the link between the client and the client; ping the packet down to ensure the link with multiple network elements.
  • the fault information collection tool is a system for implementing communication between a client, a proxy agent, and a network element board, where the client is set by the system. , import network elements, add and execute collection and other menu items.
  • Deleting the NE deletes the NE information in the selected NE list
  • This tool implements interactions with NE devices in three ways: Qx port mode, TELNET command mode, and FTP file transfer protocol mode.
  • each component or component in the tool system uses Qx port messages to perform command and notification interactions, thereby reducing unnecessary conversion, including chaining and chain breaking with the network element device.
  • Query the board column Tables and so on need to use Qx port messages.
  • the TELNET command communicates with the NE through the TELNET communication port.
  • the packet header is in the form of a Qx.
  • the command parameters are the actual commands of the TELNET. You do not need to organize the board address. Different boards are only available.
  • the TELNET command is different.
  • the command parameters are separated by the communication agent module and sent directly to the network element through the TELNET communication port. The returned command result is then returned to the collection tool by the communication agent module.
  • the fault collection tool sometimes needs to download the log file from the single board device and save it to the local, which is convenient for developers and field maintenance personnel to view.
  • the FTP file transfer protocol is needed to implement the file download function.
  • FIG. 6 is a flow chart of the fault information collection according to the embodiment of the present invention, in which all the board information on the network element building chain, the login network element, and the fetching network element are used to the Qx port command.
  • the collection process of TELNET and WASON-TELNET adopts TELNET mode, and the FTP file download protocol handles the interaction with the communication device by using FTP. As shown in FIG. 6, the process includes the following steps:
  • step S602 the collection is started, the network element and the collection item information set by the interface are read, and the process of connecting the communication agent Agent is completed through the IP address and port of the communication agent in the system setting, and the receiving thread is started.
  • Step S604 the network element is built and authenticated, and the collection tool and the communication agent module normally establish communication, and then the information and authentication information of the specific network element are established, including the Qx port construction chain and the TELNET chain, and the communication agent The modules establish connections in sequence, returning normal/exception information uniformly.
  • step S606 the information of all the boards is obtained, and the information of all the boards is obtained by sending the Qx interface, and the basic information of the board obtained from the selected list of the NEs, including the NE ID and device type. IP, collection fault type, etc., save the collected data items to the TNE structure list, add the task queue, and call the entry function of the manager module.
  • Step S608 Matching the configuration file process, traversing the elements of the TNE structure list transmitted to the Manager, and matching the user name and password in the configuration file according to the device type of the element, and obtaining the fault command set to be delivered. .
  • step S610 the command parameters are obtained, and the command collection type is determined.
  • the loop collection process is performed for different collection types. For example, the TELNET file and the TELNET-WASON file are sent by the TELNET mode, and the FTP file is downloaded by the FTP protocol.
  • step S612 the TELNET and TELNET-WASON commands are processed. Since TELNET and TELNET-WASON are both TELNET modes, the acquisition process is similar, and only the latter is described here:
  • the login to the WASON is the first to log in to the Sitara Networks Protocol (SNP) board. After logging in successfully, log in to the WASON. Therefore, first obtain the username and password in the TELNET node, and use the TELNET method to set the SNP username. The password is assembled into a message to the agent to issue the Qx9004 command, and then the enterksh command is issued to enter the first environment, and the process implements the SNP login.
  • SNP Sitara Networks Protocol
  • IP is the proxy agent's IP address +1
  • port information IP is the proxy agent's IP address +1
  • the environment entered after logging in to WASON It is unknown, that is, it may be the first environment or the second environment, so you need to issue the enterksh command again to ensure that it enters the KSH environment.
  • the WASON command list is traversed and sent through the TELNET. If there is an enterprise in the command, the WASON user name and password must be sent again.
  • the client parses the packet according to the packet reported by the proxy and outputs it to the report.
  • the file name is named according to the IP address of the network element and the suffix of *.dat, and the fault is located and tracked through the report data file.
  • Step S614 the FTP file download protocol processing process:
  • the agent Since the client directly interacts with the agent Agent, the agent first needs to act as a client role to download the log file to the Agent agent, and then acts as an FTP server role to interact with the client.
  • the client first establishes a socket control connection with the FTP server through the IP address and port of the network element, and then logs in to the FTP server on the proxy by sending the username and password in the FTP node in the configuration file.
  • the commands related to the FTP file download protocol are sent: Change Working Directory (CWD), TYPE I, PASV, and RETR.
  • CWD Change Working Directory
  • TYPE I TYPE I
  • PASV PASV
  • RETR RETR
  • Step S616 sending a message, registering a timeout node, and blocking the thread.
  • the collection tool needs to send a command to close the network element connection to the communication agent module, and the network element broken chain adopts the Qx port command 0x9001.
  • the embodiment of the present invention provides a new fault information collection tool.
  • the fault information collection tool is mainly located in the network dynamic running state, static data analysis, and network hidden danger analysis, mainly for intelligent automatic network network.
  • Health check the scope of the test mainly includes the current network health.
  • the fault information collection tool is mainly applied in two scenarios: (1) engineering initial inspection and routine health check operation, routine inspection; (2) network site basic configuration data collection for fault tracking and positioning.
  • the invention provides a new fault information collection tool solution, which can flexibly track and locate faults, and provides faster and more efficient fault information collection.
  • a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
  • 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.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the client device obtains an acquisition command for collecting information for detecting the network element; the client device sends the collection command to the proxy server, and receives the collection information of the network element to be detected through the proxy server.

Abstract

Disclosed are a method and apparatus for information collection. The method comprises: a client device acquires a collection command for collecting information from a network element to be tested; the client device sends the collection command to a proxy server, and receives, through the proxy server, information that is collected from the network element to be tested. The present invention resolves the problem in the related art that information inside an element cannot be collected, so that board information can be flexibly collected, facilitating fault location for developers.

Description

信息采集方法及装置Information collection method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及信息采集方法及装置。The present invention relates to the field of communications, and in particular to an information collection method and apparatus.
背景技术Background technique
随着通讯技术的发展和应用,网络设备更新换代不断。在设备快速升级过程中,不可避免的会出现问题,由于单板内部性能不可见,开发人员定位故障困难。网管系统运维人员必须到故障现场去定位和解决故障,由于很多故障属于频发性的,这样就增加了重复性工作,从而增加了解决故障的时间和经济投入,降低了工作效率。With the development and application of communication technologies, network equipment has been updated. In the process of rapid device upgrade, problems will inevitably occur. Because the internal performance of the board is not visible, it is difficult for developers to locate faults. The network management system operation and maintenance personnel must go to the fault site to locate and solve the fault. Since many faults are frequent, this increases the repetitive work, which increases the time and economic investment to solve the fault and reduces the work efficiency.
针对相关技术中,不能对单元内部的信息进行采集的问题,还未提出有效的解决方案。In view of the related art, the problem that the information inside the unit cannot be collected has not yet provided an effective solution.
发明内容Summary of the invention
本发明提供了一种信息采集方法及装置,以至少解决相关技术不能对单元内部的信息进行采集的问题。The invention provides an information collecting method and device, so as to at least solve the problem that the related technology cannot collect information inside the unit.
根据本发明实施例的一个方面,提供了一种信息采集方法,包括:客户端设备获取用于对待检测网元进行信息采集的采集命令;上述客户端设备将上述采集命令发送给代理服务器,并通过上述代理服务器接收对上述待检测网元的采集信息。According to an aspect of the present invention, an information collection method is provided, including: a client device acquires an acquisition command for collecting information for detecting a network element; and the client device sends the collection command to a proxy server, and The collection information of the to-be-detected network element is received by the proxy server.
可选地,上述客户端设备获取用于对待检测网元进行信息采集的采集命令之前包括:获取上述待检测网元的属性信息。Optionally, before the obtaining, by the client device, the collection command for collecting the information to be detected by the network element, the method includes: acquiring the attribute information of the network element to be detected.
可选地,获取上述待检测网元的属性信息包括:从网管设备中获取上述待检测网元的属性信息;和/或,上述客户端设备从本地获取上述待检测网元的属性信息。Optionally, the acquiring the attribute information of the to-be-detected network element includes: acquiring the attribute information of the to-be-detected network element from the network management device; and/or, the client device acquiring the attribute information of the to-be-detected network element locally.
可选地,上述属性信息包括以下至少之一:上述待检测网元的名称、上述待检测网元的标识、上述待检测网元的类型、上述待检测网元的网络协议IP地址。Optionally, the attribute information includes at least one of the following: a name of the to-be-detected network element, an identifier of the to-be-detected network element, a type of the to-be-detected network element, and a network protocol IP address of the to-be-detected network element.
可选地,上述客户端设备获取用于对待检测网元进行信息采集的采集命令包括:上述客户端设备从本地配置文件中获取上述采集命令。Optionally, the obtaining, by the client device, the collection command for collecting information about the network element to be detected includes: obtaining, by the client device, the collection command from a local configuration file.
可选地,上述采集信息至少包括:上述待检测网元的故障信息。Optionally, the collecting information includes at least: fault information of the network element to be detected.
根据本发明实施例的另一个方面,还提供了另一种信息采集方法,包括:代理服务器接收用于对待检测网元进行信息采集的采集命令,并将上述采集命令发送至上述待检测网元;上述代理服务器接收上述待检测网元根据上述采集命令采集得到的采集信息,并将上述采集信息发送至客服端。 According to another aspect of the present invention, another method for collecting information is provided, including: receiving, by the proxy server, an acquisition command for collecting information about the network element to be detected, and transmitting the foregoing collection command to the network element to be detected. The proxy server receives the collection information collected by the to-be-detected network element according to the foregoing collection command, and sends the collected information to the client terminal.
可选地,上述代理服务器接收上述采集命令之后包括:上述代理服务器建立与上述待检测网元的连接;在建立上述连接后,上述代理服务器向上述待检测网元发送建链鉴权信息;其中,上述建链鉴权信息用于确认上述连接是否成功建立。Optionally, after receiving the foregoing collection command, the proxy server includes: the proxy server establishes a connection with the to-be-detected network element; after establishing the connection, the proxy server sends the chain establishment authentication information to the to-be-detected network element; The above-mentioned link establishment authentication information is used to confirm whether the above connection is successfully established.
可选地,上述代理服务器向上述待检测网元发送上述建链鉴权信息包括以下至少之一:上述代理服务器通过Qx口建立的链路发送上述建链鉴权信息;或者,上述代理服务器通过远端终端协议TELNET链路发送上述建链鉴权信息。Optionally, the proxy server sends the link establishment authentication information to the to-be-detected network element, where the proxy server sends the link establishment authentication information through a link established by the Qx port; or the proxy server passes the foregoing The remote terminal protocol TELNET link sends the above-mentioned chain establishment authentication information.
可选地,上述代理服务器通过以下之一方式接收上述采集命令:Qx口方式、远端终端协议TELNET命令方式、文件传输协议文件传输协议(File Transfer Protocol,简称为FTP)方式。Optionally, the proxy server receives the foregoing collection command in the following manner: a Qx interface mode, a remote terminal protocol TELNET command mode, and a File Transfer Protocol (FTP) method.
根据本发明实施例的一个方面,提供了一种信息采集装置,上述装置应用于客户端设备,包括:获取模块,设置为获取对待检测网元进行信息采集的采集命令;处理模块,设置为将上述采集命令发送给代理服务器,并通过上述代理服务器接收对上述待检测网元的采集信息。According to an aspect of the present invention, an information collection device is provided. The device is applied to a client device, and includes: an acquisition module, configured to acquire an acquisition command for collecting information of a network element to be detected; and a processing module configured to The collection command is sent to the proxy server, and the collection information of the to-be-detected network element is received by the proxy server.
可选地,上述采集信息至少包括:上述待检测网元的故障信息。Optionally, the collecting information includes at least: fault information of the network element to be detected.
根据本发明实施例的另一个方面,提供了另一种信息采集装置,上述装置应用于代理服务器,包括:接收模块,设置为接收对待检测网元进行信息采集的采集命令,并将上述采集命令发送至上述待检测网元;处理模块,设置为接收上述待检测网元根据上述采集命令采集得到的采集信息,并将上述采集信息发送至客服端。According to another aspect of the present invention, another information collection apparatus is provided. The apparatus is applied to a proxy server, and includes: a receiving module, configured to receive an acquisition command for collecting information of a network element to be detected, and to acquire the foregoing collection command. The processing module is configured to receive the collection information collected by the to-be-detected network element according to the foregoing collection command, and send the collection information to the client terminal.
通过本发明实施例,采用客户端设备获取用于对待检测网元进行信息采集的采集命令;客户端设备将采集命令发送给代理服务器,并通过代理服务器接收对待检测网元的采集信息。解决了相关技术中不能对单元内部的信息进行采集的问题,进而可以对单板信息进行灵活采集,便于开发人员进行故障定位。In the embodiment of the present invention, the client device obtains an acquisition command for collecting information for detecting the network element; the client device sends the collection command to the proxy server, and receives the collection information of the network element to be detected through the proxy server. The problem that the information inside the unit cannot be collected in the related art is solved, and the information of the board can be flexibly collected, so that the developer can locate the fault.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的信息采集方法的流程图;1 is a flow chart of an information collecting method according to an embodiment of the present invention;
图2是根据本发明实施例的信息采集装置的结构框图;2 is a block diagram showing the structure of an information collecting apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的信息采集方法的另一个流程图;3 is another flow chart of an information collecting method according to an embodiment of the present invention;
图4是根据本发明实施例的信息采集装置的另一个结构框图;4 is a block diagram showing another structure of an information collecting apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的故障信息采集工具总体结构图;FIG. 5 is a general structural diagram of a fault information collection tool according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的故障信息采集流程图。 FIG. 6 is a flow chart of fault information collection according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种信息采集方法,图1是根据本发明实施例的信息采集方法的流程图,如图1所示,该流程包括如下步骤:An information collection method is provided in this embodiment. FIG. 1 is a flowchart of an information collection method according to an embodiment of the present invention. As shown in FIG. 1 , the process includes the following steps:
步骤S102,客户端设备获取用于对待检测网元进行信息采集的采集命令;Step S102: The client device acquires an acquisition command for collecting information about the network element to be detected.
步骤S104,客户端设备将采集命令发送给代理服务器,并通过代理服务器接收对待检测网元的采集信息。Step S104: The client device sends the collection command to the proxy server, and receives the collection information of the network element to be detected through the proxy server.
通过上述步骤,客户端设备将对待检测网元进行信息采集的采集命令发送给代理服务器,并且通过代理服务器接收对待检测网元的采集信息,从而用户可以根据获取的对待检测网元的采集信息对待检测网元的状态进行判断。解决了相关技术中不能对单元内部的信息进行采集的问题,进而可以对单板信息进行灵活采集,便于开发人员进行故障定位。Through the above steps, the client device sends the collection command for collecting the information to be detected to the proxy server, and receives the collection information of the network element to be detected through the proxy server, so that the user can treat the collected information of the network element to be detected according to the acquired information. The status of the network element is detected to determine. The problem that the information inside the unit cannot be collected in the related art is solved, and the information of the board can be flexibly collected, so that the developer can locate the fault.
在一个可选实施例中,客户端设备获取用于对待检测网元进行信息采集的采集命令之前,获取待检测网元的属性信息。从而根据待检测网元的属性信息确定对具体哪个待检测网元进行信息采集。In an optional embodiment, the client device obtains the attribute information of the network element to be detected before acquiring the collection command for collecting the information of the network element to be detected. Therefore, according to the attribute information of the network element to be detected, it is determined whether to collect information about which to-be-detected network element.
可以通过多种方式获取待检测网元的属性信息,下面对此进行举例说明。在一个可选实施例中,可以从网管设备中获取待检测网元的属性信息,在另一可选实施例中,客户端设备也可以从本地获取待检测网元的属性信息。The attribute information of the network element to be detected can be obtained in various manners, which is exemplified below. In an optional embodiment, the attribute information of the network element to be detected may be obtained from the network management device. In another optional embodiment, the client device may also obtain the attribute information of the network element to be detected from the local device.
在一个可选实施例中,属性信息可以包括,待检测网元的名称、待检测网元的标识、待检测网元的类型、待检测网元的网络协议IP地址。In an optional embodiment, the attribute information may include a name of the network element to be detected, an identifier of the network element to be detected, a type of the network element to be detected, and a network protocol IP address of the network element to be detected.
上述步骤S102涉及客户端设备获取用于对待检测网元进行信息采集的采集命令,在一个可选实施例中,客户端设备从本地配置文件中获取采集命令。The foregoing step S102 involves the client device acquiring an acquisition command for collecting information for the network element to be detected. In an optional embodiment, the client device acquires the collection command from the local configuration file.
在一个可选实施例中,采集信息至少包括:待检测网元的故障信息,从而用户可以根据待检测网元的故障信息对网元进行故障定位。In an optional embodiment, the collecting information includes at least the fault information of the network element to be detected, so that the user can locate the fault according to the fault information of the network element to be detected.
在本实施例中还提供了一种信息采集装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。An information collection device is also provided in the embodiment, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although 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.
图2是根据本发明实施例的信息采集装置的结构框图,该装置应用于客户端设备,如图2所示,该装置包括:获取模块22,设置为获取对待检测网元进行信息采集的采集命令;处理模块24,设置为将采集命令发送给代理服务器,并通过代理服务器接收对待检测网元的采集信息。 2 is a structural block diagram of an information collecting apparatus according to an embodiment of the present invention. The device is applied to a client device. As shown in FIG. 2, the device includes: an acquiring module 22, configured to acquire an information collection of a network element to be detected. The processing module 24 is configured to send the collection command to the proxy server, and receive the collection information of the network element to be detected through the proxy server.
可选地,采集信息至少包括:待检测网元的故障信息。Optionally, the collecting information includes at least: fault information of the network element to be detected.
在另一个实施例中提供了另一种信息采集方法,图3是根据本发明实施例的信息采集方法的另一个流程图,如图3所示,该流程包括如下步骤:Another method for collecting information is provided in another embodiment. FIG. 3 is another flowchart of an information collecting method according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
步骤S302,代理服务器接收用于对待检测网元进行信息采集的采集命令,并将采集命令发送至待检测网元;Step S302, the proxy server receives an acquisition command for collecting information for detecting the network element, and sends the collection command to the network element to be detected.
步骤S304,代理服务器接收待检测网元根据采集命令采集得到的采集信息,并将采集信息发送至客服端。Step S304, the proxy server receives the collection information collected by the network element to be detected according to the collection command, and sends the collection information to the client.
通过上述步骤,客户端设备通过代理服务器接收对待检测网元的采集信息,从而用户可以根据获取的对待检测网元的采集信息对待检测网元的状态进行判断。解决了相关技术中不能对单元内部的信息进行采集的问题,进而可以对单板信息进行灵活采集,便于开发人员进行故障定位。Through the above steps, the client device receives the collection information of the network element to be detected through the proxy server, so that the user can determine the state of the network element to be detected according to the acquired collection information of the network element to be detected. The problem that the information inside the unit cannot be collected in the related art is solved, and the information of the board can be flexibly collected, so that the developer can locate the fault.
在一个可选实施例中,代理服务器根据接收的采集命令,建立与待检测网元的连接,在另一个可选实施例中,在建立该连接后,代理服务器向待检测网元发送建链鉴权信息,其中,建链鉴权信息用于确认代理服务器与待检测网元之间的连接是否成功建立。In an optional embodiment, the proxy server establishes a connection with the network element to be detected according to the received collection command. In another optional embodiment, after establishing the connection, the proxy server sends a link to the network element to be detected. The authentication information is used to confirm whether the connection between the proxy server and the network element to be detected is successfully established.
在一个可选实施例中,代理服务器可以通过Qx口建立的链路发送建链鉴权信息,在另一可选实施例中,代理服务器也可以通过远端终端协议TELNET链路发送建链鉴权信息。In an optional embodiment, the proxy server may send the link establishment authentication information through the link established by the Qx port. In another optional embodiment, the proxy server may also send the link establishment through the remote terminal protocol TELNET link. Right information.
在一个可选实施例中,代理服务器可以通过Qx口方式或者远端终端协议TELNET命令方式或者文件传输协议FTP方式接收采集命令。In an optional embodiment, the proxy server may receive the collection command through the Qx interface mode or the remote terminal protocol TELNET command mode or the file transfer protocol FTP mode.
在本实施例中还提供了一种信息采集装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。An information collection device is also provided in the embodiment, and the device is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although 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.
图4是根据本发明实施例的信息采集装置的另一个结构框图,该装置应用于代理服务器,如图4所示,该装置包括:接收模块42,设置为接收对待检测网元进行信息采集的采集命令,并将采集命令发送至待检测网元;处理模块44,设置为接收待检测网元根据采集命令采集得到的采集信息,并将采集信息发送至客服端。FIG. 4 is another structural block diagram of an information collecting apparatus according to an embodiment of the present invention. The apparatus is applied to a proxy server. As shown in FIG. 4, the apparatus includes: a receiving module 42 configured to receive information for detecting a network element to be detected. The collection command is sent to the network element to be detected, and the processing module 44 is configured to receive the collection information collected by the network element to be detected according to the collection command, and send the collection information to the client.
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述各个模块均位于同一处理器中;或者,上述各个模块分别位于第一处理器、第二处理器和第三处理器…中。It should be noted that each of the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are respectively located. In the first processor, the second processor, and the third processor.
针对相关技术中存在的上述问题,下面结合可选实施例进行说明,在本可选实施例中结合了上述可选实施例及其可选实施方式。For the above-mentioned problems existing in the related art, the following description will be made in conjunction with an alternative embodiment in which the above-described optional embodiments and alternative embodiments thereof are combined.
本可选实施例涉及一种故障信息采集系统和采集方法,主要是定位集中在网络动态运行状态和静态数据分析以及网络隐患分析,是针对现网网络的智能自动健康检查的独立工具, 检查范围主要包括当前的网络健康情况。主要应用在工程初验和日常性健康检查操作,包括例行检查等,以及网络现场基本配置数据采集,用于故障跟踪定位,提供更快捷更高效的故障信息采集。The optional embodiment relates to a fault information collection system and an acquisition method, which mainly focuses on dynamic network running state, static data analysis, and network hidden danger analysis, and is an independent tool for intelligent automatic health check of the existing network. The scope of the inspection mainly includes the current network health. Mainly used in engineering initial inspection and routine health check operations, including routine inspections, as well as network site basic configuration data collection, used for fault tracking and positioning, providing faster and more efficient fault information collection.
本可选实施例采用以下技术方案:This alternative embodiment adopts the following technical solutions:
一种快捷的故障信息采集工具,由客户端(client)(相当于上述客户端设备)、业务逻辑控制处理(manager)和通讯代理模块(Agent)(该通讯代理模块相关于下述的代理服务器)三个构件组成,其中客户端主要提供界面展示和人机交互,业务逻辑控制处理模块主要实现各网元间并行处理和单个网元的各个数据项的串行处理,通讯代理模块则实现和网元的直接通讯,不作任何业务逻辑处理。A fast fault information collection tool consisting of a client (equivalent to the above client device), a business logic control manager (manager) and a communication agent module (Agent) (the communication agent module is related to the proxy server described below) The three components are composed of three components, wherein the client mainly provides interface display and human-computer interaction. The business logic control processing module mainly implements parallel processing between each network element and serial processing of each data item of a single network element, and the communication agent module implements Direct communication of network elements, without any business logic processing.
以下是本可选实施例的各个模块及各个模块之间的关系:The following are the relationships between the various modules and modules of this alternative embodiment:
1、客户端1, the client
客户端实现操作界面展示、配置文件读取、报表输出、文件下载和内存管理等功能,所包含的构件主要包括:The client implements functions such as operation interface display, configuration file reading, report output, file downloading, and memory management. The components included include:
1)系统设置,采集工具是通过代理Agent访问通讯设备的,在执行采集之前需要先登录代理Agent,系统设置菜单中设置登录代理的网络之间互连的协议(Internet Protocol,简称为IP)地址和端口,可进行采集工具和代理之间的连接测试,同时系统设置中还可以设置输出报表的目录。1) System setting, the collection tool accesses the communication device through the agent agent, and needs to log in to the agent agent before performing the collection, and set the protocol (Internet Protocol, IP for short) to be interconnected between the networks of the login agent in the system setting menu. And the port, the connection test between the collection tool and the agent can be performed, and the directory for outputting the report can also be set in the system setting.
2)导入网元,可以将E300/U3网管导出的网元基本信息报表导入到待选网元列表中,包括网元设备类型、子架、槽位等,目前支持txt格式,通过界面上的添加可以将待选网元列表中的信息添加到已选网元列表中,以便对已选网元进行采集。2) Importing NEs, you can import the NE information report exported by the E300/U3 network management system into the list of selected NEs, including NE device types, subracks, and slots. Currently, the txt format is supported. Adding information in the list of selected NEs can be added to the list of selected NEs to collect the selected NEs.
3)过滤网元,按网元名称、网元标识、设备类型、IP地址对待选网元列表进行过滤,支持模糊查询。3) Filtering NEs, filtering the list of selected NEs by NE name, NE ID, device type, and IP address, and supporting fuzzy query.
4)新增网元,在已选网元列表中新增一条记录到已选网元列表中,新增网元时用户必须输入网元名称、设备类型、网元标识、IP地址,否则不允许保存。4) Add a new NE and add a record to the selected NE list in the selected NE list. You must enter the NE name, device type, NE ID, and IP address when adding an NE. Otherwise, Allow saving.
5)删除网元,删除已选网元列表中选中的记录,支持多选。5) Delete the NE and delete the selected record in the selected NE list to support multiple selection.
6)保存,保存已选网元列表中当前内容。6) Save and save the current content in the selected NE list.
7)开始采集,按照采集数据配置文件中定义的命令从设备查询数据,对已选网元列表中的网元进行采集,并将采集结果保存到数据文件中。7) Start collecting, query data from the device according to the commands defined in the data collection configuration file, collect the network elements in the selected network element list, and save the collected results to the data file.
8)停止采集,停止采集执行。8) Stop the acquisition and stop the acquisition and execution.
9)清空数据,清空待选网元和已选网元数据。9) Clear the data, clear the selected network element and the selected network element data.
该采集装置采取配置文件组织待采集故障命令,初始化数据的过程就是读取配置文件, 存储数据结构。按设备类型,单板类型,采集类型和采集命令存储具体网元类型上的单板类型和需要查询命令的对应关系,用于匹配真实的网元上的单板需要下发的命令。The collecting device adopts a configuration file to organize a fault command to be collected, and the process of initializing the data is to read the configuration file. Store data structures. The device type, the board type, the collection type, and the collection command are used to store the mappings between the board types of the specific NE types and the commands to be queried.
执行采集的过程是调用manager模块的入口函数,接下来启动Manager模块处理流程。The process of performing the acquisition is to call the entry function of the manager module, and then start the Manager module processing flow.
Manager模块实现通信功能,包括通过读取内存,组织数据,构造报文,下发和接受命令,上报返回。Manager模块处理流程主要由以下几个步骤组成:The Manager module implements communication functions, including reading memory, organizing data, constructing messages, issuing and accepting commands, and reporting returns. The Manager module processing process consists of the following steps:
1)、利用线程池机制,实现多网元并发机制。1), using the thread pool mechanism to achieve multi-network element concurrency mechanism.
2)、获取网元建链信息,由代理模块和网元建链,客户端不直接连接网元。2) Obtain the information of the network element building chain, and the agent module and the network element establish a chain, and the client does not directly connect to the network element.
3)、建链命令返回成功后,客户端下发网元登陆命令,由代理登陆到网元。3) After the link establishment command is successfully returned, the client sends an NE login command, and the agent logs in to the network element.
4)、获取要采集的所有的单板列表,依次对每一块单板进行处理。遍历单板列表中的单板,根据单板名称以及用户选择的设备类型和采集类型来匹配配置文件,获取该设备该单板上需要下发的命令列表。4). Obtain all the boards to be collected, and process each board in turn. The board in the card list is traversed, and the configuration file is matched according to the board name and the device type and the type of the device selected by the user.
5)、对该网元该单板的每一条命令进行处理,将命令组装成报文下发给代理。5) Process each command of the board of the network element, and assemble the command into a message and send it to the agent.
6)、下发命令,注册超时节点,阻塞此命令处理线程进行等待。命令返回或者超时,解锁继续处理,解析报文,上报给客户端模块。6), issue a command, register the timeout node, block this command processing thread to wait. The command returns or times out, the unlocking continues processing, and the packet is parsed and reported to the client module.
7)、生成采集结果数据的报表文件并保存到本地。7) Generate a report file of the collected result data and save it to the local.
2、代理服务器2, the proxy server
代理服务器是连接客户端和设备之间的工具,与网元建链,完成命令的传递。代理按照不同的命令类型分配和发送命令到网元,接收设备应答或主动上报命令上报给客户端。The proxy server is a tool that connects the client and the device, and establishes a chain with the network element to complete the delivery of the command. The agent allocates and sends commands to the NE according to different command types, and the receiving device responds or reports the command to the client.
代理服务器分为四个功能模块:The proxy server is divided into four functional modules:
1、采集工具之间的通讯管理模块:1. Communication management module between collection tools:
和客户端模块建立连接,接收客户端下发命令放入处理队列,向客户端发送应答或主动上报命令;A connection is established with the client module, and the receiving client sends a command to the processing queue, and sends a response or a voluntary reporting command to the client.
2、命令的调度与派发管理模块:2. Command scheduling and dispatch management module:
根据客户端下发命令的类型分派到相应的处理流程,直接返回客户端应答或者等待下发返回后发送应答结果到客户端,或接收主动上报命令到客户端。目前的命令类型:According to the type of the command issued by the client, it is dispatched to the corresponding processing flow, directly returns to the client to answer or waits for the delivery to return, and then sends a response to the client, or receives the active report command to the client. Current command type:
1)本身处理的命令,网元建链、断链,ping(包括两种,一是与采集工具之间;另是与网元之间)等。1) The commands processed by the network itself, the network element is built, broken, and pinged (including two types, one is between the collection tool and the other is the network element).
2)采集命令,包括Qx、FTP、TELNET三种方式,服务器完成命令包的处理和透传,例如Qx口的采集网元性能命令、获取单板信息等命令 2) Collecting commands, including Qx, FTP, and TELNET. The server completes the processing and transparent transmission of command packets, such as the command to collect NEs on the Qx interface, and obtain the board information.
3)网元主动上报命令,一般情况下对此类命令进行屏蔽,根据用户需求放开对某些命令的屏蔽,并进行处理后上报。3) The NE actively reports the command. Generally, the command is blocked. The command is blocked according to the user's requirements and reported and reported.
3、网元之间的通讯管理3. Communication management between network elements
1)ping包机制,主动发送ping包到客户端和网元。向上ping包:保证和客户端之间链接;向下ping包,保证和多个网元之间链接。1) The ping packet mechanism actively sends ping packets to the client and the network element. Ping the packet upwards: guarantee the link between the client and the client; ping the packet down to ensure the link with multiple network elements.
2)同时管理多个网元的建链和鉴权。2) Manage the establishment and authentication of multiple network elements at the same time.
3)主动关闭连接和定时关闭连接。3) Proactively close the connection and close the connection at regular intervals.
4、定时管理4, timing management
1)定时管理与采集工具的连接。1) Timing management and connection to the collection tool.
2)定时管理与网关的连接(主动关闭与采集工具的连接后,需要再主动关闭所有与网关的连接)。2) Timing management and gateway connection (actively close the connection with the collection tool, you need to actively close all connections to the gateway).
3)定时关闭通讯代理模块程序。3) Close the communication agent module program periodically.
图5是根据本发明实施例的故障信息采集工具总体结构图,如图5所示,故障信息采集工具是实现客户端、代理Agent和网元单板进行通信的系统,其中客户端由系统设置、导入网元、新增和执行采集等菜单项组成。5 is a schematic structural diagram of a fault information collection tool according to an embodiment of the present invention. As shown in FIG. 5, the fault information collection tool is a system for implementing communication between a client, a proxy agent, and a network element board, where the client is set by the system. , import network elements, add and execute collection and other menu items.
(1)系统设置,负责设置连接代理所需的IP和端口信息;(1) System settings, responsible for setting the IP and port information required to connect to the agent;
(2)导入网元,将从E300/U3网管导出的网元基本信息报表批量导入到待选网元列表中,包括网元标识、设备类型、子架和槽位信息等;(2) Importing the NEs, and importing the basic NE information reports exported from the E300/U3 network management system into the list of selected NEs, including the NE identifier, device type, subrack, and slot information.
(3)过滤网元,按网元名称、网元标识、设备类型、IP地址对待选网元列表进行过滤;(3) Filtering the NEs, filtering the list of selected NEs by the NE name, NE identifier, device type, and IP address;
(4)新增网元将要采集的网元新增到已选网元列表中;(4) The newly added NE adds the NE to be collected to the selected NE list;
(5)删除网元将勾选的已选网元列表中的网元信息删除;(5) Deleting the NE deletes the NE information in the selected NE list;
(6)保存待选网元和已选网元列表到本地文件中;(6) Save the selected network element and the selected network element list to the local file;
(7)清空数据将待选网元和已选网元列表数据清空;(7) Clearing the data to clear the data of the selected network element and the selected network element list;
(8)开始采集开始对已选网元进行逐个采集,并将采集结果保存到本地文件中;(8) Start collecting and start collecting the selected network elements one by one, and save the collected results to a local file;
(9)停止采集则是停止采集过程。(9) Stopping the acquisition stops the acquisition process.
本工具主要通过三种方式实现与网元设备的交互,分别为Qx口方式、TELNET命令方式和FTP文件传输协议方式。This tool implements interactions with NE devices in three ways: Qx port mode, TELNET command mode, and FTP file transfer protocol mode.
由于本工具直接与设备通讯,为方便处理,本工具系统内部各个组件或构件之间使用Qx口报文进行命令和通知交互,减少不必要的转换,包括与网元设备建链、断链和查询单板列 表等都需要用到Qx口报文。Because the tool communicates directly with the device, for the convenience of processing, each component or component in the tool system uses Qx port messages to perform command and notification interactions, thereby reducing unnecessary conversion, including chaining and chain breaking with the network element device. Query the board column Tables and so on need to use Qx port messages.
TELNET命令与网元通过TELNET通讯口进行通讯,但为了与Qx口命令兼容,报文头还是采用Qx形式,命令参数为TELNET的实际命令,不需要组织单板地址,不同的单板,只是下发的TELNET命令不同,由通讯代理模块分离出命令参数,直接通过TELNET通讯口发送给网元,返回的命令结果,再由通讯代理模块组织返回给采集工具。The TELNET command communicates with the NE through the TELNET communication port. However, in order to be compatible with the Qx port command, the packet header is in the form of a Qx. The command parameters are the actual commands of the TELNET. You do not need to organize the board address. Different boards are only available. The TELNET command is different. The command parameters are separated by the communication agent module and sent directly to the network element through the TELNET communication port. The returned command result is then returned to the collection tool by the communication agent module.
故障采集工具有时需要从单板设备上下载日志文件保存到本地,方便开发人员和现场维护人员查看,这时就需要用到FTP文件传输协议来实现文件下载功能。The fault collection tool sometimes needs to download the log file from the single board device and save it to the local, which is convenient for developers and field maintenance personnel to view. In this case, the FTP file transfer protocol is needed to implement the file download function.
图6是根据本发明实施例的故障信息采集流程图,其中网元建链、登录网元和取网元上的所有单板信息均使用到Qx口命令。TELNET、WASON-TELNET等采集过程采用TELNET方式,FTP文件下载协议处理采用FTP方式实现与通讯设备的交互。如图6所示,该流程包括如下步骤:FIG. 6 is a flow chart of the fault information collection according to the embodiment of the present invention, in which all the board information on the network element building chain, the login network element, and the fetching network element are used to the Qx port command. The collection process of TELNET and WASON-TELNET adopts TELNET mode, and the FTP file download protocol handles the interaction with the communication device by using FTP. As shown in FIG. 6, the process includes the following steps:
步骤S602,开始执行采集,读取界面设置的网元和采集项信息,通过系统设置中通讯代理的IP地址和端口,完成连接通讯代理Agent的过程,启动接收线程。In step S602, the collection is started, the network element and the collection item information set by the interface are read, and the process of connecting the communication agent Agent is completed through the IP address and port of the communication agent in the system setting, and the receiving thread is started.
步骤S604,网元建链与鉴权,采集工具与通讯代理模块正常建立通讯后,再下发和具体网元建链信息和鉴权信息,包括Qx口建链和TELNET建链,由通讯代理模块顺序建立连接,统一返回正常/异常信息。Step S604, the network element is built and authenticated, and the collection tool and the communication agent module normally establish communication, and then the information and authentication information of the specific network element are established, including the Qx port construction chain and the TELNET chain, and the communication agent The modules establish connections in sequence, returning normal/exception information uniformly.
步骤S606,获取所有单板信息,通过下发Qx口报文查询所有单板列表信息,以及从界面的已选网元列表中获取的网元单板基本信息,包括网元ID、设备类型、IP、采集故障类型等,将采集数据项保存到TNE结构list中,增加任务队列,并调用manager模块的入口函数。In step S606, the information of all the boards is obtained, and the information of all the boards is obtained by sending the Qx interface, and the basic information of the board obtained from the selected list of the NEs, including the NE ID and device type. IP, collection fault type, etc., save the collected data items to the TNE structure list, add the task queue, and call the entry function of the manager module.
步骤S608,匹配配置文件过程,遍历传送给Manager的TNE结构列表的元素,根据元素的设备类型,单板名称和采集类型匹配配置文件中的用户名、密码,并获取需要下发的故障命令集合。Step S608: Matching the configuration file process, traversing the elements of the TNE structure list transmitted to the Manager, and matching the user name and password in the configuration file according to the device type of the element, and obtaining the fault command set to be delivered. .
步骤S610,获取命令参数,判断命令采集类型,针对不同的采集类型分别进行循环采集过程,如TELNET文件和TELNET-WASON文件采用TELNET方式下发命令,FTP文件下载采用FTP协议处理方式。In step S610, the command parameters are obtained, and the command collection type is determined. The loop collection process is performed for different collection types. For example, the TELNET file and the TELNET-WASON file are sent by the TELNET mode, and the FTP file is downloaded by the FTP protocol.
步骤S612,对TELNET和TELNET-WASON命令进行处理,由于TELNET和TELNET-WASON均为TELNET方式,采集过程相似,这里仅对后者进行叙述:In step S612, the TELNET and TELNET-WASON commands are processed. Since TELNET and TELNET-WASON are both TELNET modes, the acquisition process is similar, and only the latter is described here:
由于登录WASON的顺序是先要登录到Sitara Networks Protocol(简称为SNP)单板,登录成功后再登录到WASON上,所以首先获取TELNET节点中的用户名密码,并采用TELNET方式将SNP的用户名、密码组装成报文给代理下发Qx9004命令,然后下发enterksh命令,使其进入第一环境,此过程实现SNP的登录。The login to the WASON is the first to log in to the Sitara Networks Protocol (SNP) board. After logging in successfully, log in to the WASON. Therefore, first obtain the username and password in the TELNET node, and use the TELNET method to set the SNP username. The password is assembled into a message to the agent to issue the Qx9004 command, and then the enterksh command is issued to enter the first environment, and the process implements the SNP login.
获取TELNET-WASON节点的用户名和密码,采用TELNET命令下发用户名、密码和WASON的IP(IP为代理Agent的IP地址+1)和端口信息,由于登录WASON后进入的环境 是未知的,即可能是第一环境也可能是第二环境,所以需要再次下发enterksh命令,确保其进入KSH环境。Obtain the user name and password of the TELNET-WASON node, and use the TELNET command to deliver the user name, password, and WASON IP (IP is the proxy agent's IP address +1) and port information. The environment entered after logging in to WASON. It is unknown, that is, it may be the first environment or the second environment, so you need to issue the enterksh command again to ensure that it enters the KSH environment.
WASON登录成功以后,就遍历WASON的命令list,依次通过TELNET进行下发,如果命令中有enterpsh,则要再次下发WASON的用户名和密码。After the WASON login succeeds, the WASON command list is traversed and sent through the TELNET. If there is an enterprise in the command, the WASON user name and password must be sent again.
客户端根据代理上报的报文进行解析,并输出到报表中,文件名按照网元IP+网元标识命名,并以*.dat作为后缀,通过报表数据文件对故障进行定位和跟踪。The client parses the packet according to the packet reported by the proxy and outputs it to the report. The file name is named according to the IP address of the network element and the suffix of *.dat, and the fault is located and tracked through the report data file.
步骤S614,FTP文件下载协议处理过程:Step S614, the FTP file download protocol processing process:
由于客户端直接与代理Agent交互,这就需要Agent首先充当客户端角色将日志文件下载到Agent代理上,然后充当FTP服务器角色与客户端交互。客户端首先通过网元IP和端口与FTP服务器建立socket控制连接,然后通过下发配置文件中FTP节点中的用户名和密码登陆到代理上的FTP服务器。登录到FTP服务器后接着下发与FTP文件下载协议有关的命令:Change Working Directory(简称为,CWD)、TYPE I、PASV和RETR等,之后与服务器建立socket数据连接,通过文件输入输出流将文件传输到本地。Since the client directly interacts with the agent Agent, the agent first needs to act as a client role to download the log file to the Agent agent, and then acts as an FTP server role to interact with the client. The client first establishes a socket control connection with the FTP server through the IP address and port of the network element, and then logs in to the FTP server on the proxy by sending the username and password in the FTP node in the configuration file. After logging in to the FTP server, the commands related to the FTP file download protocol are sent: Change Working Directory (CWD), TYPE I, PASV, and RETR. Then, the socket data connection is established with the server, and the file is input and output through the file. Transfer to local.
步骤S616,发送报文,注册超时节点,阻塞本线程。网元的所有采集项完成后,采集工具需要向通讯代理模块发送关闭网元连接的命令,网元断链采用Qx口命令0x9001。Step S616, sending a message, registering a timeout node, and blocking the thread. After all the collection items of the network element are completed, the collection tool needs to send a command to close the network element connection to the communication agent module, and the network element broken chain adopts the Qx port command 0x9001.
综上所述,本发明实施例提供了一种全新的故障信息采集工具,故障信息采集工具主要定位集中在网络动态运行状态和静态数据分析以及网络隐患分析,主要是针对现网网络的智能自动健康检查,检查范围主要包括当前的网络健康情况。故障信息采集工具主要应用在两个场景:(1)工程初验和日常性健康检查操作、例行检查;(2)网络现场基本配置数据采集,用于故障跟踪定位。通过本发明提供了的一种全新的故障信息采集工具方案,可以灵活对故障进行跟踪定位,提供了更快捷更高效的故障信息采集。In summary, the embodiment of the present invention provides a new fault information collection tool. The fault information collection tool is mainly located in the network dynamic running state, static data analysis, and network hidden danger analysis, mainly for intelligent automatic network network. Health check, the scope of the test mainly includes the current network health. The fault information collection tool is mainly applied in two scenarios: (1) engineering initial inspection and routine health check operation, routine inspection; (2) network site basic configuration data collection for fault tracking and positioning. The invention provides a new fault information collection tool solution, which can flexibly track and locate faults, and provides faster and more efficient fault information collection.
在另外一个实施例中,还提供了一种软件,该软件用于执行上述实施例及优选实施方式中描述的技术方案。In another embodiment, software is also provided for performing the technical solutions described in the above embodiments and preferred embodiments.
在另外一个实施例中,还提供了一种存储介质,该存储介质中存储有上述软件,该存储介质包括但不限于:光盘、软盘、硬盘、可擦写存储器等。In another embodiment, a storage medium is further provided, wherein the software includes the above-mentioned software, including but not limited to: an optical disk, a floppy disk, a hard disk, an erasable memory, and the like.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various 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. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等 同替换、改进等,均应包含在本发明的保护范围之内。The above description 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, etc. made within the spirit and principles of the present invention The same substitutions, improvements, and the like are intended to be included in the scope of the present invention.
工业实用性Industrial applicability
通过本发明实施例,采用客户端设备获取用于对待检测网元进行信息采集的采集命令;客户端设备将采集命令发送给代理服务器,并通过代理服务器接收对待检测网元的采集信息。解决了相关技术中不能对单元内部的信息进行采集的问题,进而可以对单板信息进行灵活采集,便于开发人员进行故障定位。 In the embodiment of the present invention, the client device obtains an acquisition command for collecting information for detecting the network element; the client device sends the collection command to the proxy server, and receives the collection information of the network element to be detected through the proxy server. The problem that the information inside the unit cannot be collected in the related art is solved, and the information of the board can be flexibly collected, so that the developer can locate the fault.

Claims (13)

  1. 一种信息采集方法,包括:An information collection method includes:
    客户端设备获取用于对待检测网元进行信息采集的采集命令;The client device acquires an acquisition command for collecting information about the network element to be detected;
    所述客户端设备将所述采集命令发送给代理服务器,并通过所述代理服务器接收对所述待检测网元的采集信息。The client device sends the collection command to the proxy server, and receives the collection information of the to-be-detected network element by using the proxy server.
  2. 根据权利要求1所述的方法,其中,所述客户端设备获取用于对待检测网元进行信息采集的采集命令之前包括:The method of claim 1, wherein the obtaining, by the client device, the acquisition command for collecting information for the network element to be detected comprises:
    获取所述待检测网元的属性信息。Obtaining attribute information of the network element to be detected.
  3. 根据权利要求2所述的方法,其中,获取所述待检测网元的属性信息包括:The method of claim 2, wherein obtaining the attribute information of the network element to be detected comprises:
    从网管设备中获取所述待检测网元的属性信息;和/或,Obtaining attribute information of the to-be-detected network element from the network management device; and/or,
    所述客户端设备从本地获取所述待检测网元的属性信息。The client device obtains attribute information of the to-be-detected network element locally.
  4. 根据权利要求2所述的方法,其中,所述属性信息包括以下至少之一:The method of claim 2, wherein the attribute information comprises at least one of the following:
    所述待检测网元的名称、所述待检测网元的标识、所述待检测网元的类型、所述待检测网元的网络协议IP地址。The name of the network element to be detected, the identifier of the network element to be detected, the type of the network element to be detected, and the network protocol IP address of the network element to be detected.
  5. 根据权利要求1所述的方法,其中,所述客户端设备获取用于对待检测网元进行信息采集的采集命令包括:The method of claim 1, wherein the acquiring, by the client device, the acquisition command for collecting information for the network element to be detected comprises:
    所述客户端设备从本地配置文件中获取所述采集命令。The client device obtains the collection command from a local configuration file.
  6. 根据权利要求1至5中任一项所述的方法,其中,所述采集信息至少包括:所述待检测网元的故障信息。The method according to any one of claims 1 to 5, wherein the collecting information comprises at least: fault information of the network element to be detected.
  7. 一种信息采集方法,包括:An information collection method includes:
    代理服务器接收用于对待检测网元进行信息采集的采集命令,并将所述采集命令发送至所述待检测网元;The proxy server receives an acquisition command for collecting information about the network element to be detected, and sends the collection command to the network element to be detected.
    所述代理服务器接收所述待检测网元根据所述采集命令采集得到的采集信息,并将所述采集信息发送至客服端。The proxy server receives the collection information collected by the to-be-detected network element according to the collection command, and sends the collection information to the client terminal.
  8. 根据权利要求7所述的方法,其中,所述代理服务器接收所述采集命令之后包括:The method of claim 7, wherein the receiving, by the proxy server, the acquisition command comprises:
    所述代理服务器建立与所述待检测网元的连接;The proxy server establishes a connection with the to-be-detected network element;
    在建立所述连接后,所述代理服务器向所述待检测网元发送建链鉴权信息;其中,所述建链鉴权信息用于确认所述连接是否成功建立。After the connection is established, the proxy server sends the link establishment authentication information to the to-be-detected network element, where the link establishment authentication information is used to confirm whether the connection is successfully established.
  9. 根据权利要求8所述的方法,其中,所述代理服务器向所述待检测网元发送所述建链鉴权信息包括以下至少之一: The method according to claim 8, wherein the sending, by the proxy server, the link establishment authentication information to the to-be-detected network element comprises at least one of the following:
    所述代理服务器通过Qx口建立的链路发送所述建链鉴权信息;或者,Sending, by the proxy server, the link establishment authentication information by using a link established by the Qx port; or
    所述代理服务器通过远端终端协议TELNET链路发送所述建链鉴权信息。The proxy server sends the link establishment authentication information through a remote terminal protocol TELNET link.
  10. 根据权利要求7所述的方法,其中,所述代理服务器通过以下之一方式接收所述采集命令:The method of claim 7, wherein the proxy server receives the collection command by one of:
    Qx口方式、远端终端协议TELNET命令方式、文件传输协议FTP方式。Qx port mode, remote terminal protocol TELNET command mode, file transfer protocol FTP mode.
  11. 一种信息采集装置,所述装置应用于客户端设备,包括:An information collecting device, the device being applied to a client device, comprising:
    获取模块,设置为获取对待检测网元进行信息采集的采集命令;The obtaining module is configured to acquire an acquisition command for collecting information about the network element to be detected;
    处理模块,设置为将所述采集命令发送给代理服务器,并通过所述代理服务器接收对所述待检测网元的采集信息。The processing module is configured to send the collection command to the proxy server, and receive the collection information of the to-be-detected network element by using the proxy server.
  12. 根据权利要求11所述的装置,其中,所述采集信息至少包括:所述待检测网元的故障信息。The device according to claim 11, wherein the collecting information comprises at least: fault information of the network element to be detected.
  13. 一种信息采集装置,所述装置应用于代理服务器,包括:An information collecting device, the device being applied to a proxy server, comprising:
    接收模块,设置为接收对待检测网元进行信息采集的采集命令,并将所述采集命令发送至所述待检测网元;The receiving module is configured to receive an acquisition command for collecting information about the network element to be detected, and send the collection command to the network element to be detected;
    处理模块,设置为接收所述待检测网元根据所述采集命令采集得到的采集信息,并将所述采集信息发送至客服端。 The processing module is configured to receive the collection information collected by the to-be-detected network element according to the collection command, and send the collection information to the client terminal.
PCT/CN2015/096584 2014-12-10 2015-12-07 Method and apparatus for information collection WO2016091141A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410757891.5 2014-12-10
CN201410757891.5A CN105743675A (en) 2014-12-10 2014-12-10 Method and device for acquiring information

Publications (1)

Publication Number Publication Date
WO2016091141A1 true WO2016091141A1 (en) 2016-06-16

Family

ID=56106710

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096584 WO2016091141A1 (en) 2014-12-10 2015-12-07 Method and apparatus for information collection

Country Status (2)

Country Link
CN (1) CN105743675A (en)
WO (1) WO2016091141A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108875328A (en) * 2018-05-30 2018-11-23 腾讯科技(深圳)有限公司 A kind of auth method, device and storage medium
CN113029223A (en) * 2020-09-15 2021-06-25 山东华科信息技术有限公司 Detection device for batch detection of sensors based on network communication

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766537B (en) * 2022-11-14 2023-08-11 江苏红网技术股份有限公司 Method for intelligently identifying data standard

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009601A (en) * 2007-01-29 2007-08-01 华为技术有限公司 A maintenance and detection method, system and device of the network element
CN101197736A (en) * 2007-12-28 2008-06-11 中国移动通信集团浙江有限公司 Wireless net member equipment monitoring system and monitoring method thereof
CN101616428A (en) * 2009-04-15 2009-12-30 北京协成致远网络科技有限公司 A kind of mobile data service monitoring analysis system and its implementation
CN103532743A (en) * 2013-09-29 2014-01-22 国家电网公司 Remote data collecting system based on Web Service interface and control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7376694B2 (en) * 2001-06-26 2008-05-20 Intel Corporation Coalescing information from multiple sources based on priority rules
CN1725699A (en) * 2004-07-20 2006-01-25 中兴通讯股份有限公司 Method for automatic detecting communication network
CN100536403C (en) * 2006-08-18 2009-09-02 亿阳信通股份有限公司 Method and equipment of intelligent patrol detection for communication network
CN101977128B (en) * 2010-09-14 2015-04-01 中兴通讯股份有限公司 Interface detection method and device for communication equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009601A (en) * 2007-01-29 2007-08-01 华为技术有限公司 A maintenance and detection method, system and device of the network element
CN101197736A (en) * 2007-12-28 2008-06-11 中国移动通信集团浙江有限公司 Wireless net member equipment monitoring system and monitoring method thereof
CN101616428A (en) * 2009-04-15 2009-12-30 北京协成致远网络科技有限公司 A kind of mobile data service monitoring analysis system and its implementation
CN103532743A (en) * 2013-09-29 2014-01-22 国家电网公司 Remote data collecting system based on Web Service interface and control method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108875328A (en) * 2018-05-30 2018-11-23 腾讯科技(深圳)有限公司 A kind of auth method, device and storage medium
CN108875328B (en) * 2018-05-30 2023-05-09 腾讯科技(深圳)有限公司 Identity verification method, device and storage medium
CN113029223A (en) * 2020-09-15 2021-06-25 山东华科信息技术有限公司 Detection device for batch detection of sensors based on network communication

Also Published As

Publication number Publication date
CN105743675A (en) 2016-07-06

Similar Documents

Publication Publication Date Title
US11909604B2 (en) Automatic provisioning of monitoring for containerized microservices
US10523543B2 (en) Generic discovery for computer networks
CN109495308B (en) Automatic operation and maintenance system based on management information system
US8713177B2 (en) Remote management of networked systems using secure modular platform
US9077717B2 (en) Propagation and adoption of extensions across applications in networked solutions
US8650277B2 (en) Method, system, and computer readable medium for gathering usage statistics
US9270782B2 (en) System and method for managing network communications between server plug-ins and clients
US11392873B2 (en) Systems and methods for simulating orders and workflows in an order entry and management system to test order scenarios
WO2012088905A1 (en) Polling sub-system and polling method for communication network system and communication apparatus
WO2021203979A1 (en) Operation and maintenance processing method and apparatus, and computer device
CN111355622A (en) Container traffic monitoring method, system and computer readable storage medium
WO2016091141A1 (en) Method and apparatus for information collection
US9893968B1 (en) Troubleshooting network paths in a distributed computing environment
CN110011875A (en) Dial testing method, device, equipment and computer readable storage medium
WO2017088347A1 (en) Method, device and system for managing user usage information of application based on paas platform
CN109040331B (en) Electronic business card processing method and device, computing equipment and storage medium
CN110955537B (en) Method and device for containing pipes by physical machine
CN115604160A (en) Network detection processing method and device, electronic equipment and storage medium
CN103973485A (en) Operation and maintenance management system and method based on fixed ports
CN108683540A (en) A kind of lightweight realization method and system that Network Management Protocol channel is cross-platform
CN113542103B (en) Method and device for monitoring invitations of accounts in social communication group and mobile terminal
KR100905085B1 (en) Online chatting system and method for user connected with website
He et al. MDNS based automatic discovery method in optical NMS
JP3479251B2 (en) Network management information collection method and network management information collection method
CN116260857A (en) Information query method, device and storage medium

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

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

Country of ref document: EP

Kind code of ref document: A1