A network simulation method and device for multi-layer data architecture

Through the network simulation method of multi-layer data architecture, network simulation is divided into network level, connected domain level and device level, and data and operations are moved upward, which solves the problems of large network simulation calculation volume and low efficiency in the existing technology, and realizes for fast and efficient network simulation.

CN116032716BActive Publication Date: 2024-10-29CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211682734.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-27
Publication Date
2024-10-29
Estimated Expiration
2042-12-27

AI Technical Summary

Technical Problem

Existing network simulation tools have a huge amount of calculations and low calculation efficiency, making it difficult to handle the comparative analysis of a large number of network solutions. A single simulation operation may take half an hour to a day, and tens of thousands of network simulations are completely unacceptable.

Method used

Using a multi-layer data architecture network simulation method, the network simulation is divided into network level, connectivity domain level and device level. Three-level network simulation operations are performed respectively. Data and data are processed through the network data body, connectivity domain data body and device data body respectively. The operation is moved up to reduce repeated operations and improve efficiency.

Benefits of technology

The computational complexity and time are greatly reduced, and a single operation is controlled within tens of seconds, making it possible to conduct comparative analysis of a large number of network design solutions and improving computational efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116032716B_ABST
    Figure CN116032716B_ABST
Patent Text Reader

Abstract

The present invention provides a network simulation method and device of a multi-layer data architecture, which relates to the field of network simulation technology and is used to solve the problem of large amount of network simulation calculation and low calculation efficiency in the prior art. The method comprises: a network data body performs network-level simulation calculation according to network common data, each connected domain data body performs connected domain-level simulation calculation according to the network-level simulation calculation result and the connected domain common data, and each device data body performs device-level simulation calculation according to the connected domain-level simulation calculation result and the device independent data to obtain the network simulation result. The present invention performs three-level network simulation calculations on the network data body, the connected domain data body, and the device data body respectively, and the calculations on the network common data and the connected domain common data are respectively completed in the corresponding data bodies, and the calculation results of the upper-layer data body are used as the basis for the calculation of the lower-layer data body, thereby reducing the repeated calculations on the common data in the network simulation, reducing the calculation complexity, and improving the calculation efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of network simulation technology, and in particular to a network simulation method and device for a multi-layer data architecture. Background Art

[0002] Network architecture design is of great significance to operators. Network simulation is an important auxiliary means of large-scale network architecture design. It is used to compare different network design schemes to find a network topology with higher carrying efficiency, more balanced load distribution and better disaster recovery capability.

[0003] There are many network simulation methods and tools available at present. For example, the common NS (Network Simulator) 2 and NS3 are simulation tools commonly used by universities and research institutions. They can not only simulate network topology, but also simulate various routing protocols, message sending processes, etc., and are very powerful. Another example is the commonly used Netplanner (also known as openet) series of tools, which are simulation tools commonly used by operators. They not only support network simulation of IP networks and transmission networks, but also can directly import the configuration of common equipment through online / offline methods to achieve automatic topology identification. In addition, each equipment manufacturer also has its own network simulation tool, which can read the configuration from the manufacturer's equipment and network management to perform network simulation analysis.

[0004] Although the above tools are very powerful, they are basically aimed at restoring the network as much as possible. The problems caused by overly realistic simulation and restoration of routing diffusion models are also very obvious. Since these tools restore a large number of network operation details, they will also calculate data that network designers do not pay attention to when they are running, which makes the calculation amount huge and the calculation efficiency low. For example, if a single simulation is performed on an existing network, it may take half an hour or even a day of calculation time. If the problem faced by network designers is the comparison of a large number of solutions, hundreds, thousands, or even tens of thousands of network solutions may be compared in the early stage of network design. The network simulation needs to be run thousands of times. If it involves disaster recovery analysis for each link being broken once, then a single simulation operation will take 1 hour. Thousands of network simulations are completely unacceptable to such a calculation speed, so existing technologies are difficult to cope with comparative analysis of a large number of solutions. Summary of the invention

[0005] The technical problem to be solved by the present invention is to address the above-mentioned deficiencies in the prior art and to provide a network simulation method for a multi-layer data architecture, a network simulation device for a multi-layer data architecture, and a computer-readable storage medium to solve the problems of huge computational complexity and low computational efficiency in the prior art network simulation.

[0006] In a first aspect, the present invention provides a network simulation method for a multi-layer data architecture, which is applied to a network simulation device for a multi-layer data architecture, the device comprising: a network data body, a connected domain data body, and a device data body;

[0007] The method comprises a simulation operation step, specifically comprising:

[0008] The network data body performs network-level simulation operations based on network public data.

[0009] Each connected domain data body performs connected domain level simulation operations based on the network level simulation operation results and the connected domain public data.

[0010] Each device data body performs device-level simulation calculations based on the connected domain-level simulation calculation results and the device-independent data to obtain the network simulation results.

[0011] Optionally, before the simulation operation step, the method further includes a data loading step, specifically including:

[0012] The network data body loads and stores network public data.

[0013] Each connected domain data body loads and stores its own connected domain public data.

[0014] Each device data body loads and stores its own device independent data.

[0015] Optionally, before the data loading step, the method further includes a data body construction step, specifically including:

[0016] The network data body, each connected domain data body and each device data body are constructed respectively by using instantiated objects of a class, or by using a process, or by using a virtual machine.

[0017] Optionally, each device data body loads and stores its own device independent data.

[0018] The body includes:

[0019] Each device data body obtains the device data of its corresponding device node in the actual network, processes the device data to obtain its own device-independent data, and stores the device-independent data in itself.

[0020] Optionally, after each device data body processes the device data to obtain its own device independent data, the method further includes:

[0021] Each device data body processes the device data to obtain first public data, sends the first public data to the connected domain data body connected to itself, and establishes a first data index about the first public data pointing to the connected domain data body connected to itself;

[0022] Each connected domain data body loads and stores its own connected domain public data, including:

[0023] Each connected domain data body receives the first common data, processes the first common data to obtain its own connected domain common data, and stores the connected domain common data in itself.

[0024] Optionally, after each connected domain data body processes the first common data to obtain its own connected domain common data, the method further includes:

[0025] Each connected domain data body processes the first public data to obtain second public data, sends the second public data to the network data body, and establishes a second data index about the second public data pointing to the network data body;

[0026] The network data body loads and stores network public data, including:

[0027] The network data body receives the second public data, processes the second public data to obtain network public data, and stores the network public data in itself.

[0028] Optionally, after each device data body processes the device data to obtain the first public data, the method further includes:

[0029] Each device data body processes the device data to obtain second public data, and sends the second public data to the network data body,

[0030] Each connected domain data body establishes a second data index about the second public data pointing to the network data body;

[0031] The network data body loads and stores network public data, including:

[0032] The network data body receives the second public data, processes the second public data to obtain network public data, and stores the network public data in itself.

[0033] Optionally, the first public data also includes first level intermodulation data and a device data body pointed to by the first level intermodulation data, or the second public data also includes second level intermodulation data and a device data body pointed to by the second level intermodulation data, or third level intermodulation data and a connected domain data body pointed to by the third level intermodulation data;

[0034] After each connected domain data body receives the first public data, or the network data body receives the second public data, the method further includes:

[0035] Each connected domain data body sends the first level intermodulation data to the device data body pointed to by the first level intermodulation data, or the network data body sends the second level intermodulation data to the device data body pointed to by the second level intermodulation data, or sends the third level intermodulation data to the connected domain data body pointed to by the third level intermodulation data.

[0036] The device data body pointed to by the first / second horizontal intermodulation data receives the first / second horizontal intermodulation data, and stores the first / second horizontal intermodulation data as its own device independent data in itself.

[0037] The connected domain data body pointed to by the third level intermodulation data receives the third level intermodulation data, and stores the third level intermodulation data in itself as its own connected domain public data.

[0038] Optionally, the network data body performs network-level simulation operations based on network public data, specifically including:

[0039] The network data body performs network-level simulation calculations based on the network public data stored in itself to obtain network-level simulation calculation results;

[0040] Each connected domain data body performs connected domain level simulation operations based on the network level simulation operation results and the connected domain public data, specifically including:

[0041] Each connected domain data body obtains the network-level simulation operation result from the network data body according to the second data index, and performs the connected domain-level simulation operation in combination with the connected domain public data stored in itself to obtain the connected domain-level simulation operation result;

