A Real-time Simulation and Testing Method for a Large-scale Scalable Networking Protocol

By using the Exata system and Docker container to build a large-scale scalable networking in large-scale network simulation tests, the problem of difficult to guarantee real-time, accuracy and confidence in the existing technology is solved, and efficient real-time simulation testing is achieved.

CN119449626BActive Publication Date: 2025-07-01MILITARY INTELLIGENCE RES INST OF THE CHINESE PEOPLES LIBERATION ARMY ACAD OF MILITARY SCI
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202510019836.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-01-07
Publication Date
2025-07-01
Estimated Expiration
2045-01-07

AI Technical Summary

Technical Problem

In large-scale network simulation tests, due to the large scale of networking and excessive simplification in the mathematical modeling process, real-time, accuracy and confidence are difficult to guarantee.

Method used

Using the method based on Exata system and Docker container, a large-scale expansion network is built, and the Docker container is connected to the Exata system by writing a pipe program to realize the testing of route switching and route interruption and re-routing, and observing the interruption, delay and packet loss of packets.

Benefits of technology

It improves real-time, accuracy and confidence, can effectively conduct real-time simulation testing of large-scale networking protocols, and reduces server resource consumption and licensing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119449626B_ABST
    Figure CN119449626B_ABST
Patent Text Reader

Abstract

The present invention discloses a real-time simulation test method for a large-scale scalable networking protocol, which includes the following steps: S1: Write a pipe program to connect a Docker container to the Ubuntu system through a raw socket, and then send and receive packets through a socket to connect the Ubuntu system to the Exata system, constructing a large-scale scalable network, simulating routing switching, and the situations of packet sending and receiving interruption, time delay, and packet loss during routing interruption and reconnection; S2: Use Docker containers to construct multiple virtual network nodes, all of which have independent protocol stacks and can be added to the Exata simulation environment as independently operating Exata nodes to achieve real-time simulation testing of the large-scale networking protocol; S3: Conduct real-time testing on the large-scale scalable network by observing the situations of packet sending and receiving interruption, time delay, and packet loss among Docker containers. The present invention can complete real-time simulation testing of the large-scale scalable networking protocol, effectively improving real-time performance, accuracy, and confidence level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer science, and constructs a large-scale scalable networking simulation scenario based on the Exata system and Docker containers. Specifically, a real-time simulation test method for a large-scale scalable networking protocol is disclosed. Background Art

[0002] Network simulation is an important branch in the field of computer science. It is a method that uses mathematical modeling and statistical methods to simulate network behavior, mainly for simulating and analyzing the performance, behavior, and characteristics of network systems, and is of great significance for the research of network behavior and network structure.

[0003] Today, the scale of the entire Internet is constantly expanding, the number of computers and various mobile devices is increasing, the types of applications on computers and mobile devices are increasing, various protocols and algorithms are emerging in an endless stream, the entire Internet structure is gradually becoming complex, and network traffic is superimposed on each other. The difficulty of researching related content such as network structure and network protocols is gradually increasing, and the cost of testing, collecting, researching, and analyzing in a real network environment is gradually increasing. Therefore, network simulation test technology has emerged. Network simulation testing can obtain high returns at low cost and acquire a large amount of test data.

[0004] Research and applications related to network simulation have been developed for many years, and various simulation technologies and models used are still in the process of rapid development. Currently, many excellent network simulation software has been widely accepted, such as some free and open-source simulation software like NS2 (Network Simulator Version 2), NS3, and OMNeT++ (Objective Modular Network TestBed in C++), etc. In addition, there are also some commercially used OPNET (Optimal Network Engineering Tools) and Exata, etc.

[0005] Currently, in large-scale network simulation testing, due to the large networking scale and excessive simplification in the mathematical modeling process, it is difficult to guarantee real-time performance, accuracy, and confidence. Summary of the Invention

[0006] The object of the present invention is to provide a real-time simulation test method for a large-scale scalable networking protocol in view of the deficiencies of the above-mentioned background art. Based on the Exata system and Docker containers, this method constructs a large-scale scalable networking, can perform tests such as routing switching and route interruption and re-routing, observe the interruption, delay, and packet loss of data packet transmission and reception, achieve real-time testing, analyze the network performance and characteristics, and can effectively improve real-time performance, accuracy, and confidence.

