A network simulation method based on digital twin
By introducing data cache server and simulation network management software into the network simulation system, using the simulation optimization module to realize efficient simulation mode and IP head verification optimization mode, the problem of insufficient processing capabilities of simulation systems in the existing technology is solved, and the simulation is improved Verification effect.
Patent Information
- Application Number
- CN202210754733.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-30
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2042-06-30
AI Technical Summary
The existing network simulation systems are limited in terms of processing capabilities and bandwidth, making it difficult to get close to the performance of the real network, affecting the simulation verification effect.
A network simulation system based on digital twins was designed, using data cache server and simulation network management software, and the simulation optimization module was used to realize efficient simulation mode and IP head verification optimization mode, optimize the network simulation data processing process, and reduce the simulation network's Data forwarding burden.
The simulation capabilities of the network simulation system are improved, making it closer to the processing capabilities of the real network, and the effectiveness of network simulation verification is enhanced.
Smart Images

Figure CN115208772B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to network simulation technology, and in particular to a network simulation method based on digital twins. Background Art
[0002] TTL is the abbreviation of Time to Live. The function of TTL is to limit the existence time of IP data packets in computer networks. The maximum value of TTL is 255. The main function of TTL is to avoid infinite circulation and sending and receiving of IP packets in the network and save network resources.
[0003] MTU is the abbreviation of Maximum Transmission Unit, which refers to the largest data packet that can pass through a certain layer of a communication protocol. In network communication, fragmentation and reassembly should be avoided as much as possible, because fragmentation and reassembly have a greater impact on network performance. The larger the MTU, the greater the delay in transmitting a data packet, and the larger the MTU, the greater the probability of bit errors in the data packet. Choosing the appropriate MTU size when sending data packets is necessary to improve communication performance.
[0004] Digital twin, also known as digital mapping and digital mirroring, makes full use of physical models, sensor updates, operation history and other data, integrates multi-disciplinary, multi-physical quantity, multi-scale, and multi-probability simulation processes, and completes mapping in virtual space, thereby reflecting the entire life cycle of the corresponding physical equipment.
[0005] In the process of product development, digital twins can virtually construct digital models of products, conduct simulation tests and verification. In manufacturing, the operation of equipment and the changes brought about by parameter adjustments can be simulated, which can effectively improve the reliability and availability of products while reducing product development and manufacturing risks. In the maintenance stage, the continuous collection and intelligent analysis of operating data through digital twin technology can predict the best time for maintenance work, provide reference for maintenance cycles, and reference for failure points and failure probabilities, bringing obvious efficiency improvements and cost reductions to industrial manufacturing.
[0006] During network transmission, IP data packets are limited by the number of forwarding hops and the maximum transmission unit, resulting in reduced transmission efficiency and transmission delays, which affects communication quality. If real equipment is used to test the optimization plan for communication quality, it will bring unpredictable time costs and capital investment, and generate unnecessary risks. In view of this, digital twin technology can be used. Through the virtualized network simulation model, engineers can debug and experiment in the virtual space to achieve the best operating effect of the equipment.
[0007] In the past, network simulation often used simulation tools such as OPNET. Later, network simulation based on Docker and digital twins was also applied. The network simulation system based on Docker and digital twins can increase the scale of the network system and realize data forwarding processing of real network services and virtual services, but the bandwidth and delay of the simulated network elements for real business data are limited by the resources of the deployed hardware environment. However, the closer the network simulation system is to the bandwidth and delay of the real network, the more it can achieve the simulation verification effect of the network. Therefore, the technical problem that this patent needs to solve is that the network simulation system needs to improve the simulation communication performance, so that the simulated network can access the real network services and be closer to the processing capabilities of the real network, so as to better support the use of the network simulation system for network simulation verification. Summary of the invention
[0008] In response to the problems raised by the background technology, the present invention discloses a network simulation method based on digital twins, designs a network simulation system based on digital twins, designs a data cache server and simulation network management software in the network simulation system, and the simulation network management software is mainly composed of a network element model and simulation management software, wherein a simulation optimization module is designed in the network element model of the simulation network management software. The data cache server realizes the storage and interaction of simulation network data; the network element model realizes the functional simulation and simulation optimization of real network equipment; the simulation optimization module realizes the network simulation optimization under the efficient simulation mode and the IP header verification optimization mode, wherein the processing process of the efficient simulation mode includes three parts: the initial processing step, the forwarding processing step, and the restoration processing step, and the processing process of the IP header verification optimization mode includes two parts: the forwarding processing step and the restoration processing step.
[0009] A network simulation system constructed by a network simulation method based on digital twins is composed of simulation network management software and a data cache server. The simulation network management software can create simulation network elements through network element models. The simulation network is composed of multiple simulation network elements. The network element model is a Docker image or other virtual machine image. Each image independently runs the software of a virtual network switching device or a network transmission device. The network simulation system is used to simulate a real communication network. It is a digital twin of a real communication network. It can load network service data of a real network and can also create service data simulating a real network from within the simulation system. The simulation network element virtualizes the network card through a container or virtual machine technology to build a device virtual port, and communicates data with other simulation network elements, terminals and real network devices through the virtual port. Therefore, the network simulation system can realize the digital twin function of real business and real feedback data access in the physical network world. The simulation optimization module runs after the network element model is loaded and created as a simulation network element, and controls and changes the data processing process of the simulation network element.
[0010] The network simulation system described above has two main application scenarios. One is to interconnect with the real network in real time, synchronize physical network data, present various data collection indicators of the simulated network, and build a real-time digital twin system to achieve real-time control of the real network. The second is to realize historical evaluation and analysis of the real network by simulating and replaying the business terminal data of the real network.
[0011] In the first type of application scenario, the network simulation system described above constructs a simulated network according to the planned topology of the real network. The simulated network realizes the interconnection of the simulated network element ports and the real network ports through virtual network cards and other means, and transmits network data to each other. The simulated network configures the parameters of the simulated network elements according to the network parameters of the real network, and processes the network data of the forwarding interconnection channel. The simulated network elements report the performance and status data inside the network elements collected during operation to the simulated network management software. The simulated network management software performs classification analysis and presents the overall status and parameters of the simulated network and the status and parameters of each network element. The user of the network simulation system can analyze and judge the actual situation of the current network by observing the status of the simulated network, and predict possible network congestion, network instability and other problems in advance, and optimize and adjust the network in real time.
[0012] In the second type of application scenario, the network simulation system described above uses the simulation network management software to construct a simulation network according to the planned topology of the historical real network. The simulation network interconnects the simulation network elements with the real business terminals through virtual network cards and other means. The real business terminals are controlled by human operation of the real business terminals or by the simulation network management software, so that the real business terminals generate the same data as those generated in the historical real network. The simulation network management software is used to collect and present the network communication conditions and network communication performance at that time. The simulation network management software is used to change and replace the simulation network element parameters to verify the network communication conditions and network communication performance under different network optimization parameters. This application scenario can effectively test the network communication capabilities and can improve the network adaptation and optimization adjustment capabilities of the training users.
[0013] The simulation network element, under the action of the simulation optimization module, implements the following working steps of network simulation optimization in the efficient simulation mode and the IP header verification optimization mode:
[0014] The initial processing steps of the simulated network for data in the efficient simulation mode are as follows: the external real network data accessed by the simulated network will reset and back up the IP data part when passing through the first simulated network element. The reset is to use the length of the original IP message data part and the temporarily generated data unique ID number to replace the content of the original IP message data part. The length of the original IP message data part is called the original IP message data length. The replaced IP message is referred to as the simulated optimized IP message. The simulated optimized IP message forwards the data to other simulated network elements according to the forwarding processing steps of the simulated network in the efficient simulation mode, and at the same time backs up the content of the original IP message data part to the data cache server;
[0015] The forwarding processing steps of the simulated network for data in the efficient simulation mode are as follows: after receiving the simulated optimized IP message, the simulated network element will read the original IP message data length stored in the data part of the message, and the simulated network element will use the length information as the length of the data part of the IP message to complete the message exchange and forwarding processing. In the efficient simulation mode, after the simulated network element forwards the simulated optimized IP message, if the simulated network element determines that the next hop address it forwards is the simulated network element address, it will directly forward it. If it is a terminal address in the real network or simulated network, the simulated network data restoration processing steps in the efficient simulation mode are used to process the data before forwarding it.
[0016] The steps for restoring data in the simulated network under the efficient simulation mode are as follows: in the efficient simulation mode, after the simulated network element forwards the data for the simulated optimized IP message, when the simulated network element determines that the next hop address to be forwarded is the real network, it will obtain the backup data of the unique data ID number stored in the data part of the IP message from the data cache server, and will obtain the backup data of the data part of the simulated optimized IP message from the data cache server, and the identification basis obtained is the unique ID number stored in the simulated optimized IP message, and the simulated network element replaces the data part of the simulated optimized IP message with the obtained backup data;
[0017] The simulated network data forwarding processing steps in the IP header check optimization mode are as follows: when the simulated network element forwards the data in the simulated network, the IP header check is turned off, and at the same time, after the simulated network element executes the decrement of the TTL value of the IP header, the checksum field of the IP header is no longer recalculated;
[0018] The steps of restoring simulated network data in the IP header check optimization mode are as follows: when the simulated network element determines that the next hop is a terminal address in the real network or the simulated network, the checksum is recalculated according to the latest IP header.
[0019] The simulated network created by the simulation network management software and the data cache server are connected through a channel based on Linux's virtual network card technology, thus realizing a dedicated fast data storage and reading channel to meet the fast data storage requirements of the simulated network of the network simulation system.
[0020] The network simulation system can be set to enable the simulation optimization module under the condition of a specified simulation scale. The IP header verification optimization mode and the high-efficiency simulation mode in the simulation optimization module can be enabled and take effect at the same time; when the IP header verification optimization mode and the high-efficiency simulation mode are not enabled, the network simulation system maintains the original data forwarding processing method to process network data.
[0021] When the simulated network element in the network simulation system receives a simulated optimized IP message in the high-efficiency simulation mode, the simulated network element will read the length value of the original IP message data part stored in the simulated optimized IP message data part. When the simulated network element's restriction on the IP message MTU is less than the original IP message data length, the simulated network element will no longer perform packet processing on the simulated optimized IP message.
[0022] The beneficial technical effect of the present invention is: a network simulation method based on digital twins, which constructs a digital twin network simulation system. The system uses a data cache server to store the business data of the simulated network. When building a large-scale simulated network, the network simulation system uses two simulation optimization modes: high-efficiency simulation mode and IP header verification optimization mode. It can reduce the capacity of business data forwarded in the simulated network, reduce the data forwarding processing burden, and make the simulated network closer to the processing capabilities of the real network, thereby better achieving the purpose of using the network simulation system for network simulation verification. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide further understanding of the present invention and constitute a part of this application. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0024] Attached Figure 1 , one A schematic diagram of the composition of a network simulation method based on digital twins;
[0025] Attached Figure 2 , one A schematic diagram of the initial processing process of the simulation network on data in an efficient simulation mode of a network simulation method based on digital twins;
[0026] Attached Figure 3 , one Schematic diagram of the data restoration process of the simulation network under the efficient simulation mode of a network simulation method based on digital twins. DETAILED DESCRIPTION
[0027] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0028] See attached Figure 1 As shown, this embodiment provides a schematic diagram of the composition of a network simulation method based on digital twins. The network simulation system includes a simulation network management software and a data cache server. The simulation network management software virtualizes and creates a simulation network. The simulation network includes network element A, network element B, network element C, and terminal D. The external network accesses the network simulation system through the simulation network. The data cache server is used to store the IP message data part generated by the simulation network, and generate a unique ID number for each IP message data part, and feed the ID number back to the simulation network element in the simulation network. The data cache server can retrieve the IP message data part according to the ID number provided by the simulation network element, and send the IP message data part to the simulation network element. The simulation optimization module of the simulation network element realizes network simulation optimization in the efficient simulation mode and the IP header verification optimization mode, and improves the simulation capability of the network simulation system, wherein the processing process of the efficient simulation mode includes three parts: initial processing step, forwarding processing step, and restoration processing step, and the processing process of the IP header verification optimization mode includes two parts: forwarding processing step and restoration processing step.
[0029] See attached Figure 2As shown, the present embodiment provides a schematic diagram of the initial processing process of the simulated network on data in the efficient simulation mode of the network simulation method based on digital twins. The external real network data accessed by the simulated network will reset and back up the IP data part when passing through the first simulated network element. The reset is to use the length of the original IP message data part and the temporarily generated data unique ID number to replace the content of the original IP message data part. The length of the original IP message data part is called the original IP message data length. The replaced IP message is referred to as the simulated optimized IP message. The simulated optimized IP message forwards the data to other simulated network elements according to the forwarding processing steps of the simulated network in the efficient simulation mode. At the same time, the original I The content of the data part of the P message is backed up to the data cache server; the forwarding processing steps of the simulated network for data in the efficient simulation mode are as follows: after receiving the simulated optimized IP message, the simulated network element will read the original IP message data length stored in the data part of the message, and the simulated network element will use the length information as the length of the IP message data part to complete the message exchange and forwarding processing. In the efficient simulation mode, after the simulated network element forwards the simulated optimized IP message, if the simulated network element determines that the next hop address it forwards is the simulated network element address, it will directly forward it. If it is a terminal address in the real network or simulated network, the simulated network data restoration processing steps in the efficient simulation mode are used to process the data before forwarding it.
[0030] Attached Figure 2 In the example, the terminal or external network accesses network element B and sends IP message F to network element B. The structure of IP message F includes IP message IP header and IP message data part. When IP message F passes through network element B, network element B stores the IP message data part of the IP message in the data cache server, obtains the ID (IP message data part of IP message F) from the data cache server, and replaces the content of the IP message data part with the ID and the length Length of IP message F (IP message data part of IP message F). After the replacement is completed, the replaced IP message F is forwarded to network element C.
[0031] See attached Figure 3As shown, this embodiment provides a schematic diagram of the data restoration processing process of the simulated network under the efficient simulation mode of the network simulation method based on digital twins. The steps of restoring the data of the simulated network under the efficient simulation mode are: in the efficient simulation mode, after the simulated optimized IP message is forwarded by the simulated network network element, when the simulated network network element determines that the next hop address forwarded is the real network, it will obtain the backup data of the unique data ID number stored in the data part of the IP message from the data cache server, and obtain the backup data of the data part of the simulated optimized IP message from the data cache server. The identification basis obtained is the unique ID number stored in the simulated optimized IP message, and the simulated network network element replaces the data part of the simulated optimized IP message with the obtained backup data.
[0032] Attached Figure 3 In the example, network element B is connected to network element C, which is interconnected with a terminal or an external network. Network element B sends IP message F2 to network element C, where IP message F2 contains the IP header, ID (IP message data part), and Length (IP message data part). When IP message F2 passes through network element C, network element C obtains the IP message data part of the corresponding ID from the data cache server according to the ID (IP message data part) of F2, and replaces the content of this part with the IP data part of the IP message. After the replacement is completed, it is forwarded to the terminal or external network.
[0033] The processing process of the efficient simulation mode of the network simulation system includes three parts: initial processing step, forwarding processing step, and restoration processing step. The specific steps are as follows:
[0034] In the efficient simulation mode, the initial processing steps of the simulation network for data are as follows: Figure 2 as stated;
[0035] The forwarding processing steps of the simulated network for data in the efficient simulation mode are as follows: after receiving the simulated optimized IP message, the simulated network element will read the original IP message data length stored in the data part of the message, and the simulated network element will use the length information as the length of the data part of the IP message to complete the message exchange and forwarding processing. In the efficient simulation mode, after the simulated network element forwards the simulated optimized IP message, if the simulated network element determines that the next hop address it forwards is the simulated network element address, it will directly forward it. If it is a terminal address in the real network or simulated network, the simulated network data restoration processing steps in the efficient simulation mode are used to process the data before forwarding it.
[0036] In the efficient simulation mode, the simulation network restores the data in the following steps: Figure 3 described.
[0037] The simulated network data forwarding processing steps in the IP header check optimization mode are as follows: when the simulated network element forwards the data in the simulated network, the IP header check is turned off, and at the same time, after the simulated network element executes the decrement of the TTL value of the IP header, the checksum field of the IP header is no longer recalculated;
[0038] The steps of restoring simulated network data in the IP header check optimization mode are as follows: when the simulated network element determines that the next hop is a terminal address in the real network or the simulated network, the checksum is recalculated according to the latest IP header.
[0039] The network simulation system can be set to enable the simulation optimization module under the condition of a specified simulation scale. The IP header check optimization mode and the efficient simulation mode in the simulation optimization module can be enabled and take effect at the same time; when the IP header check optimization mode and the efficient simulation mode are not enabled, the network simulation system maintains the original data forwarding processing method to process network data. For example, if the network simulation system is set to enable the efficient simulation mode in the simulation optimization module when the simulation network scale reaches 200 devices, then after the simulation network scale reaches 200 devices, the simulated network element will receive the efficient simulation mode enable command issued by the network simulation software and enable the efficient simulation mode. Similarly, when the IP header check optimization mode is enabled after the simulation network scale is set to reach 200 devices, the IP header check optimization mode will be enabled when the conditions are met.
[0040] When the simulated network element in the network simulation system receives the simulated optimized IP message in the efficient simulation mode, the simulated network element will read the length value of the original IP message data part stored in the simulated optimized IP message data part. When the limit of the simulated network element on the IP message MTU is less than the original IP message data length, the simulated network element will no longer perform packet processing on the simulated optimized IP message. If the MTU of the real network device simulated by the simulated network element is 1500 bytes, then in the simulated network, the simulated network element will not limit the size of the network IP message according to the MTU of the real network device, and will not perform packet processing on the network IP message.
Claims
1. A network simulation method based on digital twins, characterized in that: A network simulation system based on digital twins was designed. A data cache server and simulation network management software were designed in the network simulation system. A simulation optimization module was designed in the network element model of the simulation network management software. The data cache server realizes the storage and interaction of simulation network data. The network element model realizes the functional simulation and simulation optimization of real network equipment; the simulation optimization module realizes the network simulation optimization under the efficient simulation mode and the IP header verification optimization mode, and improves the simulation capability of the network simulation system. The processing process of the efficient simulation mode includes three parts: initial processing step, forwarding processing step, and restoration processing step. The processing process of the IP header verification optimization mode includes two parts: forwarding processing step and restoration processing step. Under the action of the simulation optimization module, the simulated network element realizes the network simulation optimization under the efficient simulation mode and the IP header verification optimization mode. The working steps are as follows: The initial processing steps of the simulated network for data in the efficient simulation mode are as follows: the external real network data accessed by the simulated network will reset and back up the IP data part when passing through the first simulated network element. The reset is to use the length of the original IP message data part and the temporarily generated data unique ID number to replace the content of the original IP message data part. The length of the original IP message data part is called the original IP message data length. The replaced IP message is referred to as the simulated optimized IP message. The simulated optimized IP message forwards the data to other simulated network elements according to the forwarding processing steps of the simulated network in the efficient simulation mode, and at the same time backs up the content of the original IP message data part to the data cache server; The steps for forwarding data in the simulated network under the efficient simulation mode are as follows: after receiving the simulated optimized IP message, the simulated network element will read the original IP message data length stored in the data part of the message, and use the length information as the length of the data part of the IP message to complete the message exchange and forwarding processing. In the efficient simulation mode, after the simulated network element forwards the simulated optimized IP message, if the simulated network element determines that the next address to be forwarded is the simulated network element address, it will directly forward it. If it is a terminal address in the real network or simulated network, the simulated network data restoration processing steps under the efficient simulation mode will be used to process the data before forwarding it. The steps for restoring data in the simulated network under the efficient simulation mode are as follows: in the efficient simulation mode, after the simulated optimized IP message is forwarded by the simulated network element, when the simulated network element determines that the next address it forwards is the real network, it will obtain the backup data of the unique data ID number stored in the data part of the IP message from the data cache server, and will obtain the backup data of the data part of the simulated optimized IP message from the data cache server, and the identification basis obtained is the unique ID number stored in the simulated optimized IP message, and the simulated network element replaces the data part of the simulated optimized IP message with the obtained backup data; The simulated network data forwarding processing steps in the IP header check optimization mode are as follows: when the simulated network element forwards the data in the simulated network, the IP header check is turned off, and at the same time, after the simulated network element executes the decrement of the TTL value of the IP header, the checksum field of the IP header is no longer recalculated; The processing steps of restoring simulated network data in IP header check optimization mode are as follows: when the simulated network element determines that the next one is a terminal address in a real network or simulated network, the checksum is recalculated according to the latest IP header.
2. A network simulation method based on digital twins according to claim 1, characterized in that: The network simulation system can be set to enable the simulation optimization module under the condition of a specified simulation scale. The IP header verification optimization mode and the high-efficiency simulation mode in the simulation optimization module can be enabled and take effect at the same time; when the IP header verification optimization mode and the high-efficiency simulation mode are not enabled, the network simulation system maintains the original data forwarding processing method to process network data.
3. According to a network simulation method based on digital twins according to claim 1, it is characterized in that: When the simulated network element in the network simulation system receives a simulated optimized IP message in the high-efficiency simulation mode, the simulated network element will read the length value of the original IP message data part stored in the simulated optimized IP message data part. When the simulated network element processes the forwarding data, it will no longer use MTU to limit the size of the forwarded message, and the simulated network element will no longer perform packet processing on the simulated optimized IP message.