[0042] Each device data body performs device-level simulation calculations based on the connected domain-level simulation calculation results and the device-independent data to obtain the network simulation results, including:

[0043] Each device data body obtains the connected domain level simulation operation result from the connected domain data body according to the first data index, and performs device level simulation operation in combination with the device independent data stored in itself to obtain the device level simulation operation result.

[0044] Each device data body determines whether the common data of the connected domain needs to be updated according to the simulation calculation results of each device level. If so, the common data of the connected domain is updated.

[0045] Each connected domain data body re-executes the connected domain level simulation operation based on the updated connected domain common data.

[0046] Each device data body re-executes the device-level simulation operation according to the updated connected domain-level simulation operation results until the connected domain public data does not need to be updated.

[0047] Each device data body uses the simulation operation results of each device level as the network simulation results.

[0048] Optionally, the network data body, each connected domain data body and each device data body are constructed respectively by using an instantiated object of a class, a process or a virtual machine, specifically including:

[0049] Or construct network data bodies with instantiated objects of classes, processes, or virtual machines,

[0050] According to the device node of the network data body, the operation result is determined, or each device data body corresponding to the device node in the actual network is constructed one by one by using the instantiation object of the class, or by using the process, or by using the virtual machine.

[0051] According to the connected domain judgment operation result of the network data body, each connected domain data body corresponding to the connected domain in the actual network is constructed one by one by using the instantiation object of the class, or by using the process, or by using the virtual machine.

[0052] Optionally, the network data body loads and stores network public data, specifically including:

[0053] The network data body loads and stores the basic device information and basic link information of each device node of the actual network as the first network public information.

[0054] The network data body receives the network routing information sent by each device data body, obtains the whole network neighbor information according to the network routing information, and stores the whole network neighbor information as the second network public data in itself;

[0055] The network data body performs network-level simulation operations based on network public data, including:

[0056] The network data body performs device node identification calculation according to the first network public data to identify each device node in the actual network.

[0057] The network data body performs a connected domain identification operation according to the second network public data to identify each connected domain of the actual network and a number of device nodes included in each connected domain.

[0058] Optionally, each device data body loads and stores its own device independent data, specifically including:

[0059] Each device data body loads and stores the basic device information and network routing information of its corresponding device node in the actual network as its own device independent data;

[0060] Each connected domain data body loads and stores its own connected domain public data, including:

[0061] Each connected domain data body loads and stores the link status information of its corresponding connected domain in the actual network and the reachable IP information of several device nodes in the corresponding connected domain as its own connected domain public data according to the network routing information in several device data bodies connected to it.

[0062] Optionally, each connected domain data body performs connected domain level simulation operation according to the network level simulation operation result and the connected domain common data, specifically including:

[0063] Each connected domain data body is connected downward to the device data bodies corresponding to the several device nodes included in each connected domain according to the connected domain discrimination operation result.

[0064] Each connected domain data body performs node shortest path calculation based on link status information and reachable IP information to obtain the shortest path between several device nodes in the connected domain corresponding to itself in the actual network;

[0065] Each device data body performs device-level simulation calculations based on the connected domain-level simulation calculation results and the device-independent data to obtain the network simulation results, including:

[0066] Each device data body obtains the shortest path and the reachable IP information of its corresponding device node in the actual network from several connected domain data bodies connected to it, performs IP routing table calculation based on the shortest path, reachable IP information and its own basic device information, obtains its own routing table in several corresponding connected domains, summarizes several routing tables to obtain its own summary routing table, and determines whether the obtained summary routing table will be converted into new reachable IP information based on its own routing mutual introduction strategy. If so, update the new reachable IP information to point to the reachable IP information in the connected domain data body.

[0067] The connected domain data body pointed to by the new reachable IP information re-calculates the node shortest path based on the updated reachable IP information.

[0068] The device data body converted into new reachable IP information re-executes the IP routing table calculation according to the updated shortest path and reachable IP information until it can no longer be converted into new reachable IP information.

[0069] Each device data body uses each summary routing table as the network simulation result.

[0070] In a second aspect, the present invention provides a network simulation device with a multi-layer data architecture, the device comprising: a network data body, a connected domain data body and a device data body;

[0071] The device includes a simulation operation module, specifically including:

[0072] The first simulation operation unit located in the network data body is used to perform network-level simulation operation according to the network public data.

[0073] The second simulation operation unit located in each connected domain data body is connected to the first simulation operation unit and is used to perform connected domain level simulation operation according to the network level simulation operation result and the connected domain public data.

[0074] The third simulation operation unit located in each device data body is connected to the second simulation operation unit and is used to perform device-level simulation operation according to the connected domain-level simulation operation result and the device-independent data to obtain the network simulation result.

[0075] In a third aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the network simulation method of the multi-layer data architecture as described above is implemented.

[0076] The present invention provides a network simulation method of a multi-layer data architecture, a network simulation device of a multi-layer data architecture and a computer-readable storage medium, wherein three-level network simulation operations are performed respectively on a network data body, a connected domain data body and a device data body, and operations on network common data and connected domain common data are respectively completed in corresponding data bodies, and the operation results of the upper-layer data body are used as the basis for operations on the lower-layer data body, thereby reducing repeated operations on common data required by each device in the network simulation, reducing operation complexity and improving operation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0077] Figure 1 It is a schematic diagram of an existing network simulation method in the background technology of the present invention;

[0078] Figure 2 is a flow chart of a network simulation method for a multi-layer data architecture in an embodiment of the present invention;

[0079] Figure 3 It is a data structure diagram of a network simulation method of a multi-layer data architecture in an embodiment of the present invention;

[0080] Figure 4 is a flow chart of another network simulation method for a multi-layer data architecture according to an embodiment of the present invention;

[0081] Figure 5 It is a schematic diagram of data level intermodulation of a network simulation method of a multi-layer data architecture in an embodiment of the present invention;

[0082] Figure 6 is a schematic diagram of the structure of an actual network to be simulated in an embodiment of the present invention;

[0083] Figure 7It is a data structure and flow chart of another network simulation method of a multi-layer data architecture in an embodiment of the present invention;

[0084] Figure 8 It is a schematic diagram of the structure of a network simulation device with a multi-layer data architecture according to an embodiment of the present invention;

[0085] Fig. 9 It is a structural diagram of another network simulation device with multi-layer data architecture in an embodiment of the present invention. DETAILED DESCRIPTION

[0086] In order to enable those skilled in the art to better understand the technical solution of the present invention, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0087] It should be understood that the specific embodiments and drawings described herein are only used to explain the present invention rather than to limit the present invention.

[0088] It can be understood that, in the absence of conflict, the various embodiments of the present invention and the various features in the embodiments can be combined with each other.

[0089] It can be understood that, for the convenience of description, the drawings of the present invention only show the parts related to the present invention, while the parts irrelevant to the present invention are not shown in the drawings.

[0090] It can be understood that each unit and module involved in the embodiments of the present invention may correspond to only one physical structure, or may be composed of multiple physical structures, or multiple units and modules may be integrated into one physical structure.

[0091] It can be understood that, without conflict, the functions and steps marked in the flowcharts and block diagrams of the present invention may occur in an order different from that marked in the drawings.

[0092] It is understood that the flowcharts and block diagrams of the present invention illustrate the possible architectures, functions, and operations of the systems, devices, equipment, and methods according to the various embodiments of the present invention. Each box in the flowchart or block diagram may represent a unit, module, program segment, or code, which contains executable instructions for implementing the specified functions. Moreover, each box or combination of boxes in the block diagram and flowchart may be implemented by a hardware-based system that implements the specified functions, or may be implemented by a combination of hardware and computer instructions.

[0093] It can be understood that the units and modules involved in the embodiments of the present invention can be implemented by software or hardware. For example, the units and modules can be located in a processor.

[0094] In order to facilitate the understanding of the present invention, the concept of the present invention is first introduced.

[0095] like Figure 1 As shown, in the actual network, the device entity (also called device node, including routers / switches, etc.) exists independently. Each device entity runs its own operating system, its own database, and performs routing operations independently. The devices transmit control plane information through signaling to mutually announce routes and form a communication network. Since each device entity needs to perform its own routing operations, each device needs to maintain its own database. In addition, since different devices are in different physical entities, the results of their respective routing operations cannot be directly known and need to be transmitted by the network through signaling. In network simulation, the simulation platform / system / program is used to simulate and emulate the operation mechanism of the communication network, and a device model is established for each device entity. Each device model simulates each device entity, thereby restoring the actual network. Since a simulation platform / system / program is used for simulation operations, various data are directly visible.

