Underwater network resource allocation method and device, equipment and storage medium
By prioritizing and analyzing channel state parameters of underwater network data packets, dynamically determining the number of redundant packets, and performing encoding and cross-layer resource scheduling, the problems of insufficient dynamic adaptability and resource waste in underwater wireless sensor networks are solved, improving transmission reliability and resource utilization, and extending network lifespan.
Patent Information
- Application Number
- CN202511219081.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-28
- Publication Date
- 2026-01-23
AI Technical Summary
Underwater wireless sensor networks suffer from insufficient dynamic adaptability, high latency of critical information, and inefficient resource coordination in dynamic channel environments, resulting in low transmission reliability, low resource utilization, and shortened network lifespan.
By prioritizing the original data packets, dynamically determining the number of redundant packets based on channel state parameters, and performing encoding processing and cross-layer resource scheduling, scheduling instructions are generated for physical layer signal modulation and transmission, thereby realizing priority management of data packets and dynamic allocation of resources.
It improves the transmission reliability and resource utilization of underwater networks, reduces bandwidth waste, extends network lifespan, solves the problems caused by fixed redundancy strategies, and achieves collaborative optimization between the physical layer and the network layer.
Smart Images

Figure CN121397758A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of underwater wireless sensor networks, and particularly relates to an underwater network resource allocation method and device, equipment and a storage medium. BACKGROUND
[0002] As a core supporting technology for ocean environment monitoring, resource exploration and disaster warning, the communication performance of underwater wireless sensor networks directly determines the effectiveness of the monitoring task. However, the inherent physical characteristics of the underwater acoustic channel bring many challenges to network resource allocation: the propagation speed of sound waves in water is only about 1500 meters per second, which is much lower than the propagation speed of electromagnetic waves in air, resulting in significant communication delay; at the same time, the underwater acoustic channel has problems such as limited bandwidth, strong multipath effect, large noise interference and prominent time-varying nature, combined with the limited energy of network nodes, making the reliability of data transmission and resource utilization rate become key problems to be solved.
[0003] In the prior art, the physical layer transmission technology mainly improves the transmission performance through signal modulation, channel coding and channel equalization, for example, using LFM+QPSK joint modulation to improve transmission efficiency, and using a synchronous signal processor and an equalizer to suppress multipath interference; the network layer focuses on path optimization and energy consumption control, and uses an AUV to build a hierarchical routing to shorten the path, and uses edge cloud cooperation to optimize the AUV moving path.
[0004] Although the prior art has made certain progress in modulation strategy and routing optimization, there are still significant technical defects in the intermittent connection underwater environment: first, the dynamic adaptability is insufficient, the physical layer modulation parameters and the network layer redundancy control are not combined with the real-time channel state dynamic adjustment, and the fixed redundancy strategy cannot guarantee the transmission reliability in the high packet loss rate scene, such as the fixed redundancy rate of channel coding causing more than 35% of bandwidth waste; second, the priority mechanism is missing, high-value data such as disaster warning and ordinary data compete for resources without difference, resulting in a delay of more than 5 seconds for critical information and a bit error rate of more than 30%; third, the resource cooperation is inefficient, and the blind sending of redundant packets causes bandwidth waste, and low-energy nodes continuously participate in data forwarding, significantly shortening the network lifetime. SUMMARY
[0005] The present application provides an underwater network resource allocation method, device, equipment and storage medium, which can comprehensively improve the transmission reliability, resource utilization rate and network lifetime of the underwater network.
[0006] In a first aspect, the application provides an underwater network resource allocation method, comprising: marking priority of collected original data packets to obtain priority marked data packets; obtaining a channel state parameter, determining a number of redundant packets based on a target priority corresponding to the priority marked data packets and the channel state parameter; performing encoding processing on the priority marked data packets to generate encoded data packets, wherein the encoded data packets include the priority marked data packets and the number of redundant packets; obtaining a state of a neighbor node corresponding to the encoded data packets, performing cross-layer resource scheduling based on the target priority, the state of the neighbor node and the channel state parameter to generate a scheduling instruction; and modulating a physical layer signal of the encoded data packets according to the scheduling instruction and transmitting the encoded data packets.
[0007] In a possible implementation, the channel state parameter is obtained by specifically including: extracting a pilot signal power of a received pilot signal, and collecting a background noise power of a target channel bandwidth; inputting the pilot signal power and the background noise power into a preset signal-to-noise ratio calculation formula to obtain a signal-to-noise ratio parameter; obtaining acknowledgement character information feedback information of historical transmission data received in a transmission process; performing sliding processing on the historical transmission data based on a preset sliding window, and obtaining a number of successfully transmitted data packets and a total number of transmitted data packets in the preset sliding window based on the acknowledgement character information feedback information; determining a transmission success rate based on a ratio of the number of successfully transmitted data packets to the total number of transmitted data packets, and determining a packet loss rate parameter based on the transmission success rate; and integrating the signal-to-noise ratio parameter and the packet loss rate parameter to determine the channel state parameter.
[0008] In a possible implementation, the number of redundant packets is determined based on the target priority corresponding to the priority marked data packets and the channel state parameter, specifically including: obtaining a signal-to-noise ratio parameter in the channel state parameter, comparing the signal-to-noise ratio parameter with a first signal-to-noise ratio parameter threshold and a second signal-to-noise ratio parameter threshold respectively, and determining a target basic redundancy based on a comparison result; inputting a target priority corresponding to the priority marked data packets into a preset priority compensation calculation formula to obtain a priority compensation amount; calculating a redundancy amount based on the target basic redundancy and the priority compensation amount, and determining the number of redundant packets based on the redundancy amount; or, inputting a packet loss rate parameter in the channel state parameter into a preset channel compensation calculation formula to obtain a channel compensation amount; inputting the target priority corresponding to the priority marked data packets into a preset priority compensation calculation formula to obtain a priority compensation amount; calculating a redundancy amount based on the channel compensation amount and the priority compensation amount, and determining the number of redundant packets based on the redundancy amount.
[0009] In a possible implementation, the priority marked data packet is encoded to generate an encoded data packet, wherein the encoded data packet comprises the priority marked data packet and a number of redundant packets, and specifically includes: segmenting the priority marked data packet to obtain a plurality of data blocks; inputting the plurality of data blocks into a preset target encoder to enable the target encoder to encode the plurality of data blocks to generate the number of redundant packets; adding a target bit flag to each of the number of redundant packets based on a target priority corresponding to the priority marked data packet to obtain a number of identified redundant packets; and arranging the priority marked data packet and the number of identified redundant packets to obtain the encoded data packet.
[0010] In a possible implementation, a neighbor node state corresponding to the encoded data packet is obtained, and cross-layer resource scheduling is performed based on the target priority, the neighbor node state, and a channel state parameter to generate a scheduling instruction, and specifically includes: obtaining a current priority of a current encoded data packet of a current transmission, comparing the target priority corresponding to the encoded data packet with the current priority, and if the target priority is greater than the current priority and a priority difference between the target priority and the current priority is greater than a preset priority difference threshold, generating an interrupt instruction to pause the transmission of the current encoded data packet and taking a next time slot as a transmission time slot of the encoded data packet; obtaining a plurality of neighbor nodes corresponding to a node where the encoded data packet is located, and obtaining a neighbor node state corresponding to each of the plurality of neighbor nodes, wherein the neighbor node state includes a neighbor node residual energy, a neighbor node initial energy, and a neighbor node average signal-to-noise ratio; calculating a neighbor node weight value corresponding to each of the plurality of neighbor nodes based on the neighbor node residual energy, the neighbor node initial energy, and the neighbor node average signal-to-noise ratio, and taking a neighbor node corresponding to a highest neighbor node weight value as a next hop address of the encoded data packet; obtaining a preset target signal-to-noise ratio parameter from the channel state parameter, calculating a target power value based on the preset target signal-to-noise ratio parameter and a signal-to-noise ratio parameter extracted from the channel state parameter, and taking the target power value as a transmission power value of the encoded data packet; and integrating the transmission time slot, the next hop address, and the transmission power value to obtain the scheduling instruction.
[0011] In a possible implementation, according to the scheduling instruction, the physical layer signal modulation is performed on the encoded data packet and the encoded data packet is transmitted, specifically including: mapping the sequence of the encoded data packet to orthogonal frequency division multiplexing modulation symbols, and performing orthogonal frequency division multiplexing modulation processing on the orthogonal frequency division multiplexing symbols to obtain orthogonal frequency division multiplexing symbols; based on the transmission power value in the scheduling instruction, the power adjustment is performed on the orthogonal frequency division multiplexing symbols, and the orthogonal frequency division multiplexing symbols after the power adjustment are transmitted to the node corresponding to the next hop address in the scheduling instruction in the transmission time slot specified in the scheduling instruction.
[0012] In a possible implementation, the collected original data packet is marked with a priority to obtain a priority marked data packet, specifically including: obtaining an original data packet collected by a sensor, wherein the original data packet includes at least one of a disaster early warning signal, an environmental signal, and a device state signal; performing data feature extraction on the original data packet to obtain original data features; performing matching processing on the original data features and preset data features in a preset data feature-priority association table, and setting a matching obtained priority as a target priority of the original data packet; adding the target priority to a header of the original data packet to obtain the priority marked data packet.
[0013] In a second aspect, the present application provides an underwater network resource allocation device, comprising: a data priority marking module, a redundant packet quantity determination module, a data encoding module, a resource scheduling module, and a data transmission module; wherein the data priority marking module is configured to mark the collected original data packet with a priority to obtain a priority marked data packet; the redundant packet quantity determination module is configured to obtain a channel state parameter, determine a redundant packet quantity based on a target priority corresponding to the priority marked data packet and the channel state parameter; the data encoding module is configured to perform encoding processing on the priority marked data packet to generate an encoded data packet, wherein the encoded data packet includes the priority marked data packet and the redundant packet quantity of redundant packets; the resource scheduling module is configured to obtain a neighbor node state corresponding to the encoded data packet, perform cross-layer resource scheduling based on the target priority, the neighbor node state, and the channel state parameter to generate a scheduling instruction; and the data transmission module is configured to perform physical layer signal modulation on the encoded data packet according to the scheduling instruction and transmit the encoded data packet.
[0014] In a third aspect, the embodiments of the present application further provide a computer device, comprising a memory and a processor, the memory has a computer program stored thereon, and the processor implements the above method when executing the computer program.
[0015] In a fourth aspect, the embodiments of the present application further provide a computer readable storage medium, which stores a computer program. The computer program, when executed by a processor, can implement the method described above.
[0016] The embodiments of the present application provide a method, device and equipment for underwater network resource allocation, and a storage medium. Compared with the prior art, the embodiments of the present application have the following advantages.
[0017] The method comprises the following steps: performing priority marking on the collected original data packets to obtain priority marked data packets; obtaining a channel state parameter; determining a number of redundant packets based on a target priority corresponding to the priority marked data packets and the channel state parameter; performing encoding processing on the priority marked data packets to generate encoded data packets, wherein the encoded data packets comprise the priority marked data packets and the number of redundant packets; obtaining a neighbor node state corresponding to the encoded data packets; performing cross-layer resource scheduling based on the target priority, the neighbor node state and the channel state parameter to generate a scheduling instruction; and performing physical layer signal modulation and transmission on the encoded data packets according to the scheduling instruction. Compared with the prior art, the technical solution of the present application performs priority marking on the original data packets, breaks through the limitation of data non-discriminatory competition for resources in the traditional method, and avoids delay or loss of key information caused by resource competition from the source. Secondly, the number of redundant packets is dynamically determined based on the priority and the real-time channel state parameter, which replaces the fixed redundancy strategy and improves the dynamic adaptability of resource allocation. The number of redundant packets can be matched with important data according to the channel quality to ensure reliability, and the bandwidth waste caused by blind sending of redundant packets can be avoided, thereby solving the problem of bandwidth waste under the fixed redundancy rate. Finally, the cross-layer resource scheduling combining the priority, the neighbor node state and the channel state realizes the cooperative optimization of the physical layer and the network layer, can avoid continuous participation of low-energy nodes in forwarding, reduces invalid resource consumption, prolongs the life of the whole network, further improves the resource utilization efficiency through on-demand modulation and transmission, and comprehensively improves the transmission reliability, resource utilization rate and network endurance of the underwater network in the dynamic channel environment. BRIEF DESCRIPTION OF DRAWINGS
[0018] The accompanying drawings, which are incorporated herein and form part of the specification, illustrate embodiments consistent with the present application and, together with the description, further serve to explain the principles of the application.
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without any creative labor.
[0020] One or more embodiments are illustrated by way of example in the drawings and specification herein, like referenced numerals in the drawings and specification mean like elements, and chisel drawings are not to scale.
[0021] Figure 1 is a flow diagram of one embodiment of a method for underwater network resource allocation provided by the present application;
[0022] Figure 2 is a structural diagram of one embodiment of an apparatus for underwater network resource allocation provided by the present application;
[0023] Figure 3 is a structural diagram of a computer device provided by the present application. DETAILED DESCRIPTION
[0024] In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by a person of ordinary skill in the art without creative work fall within the protection scope of the present application.
[0025] The following disclosure provides many different embodiments, or examples, for implementing different structures of the present application. For the purpose of simplicity, the elements and arrangements of the various examples are described in the following detailed description. These are, of course, merely examples and are not intended to limit the application of the application. In addition, the present application can repeat reference numerals and / or letters in different examples. This repetition is for the purpose of simplicity and clarity and does not in itself dictate a relationship between the various embodiments and / or configurations discussed.
[0026] It should be understood that the terms "comprise" and "comprising" when used in this specification and the appended claims specify the presence of stated features, integers, steps, operations, elements, and / or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof.
[0027] It should also be understood that the terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application. As used in the specification and the appended claims of the present application, the singular forms "a," "an," and "the" are intended to include the plural forms unless the context clearly indicates otherwise.
[0028] It should also be further understood that the term "and / or" as used in the specification and in the claims, means any one of the associated listed items, or any combination of the associated listed items, and includes all possible combinations.
[0029] As used in the specification and in the claims, the term "if' can be interpreted as meaning "when" or "once" or "in response to a determination" or "in response to a detection" depending on the context. Similarly, the phrase "if determined" or "if detected [the described condition or event]" can be interpreted to mean "once determined" or "in response to a determination" or "once detected [the described condition or event]" or "in response to a detection [the described condition or event]" depending on the context.
[0030] Embodiment 1, see Figure 1 , Figure 1 is a flowchart of an embodiment of an underwater network resource allocation method provided by the present application, as Figure 1 shown, the method comprises steps 101-103, specifically as follows:
[0031] Step 101: Priority marking is performed on the collected raw data packets to obtain priority marked data packets.
[0032] In an embodiment, raw data packets collected by a sensor are obtained, wherein the raw data packets include at least one of a disaster warning signal, an environmental signal, and a device state signal; data feature extraction is performed on the raw data packets to obtain raw data features; the raw data features are matched with preset data features in a preset data feature-priority association table, and a matching obtained priority is set as a target priority of the raw data packets; and the target priority is added to a header of the raw data packets to obtain priority marked data packets.
[0033] Specifically, sensor data is collected by a data collection sensor in the system to form raw data packets.
[0034] Specifically, the disaster warning signal includes but is not limited to a signal such as an earthquake waveform and a tsunami fluctuation that can indicate a marine disaster; the environmental signal includes but is not limited to a conventional marine environmental parameter such as water temperature, salinity, and water flow speed; and the device state signal includes but is not limited to device self-state data such as a sensor node power, a running temperature, and a fault code.
[0035] Specifically, the data features of the original data packet are extracted, and the data in the original data packet is analyzed by a digital signal processing technology to extract key features that can reflect the emergency level or importance of the data. For example, for a disaster warning signal, it is detected whether there is a spectrum energy mutation in the disaster warning signal. If there is, the original data feature of the disaster warning signal is determined to be a spectrum energy mutation. For a device status signal, it is detected whether there is an abnormal state in the device status signal. If so, the original data feature of the device status signal is determined to be a device state anomaly. For a regular environment signal, it is detected whether there is an abnormal fluctuation value in the environment signal. If so, the original data feature of the environment signal is determined to be an abnormal feature.
[0036] Example: Detecting an abnormal pulse signal in a seismic waveform, when the spectrum energy mutation amplitude of the abnormal pulse signal exceeds a preset threshold, determining an emergency feature, detecting whether the device status signal sent by the detection node is a fault alarm code, if so, determining a device state anomaly; respectively detecting whether the water temperature, salinity, water flow speed and other environment signals exceed the corresponding preset environment signal threshold, if so, determining that the original data feature of the environment signal is an abnormal feature, otherwise, determining that the original data feature of the environment signal is not an abnormal feature.
[0037] Specifically, the data feature-priority association table stores the corresponding rules of data features and priorities. For example, when the spectrum energy mutation amplitude of the abnormal pulse signal in the disaster warning signal exceeds the preset threshold, the disaster warning signal corresponds to the highest priority level 5; when the original data feature of the device status signal is a device state anomaly, the device status signal corresponds to the priority level 4; when the original data feature of the environment signal is an abnormal feature, the environment signal corresponds to the priority level 3; when the original data feature of the environment signal is not an abnormal feature, the environment signal corresponds to the priority level 2; when the original data feature of the environment signal is not an abnormal feature, and the original data feature of the environment signal meets the preset optimal feature, the environment signal corresponds to the priority level 1.
[0038] Specifically, the application layer classifier in the system compares the extracted original data features with the preset data features in the table, and after a successful match, the target priority of the original data packet can be determined, realizing differentiated classification of data.
[0039] Specifically, when the application layer classifier in the system adds the target priority to the header of the original data packet, after determining the target priority of the original data packet, the target priority is written into a 4-byte mark header, and the format of the mark header is 0x[priority][timeliness][reserved bit], the priority field directly corresponds to the matched priority level, for example, the priority level 5 corresponds to the field value 5, the timeliness field identifies the time sensitivity of the data, and the reserved bit is used for future function extension; the mark header is added to the header of the original data packet, and finally a priority marked data packet with a priority mark is generated, which provides clear priority identification for subsequent dynamic redundancy control and cross-layer scheduling.
[0040] Step 102: Obtain a channel state parameter, and determine the number of redundant packets based on the target priority corresponding to the priority marked data packet and the channel state parameter.
[0041] In an embodiment, the channel monitor in the system extracts the pilot signal power of the received pilot signal, and collects the background noise power of the target channel bandwidth, and inputs the pilot signal power and the background noise power into a preset signal-to-noise ratio calculation formula to obtain a signal-to-noise ratio parameter.
[0042] Specifically, the pilot signal is an HFM pilot signal, which has good anti-multipath interference characteristics and is easily identifiable, so it can be easily separated from complex underwater acoustic signals.
[0043] Specifically, after receiving the acoustic signal containing the HFM pilot signal transmitted from the underwater channel based on the physical layer, the pilot signal is separated from the acoustic signal through signal processing methods such as filtering and amplification, and the power value of the pilot signal is calculated through a power detection circuit or an algorithm. The power value directly reflects the strength of the effective signal in the current channel; preferably, the acoustic signal is captured by a sonar receiver from the water environment, and then converted into an electrical signal to enter the physical layer processing flow.
[0044] Specifically, the collection of the background noise power focuses on a specific bandwidth range of the target channel, in order to standardize the frequency range of noise evaluation and avoid the incommensurability of noise power calculation results caused by bandwidth differences; preferably, the target channel includes but is not limited to 200Hz.
[0045] Specifically, the collection process of the background noise power needs to be performed in the gap without pilot signal and data signal transmission, the water environment noise in the 200Hz bandwidth is captured through a noise detection module, the average power of the water environment noise is calculated, and the average power is taken as the background noise power, so as to ensure that the collection result only reflects the inherent background noise level of the channel.
[0046] Specifically, the preset signal-to-noise ratio calculation formula is as follows:
[0047]
[0048] wherein SNR is a signal-to-noise ratio parameter, P signal is a pilot signal power, P noise is a background noise power.
[0049] Specifically, the signal-to-noise ratio parameter quantifies the ratio of the effective signal to the background noise, and is a core index for evaluating the channel quality. When the signal-to-noise ratio parameter value is high, it indicates that the effective signal occupies a high proportion in the channel and the interference is small, and the channel quality is good. When the signal-to-noise ratio parameter value is low, it indicates that the channel is greatly affected by noise or interference, and the quality is poor.
[0050] In an embodiment, the historical transmission data is obtained, and the acknowledgement character information feedback information received in the transmission process is obtained. The historical transmission data is processed based on a preset sliding window, the number of successfully transmitted data packets and the total number of transmitted data packets in the preset sliding window are obtained based on the acknowledgement character information feedback information. The transmission success rate is determined based on the ratio of the number of successfully transmitted data packets to the total number of transmitted data packets, and the packet loss rate parameter is determined based on the transmission success rate.
[0051] Specifically, in the process of underwater network data transmission, when the sending end transmits a data packet to the receiving end, if the receiving end successfully receives and verifies the data packet, the receiving end returns an acknowledgement character information ACK to the sending end, to inform the sending end that the data packet has been correctly received. If the receiving fails, such as data packet loss or verification error, no acknowledgement character information ACK is returned or a negative acknowledgement character information NACK is returned. The sending end records whether the acknowledgement character information ACK is received after each data transmission, to form a state record of the transmission success / failure of the historical transmission data in the transmission process.
[0052] Specifically, the preset sliding window is 10, that is, the preset sliding window contains the transmission records of the last 10 transmission data.
[0053] Specifically, the historical transmission data is processed based on the preset sliding window, to ensure that the statistical result reflects the latest channel state. When a new transmission event occurs, the preset sliding window automatically slides, by excluding the transmission record of the earliest 1 transmission data and including the transmission record of the latest 1 transmission data, to always maintain the statistical coverage of the last 10 transmissions. This sliding mechanism avoids the interference of old data on the evaluation of the channel state, so that the statistical result is more in line with the real-time characteristics of the current channel.
[0054] Specifically, within the preset sliding window, the number of data packets receiving the acknowledgement character information ACK feedback is counted as the number of successfully transmitted data packets, and the total number of all transmitted data packets in the preset sliding window is counted as the total number of transmitted data packets, and the ratio of the two is the transmission success rate.
[0055] Specifically, since the packet loss rate is directly related to the transmission success rate, after obtaining the transmission success rate, the packet loss rate parameter can be directly calculated and determined based on the relationship between the two, wherein the packet loss rate parameter is 1-transmission success rate.
[0056] In an embodiment, the signal-to-noise ratio parameter and the packet loss rate parameter are integrated to determine the channel state parameter.
[0057] In an embodiment, when the dynamic redundancy controller in the system determines the number of redundant packets based on the target priority corresponding to the priority-labeled data packet and the channel state parameter, the signal-to-noise ratio parameter in the channel state parameter is obtained, the signal-to-noise ratio parameter is compared with the first signal-to-noise ratio parameter threshold and the second signal-to-noise ratio parameter threshold respectively, based on the comparison result, the target basic redundancy is determined; the target priority corresponding to the priority-labeled data packet is obtained, and the target priority is input into a preset priority compensation calculation formula to obtain a priority compensation amount; based on the target basic redundancy and the priority compensation amount, the redundancy amount is calculated, and the number of redundant packets is determined based on the redundancy amount.
[0058] Preferably, the first signal-to-noise ratio parameter threshold is 20 dB; and the second signal-to-noise ratio parameter threshold is 10 dB.
[0059] Specifically, the signal-to-noise ratio parameter is compared with the first signal-to-noise ratio parameter threshold and the second signal-to-noise ratio parameter threshold respectively, if the signal-to-noise ratio parameter is greater than the first signal-to-noise ratio parameter threshold, the target priority of the priority-labeled data packet is matched with the corresponding basic redundancy based on a preset priority-basic redundancy table, and the matched basic redundancy is taken as the target basic redundancy, if the signal-to-noise ratio parameter is not greater than the first signal-to-noise ratio parameter threshold, but the signal-to-noise ratio parameter is greater than the second signal-to-noise ratio parameter threshold, the first preset value is set as the target basic redundancy, if the signal-to-noise ratio parameter is not greater than the second signal-to-noise ratio parameter threshold, the second preset value is set as the target basic redundancy.
[0060] Specifically, when the target priority of the priority-labeled data packet is matched with the corresponding basic redundancy based on the preset priority-basic redundancy table, the FPGA lookup table pre-stores the priority-basic redundancy table to match the basic redundancy, which can reduce the calculation delay to 50 μs.
[0061] Preferably, the first preset value is 1; and the second preset value is 2.
[0062] Specifically, the preset priority compensation calculation formula is as follows:
[0063] ΔN = β × P priority ;
[0064] In the formula, ΔN is the priority compensation amount, β is the priority weight, P priority is the priority.
[0065] Preferably, the priority compensation amount is 0.3.
[0066] Specifically, the target base redundancy amount and the priority compensation amount are added to obtain a sum value as the redundancy amount.
[0067] In an embodiment, when determining the number of redundancy packets based on the target priority corresponding to the priority marked packet and the channel state parameter, the dynamic redundancy controller in the system can also obtain a packet loss rate parameter in the channel state parameter, input the packet loss rate parameter into a preset channel compensation calculation formula to obtain a channel compensation amount, obtain the target priority corresponding to the priority marked packet, input the target priority into a preset priority compensation calculation formula to obtain a priority compensation amount, calculate a redundancy amount based on the channel compensation amount and the priority compensation amount, and determine the number of redundancy packets based on the redundancy amount.
[0068] Specifically, the channel compensation calculation formula is ΔP = α × (1 - P success ); wherein ΔP is the channel compensation amount, 1 - P success is the packet loss rate parameter, and α is a channel state weight value.
[0069] Preferably, the channel state weight value is 0.7.
[0070] Specifically, the channel compensation amount and the priority compensation amount are added to obtain a sum value as the redundancy amount.
[0071] Step 103: encoding processing is performed on the priority marked packet to generate an encoded packet, wherein the encoded packet contains the priority marked packet and the number of redundancy packets.
[0072] In an embodiment, the priority marked packet is segmented to obtain a plurality of data blocks.
[0073] Specifically, the priority marked original data packet with the priority marked header is divided into a plurality of equal-length data blocks in a fixed length; preferably, the fixed length is 512 bytes, that is, the size of each data block is uniformly 512 bytes; such block processing provides standardized input for subsequent encoding, ensuring the consistency of granularity when generating redundant packets.
[0074] Specifically, the total number of data blocks obtained by the division operation is k.
[0075] In an embodiment, the plurality of data blocks are input into a preset target encoder, so that the target encoder encodes and processes the plurality of data blocks to generate the redundant packet quantity of redundant packets.
[0076] Specifically, the target encoder generates a corresponding number of redundant packets according to the dynamically determined redundant packet quantity; preferably, the target encoder is an LT code encoder.
[0077] Specifically, the core feature of the LT code encoder is to satisfy any K packets decodable, that is, the receiving end can completely recover the original data as long as any K data packets including the original data blocks and the redundant packets are obtained, which can significantly improve the data delivery success rate in the underwater channel with high packet loss rate, and the encoding complexity is controlled at O(KlogK), balancing efficiency and reliability.
[0078] In an embodiment, based on the target priority corresponding to the priority marked data packet, a target bit flag is added to each of the redundant packets to obtain the redundant packet quantity of identified redundant packets.
[0079] Specifically, the signal processor in the system compares the target priority corresponding to the priority marked data packet with a preset target priority threshold, and if the target priority is greater than the preset target priority threshold, a 1-bit retransmission flag is added to the header of each redundant packet, and if the target priority is not greater than the preset target priority threshold, a 0-bit retransmission flag is added to the header of each redundant packet, to obtain the redundant packet quantity of identified redundant packets.
[0080] Preferably, the target bit flag is a trigger signal for the receiving end; when the target bit flag is detected to be 1, the selective retransmission mechanism is actively triggered if the reception fails, further ensuring the reliable transmission of high-priority data, and the low-priority data does not enable retransmission to save bandwidth resources.
[0081] In an embodiment, the priority marked data packet and the redundant packet quantity of identified redundant packets are arranged to obtain an encoded data packet.
[0082] Specifically, the segmented priority marked original data packet and the number of redundant packets after adding the target bit flag are arranged in a preset order to form a complete coded data packet sequence; the coded data packet sequence contains the content of the original data packet, carries the redundant packets of the adaptation channel state and data priority, and realizes the differentiation of retransmission control through the identification bit, thereby providing a structured transmission unit for subsequent cross-layer resource scheduling and physical layer transmission.
[0083] Step 104: obtaining the state of a neighbor node corresponding to the coded data packet, performing cross-layer resource scheduling based on the target priority, the state of the neighbor node and the channel state parameter, and generating a scheduling instruction.
[0084] In an embodiment, the current priority of a current coded data packet being currently transmitted is obtained, the target priority corresponding to the coded data packet is compared with the current priority, if the target priority is greater than the current priority and the priority difference between the target priority and the current priority is greater than a preset priority difference threshold, an interrupt instruction is generated to pause the transmission of the coded data packet, and the next time slot is taken as the transmission time slot of the coded data packet.
[0085] Specifically, the system needs to monitor two priority parameters at the same time: one is the current priority, i.e. the priority mark (1-5 levels) of the current coded data packet being transmitted; the other is the target priority, i.e. the priority mark of the new coded data packet waiting to be transmitted. These priority information comes from the 4-byte mark header in the data packet header, which can be directly obtained by analyzing the priority field in the mark header, providing a basis for subsequent comparison.
[0086] Preferably, the preset priority difference threshold is 2.
[0087] Specifically, the system compares the target priority with the current priority in numerical value, if the target priority is greater than the current priority and the priority difference between the two is greater than the preset priority difference threshold 2, the time slot preemption condition is met; this judgment mechanism avoids frequent interruptions caused by slight priority difference, and only allows significantly more important data to preempt resources, balancing the priority guarantee and transmission stability.
[0088] Specifically, when the preemption condition is met, the cross-layer resource scheduler immediately generates an interrupt instruction to pause the transmission of the current encoded data packet through a hardware interrupt signal, and release the channel resource; at the same time, the next available time slot is allocated to the encoded data packet corresponding to the target priority to ensure that it obtains the transmission opportunity in priority; for example, when a low-priority (level 2) data is being transmitted, if high-priority (level 5) disaster warning data arrives, because the priority is 3, which is greater than the preset priority difference threshold 2, the system will interrupt the current transmission and allocate the next time slot to the disaster warning data, which greatly reduces the transmission delay of critical information and solves the problem that high-value data and ordinary data compete for resources without difference in the traditional method.
[0089] In an embodiment, a plurality of neighbor nodes corresponding to a node where the encoded data packet is located are acquired, and a respective neighbor node state corresponding to each of the plurality of neighbor nodes is acquired, wherein the neighbor node state includes a neighbor node residual energy, a neighbor node initial energy, and a neighbor node average signal-to-noise ratio, a neighbor node weight value corresponding to each of the plurality of neighbor nodes is calculated based on the neighbor node residual energy, the neighbor node initial energy, and the neighbor node average signal-to-noise ratio, and a neighbor node corresponding to a highest neighbor node weight value is taken as a next hop address of the encoded data packet.
[0090] Specifically, the underwater sensor node perceives the neighbor nodes that can communicate in the periphery through periodic broadcast or handshake signals to form a neighbor node list; for each neighbor node in the neighbor node list, the system collects a respective neighbor node state corresponding to each neighbor node through real-time monitoring and information interaction, wherein the neighbor node state can reflect the energy health degree and link transmission reliability of the neighbor node, and is a core basis for routing decision.
[0091] Specifically, the neighbor node residual energy, the neighbor node initial energy, and the neighbor node average signal-to-noise ratio are input into a preset neighbor node weight calculation formula to obtain a neighbor node weight value corresponding to each of the plurality of neighbor nodes, wherein the preset neighbor node weight calculation formula is as follows:
[0092]
[0093] In the formula, W node is the neighbor node weight value, E0 is the neighbor node initial energy, E res is the neighbor node residual energy, SNR avg is the neighbor node average signal-to-noise ratio.
[0094] Preferably, the preset neighbor node weight calculation formula can also be set as:
[0095]
[0096] Specifically, the system compares the neighbor node weight values of all neighbor nodes, and determines the neighbor node with the highest neighbor node weight value as the next hop routing node of the encoded data packet; this selection mechanism not only avoids the node with too low residual energy from being frequently selected to prevent the node from rapidly exhausting energy and shortening the network life, but also preferentially selects the node with better channel quality to reduce the packet loss rate in transmission, thereby achieving the dual optimization of network energy consumption balance and data transmission reliability, and solving the problem of rigid energy allocation or ignoring channel quality in the traditional routing strategy.
[0097] In an embodiment, the channel state parameter obtains a preset target signal-to-noise ratio parameter, extracts a signal-to-noise ratio parameter from the channel state parameter, calculates a target power value based on the preset target signal-to-noise ratio parameter and the signal-to-noise ratio parameter, and takes the target power value as the transmission power value of the encoded data packet.
[0098] Specifically, the preset target signal-to-noise ratio parameter SNR target is a benchmark threshold value for ensuring reliable data transmission; preferably, the preset target signal-to-noise ratio SNR target is 15Db, which is pre-stored in the system as a target reference value for power control.
[0099] Specifically, after the channel state monitoring module extracts the signal-to-noise ratio parameter from the channel state parameter, the signal-to-noise ratio parameter and the preset target signal-to-noise ratio are input into a preset power calculation formula to obtain a target power value; wherein the preset power calculation formula is as follows:
[0100]
[0101] In the formula, P tx is the target power value, P base is the basic power, i.e., the benchmark transmission power at a distance of 1km is 1W, SNR target is the preset target signal-to-noise ratio parameter, and SNR current is the signal-to-noise ratio parameter.
[0102] Specifically, the core logic of the preset power calculation formula is that when the signal-to-noise ratio parameter is lower than the preset target signal-to-noise ratio parameter, the transmission power is increased to compensate for the channel loss; and when the signal-to-noise ratio parameter is higher than the preset target signal-to-noise ratio parameter, the transmission power is reduced to save energy.
[0103] In an embodiment, the transmission time slot, the next hop address, and the transmission power value are integrated to obtain a scheduling instruction.
[0104] Step 105: According to the scheduling instruction, the physical layer signal of the encoded data packet is modulated and transmitted.
[0105] In an embodiment, the sequence of coded data packets is mapped to OFDM modulation symbols, and the OFDM modulation symbols are subjected to OFDM modulation processing to obtain OFDM symbols; based on the transmit power value in the scheduling instruction, the OFDM symbols are subjected to power adjustment, and the OFDM symbols subjected to power adjustment are transmitted to a node corresponding to the next-hop address in the scheduling instruction in the transmit time slot specified in the scheduling instruction.
[0106] Specifically, when the sequence of coded data packets is mapped to OFDM modulation symbols, since the sequence of coded data packets contains original data packets and marker redundant packets divided into multiple data blocks, the core is a binary data stream; therefore, the physical layer first performs symbol mapping on the binary data in the sequence of coded data packets to obtain corresponding OFDM modulation symbols, realizing conversion of digital signals to modulation symbols.
[0107] Preferably, the sequence of coded data packets is mapped by using a mapping mode of QPSK (Quadrature Phase Shift Keying), for example, 2 binary bits are mapped to one QPSK modulation symbol, for example, “00” corresponds to 0 phase, “01” corresponds to 90° phase, and the like.
[0108] Specifically, when the OFDM symbols are subjected to OFDM modulation processing, the core of OFDM modulation is to convert serial symbols into parallel transmission subcarrier signals, wherein 64 subcarriers are configured in the OFDM symbols, and a cyclic prefix of 1 / 4 symbol length is inserted to resist multipath interference.
[0109] In specific processing, inverse fast Fourier transform is performed on the OFDM modulation symbols to convert frequency domain signals into time domain signals, and a cyclic prefix is added to form complete OFDM symbols; this modulation mode effectively resists frequency selective fading of an underwater channel through multi-subcarrier parallel transmission, and improves the stability of signal transmission.
[0110] Specifically, when the power controller in the system subjects the OFDM symbols to power adjustment based on the transmit power value in the scheduling instruction, the physical layer extracts the transmit power value from the scheduling instruction, and accurately adjusts the power of the OFDM symbols through a power amplifier, with an adjustment step of 0.1 W, to ensure that the actual transmit power is consistent with the requirement of the scheduling instruction; for example, when the scheduling instruction requires a transmit power value of 2.3 W, the power amplifier adjusts the signal power to 2.3 W, which meets the requirement of signal-to-noise ratio required by channel transmission, and avoids energy waste or interference caused by excessively high power.
[0111] Specifically, when the routing controller in the system transmits the OFDM symbol after power adjustment to the node corresponding to the next hop address in the scheduling instruction within the transmission time slot specified in the scheduling instruction, the system ensures time slot control accuracy through a clock synchronization mechanism, and within the transmission time slot window specified in the scheduling instruction, converts the OFDM symbol after power adjustment into a sound wave signal through a transducer array in the system, and transmits it to the neighbor node corresponding to the next hop address specified in the scheduling instruction based on the sonar transmitter directional transmission mechanism. This time slot synchronization and directional transmission mechanism ensures the timing accuracy of signal transmission and the correctness of the target node, avoids channel resource conflicts, and further improves the transmission efficiency of the underwater network.
[0112] Embodiment 2, see Figure 2 , Figure 2 is a structural schematic diagram of an embodiment of an underwater network resource allocation device provided by the present application. Corresponding to the above underwater network resource allocation method, the present application also provides an underwater network resource allocation device. The underwater network resource allocation device includes a module for executing the above-mentioned underwater network resource allocation method, and the underwater network resource allocation device can be configured in a desktop computer, a tablet computer, a laptop computer, etc. terminal; Specifically, the underwater network resource allocation device includes a data priority marking module 201, a redundant packet number determination module 202, a data encoding module 203, a resource scheduling module 204, and a data transmission module 205.
[0113] In an embodiment, the data priority marking module 201 is configured to mark the collected raw data packets with priorities to obtain priority marked data packets.
[0114] In an embodiment, the redundant packet number determination module 202 is configured to obtain a channel state parameter, and determine a number of redundant packets based on a target priority corresponding to the priority marked data packet and the channel state parameter.
[0115] In an embodiment, the data encoding module 203 is configured to encode the priority marked data packet to generate an encoded data packet, wherein the encoded data packet includes the priority marked data packet and the number of redundant packets.
[0116] In an embodiment, the resource scheduling module 204 is configured to obtain a neighbor node state corresponding to the encoded data packet, perform cross-layer resource scheduling based on the target priority, the neighbor node state, and the channel state parameter, and generate a scheduling instruction.
[0117] In an embodiment, the data transmission module 205 is configured to perform physical layer signal modulation and transmission on the encoded data packet according to the scheduling instruction.
[0118] In an embodiment, the redundancy packet quantity determination module 202 is configured to obtain a channel state parameter, specifically including: extracting a pilot signal power of a received pilot signal, and collecting background noise power of a target channel bandwidth, inputting the pilot signal power and the background noise power into a preset signal-to-noise ratio calculation formula to obtain a signal-to-noise ratio parameter; obtaining acknowledgement character information feedback information of historical transmission data received in a transmission process; performing sliding processing on the historical transmission data based on a preset sliding window, obtaining a number of successfully transmitted data packets and a total number of transmitted data packets in the preset sliding window based on the acknowledgement character information feedback information; determining a transmission success rate based on a ratio of the number of successfully transmitted data packets to the total number of transmitted data packets, and determining a packet loss rate parameter based on the transmission success rate; and integrating the signal-to-noise ratio parameter and the packet loss rate parameter to determine the channel state parameter.
[0119] In an embodiment, the redundancy packet quantity determination module 202 is configured to determine a redundancy packet quantity based on a target priority corresponding to the priority marked data packet and the channel state parameter, specifically including: obtaining a signal-to-noise ratio parameter in the channel state parameter, comparing the signal-to-noise ratio parameter with a first signal-to-noise ratio parameter threshold and a second signal-to-noise ratio parameter threshold respectively, and determining a target basic redundancy amount based on a comparison result; obtaining the target priority corresponding to the priority marked data packet, inputting the target priority into a preset priority compensation calculation formula to obtain a priority compensation amount; calculating a redundancy amount based on the target basic redundancy amount and the priority compensation amount, and determining the redundancy packet quantity based on the redundancy amount; or, inputting a packet loss rate parameter in the channel state parameter into a preset channel compensation calculation formula to obtain a channel compensation amount; obtaining the target priority corresponding to the priority marked data packet, inputting the target priority into a preset priority compensation calculation formula to obtain a priority compensation amount; calculating a redundancy amount based on the channel compensation amount and the priority compensation amount, and determining the redundancy packet quantity based on the redundancy amount.
[0120] In an embodiment, the data encoding module 203 is configured to perform encoding processing on the priority marked data packet to generate an encoded data packet, wherein the encoded data packet includes the priority marked data packet and a redundancy packet quantity of redundancy packets, specifically including: performing segmentation processing on the priority marked data packet to obtain a plurality of data blocks; inputting the plurality of data blocks into a preset target encoder to enable the target encoder to perform encoding processing on the plurality of data blocks to generate the redundancy packet quantity of redundancy packets; adding a target bit flag to each of the redundancy packets based on a target priority corresponding to the priority marked data packet to obtain the redundancy packet quantity of identified redundancy packets; and performing arrangement processing on the priority marked data packet and the redundancy packet quantity of identified redundancy packets to obtain the encoded data packet.
[0121] In an embodiment, the resource scheduling module 204 is configured to obtain a neighbor node state corresponding to the encoded data packet, perform cross-layer resource scheduling based on the target priority, the neighbor node state, and a channel state parameter, and generate a scheduling instruction, specifically including: obtaining a current priority of a current encoded data packet of a current transmission, comparing the target priority corresponding to the encoded data packet with the current priority, if the target priority is greater than the current priority and a priority difference between the target priority and the current priority is greater than a preset priority difference threshold, generating an interrupt instruction to pause the transmission of the current encoded data packet, and taking a next time slot as a transmission time slot of the encoded data packet; obtaining a plurality of neighbor nodes corresponding to a node where the encoded data packet is located, and respectively obtaining a neighbor node state corresponding to each of the plurality of neighbor nodes, wherein the neighbor node state includes a neighbor node residual energy, a neighbor node initial energy, and a neighbor node average signal-to-noise ratio; calculating a neighbor node weight value corresponding to each of the plurality of neighbor nodes based on the neighbor node residual energy, the neighbor node initial energy, and the neighbor node average signal-to-noise ratio, and taking a neighbor node corresponding to a highest neighbor node weight value as a next hop address of the encoded data packet; obtaining a preset target signal-to-noise ratio parameter from the channel state parameter, and extracting a signal-to-noise ratio parameter from the channel state parameter, calculating a target power value based on the preset target signal-to-noise ratio parameter and the signal-to-noise ratio parameter, and taking the target power value as a transmission power value of the encoded data packet; and integrating the transmission time slot, the next hop address, and the transmission power value to obtain the scheduling instruction.
[0122] In an embodiment, the data transmission module 205 is configured to perform physical layer signal modulation and transmission on the encoded data packet according to the scheduling instruction, specifically including: mapping the encoded data packet sequence into orthogonal frequency division multiplexing modulation symbols, and performing orthogonal frequency division multiplexing modulation processing on the orthogonal frequency division multiplexing symbols to obtain orthogonal frequency division multiplexing symbols; performing power adjustment on the orthogonal frequency division multiplexing symbols based on the transmission power value in the scheduling instruction, and transmitting the orthogonal frequency division multiplexing symbols after power adjustment to a node corresponding to the next hop address in the scheduling instruction within the transmission time slot specified in the scheduling instruction.
[0123] In an embodiment, the data priority marking module 201 is configured to mark the collected raw data packet with a priority to obtain a priority marked data packet, and specifically includes: obtaining a raw data packet collected by a sensor, wherein the raw data packet includes at least one of a disaster early warning signal, an environmental signal, and a device status signal; performing data feature extraction on the raw data packet to obtain a raw data feature; performing matching processing on the raw data feature and a preset data feature in a preset data feature-priority association table, and setting a target priority obtained by the matching as a target priority of the raw data packet; and adding the target priority to a header of the raw data packet to obtain a priority marked data packet.
[0124] The underwater network resource allocation apparatus can implement the underwater network resource allocation method of the method embodiments. The optional items in the method embodiments are also applicable to this embodiment, and will not be described in detail here.
[0125] As shown in Figure 3 Figure 3 is a structural schematic diagram of a computer device provided by the present application; including a processor 111, a communication interface 112, a memory 113, and a communication bus 114, wherein the processor 111, the communication interface 112, and the memory 113 complete mutual communication through the communication bus 114, and the memory 113 is used to store a computer program.
[0126] In an embodiment of the present application, the processor 111 is used to execute the program stored in the memory 113 to implement the underwater network resource allocation method provided by any one of the preceding method embodiments.
[0127] Those skilled in the art can understand that all or part of the processes in the method embodiments described above can be completed by a computer program instructing related hardware. The computer program can be stored in a storage medium, which is a computer readable storage medium. The computer program is executed by at least one processor in the computer system to implement the process steps of the method embodiments described above.
[0128] Therefore, the embodiments of the present application further provide a computer readable storage medium having a computer program stored thereon, and the computer program is executed by a processor to implement the steps of the underwater network resource allocation method provided by any one of the preceding method embodiments.
[0129] The storage medium is an entity, non-transient storage medium, for example, can be a U disk, a mobile hard disk, a read-only memory (Read-Only Memory, ROM), a magnetic disk or an optical disk, and various entity storage media that can store program codes. The computer readable storage medium can be non-volatile or volatile.
[0130] Those skilled in the art can understand that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be realized in electronic hardware, computer software or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, the components and steps of each example have been described in the above description in a general manner. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. A person skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.
[0131] In several embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. For example, the apparatus embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and actual implementation can have another division manner. For example, a plurality of units or components can be combined or integrated into another system, or some features can be ignored or not executed.
[0132] The steps in the method embodiments of the present application can be adjusted, combined and reduced in sequence according to actual needs. The units in the apparatus embodiments of the present application can be combined, divided and reduced according to actual needs. In addition, each functional unit in each embodiment of the present application can be integrated in one processing unit, or each unit can exist physically, or two or more units can be integrated in one unit.
[0133] The integrated unit, if realized in the form of a software functional unit and sold or used as an independent product, can be stored in a storage medium. Based on such understanding, the technical solutions of the present application essentially or say the parts that make contributions to the prior art, or the whole or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium, and includes a plurality of instructions for causing a computer device (which can be a personal computer, a terminal or a network device, etc.) to execute all or part of the steps of the methods described in each embodiment of the present application.
[0134] In the above embodiments, the description of each embodiment has its own focus, and the parts not described in detail in a certain embodiment can be referred to the related description of other embodiments.
[0135] Obviously, those skilled in the art can make various modifications and variations to the present application without departing from the spirit and scope of the present application. Thus, these modifications and variations of the present application are intended to be included within the scope of the claims of the present application and their equivalents.
[0136] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of various equivalent modifications or replacements within the technical range disclosed by the present application, and these modifications or replacements should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. An underwater network resource allocation method, characterized by, The method comprises the following steps: Priority marking is performed on the collected original data packets to obtain priority marked data packets; Channel state parameters are obtained, and the number of redundant packets is determined based on the target priority corresponding to the priority marked data packets and the channel state parameters; Encoding processing is performed on the priority marked data packets to generate encoded data packets, wherein the encoded data packets include the priority marked data packets and the number of redundant packets; The state of the neighbor nodes corresponding to the encoded data packets is obtained, cross-layer resource scheduling is performed based on the target priority, the state of the neighbor nodes, and the channel state parameters to generate a scheduling instruction; According to the scheduling instruction, the encoded data packets are modulated and transmitted at the physical layer.
2. The method of claim 1, wherein, The channel state parameters are obtained, specifically including: The pilot signal power of the received pilot signal is extracted, and the background noise power of the target channel bandwidth is collected. The pilot signal power and the background noise power are input into a preset signal-to-noise ratio calculation formula to obtain a signal-to-noise ratio parameter; The acknowledgement character information feedback information received in the transmission process of the historical transmission data is obtained; The historical transmission data is processed by a preset sliding window, and the number of transmission successful data packets and the total number of transmission data packets in the preset sliding window are obtained based on the acknowledgement character information feedback information; The transmission success rate is determined based on the ratio of the number of transmission successful data packets to the total number of transmission data packets, and the packet loss rate parameter is determined based on the transmission success rate; The signal-to-noise ratio parameter and the packet loss rate parameter are integrated to determine the channel state parameter.
3. The method of claim 1, wherein, The number of redundant packets is determined based on the target priority corresponding to the priority marked data packets and the channel state parameters, specifically including: The signal-to-noise ratio parameter in the channel state parameter is obtained, and the signal-to-noise ratio parameter is compared with a first signal-to-noise ratio parameter threshold and a second signal-to-noise ratio parameter threshold, respectively. Based on the comparison result, the target basic redundancy is determined; The target priority corresponding to the priority marked data packets is obtained, and the target priority is input into a preset priority compensation calculation formula to obtain a priority compensation amount; Based on the target basic redundancy and the priority compensation amount, the redundancy amount is calculated, and the number of redundant packets is determined based on the redundancy amount; Or, The packet loss rate parameter in the channel state parameter is obtained, and the packet loss rate parameter is input into a preset channel compensation calculation formula to obtain a channel compensation amount; The target priority corresponding to the priority marked data packets is obtained, and the target priority is input into a preset priority compensation calculation formula to obtain a priority compensation amount; Based on the channel compensation amount and the priority compensation amount, the redundancy amount is calculated, and the number of redundant packets is determined based on the redundancy amount.
4. The method of claim 1, wherein, The priority marked data packets are encoded to generate encoded data packets, wherein the encoded data packets include the priority marked data packets and the number of redundant packets, specifically including: The priority marked data packets are segmented to obtain a plurality of data blocks; inputting the plurality of data blocks into a preset target encoder to enable the target encoder to perform encoding processing on the plurality of data blocks to generate the redundant packet quantity of redundant packets; based on the target priority corresponding to the priority marked data packet, adding a target bit flag to each of the redundant packets to obtain the redundant packet quantity of identified redundant packets; performing arrangement processing on the priority marked data packet and the redundant packet quantity of identified redundant packets to obtain an encoded data packet.
5. The method of claim 1, wherein, obtaining a neighbor node state corresponding to the encoded data packet, and performing cross-layer resource scheduling based on the target priority, the neighbor node state and the channel state parameter to generate a scheduling instruction, specifically including: obtaining a current priority of a current encoded data packet currently being transmitted, comparing the target priority corresponding to the encoded data packet with the current priority, and if the target priority is greater than the current priority and the priority difference between the target priority and the current priority is greater than a preset priority difference threshold, generating an interrupt instruction to pause transmission of the current encoded data packet and taking a next time slot as a transmission time slot of the encoded data packet; obtaining a plurality of neighbor nodes corresponding to a node where the encoded data packet is located, and respectively obtaining a neighbor node state corresponding to each of the plurality of neighbor nodes, wherein the neighbor node state includes neighbor node residual energy, neighbor node initial energy and neighbor node average signal-to-noise ratio; based on the neighbor node residual energy, the neighbor node initial energy and the neighbor node average signal-to-noise ratio, calculating a neighbor node weight value corresponding to each of the plurality of neighbor nodes, and taking a neighbor node corresponding to a highest neighbor node weight value as a next hop address of the encoded data packet; the channel state parameter obtains a preset target signal-to-noise ratio parameter and extracts a signal-to-noise ratio parameter from the channel state parameter, calculates a target power value based on the preset target signal-to-noise ratio parameter and the signal-to-noise ratio parameter, and takes the target power value as a transmission power value of the encoded data packet; integrating the transmission time slot, the next hop address and the transmission power value to obtain a scheduling instruction.
6. The method of claim 5, wherein, According to the scheduling instruction, the encoded data packet is physically modulated and transmitted, specifically including: mapping the encoded data packet sequence into orthogonal frequency division multiplexing modulation symbols, and performing orthogonal frequency division multiplexing modulation processing on the orthogonal frequency division multiplexing symbols to obtain orthogonal frequency division multiplexing symbols; based on the transmission power value in the scheduling instruction, performing power adjustment on the orthogonal frequency division multiplexing symbols, and transmitting the power-adjusted orthogonal frequency division multiplexing symbols to a node corresponding to the next hop address in the scheduling instruction within the transmission time slot specified in the scheduling instruction.
7. The method of claim 1, wherein, performing priority marking on the collected original data packet to obtain a priority marked data packet, specifically including: obtaining an original data packet collected by a sensor, wherein the original data packet includes at least one of a disaster warning signal, an environment signal and a device state signal; performing data feature extraction on the original data packet to obtain original data features; The original data feature is matched with a preset data feature in a preset data feature-priority association table, and a matching priority is set as a target priority of the original data packet; The target priority is added to a header of the original data packet to obtain a priority marked data packet.
8. An underwater network resource allocation apparatus characterized by comprising: The method comprises the following steps: A data priority marking module, a redundant packet quantity determination module, a data encoding module, a resource scheduling module, and a data transmission module are included. The data priority marking module is configured to mark the collected original data packet with a priority to obtain a priority marked data packet. The redundant packet quantity determination module is configured to obtain a channel state parameter, determine a redundant packet quantity based on a target priority corresponding to the priority marked data packet and the channel state parameter. The data encoding module is configured to encode the priority marked data packet to generate an encoded data packet, wherein the encoded data packet comprises the priority marked data packet and the redundant packet quantity of redundant packets. The resource scheduling module is configured to obtain a neighbor node state corresponding to the encoded data packet, perform cross-layer resource scheduling based on the target priority, the neighbor node state, and the channel state parameter, and generate a scheduling instruction. The data transmission module is configured to modulate and transmit a physical layer signal of the encoded data packet according to the scheduling instruction.
9. A computer device, comprising: The computer device comprises a memory and a processor, the memory stores a computer program, and the processor executes the computer program to implement the method of any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, and the computer program can implement the method of any one of claims 1-7 when executed by a processor.