A method for visualizing underwater sensor network simulation

By combining the multi-carrier MFSK underwater acoustic communication algorithm with a visual interface, the problem of lack of visualization in underwater sensor network simulation software is solved, which improves system performance and development efficiency and simplifies the development process of network protocols and algorithms.

CN120343608BActive Publication Date: 2025-11-04HAINAN SHUIZHISHENG MARINE TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510827668.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-20
Publication Date
2025-11-04
Estimated Expiration
2045-06-20

AI Technical Summary

Technical Problem

Existing underwater sensor network simulation software lacks a visual interface, which requires researchers to become familiar with the NS2 framework, resulting in low development efficiency and the need for repetitive experiments to improve the accuracy of simulation results, wasting time and effort.

Method used

The bit error rate (BER) was calculated using the multi-carrier MFSK underwater acoustic communication algorithm, and the network simulation results were displayed through a visualization interface. The module and topology parameter configurations were automatically generated using OTcl scripts, and underwater acoustic multipath channels were generated using underwater acoustic calculation tools. The network simulation was performed using the Aqua-Sim simulator, and the results were visualized using QcustomPlot.

Benefits of technology

It improves system bandwidth utilization and communication speed, provides a good human-computer interaction interface, enhances development efficiency and performance evaluation capabilities, and simplifies the development process of network protocols and algorithms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120343608B_ABST
    Figure CN120343608B_ABST
Patent Text Reader

Abstract

The application provides a kind of visual underwater sensor network simulation method, it is related to underwater sensor network technical field, the method includes: configuration network simulation parameter, network simulation parameter includes topological structure parameter, channel parameter and simulation parameter;Channel parameter is input underwater acoustic computing tool, generates for simulated underwater acoustic multipath channel;Calculate the bit error rate BER of multi-carrier MFSK underwater acoustic communication algorithm under the condition of underwater acoustic multipath channel, and input OTcl script to the bit error rate BER;Complete configuration OTcl script is used underwater network simulator to carry out network simulation;Network simulation result is displayed through visual interface.The application can display underwater sensor network simulation result through visual interface, solve the defect that current underwater sensor network simulation software based on NS2 does not have visual interface, can provide good man-machine interactive interface for user, improve development efficiency, help user to better evaluate the performance of underwater sensor network.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the underwater sensor network technical field, especially to a visual underwater sensor network simulation method. BACKGROUND

[0002] With the increasingly exhausted land resources, human beings pay more and more attention to marine resources, and marine resources become a new development hotspot. Marine area accounts for 70% of the total area of the earth, and more and more countries begin to explore marine laws and resources, so that the important status of marine development in civil and military fields is highly recognized. The construction of underwater sensor network is a very difficult work, and it is necessary to consider large-scale hardware and software resources for designing an underwater sensor network with high reliability, large throughput, low power consumption and short transmission delay. The device is relatively complex, and the test cost is high. Compared with the above, the underwater sensor network simulation has the advantages of low network device construction cost, flexibility and reliability, and even for large-scale network, it can be easily constructed. By using the simulation software, the attention of the researchers can be focused on the key aspects to improve the efficiency. Through the network simulation software, the sensor network model, the sensor network protocol and the network algorithm performance can be quickly configured and reconstructed, and the performance improvement comparison is easier.

[0003] The mainstream underwater sensor network simulation software is developed based on NS2 and is suitable for the network simulator of underwater acoustic channel, but the above simulators do not have a visual interface. The developers and users of network protocol need to be familiar with the NS2 framework when simulating the network protocol. The OTcl simulation script of network simulation has strong syntax regularity, does not have an integrated development environment, and the error is not easy to find, so that the researchers need to do a lot of repetitive work, and the development efficiency is very low. In addition, in order to make the results more accurate, the researchers generally need to use the simulator to perform multiple simulation experiments on the same kind of protocol in the same simulation scene, and process the data of each simulation experiment. Such a mechanical and repetitive process also wastes the time and energy of the researchers. Therefore, it has practical significance to realize the visualization in the process of underwater sensor network simulation. SUMMARY

[0004] The present application relates to the underwater sensor network technical field, especially to a visual underwater sensor network simulation method.

[0005] To achieve the above-mentioned application purposes, the technical solutions provided by the first aspect of the present application are as follows:

[0006] A visual underwater sensor network simulation method, the method comprises:

[0007] configuring network simulation parameters, the network simulation parameters including topology parameters, channel parameters and simulation parameters;

[0008] inputting the channel parameters into an underwater acoustic calculation tool to generate an underwater acoustic multipath channel for simulation;

[0009] calculating a bit error rate (BER) of a multi-carrier MFSK underwater acoustic communication algorithm under the underwater acoustic multipath channel condition and inputting the BER into an OTcl script;

[0010] performing network simulation on the OTcl script completed by using an underwater network simulator;

[0011] displaying network simulation results through a visual interface.

[0012] Further, before inputting the BER into the OTcl script, the OTcl script is automatically generated by an OTcl automatic generation module according to user network simulation requirements, and the specific operations include the following:

[0013] creating an empty OTcl script;

[0014] obtaining user simulation requirement input information through an interface control;

[0015] judging whether the user simulation requirement is processed or not;

[0016] if the user simulation requirement is not processed, searching for a program block corresponding to the user simulation requirement in an OTcl script library;

[0017] writing the searched program block into the empty OTcl script.

[0018] Further, when the topology parameters are configured, the following operations are performed:

[0019] the user configures the topology parameters through a topology control;

[0020] obtaining the topology parameters in the topology control;

[0021] calling the OTcl script automatic generation module to generate OTcl topology structure code and write the code into the empty OTcl script.

[0022] Further, the channel parameters are input into the underwater acoustic calculation tool to generate the underwater acoustic multipath channel for simulation, and the specific operations include the following:

[0023] writing the channel parameters into an env environment configuration file;

[0024] obtaining the channel parameters through the OTcl script and setting the channel parameters as tag control values to be displayed in the visual interface;

[0025] Importing sound speed profile SSP data file and writing into env environment configuration file;

[0026] Executing env environment configuration file through underwater acoustic calculation tool, and generating underwater acoustic multipath channel file with extension arr.

[0027] Further, the transmitting part of the multi-carrier MFSK underwater acoustic communication algorithm comprises a cyclic redundancy check module, a scrambling module, a Hadamard mapping module, an interleaving module, a random phase interference module, a bit data mapping frequency point module, an IFFT modulation module and a peak-to-average ratio suppression module.

[0028] Further, the receiving part of the multi-carrier MFSK underwater acoustic communication algorithm comprises a synchronization module, a Doppler estimation and compensation module, a random phase removal module, a de-interleaving module, a Hadamard sequence decision module, an interference module and a cyclic redundancy check module.

[0029] Further, the network simulation result is displayed through a visual interface, specifically, the visual display of the network simulation result is realized by calling a third-party component QcustomPlot.

[0030] Further, after the network simulation is completed, the network simulation process is played back through a simulation playback module, and the playback specifically comprises the following operations:

[0031] Obtaining a network simulation result file with extension nam;

[0032] Creating a Qprocess process to run Nam software, and processing the network simulation result file through the Nam software;

[0033] The Nam software displays the network simulation process in the form of animation.

[0034] The second aspect of the present application provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the method of the first aspect.

[0035] The third aspect of the present application provides a computer device comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the method of the first aspect.

[0036] Compared with the prior art, the present application has the following beneficial effects:

[0037] (1) The multi-carrier MFSK underwater acoustic communication algorithm is used to calculate the bit error rate BER under the underwater acoustic multipath channel condition, and the combination of the multi-carrier and MFSK technologies significantly improves the system frequency band utilization, communication rate and anti-multipath capability;

[0038] (2) the visual underwater sensor network simulation method can display simulation results of underwater sensor network through a visual interface, solves the defect that the current underwater sensor network simulation software based on NS2 has no visual interface, can provide a good man-machine interactive interface for users, improves development efficiency, and helps users to better evaluate the performance of underwater sensor network. BRIEF DESCRIPTION OF DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only preferred embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor on the basis of these drawings.

[0040] Figure 1 is a whole flowchart of the visual underwater sensor network simulation method provided by the embodiment of the present application.

[0041] Figure 2 is a schematic block diagram of the transmitting part of the multi-carrier MFSK underwater acoustic communication algorithm provided by the embodiment of the present application.

