CN102486805A - Engineering field application simulating method and device - Google Patents

Engineering field application simulating method and device Download PDF

Info

Publication number
CN102486805A
CN102486805A CN2010105703645A CN201010570364A CN102486805A CN 102486805 A CN102486805 A CN 102486805A CN 2010105703645 A CN2010105703645 A CN 2010105703645A CN 201010570364 A CN201010570364 A CN 201010570364A CN 102486805 A CN102486805 A CN 102486805A
Authority
CN
China
Prior art keywords
engineering application
engineering
simulation
application situation
identification information
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.)
Pending
Application number
CN2010105703645A
Other languages
Chinese (zh)
Inventor
刘金洋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN2010105703645A priority Critical patent/CN102486805A/en
Publication of CN102486805A publication Critical patent/CN102486805A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种工程现场应用的模拟方法及装置,该方法包括以下步骤:收集并备份现网规模标识信息,并记录预定时间段内的工程应用情况,其中,工程应用情况包括被调用的每个功能和调用该功能的时间;根据上述工程应用情况编写模拟工程应用情况的自动化脚本;根据备份的现网规模标识信息搭建与上述工程应用情况等同的仿真环境,并运行自动化脚本。通过本发明增加了系统的有效性和准确性,提高了用户满意度。

The invention discloses a simulation method and device for engineering field application. The method includes the following steps: collecting and backing up the scale identification information of the existing network, and recording the engineering application situation within a predetermined period of time, wherein the engineering application situation includes the called Each function and the time when the function is called; according to the above-mentioned engineering application situation, an automation script for simulating the engineering application situation is written; a simulation environment equivalent to the above-mentioned engineering application situation is built according to the backup live network scale identification information, and the automation script is run. The effectiveness and accuracy of the system are increased through the invention, and user satisfaction is improved.

Description

工程现场应用的模拟方法及装置Simulation method and device for engineering site application

技术领域 technical field

本发明涉及通信领域的网管和北向接口软件系统,尤其涉及一种工程现场应用的模拟方法及装置。The invention relates to a network management and northbound interface software system in the communication field, in particular to a simulation method and device for engineering field application.

背景技术 Background technique

随着通讯行业的快速发展,网络规模的不断扩大,设备类型和数量的快速增加,具有全网监控、管理和维护功能的通讯网管和北向接口软件系统的应用也日益广泛,愈显重要。而目前在现网上使用的网管和北向接口软件(以下简称为系统)时常会出现一些严重问题,例如,系统异常退出、重启、处理效率低等,严重影响运营商正常的日常维护,降低客户满意度,甚至还造成了到处救火解决燃眉之急的被动形势,使得制造商和运营商付出了很大的代价。这些工程现场的严重问题归根结底是因为实验室在线设备数量少,测试时闭门造车没有结合工程应用场景造成的。With the rapid development of the communication industry, the continuous expansion of the network scale, and the rapid increase in the type and quantity of equipment, the application of communication network management and northbound interface software systems with the functions of monitoring, management and maintenance of the entire network is becoming more and more important. At present, the network management and northbound interface software (hereinafter referred to as the system) used on the existing network often have some serious problems, such as abnormal system exit, restart, low processing efficiency, etc., which seriously affect the normal daily maintenance of operators and reduce customer satisfaction. It has even caused a passive situation where firefighting is everywhere to solve the urgent need, which has caused manufacturers and operators to pay a very high price. The serious problems at these engineering sites are ultimately due to the small number of online equipment in the laboratory, and the testing behind closed doors is not combined with engineering application scenarios.

其中,对于在线设备数量少的问题,可以用各种仿真设备工具进行仿真解决(通常每个厂家都有开发设备仿真工具)。而对于模拟工程应用场景的问题,在相关技术中,还处于到现网进行人工观察,形成经验后再进行手工模拟的阶段。可见,这样不仅会出现观察结果因人而异不准确的现象,而且还会因工作量庞大繁琐、成本高导致没人没时间实施的情况。Among them, for the problem of a small number of online devices, various simulation device tools can be used for simulation (usually each manufacturer has a development device simulation tool). As for the problem of simulating engineering application scenarios, in related technologies, it is still in the stage of manual observation on the live network, and manual simulation after the experience is formed. It can be seen that not only will there be inaccurate observation results that vary from person to person, but also the situation that no one has time to implement due to the huge and cumbersome workload and high cost.

发明内容 Contents of the invention

本发明的主要目的在于提供一种工程现场应用的模拟方案,以至少解决上述的相关技术中由于需要手工模拟工程应用场景而导致效率低及成本高的问题。The main purpose of the present invention is to provide a simulation solution for engineering field application, so as to at least solve the problems of low efficiency and high cost in the above-mentioned related technologies due to the need for manual simulation of engineering application scenarios.

为了实现上述目的,根据本发明的一个方面,提供了一种工程现场应用的模拟方法。In order to achieve the above object, according to one aspect of the present invention, a simulation method for engineering field application is provided.

根据本发明的工程现场应用的模拟方法,包括以下步骤:收集并备份现网规模标识信息,并记录预定时间段内的工程应用情况,其中,工程应用情况包括被调用的每个功能和调用该功能的时间;根据上述工程应用情况编写模拟工程应用情况的自动化脚本;根据备份的现网规模标识信息搭建与上述工程应用情况等同的仿真环境,并运行自动化脚本。The simulation method for engineering field application according to the present invention includes the following steps: collecting and backing up the scale identification information of the existing network, and recording the engineering application situation within a predetermined period of time, wherein the engineering application situation includes each function being called and calling the According to the above-mentioned engineering application situation, write an automation script for simulating the engineering application situation; build a simulation environment equivalent to the above-mentioned engineering application situation according to the backup existing network scale identification information, and run the automation script.

