WO2015117469A1 - Method, apparatus and system for learning device capability - Google Patents

Method, apparatus and system for learning device capability Download PDF

Info

Publication number
WO2015117469A1
WO2015117469A1 PCT/CN2014/092062 CN2014092062W WO2015117469A1 WO 2015117469 A1 WO2015117469 A1 WO 2015117469A1 CN 2014092062 W CN2014092062 W CN 2014092062W WO 2015117469 A1 WO2015117469 A1 WO 2015117469A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
capability
learner
behavior
module
Prior art date
Application number
PCT/CN2014/092062
Other languages
French (fr)
Chinese (zh)
Inventor
吴水生
齐进
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Priority to MYPI2017700512A priority Critical patent/MY192748A/en
Publication of WO2015117469A1 publication Critical patent/WO2015117469A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • H04L67/303Terminal profiles

Definitions

  • the present invention relates to a device capability simulation technology in the field of communications, and in particular, to a device capability learning method, apparatus, and system.
  • the telecom network management system is responsible for managing various types of equipment.
  • the network management and equipment need 24 hours of uninterrupted data exchange and interactive response. These exchanges and interactions will put pressure on the network management system. Therefore, in order to ensure system stability and performance, it is necessary to stress test the network management system in advance to cope with the pressure situation on site.
  • the types of devices are complex. In many cases, the network management systems and devices used by operators are not affiliated with the same vendor. This may result in network management systems and devices from different vendors needing to be connected to the network.
  • the docking test is carried out, and the test can be applied before it can be formally applied.
  • the device simulator is used to simulate the real device, which is used to simulate the above test scenario, or simulate specific device behavior, and test the fault tolerance and compatibility of the network management system to improve the test coverage. purpose.
  • the existing simulator In order to simulate different data or different behaviors, the existing simulator generally requires a large amount of manual configuration work, and finally the simulation of a certain type of device can be completed.
  • This method is simple and easy to understand, but it has the following limitations: In the field environment, the number of devices is large, often there are hundreds of thousands. If you want to completely simulate the on-site environment, it takes a lot of manpower and resources, and can not The change of the device automatically adapts. Therefore, in reality, only some typical devices can be selected as test objects, and the field environment cannot be completely simulated.
  • embodiments of the present invention provide a method, an apparatus, and a system for learning device capabilities.
  • An embodiment of the present invention provides a method for learning device capabilities, where the method includes:
  • the parameter model data and the behavior data of the device are separately acquired; while the two types of data are acquired, the abnormal data that occurs when the two types of data are acquired are recorded; The parametric model data, the behavior data, and the abnormal data are persisted.
  • the parameter model data includes one or more of the following: a parameter model, a parameter value, and a parameter type.
  • the behavior data includes one or two of the following: the behavior data of the network management device actively triggering the device, and the behavior data triggered by the device.
  • the method further includes: the capability learner pre-storing the relevant standard specifications followed by the device to be learned, and/or the standard protocol, and/or the agreement of the private protocol.
  • the obtaining the parameter model data and the behavior data of the device includes:
  • An embodiment of the present invention provides a method for learning device capabilities, where the method includes:
  • the capability learner After the capability learner establishes the connection with the device, the parameter model data and the behavior data of the device are respectively acquired; the capability learner records the abnormal data that occurs when the two types of data are acquired while acquiring the two types of data; The learner persists the acquired parameter model data, behavior data, and the abnormal data.
  • the method further includes:
  • the simulator When performing device capability simulation, the simulator loads the persistent data in the capability learner and performs simulation of the device.
  • An embodiment of the present invention provides a learning device for a device, where the learning device is the capability learner, and includes: an obtaining module, a recording module, and a persistence module;
  • the acquiring module is configured to acquire parameter model data and behavior data of the device after the capability learner establishes a connection with the device;
  • the recording module is configured to record, when the acquiring module acquires the two types of data, abnormal data that occurs when the two types of data are acquired;
  • the persistence module is configured to persist the parameter model data and behavior data acquired by the obtaining module and the abnormal data recorded by the recording module.
  • the capability learner further includes: a storage module configured to pre-store the relevant standard specifications, and/or standard protocols, and/or proprietary protocols of the device to be learned.
  • Embodiments of the present invention provide a device capability learning system, where the system includes the capability learner described above.
  • the system further includes: a simulator, including: a loading module and an analog module; wherein
  • the loading module is configured to load persistent data in the capability learner when performing device capability simulation
  • the simulation module is configured to perform simulation of the device according to the persistent data loaded by the loading module.
  • the device learning method, device and system provided by the embodiment of the present invention, after the capability learner establishes a connection with the device, respectively acquires parameter model data and behavior data of the device; and the capability learner acquires the two types of data simultaneously Obtaining abnormal data that occurs when the two types of data are acquired; the capability learner persists the acquired parameter model data, behavior data, and the abnormal data.
  • the embodiment of the invention can learn the parameter set and behavior of different types of devices, and
  • the simulator provides data sources without human intervention, without the need to manually configure various parameters, greatly reducing the configuration workload of the simulator, especially in setting up specific test scenarios, restoring the field environment and large-scale stress test scenarios. effective.
  • FIG. 1 is a schematic flowchart of an implementation process of a device capability learning method according to an embodiment of the present invention
  • FIG. 2 is a schematic flowchart of a method for acquiring parameter model data of a device according to an embodiment of the present invention
  • FIG. 3 is a schematic flowchart of a method for acquiring behavior data of a device according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a device for learning a device capability according to an embodiment of the present invention.
  • FIG. 5 is a schematic structural diagram of a learning system for device capabilities according to an embodiment of the present invention.
  • the capability learner after the capability learner establishes a connection with the device, the parameter model data and the behavior data of the device are respectively acquired; and the capability learner records the two types of data while acquiring the two types of data.
  • the abnormal data that appears; the capability learner persists the obtained parameter model data, the behavior data, and the abnormal data.
  • the capability learner is a device corresponding to the device capability learning method in the embodiment of the present invention.
  • the device capability is mainly represented by two types of data: parameter model data and behavior data.
  • FIG. 1 is a schematic flowchart of an implementation process of a device capability learning method according to an embodiment of the present invention, such as As shown in Figure 1, it includes:
  • Step 100 After establishing a connection between the capability learner and the device, acquiring parameter model data and behavior data of the device respectively.
  • the capability learner is connected to the device to be learned, and after the interaction channel is established, the capability of the learning device is ready to start learning. After the capability learner receives the request of the device, the learning process starts, and of course, the capability learner can also take the initiative. Initiate a learning process to the device.
  • the capability learner first obtains the parameter model data of the device, for example, recursively traverses the parameter tree of the device from the root node to obtain parameter model data of the device; the parameter model data may be: parameter model, parameter value, and parameter type. One or more.
  • the capability learner sequentially tests the data when the device performs the behavior according to the behavior list of the device, and records the corresponding data, and the content of the data includes not limited to the interactive message, the device processing delay, and the device abnormal performance. Wait.
  • the list of behaviors is located in the relevant standard specification, and/or standard protocol, and/or proprietary protocol.
  • the order of the parameter model data and the acquisition behavior data of the acquiring device is not strictly limited.
  • the reason for acquiring the parameter model data of the device in the device capability learning process is: since the various behaviors and data of the device are determined by the parameter model of the device and the corresponding data, the parameter model of the device is the basis. .
  • devices generally follow the conventions of standard specifications, protocols, or proprietary protocols. With these protocols, the capability learner can attempt to traverse the parameter model of the device and obtain information such as parameter models, parameter values, and parameter types during the traversal process.
  • the reason for obtaining the behavior data of the device during the device capability learning process is that the device behavior to be processed in the network management system management device includes one or two of the following: one is the behavior of the network management device actively triggering the device, and the other is the device. Behavior that is triggered under certain conditions; among them,
  • This scenario can trigger the corresponding behavior by simulating the network management packet, so as to record the entire process of interaction between the device and the network management system;
  • Behavior triggered by the device This scenario is triggered by setting device parameters or manually operating the device.
  • the complete message exchanged between the device and the network management device is recorded, and the behavior within the protocol specification and the behavior specific to the device are analyzed.
  • the unique behavior of the device includes the event number of the Inform, the delay between each step in the interaction process, and the different responses of the device under various abnormal conditions.
  • Step 102 The capability learner records the abnormal data that occurs when the two types of data are acquired while acquiring the two types of data.
  • the capability learner when the capability learner acquires the parameter model data and the behavior data, an exception occurs, and the capability learner acquires various abnormalities occurring in the two types of data acquisition processes, and records the abnormal data.
  • the abnormal data may be: a parameter value of the path obtained for a parameter path that does not exist; or a parameter value that does not meet the parameter type is sent, for example, the parameter type is an integer, but one is issued. String, can also be other exceptions, etc.
  • Step 104 The capability learner persists the acquired parameter model data, behavior data, and the abnormal data.
  • the capability learner stores the acquired parameter model data, behavior data, and the abnormal data as a required data type, for example, the data may be stored in an Extensible Markup Language (XML) file.
  • XML Extensible Markup Language
  • data persistence In the implementation of data persistence. Of course, the way to persist is not limited, the most common way is to store as a file.
  • the persistence of the data that is, the storage of data, such as objects in memory, to a permanently stored storage device, such as a disk.
  • the main application of persistence is to store in-memory objects in a relational database, of course, in disk files, XML data files, and so on.
  • the learning method described in steps 100-104 of the embodiment of the present invention is re-executed.
  • the capability learner understands that the device to be learned complies with Relevant standard specifications, and/or standard protocols, and/or proprietary protocols, that is, pre-stored relevant standard specifications, and/or standard protocols, and/or in the capability learner. Or the agreement of a proprietary agreement.
  • the parameter set and behavior of different types of devices can be learned, and the data source is provided for the simulator, and no human intervention is required, and various parameters are not required to be manually configured, thereby greatly reducing the configuration workload of the simulator, especially It is extremely effective in setting up specific test scenarios, restoring the on-site environment, and large-scale stress test scenarios.
  • the embodiment of the present invention can also update the device capability at any time, keep the data synchronized with the device, and finally achieve the purpose of restoring the real environment of the site as much as possible.
  • FIG. 2 is a schematic flowchart of a method for acquiring parameter model data of a device according to an embodiment of the present invention, as shown in FIG. 2, including:
  • Step 200 The device is connected to the capability learner, and the capability learner is ready to start traversing the parameter model of the device;
  • Step 202 After starting the learning process, the capability learner determines whether the traversal is completed, if not, executing step 204; otherwise, executing step 216;
  • Step 204 The capability learner determines whether the device supports traversing the parameter tree. If yes, step 206 is performed; otherwise, step 216 is performed;
  • Step 206 Starting from the root node, the capability learner recursively traverses the parameter tree of the device, and then proceeds to step 208;
  • the current node if the current node has a child node, after obtaining the parameter information of the node, the child node is added to the traversal queue and traversed in sequence, and the parameter information includes: a parameter value of the node and a parameter attribute;
  • the current node is a leaf node, and acquires and records data such as node parameter values and parameter attributes.
  • one parameter tree corresponds to one parameter model.
  • traversal of the parameter tree may be performed using other traversal algorithms than the recursive traversal algorithm.
  • Step 208 Determine whether the capability learner has an abnormality in the process of acquiring the parameter model data. If an exception occurs, step 210 is performed; otherwise, step 212 is performed;
  • Step 210 If the abnormality is a critical abnormality, affecting the entire learning process, step 216 is performed to end the learning process; otherwise, step 212 is performed;
  • the critical exception mainly refers to an unexpected exception, and the abnormality of the abnormal result packet cannot be obtained.
  • Step 212 The capability learner analyzes the parameter data of the acquired device, filters out the invalid data, converts the acquired data into a data model, for example, converts to an XML format, and caches it in the memory, and then performs step 214;
  • Step 214 The data in the cache is stored in the file, and then step 216 is performed;
  • Step 216 The parameter model data acquisition process of the device ends.
  • FIG. 3 is a schematic flowchart of a method for acquiring behavior data of a device according to an embodiment of the present invention, as shown in FIG. 3, including:
  • Step 300 The device is connected to the capability learner, and the capability learner is ready to start traversing the device's behavior list.
  • the list of behaviors of the device can be obtained from the relevant standard specifications, and/or standard protocols, and/or proprietary protocols.
  • Step 302 After starting the learning process, the capability learner determines whether the traversal is completed, that is, whether the content in the behavior list is tested. If not, step 304 is performed; otherwise, step 310 is performed;
  • Step 304 The capability learner attempts to issue a command to the device, and then step 306 is performed;
  • the triggering of the learning behavior is generally triggered by the ability learner.
  • the device After receiving the behavior command issued by the capability learner, the device parses the command and executes the command, and returns the result of the command execution to the capability learner.
  • Step 306 Determine whether the device supports testing according to the response of the device to the behavior command. Behavior, if supported, proceed to step 308, otherwise proceed to step 302;
  • Step 308 Analyze the response result of the device, collect the relevant behavior data and cache, and then perform step 302;
  • Step 310 After the content in the device behavior list is tested once, the capability learner converts the cached data into a data model, such as: converted into an XML format, and stored in a file, and then step 312 is performed;
  • Step 312 The behavior data acquisition process of the device ends.
  • the embodiment of the invention further provides a method for learning device capabilities, the method comprising:
  • the parameter model data and the behavior data of the device are respectively acquired; while the two types of data are acquired, the abnormal data that occurs when the two types of data are acquired are recorded; The parameter model data, behavior data, and the abnormal data are persisted.
  • the method further includes:
  • the capability learner pre-stores the relevant standard specifications followed by the device to be learned, and/or the standard protocol, and/or the agreement of the proprietary protocol.
  • the method further includes:
  • the simulator can be used to load the persistent data in the capability learner to simulate the device.
  • the persistent data of the corresponding different types of devices in the capability learner can be loaded as needed to simulate various types of devices.
  • the embodiment of the present invention further provides a learning device for device capability.
  • the learning device is the capability learner described above.
  • the capability learner 40 includes: an obtaining module 400 and a recording module 402. And a persistence module 404; wherein
  • the obtaining module 400 is configured to acquire a connection between the capability learner and the device, respectively Describe the parameter model data and behavior data of the device;
  • the capability learner is connected to the device to be learned, and after the interaction channel is established, the capability of the learning device is ready to start learning. After the capability learner receives the request of the device, the learning process starts, and of course, the capability learner can also take the initiative. Initiate a learning process to the device.
  • the obtaining module 400 in the capability learner first acquires parameter model data of the device, for example, recursively traversing the parameter tree of the device from the root node to obtain parameter model data of the device; the parameter model data may be: a parameter model and a parameter. One or more of the values and parameter types.
  • the obtaining module 400 sequentially tests the data when the device performs the behavior according to the behavior list of the device, and records the corresponding data, where the content of the data includes not limited to the interactive message, the device processing delay, and the device. Abnormal performance, etc.
  • the list of behaviors is located in the relevant standard specification, and/or standard protocol, and/or proprietary protocol.
  • the obtaining module 400 acquires the parameter model data of the device and the sequence of acquiring the behavior data is not strictly limited.
  • the recording module 402 is configured to record, when the acquiring module 400 acquires the two types of data, abnormal data that occurs when the two types of data are acquired;
  • the acquiring module 400 in the capability learner acquires the parameter model data and the behavior data
  • an abnormality occurs
  • the recording module 402 in the capability learner acquires the two types of data acquisition.
  • Various exceptions that occur during the process and record these anomalies are possible.
  • the persistence module 404 is configured to persist the parameter model data and behavior data acquired by the obtaining module 400 and the abnormal data recorded by the recording module 402.
  • the persistence module 404 in the capability learner stores the acquired parameter model data, behavior data, and the abnormal data as a required data type, for example, the data may be stored in Data persistence in Extensible Markup Language (XML) files.
  • XML Extensible Markup Language
  • the way to persist is not limited, the most common way is to store as a file.
  • the capability learner 40 further includes a storage module 406 configured to pre-store the relevant standard specifications followed by the device to be learned, and/or the standard protocol, and/or the agreement of the proprietary protocol.
  • the embodiment of the present invention further provides a learning system for device capabilities. As shown in FIG. 5, the system includes the capability learner 40 described above.
  • the system further includes: a simulator 42 comprising: a loading module 420 and an analog module 422;
  • the loading module 420 is configured to load persistent data in the capability learner when performing device capability simulation
  • the simulation module 422 is configured to perform simulation of the device according to the persistent data loaded by the loading module 420.
  • the system re-executes the learning method described in steps 100-104 of the embodiment of the present invention.
  • the parameter set and behavior of different types of devices can be learned, and the data source is provided for the simulator, and no human intervention is required, and various parameters are not required to be manually configured, thereby greatly reducing the configuration workload of the simulator, especially It is extremely effective in setting up specific test scenarios, restoring the on-site environment, and large-scale stress test scenarios.
  • the embodiment of the present invention can also update the device capability at any time, keep the data synchronized with the device, and finally achieve the purpose of restoring the real environment of the site as much as possible.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
  • the present invention is directed to a method, apparatus (system), and computer program in accordance with an embodiment of the present invention
  • the flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG.
  • These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Electrically Operated Instructional Devices (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Disclosed is a method for learning a device capability. The method comprises: after establishing a connection with a device, respectively acquiring, by a capability learner, parameter model data and behaviour data of the device; while acquiring the two categories of data, recording abnormal data generated when acquiring the two categories of data; and conducting persistence on the acquired parameter model data and behaviour data and the abnormal data. Also disclosed at the same time are a system and apparatus for achieving the method.

Description

一种设备能力的学习方法、装置和系统Method, device and system for learning device capability 技术领域Technical field
本发明涉及通信领域中的设备能力模拟技术,尤其涉及一种设备能力的学习方法、装置和系统。The present invention relates to a device capability simulation technology in the field of communications, and in particular, to a device capability learning method, apparatus, and system.
背景技术Background technique
电信网管系统负责管理各类设备,网管与设备之间需要二十四小时不间断的进行数据交换、交互响应等操作。这些交换、交互都会对网管系统产生压力,因此,为了保证系统稳定性与性能,需要提前对网管系统进行压力测试,以应对现场的压力情况。此外,在现网环境中,设备种类纷繁复杂,很多情况下,运营商所用的网管系统与设备并不隶属于同一厂商,这就可能会导致不同厂商的网管系统与设备之间需要在入网之前进行对接测试,测试通过后才能正式应用。The telecom network management system is responsible for managing various types of equipment. The network management and equipment need 24 hours of uninterrupted data exchange and interactive response. These exchanges and interactions will put pressure on the network management system. Therefore, in order to ensure system stability and performance, it is necessary to stress test the network management system in advance to cope with the pressure situation on site. In addition, in the current network environment, the types of devices are complex. In many cases, the network management systems and devices used by operators are not affiliated with the same vendor. This may result in network management systems and devices from different vendors needing to be connected to the network. The docking test is carried out, and the test can be applied before it can be formally applied.
对于上述两种网管系统的测试场景,都需要大量的设备来支撑测试环境的搭建工作。但是,一般情况下,实验室环境基本不可能有足够多的真实设备。因此,为了达到测试目的,很多时候会通过设置设备模拟器来模拟真实设备,用于模拟上述测试场景,或模拟特定的设备行为,测试网管系统的容错、兼容能力,以达到提高测试覆盖率的目的。For the test scenarios of the above two network management systems, a large number of devices are required to support the construction of the test environment. However, in general, it is almost impossible for a laboratory environment to have enough real equipment. Therefore, in order to achieve the test purpose, many times, the device simulator is used to simulate the real device, which is used to simulate the above test scenario, or simulate specific device behavior, and test the fault tolerance and compatibility of the network management system to improve the test coverage. purpose.
现有的所述模拟器为了模拟不同的数据或者不同的行为,一般都需要大量的手工配置工作,最终才能完成对某个类型设备的模拟。这种方法简单明了,易于理解,但是存在以下局限性:在现场环境中,设备数量较大,往往有成百上千种,如果要完全模拟现场环境,需要耗费大量的人力物力,且不能随着设备的改变自动适应。因此,现实中只能选取部分典型设备作为测试对象,不能完全模拟现场环境。 In order to simulate different data or different behaviors, the existing simulator generally requires a large amount of manual configuration work, and finally the simulation of a certain type of device can be completed. This method is simple and easy to understand, but it has the following limitations: In the field environment, the number of devices is large, often there are hundreds of thousands. If you want to completely simulate the on-site environment, it takes a lot of manpower and resources, and can not The change of the device automatically adapts. Therefore, in reality, only some typical devices can be selected as test objects, and the field environment cannot be completely simulated.
发明内容Summary of the invention
为解决现有存在的技术问题,本发明实施例提供一种设备能力的学习方法、装置和系统。In order to solve the existing technical problems, embodiments of the present invention provide a method, an apparatus, and a system for learning device capabilities.
本发明实施例提供一种设备能力的学习方法,该方法包括:An embodiment of the present invention provides a method for learning device capabilities, where the method includes:
能力学习器与设备建立连接后,分别获取所述设备的参数模型数据和行为数据;在获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;将获取到的所述参数模型数据、行为数据和所述异常数据进行持久化。After the capability learner establishes a connection with the device, the parameter model data and the behavior data of the device are separately acquired; while the two types of data are acquired, the abnormal data that occurs when the two types of data are acquired are recorded; The parametric model data, the behavior data, and the abnormal data are persisted.
上述方案中,所述参数模型数据包括以下一种或多种:参数模型、参数值和参数类型。In the above solution, the parameter model data includes one or more of the following: a parameter model, a parameter value, and a parameter type.
上述方案中,所述行为数据包括以下一种或两种:网管主动触发设备的行为数据,设备触发的行为数据。In the above solution, the behavior data includes one or two of the following: the behavior data of the network management device actively triggering the device, and the behavior data triggered by the device.
上述方案中,该方法还包括:所述能力学习器预先存储待学习设备所遵循的相关标准规范、和/或标准协议、和/或私有协议的约定。In the above solution, the method further includes: the capability learner pre-storing the relevant standard specifications followed by the device to be learned, and/or the standard protocol, and/or the agreement of the private protocol.
上述方案中,所述获取所述设备的参数模型数据和行为数据,包括:In the above solution, the obtaining the parameter model data and the behavior data of the device includes:
从根节点开始递归遍历设备的参数树,得到设备的参数模型数据;按照所述设备的行为列表依次测试设备执行该行为时的数据,并记录相应数据;其中,所述行为列表位于所述相关标准规范、和/或标准协议、和/或私有协议中。Recursively traversing the parameter tree of the device from the root node to obtain parameter model data of the device; testing the data when the device performs the behavior according to the behavior list of the device, and recording corresponding data; wherein the behavior list is located in the correlation Standard specifications, and/or standard protocols, and/or proprietary protocols.
本发明实施例提供一种设备能力的学习方法,该方法包括:An embodiment of the present invention provides a method for learning device capabilities, where the method includes:
能力学习器建立与设备的连接后,分别获取所述设备的参数模型数据和行为数据;能力学习器在获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;能力学习器将获取到的所述参数模型数据、行为数据和所述异常数据进行持久化。After the capability learner establishes the connection with the device, the parameter model data and the behavior data of the device are respectively acquired; the capability learner records the abnormal data that occurs when the two types of data are acquired while acquiring the two types of data; The learner persists the acquired parameter model data, behavior data, and the abnormal data.
上述方案中,该方法还包括: In the above solution, the method further includes:
进行设备能力模拟时,模拟器加载所述能力学习器中的持久化数据,进行设备的模拟。When performing device capability simulation, the simulator loads the persistent data in the capability learner and performs simulation of the device.
本发明实施例提供一种设备能力的学习装置,所述学习装置为上文所述的能力学习器,包括:获取模块、记录模块和持久化模块;其中,An embodiment of the present invention provides a learning device for a device, where the learning device is the capability learner, and includes: an obtaining module, a recording module, and a persistence module;
所述获取模块,配置为能力学习器与设备建立连接后,分别获取所述设备的参数模型数据和行为数据;The acquiring module is configured to acquire parameter model data and behavior data of the device after the capability learner establishes a connection with the device;
所述记录模块,配置为所述获取模块获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;The recording module is configured to record, when the acquiring module acquires the two types of data, abnormal data that occurs when the two types of data are acquired;
所述持久化模块,配置为将所述获取模块获取到的所述参数模型数据和行为数据,以及所述记录模块记录的所述异常数据进行持久化。The persistence module is configured to persist the parameter model data and behavior data acquired by the obtaining module and the abnormal data recorded by the recording module.
上述方案中,所述能力学习器还包括:存储模块,配置为预先存储待学习设备所遵循的相关标准规范、和/或标准协议、和/或私有协议的约定。In the above solution, the capability learner further includes: a storage module configured to pre-store the relevant standard specifications, and/or standard protocols, and/or proprietary protocols of the device to be learned.
本发明实施例提供一种设备能力的学习系统,所述系统包括上文所述的能力学习器。Embodiments of the present invention provide a device capability learning system, where the system includes the capability learner described above.
上述方案中,该系统还包括:模拟器,包括:加载模块和模拟模块;其中,In the above solution, the system further includes: a simulator, including: a loading module and an analog module; wherein
所述加载模块,配置为进行设备能力模拟时,加载所述能力学习器中的持久化数据;The loading module is configured to load persistent data in the capability learner when performing device capability simulation;
所述模拟模块,配置为根据所述加载模块加载的持久化数据进行设备的模拟。The simulation module is configured to perform simulation of the device according to the persistent data loaded by the loading module.
本发明实施例提供的设备能力的学习方法、装置和系统,能力学习器与设备建立连接后,分别获取所述设备的参数模型数据和行为数据;能力学习器在获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;能力学习器将获取到的所述参数模型数据、行为数据和所述异常数据进行持久化。本发明实施例可以学习不同型号设备的参数集、行为,为 模拟器提供数据来源,且不需要人为干预,无需手工配置各类参数,极大的减少了模拟器的配置工作量,特别是在搭建特定测试场景、还原现场环境及大规模压力测试场景中极为有效。The device learning method, device and system provided by the embodiment of the present invention, after the capability learner establishes a connection with the device, respectively acquires parameter model data and behavior data of the device; and the capability learner acquires the two types of data simultaneously Obtaining abnormal data that occurs when the two types of data are acquired; the capability learner persists the acquired parameter model data, behavior data, and the abnormal data. The embodiment of the invention can learn the parameter set and behavior of different types of devices, and The simulator provides data sources without human intervention, without the need to manually configure various parameters, greatly reducing the configuration workload of the simulator, especially in setting up specific test scenarios, restoring the field environment and large-scale stress test scenarios. effective.
附图说明DRAWINGS
在附图(其不一定是按比例绘制的)中,相似的附图标记可在不同的视图中描述相似的部件。具有不同字母后缀的相似附图标记可表示相似部件的不同示例。附图以示例而非限制的方式大体示出了本文中所讨论的各个实施例。In the drawings, which are not necessarily to scale, the Like reference numerals with different letter suffixes may indicate different examples of similar components. The drawings generally illustrate the various embodiments discussed herein by way of example and not limitation.
图1为本发明实施例所述设备能力的学习方法的实现流程示意图;1 is a schematic flowchart of an implementation process of a device capability learning method according to an embodiment of the present invention;
图2为本发明实施例所述设备的参数模型数据获取方法流程示意图;2 is a schematic flowchart of a method for acquiring parameter model data of a device according to an embodiment of the present invention;
图3为本发明实施例所述设备的行为数据获取方法流程示意图;3 is a schematic flowchart of a method for acquiring behavior data of a device according to an embodiment of the present invention;
图4为本发明实施例所述设备能力的学习装置的结构示意图;4 is a schematic structural diagram of a device for learning a device capability according to an embodiment of the present invention;
图5为本发明实施例所述设备能力的学习系统的结构示意图。FIG. 5 is a schematic structural diagram of a learning system for device capabilities according to an embodiment of the present invention.
具体实施方式detailed description
本发明的实施例中,能力学习器与设备建立连接后,分别获取所述设备的参数模型数据和行为数据;能力学习器在获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;能力学习器将获取到的所述参数模型数据、行为数据和所述异常数据进行持久化。In the embodiment of the present invention, after the capability learner establishes a connection with the device, the parameter model data and the behavior data of the device are respectively acquired; and the capability learner records the two types of data while acquiring the two types of data. The abnormal data that appears; the capability learner persists the obtained parameter model data, the behavior data, and the abnormal data.
其中,所述能力学习器为本发明实施例中对应所述设备能力学习方法的装置。The capability learner is a device corresponding to the device capability learning method in the embodiment of the present invention.
本发明的实施例中,所述设备能力主要通过参数模型数据和行为数据两类数据表示。In the embodiment of the present invention, the device capability is mainly represented by two types of data: parameter model data and behavior data.
下面结合附图及具体实施例对本发明作进一步详细说明。The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
图1为本发明实施例所述设备能力的学习方法的实现流程示意图,如 图1所示,包括:FIG. 1 is a schematic flowchart of an implementation process of a device capability learning method according to an embodiment of the present invention, such as As shown in Figure 1, it includes:
步骤100:能力学习器与设备建立连接后,分别获取所述设备的参数模型数据和行为数据;Step 100: After establishing a connection between the capability learner and the device, acquiring parameter model data and behavior data of the device respectively.
本发明实施例中,能力学习器连接到待学习的设备,建立交互通道后,准备开始学习设备的能力,能力学习器接收到设备的请求后,开始学习过程,当然,能力学习器也可主动向设备发起学习过程。能力学习器首先获取设备的参数模型数据,例如:从根节点开始递归遍历设备的参数树,得到设备的参数模型数据;所述参数模型数据可为:参数模型、参数值和参数类型等信息中的一种或多种。In the embodiment of the present invention, the capability learner is connected to the device to be learned, and after the interaction channel is established, the capability of the learning device is ready to start learning. After the capability learner receives the request of the device, the learning process starts, and of course, the capability learner can also take the initiative. Initiate a learning process to the device. The capability learner first obtains the parameter model data of the device, for example, recursively traverses the parameter tree of the device from the root node to obtain parameter model data of the device; the parameter model data may be: parameter model, parameter value, and parameter type. One or more.
参数模型数据获取之后,能力学习器按照所述设备的行为列表依次测试设备执行该行为时的数据,并记录相应数据,数据的内容包括并不限于交互报文、设备处理延时,设备异常表现等。其中,所述行为列表位于所述相关标准规范、和/或标准协议、和/或私有协议中。After the parameter model data is acquired, the capability learner sequentially tests the data when the device performs the behavior according to the behavior list of the device, and records the corresponding data, and the content of the data includes not limited to the interactive message, the device processing delay, and the device abnormal performance. Wait. Wherein the list of behaviors is located in the relevant standard specification, and/or standard protocol, and/or proprietary protocol.
当然,本发明实施例中,所述获取设备的参数模型数据和获取行为数据的先后顺序没有严格的限制。Of course, in the embodiment of the present invention, the order of the parameter model data and the acquisition behavior data of the acquiring device is not strictly limited.
本发明的实施例中,在设备能力学习过程中获取设备的参数模型数据的原因为:由于设备的各种行为、数据均由设备自身的参数模型及对应数据决定,因此设备的参数模型是基础。另外,设备一般都遵循标准规范、协议或者私有协议的约定,借助这些协议,能力学习器可尝试遍历设备的参数模型,在遍历过程中,获取参数模型、参数值和参数类型等信息。In the embodiment of the present invention, the reason for acquiring the parameter model data of the device in the device capability learning process is: since the various behaviors and data of the device are determined by the parameter model of the device and the corresponding data, the parameter model of the device is the basis. . In addition, devices generally follow the conventions of standard specifications, protocols, or proprietary protocols. With these protocols, the capability learner can attempt to traverse the parameter model of the device and obtain information such as parameter models, parameter values, and parameter types during the traversal process.
在设备能力学习过程中获取设备的行为数据的原因为;网管系统管理设备过程中,需要处理的设备行为包括以下一种或两种,一种是网管主动触发设备的行为,另一种是设备在某些条件下触发的行为;其中,The reason for obtaining the behavior data of the device during the device capability learning process is that the device behavior to be processed in the network management system management device includes one or two of the following: one is the behavior of the network management device actively triggering the device, and the other is the device. Behavior that is triggered under certain conditions; among them,
对于网管主动触发的行为:这一场景可以通过模拟网管报文来触发相应的行为,从而记录设备与网管交互的整个过程; The behavior of the network controller actively triggers: This scenario can trigger the corresponding behavior by simulating the network management packet, so as to record the entire process of interaction between the device and the network management system;
对于设备触发的行为:这一场景通过设置设备参数或手工操作设备来触发。Behavior triggered by the device: This scenario is triggered by setting device parameters or manually operating the device.
上述触发设备相应的行为后,记录设备与网管之间交互的完整报文,从中分析出协议规范内的行为与该类设备特有的行为。After the corresponding behavior of the triggering device, the complete message exchanged between the device and the network management device is recorded, and the behavior within the protocol specification and the behavior specific to the device are analyzed.
以Tr069协议为例,设备的特有行为包括Inform的事件号、交互过程中每个步骤之间的时延,各种异常情况下的设备的不同反应等。Taking the Tr069 protocol as an example, the unique behavior of the device includes the event number of the Inform, the delay between each step in the interaction process, and the different responses of the device under various abnormal conditions.
步骤102:能力学习器在获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;Step 102: The capability learner records the abnormal data that occurs when the two types of data are acquired while acquiring the two types of data.
本发明实施例中,能力学习器在获取所述参数模型数据和行为数据时,会出现异常,能力学习器获取在所述两类数据获取过程中出现的各种异常,并记录这些异常数据。例如:所述异常数据可为:对于一个不存在的参数路径,获取的该路径的参数值;或者,下发了一个不符合参数类型的参数值,例如参数类型为整数,但却下发了一个字符串,还可为其他异常等。In the embodiment of the present invention, when the capability learner acquires the parameter model data and the behavior data, an exception occurs, and the capability learner acquires various abnormalities occurring in the two types of data acquisition processes, and records the abnormal data. For example, the abnormal data may be: a parameter value of the path obtained for a parameter path that does not exist; or a parameter value that does not meet the parameter type is sent, for example, the parameter type is an integer, but one is issued. String, can also be other exceptions, etc.
步骤104:能力学习器将获取到的所述参数模型数据、行为数据和所述异常数据进行持久化;Step 104: The capability learner persists the acquired parameter model data, behavior data, and the abnormal data.
本发明实施例中,能力学习器将获取到的所述参数模型数据、行为数据和所述异常数据存储为需要的数据类型,例如:可将所述数据存储于可扩展标记语言(XML)文件中,实现数据的持久化。当然,持久化的方式不限,最常用的方式是存储为文件。In the embodiment of the present invention, the capability learner stores the acquired parameter model data, behavior data, and the abnormal data as a required data type, for example, the data may be stored in an Extensible Markup Language (XML) file. In the implementation of data persistence. Of course, the way to persist is not limited, the most common way is to store as a file.
所述数据的持久化,即把数据,如:内存中的对象,保存到可永久保存的存储设备中,如:磁盘。持久化的主要应用是将内存中的对象存储在关系型的数据库中,当然也可以存储在磁盘文件中、XML数据文件中等等。The persistence of the data, that is, the storage of data, such as objects in memory, to a permanently stored storage device, such as a disk. The main application of persistence is to store in-memory objects in a relational database, of course, in disk files, XML data files, and so on.
在本发明一个实施例中,如果设备能力发生变化时,即:发生更新时,重新执行本发明实施例步骤100-步骤104所述的学习方法。In an embodiment of the present invention, if the device capability changes, that is, when the update occurs, the learning method described in steps 100-104 of the embodiment of the present invention is re-executed.
需要说明的是,本发明实施例中所述能力学习器了解待学习设备所遵 循的相关标准规范、和/或标准协议、和/或私有协议的约定,也就是说,所述能力学习器中预先存储待学习设备所遵循的相关标准规范、和/或标准协议、和/或私有协议的约定。It should be noted that, in the embodiment of the present invention, the capability learner understands that the device to be learned complies with Relevant standard specifications, and/or standard protocols, and/or proprietary protocols, that is, pre-stored relevant standard specifications, and/or standard protocols, and/or in the capability learner. Or the agreement of a proprietary agreement.
本发明实施例中,可以学习不同型号设备的参数集、行为,为模拟器提供数据来源,且不需要人为干预,无需手工配置各类参数,极大的减少了模拟器的配置工作量,特别是在搭建特定测试场景、还原现场环境及大规模压力测试场景中极为有效。不仅如此,本发明实施例还可以随时更新设备能力,保持与设备数据同步,最终达到尽可能的还原现场真实环境目的。In the embodiment of the present invention, the parameter set and behavior of different types of devices can be learned, and the data source is provided for the simulator, and no human intervention is required, and various parameters are not required to be manually configured, thereby greatly reducing the configuration workload of the simulator, especially It is extremely effective in setting up specific test scenarios, restoring the on-site environment, and large-scale stress test scenarios. Moreover, the embodiment of the present invention can also update the device capability at any time, keep the data synchronized with the device, and finally achieve the purpose of restoring the real environment of the site as much as possible.
图2为本发明实施例所述设备的参数模型数据获取方法流程示意图,如图2所示,包括:2 is a schematic flowchart of a method for acquiring parameter model data of a device according to an embodiment of the present invention, as shown in FIG. 2, including:
步骤200:设备连接到能力学习器,能力学习器准备开始遍历设备的参数模型;Step 200: The device is connected to the capability learner, and the capability learner is ready to start traversing the parameter model of the device;
步骤202:开始学习流程后,能力学习器判断遍历是否完成,若没有完成,则执行步骤204;否则,执行步骤216;Step 202: After starting the learning process, the capability learner determines whether the traversal is completed, if not, executing step 204; otherwise, executing step 216;
步骤204:能力学习器判断所述设备是否支持遍历参数树,若支持,则执行步骤206;否则,执行步骤216;Step 204: The capability learner determines whether the device supports traversing the parameter tree. If yes, step 206 is performed; otherwise, step 216 is performed;
步骤206:从根节点开始,能力学习器递归遍历设备的参数树,之后执行步骤208;Step 206: Starting from the root node, the capability learner recursively traverses the parameter tree of the device, and then proceeds to step 208;
本发明实施例中,如果当前节点存在子节点,则获取本节点参数信息后,将所述子节点加入到遍历队列中,依次遍历,所述参数信息包括:节点参数值和参数属性等;如果当前节点是叶子节点,获取并记录节点参数值、参数属性等数据。其中,一个参数树对应一个参数模型。In the embodiment of the present invention, if the current node has a child node, after obtaining the parameter information of the node, the child node is added to the traversal queue and traversed in sequence, and the parameter information includes: a parameter value of the node and a parameter attribute; The current node is a leaf node, and acquires and records data such as node parameter values and parameter attributes. Among them, one parameter tree corresponds to one parameter model.
当然,在本发明的一个实施例中,也可采用除所述递归遍历算法之外的其他遍历算法进行参数树的遍历。 Of course, in one embodiment of the present invention, traversal of the parameter tree may be performed using other traversal algorithms than the recursive traversal algorithm.
步骤208:判断能力学习器在获取参数模型数据过程中是否出现异常,如果出现异常,则执行步骤210;否则,执行步骤212;Step 208: Determine whether the capability learner has an abnormality in the process of acquiring the parameter model data. If an exception occurs, step 210 is performed; otherwise, step 212 is performed;
步骤210:如果出现所述异常为关键性异常,影响到了整个学习流程,则执行步骤216,结束学习流程;否则,执行步骤212;Step 210: If the abnormality is a critical abnormality, affecting the entire learning process, step 216 is performed to end the learning process; otherwise, step 212 is performed;
这里,所述关键性异常主要指无法预期的异常,无法获取异常结果报文的异常。Here, the critical exception mainly refers to an unexpected exception, and the abnormality of the abnormal result packet cannot be obtained.
步骤212:能力学习器分析获取到的设备的参数模型数据,过滤掉无效数据,将获取的数据转换为数据模型,如:转换为XML格式,并缓存在内存中,之后执行步骤214;Step 212: The capability learner analyzes the parameter data of the acquired device, filters out the invalid data, converts the acquired data into a data model, for example, converts to an XML format, and caches it in the memory, and then performs step 214;
步骤214:将缓存中的数据存储到文件中,之后执行步骤216;Step 214: The data in the cache is stored in the file, and then step 216 is performed;
步骤216:设备的参数模型数据获取流程结束。Step 216: The parameter model data acquisition process of the device ends.
图3为本发明实施例所述设备的行为数据获取方法流程示意图,如图3所示,包括:FIG. 3 is a schematic flowchart of a method for acquiring behavior data of a device according to an embodiment of the present invention, as shown in FIG. 3, including:
步骤300:设备连接到能力学习器,能力学习器准备开始遍历设备的行为列表。Step 300: The device is connected to the capability learner, and the capability learner is ready to start traversing the device's behavior list.
这里,所述设备的行为列表可从所述相关标准规范、和/或标准协议、和/或私有协议中获取到。Here, the list of behaviors of the device can be obtained from the relevant standard specifications, and/or standard protocols, and/or proprietary protocols.
步骤302:开始学习流程后,能力学习器判断遍历是否完成,即是否对行为列表中的内容都测试完成,若没有完成,则执行步骤304;否则,执行步骤310;Step 302: After starting the learning process, the capability learner determines whether the traversal is completed, that is, whether the content in the behavior list is tested. If not, step 304 is performed; otherwise, step 310 is performed;
步骤304:能力学习器尝试向设备下发行为命令,之后执行步骤306;Step 304: The capability learner attempts to issue a command to the device, and then step 306 is performed;
这里,学习行为的触发一般由能力学习器主动触发进行。设备收到能力学习器下发的行为命令后,解析该命令,并执行命令,返回命令执行后的结果给能力学习器。Here, the triggering of the learning behavior is generally triggered by the ability learner. After receiving the behavior command issued by the capability learner, the device parses the command and executes the command, and returns the result of the command execution to the capability learner.
步骤306:根据设备对所述行为命令的响应,判断该设备是否支持测试 的行为,如果支持,则执行步骤308,否则进入步骤302;Step 306: Determine whether the device supports testing according to the response of the device to the behavior command. Behavior, if supported, proceed to step 308, otherwise proceed to step 302;
步骤308:分析设备的响应结果,采集相关行为数据并缓存,之后执行步骤302;Step 308: Analyze the response result of the device, collect the relevant behavior data and cache, and then perform step 302;
步骤310:在设备行为列表中的内容都被测试完成一次后,能力学习器将缓存的数据转换为数据模型,如:转换为XML格式,并存储到文件中,之后执行步骤312;Step 310: After the content in the device behavior list is tested once, the capability learner converts the cached data into a data model, such as: converted into an XML format, and stored in a file, and then step 312 is performed;
步骤312:设备的行为数据获取流程结束。Step 312: The behavior data acquisition process of the device ends.
本发明实施例还提供了一种设备能力的学习方法,该方法包括:The embodiment of the invention further provides a method for learning device capabilities, the method comprising:
能力学习器建立与设备的连接后,分别获取所述设备的参数模型数据和行为数据;在获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;将获取到的所述参数模型数据、行为数据和所述异常数据进行持久化。After the capability learner establishes the connection with the device, the parameter model data and the behavior data of the device are respectively acquired; while the two types of data are acquired, the abnormal data that occurs when the two types of data are acquired are recorded; The parameter model data, behavior data, and the abnormal data are persisted.
在本发明的一个实施例中,该方法还包括:In an embodiment of the invention, the method further includes:
所述能力学习器预先存储待学习设备所遵循的相关标准规范、和/或标准协议、和/或私有协议的约定。The capability learner pre-stores the relevant standard specifications followed by the device to be learned, and/or the standard protocol, and/or the agreement of the proprietary protocol.
在本发明的一个实施例中,该方法还包括:In an embodiment of the invention, the method further includes:
在进行设备能力模拟时,可利用模拟器加载所述能力学习器中的持久化数据,进行设备的模拟。When the device capability simulation is performed, the simulator can be used to load the persistent data in the capability learner to simulate the device.
这里,可根据需要加载所述能力学习器中的对应不同类型设备的持久化数据,模拟出各种类型的设备。Here, the persistent data of the corresponding different types of devices in the capability learner can be loaded as needed to simulate various types of devices.
该实施例方法的细化描述与上文类似,此处不再详述。The detailed description of the method of this embodiment is similar to the above and will not be described in detail herein.
本发明实施例还提供了一种设备能力的学习装置,如图4所示,所述学习装置为上文所述的能力学习器;所述能力学习器40包括:获取模块400、记录模块402和持久化模块404;其中,The embodiment of the present invention further provides a learning device for device capability. As shown in FIG. 4, the learning device is the capability learner described above. The capability learner 40 includes: an obtaining module 400 and a recording module 402. And a persistence module 404; wherein
所述获取模块400,配置为能力学习器与设备建立连接后,分别获取所 述设备的参数模型数据和行为数据;The obtaining module 400 is configured to acquire a connection between the capability learner and the device, respectively Describe the parameter model data and behavior data of the device;
本发明实施例中,能力学习器连接到待学习的设备,建立交互通道后,准备开始学习设备的能力,能力学习器接收到设备的请求后,开始学习过程,当然,能力学习器也可主动向设备发起学习过程。能力学习器中的所述获取模块400首先获取设备的参数模型数据,例如:从根节点开始递归遍历设备的参数树,得到设备的参数模型数据;所述参数模型数据可为:参数模型、参数值和参数类型等信息中的一种或多种。In the embodiment of the present invention, the capability learner is connected to the device to be learned, and after the interaction channel is established, the capability of the learning device is ready to start learning. After the capability learner receives the request of the device, the learning process starts, and of course, the capability learner can also take the initiative. Initiate a learning process to the device. The obtaining module 400 in the capability learner first acquires parameter model data of the device, for example, recursively traversing the parameter tree of the device from the root node to obtain parameter model data of the device; the parameter model data may be: a parameter model and a parameter. One or more of the values and parameter types.
参数模型数据获取之后,所述获取模块400按照所述设备的行为列表依次测试设备执行该行为时的数据,并记录相应数据,数据的内容包括并不限于交互报文、设备处理延时,设备异常表现等。其中,所述行为列表位于所述相关标准规范、和/或标准协议、和/或私有协议中。After the parameter model data is acquired, the obtaining module 400 sequentially tests the data when the device performs the behavior according to the behavior list of the device, and records the corresponding data, where the content of the data includes not limited to the interactive message, the device processing delay, and the device. Abnormal performance, etc. Wherein the list of behaviors is located in the relevant standard specification, and/or standard protocol, and/or proprietary protocol.
当然,本发明实施例中,所述获取模块400获取设备的参数模型数据和获取行为数据的先后顺序没有严格的限制。Of course, in the embodiment of the present invention, the obtaining module 400 acquires the parameter model data of the device and the sequence of acquiring the behavior data is not strictly limited.
所述记录模块402,配置为所述获取模块400获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;The recording module 402 is configured to record, when the acquiring module 400 acquires the two types of data, abnormal data that occurs when the two types of data are acquired;
本发明实施例中,能力学习器中的所述获取模块400在获取所述参数模型数据和行为数据时,会出现异常,能力学习器中的所述记录模块402获取在所述两类数据获取过程中出现的各种异常,并记录这些异常数据。In the embodiment of the present invention, when the acquiring module 400 in the capability learner acquires the parameter model data and the behavior data, an abnormality occurs, and the recording module 402 in the capability learner acquires the two types of data acquisition. Various exceptions that occur during the process and record these anomalies.
所述持久化模块404,配置为将所述获取模块400获取到的所述参数模型数据和行为数据,以及所述记录模块402记录的所述异常数据进行持久化。The persistence module 404 is configured to persist the parameter model data and behavior data acquired by the obtaining module 400 and the abnormal data recorded by the recording module 402.
本发明实施例中,能力学习器中的所述持久化模块404将获取到的所述参数模型数据、行为数据和所述异常数据存储为需要的数据类型,例如:可将所述数据存储于可扩展标记语言(XML)文件中,实现数据的持久化。当然,持久化的方式不限,最常用的方式是存储为文件。 In the embodiment of the present invention, the persistence module 404 in the capability learner stores the acquired parameter model data, behavior data, and the abnormal data as a required data type, for example, the data may be stored in Data persistence in Extensible Markup Language (XML) files. Of course, the way to persist is not limited, the most common way is to store as a file.
在本发明一个实施例中,所述能力学习器40还包括:存储模块406,配置为预先存储待学习设备所遵循的相关标准规范、和/或标准协议、和/或私有协议的约定。In one embodiment of the present invention, the capability learner 40 further includes a storage module 406 configured to pre-store the relevant standard specifications followed by the device to be learned, and/or the standard protocol, and/or the agreement of the proprietary protocol.
本发明实施例还提供了一种设备能力的学习系统,如图5所示,所述系统包括上文所述的能力学习器40。The embodiment of the present invention further provides a learning system for device capabilities. As shown in FIG. 5, the system includes the capability learner 40 described above.
在本发明一个实施例中,该系统还包括:模拟器42,包括:加载模块420和模拟模块422;其中,In an embodiment of the present invention, the system further includes: a simulator 42 comprising: a loading module 420 and an analog module 422;
所述加载模块420,配置为进行设备能力模拟时,加载所述能力学习器中的持久化数据;The loading module 420 is configured to load persistent data in the capability learner when performing device capability simulation;
所述模拟模块422,配置为根据所述加载模块420加载的持久化数据进行设备的模拟。The simulation module 422 is configured to perform simulation of the device according to the persistent data loaded by the loading module 420.
在本发明的实施例中,如果设备能力发生变化时,即:发生更新时,所述系统重新执行本发明实施例步骤100-步骤104所述的学习方法。In an embodiment of the present invention, if the device capability changes, that is, when an update occurs, the system re-executes the learning method described in steps 100-104 of the embodiment of the present invention.
本发明实施例中,可以学习不同型号设备的参数集、行为,为模拟器提供数据来源,且不需要人为干预,无需手工配置各类参数,极大的减少了模拟器的配置工作量,特别是在搭建特定测试场景、还原现场环境及大规模压力测试场景中极为有效。不仅如此,本发明实施例还可以随时更新设备能力,保持与设备数据同步,最终达到尽可能的还原现场真实环境目的。In the embodiment of the present invention, the parameter set and behavior of different types of devices can be learned, and the data source is provided for the simulator, and no human intervention is required, and various parameters are not required to be manually configured, thereby greatly reducing the configuration workload of the simulator, especially It is extremely effective in setting up specific test scenarios, restoring the on-site environment, and large-scale stress test scenarios. Moreover, the embodiment of the present invention can also update the device capability at any time, keep the data synchronized with the device, and finally achieve the purpose of restoring the real environment of the site as much as possible.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用硬件实施例、软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention can take the form of a hardware embodiment, a software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序 产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is directed to a method, apparatus (system), and computer program in accordance with an embodiment of the present invention The flow chart and/or block diagram of the product is described. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
以上所述,仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。 The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention.

Claims (11)

  1. 一种设备能力的学习方法,该方法包括:A method of learning device capabilities, the method comprising:
    能力学习器与设备建立连接后,分别获取所述设备的参数模型数据和行为数据;在获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;将获取到的所述参数模型数据、行为数据和所述异常数据进行持久化。After the capability learner establishes a connection with the device, the parameter model data and the behavior data of the device are separately acquired; while the two types of data are acquired, the abnormal data that occurs when the two types of data are acquired are recorded; The parametric model data, the behavior data, and the abnormal data are persisted.
  2. 根据权利要求1所述的方法,其中,所述参数模型数据包括以下一种或多种:参数模型、参数值和参数类型。The method of claim 1, wherein the parameter model data comprises one or more of the following: a parameter model, a parameter value, and a parameter type.
  3. 根据权利要求1所述的方法,其中,所述行为数据包括以下一种或两种:网管主动触发设备的行为数据,设备触发的行为数据。The method according to claim 1, wherein the behavior data comprises one or two of the following: the network management actively triggers behavior data of the device, and the device-triggered behavior data.
  4. 根据权利要求1、2或3所述的方法,其中,该方法还包括:所述能力学习器预先存储待学习设备所遵循的相关标准规范、和/或标准协议、和/或私有协议的约定。The method according to claim 1, 2 or 3, wherein the method further comprises: the capability learner pre-storing relevant standard specifications followed by the device to be learned, and/or a standard protocol, and/or a convention of a proprietary protocol .
  5. 根据权利要求4所述的方法,其中,所述获取所述设备的参数模型数据和行为数据,包括:The method of claim 4, wherein the obtaining parameter model data and behavior data of the device comprises:
    从根节点开始递归遍历设备的参数树,得到设备的参数模型数据;按照所述设备的行为列表依次测试设备执行该行为时的数据,并记录相应数据;其中,所述行为列表位于所述相关标准规范、和/或标准协议、和/或私有协议中。Recursively traversing the parameter tree of the device from the root node to obtain parameter model data of the device; testing the data when the device performs the behavior according to the behavior list of the device, and recording corresponding data; wherein the behavior list is located in the correlation Standard specifications, and/or standard protocols, and/or proprietary protocols.
  6. 一种设备能力的学习方法,该方法包括:A method of learning device capabilities, the method comprising:
    能力学习器建立与设备的连接后,分别获取所述设备的参数模型数据和行为数据;能力学习器在获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;能力学习器将获取到的所述参数模型数据、行为数据和所述异常数据进行持久化。After the capability learner establishes the connection with the device, the parameter model data and the behavior data of the device are respectively acquired; the capability learner records the abnormal data that occurs when the two types of data are acquired while acquiring the two types of data; The learner persists the acquired parameter model data, behavior data, and the abnormal data.
  7. 根据权利要求6所述的方法,其中,该方法还包括: The method of claim 6 wherein the method further comprises:
    进行设备能力模拟时,模拟器加载所述能力学习器中的持久化数据,进行设备的模拟。When performing device capability simulation, the simulator loads the persistent data in the capability learner and performs simulation of the device.
  8. 一种设备能力的学习装置,所述学习装置为权利要求1-5中任一项所述的能力学习器,包括:获取模块、记录模块和持久化模块;其中,A device capable learning device, the learning device according to any one of claims 1 to 5, comprising: an acquisition module, a recording module, and a persistence module;
    所述获取模块,配置为能力学习器与设备建立连接后,分别获取所述设备的参数模型数据和行为数据;The acquiring module is configured to acquire parameter model data and behavior data of the device after the capability learner establishes a connection with the device;
    所述记录模块,配置为所述获取模块获取所述两类数据的同时,记录获取所述两类数据时出现的异常数据;The recording module is configured to record, when the acquiring module acquires the two types of data, abnormal data that occurs when the two types of data are acquired;
    所述持久化模块,配置为将所述获取模块获取到的所述参数模型数据和行为数据,以及所述记录模块记录的所述异常数据进行持久化。The persistence module is configured to persist the parameter model data and behavior data acquired by the obtaining module and the abnormal data recorded by the recording module.
  9. 根据权利要求8所述的学习装置,其中,所述能力学习器还包括:存储模块,配置为预先存储待学习设备所遵循的相关标准规范、和/或标准协议、和/或私有协议的约定。The learning apparatus according to claim 8, wherein the capability learner further comprises: a storage module configured to pre-store a relevant standard specification followed by the device to be learned, and/or a standard protocol, and/or a protocol of a proprietary protocol .
  10. 一种设备能力的学习系统,所述系统包括权利要求8或9所述的能力学习器。A device capable learning system, the system comprising the capability learner of claim 8 or 9.
  11. 根据权利要求10所述的系统,其中,该系统还包括:模拟器,包括:加载模块和模拟模块;其中,The system of claim 10, wherein the system further comprises: a simulator comprising: a loading module and an analog module; wherein
    所述加载模块,配置为进行设备能力模拟时,加载所述能力学习器中的持久化数据;The loading module is configured to load persistent data in the capability learner when performing device capability simulation;
    所述模拟模块,配置为根据所述加载模块加载的持久化数据进行设备的模拟。 The simulation module is configured to perform simulation of the device according to the persistent data loaded by the loading module.
PCT/CN2014/092062 2014-08-19 2014-11-24 Method, apparatus and system for learning device capability WO2015117469A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
MYPI2017700512A MY192748A (en) 2014-08-19 2014-11-24 Method, apparatus and system for learning device capability

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410408730.5 2014-08-19
CN201410408730.5A CN105407112B (en) 2014-08-19 2014-08-19 Equipment capability learning method, device and system

Publications (1)

Publication Number Publication Date
WO2015117469A1 true WO2015117469A1 (en) 2015-08-13

Family

ID=53777276

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/092062 WO2015117469A1 (en) 2014-08-19 2014-11-24 Method, apparatus and system for learning device capability

Country Status (3)

Country Link
CN (1) CN105407112B (en)
MY (1) MY192748A (en)
WO (1) WO2015117469A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109389412B (en) * 2017-08-02 2022-03-04 创新先进技术有限公司 Method and device for training model, service equipment and user equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108309A (en) * 1997-12-08 2000-08-22 Mci Communications Corporation SONET network element simulator
US6922395B1 (en) * 2000-07-25 2005-07-26 Bbnt Solutions Llc System and method for testing protocols for ad hoc networks
CN101114933A (en) * 2006-07-26 2008-01-30 华为技术有限公司 Method, system and terminal for maintaining capability management object, managing capability

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312465B (en) * 2007-05-25 2012-01-04 杭州华三通信技术有限公司 Abnormal packet access point discovering method and device
CN101902366B (en) * 2009-05-27 2014-03-12 北京启明星辰信息技术股份有限公司 Method and system for detecting abnormal service behaviors
CN102256075B (en) * 2011-07-12 2013-10-16 冠捷显示科技(厦门)有限公司 Television capable of learning and recognizing remote controllers and control method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108309A (en) * 1997-12-08 2000-08-22 Mci Communications Corporation SONET network element simulator
US6922395B1 (en) * 2000-07-25 2005-07-26 Bbnt Solutions Llc System and method for testing protocols for ad hoc networks
CN101114933A (en) * 2006-07-26 2008-01-30 华为技术有限公司 Method, system and terminal for maintaining capability management object, managing capability

Also Published As

Publication number Publication date
CN105407112A (en) 2016-03-16
CN105407112B (en) 2020-06-05
MY192748A (en) 2022-09-06

Similar Documents

Publication Publication Date Title
US10348593B2 (en) Generating production server load activity for a test server
WO2018120721A1 (en) Method and system for testing user interface, electronic device, and computer readable storage medium
US10037254B2 (en) Device, method and program for performing system testing
US20120278698A1 (en) Method and system for processing a webpage
WO2020000806A1 (en) Configuration file comparison method and configuration file comparison device
CN108459951B (en) Test method and device
CN110650035B (en) Method and system for generating and managing virtual industrial devices in an industrial network
CN107395747B (en) High-expansion method based on STF platform
US20220179768A1 (en) Software performance testing
CN110659202A (en) Client automatic testing method and device
CN111026411A (en) Software remote deployment management method and management machine
JP2018060570A (en) Reference data segmentation from single to multiple tables
WO2017084388A1 (en) Network polling method and apparatus
CN109634867B (en) Software testing method and device based on data simulation system and storage medium
CN112199273B (en) Virtual machine pressure/performance testing method and system
KR20150025106A (en) Verification apparatus, terminal device, system, method and computer-readable medium for monitoring of application verification result
WO2015117469A1 (en) Method, apparatus and system for learning device capability
WO2015196805A1 (en) Batch command execution method and apparatus
KR20150124653A (en) System for monitoring and controling electric power system for process verification
JP2007140954A (en) Operator simulation system and operator simulation method
US20220066917A1 (en) Candidate program release evaluation
CN114327416A (en) Interface synchronization method and device applied to development branch and electronic equipment
KR102006212B1 (en) Method and apparatus for generating python script used in first simulator by converting xml script used in second simulator
CN113973060A (en) Internet of things simulation method, device and system and storage medium
JP2008134684A (en) Apparatus and program for verifying information communication device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14881539

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14881539

Country of ref document: EP

Kind code of ref document: A1