Method, apparatus, device and medium for generating simulation data of network assets

By analyzing template configuration files and asset calculation rules, the problem of low authenticity of simulated network assets in the existing technology is solved, and the testing and demonstration costs are reduced.

CN115906348BActive Publication Date: 2025-08-01SHENZHEN WANWU SECURITY TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211342041.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-27
Publication Date
2025-08-01
Estimated Expiration
2042-10-27

AI Technical Summary

Technical Problem

The lack of high-reality network asset simulation data generation methods in the prior art, resulting in low authenticity of simulated network assets in performance testing and data demonstration.

Method used

By obtaining the preset template configuration file, analyzing the asset configuration items, and performing network asset data calculation based on the preset asset calculation rules, and outputting simulated asset data fields according to the formatted standard.

Benefits of technology

It improves the authenticity of network asset data simulation, reduces the software and hardware configuration costs in performance testing and data demonstration, and realizes high-reality network asset simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115906348B_ABST
    Figure CN115906348B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of network assets, and discloses a method, device, equipment and medium for generating simulation data of network assets. The method includes: obtaining a preset template configuration file, and parsing asset configuration items in the template configuration file; based on a preset asset calculation rule, performing asset calculation according to the asset configuration items to determine corresponding network asset data; and outputting simulated asset data fields corresponding to the network asset data according to a preset formatting standard. By obtaining the template configuration file, parsing the asset configuration items in the template configuration file for asset calculation, and obtaining network asset data, the present invention realizes data simulation of network assets and improves the authenticity of network asset data simulation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of network assets, and in particular to a method, device, equipment and medium for generating simulation data of network assets. Background Art

[0002] With the continuous development of the Internet of Things, smart factories, smart cities, smart homes, smart wearable devices, and smart environmental sensors have been widely used. Network asset mapping has emerged, solving problems such as the invisibility and unknowability of network assets.

[0003] In application scenarios such as performance testing and data demonstration, to save the purchase cost of hardware and software assets, simulation data of network assets can be generated in batches. However, in the prior art, there is a lack of an effective method for simulating network assets with high authenticity, and the authenticity of the simulated network assets in application scenarios such as performance testing and data demonstration is low. Summary of the Invention

[0004] The main purpose of the present invention is to propose a method, device, equipment and medium for generating simulation data of network assets, aiming to improve the authenticity of data simulation of network assets.

[0005] To achieve the above object, the present invention provides a method for generating simulation data of network assets, and the method for generating simulation data of network assets includes:

[0006] Obtain a preset template configuration file, and parse the asset configuration items in the template configuration file;

[0007] Based on a preset asset calculation rule, perform asset calculation according to the asset configuration items to determine corresponding network asset data;

[0008] Output the simulation asset data fields corresponding to the network asset data according to a preset formatting standard.

[0009] Optionally, the asset configuration items include: the number of subdivision templates; the network asset data includes: the range of subdivision categories;

[0010] The step of performing asset calculation according to the asset configuration items based on a preset asset calculation rule to determine corresponding network asset data includes:

[0011] Calculate the number of subdivision templates in the asset configuration items to determine the range of subdivision categories corresponding to the network assets to be generated.

[0012] Optionally, the asset configuration items further include: network segment IP capacity and IP usage rate; the network asset data further includes: the total number of assets;

[0013] The step of calculating assets according to the asset configuration items based on a preset asset calculation rule to determine corresponding network asset data further includes:

[0014] Calculating the IP capacity and IP utilization rate of the network segment to determine the total number of assets corresponding to the network assets to be generated.

[0015] Optionally, the asset configuration items further include: switch model and number of network ports; the network asset data further includes: network topology structure;

[0016] The step of calculating assets according to the asset configuration items based on a preset asset calculation rule to determine corresponding network asset data further includes:

[0017] Calculating the switch model and the number of network ports to determine the network topology structure corresponding to the network assets to be generated.