[0096] Therefore, for network simulation, it is not necessary to completely restore all the details in the network, and it is not necessary to completely follow the logic of the operation of the real network equipment and let the simulation of each device completely maintain its own data independently. Instead, a certain amount of abstraction and problem simplification can be done to uniformly save and maintain the repeated data in multiple devices (such as mutually synchronized data), and the simulation of each device can directly use the unified data. In addition, correspondingly, the routing calculation in the network simulation also does not need to completely follow the logic of the operation of the real network equipment and let the simulation of each device calculate completely independently. Instead, many repetitive calculations can be run only once, or many intermediate calculation results can be shared. Under the premise of not affecting the simulation results, the calculation complexity can be reduced as much as possible, and the efficiency of the simulation algorithm can be improved, so that subsequent comparison of multiple schemes becomes possible.

[0097] In view of this, the present invention proposes a network simulation method for a multi-layer data architecture and a corresponding network simulation device and computer-readable storage medium for a multi-layer data architecture, performs a certain degree of abstraction and simplification in the network simulation, and constructs an efficient routing diffusion simulation model, thereby greatly reducing the amount of calculation and controlling a single calculation to within tens of seconds or even a few seconds, making it possible to compare and analyze a large number of network design schemes.

[0098] Embodiment 1:

[0099] like Figure 2 As shown, Embodiment 1 of the present invention provides a network simulation method for a multi-layer data architecture, which is applied to a network simulation device for a multi-layer data architecture, wherein the device includes: a network data body, a connected domain data body, and a device data body;

[0100] The method comprises S03 simulation operation step, specifically comprising:

[0101] S031. The network data body performs network-level simulation calculations based on network public data.

[0102] S032, each connected domain data body performs connected domain level simulation operation according to the network level simulation operation result and the connected domain public data,

[0103] S033. Each device data body performs device-level simulation calculations according to the connected domain-level simulation calculation results and the device-independent data to obtain a network simulation result.

[0104] Specifically, in this embodiment, a network simulation method based on a multi-layer data architecture is proposed, such as Figure 3 As shown, first, the data architecture of the network simulation is divided into three levels in sequence: network level, connected domain level, and device level, and network level / connected domain level / device level data bodies are established respectively. Then, three-level network simulation operations are performed through the network data body, connected domain data body, and device data body respectively. The operations on the network common data and the connected domain common data are completed in the corresponding data bodies respectively. The upper-level data body can uniformly perform relatively repetitive operations, and the operation results of the upper-level data body are used as the basis for the operations of the lower-level data body. The lower-level data body can directly use the unified operation results of the upper-level data body as the intermediate result, and then perform individualized separate operations, thereby reducing the repeated operations of the common data required for each device in the network simulation, reducing the amount of operations in the whole network simulation process, and finally obtaining a complete network simulation result, reducing the operation complexity, and improving the operation efficiency.

[0105] Alternatively, if Figure 4 As shown, before the simulation operation step S03, the method further includes a data loading step S02, which specifically includes:

[0106] The network data body loads and stores network public data.

[0107] Each connected domain data body loads and stores its own connected domain public data.

[0108] Each device data body loads and stores its own device independent data.

[0109] Specifically, in this embodiment, if Figure 3 As shown, a network data body stores and manages common network data for an actual network to be simulated, a connected domain data body stores and manages common data for a connected domain, and a device data body is established to store and manage independent data for a device, so that repetitive data is uniformly stored and maintained by the upper-level data body, and the lower-level data body does not actually store / maintain this data, thereby reducing the amount of data in the simulation process.

[0110] Alternatively, if Figure 4 As shown, before the step S02 of loading data, the method further includes the step S01 of constructing a data body, which specifically includes:

[0111] The network data body, each connected domain data body and each device data body are constructed respectively by using instantiated objects of a class, or by using a process, or by using a virtual machine.

[0112] Specifically, in this embodiment, if Figure 3 As shown, a network-level data body is established for an actual network to be simulated, multiple connected domain-level data bodies are respectively established for multiple connected domains in an actual network to be simulated, and device-level data bodies are respectively established for multiple devices under each connected domain. The network-level / connected domain-level / device-level data bodies can be implemented in a variety of ways: the overall simulation method is implemented in a program manner, and the data body is defined in the program in the form of a class or object, and data bodies are formed one by one after the class is instantiated; the overall simulation method is implemented in a system / platform manner, and the data body is implemented in a process-based manner, each data body corresponds to a program process, and the information exchange between data bodies is inter-process communication; the data body is implemented in a virtual machine (or micro virtual machine)-based manner, each data body corresponds to a virtual system, and the information exchange between data bodies is inter-system communication, and all virtual machines constitute the overall simulation system.

[0113] Optionally, each device data body loads and stores its own device independent data, specifically including:

[0114] Each device data body obtains the device data of its corresponding device node in the actual network, processes the device data to obtain its own device-independent data, and stores the device-independent data in itself.

[0115] Optionally, after each device data body processes the device data to obtain its own device independent data, the method further includes:

[0116] Each device data body processes the device data to obtain first public data, sends the first public data to the connected domain data body connected to itself, and establishes a first data index about the first public data pointing to the connected domain data body connected to itself;

[0117] Each connected domain data body loads and stores its own connected domain public data, including:

[0118] Each connected domain data body receives the first common data, processes the first common data to obtain its own connected domain common data, and stores the connected domain common data in itself.

[0119] Optionally, after each connected domain data body processes the first common data to obtain its own connected domain common data, the method further includes:

[0120] Each connected domain data body processes the first public data to obtain second public data, sends the second public data to the network data body, and establishes a second data index about the second public data pointing to the network data body;

[0121] The network data body loads and stores network public data, including:

[0122] The network data body receives the second public data, processes the second public data to obtain network public data, and stores the network public data in itself.

[0123] Optionally, after each device data body processes the device data to obtain the first public data, the method further includes:

[0124] Each device data body processes the device data to obtain second public data, and sends the second public data to the network data body,

[0125] Each connected domain data body establishes a second data index about the second public data pointing to the network data body;

[0126] The network data body loads and stores network public data, including:

[0127] The network data body receives the second public data, processes the second public data to obtain network public data, and stores the network public data in itself.

[0128] Specifically, in this embodiment, if Figure 3As shown, under the three-level data architecture of network level / connected domain level / device level, the repetitive / common data in multiple lower-level data bodies can be transferred to their upper-level data bodies for unified storage and management, and each lower-level data body only needs to retain the data index to point to the upper-level data body that actually stores / manages this part of the data, and there is no need to actually store this part of the data. That is, the repetitive / common data in multiple devices can be transferred to the connected domain data body for unified storage and management, and the device will point to the connected domain; the repetitive / common data in multiple connected domains can be transferred to the network data body for unified storage and management, and the connected domain will point to the network. The lower-level data body will still save its unique data, only the repetitive / common data will be moved up, and other unique data can continue to be managed and maintained by the lower-level data body itself. After the repetitive / common data in the lower-level data body is moved up, the lower-level data body needs to retain the data index to point to the upper-level data body, because there may be multiple upper-level data bodies, and the lower-level data body needs to know the corresponding relationship after the data is moved up. For example, there can be multiple connected domains in a network, and the device needs to know which connected domain the data moved up belongs to. It does not exclude the possibility that the repetitive / common data is not moved up. For example, when modeling the network simulation, the repetitive / common data of some functions are managed and maintained by the upper-level data body, but the repetitive / common data of other functions are still managed and maintained by the lower-level data body, and it is not required that the repetitive / common data must be moved up. Repetitive data can include link state data and flooding messages of IGP (Interior Gateway Protocol) routing protocols (such as ISIS and OSPF (Open Shortest Path First)); common data can include neighbor state data of IGP routing protocols and BGP (Border Gateway Protocol) routing protocols.

[0129] Optionally, the first public data also includes first level intermodulation data and a device data body pointed to by the first level intermodulation data, or the second public data also includes second level intermodulation data and a device data body pointed to by the second level intermodulation data, or third level intermodulation data and a connected domain data body pointed to by the third level intermodulation data;

[0130] After each connected domain data body receives the first public data, or the network data body receives the second public data, the method further includes:

[0131] Each connected domain data body sends the first level intermodulation data to the device data body pointed to by the first level intermodulation data, or the network data body sends the second level intermodulation data to the device data body pointed to by the second level intermodulation data, or sends the third level intermodulation data to the connected domain data body pointed to by the third level intermodulation data.

[0132] The device data body pointed to by the first / second horizontal intermodulation data receives the first / second horizontal intermodulation data, and stores the first / second horizontal intermodulation data as its own device independent data in itself.

[0133] The connected domain data body pointed to by the third level intermodulation data receives the third level intermodulation data, and stores the third level intermodulation data in itself as its own connected domain public data.

[0134] Specifically, in this embodiment, if Figure 4 As shown in the figure, after adopting the upper and lower layer architecture, the horizontal data exchange between the same-level data bodies can be avoided as much as possible, and the data and operations that need to be exchanged can be moved up to the upper-level data body to achieve vertical data exchange. The final effect is that the operation is mainly presented in a tree-like architecture, the upper-level operation is used by the lower-level, and the levels are basically independent of each other. The advantage of this is that in the operation process, the fewer the index times, the higher the operation efficiency, and the flow efficiency of data in the same data body is definitely better than that in different data bodies; if there is horizontal data exchange at the same level, the information exchange is easy to form a loop, and the requirements for the operation sequence design in the algorithm design process are high. After the transformation to the tree-like operation architecture, the upper and lower belonging relationships are clear, and the operation sequence design of first up and then down is more convenient; the levels are relatively independent, and it is easy to perform distributed operations. Multiple lower-level data bodies can be decentralized. Only consider the data interaction with the upper-level data body, and no longer consider the frequent interaction requirements between the same-level data bodies. After adopting the three-layer data architecture, further decoupling at the same level is performed, and the data and operations that need to interact at the same level are moved up, which can better play the advantages of the three-layer data architecture.

[0135] Optionally, the network data body performs network-level simulation operations based on network public data, specifically including:

[0136] The network data body performs network-level simulation calculations based on the network public data stored in itself to obtain network-level simulation calculation results;

[0137] Each connected domain data body performs connected domain level simulation operations based on the network level simulation operation results and the connected domain public data, specifically including:

[0138] Each connected domain data body obtains the network-level simulation operation result from the network data body according to the second data index, and performs the connected domain-level simulation operation in combination with the connected domain public data stored in itself to obtain the connected domain-level simulation operation result;

[0139] Each device data body performs device-level simulation calculations based on the connected domain-level simulation calculation results and the device-independent data to obtain the network simulation results, including:

[0140] Each device data body obtains the connected domain level simulation operation result from the connected domain data body according to the first data index, and performs device level simulation operation in combination with the device independent data stored in itself to obtain the device level simulation operation result.

[0141] Each device data body determines whether the common data of the connected domain needs to be updated according to the simulation calculation results of each device level. If so, the common data of the connected domain is updated.

[0142] Each connected domain data body re-executes the connected domain level simulation operation based on the updated connected domain common data.

[0143] Each device data body re-executes the device-level simulation operation according to the updated connected domain-level simulation operation results until the connected domain public data does not need to be updated.

[0144] Each device data body uses the simulation operation results of each device level as the network simulation results.

[0145] Specifically, in this embodiment, under the three-level data architecture of network level / connected domain level / device level, for the repetitive / common operations in multiple lower-level data bodies, the upper-level data body can be transferred to perform unified preliminary operations, and each lower-level data body can directly use the unified operation results of the upper-level data body as the intermediate result, and then perform individualized separate operations. That is, the repetitive / common operations in multiple devices can be transferred to the connected domain data body for preliminary operations, and the device will directly call the intermediate result; the repetitive / common operations in multiple connected domains can be transferred to the network data body for preliminary operations, and the connected domain will directly call the intermediate result. The lower-level data body will still retain its unique operations, only the repetitive / common operations will be moved up, and other unique operations still need to be calculated by the lower-level data body itself. Repetitive / common operations do not exclude the possibility of not moving the operations upward. For example, when modeling network simulation, the repetitive / common operations of some functions are handed over to the upper-level data body for unified operation, but the repetitive / common operations of other functions are still retained by the lower-level data body for self-operation, and it is not required that the repetitive / common operations must be moved upward. After the lower-level data body completes its own simulation operation, it can feed back new information to its upper-level data body and trigger the recalculation of the upper-level data body, as well as the recalculation of all subordinate lower-level data bodies of the upper-level data body, such as reverse trigger recalculation caused by state changes or mutual introduction of routing protocols, etc. After all data bodies complete the simulation operation, the final routing simulation operation result is formed.

[0146] Optionally, the network data body, each connected domain data body and each device data body are constructed respectively by using an instantiated object of a class, a process or a virtual machine, specifically including:

[0147] Or construct network data bodies with instantiated objects of classes, processes, or virtual machines,

[0148] According to the device node of the network data body, the operation result is determined, or each device data body corresponding to the device node in the actual network is constructed one by one by using the instantiation object of the class, or by using the process, or by using the virtual machine.

[0149] According to the connected domain judgment operation result of the network data body, each connected domain data body corresponding to the connected domain in the actual network is constructed one by one by using the instantiation object of the class, or by using the process, or by using the virtual machine.

[0150] Optionally, the network data body loads and stores network public data, specifically including:

[0151] The network data body loads and stores the basic device information and basic link information of each device node of the actual network as the first network public information.

[0152] The network data body receives the network routing information sent by each device data body, obtains the whole network neighbor information according to the network routing information, and stores the whole network neighbor information as the second network public data in itself;

[0153] The network data body performs network-level simulation operations based on network public data, including:

[0154] The network data body performs device node identification calculation according to the first network public data to identify each device node in the actual network.

[0155] The network data body performs a connected domain identification operation according to the second network public data to identify each connected domain of the actual network and a number of device nodes included in each connected domain.

[0156] Optionally, each device data body loads and stores its own device independent data, specifically including:

[0157] Each device data body loads and stores the basic device information and network routing information of its corresponding device node in the actual network as its own device independent data;

[0158] Each connected domain data body loads and stores its own connected domain public data, including:

[0159] Each connected domain data body loads and stores the link status information of its corresponding connected domain in the actual network and the reachable IP (Internet Protocol) information of several device nodes in the corresponding connected domain as its own connected domain public data according to the network routing information in several device data bodies connected to it.

[0160] Optionally, each connected domain data body performs connected domain level simulation operation according to the network level simulation operation result and the connected domain common data, specifically including:

[0161] Each connected domain data body is connected downward to the device data bodies corresponding to the several device nodes included in each connected domain according to the connected domain discrimination operation result.

[0162] Each connected domain data body performs node shortest path calculation based on link status information and reachable IP information to obtain the shortest path between several device nodes in the connected domain corresponding to itself in the actual network;

[0163] Each device data body performs device-level simulation calculations based on the connected domain-level simulation calculation results and the device-independent data to obtain the network simulation results, including:

[0164] Each device data body obtains the shortest path and the reachable IP information of its corresponding device node in the actual network from several connected domain data bodies connected to it, performs IP routing table calculation based on the shortest path, reachable IP information and its own basic device information, obtains its own routing table in several corresponding connected domains, summarizes several routing tables to obtain its own summary routing table, and determines whether the obtained summary routing table will be converted into new reachable IP information based on its own routing mutual introduction strategy. If so, update the new reachable IP information to point to the reachable IP information in the connected domain data body.

[0165] The connected domain data body pointed to by the new reachable IP information re-calculates the node shortest path based on the updated reachable IP information.

[0166] The device data body converted into new reachable IP information re-executes the IP routing table calculation according to the updated shortest path and reachable IP information until it can no longer be converted into new reachable IP information.

[0167] Each device data body uses each summary routing table as the network simulation result.