[0007] To achieve the above object, the present invention provides a real-time simulation test method for a large-scale scalable networking protocol. The test method includes the following steps:

[0008] S1: Write a pipe program to connect a Docker container to the Ubuntu system through a raw socket, and then send and receive packets through a socket to connect the Ubuntu system to the Exata system, construct a large-scale scalable network, and simulate packet sending and receiving interruptions, delays, and packet losses during route switching and route interruption reconnection;

[0009] S2: Use Docker containers to construct multiple virtual network nodes, each of which has an independent protocol stack and can be added to the Exata simulation environment as an independently operating Exata node to achieve real-time simulation testing of a large-scale networking protocol;

[0010] S3: Observe the packet sending and receiving interruptions, delays, and packet losses between Docker containers to perform real-time testing on the large-scale scalable network.

[0011] Furthermore, in step S1, the writing of the pipe program includes the following steps:

[0012] S1.1. On the Docker server, construct multiple virtual network nodes and construct virtual network cards for each virtual network node;

[0013] S1.2. On the Ubuntu system, construct corresponding virtual network cards and connect them to the virtual network cards of the virtual network nodes;

[0014] S1.3. Use a raw socket to send data through the corresponding network card;

[0015] S1.4. On the Ubuntu system, process the received data and add a header part to the packet header. The header part includes the IP and MAC addresses of the corresponding Exata node;

[0016] S1.5. Encapsulate the processed packet and send the packet to the Exata in the form of a Socket data packet;

[0017] S1.6. On the Exata server, process the received data packets to make the virtual nodes in the Docker container correspond one by one to the Exata nodes to complete the connection.

[0018] Furthermore, in step S2, the construction of the large-scale scalable network includes the following steps:

[0019] S2.1. On the Exata server, write an interface file and connect to other servers through Socket data packet sending and receiving.

[0020] S2.2. Open the Docker server and install the routing driver.

[0021] S2.3. On the Docker server, build multiple virtual network nodes.

[0022] S2.4. On the Docker server, start the written pipe program.

[0023] S2.5. On the Exata server, start the simulation scenario.

[0024] Furthermore, in step S2.1, the Exata server is installed with the Windows 10 Pro operating system and the Exata 7.2.0 version of the simulation software.

[0025] Furthermore, step S2.2 specifically includes:

[0026] S2.2.1. On the Docker server, open a terminal and enter the system administrator mode with the command sudo -s.

[0027] S2.2.2. Install the routing driver with the command. / batman-adv-xs.ko.

[0028] Furthermore, step S2.3 specifically includes:

[0029] S2.3.1. On the Docker server, enter the administrator mode in each node with the command sudo -s.

[0030] S2.3.2. Install and update the corresponding commands with the command apt-get update.

[0031] apt-get install -y batctl net-tools iputils-ping iproute2 iperf

[0032] S2.3.3. Configure the nodes.

[0033] Furthermore, in step S2.4, on the Docker server, enter the administrator mode with the command sudo -s, and then start the pipe program with the command. / batman_udp_pipe.

[0034] Furthermore, in the said step S2, large-scale networking can be used to arbitrarily expand the network scale by adding servers.

[0035] Furthermore, in step S3, in the Exata simulation environment, large-scale scalable networking can perform real-time simulation with a deviation from physical time of less than 2 s.

[0036] Furthermore, in step S3, in the Exata simulation environment, by modifying the environment configuration, PS domain route switching and route interruption rerouting tests can be carried out.

[0037] The present invention has the following beneficial effects:

[0038] 1. The present invention adopts Docker containers, thus improving server efficiency and reducing server resource consumption and licensing costs. This method can complete large-scale networking simulation tests.

[0039] 2. The pipe program adopted by the present invention enables arbitrary connection between Docker containers and the Exata system. On different Docker servers, multiple virtual network nodes are constructed and connected through the pipe program, so that network nodes can be arbitrarily added to expand the network scale. This method can complete large-scale scalable networking simulation tests.