[0042] Figure 3 is a schematic block diagram of the receiving part of the multi-carrier MFSK underwater acoustic communication algorithm provided by the embodiment of the present application.

[0043] Figure 4 is a flowchart of automatically generating OTcl scripts provided by the embodiment of the present application.

[0044] Figure 5 is a flowchart of topology structure parameter configuration provided by the embodiment of the present application.

[0045] Figure 6 is a flowchart of underwater acoustic multipath channel generation provided by the embodiment of the present application.

[0046] Figure 7 is a flowchart of network simulation process playback provided by the embodiment of the present application. DETAILED DESCRIPTION

[0047] The principles and characteristics of the present application are described below in combination with the drawings, and the listed embodiments are only used to explain the present application, and are not used to limit the scope of the present application.

[0048] Referring to Figure 1 , the embodiment provides a visual underwater sensor network simulation method, which comprises the following steps:

[0049] S101, configure network simulation parameters, the network simulation parameters include topology structure parameters, channel parameters and simulation parameters.

[0050] S102, input the channel parameters into the underwater acoustic calculation tool to generate an underwater acoustic multipath channel for simulation.

[0051] In this embodiment, the underwater acoustic calculation tool adopts Bellhop, which is an underwater acoustic calculation tool based on a ray acoustic model, for realizing simulation of an underwater acoustic channel model.

[0052] S103, calculate the bit error rate BER of the multi-carrier MFSK underwater acoustic communication algorithm under the condition of the underwater acoustic multipath channel, and input the bit error rate BER into the OTcl script.

[0053] In this embodiment, the multi-carrier MFSK underwater acoustic communication algorithm includes a transmitting part and a receiving part.

[0054] The transmitting part includes a redundancy check module, a scrambling module, a Hadamard mapping module, an interleaving module, a random phase interference module, a bit data mapping frequency point module, an IFFT modulation module, and a peak-to-average ratio suppression module. Each module is encapsulated into a library function using C++ to complete the corresponding function. The block diagram of the transmitting part is shown in FIG. 2. Figure 2 The communication system adopts MFSK modulation, and the data frame structure is composed of a frame synchronization, a front guard interval, 12 MFSK symbols, and a rear guard interval. Each data frame fixedly transmits 12 MFSK symbols, each MFSK symbol contains 6 Hadamard codes, and each Hadamard code carries 5 bits of information, so that the number of encoded bits transmitted per frame is 360. Using a 1 / 2 code rate channel coding, the number of bits per frame before coding is 180, and after deducting the CRC and adding 0, the total number of valid data bits that can be transmitted per k frame is n = 180*k-21 (n = 180*k-16-5).

[0055] For example, in order to further improve the communication reliability, one repetition coding can be performed, and the communication rate is halved. The number of bits per frame before coding is 90, and after deducting the CRC and adding 0, the total number of valid data bits that can be transmitted per k frame is n = 90*k-21.

[0056] The encoding and modulation process includes the following steps:

[0057] (1) 0 is added to the tail of the input data to make the total length 2139.

[0058] (2) Calculate the CRC16 checksum, and add a 16-bit checksum to the tail of the data, so that the total length of the data is 2155.

[0059] (3) Scramble the data (including the checksum) with a pseudo-random sequence.

[0060] (4) In order to make the dual K code encoder return to the 0 state after each encoding, 5 zero bits are added to ensure that the last 5-bit combination is all 0. The total length becomes 2160 bits.

[0061] (5) The data is split into 432 5-bit combinations.

[0062] (6) Dual K code encoding is performed to generate 864 5-bit combinations.

[0063] (7) Interleaving is performed in units of 5-bit combinations.

[0064] Hadamard (20, 5)-OOK-IFFT is used for modulation to obtain 12 data frames containing 144 symbols.

[0065] Referring to Figure 3 , the receiving part of the multi-carrier MFSK underwater acoustic communication algorithm includes a synchronization module, a Doppler estimation and compensation module, a de-random phase module, a de-interleaving module, a Hadamard sequence decision module, an interference module, and a cyclic redundancy check module. By encapsulating each functional module into a function, the system function is realized. In the receiving process, synchronization is the premise of information transmission, and the synchronization performance affects the performance of the communication system. The synchronization module is realized through data stream header synchronization, data frame header and tail coarse and fine synchronization.