进一步地,上述现网规模标识信息包括至少以下之一:设备类型及数量、全网平均告警数据、设备的平均性能数据。Further, the scale identification information of the existing network includes at least one of the following: equipment type and quantity, average alarm data of the entire network, and average performance data of equipment.

进一步地,记录预定时间段内的工程应用情况包括:将预定时间段内北向接口软件被用户调用的每个函数和操作时间写入到一个文件中。Further, recording the engineering application situation within the predetermined time period includes: writing each function and operation time of the northbound interface software called by the user within the predetermined time period into a file.

进一步地,根据备份的现网规模标识信息搭建与上述工程应用情况等同的仿真环境包括:根据备份的现网规模标识信息使用设备仿真平台仿真现网设备在线,产生同现网相等数量的告警及性能数据。Further, building a simulation environment equivalent to the above-mentioned engineering application situation based on the backup current network scale identification information includes: using the equipment simulation platform to simulate the online equipment of the current network according to the backup current network scale identification information, generating the same number of alarms and alarms as the current network performance data.

进一步地,运行自动化脚本之前,该方法还包括:在Eclipse上编译北向接口软件对外提供的IDL文件。Further, before running the automation script, the method further includes: compiling the IDL file externally provided by the northbound interface software on Eclipse.

进一步地,自动化脚本中包括模拟工程应用情况的次数。Further, the automation script includes the number of times of simulating engineering application situations.

为了实现上述目的,根据本发明的另一方面,还提供了一种工程现场应用的模拟装置。In order to achieve the above purpose, according to another aspect of the present invention, a simulation device for engineering field application is also provided.

根据本发明的工程现场应用的模拟装置,包括:采集模块,用于收集并备份现网规模标识信息,并记录预定时间段内的工程应用情况,其中,工程应用情况包括被调用的每个功能和调用该功能的时间;编写自动化脚本模块,用于根据上述工程应用情况编写模拟工程应用情况的自动化脚本;搭建仿真环境模块,用于根据备份的现网规模标识信息搭建与上述工程应用情况等同的仿真环境;以及执行模块,运行编写自动化脚本模块编写的自动化脚本。The simulation device for engineering field application according to the present invention includes: an acquisition module, which is used to collect and back up the scale identification information of the existing network, and record the engineering application situation within a predetermined period of time, wherein the engineering application situation includes each function called and the time to call this function; write an automation script module, which is used to write an automation script for simulating the engineering application situation according to the above-mentioned engineering application situation; build a simulation environment module, which is used to build the same as the above-mentioned engineering application situation according to the backup existing network scale identification information simulation environment; and an execution module, running the automation script written by the automation script writing module.

进一步地,采集模块还用于将预定时间段内北向接口软件被用户调用的每个函数和操作时间写入到一个文件中。Further, the collection module is also used to write each function and operation time of the northbound interface software called by the user within a predetermined period of time into a file.

进一步地,搭建仿真环境模块还用于根据备份的现网规模标识信息使用设备仿真平台仿真现网设备在线,产生同现网相等数量的告警及性能数据。Further, the building simulation environment module is also used to use the device simulation platform to simulate the online equipment of the live network according to the scale identification information of the backup live network, and generate the same number of alarms and performance data as the live network.

进一步地,该装置还包括:编译模块,用于在Eclipse上编译北向接口软件对外提供的IDL文件。Further, the device also includes: a compilation module, which is used to compile the IDL file provided by the northbound interface software on Eclipse.

通过本发明,采用根据现网规模标识信息搭建仿真环境,并运行编写好的模拟工程应用情况的自动化脚本的方式对工程现场应用进行模拟,解决了相关技术中由于需要手工模拟工程应用场景而导致效率低及成本高的问题,增加了系统的有效性和准确性,提高了用户满意度。Through the present invention, the simulation environment is built according to the scale identification information of the existing network, and the automatic script for simulating the application situation of the project is run to simulate the application of the project site, which solves the problem of manual simulation of the project application scene in the related technology. The problem of low efficiency and high cost increases the effectiveness and accuracy of the system and improves user satisfaction.

附图说明 Description of drawings

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

图1是根据本发明实施例的工程现场应用的模拟方法的流程图;Fig. 1 is a flow chart of a simulation method for engineering field application according to an embodiment of the present invention;

图2是根据本发明实施例的工程现场应用的模拟装置的结构框图;Fig. 2 is the structural block diagram of the simulation device of engineering field application according to the embodiment of the present invention;

图3是根据本发明优选实施例的工程现场应用的模拟装置的结构框图;Fig. 3 is the structural block diagram of the simulation device of engineering field application according to the preferred embodiment of the present invention;

图4是根据本发明优选实施例二的工程现场应用的模拟方法的流程图;以及Fig. 4 is the flow chart of the simulation method of engineering field application according to preferred embodiment 2 of the present invention; And

图5是根据本发明优选实施例二的运行自动化脚本模拟工程应用的示意图。Fig. 5 is a schematic diagram of running an automation script to simulate an engineering application according to a second preferred embodiment of the present invention.

具体实施方式 Detailed ways

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

根据本发明实施例,提供了一种工程现场应用的模拟方法。图1是根据本发明实施例的工程现场应用的模拟方法的流程图,如图1所示,该方法包括以下步骤:According to an embodiment of the present invention, a simulation method for engineering field application is provided. Fig. 1 is the flow chart of the simulation method of engineering field application according to the embodiment of the present invention, as shown in Fig. 1, this method comprises the following steps:

步骤S102,收集并备份现网规模标识信息,并记录预定时间段内的工程应用情况,其中,该工程应用情况包括被调用的每个功能和调用该功能的时间;Step S102, collecting and backing up the scale identification information of the existing network, and recording the engineering application status within a predetermined period of time, wherein the engineering application status includes each function being called and the time when the function is called;

步骤S104,根据上述工程应用情况编写模拟工程应用情况的自动化脚本;Step S104, writing an automation script for simulating engineering application according to the above-mentioned engineering application situation;

步骤S106,根据备份的现网规模标识信息搭建与上述工程应用情况等同的仿真环境,并运行自动化脚本。Step S106, build a simulation environment equivalent to the above-mentioned engineering application situation according to the backup current network scale identification information, and run the automation script.

通过上述步骤,采用根据现网规模标识信息搭建仿真环境,并运行编写好的模拟工程应用情况的自动化脚本的方式对工程现场应用进行模拟,解决了相关技术中由于需要手工模拟工程应用场景而导致效率低及成本高的问题,增加了系统的有效性和准确性,提高了用户满意度。Through the above steps, the simulation environment is built according to the scale identification information of the existing network, and the automatic script for simulating the engineering application situation is run to simulate the engineering field application, which solves the problem of manual simulation of engineering application scenarios in related technologies. The problem of low efficiency and high cost increases the effectiveness and accuracy of the system and improves user satisfaction.

需要说明的是,收集现网规模时可以不涉及预定的时间段,因为现网规模很少发生变更,但是在记录工程应用情况的时候,则需要给一个时间段,因为软件需要收集一个比较具有典型代表的时间段的工程应用情况。It should be noted that the predetermined period of time may not be involved in the collection of the scale of the live network, because the scale of the live network rarely changes, but when recording the application of the project, it is necessary to give a period of time, because the software needs to collect a relatively Typical representative time periods for engineering applications.

优选地,上述现网规模标识信息包括至少以下之一:设备类型及数量、全网平均告警数据、设备的平均性能数据。例如,现网可能会存在多种设备类型,而每种设备类型都有很多个。该方法实现简单、可操作性强。Preferably, the scale identification information of the existing network includes at least one of the following: equipment type and quantity, average alarm data of the entire network, and average performance data of equipment. For example, there may be multiple types of devices on the live network, and there are many types of each device. The method is simple to implement and highly operable.

优选地,在步骤S102中,记录预定时间段内的工程应用情况包括:将预定时间段内北向接口软件被用户调用的每个函数和操作时间写入到一个文件中。该方法可以作为模拟的依据,从而提高模拟的有效性和真实性。Preferably, in step S102, recording the engineering application conditions within the predetermined time period includes: writing each function and operation time of the northbound interface software called by the user within the predetermined time period into a file. This method can be used as the basis of simulation, thereby improving the validity and authenticity of simulation.

优选地,在步骤S104中,自动化脚本中包括模拟工程应用情况的次数。该方法使得模拟的工程应用情况可以重复,增加了系统的灵活性及实用性。Preferably, in step S104, the automation script includes the number of times of simulating engineering application conditions. This method makes the simulated engineering application situation repeatable and increases the flexibility and practicability of the system.

优选地,在步骤S106中,根据备份的现网规模标识信息搭建与工程应用情况等同的仿真环境包括:根据备份的现网规模标识信息使用设备仿真平台仿真现网设备在线,产生同现网相等数量的告警及性能数据。该方法可以提高模拟的准确性。Preferably, in step S106, building a simulation environment equivalent to the engineering application situation according to the backup current network scale identification information includes: using the equipment simulation platform to simulate the online equipment of the current network according to the backup current network scale identification information to generate Quantity of alarms and performance data. This method can improve the accuracy of the simulation.

优选地,在步骤S106中,运行自动化脚本之前,可以在Eclipse上编译北向接口软件对外提供的IDL文件。该方法可以将北向接口软件对外提供的IDL文件也包含在要执行的自动化脚本中,化简了编写自动化脚本的过程,提高了系统的效率。Preferably, in step S106, before running the automation script, the IDL file provided by the northbound interface software can be compiled on Eclipse. The method can also include the IDL file provided by the northbound interface software in the automation script to be executed, which simplifies the process of writing the automation script and improves the efficiency of the system.

根据本发明实施例,还提供了一种工程现场应用的模拟装置。图2是根据本发明实施例的工程现场应用的模拟装置的结构框图,如图2所示,该装置包括:采集模块22,用于收集并备份现网规模标识信息,并记录预定时间段内的工程应用情况,其中,工程应用情况包括被调用的每个功能和调用该功能的时间;编写自动化脚本模块24,耦合至采集模块22,用于根据工程应用情况编写模拟工程应用情况的自动化脚本;搭建仿真环境模块26,耦合至采集模块22,用于根据备份的现网规模标识信息搭建与工程应用情况等同的仿真环境;以及执行模块28,耦合至编写自动化脚本模块24和搭建仿真环境模块26,运行编写自动化脚本模块编写的自动化脚本。According to an embodiment of the present invention, a simulation device for engineering field application is also provided. Fig. 2 is a structural block diagram of a simulation device applied on the engineering site according to an embodiment of the present invention. As shown in Fig. 2, the device includes: an acquisition module 22, which is used to collect and back up the scale identification information of the existing network, and record Engineering application situation, wherein, engineering application situation comprises each function that is called and the time of calling this function; Write automation script module 24, be coupled to acquisition module 22, be used for writing the automation script of simulation engineering application situation according to engineering application situation Build a simulation environment module 26, coupled to the acquisition module 22, for setting up a simulation environment equivalent to the engineering application situation according to the existing network scale identification information of the backup; and the execution module 28, coupled to the writing automation script module 24 and building the simulation environment module 26. Run the automation script written by the automation script writing module.

