A whole-process network simulation method for a communication simulator
By combining the virtual and real aspects of a communication simulator and a network electrical simulation system, the problem that existing communication simulators cannot realistically reflect the quality of wireless channel links is solved. This enables accurate electromagnetic calculation of wireless communication channels and networking communication protocols under different terrain and topographical environments, thereby improving the accuracy of simulation results.
Patent Information
- Application Number
- CN202410934999.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Existing communication simulators cannot accurately reflect the quality of wireless channel links, nor can they simulate the wireless communication networking performance of communication equipment. Furthermore, service data and wireless communication link quality data such as transmission delay and bit error rate are transmitted independently, which does not match the actual communication network transmission process.
By combining the virtual and real worlds of the communication simulator and the network simulation system, real-time input of service data, configuration data, and interference data is achieved. By combining electromagnetic environment simulation and network environment simulation, the accuracy of electromagnetic calculation of wireless communication channels and the effectiveness of networking communication protocols of communication equipment models under different terrain and topographical environments are ensured.
This improves the accuracy of simulation results, ensuring the accuracy of electromagnetic calculations for wireless communication channels and the effectiveness of networking communication protocols for communication equipment models under different terrain and geomorphological environments, and providing real-time feedback on the impact of link quality.
Smart Images

Figure CN118890118B_ABST
Abstract
Description
Technical Field
[0001] This disclosure generally relates to the field of simulation technology, and more specifically, to a full-process network simulation method for communication simulators. Background Technology
[0002] With the rapid development of communication technology and people's increasing demands for quality of life, wireless communication methods are becoming increasingly important. Wireless communication transmission is a way of transmitting data or information through radio waves or other wireless communication technologies. Compared to wired transmission, wireless transmission has the advantages of flexibility and is not restricted by geographical or environmental conditions. For example, smartphones allow people to stay in touch with family and friends anytime, anywhere. In the medical field, remote diagnosis and monitoring can assist doctors in providing timely treatment to patients. Wireless communication technology plays a vital role in fields such as industrial automation, intelligent transportation, and smart grids. Summary of the Invention
[0003] This disclosure provides a full-process network simulation method for communication simulators, comprising the following embodiments:
[0004] The system receives a first voice signal through a first voice device and converts the first voice signal into a first digital signal.
[0005] The first digital signal is converted and input into the service data packet using a first communication simulator.
[0006] The jamming machine simulator sends jamming signals, which interfere with the communication process between the first communication simulator and the network electrical simulation system in real time.
[0007] The network-electric simulation system receives input service data packets and obtains output service data packets and performance data based on the first communication device model, the second communication device model, the interference model, and the input service data packets set in the network-electric simulation system. The network-electric simulation system is connected to the first communication simulator and the second communication simulator through the first virtual-real interface and the second virtual-real interface, respectively. The network-electric simulation system is also connected to the jammer simulator through the third virtual-real interface. The first communication device model corresponds to the first communication simulator, the second communication device model corresponds to the second communication simulator, and the interference model corresponds to the jammer simulator.
[0008] The second communication simulator receives output service data packets and performance data, and converts the output service data packets into a second digital signal. The interference signal interferes in real-time with the communication process between the second communication simulator and the network simulation system.
[0009] The second digital signal is converted into a second voice signal to be played using a second voice device, the second voice signal is played, and the performance data is displayed.
[0010] In some embodiments, the first communication simulator sends a first configuration data packet to the network simulation system through the first virtual-physical interface;
[0011] The second communication simulator sends the second configuration data packet to the network simulation system through the second virtual-physical interface;
[0012] The jammer simulator sends a third configuration data packet to the network simulation system through the third virtual-real interface; and
[0013] The network simulation system modifies the model parameters of the first communication device model, the second communication device model, and the interference model based on the first configuration data packet, the second configuration data packet, and the third configuration data packet, respectively.
[0014] In some embodiments, the model parameters of the interference model include interference interval time, interference duration, interference start time, interference end time, interference frequency, interference power, and interference bandwidth. The jamming simulator, in response to receiving an interference command, simulates sending interference electromagnetic waves to interfere with a first communication simulator and / or a second communication simulator within the radiation range of the same frequency band.
[0015] In some embodiments, the first communication device model includes a first application layer, a first transport layer, a first network layer, a first data link layer, and a first physical layer;
[0016] The second communication device model includes a second application layer, a second transport layer, a second network layer, a second data link layer, and a second physical layer; and
[0017] The first physical layer and the second physical layer are connected via a virtual wireless channel.
[0018] In some embodiments, the first application layer receives the input service data packet through the first virtual-physical interface, encapsulates the input service data packet into an application layer data packet, and sends the application layer data packet to the first transport layer;
[0019] The second application layer receives transport layer data packets from the second transport layer, decapsulates the transport layer data packets into application layer data packets, and sends the application layer data packets as the output service data packets to the second communication simulator through the second virtual-physical interface; and
[0020] The first application layer and the second application layer record performance data, which includes throughput, packet loss rate and latency.
[0021] In some embodiments, the first transport layer receives application layer data packets from the first application layer, encapsulates the application layer data packets into transport layer data packets, and sends the transport layer data packets to the first network layer.
[0022] The second transport layer receives network layer data packets from the second network layer, decapsulates the network layer data packets into transport layer data packets, and sends the transport layer data packets to the second application layer; and
[0023] Both the first transport layer and the second transport layer can support multiple applications simultaneously.
[0024] In some embodiments, the first network layer receives transport layer data packets from the first transport layer, encapsulates the transport layer data packets into network layer data packets based on the routing table, and sends the network layer data packets to the first data link layer.
[0025] The second network layer receives link layer data packets from the second data link layer. If the current node is the destination node, the link layer data packets are decapsulated into network layer data packets and sent to the second transport layer. If the current node is not the destination node, the next-hop node in the routing table is queried, and the received link layer data packets are forwarded based on the next-hop node.
[0026] In some embodiments, the first data link layer receives network layer data packets from the first network layer, obtains the MAC address of the next hop based on the mapping and matching between MAC address and IP address, encapsulates the network layer data packets into link layer data packets, listens to the virtual wireless channel, and sends the link layer data packets to the first physical layer when the virtual wireless channel is idle.
[0027] The second data link layer receives physical layer data packets from the second physical layer. If it determines that the physical layer data packets are not interference data or data that has been bitten, and the current node is the destination node, it decapsulates the physical layer data packets into link layer data packets and sends the link layer data packets to the second network layer.
[0028] In some embodiments, the first physical layer receives link layer data packets from the first data link layer, encapsulates the link layer data packets into physical layer data packets, and transmits the physical layer data packets through the virtual wireless channel when it is detected that no other data packets are received on the virtual wireless channel.
[0029] The second physical layer receives physical layer data packets from the virtual wireless channel, decapsulates the physical layer data packets into link layer data packets, and sends the link layer data packets to the second data link layer; and
[0030] The first physical layer determines the noise in the virtual wireless channel and calculates performance data, including transmit power, path loss, receive power, and propagation delay. The second physical layer also determines the error bits in the physical layer data packets and calculates performance data, including the current frame signal-to-noise ratio and bit error rate.
[0031] According to the technical solution of the embodiments of this disclosure, the communication simulator and the network electrical simulation system are combined in a virtual-physical manner. This allows service data from one end of the communication simulator to be transmitted to the communication device model of the network electrical simulation system via a virtual-physical interface. The data is then transmitted through the application layer, transport layer, network layer, data link layer, and physical layer of the communication device model to the physical layer, data link layer, network layer, transport layer, and application layer of the other end's communication device model. Finally, the communication device model transmits the service data to the corresponding external communication simulator through the virtual-physical interface. Within the network electrical simulation system, electromagnetic environment simulation, network electrical environment planning, and network environment simulation provide fundamental support for radio communication, ensuring the accuracy of electromagnetic calculations for wireless communication channels and the effectiveness of networking communication protocols under different terrain and topographical environments. The communication simulator, jammer simulator, and network electrical simulation system are connected via a virtual-physical interface, enabling real-time input of service data, configuration data, and interference data into the network electrical simulation system. Attached Figure Description
[0032] The above and other features of this disclosure will become more apparent from the following detailed description taken in conjunction with the accompanying drawings, wherein:
[0033] Figure 1 A schematic diagram of the structure of a full-process network simulation system for a communication simulator according to an embodiment of the present disclosure is shown;
[0034] Figure 2 Another structural diagram of a full-process network simulation system for a communication simulator according to an embodiment of the present disclosure is shown;
[0035] Figure 3 The following is illustrated based on an embodiment of the present disclosure. Figure 1 A flowchart illustrating the full-process network simulation method for communication simulators implemented in the full-process network simulation system;
[0036] Figure 4 The following is illustrated based on an embodiment of the present disclosure. Figure 2 The full-process simulation flowchart of the full-process network simulation system;
[0037] Figure 5 The parameter configuration flow of a full-process network simulation system according to an embodiment of the present disclosure is shown;
[0038] Figure 6The process of converting service data formats in a full-process network simulation system according to an embodiment of this disclosure is illustrated.
[0039] Figure 7 The application layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is shown;
[0040] Figure 8 The transport layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is shown;
[0041] Figure 9 The network layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is shown;
[0042] Figure 10 The data link layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is shown;
[0043] Figure 11 The physical layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is shown;
[0044] Figure 12 A flowchart illustrating the acquisition of performance data for a full-process network simulation system according to an embodiment of this disclosure is shown.
[0045] In the accompanying drawings, identical or similar structures are identified by the same or similar reference numerals. Detailed Implementation
[0046] To make the objectives, technical solutions, and advantages of this application clearer, the application will be further described in detail below with reference to the accompanying drawings. It should be noted that the following description is for illustrative purposes only and is not intended to limit the scope of this disclosure. In the following description, numerous specific details are set forth in order to provide a thorough understanding of this disclosure. However, it will be apparent to those skilled in the art that these specific details are not necessary to implement this disclosure. In other instances, well-known circuits, materials, or methods have not been specifically described to avoid obscuring this disclosure.
[0047] Throughout this specification, references to “an embodiment,” “an example,” or “an example” mean that a particular feature, structure, or characteristic described in connection with that embodiment or example is included in at least one embodiment of this disclosure. Therefore, the phrases “in an embodiment,” “in an embodiment,” “an example,” or “an example” appearing in various places throughout the specification do not necessarily refer to the same embodiment or example. Furthermore, particular features, structures, or characteristics can be combined in one or more embodiments or examples in any suitable combination and / or sub-combination. Moreover, those skilled in the art will understand that the accompanying drawings provided herein are for illustrative purposes and are not necessarily drawn to scale. The term “and / or” as used herein includes any and all combinations of one or more of the associated listed items.
[0048] The following is a description of the terminology used in this disclosure.
[0049] Host: Computer.
[0050] Communication simulator: Also known as a communication simulator, it is a device that uses a computer to simulate wireless communication.
[0051] Jammer simulator: A drone simulator capable of generating jamming signals that can interfere with wireless communication frequencies, affecting the quality of wireless communication links and communication performance.
[0052] Network communication: Connecting isolated communication devices via a network and exchanging information between the devices.
[0053] Network and electromagnetic environment simulation system: It can realize functions such as network simulation, electromagnetic environment simulation, and network and electromagnetic environment planning through simulation model library.
[0054] Business data: Voice data from actual communication in the communication simulator.
[0055] Configuration data: Various parameter and status data that ensure the communication simulator and jammer simulator can work, such as frequency, bandwidth, modulation method, and location.
[0056] Communication link data: Information reflecting the quality of link communication, such as bit error rate, latency, packet loss rate, throughput, etc.
[0057] Transmission latency: The time required for business data to be transmitted from one communication simulator to another.
[0058] Bit error rate: The ratio of the number of erroneous bits received by a data packet at the receiving end to the total number of bits in the data packet.
[0059] Packet loss rate: The ratio of the number of data packets lost during transmission per unit time to the total number of data packets transmitted.
[0060] Signal-to-noise ratio (SNR): The ratio of the power of the output signal to the power of the noise output simultaneously, usually expressed in decibels. Generally speaking, a higher SNR indicates less noise mixed in with the signal, resulting in higher sound playback quality, and vice versa.
[0061] The embodiments of this disclosure provide a full-process network simulation system for communication simulators. Figure 1 A schematic diagram of the structure of a full-process network simulation system according to an embodiment of the present disclosure is shown, such as... Figure 1 As shown, the full-process network simulation system includes a first voice device, a second voice device, a first communication simulator, a second communication simulator, a jammer simulator, and a network electrical simulation system.
[0062] In some embodiments, a first voice device is configured to receive a first voice signal and convert the first voice signal into a first digital signal. A first communication simulator is configured to receive the first digital signal and convert the first digital signal into an input service data packet. A second communication simulator is configured to receive an output service data packet and performance data, and convert the output service data packet into a second digital signal. A second voice device is configured to receive the second digital signal and performance data, convert the second digital signal into a second voice signal to be played, play the second voice signal, and display the performance data. A jamming simulator is configured to send a jamming signal that can interfere with the communication process between the first and second communication simulators and the network electrical simulation system in real time. The network electrical simulation system is connected to the first and second communication simulators through a first virtual-real interface and a second virtual-real interface, respectively. The network electrical simulation system has a first communication device model corresponding to the first communication simulator and a second communication device model corresponding to the second communication simulator. The network electrical simulation system is also connected to the jamming simulator through a third virtual-real interface, and the network electrical simulation system has a jamming model corresponding to the jamming simulator. In some embodiments, the network simulation system is configured to receive input service data packets from a first communication simulator and obtain output service data packets and performance data based on a first communication device model, a second communication device model, an interference model, and the input service data packets.
[0063] Traditional communication simulators typically rely on wired networks for connection. Service data and wireless communication link quality are unrelated. Generally, a corresponding random bit error rate is qualitatively superimposed on the output data to create an intuitive feeling that service data is affected by link quality.
[0064] According to embodiments of this disclosure, the communication simulator, the jammer simulator, and the network electrical simulation system are connected via a virtual-physical interface, enabling real-time input of service data, configuration data, and interference data into the network electrical simulation system. Compared to simulation systems based on wired network connections, this significantly improves the accuracy of simulation results.
[0065] Figure 2 Another structural diagram of a full-process network simulation system according to an embodiment of this disclosure is shown. (See diagram below.) Figure 2 As shown, the full-process network simulation system includes voice device A, voice device B, communication simulator A, communication simulator B, interference simulator, and network electrical simulation system.
[0066] In some embodiments, a voice device at one end receives the trainee's voice information, converts it into a digital signal, and transmits it to the communication simulator. A voice device at the other end converts the digital voice signal received from the communication simulator into a voice signal that the trainee can recognize. The communication simulator generates and transmits / receives the device's service data, configures and transmits / receives device parameters, and displays and transmits / receives link quality data. The jammer simulator is used to set jamming parameters, modes, and levels. The network simulation system is deployed on a computer and includes various models. The communication simulator model, jammer model, and external communication simulators / jamming simulators have mapping relationships. Electromagnetic environment simulation, network environment planning, and network environment simulation provide fundamental support for communication between devices, ensuring the accuracy of electromagnetic calculations for wireless communication channels and the effectiveness of network communication protocols in different terrain environments.
[0067] In related technologies, existing simulation systems for communication simulators typically suffer from the following drawbacks: First, they do not closely resemble the real electromagnetic environment of the simulated communication equipment. The quality of wireless channel links in the real environment cannot be accurately reflected during the communication process in the simulator, making it impossible to simulate the wireless communication networking performance of the communication equipment. Second, service data and wireless communication link quality data such as transmission delay and bit error rate are transmitted independently during the communication process in the simulator, which does not match the transmission process of a real communication network.
[0068] According to embodiments of this disclosure, a communication simulator and a network simulation system are combined in a virtual-physical manner. This allows service data from one communication simulator to be transmitted to the communication device model in the network simulation system via a virtual-physical interface. The service data is then transmitted to the corresponding external communication simulator via the communication device model and the virtual-physical interface. Within the network simulation system, electromagnetic environment simulation, network environment planning, and network environment simulation provide fundamental support for radio communication, ensuring the accuracy of electromagnetic calculations for wireless communication channels and the effectiveness of network communication protocols under different terrain conditions. The communication simulator, jammer simulator, and network simulation system are connected via a virtual-physical interface, enabling real-time input of service data, configuration data, and interference data into the network simulation system. Simultaneously, the physical layer link of the communication device model corresponding to the communication simulator is affected by simulated electromagnetic environments with different interference levels, allowing the receiving voice device to output affected voice data in real time.
[0069] Figure 3 The following is illustrated based on an embodiment of the present disclosure. Figure 1 The flowchart illustrates the wireless communication simulation method implemented in the full-process network simulation system. (Example:) Figure 3 As shown, based on Figure 1 The wireless communication simulation method implemented by the full-process network simulation system includes the following steps:
[0070] S31. Receive a first voice signal through a first voice device and convert the first voice signal into a first digital signal.
[0071] S32. The first digital signal is converted and input into the service data packet through the first communication simulator.
[0072] S33. The jamming machine simulator sends jamming signals, which interfere with the communication process between the first communication simulator and the network simulation system in real time.
[0073] S34. The system receives input service data packets through a network simulation system and obtains output service data packets and performance data based on the first communication device model, the second communication device model, the interference model, and the input service data packets set in the network simulation system. The network simulation system is connected to the first communication simulator and the second communication simulator through the first virtual-real interface and the second virtual-real interface, respectively. The network simulation system is also connected to the jammer simulator through the third virtual-real interface. The first communication device model corresponds to the first communication simulator, the second communication device model corresponds to the second communication simulator, and the interference model corresponds to the jammer simulator.
[0074] S35. Receive output service data packets and performance data through the second communication simulator, and convert the output service data packets into a second digital signal. The interference signal interferes with the communication process between the second communication simulator and the network simulation system in real time.
[0075] S36. Convert the second digital signal into a second voice signal to be played through the second voice device, play the second voice signal and display performance data.
[0076] Examples of the above wireless communication simulation methods can be further found in [link to relevant documentation]. Figure 4 . Figure 4 The following is illustrated based on an embodiment of the present disclosure. Figure 2 The full-process simulation flowchart of the full-process network simulation system. Figure 4 ①-⑨ in the diagram represent the sequence of the entire simulation process.
[0077] like Figure 4As shown, voice data from voice device A is connected to communication simulator A, injected into the network electrical simulation system in real time through a virtual-physical interface, and then output to communication simulator B through the same interface before being transmitted back to voice device B. The entire process is affected in real time by interference data from the jammer simulator. If the jammer simulator does not emit interference signals, voice device A can correctly recognize the other party's voice when communicating with voice device B. If the jammer simulator emits a weak interference signal, voice device A can hear the other party's voice, but it will be unclear, sometimes resulting in inaudible communication. If the jammer simulator emits a strong interference signal, only noise will be heard when communicating with voice device B. When interference is present, the physical layer of the communication device model in the network electrical simulation system calculates link quality data such as bit error rate and latency based on the electromagnetic propagation model, thus affecting the communication quality of the communication simulator in real time.
[0078] In some embodiments, the parameters of the communication simulator are configured before simulation, and the parameter configuration is mapped to the model of the network electrical simulation system. In some embodiments, the first communication simulator sends a first configuration data packet to the network electrical simulation system through a first virtual-real interface, the second communication simulator sends a second configuration data packet to the network electrical simulation system through a second virtual-real interface, and the jammer simulator sends a third configuration data packet to the network electrical simulation system through a third virtual-real interface. The network electrical simulation system is further configured to modify the model parameters of the first communication device model, the second communication device model, and the jamming model based on the first configuration data packet, the second configuration data packet, and the third configuration data packet, respectively.
[0079] In some embodiments, before communication, communication simulator A sets its device parameters locally, forms a configuration data packet, and injects it into the network simulation system through a virtual-physical interface to modify the model parameters of communication device model A, achieving a complete mapping between communication simulator A and communication device model A. Similarly, before communication, communication simulator B and jammer simulator also need to set their device parameters locally, form corresponding configuration data packets, and inject them into the network simulation system through a virtual-physical interface to modify the model parameters of communication device model B and jammer model B, achieving a complete mapping between them.
[0080] The mapping of parameter configuration data is achieved by the communication simulator sending configuration data packets to the network simulation system. The received configuration data packets are parsed in the virtual-physical interface module. Based on different keywords in the data packets, the module in the network whose parameters need to be modified is located, and the corresponding parameters are modified. Figure 5 The parameter configuration flow of a full-process network simulation system according to an embodiment of this disclosure is shown.
[0081] like Figure 5As shown, in some embodiments, elements in the iterator are stored in the form of "attribute: value," retrieved one by one using pointers, and each attribute field is checked to see if it is "PlatID," "RadioID," "PhysicID," or "Pos." The RadioID value for the jamming device differs from that of the radio station. After locating the corresponding device, there are generally three operations: modifying location information, modifying radio or jamming device parameter information, and modifying radio or jamming device status information. Location information modification is determined by the "Pos" field and implemented through the device's mobility module. Device parameter information is determined by the message type "argsConfig" and implemented through the miniRadio module using the parse method. Device status information message type is determined by "argsStatus" and implemented through the miniRadio module using the par method.
[0082] In some embodiments, after the simulator settings are completed, the voice device A receives the trainee's simulated voice signal, converts it into a digital signal, and sends it to the communication simulator A.
[0083] In some embodiments, the communication simulator A encapsulates the voice data received from the voice device A according to a pre-agreed protocol to form a service data packet, and sends it to the network simulation system through the virtual-physical interface.
[0084] In some embodiments, after receiving service data packets through the virtual-physical interface, the network electrical simulation system converts them into the service data packet format under the network electrical simulation system. Figure 6 The process of converting service data formats in a full-process network simulation system according to an embodiment of this disclosure is illustrated.
[0085] like Figure 6 As shown, in some embodiments, the received service data packets are parsed in the handleExtServData method of the virtual-physical interface, converted into DSITLayload type data packets that can be recognized by the network simulation system, and the timingSimMessage method is called to further pass the data packets to the UDP application layer module of the communication device model A. After being passed from top to bottom through the five-layer structure of the communication device model, the data packets are sent to the simulated wireless channel.
[0086] In some embodiments, the transmission of service data is handled by the `handleMessage` method of the UDP application layer module calling the `sendMsgToSocket` method of the statistics module. After the peer communication device model B receives the service data packet from the simulated wireless channel, it is passed from bottom to top through the five-layer structure of the communication device model and reaches the UDP application layer module. In the `sendMsgToSocket` method, the service data packet to be sent is parsed, the peer's port address and port number are extracted, and the `sendMessage` method of the virtual-physical interface module is called to send the data packet from the virtual-physical interface to the communication simulator B outside the network electrical simulation system.
[0087] In some embodiments, the datagram is then wirelessly transmitted between communication device models. The virtual-physical interface passes the converted service data packet to the communication device model corresponding to communication simulator A in the network electrical simulation system. The application layer of the communication device model adds control information to the original data packet and sends it to the transport layer. The transport layer adds its own control information and sends it to the network layer. If a route has been established, it continues to be passed down to the next layer; otherwise, a route is established through a routing protocol before transmission. The data link layer receives the data from the upper layer, adds its own control information, and passes it to the physical layer again before sending it to the wireless channel. The physical layer of the communication device model corresponding to communication simulator B receives the service data packet sent by the communication device model corresponding to communication simulator A in the simulated wireless channel and passes the data to the topmost application layer through its own data link layer, network layer, and transport layer. In some embodiments, link quality information such as bit error rate and signal-to-noise ratio is calculated during physical layer communication, and link quality information such as latency, packet loss rate, and throughput is calculated at the application layer. The application layer converts the data packet and transmits it out of the network electrical simulation system through the virtual-physical interface.
[0088] The following will combine Figures 7 to 11 The illustrated embodiments provide a detailed description of the interoperability process of each layer of the communication device model.
[0089] The main functions of the application layer are to process business data packets sent from the virtual and physical interfaces, output business data packets to the virtual and physical interfaces, and record various statistical information of sent / received data, such as packet count, throughput, and latency. External business data packets must be converted to the DSITLAYload type before being passed from the application layer to the lower transport layer.
[0090] In some embodiments, the first application layer is configured to receive input service data packets through a first virtual-physical interface, encapsulate the input service data packets into application layer data packets, and send the application layer data packets to the first transport layer. The second application layer is configured to receive transport layer data packets from the second transport layer, decapsulate the transport layer data packets into application layer data packets, and send the application layer data packets as output service data packets to the second communication simulator through the second virtual-physical interface. In some embodiments, the first and second application layers are also configured to record performance data, including throughput, packet loss rate, and latency. Figure 7 The application layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is illustrated.
[0091] like Figure 7 As shown, in some embodiments, the received business data packets are processed by the `handleMessage` method of the application layer, and the `sendMsgToSocket` method of the virtual-physical interface is called to decapsulate the data packets and send them to the virtual-physical interface. Before being sent to the transport layer, control information is added, the data packets are encapsulated, and the `sendToUdp` method is called to send them to the transport layer.
[0092] The transport layer primarily implements the UDP transport layer protocol, providing an end-to-end data transmission channel, but it does not guarantee the reliability of data transmission. In the communication device model architecture, it sits above the network layer and below the application layer. It can simultaneously support the access of multiple UDP applications, interacting with the application layer through the UDP interface. It supports IPv4, IPv6, and other network layer protocols, interacting with IP through the UDP interface.
[0093] In some embodiments, the first transport layer is configured to receive application layer data packets from the first application layer, encapsulate the application layer data packets into transport layer data packets, and send the transport layer data packets to the first network layer. The second transport layer is configured to receive network layer data packets from the second network layer, decapsulate the network layer data packets into transport layer data packets, and send the transport layer data packets to the second application layer. In some embodiments, both the first and second transport layers can support multiple applications simultaneously. Figure 8 The transport layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is shown.
[0094] like Figure 8As shown, in some embodiments, application-layer control packets of type UDP_C_BIND are created and sent by the bindToPort method, while service packets of type UDP_C_DATA are set and sent by the sendToUDP method. Port binding at the UDP transport layer is implemented through the processCommandFromApp method. After receiving service packets from the application layer, the processMsgFromApp method encapsulates them and sends them to the lower network layer. After receiving packets from the network layer, the processUdpPacket method sets the packets according to the IP control interface and sends them to the upper application layer.
[0095] The network layer primarily handles IPv4 and AODV protocols, implementing functions such as route establishment, route maintenance, and packet forwarding. In the communication device model architecture, it sits above the data link layer and below the transport layer. Towards the upper layer, the network layer transmits information via IPControlInfo; to the lower layer, it communicates with the CSMA protocol through the data adaptation module and radio management module.
[0096] In some embodiments, the first network layer is configured to receive transport layer packets from the first transport layer, encapsulate the transport layer packets into network layer packets based on a routing table, and send the network layer packets to the first data link layer. The second network layer is configured to receive link layer packets from the second data link layer, and if the current node is the destination node, decapsulate the link layer packets into network layer packets and send the network layer packets to the second transport layer; if the current node is not the destination node, query the next-hop node in the routing table and forward the received link layer packets based on the next-hop node. Figure 9 The network layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is shown.
[0097] like Figure 9 As shown, in some embodiments, the `handleMessageFromHL` method of the IP module processes data from the upper-layer UDP. When no route is found, the `controlMessageToManetRouting` method is called to establish routing information based on the parameter types. After the route is established, the data packet is encapsulated into an IP layer packet and forwarded to the next-hop node. If the data originates from the data link layer and the current node is the destination node, the IP layer packet is decapsulated, the IP layer control information is removed, and it is sent to the upper-layer transport layer.
[0098] The data link layer primarily implements the CSMA protocol, enabling the non-persistent carrier sense mechanism and mapping IP addresses to MAC addresses. At the data link layer, before sending data, the channel is first listened to. If the channel is busy, the listening is not continuous; instead, the layer waits randomly for a period of time before repeating the same process.
[0099] In some embodiments, the first data link layer is configured to receive network layer packets from the first network layer, obtain the next-hop MAC address based on the mapping between MAC addresses and IP addresses, encapsulate the network layer packets into link layer packets, listen to the virtual wireless channel, and send the link layer packets to the first physical layer when the virtual wireless channel is idle. The second data link layer is configured to receive physical layer packets from the second physical layer, and, if it determines that the physical layer packets are not interference or erroneous data, and the current node is the destination node, decapsulate the physical layer packets into link layer packets and send the link layer packets to the second network layer. Figure 10 The data link layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is illustrated.
[0100] like Figure 10 As shown, in some embodiments, the `handleData` method of the MGMT module processes data from the AL, performs MAC address to IP address mapping, encapsulates MAC layer data packets, and queries the next-hop MAC address. The CSMA module subscribes to wireless channel state change information, the `handleUpperMessage` method receives MAC layer data packets to be sent, and sets the packet state to `sensing` in the `txFrame` method to begin listening to the channel. When the channel is idle, the data packet is sent to the physical layer; otherwise, it waits for a period of time before listening to the channel again to see if it is idle.
[0101] like Figure 10 As shown, in some embodiments, data from the physical layer is processed by the handleLowerMessage method of the CSMA module. Based on the packet type and label, it determines whether the data is interference or has been corrupted. If the determination is incorrect, the data is sent to the Mgmt module, where its handleRadioData method processes it and determines whether the current node is the destination node. If so, the MAC layer packet is decapsulated, MAC layer control information is removed, and the data is sent to the network layer.
[0102] The physical layer is mainly responsible for data transmission and reception in the wireless channel, calculating parameters such as transmit power, transmission loss, receive power, signal-to-noise ratio, bit error rate, and propagation delay, and handling background noise, collision detection, and acceptability assessment.
[0103] In some embodiments, the first physical layer is configured to receive link-layer data packets from a first data link layer, encapsulate the link-layer data packets into physical layer data packets, and transmit physical layer data packets through the virtual wireless channel when it is detected that no other data packets are being received on the virtual wireless channel. The second physical layer is configured to receive physical layer data packets from the virtual wireless channel, decapsulate the physical layer data packets into link-layer data packets, and transmit the link-layer data packets to the second link layer. In some embodiments, the first physical layer is further configured to determine noise in the virtual wireless channel and calculate performance data, which may include transmit power, path loss, receive power, and propagation delay. The second physical layer is further configured to determine error bits in the physical layer data packets and calculate performance data, which may include the current frame signal-to-noise ratio and bit error rate. Figure 11 The physical layer interoperability flow of a full-process network simulation system according to an embodiment of this disclosure is illustrated.
[0104] like Figure 11 As shown, in some embodiments, the `handleUpperPacket` method processes data packets received from the data link layer. When it detects that other data packets are being received, the current data packet is characterized as noise. Otherwise, the channel state is set to `TRANSMIT`, and the `RADIO_TRANSMISSION_OVER` message is set. The `sendToChannel` method handles the calculation of transmit power, path loss, receive power, propagation delay, etc., and calls the `sendDirect` method to send the data packet to the wireless channel. When the `RADIO_TRANSMISSION_OVER` message is triggered, it is determined whether the current noise level is lower than the sensitivity, and the channel state is set to `IDLE` or `RECV`.
[0105] like Figure 11 As shown, in some embodiments, when the physical layer receives a data packet from the wireless channel, the `handleAirFrameStart` method is triggered. The current channel state is set to RECV, and a receive completion message `RADIO_RECEPTION_COMPLETE` is set. When the receive completion message is triggered, the `handleAirFrameEnd` method is called to calculate the signal-to-noise ratio and bit error rate of the current data packet, and further determines whether the bit error rate is 0. If there are error bits, the data packet is tagged with `BITERROR`. The physical layer data packet is decapsulated, the physical layer control information is removed, and the `sendToMac` method is called to send the data packet to the data link layer.
[0106] In some embodiments, the jammer simulator is configured to, in response to receiving a jamming command, simulate sending jamming electromagnetic waves to interfere with a first communication simulator and / or a second communication simulator within the same frequency band's radiation range. Correspondingly, the jamming model set in the network simulation system emits jamming signals based on configured model parameters; this jamming model is a full mapping of the jammer simulator.
[0107] In some embodiments, the parameters of the jammer model mainly include jamming interval time, jamming duration, jamming start time, jamming end time, jamming frequency, jamming power, and jamming bandwidth. It can simulate sending jamming electromagnetic waves upon receiving a jamming command, interfering with communication equipment models within the same frequency band's radiation range. Different jamming parameters can achieve different forms of jamming.
[0108] In some embodiments, the application layer of the communication device model corresponding to the communication simulator B sends performance data packets and service data packets, composed of a certain format, to the communication simulator B through a virtual-physical interface. The performance data packets include link quality data representing communication quality.
[0109] In some embodiments, after receiving a data packet, the communication simulator B can parse the received data packet to simulate wireless data communication and display link quality data representing link quality information, such as bit error rate, latency, and packet loss rate. In some embodiments, link quality data refers to performance data related to the communication quality of the wireless communication simulator, such as throughput, packet loss, bit error rate, and latency. Figure 12 A flowchart illustrating the acquisition of performance data for a full-process network simulation system according to an embodiment of this disclosure is shown.
[0110] like Figure 12 As shown, in some embodiments, performance data includes both statistical data and real-time data. Link statistical data mainly includes throughput, packet loss rate, bit error rate, and latency. Bit error rate-related data is recorded and calculated by the physical layer module, while other data is recorded and calculated by the application layer module. The `staExtServInfo` method of the statistics module is responsible for extracting, processing, and forming link data packets, which are then sent to an external communication simulator via the virtual-physical interface. Real-time link data mainly includes bit error rate and latency. With the real-time transmission of each service data packet, the bit error rate is reflected in the IP layer data packets of the physical layer, and the latency is reflected in the service data of the application layer module. In some embodiments, the data can be sent to an external communication simulator by calling the `sendMsgToSocket` method of the statistics module. Finally, the service data packets are decapsulated into voice data packets and output.
[0111] When implementing the full-process network simulation system based on the embodiments of this disclosure, interference parameters and levels are set on the jammer simulator. When the voice information of voice device A is sent from communication simulator A to communication simulator B via the network simulation system and output to voice device B, the voice information of voice device B will exhibit interference-related voice quality problems, such as unclear intelligibility or excessive noise. Relevant link data, such as bit error rate, throughput, and packet loss rate, can be simultaneously displayed on communication simulator B.
[0112] Those skilled in the art will understand that the methods shown above are merely exemplary. The methods disclosed herein are not limited to the steps and sequence shown above. Many variations and modifications can be made by those skilled in the art based on the teachings of the illustrated embodiments.
[0113] Although the present disclosure has been illustrated above in conjunction with preferred embodiments, those skilled in the art will understand that various modifications, substitutions, and changes can be made to the disclosure without departing from its spirit and scope. Therefore, the disclosure should not be limited by the above embodiments, but rather by the appended claims and their equivalents.
Claims
1. A full-process network simulation method for communication simulators, characterized in that, include: The system receives a first voice signal through a first voice device and converts the first voice signal into a first digital signal. The first digital signal is converted and input into the service data packet using a first communication simulator. The jamming machine simulator sends jamming signals, which interfere with the communication process between the first communication simulator and the network electrical simulation system in real time. The network-electric simulation system receives input service data packets and obtains output service data packets and performance data based on the first communication device model, the second communication device model, the interference model, and the input service data packets set in the network-electric simulation system. The network-electric simulation system is connected to the first communication simulator and the second communication simulator through the first virtual-real interface and the second virtual-real interface, respectively. The network-electric simulation system is also connected to the jammer simulator through the third virtual-real interface. The first communication device model corresponds to the first communication simulator, the second communication device model corresponds to the second communication simulator, and the interference model corresponds to the jammer simulator. The second communication simulator receives output service data packets and performance data, and converts the output service data packets into a second digital signal. The interference signal interferes with the communication process between the second communication simulator and the network electrical simulation system in real time. as well as The second digital signal is converted into a second audio signal to be played using a second audio device, the second audio signal is played, and the performance data is displayed. The first communication simulator sends the first configuration data packet to the network simulation system through the first virtual-real interface; The second communication simulator sends the second configuration data packet to the network simulation system through the second virtual-physical interface; The jammer simulator sends the third configuration data packet to the network simulation system through the third virtual-real interface; and The network simulation system modifies the model parameters of the first communication device model, the second communication device model, and the interference model based on the first configuration data packet, the second configuration data packet, and the third configuration data packet, respectively. The virtual-real interface module of the network simulation system parses the first configuration data packet, the second configuration data packet, and the third configuration data packet, and modifies the model parameters of the first communication device model, the second communication device model, and the interference model based on the keywords in the first configuration data packet, the second configuration data packet, and the third configuration data packet, respectively.
2. The full-process network simulation method according to claim 1, wherein, The model parameters of the interference model include interference interval time, interference duration, interference start time, interference end time, interference frequency, interference power, and interference bandwidth. The jamming simulator responds to receiving the interference command by simulating the transmission of interference electromagnetic waves, interfering with the first communication simulator and / or the second communication simulator within the radiation range of the same frequency band.
3. The full-process network simulation method according to any one of claims 1 to 2, wherein, The first communication device model includes a first application layer, a first transport layer, a first network layer, a first data link layer, and a first physical layer; The second communication device model includes a second application layer, a second transport layer, a second network layer, a second data link layer, and a second physical layer; and The first physical layer and the second physical layer are connected via a virtual wireless channel.
4. The full-process network simulation method according to claim 3, wherein, The first application layer receives the input service data packet through the first virtual-physical interface, encapsulates the input service data packet into an application layer data packet, and sends the application layer data packet to the first transport layer; The second application layer receives transport layer data packets from the second transport layer, decapsulates the transport layer data packets into application layer data packets, and sends the application layer data packets as the output service data packets to the second communication simulator through the second virtual-physical interface. and The first application layer and the second application layer record performance data, which includes throughput, packet loss rate and latency.
5. The full-process network simulation method according to claim 3, wherein, The first transport layer receives application layer data packets from the first application layer, encapsulates the application layer data packets into transport layer data packets, and sends the transport layer data packets to the first network layer; The second transport layer receives network layer data packets from the second network layer, decapsulates the network layer data packets into transport layer data packets, and sends the transport layer data packets to the second application layer; and Both the first transport layer and the second transport layer can support multiple applications simultaneously.
6. The full-process network simulation method according to claim 3, wherein, The first network layer receives transport layer data packets from the first transport layer, encapsulates the transport layer data packets into network layer data packets based on the routing table, and sends the network layer data packets to the first data link layer. The second network layer receives link layer data packets from the second data link layer. If the current node is the destination node, the link layer data packets are decapsulated into network layer data packets and sent to the second transport layer. If the current node is not the destination node, the next-hop node in the routing table is queried, and the received link layer data packets are forwarded based on the next-hop node.
7. The full-process network simulation method according to claim 3, wherein, The first data link layer receives network layer data packets from the first network layer, obtains the MAC address of the next hop based on the mapping and matching between MAC address and IP address, encapsulates the network layer data packets into link layer data packets, listens to the virtual wireless channel, and sends the link layer data packets to the first physical layer when the virtual wireless channel is idle. The second data link layer receives physical layer data packets from the second physical layer. If it determines that the physical layer data packets are not interference data or data that has been bitten, and the current node is the destination node, it decapsulates the physical layer data packets into link layer data packets and sends the link layer data packets to the second network layer.
8. The full-process network simulation method according to claim 3, wherein, The first physical layer receives link layer data packets from the first data link layer, encapsulates the link layer data packets into physical layer data packets, and transmits the physical layer data packets through the virtual wireless channel when it detects that no other data packets are being received on the virtual wireless channel. The second physical layer receives physical layer data packets from the virtual wireless channel, decapsulates the physical layer data packets into link layer data packets, and sends the link layer data packets to the second data link layer; and The first physical layer determines the noise in the virtual wireless channel and calculates performance data, including transmit power, path loss, receive power, and propagation delay. The second physical layer also determines the error bits in the physical layer data packets and calculates performance data, including the current frame signal-to-noise ratio and bit error rate.
Citation Information
Patent Citations
Unmanned aerial vehicle information attack semi-physical test architecture design method
CN116224835A
Information network virtuality and reality combination verification system based on signal interconnection
CN117675602A