[0040] 3. The large-scale scalable networking test method of the present invention is based on Exata and Docker and is designed for new wireless communication technologies. It can communicate in real time with people, devices, and software in a real network, and has extremely strong real-time performance.

[0041] 4. The communication methods of the present invention are very diverse. In large-scale scenarios, switching tests can be carried out according to different routes, and route interruption rerouting tests can be carried out, ensuring the comprehensiveness and confidence of the tests.

[0042] 5. The nodes of the present invention have high comprehensiveness. Parameters of physical layer transceiver models, jammer models, antenna parameters, etc. can be configured; the TDMA protocol model of the MAC layer can be configured, including automatic time slot allocation, packet aggregation, frequency hopping, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 is a flowchart of the real-time test method for the large-scale scalable networking protocol of the present invention;

[0044] Figure 2 is a construction flowchart of the pipe program for large-scale scalable networking of the present invention;

[0045] Figure 3 is a schematic diagram of large-scale networking of the Exata software interface according to an embodiment of the present invention;

[0046] Figure 4Schematic diagram of large-scale networking of the Exata software interface according to an embodiment of the present invention;

[0047] Figure 5 Schematic diagram of expandable networking of the Exata software interface according to an embodiment of the present invention;

[0048] Figure 6 Schematic diagram of the real-time performance of the Exata software interface according to an embodiment of the present invention;

[0049] Figure 7 Schematic diagram of route switching of the Exata software interface according to an embodiment of the present invention;

[0050] Figure 8 Schematic diagram of route interruption and re-routing of the Exata software interface according to an embodiment of the present invention. Detailed implementation manners

[0051] Next, the technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings. Apparently, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0052] In the description of the present invention, it should be noted that the orientation or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. is based on the orientation or positional relationship shown in the drawings, and is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of the present invention. In addition, the terms "first", "second", "third" are only used for descriptive purposes and cannot be construed as indicating or implying relative importance.

[0053] In the description of the present invention, it should be noted that unless otherwise clearly defined and limited, the terms "installed", "connected", "connected" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific situations.

[0054] The following will be combined with Figures 1 - 8 The detailed implementation manners of the present invention will be described in detail. It should be understood that the specific implementation manners described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.

[0055] The present invention provides a real-time simulation test method for a large-scale scalable networking protocol based on Exata and Docker, including writing a pipe program, which relies on raw sockets to connect Docker containers and the Ubuntu system, and relies on Socket data packet sending and receiving to connect the Ubuntu system and the Exata system, creating a real-time test platform for the networking protocol, and forming a simulated network simulation scenario based on Exata; separating and simulating the PS domain and the PL domain of the communication radio, mapping the PS domain code into the Docker container to create a large-scale networking node, and performing equivalent network simulation on the PL domain and realizing one-to-one mapping with the PS domain node; using Docker containers to virtualize multiple virtual network nodes with independent protocol stacks, and adding them as Exata nodes capable of independently running various application programs to the ad hoc network to obtain a large-scale scalable ad hoc network protocol real-time test platform for real-time simulation testing; by observing the Docker container routing switching time, routing interruption re-routing time, and data packet sending and receiving delay, using the functions and performance of the networking protocol developed by actual service testing. The present invention can complete the real-time simulation test of a large-scale scalable networking protocol. In the present invention, "large-scale" means that the network scale is greater than or equal to 100 (that is, the number of virtual nodes in the virtual simulation mode is greater than or equal to 100).

[0056] Specifically, as Figure 1 shown, a real-time simulation test method for a large-scale scalable networking protocol according to the present invention includes the following steps:

[0057] Step S1: Write a pipe program to connect the Docker container and the Ubuntu system through raw sockets, and then connect the Ubuntu system and the Exata system through socket data packet sending and receiving, construct a large-scale scalable networking, and simulate the data packet sending and receiving interruption, delay, and packet loss during routing switching and routing interruption reconnection;