优选地,采集模块22还用于将预定时间段内北向接口软件被用户调用的每个函数和操作时间写入到一个文件中。Preferably, the collection module 22 is also used to write each function and operation time of the northbound interface software called by the user within a predetermined period of time into a file.

优选地,搭建仿真环境模块26还用于根据备份的现网规模标识信息使用设备仿真平台仿真现网设备在线,产生同现网相等数量的告警及性能数据。Preferably, the building simulation environment module 26 is also used to use the equipment simulation platform to simulate online equipment on the existing network according to the backup existing network scale identification information, and generate alarms and performance data equal to the number of the existing network.

图3是根据本发明优选实施例的工程现场应用的模拟装置的结构框图,如图3所示,该装置还包括:编译模块32,耦合至执行模块28,用于在Eclipse上编译北向接口软件对外提供的IDL文件。Fig. 3 is the structural block diagram of the simulation device of engineering field application according to the preferred embodiment of the present invention, as shown in Fig. 3, this device also includes: compiling module 32, is coupled to execution module 28, is used for compiling northbound interface software on Eclipse The IDL file provided externally.

需要说明的是,装置实施例中描述的工程现场应用的模拟装置对应于上述的方法实施例,其具体的实现过程在方法实施例中已经进行过详细说明,在此不再赘述。It should be noted that the simulation device for engineering field application described in the device embodiment corresponds to the above method embodiment, and its specific implementation process has been described in detail in the method embodiment, and will not be repeated here.

下面结合优选实施例和附图对上述实施例的实现过程进行详细说明。The implementation process of the above-mentioned embodiments will be described in detail below in conjunction with preferred embodiments and accompanying drawings.

优选实施例一Preferred embodiment one

本实施例提供了一种准确模拟工程现场应用的自动化方法,以解决手工模拟因人而异、工作量庞大繁琐、效率低下、成本高等问题,该方法包括以下步骤:This embodiment provides an automated method for accurately simulating engineering field applications to solve the problems of manual simulation that varies from person to person, huge and cumbersome workload, low efficiency, and high cost. The method includes the following steps:

步骤1,设定一个时间段,自动收集备份该时间段内的现网基本情况(即,现网规模标识信息)和工程应用情况。Step 1, set a time period, and automatically collect and backup the basic situation of the live network (ie, the scale identification information of the live network) and engineering application conditions within the time period.

在具体实施过程中,自动收集备份现网基本情况可以包括:在系统的工程应用过程中,确定一个具有普遍性和代表性的时间段,系统在该时间段内稳定运行,自动收集现网规模(即,设备类型及数量、全网平均告警数量以及设备的平均性能数据等)基本情况并备份。具体统计的内容可根据不同的网络应用进行取舍。In the specific implementation process, the automatic collection and backup of the basic information of the existing network may include: in the engineering application process of the system, determine a general and representative time period, the system runs stably during this time period, and automatically collect the scale of the existing network. (that is, the type and quantity of equipment, the average number of alarms in the entire network, and the average performance data of equipment, etc.) and back up the basic information. The content of specific statistics can be selected according to different network applications.

优选地,自动收集工程应用情况可以包括:将系统在该时间段内被操作调用的每个功能及操作时间都自动写入一个文件。Preferably, the automatic collection of engineering application conditions may include: automatically writing each function and operation time of the system called by operation within the time period into a file.

步骤2,根据工程应用情况,编写自动化脚本。例如,可以根据收集到的工程应用情况文件,编写自动化脚本。该自动化脚本只需编写一次,便可用于后续的所有版本,可谓一劳永逸。Step 2, according to the engineering application situation, write the automation script. For example, automation scripts can be written based on the collected engineering application files. Write the automation script once and use it for all subsequent releases, once and for all.

步骤3,搭建和现网等同的仿真环境,运行脚本,真正模拟工程应用。Step 3, build a simulation environment equivalent to the live network, run scripts, and truly simulate engineering applications.

在具体实施过程中,步骤3可以分为两个过程:(1)搭建和工程应用等同的仿真环境;(2)运行模拟工程应用的自动化脚本。In the specific implementation process, step 3 can be divided into two processes: (1) building a simulation environment equivalent to the engineering application; (2) running an automation script for simulating the engineering application.

优选地,搭建和工程应用等同的仿真环境可以包括:通过恢复现网基本情况的备份数据,搭建相同的网络环境,然后使用设备仿真平台仿真在线所有设备、产生同等数量的告警及性能数据。例如,各设备供应商都有开发设备仿真平台,可用于模拟真实设备,动态产生告警性能数据等。Preferably, building a simulation environment equivalent to engineering applications may include: building the same network environment by restoring the backup data of the basic situation of the current network, and then using the equipment simulation platform to simulate all online equipment and generate the same number of alarms and performance data. For example, each equipment supplier has a development equipment simulation platform, which can be used to simulate real equipment and dynamically generate alarm performance data.

优选地,运行模拟工程应用的自动化脚本:在搭建好和工程等同的仿真环境后,运行自动化脚本,自动模拟工程应用过程中被调用的功能及调用的时间间隔。在具体实施过程中,可根据需要循环运行该自动化脚本,长期持续运行。在模拟工程应用的过程中,监测系统的运行状况,提前识别风险和发现问题。Preferably, run the automation script for simulating the engineering application: after setting up a simulation environment equivalent to the project, run the automation script to automatically simulate the functions called during the engineering application process and the calling time interval. During the specific implementation process, the automated script can be run cyclically as needed and run continuously for a long time. In the process of simulating engineering applications, monitor the operating status of the system, identify risks and find problems in advance.