[0168] like Figure 6 and 7 A more specific example is shown below. Figure 6In the scenario shown, there are 6 routers in total, of which routers 1 / 2 / 3 are interconnected in area 1, routers 4 / 5 / 6 are interconnected in area 2, and routers 1 / 4 are interconnected to connect the two areas. In terms of routing, routers 1 / 2 / 3 all have the ISIS 101 process enabled, and the interfaces that are interconnected in pairs are also enabled with ISIS 101; routers 4 / 5 / 6 all have the ISIS 102 process enabled, and the interfaces that are interconnected in pairs are also enabled with ISIS 102; routers 1 / 4 also have the ISIS 100 process enabled, and their interconnected interfaces are enabled with ISIS100; all interfaces that use ISIS have the cost set to 10. In terms of policy, ISIS101 is configured in router 1 to introduce ISIS100, and ISIS102 is configured in router 4 to introduce ISIS100. In terms of business, routers 1-6 are respectively attached with subnets 1-6 as business routes, and ISIS is announced to the local machines. For Figure 6 The network structure shown is constructed as Figure 7 The data architecture shown, Figure 7 In the figure, inside each data body, the left side is data and the right side is operation; the solid line blocks represent the actual stored data, the dotted line blocks represent only data indexes without actual data, and the dotted line arrows further indicate the target of the data index; the solid line arrows represent the actual use of data, including the mutual call of data and algorithms in the data body, and the intermediate operation results of the upper data body for the call of the lower data body. For the convenience of description, routers 1 / 2 / 3 / 4 / 5 / 6 are marked as N1 / 2 / 3 / 4 / 5 / 6 (representing Node nodes), and the connected domain 0 / 1 / 2 is marked as A0 / 1 / 2 (representing Area area). Figure 7 The network simulation process includes:

[0169] Phase 1: Three-tier architecture construction phase

[0170] S1: Build the overall network-level data body; each layer of the three-layer architecture can be implemented using classes, processes or virtual machines, and the whole can be implemented using any of the platforms, systems or programs.

[0171] S2: According to the device information in the network-level data body, the device-level data body is constructed one by one; the basic device / link information is regarded as the information shared by the whole network and is moved up to the network-level data body for unified management and storage; the basic device information includes the device name, device type and model, computer room location, etc. Although this information actually belongs to each device, it will be repeatedly queried / called for network simulation, so it can be regarded as network common information, and the network-level data body is responsible for moving it up; the basic link information includes dual-end devices, dual-end interfaces, link types, bandwidth, distance, etc. This information directly affects the physical topology connection relationship, and will also be repeatedly queried / called for network simulation, so it can also be regarded as network common information, and the network-level data body is responsible for moving it up; the process of moving data up does not necessarily require the data to be transferred from the lower-level data body to the upper-level data body. It only refers to the way of data storage. In this example, the basic device / link information can be directly loaded into the network-level data body.

[0172] S3: The common and repetitive data of each device in the simulation algorithm for network routing problems are uniformly stored in the network-level data body, and the corresponding index relationship is established in each device-level data body; such as the relationship information such as the ISIS neighbor information of the whole network, although it is maintained by the device itself in the actual network, it is logically used to indicate the relationship between devices, which belongs to cross-device information, and logically these neighbor relationships are first established, and then the connected domain is formed according to these neighbor relationships. Therefore, such data can be moved up from the device and handed over to the network-level data body for unified management and maintenance. In addition to maintaining basic equipment / link information, the network-level data body also maintains the ISIS process list of the whole network, including: N1 enables ISIS100 / ISIS101, N2 enables ISIS101, N3 enables ISIS101, N4 enables ISIS100 / ISIS102, N5 enables ISIS102, N6 enables ISIS102: It also maintains the ISIS neighbor information table of the whole network, including:

[0173] S4: The network-level data body determines the connected domain according to the network routing data that is managed and maintained by it, and constructs the connected domain-level data body one by one, and establishes the corresponding index relationship in the connected domain-level data body. In the actual network, there is no real processing link that directly corresponds to this step. This step is moved up to the network-level data body for unified calculation to avoid the problem of intercommunication at the same level. The result of the connected domain judgment operation of the network-level data body is that the network includes 3 connected domains: ISIS100 of N1 / 4 constitutes A0, ISIS101 of N1 / 2 / 3 constitutes A1, and ISIS102 of N4 / 5 / 6 constitutes A2.

[0174] S5: The common and repetitive data of each device in the simulation algorithm for a single connected domain routing problem are uniformly stored in the corresponding connected domain-level data body, and a corresponding index relationship is established in each device-level data body; in view of the fact that in the actual network, the routing announcement mechanism of the ISIS neighbor will form the effect of mutual synchronization of the two-end link state database, so the link state information and the accompanying node reachable IP information actually stored in each device in the same connected domain are consistent and belong to repetitive data. This part of the data can be moved up to the connected domain-level data body, and each device-level data body only needs to retain the index relationship.

[0175] At this point, the three-layer data architecture has been completed, the repetitive / common data has been moved up to a certain location, and the index relationship after the data has been moved up has been established.

[0176] Phase 2: Routing calculation phase

[0177] S6: Each connected domain-level data body performs common and repetitive routing operations in the domain according to the domain routing data that is managed and maintained by it; according to the network topology, after the processing of step 5, the link state information formed by the A0 data body is: The reachable IP information formed is: [N1_ISIS100, subnet 1, cost = 10], [N4_ISIS100, subnet 4, cost = 10]; similarly, the link state information formed by the A1 data body is: The reachable IP information formed is: [N1_ISIS101, subnet 1, cost = 10], [N2_ISIS101, subnet 2, cost = 10], [N3_ISIS101, subnet 3, cost = 10]; similarly, the link state information formed by the A2 data body is: The reachable IP information formed is: [N4_ISIS102, subnet 1, cost=10], [N5_ISIS102, subnet 2, cost=10], [N6_ISIS102, subnet 3, cost=10]. Each connected domain-level data body performs common and repeated routing operations in the domain according to the above information it manages / maintains, that is, the node shortest path operation. The operation results of the A0 data body are: [N1_ISIS100→N4_ISIS100,10], [N4_ISIS100→N1_ISIS100,10]; the operation results of the A1 data body are: [N1_ISIS101→N2_ISIS101,10], [N1_ISIS101→N3_ISIS101,10], [N2_ISIS101→N1_ISIS101,10], [N2_ISIS101→N3_ISIS101, 10], [N3_ISIS101→N1_ISIS101,10], [N3_ISIS101→N2_ISIS101,10]; the calculation results of the A2 data body are: [N4_ISIS102→N5_ISIS102,10], [N4_ISIS102→N6_ISIS102,10], [N5_ISIS102→N4_ISIS102,10], [N5_ISIS102→N6_ISIS102,10], [N6_ISIS102→N4_ISIS102,10], [N6_ISIS102→N5_ISIS102,10]. In the actual network, this part of the operation is performed independently by each device, and only the node path with the device as the source is calculated. In this example, it is uniformly moved up to the connected domain-level data body and regarded as a common operation. This is because in a complex network topology, many operations can be shared. For example, node B has calculated that the shortest path from B to D is B→C→D. When node A calculates A to D, it can call B's calculation result and directly regard A→B→C→D as A→B+B→C→D superimposed on the cost value. Then, the cost is compared with other paths to select the shortest path. It can be seen that if the operations are uniformly moved up to the connected domain-level data body, repeated calculations or node A calling node B's calculation results can be avoided. Such horizontal intercommunication can make the operations located in the same data body, and the external intercommunication of the horizontal data body is transformed into the internal intercommunication of the upper data body.

[0178] S7: Each device-level data body uses the intermediate result of the routing operation of the connected domain-level data body to further perform a separate operation at the device level to form a simulated routing table of the device; each device-level data body uses the intermediate result of the routing operation of the connected domain-level data body to further perform a separate operation at the device level to form a simulated routing table of the device; for example, N1 data body: its N1_ISIS100 points to A0 data body, then according to the intermediate result [N1_ISIS100→N4_ISIS100,10] provided by A0 data body and the reachable IP information, the routing table of N1_ISIS100 is obtained: [destination: subnet 4, next hop: N4, cost=20], its N1_ISIS 101 points to the A1 data body. According to the intermediate results [N1_ISIS101→N2_ISIS101,10], [N1_ISIS101→N3_ISIS101,10] and the reachable IP information provided by the A1 data body, the routing table of N1_ISIS101 is obtained: [Destination: Subnet 2, Next Hop: N2, cost=20], [Destination: Subnet 3, Next Hop: N3, cost=20], and then N1 summarizes each ISIS process to obtain the summary routing table: [Destination: Subnet 4, Next Hop: N4, cost=20], [Destination: Subnet 2, Next Hop: N2, cost=20], [Destination: Subnet 3, Next hop: N3, cost = 20]; Similarly, N4 obtains the summary routing table: [Destination: Subnet 1, Next hop: N1, cost = 20], [Destination: Subnet 5 next hop: N5, cost = 20], [Destination: Subnet 6, Next hop: N6, cost = 20]; Similarly, N2 obtains the summary routing table: [Destination: Subnet 1, Next hop: N1, cost = 20], [Destination: Subnet 3 next hop: N3, cost = 20]; Similarly, N3 obtains the summary routing table: [Destination: Subnet 1, Next hop: N1, cost = 20], [Destination: Subnet 2 next hop: N2, cost = 20]; Similarly, N5 obtains the summary routing table :[Destination: subnet 4, next hop: N4, cost=20], [Destination: subnet 6 next hop: N6, cost=20]; similarly, N6 obtains the summary routing table: [Destination: subnet 4, next hop: N4, cost=20], [Destination: subnet 5 next hop: N5, cost=20]; Regarding the simulation routing table of each device, this example keeps it in the device-level data body and does not move it to the connected domain-level data body. The reason is that in the subsequent route mutual introduction process, the problem of route mutual import will be involved. If the simulation routing table of the device is uniformly moved to the connected domain-level data body, the route mutual import will be the same-level mutual adjustment between the connected domain-level data bodies.