[0066] The multi-carrier MFSK underwater acoustic communication algorithm combines multi-carrier technology with MFSK technology, which significantly improves the frequency band utilization, communication rate, and anti-multipath capability of the system. OTcl is an object-oriented scripting language that extends the features of class (Class), object (Object), inheritance (Inheritance), and polymorphism (Polymorphism) based on the Tcl procedural syntax, which is suitable for building complex system models. The script is directly run by the interpreter, and after adjusting the parameters, it can be tested immediately without recompilation, allowing developers to focus on algorithm logic rather than underlying implementation.

[0067] S104, the OTcl script completed by the configuration is used for network simulation by the underwater network simulator.

[0068] In this embodiment, the underwater network simulator uses the Aqua-Sim simulator. In this step, the underwater network simulator realizes cyclic simulation based on the OTcl script, and the network load value is automatically changed inside the software.

[0069] S105, the network simulation result is displayed through a visual interface.

[0070] Referring to Figure 4Before inputting the bit error rate BER into the OTcl script, the OTcl script is automatically generated by the OTcl automatic generation module according to the network simulation requirement of the user, and the specific operations include the following:

[0071] S201, creating an empty OTcl script.

[0072] S202, obtaining the user simulation requirement input information through the interface control.

[0073] S203, judging whether the user simulation requirement is processed.

[0074] S204, if the user simulation requirement is not processed, searching for the program block corresponding to the user simulation requirement in the OTcl script library.

[0075] S205, writing the searched program block into the empty OTcl script.

[0076] If the user simulation requirement is processed, ending the operation.

[0077] As a possible implementation, refer to Figure 5 When configuring the topology structure parameters, the following operations are performed:

[0078] S301, the user configures the topology structure parameters through the topology control.

[0079] When the user completes the configuration of the topology structure parameters, the control button is clicked to trigger the button.click() signal to determine the completion of the configuration.

[0080] S302, obtaining the topology structure parameters in the topology control.

[0081] In this embodiment, when the button.click() signal is triggered, the slot function is entered, and the topology structure parameters in the topology control are obtained by calling the TableWidget class member function item(int, int)→Text().

[0082] S303, calling the OTcl script automatic generation module to generate the OTcl topology structure code and write it into the empty OTcl script.

[0083] In this step, the OTcl script automatic generation module generates the OTcl topology structure code according to the topology structure parameters obtained in step S302, writes it into the OTcl script, and ends the operation.

[0084] As another possible implementation, refer to Figure 6 Inputting the channel parameters into the underwater acoustic calculation tool to generate an underwater acoustic multipath channel for simulation, and the specific operations include the following:

[0085] S401, write channel parameters into the env environment configuration file.

[0086] In this step, first open the env environment configuration file, then get the channel parameters input by the user and write them into the env environment configuration file, or get the channel parameters from the OTcl script and write them into the env environment configuration file.

[0087] S402, get channel parameters through the OTcl script and set them as the values of the label control to display in the visualization interface.

[0088] S403, import the sound speed profile SSP data file and write it into the env environment configuration file.

[0089] S404, execute the env environment configuration file through the underwater acoustic calculation tool to generate an underwater acoustic multipath channel file with the extension arr.

[0090] In this step, the underwater network simulator calls the Linux C function system() to call Bellhop, and Bellhop executes the env environment configuration file to generate an underwater acoustic multipath channel file with the extension arr. After the file is generated, the operation ends.

[0091] As another possible implementation, the network simulation result is displayed through the visualization interface, specifically by calling the third-party component QcustomPlot to realize the visualization of the network simulation result. QCustomPlot is a small third-party chart library of Qt, which supports static / dynamic curves, column charts, candlestick charts, spectrum charts, etc., and is easy to use. In this implementation, network performance indicators including average end-to-end delay, throughput, packet loss rate, and energy consumption of each node are plotted through QcustomPlot, and the result is integrated and intuitively presented to the user.

[0092] As another possible implementation, after completing the network simulation, the network simulation process is also played back through a simulation playback module, which is described in detail in Figure 7 , and specifically includes the following steps:

[0093] S501, get the network simulation result file with the extension nam.