可见,本发明优选实施例提供了一种自动模拟工程现场应用的技术方案,准确模拟了工程现场,实现了自动化,克服了手工模拟时的因人而异和工作量庞大繁琐的问题,提高了工作效率。并且,该技术方案能提前识别系统的严重问题和风险,及早解决避免流落到工程现场,减轻了到处救火的被动形势,节约成本,提升了用户的满意度。It can be seen that the preferred embodiment of the present invention provides a technical solution for automatically simulating the engineering site application, which accurately simulates the engineering site, realizes automation, overcomes the problems that vary from person to person and the workload is huge and cumbersome during manual simulation, and improves the work efficiency. Moreover, this technical solution can identify serious problems and risks in the system in advance, solve them early to avoid being lost to the project site, reduce the passive situation of fire fighting everywhere, save costs, and improve user satisfaction.

优选实施例二Preferred embodiment two

图4是根据本发明优选实施例二的工程现场应用的模拟方法的流程图,该方法可以包括如下步骤:Fig. 4 is the flow chart of the simulation method of engineering field application according to preferred embodiment 2 of the present invention, and this method may comprise the following steps:

步骤S402,自动统计备份现网基本情况。系统在工程应用的过程中,首先根据需要确定一个时间段,该时间段内的操作比较稳定比较具有代表性,例如,一周或一个月。系统自动统计出该时间段内现网规模即设备类型及数量、全网平均告警数量以及设备的平均性能数据等基本情况并备份。需要说明的是,具体统计的内容可根据不同的现网应用进行取舍。以承载网为例,一个典型的现网情况如下:网络规模(设备数量)3000端;全网平均告警数量大概是600条左右;每台设备每15分钟的性能条数大概是50条。Step S402, automatically counting and backing up the basic situation of the live network. In the process of engineering application of the system, first determine a time period according to the needs, and the operation in this time period is relatively stable and representative, for example, one week or one month. The system automatically counts and backs up the basic information such as the scale of the existing network during this period, that is, the type and quantity of equipment, the average number of alarms on the entire network, and the average performance data of equipment. It should be noted that the content of specific statistics can be selected according to different live network applications. Taking the bearer network as an example, a typical live network is as follows: the network scale (number of devices) is 3,000; the average number of alarms in the entire network is about 600; the number of performance alarms per 15 minutes for each device is about 50.

步骤S404,自动收集该时间段内的工程应用情况。即,将该时间段内系统被用户调用的每个函数及操作时间都自动写入一个文件。当时间段到达时,停止写入。例如,使用北向CORBA(公共对象请求代理结构,Common Object Request Broker Architecture)软件生成的调用函数文件如下所示,其中,每个函数都是有具体的参数输入(由于不同的应用场景其输入参数也不同,因此本文这里不进行具体说明):Step S404, automatically collect engineering application conditions within the time period. That is, each function and operation time of the system called by the user within the time period are automatically written into a file. When the time period is reached, stop writing. For example, the call function file generated by northbound CORBA (Common Object Request Broker Architecture) software is as follows, in which each function has specific parameter input (due to different application scenarios, the input parameters are also different, so this article will not describe in detail here):

2010.6.68:53:09getEmsInfo()//获取网管信息2010.6.68:53:09getEmsInfo()//Get network management information

2010.6.68:53:11getAllNodes()//获取所有网元信息2010.6.68:53:11getAllNodes()//Get all network element information

2010.6.68:53:12getoneNode()//获取单个网元信息2010.6.68:53:12getoneNode()//Get the information of a single network element

2010.6.68:53:17getLinks()//获取所有拓扑连接2010.6.68:53:17getLinks()//Get all topology connections

2010.6.68:53:21getBoards()//获取单板信息2010.6.68:53:21getBoards()//Get board information

2010.6.68:53:23getAllCC()//获取所有交叉连接2010.6.68:53:23getAllCC()//Get all cross connections

2010.6.68:53:31getcurEMSalarms()//获取所有当前告警2010.6.68:53:31getcurEMSalarms()//Get all current alarms

步骤S406,编写模拟工程应用的自动化脚本。即,根据步骤S404生成的文件,编写自动化脚本,本文以JAVA语言为例进行阐述。通常每个软件都会向外提供一些外部接口方法,供其他软件调用。例如,北向CORBA接口软件对外提供IDL(标准化的接口定义语言,Interface Definition Language),以供第三厂商的综合网管的对接调用。Step S406, writing an automation script for simulating engineering applications. That is, according to the file generated in step S404, an automation script is written, and this article takes JAVA language as an example for illustration. Usually each software will provide some external interface methods for other software to call. For example, the northbound CORBA interface software provides IDL (standardized interface definition language, Interface Definition Language) for the docking call of the integrated network management of the third manufacturer.

在具体实施过程中,编写自动化脚本的具体步骤可以为:首先,将被用户调用的每个函数都用系统对外提供的方法进行实现;然后,编写main函数,在main函数中,按步骤S404用户调用每个函数的顺序进行调用,两个函数之间的操作间隔可以用一些等待函数或输出函数替代;最后,生成模拟工程应用的自动化脚本,其完全和步骤S404生成的文件保持一致。In the specific implementation process, the specific steps of writing the automation script can be as follows: firstly, each function called by the user is realized by the method provided by the system; then, the main function is written, and in the main function, according to step S404 the user The sequence of calling each function is called, and the operation interval between two functions can be replaced by some waiting functions or output functions; finally, an automation script for simulating engineering applications is generated, which is completely consistent with the file generated in step S404.

下面以getEmsInfa函数(步骤S404中被调用的其他函数实现方法类似)和main函数进行举例说明:The getEmsInfa function (other functions called in step S404 are implemented in a similar way) and the main function are used as examples below:

public static void getEmsInfa()throws Exception{public static void getEmsInfa() throws Exception{

     System.out.println(″Get Emsinfo starting.......″);System.out.println("Get Emsinfo starting.......");

     EMS_THolder emsinfo=new EMS_THolder();EMS_THolder emsinfo = new EMS_THolder();

     try{try{

     emsMgr.getEMS(emsinfo);emsMgr.getEMS(emsinfo);

         System.out.println(″ems    info is:″+System.out.println(″ems info is:″+

emsinfo.value.nativeEMSName);emsinfo.value.nativeEMSName);

         System.out.println(″ems    info is:″+System.out.println(″ems info is:″+

emsinfo.value.userLabel);emsinfo.value.userLabel);

         }catch(Exception e)}catch(Exception e)

         {{

             System.out.println(″Error:″+e);System.out.println("Error:"+e);

          }}

          System.out.println(″getemsinfo is done.″);System.out.println("getemsinfo is done.");

    }}

//下面是使用main函数完整模拟A次工程应用的过程//The following is the process of completely simulating the application of A project using the main function

public static void main(String[]args)public static void main(String[]args)

{{

     for(int k=1;k<=A;k++)//A为模拟工程应用的次数for(int k=1; k<=A; k++)//A is the number of simulation engineering applications

     {{

             getEmsInfo();//获取网管信息      getEmsInfo();//Get network management information

             Thread.sleep(2000);//sleep 5sec`` Thread.sleep(2000);//sleep 5sec

             getAllNodes();//获取所有网元信息GetAllNodes();//Get all network element information

             Thread.sleep(1000);Thread. sleep(1000);

          getoneNode();//获取单个网元信息GetoneNode();//Get the information of a single network element

          Thread.sleep(5000);Thread. sleep(5000);

          getLinks();//获取所有拓扑连接GetLinks();//Get all topological connections

          Thread.sleep(4000);Thread. sleep(4000);

          getB oards();//获取单板信息GetBoards();//Get board information

          Thread.sleep(2000);Thread. sleep(2000);

          getAllCC();//获取所有交叉连接GetAllCC();//Get all cross connections

          Thread.sleep(8000);Thread. sleep(8000);

          getcurEMSalarms();//获取所有当前告警GetcurEMSalarms();//Get all current alarms

          System.out.println(″完整模拟一次工程应用″);System.out.println("Completely simulate an engineering application");

          Thread.sleep(60000);//sleep 5secThread.sleep(60000);//sleep 5sec

    }}

    System.out.println(″模拟工程应用结束″);System.out.println("Simulation Engineering Application End");

}}

其中,main函数中的变量A为模拟工程应用的次数,可以根据需要进行设置。Among them, the variable A in the main function is the number of simulation engineering applications, which can be set as required.

需要说明的是,该模拟工程应用的自动化脚本只需要编写一次,便可用于系统任一版本。当调用的函数发生变化时,只需要修改相应函数的脚本即可。It should be noted that the automation script for this simulation engineering application only needs to be written once, and it can be used for any version of the system. When the called function changes, only the script of the corresponding function needs to be modified.

步骤S408,搭建和现网等同的仿真在线环境。即,恢复步骤S402的备份数据,搭建和现网完全相同的网络环境,然后用设备仿真平台去仿真所有设备使其变成在线,产生同现网相等数量的告警及性能数据。例如,各设备供应商都有开发设备仿真平台,可用于模拟厂家的任何一种设备,并能动态产生告警性能数据等。该方法比较成熟,并已普遍使用,具体细节不再赘述。Step S408, building a simulated online environment equivalent to the live network. That is, restore the backup data in step S402, build a network environment exactly the same as the current network, and then use the device simulation platform to simulate all devices to make them online, and generate the same number of alarms and performance data as the current network. For example, each equipment supplier has a development equipment simulation platform, which can be used to simulate any kind of equipment of the manufacturer, and can dynamically generate alarm performance data, etc. This method is relatively mature and has been widely used, and the specific details will not be repeated here.

步骤S410,运行自动化脚本,真实模拟工程应用。例如,自动化脚本若是使用JAVA语言编写的,则首先需要保证电脑上已成功安装了JDK。其次,选择开发环境(也称为编译平台),比如,JAVA的编译平台可以是jcreater、jbuilder、eclipse等工具。本文以使用最为广泛且免费的eclipse开发平台为例,进行详细的阐述。Step S410, running the automation script to actually simulate the engineering application. For example, if the automation script is written in the JAVA language, it is first necessary to ensure that the JDK has been successfully installed on the computer. Secondly, choose a development environment (also called a compilation platform). For example, the JAVA compilation platform can be tools such as jcreater, jbuilder, and eclipse. This article takes the most widely used and free eclipse development platform as an example to elaborate in detail.

图5是根据本发明优选实施例二的运行自动化脚本模拟工程应用的示意图,如图5所示,首先,将北向CORBA软件对外提供的IDL文件在eclipse上进行编译,生成具体的.class类文件和.java源代码,这些文件提供了所有对外接口方法的具体实现。Fig. 5 is a schematic diagram of the application of the automation script simulation project according to the second preferred embodiment of the present invention. As shown in Fig. 5, first, the IDL file provided by the northbound CORBA software is compiled on eclipse to generate a specific .class class file And .java source code, these files provide the concrete implementation of all external interface methods.