[0058] The application of Docker containers is one of the key points of the present invention. Most of the existing technologies are implemented using traditional virtual machines. Compared with traditional virtual machine containers, Docker containers are lighter and start faster. Docker containers provide process isolation while sharing the same operating system kernel, reducing resource occupancy. Traditional virtual machines require a complete operating system, while Docker containers only share the operating system kernel of the host, thus reducing overhead. And Docker containers provide a layer of isolation, which can limit the permissions and scope of applications to a certain extent, reduce the impact on the host system, and help improve the security of applications.

[0059] The difficulty in using Docker containers lies in port mapping. Therefore, the present invention completes data transmission by writing a pipe program for port mapping. The pipe program is another key point of the present invention.

[0060] As Figure 2 shown, in step S1, the writing of the pipe program for large-scale expandable networking of the present invention includes the following steps:

[0061] S1.1. On the Docker server, construct multiple virtual network nodes and construct virtual network cards for each virtual network node, such as eth1, eth2, eth3...;

[0062] S1.2. On the Ubuntu system, construct corresponding virtual network cards and connect them to the virtual network cards of the virtual network nodes, such as veth1, veth2, veth3...;

[0063] S1.3. Through the raw socket, make the corresponding network card send data, such as eth1 sending data to veth1, and eth2 sending data to veth2;

[0064] S1.4. On the Ubuntu system, process the received data and add a header part to the packet header. The header part includes the ip and mac addresses of the corresponding Exata node;

[0065] S1.5. Encapsulate the processed packet and send the packet to the Exata in the form of a Socket data packet;

[0066] S1.6. On the Exata server, process the received data packet to map the virtual nodes in the Docker container to the Exata nodes one by one to complete the connection.

[0067] The key of the pipe program is to combine the original socket with the conventional socket to form a pipe program. In the present invention, when the Docker system is connected to the Ubuntu system, the pipe program uses the original socket instead of the virtual network interface Docker0 that comes with the Docker container. Docker0 is a bridge network that connects all Docker containers under the default network mode (i.e., bridge mode), which is suitable for stand-alone basic application scenarios, but not suitable for large-scale, multi-host container applications. In the pipe program, the present invention closes Docker0, uses the original socket to directly access the network layer, monitors the traffic of a specific network interface, and captures packets, so that the virtual nodes on the Docker system are mapped one by one with the virtual network card of the Ubuntu system. When the Ubuntu system is connected to the Exata system, a conventional socket is used to send a udp data packet. A header part is added to the packet header, including the ip and mac addresses of the Exata node, so that the virtual node is mapped one by one with the Exata node, and the data packet is sent and received. So far, through the pipe program, the one-to-one mapping of the PL domain simulation node and the PS domain node is realized.

[0068] Step S2: Use Docker containers to build multiple virtual network nodes. These nodes have independent protocol stacks and can be added to the Exata simulation environment as independently running Exata nodes to achieve real-time simulation testing of large-scale networking protocols.

[0069] Large-scale means that the network scale is ≥ 100 (the scale of virtual nodes in pure virtual simulation mode), and scalable means that the network scale can be expanded by adding servers.

[0070] Step S3: Perform real-time testing on large-scale scalable networking by observing the interruption, delay and packet loss of data packets between Docker containers, and whether the node routing table conforms to the network topology.

[0071] The network performance is tested through the ping packet UDP packet filling test.

[0072] Detection process: Select any two Docker nodes to perform ping and UDP packet injection tests to see whether the ping and UDP packet injection results are in line with expectations; check whether the routing table is consistent with the network topology.

[0073] Judgment conditions: If the ping protocol test lasts for more than 10 seconds without communication interruption, the UDP data stream receiving packet loss rate is less than 10%, and the routing table conforms to the network topology, then it is judged that the large-scale scalable networking performance meets the requirements.

[0074] like Figure 3As shown, in step S2, the construction of the large-scale expandable network of the present invention includes the following steps:

[0075] Step S2.1. On the Exata server, write an interface file and connect to other servers through Socket data packet transceiver;

[0076] Among them, the Exata server is installed with the Windows 10 Pro operating system and the Exata 7.2.0 version of the simulation software;

[0077] Step S2.2. Open the Docker server and install the routing driver; specifically as follows:

[0078] Step S2.2.1. On the Docker server, open the terminal and enter the system administrator mode, and the command is sudo -s;