[0018] Optionally, the asset configuration items further include: breakdown template ratio; the network asset data further includes: the quantity of each breakdown type;

[0019] The step of calculating assets according to the asset configuration items based on a preset asset calculation rule to determine corresponding network asset data further includes:

[0020] Calculating the breakdown template ratio to determine the quantity of each breakdown type corresponding to the network assets to be generated.

[0021] Optionally, the asset configuration items further include: asset online rate; the network asset data further includes: real-time online / offline status and historical online / offline status;

[0022] The step of calculating assets according to the asset configuration items based on a preset asset calculation rule to determine corresponding network asset data further includes:

[0023] Calculating the asset online rate of the asset configuration items to determine the number of online and offline assets corresponding to the network assets to be generated;

[0024] Based on the number of online and offline assets, setting the real-time online / offline status corresponding to the network assets to be generated and generating the online time and offline time corresponding to the real-time online / offline status;

[0025] Based on the online time and offline time, calculating the time difference of the real-time online / offline status and determining the historical online / offline status corresponding to the time difference of the real-time online / offline status.

[0026] Optionally, the step of outputting the asset data fields corresponding to the network asset data according to a preset formatting standard includes:

[0027] Standardize the network asset data to determine the simulated asset data fields to be generated;

[0028] Use the simulated asset data fields as output items to implement data simulation of network assets.

[0029] In addition, to achieve the above object, an embodiment of the present invention further provides a simulated data generation device for network assets, and the simulated data generation device for network assets includes:

[0030] A template parsing module, configured to obtain a preset template configuration file and parse the asset configuration items in the template configuration file;

[0031] An asset calculation module, configured to perform asset calculation based on a preset asset calculation rule, and determine corresponding network asset data according to the asset configuration items;

[0032] A formatting output module, configured to output the asset data fields corresponding to the network asset data according to a preset formatting standard.

[0033] Optionally, the asset calculation module includes:

[0034] Calculate the number of sub - templates of the asset configuration items to determine the range of sub - categories corresponding to the network assets to be generated.

[0035] Optionally, the asset calculation module further includes:

[0036] Calculate the network segment IP capacity and IP usage rate to determine the total number of assets corresponding to the network assets to be generated.

[0037] Optionally, the asset calculation module further includes:

[0038] Calculate the switch model and the number of network ports to determine the network topology structure corresponding to the network assets to be generated.

[0039] Optionally, the asset calculation module further includes:

[0040] Calculate the sub - template ratio to determine the number of each sub - type corresponding to the network assets to be generated.

[0041] Optionally, the asset calculation module further includes:

[0042] Calculate the asset online rate of the asset configuration items to determine the number of online and offline assets corresponding to the network assets to be generated;

[0043] Based on the online number and the offline number, set the real-time online / offline status corresponding to the network assets to be generated, and generate the online time and the offline time corresponding to the real-time online / offline status;

[0044] Based on the online time and the offline time, calculate the real-time online / offline status time difference, and determine the historical online / offline status corresponding to the real-time online / offline status time difference.

[0045] Optionally, the formatting output module includes:

[0046] Perform standardization processing on the network asset data to determine the simulated asset data fields to be generated;

[0047] The simulated asset data fields are used as output items to implement data simulation of network assets.

[0048] In addition, to achieve the above object, an embodiment of the present invention further provides a device, the device includes a memory, a processor, and a simulated data generation program stored on the memory and executable on the processor, and the simulated data generation program is executed by the processor to implement the steps of the method for generating simulated data of network assets as described above.

[0049] In addition, to achieve the above object, the present invention further provides a medium, the medium is a computer-readable storage medium, and a simulated data generation program is stored on the computer-readable storage medium, and when the simulated data generation program is executed by a processor, the steps of the method for generating simulated data of network assets as described above are implemented.