其次,在eclipse上运行步骤S406编写的模拟工程应用的自动化脚本,该脚本中所编写的每个函数中的方法都涵盖在编译IDL生成的对外接口方法中。也就是说,北向接口CORBA软件可以识别出自动化脚本中编写的每一个函数,会对自动化脚本中调用的每个函数都进行响应。在eclipse上运行自动化脚本的过程,就相当于北向CORBA接口在工程上被用户操作的过程,达到了真实模拟工程现场应用的目的。Secondly, run the automation script of the simulation engineering application written in step S406 on the eclipse, and the method in each function written in the script is covered in the external interface method generated by compiling the IDL. That is to say, the northbound interface CORBA software can recognize every function written in the automation script and respond to every function called in the automation script. The process of running the automation script on eclipse is equivalent to the process of the northbound CORBA interface being operated by the user in the project, achieving the purpose of actually simulating the field application of the project.

需要说明的是,在自动化脚本中可以设置模拟的次数,可以在运行自动化脚本前根据需要设置好次数,这样就可以达到自动持续地模拟工程应用的目的。It should be noted that the number of simulations can be set in the automation script, and the number of times can be set as needed before running the automation script, so that the purpose of automatically and continuously simulating engineering applications can be achieved.

综上所述,本发明实施例中的自动模拟系统在工程应用的过程中,采用一些工具实时监测系统的功能及进程的异常情况、CPU内存资源占用的异常情况和线程阻塞等,在实验室自动准确地模拟工程现场应用,提前识别系统在工程应用中的重大问题和风险,及早发现和解决问题,避免问题流到工程现场,提高了系统版本的质量和用户满意度。并且这种编写自动化脚本的方法,避免了手工操作的繁琐和不准确,而且可以多版本复用,提高了工作效率。In summary, in the process of engineering application, the automatic simulation system in the embodiment of the present invention uses some tools to monitor the function of the system in real time and the abnormal situation of the process, the abnormal situation of CPU memory resource occupation and thread blocking, etc., in the laboratory Automatically and accurately simulate the engineering field application, identify major problems and risks of the system in engineering application in advance, detect and solve problems early, avoid problems from flowing to the engineering field, and improve the quality of the system version and user satisfaction. Moreover, this method of writing automated scripts avoids tedious and inaccurate manual operations, and can be reused in multiple versions, improving work efficiency.

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

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

Claims (10)

1.一种工程现场应用的模拟方法,其特征在于,包括以下步骤:1. A simulation method for engineering field application, characterized in that, comprising the following steps: 收集并备份现网规模标识信息,并记录预定时间段内的工程应用情况,其中,所述工程应用情况包括被调用的每个功能和调用该功能的时间;Collecting and backing up the current network scale identification information, and recording the engineering application status within a predetermined period of time, wherein the engineering application status includes each function being called and the time when the function is called; 根据所述工程应用情况编写模拟所述工程应用情况的自动化脚本;Writing an automated script that simulates the engineering application situation according to the engineering application situation; 根据备份的所述现网规模标识信息搭建与所述工程应用情况等同的仿真环境,并运行所述自动化脚本。Build a simulation environment equivalent to the engineering application situation according to the backed-up existing network scale identification information, and run the automation script. 2.根据权利要求1所述的方法,其特征在于,所述现网规模标识信息包括至少以下之一:设备类型及数量、全网平均告警数据、设备的平均性能数据。2. The method according to claim 1, wherein the existing network scale identification information includes at least one of the following: equipment type and quantity, average alarm data of the entire network, and average performance data of equipment. 3.根据权利要求1所述的方法,其特征在于,记录所述预定时间段内的所述工程应用情况包括:3. The method according to claim 1, wherein recording the engineering application situation within the predetermined time period comprises: 将所述预定时间段内北向接口软件被用户调用的每个函数和操作时间写入到一个文件中。Write each function and operation time of the northbound interface software called by the user within the predetermined time period into a file. 4.根据权利要求1所述的方法,其特征在于,根据备份的所述现网规模标识信息搭建与所述工程应用情况等同的仿真环境包括:4. The method according to claim 1, characterized in that, setting up a simulation environment equivalent to the engineering application situation according to the backed-up existing network scale identification information comprises: 根据备份的所述现网规模标识信息使用设备仿真平台仿真现网设备在线,产生同现网相等数量的告警及性能数据。According to the backed-up live network scale identification information, the device emulation platform is used to simulate the online devices of the live network, and the number of alarms and performance data equal to that of the live network is generated. 5.根据权利要求1所述的方法,其特征在于,运行所述自动化脚本之前,还包括:5. The method according to claim 1, further comprising: 在Eclipse上编译北向接口软件对外提供的IDL文件。Compile the IDL file provided by the northbound interface software on Eclipse. 6.根据权利要求1至5中任一项所述的方法,其特征在于,所述自动化脚本中包括模拟所述工程应用情况的次数。6. The method according to any one of claims 1 to 5, wherein the automation script includes the number of times of simulating the engineering application situation. 7.一种工程现场应用的模拟装置,其特征在于,包括:7. A simulation device for engineering field application, characterized in that it comprises: 采集模块,用于收集并备份现网规模标识信息,并记录预定时间段内的工程应用情况,其中,所述工程应用情况包括被调用的每个功能和调用该功能的时间;The acquisition module is used to collect and back up the scale identification information of the existing network, and record the engineering application situation within a predetermined period of time, wherein the engineering application situation includes each function called and the time when the function is called; 编写自动化脚本模块,用于根据所述工程应用情况编写模拟所述工程应用情况的自动化脚本;Writing an automation script module for writing an automation script simulating the engineering application situation according to the engineering application situation; 搭建仿真环境模块,用于根据备份的所述现网规模标识信息搭建与所述工程应用情况等同的仿真环境;以及Build a simulation environment module, which is used to build a simulation environment equivalent to the engineering application situation according to the backed-up existing network scale identification information; and 执行模块,运行所述编写自动化脚本模块编写的所述自动化脚本。An execution module, running the automation script written by the automation script writing module. 8.根据权利要求7所述的装置,其特征在于,所述采集模块还用于将所述预定时间段内北向接口软件被用户调用的每个函数和操作时间写入到一个文件中。8. The device according to claim 7, wherein the collection module is further configured to write each function and operation time of the northbound interface software called by the user within the predetermined time period into a file. 9.根据权利要求7或8所述的装置,其特征在于,所述搭建仿真环境模块还用于根据备份的所述现网规模标识信息使用设备仿真平台仿真现网设备在线,产生同现网相等数量的告警及性能数据。9. The device according to claim 7 or 8, wherein the building simulation environment module is also used to use the equipment simulation platform to simulate the online equipment of the existing network according to the backed-up existing network scale identification information to generate a co-existing network Equal number of alerts and performance data. 10.根据权利要求7所述的装置,其特征在于,还包括:10. The device according to claim 7, further comprising: 编译模块,用于在Eclipse上编译北向接口软件对外提供的IDL文件。The compilation module is used to compile the IDL files provided by the northbound interface software on Eclipse.
CN2010105703645A 2010-12-02 2010-12-02 Engineering field application simulating method and device Pending CN102486805A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105703645A CN102486805A (en) 2010-12-02 2010-12-02 Engineering field application simulating method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105703645A CN102486805A (en) 2010-12-02 2010-12-02 Engineering field application simulating method and device