[0079] Step S2.2.2. Install the routing driver, and the command is. / batman-adv-xs.ko;

[0080] Step S2.3. On the Docker server, construct multiple virtual network nodes; specifically as follows:

[0081] Step S2.3.1. On the Docker server, enter the administrator mode in each node, and the command is sudo -s;

[0082] Step S2.3.2. Install and update the corresponding commands, and the command is apt-get update

[0083] apt-get install -y batctl net-tools iputils-ping iproute2 iperf;

[0084] Step S2.3.3. Build a node and start the Docker container of this node; attach to the terminal of the batman-adv1 container; clear the IP address of the first virtual Ethernet interface eth0 to ensure that this interface has no IP address so that it can be added to other interfaces later; create a second virtual Ethernet interface eth2 and set the MAC address of the second virtual Ethernet interface eth2; enable the second virtual Ethernet interface eth2; bind the eth0 interface to eth2 and specify eth2 as the master interface of eth0; add the second virtual Ethernet interface eth2 to the interface list of the batman-adv protocol; set the MAC address of the bat0 interface; assign an IP address to the bat0 interface and enable this interface; clear the ARP cache and reload the ARP table to ensure that the ARP tables of devices in the network are updated to be applicable to the newly configured interfaces.

[0085] Taking Node 1 as an example, the specific commands are as follows:

[0086] docker start batman-adv1 (start the Docker container named Node 1);

[0087] docker attach batman-adv1 (attach to the terminal of the batman-adv1 container to execute further commands therein);

[0088] ifconfig eth0 0.0.0.0 (clear the IP address of the eth0 interface, which can ensure that this interface has no IP address so that it can be added to other interfaces later);

[0089] ip link add name eth2 type virteth (create a new virtual Ethernet interface named eth2);

[0090] ifconfig eth2 hw ether b8:8e:df:00:01:01 (set the MAC address of the newly created eth2 interface to b8:8e:df:00:01:01);

[0091] ifconfig eth2 up (enable the eth2 interface);

[0092] ip link set dev eth0 master eth2 (bind the eth0 interface to eth2 and specify eth2 as the master interface of eth0);

[0093] batctl if add eth2 (Add the eth2 interface to the list of interfaces for the batman-adv protocol);

[0094] ifconfig bat0 hw ether b8:8e:df:01:01:01 (Set the MAC address of the bat0 interface to b8:8e:df:01:01:01);

[0095] ifconfig bat0 192.168.2.1 up (Assign the IP address 192.168.2.1 to the bat0 interface and enable the interface);

[0096] arp -f (Empty the ARP cache and reload the ARP table to ensure that the ARP tables of devices in the network are updated, applicable to newly configured interfaces).

[0097] Step S2.4. On the Docker server, start the written pipe program;

[0098] On the Docker server, enter the administrator mode with the command sudo -s, and then open the pipe program with the command. / batman_udp_pipe.

[0099] Step S2.5. On the Exata server, start the simulation scenario. Observe the routing switching and routing interruption re-routing times between Docker containers, as well as the packet sending and receiving interruptions, delays, and packet loss situations, and conduct real-time testing on the large-scale scalable networking.

[0100] Thus, the Docker nodes can conduct simulation tests through the network topology constructed by the Exata software.

[0101] As Figure 4 shown, it is a schematic diagram of large-scale networking of the Exata software interface according to an embodiment of the present invention. Simulation parameters such as the number, location, routing protocol, transmitter center frequency, transmission power, air interface rate, bandwidth parameter, antenna height, gain environment, time slot length, guard interval, number of time slots per frame, and interference mode parameter of the Exata nodes can be set. Among them, the Docker nodes and the Exata nodes are in one-to-one mapping.

[0102] In this large-scale networking scenario, servers can be arbitrarily added to expand the network scale. As Figure 5 shown, it is necessary to repeat the large-scale networking construction process shown in Figure 2 on the new Docker server to achieve the expandable function.

[0103] As Figure 6As shown in the figure, it is a schematic diagram of the real-time performance of the Exata software interface in the embodiment of the present invention. The Exata platform runs according to the physical time, performs real-time simulation, and the deviation between the simulation time and the physical time is ≤ 2 s. The physical time is the time actually occupied by the simulation operation and can be viewed in the Exata simulation interface. The simulation time is the time advancing forward in the simulation space and can be viewed in the Exata simulation interface.