[0179] At this point, the initial routing calculation phase is completed, and each device has obtained its own preliminary simulation routing table.

[0180] Phase 3: Routing mutual referral phase

[0181] S8: Each device-level data body converts the routing table of the designated routing process into new reachable IP information according to its corresponding routing mutual introduction strategy, and introduces it into the connected domain-level data body it points to; each device-level data body converts the routing table of the designated routing process into new reachable IP information according to its corresponding routing mutual introduction strategy, and introduces it into the connected domain-level data body it points to. The routing mutual introduction strategy in this example only involves: ISIS101 of router 1 introduces ISIS100, and ISIS102 of router 4 introduces ISIS100; taking router 1 as an example, the N1_ISIS101 routing table of N1 is temporarily: [Destination: Subnet 2, Next Hop: N2, c ost=20], [destination: subnet 3, next hop: N3, cost=20], which are converted into reachable IP information. In the A0 data body pointed to by N1_ISIS100, the reachable IP information in A0 is added with: [N1_ISIS100, subnet 2, cost=20], [N1_ISIS100, subnet 3, cost=20]; similarly, ISIS102 of router 4 introduces ISIS100, and adds the following to the reachable IP information in A0: [N4_ISIS100, subnet 5, cost=20], [N4_ISIS100, subnet 6, cost=20].

[0182] S9: According to the update information brought by the route mutual introduction, each connected domain-level data body re-executes step S6, and each device-level data body re-executes step S7 / S8 until there is no more update information; According to the update information brought by the route mutual introduction, each connected domain-level data body re-executes step S6, and each device-level data body re-executes step S7 / S8 until there is no more update information; in this example, after step S8, the A1 and A2 data bodies are unchanged, the link status information of the A0 data body is unchanged, and the reachable IP information of the A0 data body is changed to 6: [N1_ISIS100, Subnet 1, cost = 10], [N4_ISIS100, Subnet 4, cost = 10], [N1_ISIS100, Subnet 2, cost = 20], [N1_ISIS100, Subnet 3, cost = 20], [N4_ISIS100, Subnet 5, cost = 20], [N4_ISIS100, Subnet 6, cost = 20]; the data bodies of A1 and A2 have not changed, so there is no need to recalculate step S6; the link state information of the data body of A0 has not changed, so A0 does not need to recalculate the node shortest path in step S6 Calculation; N2 / 3 / 5 / 6 does not need to recalculate step S7 because the A1 / A2 it points to has not changed; N1 / N4 points to ISIS100 of A0, and because the reachable IP information of A0 has changed, step S7 is recalculated; the result of N1 is that the N1_ISIS100 routing table is changed to [destination: subnet 4, next hop: N4, cost=20], [destination: subnet 5, next hop: N4, cost=30], [destination: subnet 6, next hop: N4, cost=30]; the result of N4 is that the N4_ISIS100 routing table is changed to [Destination: Subnet 1, next hop: N1, cost=20], [Destination: Subnet 2, next hop: N1, cost=30], [Destination: Subnet 3, next hop: N1, cost=30]; which causes the N1 / N4 summary routing table to change, and the method is the same as step S7; when each device-level data body re-executes step S8 to introduce routes, N1 finds that the simulation routing table of the introduction source N1_ISIS101 has not changed, and N4 also finds that the simulation routing table of the introduction source N4_ISIS102 has not changed, so there is no more update information, and step S9 ends.

[0183] At this point, the routing mutual introduction phase is completed, and each device has obtained the final simulation routing table.

[0184] Embodiment 1 of the present invention provides a network simulation method of a multi-layer data architecture, which divides the data architecture of the network simulation into three levels in sequence: network level, connected domain level, and device level, and establishes data bodies at the network level / connected domain level / device level respectively, and performs data upward and operation upward in the three-level data bodies respectively; data upward means that for repetitive and shared data, the real situation is no longer completely simulated to allow each logical body to store a copy of the data independently, but an upper-level logical body is constructed, and the upper-level data body uniformly stores the repetitive shared data, and the lower-level data body only calls the data in a directional manner without actually storing / maintaining the data, thereby reducing the amount of data in the simulation process, thereby greatly saving the storage capacity requirements of the algorithm; operation upward means that after the data is moved up, the upper-level logical body can first perform a shared operation based on the shared data to obtain an intermediate result, which can be called by each lower-level logical body, and the lower-level data body can directly use the unified operation result of the upper-level data body as the intermediate result, and then perform individualized separate operations, thereby reducing the amount of operations in the simulation process of the entire network, thereby greatly saving repeated operations in the algorithm.

[0185] Embodiment 2:

[0186] like Figure 8 and 9 As shown, Embodiment 2 of the present invention provides a network simulation device with a multi-layer data architecture, the device comprising: a network data body, a connected domain data body and a device data body;

[0187] The device includes a simulation operation module 03, specifically including:

[0188] The first simulation operation unit 031 located in the network data body is used to perform network-level simulation operations based on network public data.

[0189] The second simulation operation unit 032 located in each connected domain data body is connected to the first simulation operation unit 031 and is used to perform connected domain level simulation operation according to the network level simulation operation result and the connected domain public data.

[0190] The third simulation operation unit 033 located in each device data body is connected to the second simulation operation unit 032, and is used to perform device-level simulation operation according to the connected domain-level simulation operation result and the device-independent data to obtain a network simulation result.

[0191] Alternatively, if Fig. 9 As shown, the device also includes a data loading module 02, which specifically includes:

[0192] The first data loading unit located in the network data body is used to load and store network public data.

[0193] The second data loading unit located in each connected domain data body is used to load and store its own connected domain common data.

[0194] The third data loading unit located in each device data body is used to load and store its own device independent data.

[0195] Alternatively, if Fig. 9 As shown, the device also includes a data body construction module 01, which specifically includes:

[0196] A first data body construction unit is used to construct a network data body using an instantiated object of a class, a process, or a virtual machine.

[0197] The second data volume construction unit is used to construct each connected domain data volume by using an instantiated object of a class, a process, or a virtual machine.

[0198] The third data body construction unit is used to construct each device data body using an instantiated object of a class, a process, or a virtual machine.

[0199] Optionally, the third data loading unit is specifically used to:

[0200] Each device data body obtains the device data of its corresponding device node in the actual network, processes the device data to obtain its own device-independent data, and stores the device-independent data in itself.

[0201] Optionally, the device further includes a data uploading module, specifically including:

[0202] A first data upward movement unit located in each device data body is used to process the device data to obtain first public data, send the first public data to the connected domain data body connected to itself, and establish a first data index about the first public data pointing to the connected domain data body connected to itself;

[0203] The second data loading unit is specifically used for:

[0204] Each connected domain data body receives the first common data, processes the first common data to obtain its own connected domain common data, and stores the connected domain common data in itself.

[0205] Optionally, the data uploading module further includes:

[0206] A second data up-shifting unit located in each connected domain data body is used to process the first public data to obtain second public data, send the second public data to the network data body, and establish a second data index about the second public data pointing to the network data body;

[0207] The first data loading unit is specifically used for:

[0208] The network data body receives the second public data, processes the second public data to obtain network public data, and stores the network public data in itself.

[0209] Optionally, the data uploading module further includes:

[0210] The third data up-moving unit located in each device data body is used to process the device data to obtain the second public data, and send the second public data to the network data body.

[0211] Each connected domain data body establishes a second data index about the second public data pointing to the network data body;