Publications (1)

Publication Number Publication Date
CN102486805A true CN102486805A (en) 2012-06-06

Family

ID=46152296

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105703645A Pending CN102486805A (en) 2010-12-02 2010-12-02 Engineering field application simulating method and device

Country Status (1)

Country Link
CN (1) CN102486805A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442249A (en) * 2013-09-09 2013-12-11 国家电网公司 Video conferencing system simulation method and platform
CN104598295A (en) * 2015-01-12 2015-05-06 北京中交兴路车联网科技有限公司 Generation system and method for vehicle running simulation script
CN108075951A (en) * 2017-12-26 2018-05-25 珠海金山网络游戏科技有限公司 A kind of server stress test method and device based on player's distribution

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987857A (en) * 2006-12-18 2007-06-27 于慧 Method for realizing digital city system using virtual artificial comprehensive image and text information interaction
CN101526915A (en) * 2009-04-28 2009-09-09 中国人民解放军国防科学技术大学 Method for supporting parallel input and output (I/O) of trace files in parallel simulation
CN101808084A (en) * 2010-02-12 2010-08-18 哈尔滨工业大学 Method for imitating, simulating and controlling large-scale network security events

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987857A (en) * 2006-12-18 2007-06-27 于慧 Method for realizing digital city system using virtual artificial comprehensive image and text information interaction
CN101526915A (en) * 2009-04-28 2009-09-09 中国人民解放军国防科学技术大学 Method for supporting parallel input and output (I/O) of trace files in parallel simulation
CN101808084A (en) * 2010-02-12 2010-08-18 哈尔滨工业大学 Method for imitating, simulating and controlling large-scale network security events

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103442249A (en) * 2013-09-09 2013-12-11 国家电网公司 Video conferencing system simulation method and platform
CN103442249B (en) * 2013-09-09 2015-09-23 国家电网公司 Video conferencing system emulation mode and platform
CN104598295A (en) * 2015-01-12 2015-05-06 北京中交兴路车联网科技有限公司 Generation system and method for vehicle running simulation script
CN108075951A (en) * 2017-12-26 2018-05-25 珠海金山网络游戏科技有限公司 A kind of server stress test method and device based on player's distribution
CN108075951B (en) * 2017-12-26 2020-10-16 珠海金山网络游戏科技有限公司 Server stress testing method and device based on player distribution

Similar Documents

Publication Publication Date Title
KR20110134582A (en) Simulation-based Interface Testing Automation System for Robot Software Components and Its Method
CN107506303A (en) Method, apparatus and system for automatic test
CN102799519A (en) Automatic test method for cluster file system
CN104035869A (en) Application evaluation method, terminal, and server
CN110535945A (en) Test method, device, equipment and storage medium for storage cluster alarm function
CN114143235B (en) NFV automatic testing method, device, equipment and storage medium
CN108989153A (en) A kind of performance test methods and device
CN116405412A (en) Method and system for verifying validity of server cluster
CN119149422A (en) Micro-service chaos test method and device based on Istio and link tracking
CN113282517A (en) Quality evaluation system of intelligent contract code
CN102486805A (en) Engineering field application simulating method and device
CN107122307B (en) An IoT Execution System
CN112069202A (en) SQL performance analysis method, system, device and medium based on tracking technology
CN113190453B (en) User interface testing method, device, server and medium
CN120849251A (en) Code running time determination method based on CORTEX M4 chip and related equipment
CN109656804A (en) Automated testing method, equipment, storage medium and device
Rashmi et al. Synthetic to real-world: Insights on microservices-based application benchmarks
CN111208993B (en) Flow data analysis processing system
US20150355939A1 (en) Inversion of control for executable extensions in a run-time environment
CN116931965B (en) Integrated stream processing method, device, electronic equipment and storage medium
CN111258893A (en) Mobile terminal application automatic testing device for randomly assembling transaction path
CN117573550A (en) Test method and device for automatically detecting multi-tenant system string library
CN111679924B (en) Reliability simulation method and device for componentized software system and electronic equipment
US7831879B2 (en) Generating test coverage bin based on simulation result
Zhang Research on software development and test environment automation based on android platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20120606