CN1901568B - A method for realizing historical performance collection in a network management system - Google Patents
A method for realizing historical performance collection in a network management system Download PDFInfo
- Publication number
- CN1901568B CN1901568B CN2005100852568A CN200510085256A CN1901568B CN 1901568 B CN1901568 B CN 1901568B CN 2005100852568 A CN2005100852568 A CN 2005100852568A CN 200510085256 A CN200510085256 A CN 200510085256A CN 1901568 B CN1901568 B CN 1901568B
- Authority
- CN
- China
- Prior art keywords
- collection
- network element
- thread
- performance
- network
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开一种网管系统中实现历史性能采集的方法。通过配置文件定制网管系统可以创建并且启动的最大性能采集线程数、不同类型的网元定义不同的性能采集线程类、根据网元类型的不同来定制每个性能采集线程的最多采集网元数。当增加或者删除网元,性能采集控制线程接收到相应消息后,自动将新增的网元分配给某个或者新建一个线程对该网元进行历史性能采集,或自动遍历每一个线程直到搜索到包含被删除网元的线程,将该网元从该线程的采集网元列表中删除。网管系统启动时,启动网元状态轮询线程,负责监测网元状态的变化。本发明提供高效率、高扩展性、高可靠性的历史性能采集,很容易适应大规模、多种网元混合管理的网管系统的要求。
The invention discloses a method for realizing historical performance collection in a network management system. Customize the maximum number of performance collection threads that can be created and started by the network management system through configuration files, define different performance collection thread classes for different types of network elements, and customize the maximum number of network elements for each performance collection thread according to different network element types. When a network element is added or deleted, after receiving the corresponding message, the performance acquisition control thread automatically assigns the newly added network element to a certain or creates a new thread to collect historical performance of the network element, or automatically traverses each thread until it is found The thread containing the deleted network element deletes the network element from the collection network element list of the thread. When the network management system is started, the network element status polling thread is started, which is responsible for monitoring the changes of the network element status. The invention provides high-efficiency, high-expandability and high-reliability historical performance collection, and is easy to adapt to the requirements of a large-scale network management system with mixed management of various network elements.
Description
技术领域technical field
本发明涉及网络管理系统,具体是一种网管系统中实现历史性能采集的方法,尤其涉及一种在网元类型不同、网元设备众多的网络环境下,实现高效率、大规模历史性能采集的方法。The present invention relates to a network management system, in particular to a method for realizing historical performance collection in a network management system, and in particular to a method for realizing high-efficiency and large-scale historical performance collection in a network environment with different types of network elements and numerous network element devices method.
背景技术Background technique
性能管理是电信网络管理系统的一项重要功能,它包括收集统计信息,维持和检查系统状态的历史记录。Performance management is an important function of a telecom network management system, which includes collecting statistics, maintaining and checking history of system status.
在现有的系统中,进行性能管理的第一种方法是用户手工启动一个性能采集任务,用户指定需要采集的网元范围以及需要采集的性能量、采集时间间隔和采集时长。性能采集任务创建成功后,网管系统启动一个性能采集线程,根据创建的这个性能采集线程传入的参数定时到网元采集历史性能数据,向网管操作员提供日常运行维护需要的历史性能数据。In the existing system, the first method for performance management is that the user manually starts a performance collection task, and the user specifies the range of network elements to be collected, the performance amount to be collected, the collection time interval, and the collection time. After the performance collection task is successfully created, the network management system starts a performance collection thread, and periodically collects historical performance data from network elements according to the parameters passed in by the created performance collection thread, and provides historical performance data required for daily operation and maintenance to network management operators.
这种方式的缺点是必须通过手工启动性能采集任务之后才能获取到历史性能数据,实际运行过程中,如果网络中的网元数量庞大,用户是不会在网元正常工作时为每个网元都创建一个性能采集任务,这样当一个网元发生性能故障时,用户需要根据历史性能数据来分析性能故障原因,但是却发现由于没有对该网元创建性能采集任务,从而造成该网元没有历史性能数据可以用于进行性能故障分析。The disadvantage of this method is that the historical performance data can only be obtained after manually starting the performance collection task. In the actual operation process, if the number of network elements in the network is large, the user will not Both create a performance collection task, so that when a performance failure occurs on a network element, the user needs to analyze the cause of the performance failure based on historical performance data, but finds that the network element has no history because no performance collection task has been created for the network element. Performance data can be used for performance failure analysis.
进行性能管理的第二种方法是在网管服务器启动后,从数据库中获取不同类型的网元列表,然后为每个网元创建一个性能采集线程,每个性能采集线程定期到这个网元进行性能采集。对于新发现的网元自动为该网元创建一个采集线程,删除网元成功后自动将该网元对应的采集线程停止并删除掉。The second method for performance management is to obtain a list of different types of network elements from the database after the network management server is started, and then create a performance collection thread for each network element, and each performance collection thread periodically goes to this network element for performance collection. For a newly discovered network element, a collection thread is automatically created for the network element. After the network element is successfully deleted, the collection thread corresponding to the network element is automatically stopped and deleted.
这种方式的缺点是当网元数目比较庞大时,为每个网元创建一个线程会占用大量的系统资源,并且当网元和网管系统之间的通信链路有问题时,不能及时停止对那个网元的性能采集,这样也会降低性能采集的效率。The disadvantage of this method is that when the number of network elements is relatively large, creating a thread for each network element will occupy a large amount of system resources, and when there is a problem with the communication link between the network element and the network management system, the thread cannot be stopped in time. The performance collection of that network element will also reduce the efficiency of performance collection.
发明内容Contents of the invention
本发明所要解决的技术问题在于提供一种网管系统中实现高效率、大规模历史性能采集的方法,能够通过多线程、线程池等技术来提高采集的效率和速度。The technical problem to be solved by the present invention is to provide a method for realizing high-efficiency and large-scale historical performance collection in a network management system, which can improve the efficiency and speed of collection through technologies such as multi-threading and thread pool.
本发明具体是这样实现的:The present invention is specifically realized like this:
一种网管系统中实现历史性能采集的方法,包括如下处理:A method for realizing historical performance collection in a network management system, comprising the following processing:
第一步骤,网管服务器启动时,启动性能采集控制线程;In the first step, when the network management server is started, the performance acquisition control thread is started;
第二步骤,从性能采集控制线程的配置文件中获取各项历史性能采集配置参数;The second step is to obtain various historical performance collection configuration parameters from the configuration file of the performance collection control thread;
第三步骤,为每种性能采集线程实现一个可动态加载的接口;The third step is to implement a dynamically loadable interface for each performance acquisition thread;
第四步骤,在性能采集控制线程中,根据网管系统管理的网元类型,通过多次数据库查询获取每种网元的列表;In the fourth step, in the performance acquisition control thread, according to the network element types managed by the network management system, a list of each network element is obtained through multiple database queries;
第五步骤,对获取的某种网元的列表,根据从性能采集控制线程的配置文件中获取的各项历史性能采集配置参数,动态创建此种网元的性能采集线程;The fifth step is to dynamically create a performance collection thread of this type of network element according to the various historical performance collection configuration parameters obtained from the configuration file of the performance collection control thread for the obtained list of certain network elements;
第六步骤,在某种网元所对应的性能采集线程中,每次定时周期到的时刻,对该性能采集线程的采集网元列表中的每个网元循环执行性能采集。In the sixth step, in the performance collection thread corresponding to a certain network element, each time the timing period arrives, the performance collection is performed cyclically for each network element in the collection network element list of the performance collection thread.
所述从性能采集控制线程中获取各项历史性能采集的配置参数,包括和网元类型相关的性能采集线程、每种网元的最大采集线程数、每种采集线程的最大采集网元数。The acquisition of various historical performance acquisition configuration parameters from the performance acquisition control thread includes performance acquisition threads related to network element types, the maximum number of acquisition threads for each type of network element, and the maximum number of acquisition network elements for each type of acquisition thread.
对某种网元进行性能采集之前,通过SNMP协议获取网元状态;Before collecting the performance of a certain network element, obtain the state of the network element through the SNMP protocol;
如果获取网元状态失败,则从性能采集线程中的采集网元列表中将该网元删除掉;If the acquisition of the network element status fails, delete the network element from the collection network element list in the performance collection thread;
如果删除该网元后,此性能采集线程的采集网元列表中没有其他网元了,则将采集线程停止并删除掉。If after deleting the network element, there are no other network elements in the collection network element list of the performance collection thread, stop the collection thread and delete it.
当网管系统发现一个网元后,向性能采集控制线程发送启动网元性能采集的请求,性能采集控制线程搜索此种网元类型已经启动的所有性能采集线程,然后判断这个网元是不是已经存在于某个性能采集线程的采集网元列表中;When the network management system finds a network element, it sends a request to the performance collection control thread to start network element performance collection. The performance collection control thread searches for all performance collection threads that have been started for this type of network element, and then judges whether the network element already exists. In the collection network element list of a certain performance collection thread;
如果存在则返回,否则就将这个网元增加到某个采集网元数没有达到配置的每线程最大采集网元数的性能采集线程的采集网元列表中;Return if it exists, otherwise, add this network element to the collection network element list of a performance collection thread whose number of collection network elements does not reach the configured maximum number of collection network elements per thread;
如果当前创建的所有性能采集线程中的采集网元数都已经达到了配置的最大值,而采集线程总数还没有达到最大允许的性能采集线程数,则为该网元创建一个新的性能采集线程。If the number of collection network elements in all performance collection threads currently created has reached the configured maximum value, but the total number of collection threads has not reached the maximum allowable number of performance collection threads, create a new performance collection thread for this network element .
当网管系统删除一个网元后,向性能采集控制线程发送停止网元性能采集的请求,性能采集控制线程搜索此种网元类型已经启动的所有性能采集线程,从中找到这个网元所在的性能采集线程,从采集网元列表中删除掉这个网元,如果删除掉该网元后,此性能采集线程的采集网元列表中不再包含其他的网元,将这个采集线程停止并删除。When the network management system deletes a network element, it sends a request to the performance collection control thread to stop the performance collection of the network element. The performance collection control thread searches all the performance collection threads that have been started for this type of network element, and finds the performance collection thread where the network element is located. thread, delete this network element from the collection network element list, if after deleting this network element, the collection network element list of this performance collection thread no longer contains other network elements, stop this collection thread and delete it.
所述网管系统中实现历史性能采集的方法,当大量网元发生故障无法和网管系统通信时,所述第一步骤进一步还包括:In the method for realizing historical performance collection in the network management system, when a large number of network elements fail to communicate with the network management system, the first step further includes:
网管服务器启动时,到数据库中获取所有的网元;When the network management server is started, all network elements are obtained from the database;
从轮询配置文件获取每个轮询线程最大同时采集网元的数目;Obtain the maximum number of simultaneous network elements collected by each polling thread from the polling configuration file;
逐个为多个网元启动一个循环执行的状态轮询线程。Start a cyclic status polling thread for multiple network elements one by one.
当状态轮询线程发现一个网元后,向性能采集控制线程发送启动网元性能采集的请求,性能采集控制线程搜索此种网元类型已经启动的所有性能采集线程,然后判断这个网元是不是已经存在于某个性能采集线程的采集网元列表中;When the status polling thread finds a network element, it sends a request to the performance collection control thread to start the performance collection of the network element. The performance collection control thread searches all the performance collection threads that have been started for this type of network element, and then judges whether the network element is Already exists in the collection network element list of a certain performance collection thread;
如果存在则返回,否则就将这个网元增加到某个采集网元数没有达到配置的每线程最大采集网元数的性能采集线程的采集网元列表中;Return if it exists, otherwise, add this network element to the collection network element list of a performance collection thread whose number of collection network elements does not reach the configured maximum number of collection network elements per thread;
如果当前创建的所有性能采集线程中的采集网元数都已经达到了配置的最大值,而采集线程总数还没有达到最大允许的性能采集线程数,则为该网元创建一个新的性能采集线程。If the number of collection network elements in all performance collection threads currently created has reached the configured maximum value, but the total number of collection threads has not reached the maximum allowable number of performance collection threads, create a new performance collection thread for this network element .
当轮询网元失败时,向性能采集控制线程发送停止网元性能采集的请求,性能采集控制线程搜索此种网元类型已经启动的所有采集线程,从中找到这个网元所在的性能采集线程,从采集网元列表中删除掉这个网元,如果删除掉这个网元后,采集网元列表中不包含其他的网元了,将这个采集线程停止并删除。When polling the network element fails, send a request to stop the performance collection of the network element to the performance collection control thread, and the performance collection control thread searches all the collection threads that have been started for this type of network element, and finds the performance collection thread where the network element is located. Delete this network element from the collection network element list. If after deleting this network element, the collection network element list does not contain other network elements, stop and delete this collection thread.
所述网管系统发现或者删除网元成功,向状态轮询线程发送消息启动或者停止对相应网元的状态轮询。The network management system discovers or deletes a network element successfully, and sends a message to the status polling thread to start or stop the status polling of the corresponding network element.
采用本发明所述方法,能提供高效率、高扩展性、高可靠性的历史性能采集功能,很容易适应大规模、多种网元混合管理的网管系统的要求。The method of the invention can provide a high-efficiency, high-expandability, and high-reliability historical performance collection function, and can easily adapt to the requirements of a large-scale network management system with mixed management of various network elements.
附图说明Description of drawings
图1BWA统一网管系统性能采集流程图;Figure 1 BWA unified network management system performance collection flow chart;
图2新发现一个网元的处理流程图;Fig. 2 is a flow chart of newly discovering a network element;
图3删除一个已经存在的网元的处理流程图;Fig. 3 is a flow chart of deleting an existing network element;
图4网元轮询线程发现某网元从不通转为通的处理流程图;Fig. 4 is a flow chart of processing when a network element polling thread finds that a certain network element is turned from unavailable to on;
图5网元轮询线程发现某网元从通转为不通的处理流程图。Fig. 5 is a flow chart of processing when a network element polling thread finds that a certain network element is turned from passable to unreachable.
具体实施方式Detailed ways
下面以宽带无线接入(BWA)系统的网管系统为例,详细介绍本发明的实施方法。Taking the network management system of the Broadband Wireless Access (BWA) system as an example, the implementation method of the present invention will be introduced in detail below.
宽带无线接入系统(BWA)以点对多点的信号传送方式为电信运营商提供高速率、大容量、高可靠性、全双工的宽带接入手段,实现用户终端到骨干网的宽带无线接入。BWA网管系统是BWA系统的一个子系统。本实施例中,BWA网管系统为标准客户机/服务器结构,后台数据库采用Microsoft SQL Server,操作维护人员使用图形用户界面(GUI)终端通过BWA网管服务器访问SQL Server数据库。网管服务器和网元系统之间通过SNMP协议通信。The broadband wireless access system (BWA) provides telecom operators with high-speed, large-capacity, high-reliability, and full-duplex broadband access methods in a point-to-multipoint signal transmission mode, and realizes broadband wireless access from user terminals to the backbone network. access. The BWA network management system is a subsystem of the BWA system. In this embodiment, the BWA network management system is a standard client/server structure, the background database adopts Microsoft SQL Server, and the operation and maintenance personnel use a graphical user interface (GUI) terminal to access the SQL Server database through the BWA network management server. The network management server communicates with the network element system through the SNMP protocol.
如附图1所示,1、网管服务器启动过程中启动一个性能采集远程服务(RMI:Remote MethodInvocation)。在性能采集远程服务中创建一个性能采集控制线程;As shown in accompanying drawing 1, 1, start a performance acquisition remote service (RMI: Remote Method Invocation) in the network management server start-up process. Create a performance collection control thread in the performance collection remote service;
2、性能采集控制线程从性能采集配置文件中获取性能采集参数,首先读取性能采集参数,包括是否进行性能采集、性能采集的时间间隔、和网元类型相关的性能采集线程类名、每种网元的最大采集线程数以及每种采集线程的最大采集网元数。2. The performance acquisition control thread obtains the performance acquisition parameters from the performance acquisition configuration file, firstly reads the performance acquisition parameters, including whether to perform performance acquisition, the time interval of performance acquisition, the class name of the performance acquisition thread related to the network element type, each The maximum number of collection threads of network elements and the maximum number of collection network elements of each collection thread.
每种性能采集线程类都实现一个接口,可以动态加载,这样如果新增加一种网元类型,只需要新增加一种针对这种网元的采集线程类,然后在配置文件中为这种网元类型配置新增加的采集线程类,不需要修改性能采集控制线程类。Each performance acquisition thread class implements an interface, which can be dynamically loaded. In this way, if a new type of network element is added, only a new collection thread class for this network element needs to be added, and then the configuration file for this network element Metatype configures the newly added acquisition thread class, and does not need to modify the performance acquisition control thread class.
3、获取性能采集参数后,在性能采集控制线程中,从性能采集配置文件中获取BWA网管系统数据库中获取所有的BWA系列所有的网元类型,然后通过数据库查询操作获取每种类型的网元列表;3. After obtaining the performance acquisition parameters, in the performance acquisition control thread, obtain all network element types of the BWA series from the performance acquisition configuration file in the BWA network management system database, and then obtain each type of network element through database query operations list;
4、性能采集控制线程根据性能采集参数以及网元列表,创建性能采集线程,为每个性能采集网元线程分配一些网元,性能采集线程的采集网元列表中的网元数不能超过配置文件中设置的每线程最大采集网元数;4. The performance collection control thread creates a performance collection thread based on the performance collection parameters and the network element list, and allocates some network elements for each performance collection network element thread. The number of network elements in the collection network element list of the performance collection thread cannot exceed the configuration file The maximum number of acquisition network elements per thread set in ;
5、每个性能采集线程在创建的过程中自动启动一个定时器,定时周期为性能采集时间间隔。每当性能采集线程的定时周期到的时刻,对采集网元列表中的每个网元循环顺序执行下面的操作:5. Each performance collection thread automatically starts a timer during the creation process, and the timing period is the performance collection time interval. Whenever the timing period of the performance collection thread arrives, perform the following operations in a cyclic sequence on each network element in the collection network element list:
首先判断网元和网管系统之间的SNMP链路是否正常,如果不正常,则从采集网元列表中将这个网元删除掉,如果删除该网元后此采集线程的采集网元列表中没有其他网元,则将采集线程停止并删除掉,并向性能采集控制线程发送停止该网元性能采集的请求。然后执行对下一个网元的性能采集操作;Firstly, judge whether the SNMP link between the NE and the network management system is normal. If not, delete the NE from the collection NE list. If the NE is deleted, there is no For other network elements, the collection thread is stopped and deleted, and a request to stop performance collection of the network element is sent to the performance collection control thread. Then perform the performance collection operation on the next network element;
如果网元和网管服务器之间的SNMP链路正常,则通过SNMP协议到网元侧获取性能数据,写入网管数据库。然后执行对下一个网元的性能采集操作,直到所有的完成了对采集网元列表中所有网元的性能采集操作。If the SNMP link between the NE and the network management server is normal, use the SNMP protocol to obtain performance data from the NE side and write it into the network management database. Then perform the performance collection operation on the next network element until all the performance collection operations on all the network elements in the collection network element list are completed.
上面是性能采集得主流程,为了提高性能采集得效率以及是应网络变化得需要,性能采集控制线程可以接收外部得启动或者停止对某个网元得性能采集功能得消息。The above is the main process of performance collection. In order to improve the efficiency of performance collection and meet the needs of network changes, the performance collection control thread can receive external messages to start or stop the performance collection function of a certain network element.
网管系统中的网元是可以动态增加和删除的,网元的状态也是有可能发生变化的,本发明提供了对这两种情况的处理。The network elements in the network management system can be dynamically added and deleted, and the state of the network elements may also change. The present invention provides the processing for these two situations.
增加网元的处理流程如图2所示,网管服务器发现一个网元成功后,发送消息到性能采集远程服务,请求启动该网元的性能采集功能。性能采集远程服务收到请求消息后,将消息转发到性能采集控制线程。性能采集控制线程收到请求消息后,搜索所有已经创建的采集线程。对每个采集线程,判断采集网元列表中是否包括请求启动性能采集功能的网元。如果请求启动性能采集功能的网元已经包括在某个采集线程的采集网元列表中,请求响应结束。如果请求启动性能采集功能的网元没有存在于任何一个已经启动的采集线程中的采集网元列表中。性能采集控制线程开始启动网元的性能采集功能。性能采集控制线程搜索所有已经创建的采集线程,查找还没有达到最大采集网元数的线程。性能采集控制线程将该网元增加到该采集线程中,请求结束。如果所有的已经创建的采集线程都已经达到了最大采集网元数,并且采集线程总数还没有达到最大线程采集数,性能采集控制线程创建一个新的采集线程,将该网元加入到该采集线程中。请求结束。The processing flow of adding a network element is shown in Figure 2. After the network management server finds a network element successfully, it sends a message to the performance collection remote service, requesting to start the performance collection function of the network element. After receiving the request message, the performance collection remote service forwards the message to the performance collection control thread. After the performance acquisition control thread receives the request message, it searches for all created acquisition threads. For each collection thread, it is judged whether the network element requesting to start the performance collection function is included in the collection network element list. If the network element requesting to start the performance collection function has been included in the collection network element list of a certain collection thread, the request response ends. If the network element requesting to start the performance collection function does not exist in the collection network element list of any started collection thread. The performance collection control thread starts to start the performance collection function of the network element. The performance acquisition control thread searches all created acquisition threads, and searches for threads that have not yet reached the maximum number of acquisition network elements. The performance collection control thread adds the network element to the collection thread, and the request ends. If all the collection threads that have been created have reached the maximum number of collection network elements, and the total number of collection threads has not reached the maximum number of collection threads, the performance collection control thread creates a new collection thread and adds the network element to the collection thread middle. End of request.
删除网元的处理流程如图3所示,网管服务器删除一个网元成功后,发送消息到性能采集远程服务,请求停止该网元的性能采集功能。性能采集远程服务收到请求消息后,将消息转发到性能采集控制线程。性能采集控制线程收到请求消息后,搜索所有已经创建的采集线程。对每个采集线程,判断采集网元列表中是否包括请求启动性能采集功能的网元。如果某个采集线程中包含请求停止性能采集功能的网元,则该网元从采集线程的采集网元列表中删除掉。The processing flow of deleting a network element is shown in Figure 3. After successfully deleting a network element, the network management server sends a message to the performance collection remote service, requesting to stop the performance collection function of the network element. After receiving the request message, the performance collection remote service forwards the message to the performance collection control thread. After the performance acquisition control thread receives the request message, it searches for all created acquisition threads. For each collection thread, it is judged whether the network element requesting to start the performance collection function is included in the collection network element list. If a collection thread includes a network element requesting to stop the performance collection function, the network element is deleted from the collection network element list of the collection thread.
另外如果遇到极端的情况,系统中有大量网元发生故障,无法和网管系统通信,而对每个网元进行性能采集时,需要判断网元状态,但是这样需要很长的时间,如果很多网元同时发生故障,则严重影响性能采集的效率,为了解决这个问题,在网管服务器启动的过程中启动了一个网元状态轮询线程。具体处理如下:In addition, if there is an extreme situation where a large number of network elements in the system fail and cannot communicate with the network management system, when collecting the performance of each network element, it is necessary to judge the state of the network elements, but this will take a long time. If network elements fail at the same time, the efficiency of performance collection will be seriously affected. In order to solve this problem, a network element status polling thread is started during the startup of the network management server. The specific treatment is as follows:
(i)网管服务器启动时,到数据库中获取所有的网元。(i) When the network management server is started, all network elements are obtained from the database.
(j)从轮询配置文件获取每个轮询线程最大同时采集网元的数目。(j) Acquiring the maximum number of simultaneously collected network elements of each polling thread from the polling configuration file.
(k)逐个为多个网元启动一个循环执行的状态轮询流程。(k) Start a cyclically executed status polling process for multiple network elements one by one.
(l)在状态轮询线程中,定期检测网元状态,轮询周期可以根据网元数目来调节,网元数目较大时,轮询周期可以设置长一些。(l) In the status polling thread, the status of network elements is detected periodically, and the polling cycle can be adjusted according to the number of network elements. When the number of network elements is large, the polling cycle can be set longer.
(m)当轮询新成功地发现一个网元后,向性能采集控制线程发送启动网元性能采集的请求,性能采集控制线程搜索此种网元类型已经启动的所有性能采集线程,然后判断这个网元是不是已经存在于某个性能采集线程的采集网元列表中,如果存在则返回,否则就将这个网元增加到某个采集网元数没有达到配置的每线程最大采集网元数的性能采集线程的采集网元列表中。如果当前创建的所有性能采集线程中的采集网元数都已经达到了配置的最大值,而采集线程总数还没有达到最大允许的性能采集线程数,则为该网元创建一个新的性能采集线程。(m) After polling newly discovers a network element successfully, send the request of starting network element performance collection to the performance collection control thread, the performance collection control thread searches for all performance collection threads that this network element type has started, and then judges this Whether the network element already exists in the collection network element list of a certain performance collection thread, if it exists, it will be returned, otherwise, this network element will be added to the number of certain collection network elements that does not reach the configured maximum number of collection network elements per thread In the collection NE list of the performance collection thread. If the number of collection network elements in all performance collection threads currently created has reached the configured maximum value, but the total number of collection threads has not reached the maximum allowable number of performance collection threads, create a new performance collection thread for this network element .
(n)当轮询网元失败时,向性能采集控制线程发送停止网元性能采集的请求,性能采集控制线程搜索此种网元类型已经启动的所有采集线程,从中找到这个网元所在的性能采集线程,从采集网元列表中删除掉这个网元,如果删除掉这个网元后,采集网元列表中不包含其他的网元了,将这个采集线程停止并删除。(n) When polling network elements fails, send a request to stop network element performance collection to the performance collection control thread, and the performance collection control thread searches for all collection threads that have been started for this type of network element, and finds the performance of this network element. The collection thread deletes this network element from the collection network element list. If after deleting this network element, the collection network element list does not contain other network elements, stop and delete this collection thread.
由于轮询线程得轮询周期一般远小于采集周期,所以大部分得轮询失败故障都可以在执行性能采集之前,发现并通知到性能采集控制线程,从而提高了采集效率。Since the polling cycle of the polling thread is generally much shorter than the collection cycle, most of the polling failures can be discovered and notified to the performance collection control thread before the performance collection is performed, thereby improving the collection efficiency.
考虑到网络设备经常会发生变化,当增加一个网元,性能采集控制线程接收到相应的消息后,会自动将新增的网元分配给某个性能采集线程或者新建一个性能采集线程来对该网元进行历史性能数据采集,当删除一个网元,性能采集控制线程接收到相应的消息后,会自动遍历每一个性能采集线程直到搜索到包含被删除的网元的性能采集线程,然后将该网元从该性能采集线程的采集网元列表中删除掉。Considering that network devices often change, when adding a network element, the performance acquisition control thread will automatically assign the newly added network element to a certain performance acquisition thread or create a new performance acquisition thread to control the network element after receiving the corresponding message. When a network element collects historical performance data, when a network element is deleted, the performance collection control thread will automatically traverse each performance collection thread until it finds the performance collection thread containing the deleted network element after receiving the corresponding message. The NE is deleted from the collection NE list of the performance collection thread.
考虑到网络通讯问题,网元通断状态有时候会发生变化,网管系统启动时会启动网元状态轮询线程,负责监测网元状态的变化,当网元发生状态变化时,网元状态轮询线程向性能采集控制线程发送网元状态变化的消息,性能采集控制线程接收到消息后,根据网元的状态决定启动或停止对该网元的性能采集任务。如果新增一个网元,网元状态轮询线程会自动+启动对该网元的轮询任务,如果删除一个网元,网元状态轮询线程会自动停止对该网元的轮询任务。Considering the problem of network communication, the on-off status of network elements may change sometimes. When the network management system starts, it will start the network element status polling thread, which is responsible for monitoring the changes of the network element status. When the status of the network elements changes, the network element status wheel The query thread sends a message of network element state change to the performance collection control thread, and after receiving the message, the performance collection control thread decides to start or stop the performance collection task of the network element according to the state of the network element. If a network element is added, the network element status polling thread will automatically + start the polling task for the network element, and if a network element is deleted, the network element status polling thread will automatically stop the polling task for the network element.
定期采用SNMP协议访问网元,如果没有收到网元返回的消息,说明网元和网管系统不通了。对于不通的网元,需要及时将它们从性能采集线程中删除掉,否则会严重影响性能采集线程的采集效率。采用的方法是当轮询线程发现网元从正常状态变到不通状态,则发送消息到性能采集远程服务,请求停止该网元的性能采集功能,如图5所示。当轮询线程发现网元从不通状态变到正常状态,发送消息到性能采集远程服务,请求启动该网元的性能采集功能,如图4所示。Regularly use the SNMP protocol to access network elements. If no message is received from the network element, it means that the network element and the network management system are disconnected. For unreachable network elements, they need to be deleted from the performance collection thread in time, otherwise the collection efficiency of the performance collection thread will be seriously affected. The method adopted is that when the polling thread finds that the network element has changed from the normal state to the unreachable state, it sends a message to the performance collection remote service, requesting to stop the performance collection function of the network element, as shown in Figure 5. When the polling thread finds that the network element has changed from the disconnected state to the normal state, it sends a message to the performance collection remote service and requests to start the performance collection function of the network element, as shown in Figure 4.
以下给出配置文件的格式说明,考虑到配置文件的扩展性,配置文件采用xml文件格式。配置文件中主要包括以下配置项:The format description of the configuration file is given below. Considering the extensibility of the configuration file, the configuration file adopts the xml file format. The configuration file mainly includes the following configuration items:
1、网元类型;1. Network element type;
2、是否对该类型网元进行历史性能采集;2. Whether to collect historical performance of this type of network element;
3、历史性能采集周期类型1;3. Historical performance collection cycle type 1;
4、历史性能采集周期类型2;4. Historical performance collection cycle type 2;
5、采集线程类名;5. Collection thread class name;
6、该网元类型采集线程最大数;6. The maximum number of collection threads of this network element type;
7、该网元类型每采集线程最大采集网元数。7. The maximum number of collection network elements per collection thread of this network element type.
虽然本发明实施例是以BWA网管系统为例,但本发明方法可适用于各类网管系统中。Although the embodiment of the present invention takes the BWA network management system as an example, the method of the present invention is applicable to various network management systems.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2005100852568A CN1901568B (en) | 2005-07-22 | 2005-07-22 | A method for realizing historical performance collection in a network management system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2005100852568A CN1901568B (en) | 2005-07-22 | 2005-07-22 | A method for realizing historical performance collection in a network management system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1901568A CN1901568A (en) | 2007-01-24 |
| CN1901568B true CN1901568B (en) | 2010-09-01 |
Family
ID=37657303
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2005100852568A Expired - Fee Related CN1901568B (en) | 2005-07-22 | 2005-07-22 | A method for realizing historical performance collection in a network management system |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1901568B (en) |
Families Citing this family (15)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101146150B (en) * | 2007-05-09 | 2010-06-16 | 中兴通讯股份有限公司 | System and method for automatic data deletion in communication device |
| CN101370222B (en) * | 2007-08-15 | 2012-04-04 | 中兴通讯股份有限公司 | Key performance index acquiring and monitoring system and method |
| CN100559763C (en) * | 2007-08-28 | 2009-11-11 | 中国科学院软件研究所 | A Method for Integrity Checking of Remote Network Services |
| CN101136781B (en) * | 2007-09-30 | 2010-11-10 | 亿阳信通股份有限公司 | Method and device for controlling timing of performance data collection in network management system |
| CN101227330B (en) * | 2008-02-19 | 2011-04-27 | Ut斯达康通讯有限公司 | Method and system for history performance data collection |
| CN101552692B (en) * | 2008-04-02 | 2011-03-23 | 大唐移动通信设备有限公司 | Operating and maintenance system and parameter configuration method of network element device |
| CN101459544B (en) * | 2009-01-05 | 2012-08-08 | 中兴智能交通(无锡)有限公司 | Method and system for collecting performance data |
| CN101841423B (en) * | 2009-03-19 | 2012-06-27 | 大唐移动通信设备有限公司 | Network management system history performance data query method, device and network management system |
| CN101883009A (en) * | 2010-06-28 | 2010-11-10 | 华为技术有限公司 | Method, system and network management equipment for automatic collection of reliability data |
| CN102402459B (en) * | 2010-09-10 | 2013-09-11 | 中兴通讯股份有限公司 | Method and device for summarizing performance data of network management system |
| CN102957547B (en) * | 2011-08-18 | 2017-09-26 | 南京中兴软件有限责任公司 | The installation method and device of telecom network management system |
| CN104750811A (en) * | 2015-03-30 | 2015-07-01 | 浪潮通信信息系统有限公司 | Multithreading real-time acquisition method for mobile communication data file |
| CN106789166B (en) * | 2016-11-28 | 2020-12-25 | 金华市智甄通信设备有限公司 | Method and device for network element batch configuration |
| CN110661631A (en) * | 2018-06-28 | 2020-01-07 | 中兴通讯股份有限公司 | A method, device and computer-readable storage medium for collecting network element logs |
| CN111464331B (en) * | 2020-03-03 | 2023-03-24 | 深圳市计通智能技术有限公司 | Control method and system for thread creation and terminal equipment |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20040054018A (en) * | 2002-12-16 | 2004-06-25 | 한국전자통신연구원 | Apparatus and Method of Network Management by Upgrading Simple Network Management Protocol Management information Base Bundle Dynamically |
| CN1523831A (en) * | 2003-02-17 | 2004-08-25 | 中国移动通信集团公司 | System structure and control method of network management interface information collection control point |
| CN1545260A (en) * | 2003-11-25 | 2004-11-10 | 中兴通讯股份有限公司 | A Method of Data Observation Applied in Network Management System |
-
2005
- 2005-07-22 CN CN2005100852568A patent/CN1901568B/en not_active Expired - Fee Related
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| KR20040054018A (en) * | 2002-12-16 | 2004-06-25 | 한국전자통신연구원 | Apparatus and Method of Network Management by Upgrading Simple Network Management Protocol Management information Base Bundle Dynamically |
| CN1523831A (en) * | 2003-02-17 | 2004-08-25 | 中国移动通信集团公司 | System structure and control method of network management interface information collection control point |
| CN1545260A (en) * | 2003-11-25 | 2004-11-10 | 中兴通讯股份有限公司 | A Method of Data Observation Applied in Network Management System |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1901568A (en) | 2007-01-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN1901568B (en) | A method for realizing historical performance collection in a network management system | |
| EP2563062B1 (en) | Long connection management apparatus and link resource management method for long connection communication | |
| CN106993043B (en) | Data communication system and method based on agency | |
| EP3101872A1 (en) | Load balancing server for forwarding prioritized traffic from and to one or more prioritized auto-configuration servers | |
| CN100426751C (en) | Method for ensuring accordant configuration information in cluster system | |
| CN105554099A (en) | Method and device for balancing load of acquisition servers | |
| CN101478419B (en) | Network equipment management method and system thereof | |
| CN101409654B (en) | Method for processing SNMP information in network management system | |
| CN106571973A (en) | Heartbeat packet timeout management method and system | |
| CN101667932B (en) | Method of network element equipment log management and device | |
| CN102118274A (en) | State monitoring method, device and system | |
| CN102075351A (en) | Network management remote control method and system | |
| WO2011097850A1 (en) | Data managing method and system | |
| CN102480369A (en) | A network management system and performance collection method | |
| CN110018677A (en) | A kind of internet of things equipment management system and method | |
| CN102136925A (en) | Method and system for passively collecting data based on SNMP protocol | |
| WO2015184850A1 (en) | Method, apparatus and system for collecting stale data | |
| CN105592485B (en) | A method of it is acquired in real time based on SNMP network management protocol and handles message | |
| CN112769923A (en) | Method, device and storage medium for monitoring network equipment performance index in big data scene | |
| CN101729530A (en) | Data synchronization method and data synchronization system | |
| CN107124293B (en) | Protocol management method and system of distributed network system | |
| CN202385116U (en) | Distributed operation and maintenance data acquisition device | |
| CN103532800B (en) | M2M household networks and the method that Intelligent treatment is carried out according to the network | |
| CN114500582B (en) | Log collection method, device, storage medium and electronic device | |
| CN1842011A (en) | An improved method and system for billing based on traffic |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| ASS | Succession or assignment of patent right |
Owner name: GUANGDONG HUABO ENTERPRISE MANAGEMENT CONSULTING C Free format text: FORMER OWNER: ZTE CORPORATION Effective date: 20141009 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 518057 SHENZHEN, GUANGDONG PROVINCE TO: 510640 GUANGZHOU, GUANGDONG PROVINCE |
|
| TR01 | Transfer of patent right |
Effective date of registration: 20141009 Address after: 510640 Guangdong city of Guangzhou province Tianhe District gold Yinglu No. 1 was 1106 room two Patentee after: GUANGDONG HUABO ENTERPRISE MANAGEMENT CONSULTING Co.,Ltd. Address before: 518057 Nanshan District science and Technology Industrial Park, Guangdong high tech Industrial Park, ZTE building Patentee before: ZTE Corp. |
|
| ASS | Succession or assignment of patent right |
Owner name: STATE GRID SHANGHAI ELECTRIC POWER COMPANY Free format text: FORMER OWNER: GUANGDONG HUABO ENTERPRISE MANAGEMENT CONSULTING CO., LTD. Effective date: 20141126 |
|
| C41 | Transfer of patent application or patent right or utility model | ||
| COR | Change of bibliographic data |
Free format text: CORRECT: ADDRESS; FROM: 510640 GUANGZHOU, GUANGDONG PROVINCE TO: 200002 PUDONG NEW AREA, SHANGHAI |
|
| TR01 | Transfer of patent right |
Effective date of registration: 20141126 Address after: 200002 Shanghai City, Pudong New Area source deep road, No. 1122 Patentee after: STATE GRID SHANGHAI MUNICIPAL ELECTRIC POWER Co. Address before: 510640 Guangdong city of Guangzhou province Tianhe District gold Yinglu No. 1 was 1106 room two Patentee before: GUANGDONG HUABO ENTERPRISE MANAGEMENT CONSULTING Co.,Ltd. |
|
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100901 |