[0104] As Figure 7 shown in the figure, it is a schematic diagram of the routing switch of the Exata software interface in the embodiment of the present invention. In this real-time test method for large-scale scalable networking protocols, the communication recovery time after routing switch can be tested. The specific test process is as follows:

[0105] Step P1. Build a simulation environment. Two hosts are connected to the same local area network through a switch, and the corresponding IP address parameters are configured.

[0106] Step P2. Start the network simulation software in the Exata system and load the routing switch simulation scenario. At the 50th second, nodes 2 and 3 instantaneously move to the target location.

[0107] Step P3. View the routing tables of the specified two nodes on Host 2 and send UDP data between the two nodes.

[0108] Step P4. When the simulation scenario in the Exata system runs to the 50th second, start timing T1. View the time T2 when the UDP data reception recovers normally in Ubuntu.

[0109] Step P5. View the new routing table. If the routing table is consistent with the network topology after routing switch and T2 - T1 ≤ 4 s, it is determined that the routing switch time is qualified.

[0110] The routing switch is a process in which any node on the Exata server instantaneously moves at a predetermined time to form a new routing report, and according to the configuration of the routing protocol and the information in the routing table, the data packet dynamically selects the best path from the source end to the destination end.

[0111] As Figure 8 shown in the figure, it is a schematic diagram of routing interruption and rerouting of the Exata software interface in the embodiment of the present invention. In this real-time test method for large-scale scalable networking protocols, the time required for routing interruption and rerouting can be tested. The specific test process is as follows:

[0112] Step R1. Build a simulation environment. Two hosts are connected to the same local area network through a switch, and the corresponding IP address parameters are configured.

[0113] Step R2. Start the network simulation software in the Exata system, load the routing interruption rerouting simulation scenario. At the 50th second, Nodes 2 and 3 instantaneously move to the target location, causing the original route to be interrupted.

[0114] Step R3. Check the routing tables of the specified two nodes on Host 2 and send UDP data between the two nodes.

[0115] Step R4. When the simulation scenario in the Exata system runs to the 50th second, start timing T1; check the time T2 when the UDP data reception in the Ubuntu system returns to normal.

[0116] Step R5. Check the new routing table. If the routing table is consistent with the network topology after routing interruption and rerouting, and T2 - T1 ≤ 4s, it is determined that the routing switching time is qualified.

[0117] The said routing interruption rerouting: At a predetermined time, any node on the Exata server instantaneously moves beyond the maximum communication distance of the original adjacent nodes, resulting in the unavailability of the original path and causing routing interruption. Thus, the router recalculates and selects another available path to send the data packet to the destination.

[0118] Any process or method description in the flowchart of the present invention or described in other ways herein can be understood as representing a module, segment, or part of code including one or more executable instructions for implementing a specific logical function or process, which can be implemented in any computer scale medium for an instruction execution system, device, or equipment. The computer-readable medium can be any medium including storage, communication, propagation, or transmission of a program for use by an instruction execution system, device, or equipment, including read-only memory, magnetic disk, or optical disc, etc.

[0119] In the description of this specification, the description referring to terms such as "embodiment", "example", etc. means that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. In addition, those skilled in the art can combine or combine different embodiments or examples described in this specification and the features therein without contradiction.

[0120] Although the above content has shown and described the embodiments of the present invention, it can be understood that the above embodiments are exemplary and should not be construed as limitations to the present invention. Those of ordinary skill in the art can perform update operations such as changes, modifications, substitutions, and variations on the above embodiments within the scope of the present invention.

Claims