[0212] The first data loading unit is specifically used for:

[0213] The network data body receives the second public data, processes the second public data to obtain network public data, and stores the network public data in itself.

[0214] Optionally, the first public data also includes first level intermodulation data and a device data body pointed to by the first level intermodulation data, or the second public data also includes second level intermodulation data and a device data body pointed to by the second level intermodulation data, or third level intermodulation data and a connected domain data body pointed to by the third level intermodulation data;

[0215] The device also includes a data intermodulation module, which is specifically used for:

[0216] Each connected domain data body sends the first level intermodulation data to the device data body pointed to by the first level intermodulation data, or the network data body sends the second level intermodulation data to the device data body pointed to by the second level intermodulation data, or sends the third level intermodulation data to the connected domain data body pointed to by the third level intermodulation data.

[0217] The device data body pointed to by the first / second horizontal intermodulation data receives the first / second horizontal intermodulation data, and stores the first / second horizontal intermodulation data as its own device independent data in itself.

[0218] The connected domain data body pointed to by the third level intermodulation data receives the third level intermodulation data, and stores the third level intermodulation data in itself as its own connected domain public data.

[0219] Optionally, the first simulation operation unit 031 is specifically used for:

[0220] The network data body performs network-level simulation calculations based on the network public data stored in itself to obtain network-level simulation calculation results;

[0221] The second simulation operation unit 032 is specifically used for:

[0222] Each connected domain data body obtains the network-level simulation operation result from the network data body according to the second data index, and performs the connected domain-level simulation operation in combination with the connected domain public data stored in itself to obtain the connected domain-level simulation operation result;

[0223] The third simulation operation unit 033 is specifically used for:

[0224] Each device data body obtains the connected domain level simulation operation result from the connected domain data body according to the first data index, and performs device level simulation operation in combination with the device independent data stored in itself to obtain the device level simulation operation result.

[0225] Each device data body determines whether the common data of the connected domain needs to be updated according to the simulation calculation results of each device level. If so, the common data of the connected domain is updated.

[0226] The second simulation operation unit 032 is further specifically used for:

[0227] Each connected domain data body re-executes the connected domain level simulation operation according to the updated connected domain common data;

[0228] The third simulation operation unit 033 is further used for:

[0229] Each device data body re-executes the device-level simulation operation according to the updated connected domain-level simulation operation results until the connected domain public data does not need to be updated.

[0230] Each device data body uses the simulation operation results of each device level as the network simulation results.

[0231] Optionally, the data body construction module 01 specifically includes:

[0232] The first data body construction module is used to construct a network data body using an instantiated object of a class, a process, or a virtual machine.

[0233] The second data body construction module is used to determine the operation result of the device node of the network data body or to construct each device data body corresponding to the device node in the actual network one by one by using the instantiation object of the class, or by using the process, or by using the virtual machine.

[0234] The third data body construction module is used to construct each connected domain data body corresponding to the connected domain in the actual network one by one according to the connected domain judgment operation result of the network data body or by instantiated objects of the class, or by processes, or by virtual machines.

[0235] Optionally, the first data loading unit is specifically used to:

[0236] The network data body loads and stores the basic device information and basic link information of each device node of the actual network as the first network public information.

[0237] The network data body receives the network routing information sent by each device data body, obtains the whole network neighbor information according to the network routing information, and stores the whole network neighbor information as the second network public data in itself;

[0238] The first simulation operation unit 031 is specifically used for:

[0239] The network data body performs device node identification calculation according to the first network public data to identify each device node in the actual network.

[0240] The network data body performs a connected domain identification operation according to the second network public data to identify each connected domain of the actual network and a number of device nodes included in each connected domain.

[0241] Optionally, the third data loading unit is specifically used to:

[0242] Each device data body loads and stores the basic device information and network routing information of its corresponding device node in the actual network as its own device independent data;

[0243] The second data loading unit is specifically used for:

[0244] Each connected domain data body loads and stores the link status information of its corresponding connected domain in the actual network and the reachable IP information of several device nodes in the corresponding connected domain as its own connected domain public data according to the network routing information in several device data bodies connected to it.

[0245] Optionally, the second simulation operation unit 032 is specifically used for:

[0246] Each connected domain data body is connected downward to the device data bodies corresponding to the several device nodes included in each connected domain according to the connected domain discrimination operation result.

[0247] Each connected domain data body performs node shortest path calculation based on link status information and reachable IP information to obtain the shortest path between several device nodes in the connected domain corresponding to itself in the actual network;

[0248] The third simulation operation unit 033 is specifically used for:

[0249] Each device data body obtains the shortest path and the reachable IP information of its corresponding device node in the actual network from several connected domain data bodies connected to it, performs IP routing table calculation based on the shortest path, reachable IP information and its own basic device information, obtains its own routing table in several corresponding connected domains, summarizes several routing tables to obtain its own summary routing table, and determines whether the obtained summary routing table will be converted into new reachable IP information based on its own routing mutual introduction strategy. If so, update the new reachable IP information to point to the reachable IP information in the connected domain data body.

[0250] The second simulation operation unit 032 is further specifically used for:

[0251] The connected domain data body pointed to by the new reachable IP information re-performs the node shortest path calculation according to the updated reachable IP information;

[0252] The third simulation operation unit 033 is further used for:

[0253] The device data body converted into new reachable IP information re-executes the IP routing table calculation according to the updated shortest path and reachable IP information until it can no longer be converted into new reachable IP information.

[0254] Each device data body uses each summary routing table as the network simulation result.

[0255] Embodiment 3:

[0256] Embodiment 3 of the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the network simulation method of the multi-layer data architecture as described in Embodiment 1 is implemented.

[0257] The computer-readable storage medium includes volatile or non-volatile, removable or non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, computer program modules or other data). Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable read only memory), flash memory or other memory technology, CD-ROM (Compact Disc Read-Only Memory), digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by a computer.

[0258] In addition, the present invention can also provide a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, the processor executes the network simulation method of the multi-layer data architecture as described in Example 1.

[0259] The memory is connected to the processor, the memory may be a flash memory or a read-only memory or other memory, and the processor may be a central processing unit or a single-chip microcomputer.

[0260] Embodiments 1-3 of the present invention provide a network simulation method of a multi-layer data architecture, a network simulation device of a multi-layer data architecture, and a computer-readable storage medium, which respectively perform three-level network simulation operations on a network data body, a connected domain data body, and a device data body, and the operations on network common data and connected domain common data are respectively completed in corresponding data bodies, and the operation results of the upper-layer data body are used as the basis for the operation of the lower-layer data body, thereby reducing the repeated operations on the common data required by each device in the network simulation, reducing the operation complexity, and improving the operation efficiency.

[0261] It is to be understood that the above embodiments are merely exemplary embodiments used to illustrate the principles of the present invention, but the present invention is not limited thereto. For those of ordinary skill in the art, various modifications and improvements can be made without departing from the spirit and essence of the present invention, and these modifications and improvements are also considered to be within the scope of protection of the present invention.

Claims

1. A network simulation method for multi-layer data architecture, It is characterized in that A network simulation device applied to a multi-layer data architecture, the device comprising: a network data body, a connected domain data body and a device data body; The method comprises a simulation operation step, specifically comprising: The network data body performs network-level simulation operations based on network public data. Each connected domain data body performs connected domain level simulation operations based on the network level simulation operation results and the connected domain public data. Each device data body performs device-level simulation calculations based on the connected domain-level simulation calculation results and the device-independent data to obtain the network simulation results; The connected domain data bodies perform connected domain level simulation operations according to the network level simulation operation results and the connected domain public data, specifically including: Each connected domain data body is connected downward to the device data bodies corresponding to the several device nodes included in each connected domain according to the connected domain discrimination operation result. Each connected domain data body performs node shortest path calculation based on link status information and reachable IP information to obtain the shortest path between several device nodes in the connected domain corresponding to itself in the actual network; Each device data body performs device-level simulation calculations according to the connected domain-level simulation calculation results and the device-independent data to obtain a network simulation result, specifically including: Each device data body obtains the shortest path and the reachable IP information of its corresponding device node in the actual network from several connected domain data bodies connected to it, performs IP routing table calculation based on the shortest path, reachable IP information and its own basic device information, obtains its own routing table in several corresponding connected domains, summarizes several routing tables to obtain its own summary routing table, and determines whether the obtained summary routing table will be converted into new reachable IP information based on its own routing mutual introduction strategy. If so, update the new reachable IP information to point to the reachable IP information in the connected domain data body. The connected domain data body pointed to by the new reachable IP information re-calculates the node shortest path based on the updated reachable IP information. The device data body converted into new reachable IP information re-executes the IP routing table calculation according to the updated shortest path and reachable IP information until it can no longer be converted into new reachable IP information. Each device data body uses each summary routing table as the network simulation result.