[0050] The method, device, equipment and medium for generating simulated data of network assets proposed by the present invention, the method for generating simulated data of network assets includes: obtaining a preset template configuration file, and parsing the asset configuration items in the template configuration file; based on a preset asset calculation rule, performing asset calculation according to the asset configuration items to determine the corresponding network asset data; outputting the simulated asset data fields corresponding to the network asset data according to a preset formatting standard. This solution solves the data requirements for simulating network assets in various application scenarios through the simulated data of network assets, and can also reduce the software and hardware configurations in scenarios such as performance testing and data demonstration, thereby reducing the costs of performance testing and data demonstration. In addition, this solution realizes the data simulation of network assets by obtaining a template configuration file, parsing the asset configuration items in the template configuration file for asset calculation, and obtaining network asset data, improving the authenticity of network asset data simulation. Description of the Drawings

[0051] Figure 1 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the method for generating simulated data of network assets of the present invention;

[0052] Figure 2 Schematic flowchart of the first embodiment of the method for generating simulation data of network assets of the present invention;

[0053] Figure 3 Specific flowchart of the second embodiment of the method for generating simulation data of network assets of the present invention;

[0054] Figure 4 Schematic diagram of the functional modules of the device for generating simulation data of network assets of the method for generating simulation data of network assets of the present invention.

[0055] The realization, functional features and advantages of the object of the present invention will be further described in conjunction with the embodiments with reference to the accompanying drawings. Detailed implementation manners

[0056] It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0057] Specifically, referring to Figure 1 , Figure 1 Schematic diagram of the device structure of the hardware operating environment involved in the embodiment solution of the method for generating simulation data of network assets of the present invention.

[0058] As Figure 1 shown, the device may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display) and an input unit such as a keyboard (Keyboard). Optionally, the user interface 1003 may further include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1005 may also be a storage device independent of the aforementioned processor 1001.

[0059] As Figure 1As shown in the figure, the memory 1005, which is a computer storage medium, may include an operating system, a network communication module, a user interface module, and an analog data generation program. Among them, the operating system is a program that manages and controls the hardware and software resources of the device, and supports the operation of the analog data generation program and other software or programs; the network communication module is used to manage and control the bus 1002 interface; the user interface 1003 is mainly used for data communication with the client; the network interface 1004 is mainly used to establish a communication connection with the server; and the processor 1001 can be used to call the analog data generation program stored in the memory 1005.

[0060] Among them, when the analog data generation program stored in the above-mentioned memory 1005 is executed by the processor, the following steps are implemented:

[0061] Obtain a preset template configuration file, and parse the asset configuration items in the template configuration file;

[0062] Based on a preset asset calculation rule, perform asset calculation according to the asset configuration items to determine the corresponding network asset data;

[0063] Output the analog asset data fields corresponding to the network asset data according to a preset formatting standard.

[0064] Furthermore, when the analog data generation program stored in the memory 1005 is executed by the processor, the following steps are also implemented:

[0065] Calculate the number of subdivision templates of the asset configuration items to determine the range of sub-categories corresponding to the network assets to be generated.

[0066] Furthermore, when the analog data generation program stored in the memory 1005 is executed by the processor, the following steps are also implemented:

[0067] Calculate the network segment IP capacity and IP usage rate to determine the total number of assets corresponding to the network assets to be generated.

[0068] Furthermore, when the analog data generation program stored in the memory 1005 is executed by the processor, the following steps are also implemented:

[0069] Calculate the switch model and the number of network ports to determine the network topology structure corresponding to the network assets to be generated.

[0070] Furthermore, when the analog data generation program stored in the memory 1005 is executed by the processor, the following steps are also implemented:

[0071] Calculate the subdivision template ratio to determine the number of each subdivision type corresponding to the network assets to be generated.

[0072] Further, when the analog data generation program stored in the memory 1005 is executed by the processor, the following steps are further implemented:

[0073] Calculate the online rate of the assets of the asset allocation item to determine the number of online and offline network assets to be generated;