1. A large-scale scalable networking protocol real-time simulation test method, characterized in that: The test method includes the following steps: S1: Write a pipe program to connect the Docker container to the Ubuntu system through the original socket, and then connect the Ubuntu system to the Exata system through the socket to send and receive packets, build a large-scale scalable network, simulate route switching, and the interruption, delay and packet loss of data packets when the route is interrupted and reconnected; S2: Use Docker containers to build multiple virtual network nodes. These nodes have independent protocol stacks and are added to the Exata simulation environment as independently running Exata nodes to achieve real-time simulation testing of large-scale networking protocols. S3: Real-time testing of large-scale scalable networking by observing packet transmission and reception interruptions, latency, and packet loss between Docker containers; In step S1, when the Docker container is connected to the Ubuntu system, in the pipe program, Docker0 is closed, the original socket is used to directly access the network layer, the traffic of the specific network interface is monitored, and the packet is captured, so that the virtual node on the Docker container is mapped one-to-one with the virtual network card of the Ubuntu system; when the Ubuntu system is connected to the Exata system, a conventional socket is used to send UDP data packets; a header part is added to the packet header, including the IP and MAC addresses of the Exata node, so that the virtual node is mapped one-to-one with the Exata node, and data packets are sent and received; so far, the one-to-one mapping of PL domain simulation nodes and PS domain nodes is realized through the pipe program.

2. The large-scale scalable networking protocol real-time simulation test method according to claim 1, characterized in that: In step S1, the pipe program writing includes the following steps: S1.

1. On the Docker server, build multiple virtual network nodes and build a virtual network card for each virtual network node; S1.

2. On the Ubuntu system, build a corresponding virtual network card and connect it to the virtual network card of the virtual network node; S1.

3. Use the original socket to enable the corresponding network card to send data; S1.

4. On the Ubuntu system, process the received data and add a header part to the packet header. The header part includes the IP and MAC addresses of the corresponding Exata node. S1.

5. Encapsulate the processed packets and send the packets to Exata in the form of Socket packets; S1.

6. On the Exata server, the received data packets are processed so that the virtual nodes in the Docker container correspond one-to-one with the Exata nodes, thus completing the connection.

3. The large-scale scalable networking protocol real-time simulation test method according to claim 1, characterized in that: In step S2, the construction of a large-scale scalable network includes the following steps: S2.

1. On the Exata server, write the interface file and connect to other servers through Socket data packet sending and receiving; S2.

2. Open the Docker server and install the routing driver; S2.

3. On the Docker server, build multiple virtual network nodes; S2.

4. On the Docker server, start the pipe program you wrote; S2.

5. On the Exata server, start the simulation scenario.

4. The large-scale scalable networking protocol real-time simulation test method according to claim 3 is characterized in that: In step S2.1, the Exata server is installed with the Windows 10 Professional operating system and the Exata 7.2.0 version of the simulation software.

5. The large-scale scalable networking protocol real-time simulation test method according to claim 3 is characterized in that: Step S2.2 specifically includes: S2.2.

1. On the Docker server, open the terminal and enter the system administrator mode using the command sudo -s; S2.2.

2. Install the routing driver. The command is . / batman-adv-xs.ko.

6. The large-scale scalable networking protocol real-time simulation test method according to claim 3 is characterized in that: Step S2.3 specifically includes: S2.3.

1. On the Docker server, enter the administrator mode in each node using the command sudo -s; S2.3.

2. Install and update the corresponding command, the command is apt-get update; apt-get install -y batctl net-tools iputils-ping iproute2 iperf S2.3.

3. Configure the node.

7. The large-scale scalable networking protocol real-time simulation test method according to claim 3, characterized in that: In step S2.4, on the Docker server, enter the administrator mode with the command sudo -s, and then open the pipe program with the command . / batman_udp_pipe.

8. The large-scale scalable networking protocol real-time simulation test method according to claim 1, characterized in that: In step S2, large-scale networking is performed by arbitrarily expanding the network scale by adding servers.

9. The large-scale scalable networking protocol real-time simulation test method according to claim 1, characterized in that: In step S3, in the Exata simulation environment, large-scale scalable networking is used to perform real-time simulation, with a deviation from physical time of less than 2 seconds.

10. The large-scale scalable networking protocol real-time simulation test method according to claim 1, characterized in that: In the step S3, in the Exata simulation environment, the environment configuration is modified to perform PS domain routing switching and routing interruption rerouting tests.

Citation Information

Patent Citations

  • Wireless network simulation method based on Exata and Docker

    CN114071529A