2. The method according to claim 1, It is characterized in that Before the simulation operation step, the method further includes a data loading step, which specifically includes: The network data body loads and stores network public data. Each connected domain data body loads and stores its own connected domain public data. Each device data body loads and stores its own device independent data.

3. The method according to claim 2, It is characterized in that Before the data loading step, the method further includes a data body construction step, which specifically includes: The network data body, each connected domain data body and each device data body are constructed respectively by using instantiated objects of a class, or by using a process, or by using a virtual machine.

4. The method according to claim 2 or 3, It is characterized in that Each device data body loads and stores its own device independent data, including: Each device data body obtains the device data of its corresponding device node in the actual network, processes the device data to obtain its own device-independent data, and stores the device-independent data in itself.

5. The method according to claim 4, It is characterized in that After each device data body processes the device data to obtain its own device independent data, the method further includes: Each device data body processes the device data to obtain first public data, sends the first public data to the connected domain data body connected to itself, and establishes a first data index about the first public data pointing to the connected domain data body connected to itself; Each connected domain data body loads and stores its own connected domain public data, including: Each connected domain data body receives the first common data, processes the first common data to obtain its own connected domain common data, and stores the connected domain common data in itself.

6. The method according to claim 5, It is characterized in that After each connected domain data body processes the first common data to obtain its own connected domain common data, the method further includes: Each connected domain data body processes the first public data to obtain second public data, sends the second public data to the network data body, and establishes a second data index about the second public data pointing to the network data body; The network data body loads and stores network public data, including: The network data body receives the second public data, processes the second public data to obtain network public data, and stores the network public data in itself.

7. The method according to claim 5, It is characterized in that After each device data body processes the device data to obtain the first public data, the method further includes: Each device data body processes the device data to obtain second public data, and sends the second public data to the network data body, Each connected domain data body establishes a second data index about the second public data pointing to the network data body; The network data body loads and stores network public data, including: The network data body receives the second public data, processes the second public data to obtain network public data, and stores the network public data in itself.

8. The method according to claim 6 or 7, It is characterized in that The first public data also includes first level intermodulation data and a device data body pointed to by the first level intermodulation data, or the second public data also includes second level intermodulation data and a device data body pointed to by the second level intermodulation data, or third level intermodulation data and a connected domain data body pointed to by the third level intermodulation data; After each connected domain data body receives the first public data, or the network data body receives the second public data, the method further includes: Each connected domain data body sends the first level intermodulation data to the device data body pointed to by the first level intermodulation data, or the network data body sends the second level intermodulation data to the device data body pointed to by the second level intermodulation data, or sends the third level intermodulation data to the connected domain data body pointed to by the third level intermodulation data. The device data body pointed to by the first / second horizontal intermodulation data receives the first / second horizontal intermodulation data, and stores the first / second horizontal intermodulation data as its own device independent data in itself. The connected domain data body pointed to by the third level intermodulation data receives the third level intermodulation data, and stores the third level intermodulation data in itself as its own connected domain public data.

9. The method according to claim 6 or 7, It is characterized in that The network data body performs network-level simulation operations based on network public data, including: The network data body performs network-level simulation calculations based on the network public data stored in itself to obtain network-level simulation calculation results; Each connected domain data body performs connected domain level simulation operations based on the network level simulation operation results and the connected domain public data, specifically including: Each connected domain data body obtains the network-level simulation operation result from the network data body according to the second data index, and performs the connected domain-level simulation operation in combination with the connected domain public data stored in itself to obtain the connected domain-level simulation operation result; Each device data body performs device-level simulation calculations based on the connected domain-level simulation calculation results and the device-independent data to obtain the network simulation results, including: Each device data body obtains the connected domain level simulation operation result from the connected domain data body according to the first data index, and performs device level simulation operation in combination with the device independent data stored in itself to obtain the device level simulation operation result. Each device data body determines whether the common data of the connected domain needs to be updated according to the simulation calculation results of each device level. If so, the common data of the connected domain is updated. Each connected domain data body re-executes the connected domain level simulation operation based on the updated connected domain common data. Each device data body re-executes the device-level simulation operation according to the updated connected domain-level simulation operation results until the connected domain public data does not need to be updated. Each device data body uses the simulation operation results of each device level as the network simulation results.

10. The method according to claim 3, It is characterized in that The network data body, each connected domain data body and each device data body are constructed respectively by using instantiated objects of a class, processes or virtual machines, including: Or construct network data bodies with instantiated objects of classes, processes, or virtual machines, According to the device node of the network data body, the operation result is determined, or each device data body corresponding to the device node in the actual network is constructed one by one by using the instantiation object of the class, or by using the process, or by using the virtual machine. According to the connected domain judgment operation result of the network data body, each connected domain data body corresponding to the connected domain in the actual network is constructed one by one by using the instantiation object of the class, or by using the process, or by using the virtual machine.

11. The method according to claim 10, It is characterized in that The network data body loads and stores network public data, including: The network data body loads and stores the basic device information and basic link information of each device node of the actual network as the first network public information. The network data body receives the network routing information sent by each device data body, obtains the whole network neighbor information according to the network routing information, and stores the whole network neighbor information as the second network public data in itself; The network data body performs network-level simulation operations based on network public data, including: The network data body performs device node identification calculation according to the first network public data to identify each device node in the actual network. The network data body performs a connected domain identification operation according to the second network public data to identify each connected domain of the actual network and a number of device nodes included in each connected domain.

12. The method according to claim 11, It is characterized in that Each device data body loads and stores its own device independent data, including: Each device data body loads and stores the basic device information and network routing information of its corresponding device node in the actual network as its own device independent data; Each connected domain data body loads and stores its own connected domain public data, including: Each connected domain data body loads and stores the link status information of its corresponding connected domain in the actual network and the reachable IP information of several device nodes in the corresponding connected domain as its own connected domain public data according to the network routing information in several device data bodies connected to it.

13. A network simulation device with a multi-layer data architecture, It is characterized in that The device comprises: a network data body, a connected domain data body and a device data body; The device includes a simulation operation module, specifically including: The first simulation operation unit located in the network data body is used to perform network-level simulation operation according to the network public data. The second simulation operation unit located in each connected domain data body is connected to the first simulation operation unit and is used to perform connected domain level simulation operation according to the network level simulation operation result and the connected domain public data. A third simulation operation unit located in each device data body, connected to the second simulation operation unit, is used to perform device-level simulation operation according to the connected domain-level simulation operation result and the device-independent data to obtain a network simulation result; The second simulation operation unit is specifically used for: Each connected domain data body is connected downward to the device data bodies corresponding to the several device nodes included in each connected domain according to the connected domain discrimination operation result. Each connected domain data body performs node shortest path calculation based on link status information and reachable IP information to obtain the shortest path between several device nodes in the connected domain corresponding to itself in the actual network; The third simulation operation unit is specifically used for: Each device data body obtains the shortest path and the reachable IP information of its corresponding device node in the actual network from several connected domain data bodies connected to it, performs IP routing table calculation based on the shortest path, reachable IP information and its own basic device information, obtains its own routing table in several corresponding connected domains, summarizes several routing tables to obtain its own summary routing table, and determines whether the obtained summary routing table will be converted into new reachable IP information based on its own routing mutual introduction strategy. If so, update the new reachable IP information to point to the reachable IP information in the connected domain data body. The second simulation operation unit is also specifically used for: re-performing node shortest path operation on the connected domain data body pointed to by the new reachable IP information according to the updated reachable IP information; The third simulation operation unit is further used for: The device data body converted into new reachable IP information re-executes the IP routing table calculation according to the updated shortest path and reachable IP information until it can no longer be converted into new reachable IP information. Each device data body uses each summary routing table as the network simulation result.

14. A computer-readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the network simulation method of the multi-layer data architecture as described in any one of claims 1-12 is implemented.

Citation Information

Patent Citations

  • Virtual trees routing protocol for an ATM-based mobile network

    US5872773A

  • Scheduled network layer programming within a multi-topology computer network

    US8824274B1