[0074] Based on the number of online and offline assets, set the real-time online / offline status of the network assets to be generated, and generate the online time and offline time corresponding to the real-time online / offline status;

[0075] Based on the online time and offline time, calculate the time difference of the real-time online / offline status, and determine the historical online / offline status corresponding to the time difference of the real-time online / offline status.

[0076] Further, when the analog data generation program stored in the memory 1005 is executed by the processor, the following steps are further implemented:

[0077] Standardize the network asset data to determine the analog asset data fields to be generated;

[0078] The analog asset data fields are used as output items to implement data simulation of network assets.

[0079] To better understand the above technical solutions, the exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0080] Based on the above terminal device architecture but not limited to the above architecture, an embodiment of the method for generating analog data of network assets of the present invention is proposed.

[0081] Specifically, referring to Figure 2 , Figure 2 is a schematic flowchart of the first embodiment of the method for generating analog data of network assets of the present invention. The method for generating analog data of network assets includes:

[0082] Step S10: Obtain a preset template configuration file and parse the asset configuration items in the template configuration file;

[0083] Step S20: Based on a preset asset calculation rule, perform asset calculation according to the asset configuration items to determine the corresponding network asset data;

[0084] Step S30: Output the analog asset data fields corresponding to the network asset data according to a preset formatting standard.

[0085] The following will describe each step in detail:

[0086] Step S10: Obtain a preset template configuration file and parse the asset configuration items in the template configuration file;

[0087] In a specific embodiment, the template configuration file is a plain text file, which is parsed line by line, and each line is a configuration item. The configuration items are divided into constant configuration items and variable configuration items. Among them, the constant configuration item is an immutable literal, and the variable configuration item is an expression that references other configuration items, and its value can only be determined after calculation at runtime.

[0088] Step S20: Based on the preset asset calculation rules, perform asset calculation according to the asset configuration items to determine the corresponding network asset data;

[0089] In a specific embodiment, the asset calculation rules are written in a cross-platform programming language and compiled into a single binary executable program, which is executed in the text interface of the command line, without a graphical interface, and one or more configuration items in the template configuration file can be overridden by passing parameters.

[0090] Step S30: Output the simulated asset data fields corresponding to the network asset data according to the preset formatting standard.

[0091] Further, the step of outputting the simulated asset data fields corresponding to the network asset data according to the preset formatting standard specifically includes:

[0092] Perform standardization processing on the network asset data to determine the simulated asset data fields to be generated;

[0093] The simulated asset data fields are used as output items to implement data simulation of network assets.

[0094] In a specific embodiment, the standard fields include: IP, MAC, subnet mask, asset number, asset name, asset type, manufacturer brand, model, asset online status, most recent online time, most recent offline time, first discovery time, name of the connected switch, port of the connected switch, etc.

[0095] The network asset data is finally output in a standard JSON or SQL format. Among them, the data in SQL format can be conveniently imported into the database, and the data in JSON format needs to be converted before it can be imported.

[0096] In this embodiment, by obtaining the template configuration file and parsing the asset configuration items in the template configuration file for asset calculation to obtain network asset data, data simulation of network assets is realized, and the authenticity of network asset data simulation is improved.

[0097] Further, based on the first embodiment of the method for generating simulation data of network assets in the embodiments of the present application, a second embodiment of the method for generating simulation data of network assets in the embodiments of the present application is proposed.

[0098] The difference between the second embodiment of the method for generating simulation data of network assets and the first embodiment of the method for generating simulation data of network assets is that this embodiment is a refinement of step S20, "Based on a preset asset calculation rule, perform asset calculation according to the asset configuration item to determine the corresponding network asset data".

[0099] Among them, the asset configuration item includes: the number of subdivision templates; the network asset data includes: the range of detailed categories, specifically including:

[0100] Step S21, calculate the number of subdivision templates of the asset configuration item to determine the range of detailed categories corresponding to the network assets to be generated.