[0094] In this implementation, after the network simulation ends, the network simulation result file with the extension nam is output.

[0095] S502, create a Qprocess process to run the Nam software and process the network simulation result file through the Nam software.

[0096] S503, the Nam software displays the network simulation process in the form of an animation.

[0097] In this embodiment, the simulation playback module can realize the playback of the moving track of the mobile node in an animation form, so as to facilitate the user to intuitively watch the change of the topology of the simulation process.

[0098] Another embodiment of the present application also provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method in the foregoing method embodiments.

[0099] Still another embodiment of the present application also provides a computer device, comprising a memory, a processor and a computer program stored in the memory, wherein the processor executes the computer program to implement the method in the foregoing method embodiments.

[0100] The above merely describes the preferred embodiments of the present application and is not intended to limit the present application, and any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims

1. A method for simulating visualized underwater sensor networks, characterized in that, The method includes: Configure network simulation parameters, which include topology parameters, channel parameters, and simulation parameters. Input the channel parameters into the underwater acoustic calculation tool to generate an underwater acoustic multipath channel for simulation. Calculate the bit error rate (BER) of the multi-carrier MFSK underwater acoustic communication algorithm under underwater acoustic multipath channel conditions, and input the BER into the OTcl script; The configured OTcl script will be used to perform network simulation using an underwater network simulator. The network simulation results are displayed through a visual interface; Before inputting the bit error rate (BER) into the OTcl script, the OTcl script is automatically generated by the OTcl automatic generation module according to the user's network simulation requirements. The specific operations include the following: Create an empty OTcl script; The user's simulation requirements input information is obtained through interface controls; Determine whether the user's simulation requirements have been processed. If the user's simulation requirements are not addressed, search the OTcl script library for the program block corresponding to the user's simulation requirements. Write the found program blocks into an empty OTcl script.

2. The method for simulating a visualized underwater sensor network according to claim 1, characterized in that, When configuring topology parameters, perform the following operations: Users configure topology parameters using topology controls; Retrieve topology parameters from the topology control; The OTcl script is invoked to automatically generate the OTcl topology code and write it into an empty OTcl script.

3. The method for simulating a visualized underwater sensor network according to claim 1, characterized in that, Inputting the channel parameters into the underwater acoustic calculation tool generates an underwater acoustic multipath channel for simulation, specifically including the following operations: Write the channel parameters into the env environment configuration file; The channel parameters are obtained using an OTcl script and set as tag control values ​​for display in the visualization interface; Import the sound velocity profile (SSP) data file and write it to the env environment configuration file; The underwater acoustic calculation tool executes the env environment configuration file to generate an underwater acoustic multipath channel file with the extension .arr.

4. The method for simulating a visualized underwater sensor network according to claim 1, characterized in that, The transmitting part of the multi-carrier MFSK underwater acoustic communication algorithm includes a cyclic redundancy check module, a scrambling module, a Hadamard mapping module, an interleaving module, a random phase interference module, a bit data mapping frequency point module, an IFFT modulation module, and a peak-to-average power ratio suppression module.

5. The method for simulating a visualized underwater sensor network according to claim 4, characterized in that, The receiving part of the multi-carrier MFSK underwater acoustic communication algorithm includes a synchronization module, a Doppler estimation and compensation module, a random phase removal module, a deinterleaving module, a Hadamard sequence decision module, an interference module, and a cyclic redundancy check module.

6. The method for simulating a visualized underwater sensor network according to claim 1, characterized in that, The visualization of network simulation results is achieved by calling the third-party component QcustomPlot.

7. The method for simulating a visualized underwater sensor network according to claim 1, characterized in that, After completing the network simulation, the simulation replay module allows for playback of the simulation process, including the following operations: Obtain the network simulation results file with the .nam extension; Create a Qprocess process to run the Nam software, and use the Nam software to process the network simulation result files; The Nam software displays the network simulation process in the form of animation.

8. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1-7.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory, characterized in that, The processor executes the computer program to implement the steps of the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Underwater acoustic OFDM-MFSK channel equalization method based on virtual time reversal mirror

    CN107454024A

  • Multi-node comprehensive simulation system and method

    CN111314166A

  • Underwater sensor network visual simulation system based on Linux

    CN114021364A