[0101] In a specific embodiment, first, parse the template configuration file through a command-line tool to calculate the total number of network asset simulation data to be generated, and then calculate the range of detailed categories of the network asset simulation data to be generated.

[0102] Specifically, the method for calculating the range of detailed categories of the network asset simulation data to be generated can be to extract the types of various types of devices of the network assets to be generated in the template configuration file to determine the range of detailed categories of the network assets to be generated.

[0103] Further, the asset configuration item further includes: network segment IP capacity and IP usage rate; the network asset data further includes: the total number of assets. The step of performing asset calculation according to the asset configuration item based on a preset asset calculation rule to determine the corresponding network asset data further includes:

[0104] Step S22, calculate the network segment IP capacity and IP usage rate to determine the total number of assets corresponding to the network assets to be generated;

[0105] In a specific embodiment, the method for calculating the total number of assets to be generated can be to multiply the network segment IP capacity by the IP usage rate to determine the corresponding total number of assets.

[0106] Further, the asset configuration item further includes: switch model and number of network ports; the network asset data further includes: network topology structure. The step of performing asset calculation according to the asset configuration item based on a preset asset calculation rule to determine the corresponding network asset data further includes:

[0107] Step S23, calculate the switch model and the number of network ports to determine the network topology corresponding to the network assets to be generated;

[0108] Specifically, in a specific embodiment, the command-line program parses constant configuration items such as the switch model and the number of network ports to calculate the network topology of the network assets to be generated. In the network topology of the network assets to be generated, the switch assets occupy some IP capacities. Therefore, the total number of non-switch network assets to be generated will be reduced here. The network topology refers to the physical composition mode of nodes and lines formed by the computers or devices constituting the network and the transmission medium, and its role in simulating network assets is to stipulate the connection mode and hierarchical relationship between network assets.

[0109] Among them, the network topology that realizes the connection mode and hierarchical relationship between network assets in the simulated network assets can be to connect the core switch, aggregation switch, access switch, and network assets in series at four levels to form the topology of network asset data.

[0110] Furthermore, the asset configuration item further includes: the breakdown template ratio; the network asset data further includes: the quantity of each breakdown type; the step of performing asset calculation based on the preset asset calculation rule according to the asset configuration item to determine the corresponding network asset data further includes:

[0111] Step S24, calculate the breakdown template ratio to determine the quantity of each breakdown type corresponding to the network assets to be generated.

[0112] Specifically, in a specific embodiment, the command-line program parses each breakdown template ratio. The ratio is the weight. The method of calculating the quantity of each breakdown type corresponding to the network assets to be generated can be to multiply the total quantity of assets to be generated by each breakdown template ratio to determine the corresponding quantity of each breakdown type.

[0113] Furthermore, the asset configuration item further includes: the asset online rate; the network asset data further includes: the real-time online / offline status and the historical online / offline status. The step of performing asset calculation based on the preset asset calculation rule according to the asset configuration item to determine the corresponding network asset data further includes:

[0114] Step S25, calculate the asset online rate of the asset configuration item to determine the number of online and offline assets corresponding to the network assets to be generated;

[0115] Step S26, based on the number of online and offline assets, set the real-time online / offline status corresponding to the network assets to be generated, and generate the online time and offline time corresponding to the real-time online / offline status;

[0116] Step S27: Calculate the real-time online / offline status time difference based on the online time and offline time, and determine the corresponding historical online / offline status for the real-time online / offline status time difference.

[0117] In a specific embodiment, the command-line program parses the asset online rate, calculates the number of online assets and the number of offline assets to be generated, and randomly sets fields such as the real-time online / offline status, the most recent online time, and the most recent offline time of the assets according to the number of online assets and the number of offline assets in the above calculation results, to implement the simulation of the real-time online / offline status of network assets, and randomly generate the historical online / offline status transition history of the assets based on the time difference from the first discovery time of the assets to the present, that is, the historical online / offline status of the simulated network asset data to be generated.

[0118] Refer to Figure 3 , Figure 3 which is the schematic diagram of the specific process of this embodiment. Specifically, the command-line program parses each configuration item, calculates the total number of assets, the network topology structure, the number of each sub-category of assets, the number of online assets and the number of offline assets in sequence, then randomly sets the asset online status, randomly generates the online status transition history of the assets, and finally outputs the asset data in JSON or SQL format.

[0119] In this embodiment, by performing asset calculations on the configuration items, network asset data such as the total number of assets, the network topology structure, the range of sub-categories, the number of each sub-type, the real-time online / offline status, and the historical online / offline status are calculated based on configuration items such as the network segment IP capacity, IP usage rate, the number of sub-template, and the asset online rate, improving the authenticity of the simulated network asset data.

[0120] In addition, an embodiment of the present invention also proposes a device for generating simulated data of network assets. Refer to Figure 4 , Figure 4 which is the schematic diagram of the functional modules of the device for generating simulated data of network assets involved in the embodiment of the method for generating simulated data of network assets of the present invention. As Figure 4 shown, the device for generating simulated data of network assets includes:

[0121] A template parsing module 10, configured to obtain a preset template configuration file and parse the asset configuration items in the template configuration file;

[0122] An asset calculation module 20, configured to perform asset calculations based on preset asset calculation rules and determine the corresponding network asset data according to the asset configuration items;

[0123] A formatting and output module 30, configured to output the simulated asset data fields corresponding to the network asset data according to a preset formatting standard.

[0124] For the principle and implementation process of the method for generating simulation data of network assets in this embodiment, please refer to the above-mentioned embodiments, and details will not be repeated here.

[0125] In addition, an embodiment of the present invention further provides a device, which includes a memory, a processor, and a simulation data generation program stored on the memory and executable on the processor. When the simulation data generation program is executed by the processor, it implements the steps of the method for generating simulation data of network assets as described in the above embodiments.

[0126] In addition, to achieve the above object, the present invention also provides a medium, which is a computer-readable storage medium. A simulation data generation program is stored on the computer-readable storage medium. When the simulation data generation program is executed by a processor, it implements the steps of the method for generating simulation data of network assets as described above.

[0127] Since all the technical solutions of all the foregoing embodiments are adopted when the simulation data generation program is executed by the processor, it at least has all the beneficial effects brought by all the technical solutions of all the foregoing embodiments, and details will not be repeated here one by one.

[0128] It should be noted that in this article, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or system. Without more limitations, an element defined by the statement "including one..." does not exclude the existence of another identical element in the process, method, article or system including that element.

[0129] The serial numbers of the above embodiments of the present invention are only for description and do not represent the superiority or inferiority of the embodiments.

[0130] Through the description of the above embodiments, those skilled in the art can clearly understand that the above embodiment methods can be implemented by means of software plus a necessary general hardware platform. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. The computer software product is stored in a storage medium as described above (such as ROM / RAM, magnetic disk, optical disk), and includes several instructions for causing a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.

[0131] The above are only the preferred embodiments of the present invention, and do not limit the patent scope of the present invention accordingly. Any equivalent structure or equivalent process transformation made by using the description and drawings of the present invention, or directly or indirectly applied in other related technical fields, shall be similarly included in the patent protection scope of the present invention.

Claims

1. A method for generating simulation data of network assets, characterized in that, The method for generating simulation data of the network assets includes: Obtain a preset template configuration file and parse the asset configuration items in the template configuration file; Based on a preset asset calculation rule, perform asset calculation according to the asset configuration items to determine the corresponding network asset data; Output the simulated asset data fields corresponding to the network asset data according to a preset formatting standard; Wherein, the asset configuration items include the asset online rate, and the network asset data includes the real-time online / offline status and the historical online / offline status; The step of performing asset calculation according to the asset configuration items based on a preset asset calculation rule to determine the corresponding network asset data includes: Calculate the asset online rate of the asset configuration items to determine the number of online and offline network assets to be generated; Based on the number of online and offline assets, set the real-time online / offline status of the network assets to be generated, and generate the online time and offline time corresponding to the real-time online / offline status; Based on the online time and offline time, calculate the time difference of the real-time online / offline status, and determine the historical online / offline status corresponding to the time difference of the real-time online / offline status.

2. The method for generating simulation data of network assets according to claim 1, wherein, The asset configuration items include: the number of subdivision templates; the network asset data includes: the range of subdivision categories; The step of performing asset calculation according to the asset configuration items based on a preset asset calculation rule to determine the corresponding network asset data includes: Calculate the number of subdivision templates of the asset configuration items to determine the range of subdivision categories of the network assets to be generated.

3. The method for generating simulation data of network assets according to claim 1, characterized in that, The asset configuration items further include: the network segment IP capacity and the IP usage rate; the network asset data further includes: the total number of assets; The step of performing asset calculation according to the asset configuration items based on a preset asset calculation rule to determine the corresponding network asset data further includes: Calculate the network segment IP capacity and the IP usage rate to determine the total number of assets of the network assets to be generated.

4. The method for generating simulation data of network assets according to claim 1, wherein, The asset configuration items further include: the switch model and the number of network ports; the network asset data further includes: the network topology structure; The step of performing asset calculation according to the asset configuration items based on a preset asset calculation rule to determine the corresponding network asset data further includes: Calculate the switch model and the number of network ports to determine the network topology structure of the network assets to be generated.

5. The method for generating simulation data of network assets according to claim 1, wherein, The asset configuration items further include: the subdivision template ratio; the network asset data further includes: the number of each subdivision type; The step of performing asset calculation according to the asset configuration items based on a preset asset calculation rule to determine the corresponding network asset data further includes: Calculate the subdivision template ratio to determine the number of each subdivision type of the network assets to be generated.

6. The method for generating simulation data of network assets according to claim 1, characterized in that, The step of outputting the asset data fields corresponding to the network asset data according to a preset formatting standard includes: Perform standardization processing on the network asset data to determine the simulated asset data fields to be generated; The simulated asset data fields are used as output items to realize the data simulation of the network assets.

7. An analog data generation device for network assets, characterized in that, The device for generating simulation data of the network assets includes: A template parsing module, configured to obtain a preset template configuration file and parse asset configuration items in the template configuration file; An asset calculation module, configured to perform asset calculation based on a preset asset calculation rule according to the asset configuration items to determine corresponding network asset data, where the asset configuration items include asset online rate, and the network asset data includes real-time online / offline status and historical online / offline status; the step of performing asset calculation based on the preset asset calculation rule according to the asset configuration items to determine corresponding network asset data includes: calculating the asset online rate of the asset configuration items to determine the number of online and offline assets corresponding to the network assets to be generated; based on the number of online and offline assets, setting the real-time online / offline status corresponding to the network assets to be generated, and generating the online time and offline time corresponding to the real-time online / offline status; based on the online time and offline time, calculating the time difference of the real-time online / offline status, and determining the historical online / offline status corresponding to the time difference of the real-time online / offline status; A formatting output module, configured to output asset data fields corresponding to the network asset data according to a preset formatting standard.

8. A simulation data generation device for network assets, characterized in that, The simulation data generation device of the network asset includes a memory, a processor, and a simulation data generation program stored on the memory and executable on the processor. When the simulation data generation program is executed by the processor, it implements the simulation data generation method of the network asset according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, A simulation data generation program is stored on the computer-readable storage medium. When the simulation data generation program is executed by a processor, it implements the steps of the simulation data generation method of the network asset according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Data processing method and apparatus, electronic device and storage medium

    CN109672562A

  • Data output method and device, electronic equipment and computer readable medium

    CN114490718A