Underwater network data communication method and system based on reinforcement learning and power control
By adopting reinforcement learning and power control methods in underwater wireless sensor networks, the relay node selection and data packet transmission process are optimized, the signal attenuation and delay problems are solved, and the data packet transmission success rate and network stability are improved.
Patent Information
- Application Number
- CN202411081530.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-08
AI Technical Summary
Underwater wireless sensor networks (UWSNs) face problems such as signal attenuation, long delays, and network topology changes in harsh environments, resulting in limited data transmission reliability and network lifetime.
Using a method based on reinforcement learning and power control, by configuring the data packet format, using Q value to optimize relay node selection, implicit confirmation mechanism and convex optimization method, the sending power and rate during the data packet transmission process are optimized to improve the data packet Sending success rate and network stability.
It improves the success rate of underwater data packet transmission, extends the life of the underwater acoustic communication network, and improves the stability and reliability of the network.
Smart Images

Figure CN118611781B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of underwater communication technology, and in particular to an underwater network data communication method and system based on enhanced learning and power control. Background Art
[0002] With the surge in demand for underwater and marine development, researchers have begun to explore the application of underwater wireless sensor networks (UWSNs) in more fields. In fact, UWSNs have great potential in renewable energy, underwater cultural heritage monitoring, and other fields. However, due to the harsh environment and limited spectrum sources, designing reliable and efficient underwater multi-hop wireless network solutions is a rather difficult task. Electromagnetic radio signals attenuate quickly in underwater environments, and the higher the frequency, the greater the attenuation, which cannot meet the requirements of underwater long-distance communication. At present, the only method suitable for long-distance communication is underwater acoustic communication, but the underwater acoustic channel is almost one of the most complex wireless channels. The propagation speed of sound waves in water is about 1500 m / s, which is 5 orders of magnitude slower than radio waves (3×108 m / s), so UWSNs have a long propagation delay. The propagation loss of sound waves of different frequencies in the shallow sea acoustic field is also different. In addition, since the sensor nodes move passively with the water flow, the topology of UWSNs changes frequently. In addition, the sensor nodes are deployed on the seabed, and it is difficult to charge the battery. It is precisely because the sensors are powered by batteries that the network life of UWSNs is greatly limited.
[0003] In order to overcome the problems of UWSN, many classic and traditional routing protocols have been proposed to solve the data transmission problem in underwater sensor networks. Some protocols are also committed to ensuring the reliability of data transmission from the perspective of improving link quality. However, traditional optimization methods are limited by a priori channel statistical knowledge and are difficult to obtain in practice. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides an underwater network data communication method and system based on reinforcement learning and power control to improve the success rate of data packet transmission and enhance the stability of the underwater acoustic communication network.
[0005] An aspect of an embodiment of the present invention provides an underwater network data communication method based on reinforcement learning and power control, comprising the following steps:
[0006] Configuring a format of a data packet for underwater communication, the data packet including a data packet identification field, a routing information field, and a routing decision field made by a previous forwarding node;
[0007] When the target node receives an underwater communication data packet sent by the previous node, the Q value of the neighboring node of the target node is obtained as the transmission priority according to the node information and routing information identified from the underwater communication data packet to transmit the underwater communication data packet;
[0008] When the underwater communication data packet is transmitted to the next node, an implicit confirmation method is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node, so as to determine the retransmission strategy of the underwater communication data packet;
[0009] Among them, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem, and the underwater communication data packet is transmitted at the optimal rate according to the channel capacity.
[0010] Optionally, the data packet identification field includes data packet type, data packet ID, source node location, and sink node location;
[0011] The routing information field includes V-Value, residual energy, cluster average energy, link quality, and sender ID.
[0012] Optionally, when the target node receives an underwater communication data packet sent by a previous node, the Q value of the neighbor node of the target node is obtained as the transmission priority according to the node information and routing information identified from the underwater communication data packet to transmit the underwater communication data packet, including the following steps:
[0013] When the target node receives the underwater communication data packet sent by the previous node, the node type of the target node is determined. If the target node is a sink node, the underwater communication data packet is directly transmitted to the satellite by radio electromagnetic waves, or directly transmitted to a nearby signal station by radio electromagnetic waves, and the transmission process is terminated; if the target node is not a sink node, the following steps are performed:
[0014] The target node updates the information in the received underwater communication data packet to a local information table;
[0015] Determine whether the target node is a relay node selected by a previous node according to a data packet identification field in the underwater communication data packet, if not, discard the underwater communication data packet, if yes, execute the next step;
[0016] According to the expected cumulative rewards of each neighboring node, the Q value of the neighboring node of the target node is calculated, and the neighboring node with the highest Q value is selected as the relay node;
[0017] The node information of the target node is encapsulated into the header of the underwater communication data packet, and the underwater communication data packet is forwarded to the relay node, and the local information table is updated.
[0018] Optionally, the step of calculating the Q values of the neighbor nodes of the target node according to the expected cumulative rewards of each neighbor node, and selecting the neighbor node with the highest Q value as the relay node comprises the following steps:
[0019] An initial reward function is configured, and the reward function is used to calculate the expected cumulative reward of each neighbor node; wherein the reward function includes the residual energy of the node, the energy distribution around the node, the distance between nodes, and the quality of the link between nodes; wherein the residual energy and the energy distribution are used to uniformly extend the life cycle of the network, the distance between nodes is used to reduce the transmission delay, and the quality of the link between nodes is used to improve the success rate of network transmission;
[0020] Obtain the number of times each neighbor node sends a data packet and the number of times the data packet is successfully received, and then calculate the packet loss rate and successful transmission rate of each neighbor node forwarding the data packet;
[0021] According to the initial reward function, the packet loss rate and the successful transmission rate, a direct reward function for data packet transmission is configured;
[0022] According to the direct reward function, the Q value of the neighbor node of the target node is calculated, and the neighbor node with the highest Q value is selected as the relay node.
[0023] Optionally, the expression of the initial reward function is:
[0024] ,
[0025] Among them, E(∙) is the reward related to energy; D(∙) is the reward related to delay; Lq(∙) is the reward related to link quality; represents the weight of the respective function; R is the continuous penalty or cost when a node attempts to forward a packet, Representative Node Take action to successfully The initial reward function calculation value for sending a data packet; represents the action of forwarding a data packet to j;
[0026] Among them, the energy-related rewards The expression is:
[0027] ,
[0028] in, and Respectively represent nodes and The cost function of the remaining energy; is the corresponding weight parameter; and Respectively represent the ratio function of the residual energy of nodes i and j to the average energy of adjacent nodes;
[0029] Among them, the delay-related reward The expression is:
[0030] ,
[0031] in, Represents the Euclidean distance between node j and sink;
[0032] Among them, the reward related to link quality The expression is: ,
[0033] in, is the success rate of data packet transmission between nodes; represents the average link quality between node j and N adjacent nodes; and Represents the corresponding weight parameter.
[0034] Optionally, when the underwater communication data packet is transmitted to the next node, an implicit confirmation method is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node to determine the retransmission strategy of the underwater communication data packet, including the following steps:
[0035] When the underwater communication data packet is transmitted to the next node, the next node makes a routing decision. After the next node determines the next hop, the sending node ID is set to the ID of the next node according to the header information of the underwater communication data packet, and then the data packet is forwarded; when the target node intercepts the underwater communication data packet forwarded by the next node, it determines whether the data packet header structure of the underwater communication data packet is consistent with that in the cache. If they are consistent, it determines whether the sender ID of the data packet is equal to the next hop ID of the cached data packet. If so, it indicates that the next node has successfully forwarded the underwater communication data packet;
[0036] If the target node does not detect the data packet forwarded by the next node after waiting for a period of time, the target node updates the link information and retransmits the underwater communication data packet;
[0037] When the number of retransmissions reaches three times, the target node makes a new routing decision and selects another node as a forwarding node;
[0038] When the energy of a node is about to be exhausted, it broadcasts a control packet of type 'exhaust'. When the neighboring nodes of the node receive this type of packet, they confirm that the node is a dead node and delete the node's information in the local table.
[0039] Optionally, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem, and the underwater communication data packet is transmitted at an optimal rate according to the channel capacity, including the following steps:
[0040] In the actual transmission process, the system working bandwidth is selected, and the expression of ocean environmental noise is constructed according to the ocean noise conditions and environmental noise conditions;
[0041] Construct the expression of propagation loss function in seawater;
[0042] According to the energy consumed by the electronic components of the underwater node when sending data packets, and the energy required for the data packets to be transmitted between two nodes, an expression for the energy consumed by the underwater node when sending data packets is constructed;
[0043] According to the ratio of the distance between each node and the speed of sound, the transmission time of the data packet between two nodes is calculated;
[0044] Constructing a mathematical model of optimal transmission power according to the expression of the ocean environment noise, the expression of the propagation loss function, the expression of the energy consumed by the underwater node to send a data packet, and the transmission time of the data packet between two nodes;
[0045] Performing Taylor series expansion on the mathematical model to obtain the objective function and constraint conditions in the form of convex functions;
[0046] When it is determined that the underwater communication data packet arrives at the next node, the optimal transmission power is calculated;
[0047] Calculating the channel capacity according to the optimal transmit power;
[0048] The channel capacity is used to guide the physical layer to transmit the underwater communication data packet at the optimal rate under the current constraints.
[0049] Another aspect of the embodiment of the present invention further provides an underwater network data communication system based on enhanced learning and power control, comprising:
[0050] A first module is used to configure the format of a data packet for underwater communication, wherein the data packet includes a data packet identification field, a routing information field, and a routing decision field made by a previous forwarding node;
[0051] The second module is used for, when the target node receives the underwater communication data packet sent by the previous node, obtaining the Q value of the neighbor node of the target node as the transmission priority according to the node information and routing information identified from the underwater communication data packet, so as to transmit the underwater communication data packet;
[0052] The third module is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node by implicit confirmation when the underwater communication data packet is transmitted to the next node, so as to determine the retransmission strategy of the underwater communication data packet;
[0053] Among them, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem, and the underwater communication data packet is transmitted at the optimal rate according to the channel capacity.
[0054] Another aspect of an embodiment of the present invention further provides an electronic device, including a processor and a memory;
[0055] The memory is used to store programs;
[0056] The processor executes the program to implement the method described above.
[0057] Another aspect of the embodiments of the present invention further provides a computer-readable storage medium, wherein the storage medium stores a program, and the program is executed by a processor to implement the method described above.
[0058] The embodiment of the present invention also discloses a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device can read the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the above method.
[0059] The embodiment of the present invention first configures the format of a data packet for underwater communication, wherein the data packet includes a data packet identification field, a routing information field, and a routing decision field made by the previous forwarding node; then, when the target node receives the underwater communication data packet sent by the previous node, the Q value of the neighbor node of the target node is obtained as the transmission priority according to the node information and routing information identified from the underwater communication data packet, so as to transmit the underwater communication data packet; finally, when the underwater communication data packet is transmitted to the next node, an implicit confirmation method is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node, so as to determine the retransmission strategy of the underwater communication data packet; wherein, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by the Shannon theorem, and the underwater communication data packet is transmitted at the optimal rate according to the channel capacity. The present invention improves the success rate of data packet transmission and improves the stability of the underwater acoustic communication network. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0061] Figure 1 An overall step flow chart provided for an embodiment of the present invention;
[0062] Figure 2 A schematic diagram of a data packet structure provided by an embodiment of the present invention;
[0063] Figure 3 A schematic diagram of a data packet forwarding process provided by an embodiment of the present invention;
[0064] Figure 4 A schematic diagram of the packet loss rate changing with the number of nodes provided by an embodiment of the present invention;
[0065] Figure 5 A schematic diagram of the variation of latency with the number of nodes provided by an embodiment of the present invention;
[0066] Figure 6 A schematic diagram of the path deviation rate varying with the number of nodes provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0067] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the embodiments of the present invention. They are only examples of devices and methods consistent with some aspects of the embodiments of the present invention as detailed in the attached claims.
[0068] It is understood that the terms "first", "second", etc. used in the present invention may be used herein to describe various concepts, but unless otherwise specified, these concepts are not limited by these terms. These terms are only used to distinguish one concept from another. For example, without departing from the scope of the embodiments of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the words "if" and "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0069] The terms "at least one", "multiple", "each", "any", etc. used in the present invention, at least one includes one, two or more, multiple includes two or more, each refers to each of the corresponding multiple, and any refers to any one of the multiple.
[0070] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which the present invention belongs. The terms used herein are only for the purpose of describing the embodiments of the present invention and are not intended to limit the present invention.
[0071] The underwater network data communication method based on reinforcement learning and power control provided in the embodiment of the present invention relates to the field of underwater communication technology. The underwater network data communication method based on reinforcement learning and power control provided in the embodiment of the present invention can be applied to a terminal, can also be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, and a car terminal, etc., but is not limited to this; the server side can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, and can also be configured as a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. The server can also be a node server in a blockchain network; the software can be an application that implements the underwater network data communication method based on reinforcement learning and power control, etc., but is not limited to the above forms.
[0072] The present invention can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present invention can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.
[0073] In view of the problems existing in the prior art, the embodiments of the present invention provide an underwater acoustic sensor network routing protocol with enhanced learning and power control, and propose an underwater network data communication method based on enhanced learning and power control based on the protocol. Specifically, Figure 1 As shown, the underwater network data communication method based on reinforcement learning and power control in an embodiment of the present invention includes the following steps:
[0074] Configuring a format of a data packet for underwater communication, the data packet including a data packet identification field, a routing information field, and a routing decision field made by a previous forwarding node;
[0075] When the target node receives an underwater communication data packet sent by the previous node, the Q value of the neighboring node of the target node is obtained as the transmission priority according to the node information and routing information identified from the underwater communication data packet to transmit the underwater communication data packet;
[0076] When the underwater communication data packet is transmitted to the next node, an implicit confirmation method is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node, so as to determine the retransmission strategy of the underwater communication data packet;
[0077] Among them, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem, and the underwater communication data packet is transmitted at the optimal rate according to the channel capacity.
[0078] Optionally, the data packet identification field includes data packet type, data packet ID, source node location, and sink node location;
[0079] The routing information field includes V-Value, residual energy, cluster average energy, link quality, and sender ID.
[0080] Optionally, when the target node receives an underwater communication data packet sent by a previous node, the Q value of the neighbor node of the target node is obtained as the transmission priority according to the node information and routing information identified from the underwater communication data packet to transmit the underwater communication data packet, including the following steps:
[0081] When the target node receives the underwater communication data packet sent by the previous node, the node type of the target node is determined. If the target node is a sink node, the underwater communication data packet is directly transmitted to the satellite by radio electromagnetic waves, or directly transmitted to a nearby signal station by radio electromagnetic waves; if the target node is not a sink node, the following steps are performed:
[0082] The target node updates the information in the received underwater communication data packet to a local information table;
[0083] Determine whether the target node is a relay node selected by a previous node according to a data packet identification field in the underwater communication data packet, if not, discard the underwater communication data packet, if yes, execute the next step;
[0084] According to the expected cumulative rewards of each neighboring node, the Q value of the neighboring node of the target node is calculated, and the neighboring node with the highest Q value is selected as the relay node;
[0085] The node information of the target node is encapsulated into the header of the underwater communication data packet, and the underwater communication data packet is forwarded to the relay node, and the local information table is updated.
[0086] Optionally, the step of calculating the Q values of the neighbor nodes of the target node according to the expected cumulative rewards of each neighbor node, and selecting the neighbor node with the highest Q value as the relay node comprises the following steps:
[0087] An initial reward function is configured, and the reward function is used to calculate the expected cumulative reward of each neighbor node; wherein the reward function includes the residual energy of the node, the energy distribution around the node, the distance between nodes, and the quality of the link between nodes; wherein the residual energy and the energy distribution are used to uniformly extend the life cycle of the network, the distance between nodes is used to reduce the transmission delay, and the quality of the link between nodes is used to improve the success rate of network transmission;
[0088] Obtain the number of times each neighbor node sends a data packet and the number of times the data packet is successfully received, and then calculate the packet loss rate and successful transmission rate of each neighbor node forwarding the data packet;
[0089] According to the initial reward function, the packet loss rate and the successful transmission rate, a direct reward function for data packet transmission is configured;
[0090] According to the direct reward function, the Q value of the neighbor node of the target node is calculated, and the neighbor node with the highest Q value is selected as the relay node.
[0091] Optionally, the expression of the initial reward function is:
[0092] ,
[0093] Among them, E(∙) is the reward related to energy; D(∙) is the reward related to delay; Lq(∙) is the reward related to link quality; represents the weight of the respective function; R is the continuous penalty or cost when a node attempts to forward a packet, Representative Node Take action to successfully The initial reward function calculation value for sending a data packet; represents the action of forwarding a data packet to j;
[0094] Among them, the energy-related rewards The expression is:
[0095] ,
[0096] in, and Respectively represent nodes and The cost function of the remaining energy; is the corresponding weight parameter; and Respectively represent the ratio function of the residual energy of nodes i and j to the average energy of adjacent nodes;
[0097] Among them, the delay-related reward The expression is:
[0098] ,
[0099] in, Represents the Euclidean distance between node j and sink;
[0100] Among them, the reward related to link quality The expression is: ,
[0101] in, is the success rate of data packet transmission between nodes; represents the average link quality between node j and N adjacent nodes; and Represents the corresponding weight parameter.
[0102] Optionally, when the underwater communication data packet is transmitted to the next node, an implicit confirmation method is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node to determine the retransmission strategy of the underwater communication data packet, including the following steps:
[0103] When the underwater communication data packet is transmitted to the next node, the next node makes a routing decision. After the next node determines the next hop, the sending node ID is set to the ID of the next node according to the header information of the underwater communication data packet, and then the data packet is forwarded; when the target node intercepts the underwater communication data packet forwarded by the next node, it determines whether the data packet header structure of the underwater communication data packet is consistent with that in the cache. If they are consistent, it determines whether the sender ID of the data packet is equal to the next hop ID of the cached data packet. If so, it indicates that the next node has successfully forwarded the underwater communication data packet;
[0104] If the target node does not detect the data packet forwarded by the next node after waiting for a period of time, the target node updates the link information and retransmits the underwater communication data packet;
[0105] When the number of retransmissions reaches three times, the target node makes a new routing decision and selects another node as a forwarding node;
[0106] When the energy of a node is about to be exhausted, it broadcasts a control packet of type 'exhaust'. When the neighboring nodes of the node receive this type of packet, they confirm that the node is a dead node and delete the node's information in the local table.
[0107] Optionally, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem, and the underwater communication data packet is transmitted at an optimal rate according to the channel capacity, including the following steps:
[0108] In the actual transmission process, the system working bandwidth is selected, and the expression of ocean environmental noise is constructed according to the ocean noise conditions and environmental noise conditions;
[0109] Construct the expression of propagation loss function in seawater;
[0110] According to the energy consumed by the electronic components of the underwater node when sending data packets, and the energy required for the data packets to be transmitted between two nodes, an expression for the energy consumed by the underwater node when sending data packets is constructed;
[0111] According to the ratio of the distance between each node and the speed of sound, the transmission time of the data packet between two nodes is calculated;
[0112] Constructing a mathematical model of optimal transmission power according to the expression of the ocean environment noise, the expression of the propagation loss function, the expression of the energy consumed by the underwater node to send a data packet, and the transmission time of the data packet between two nodes;
[0113] Performing Taylor series expansion on the mathematical model to obtain the objective function and constraint conditions in the form of convex functions;
[0114] When it is determined that the underwater communication data packet arrives at the next node, the optimal transmission power is calculated;
[0115] Calculating the channel capacity according to the optimal transmit power;
[0116] The channel capacity is used to guide the physical layer to transmit the underwater communication data packet at the optimal rate under the current constraints.
[0117] In addition, the enhanced learning routing protocol designed in the embodiment of the present invention includes three parts: data packet structure design, data packet forwarding process and retransmission mechanism setting.
[0118] The data packet structure design of the embodiment of the present invention is described in detail below:
[0119] The structure of a data packet in the network is as follows Figure 2 As shown in the figure. The data packet header mainly includes three main information: data packet identification related fields, routing information fields, and routing decisions made by the previous forwarding node. Due to the slow development of underwater acoustic communication networks, the network scale cannot reach the scale of land networks, so the address of the node can only be identified by an int type number. Compared with other underwater routing protocol headers, the entire routing header structure of this protocol does not generate additional overhead.
[0120] The meaning of each field is as follows:
[0121] 1. Packet type: Identifier of the source node.
[0122] 2. Packet ID: Indicates the unique ID of the message.
[0123] 3. Source node position: indicates the position of the source node.
[0124] 4. Aggregation node location: indicates the location of the aggregation node.
[0125] These fields depend on the source node of the packet and play a vital role in distinguishing packets during data forwarding. Usually, they remain unchanged throughout the life cycle of the packet.
[0126] Before transmitting a data packet, the node needs to incorporate the following information into the routing information field. This information includes the following:
[0127] 1.V-Value: The V value of the current node.
[0128] 2. Remaining energy: Remaining energy information of the current node.
[0129] 3. Cluster average energy: energy distribution within the neighboring node cluster of the current node.
[0130] 4. Link quality: The average link quality between the current node and adjacent nodes.
[0131] 5. Sender ID: The ID of the current node.
[0132] The last part of the packet header is the routing decision made by the current node, which determines the next hop node. The payload data contains the information that the node needs to forward and is optional.
[0133] The packet forwarding process of the embodiment of the present invention is described in detail below:
[0134] The first assumption that needs to be explained is that each communication node in the network has a local table in its memory to store neighbor node information, which includes node initialization energy, node location coordinates, Q value, number of forwarded packets, etc.
[0135] Based on the above assumptions, the embodiment of the present invention proposes the following data packet forwarding method, the forwarding process is as follows: Figure 3 As shown in the figure: After the node receives the data packet, it first determines the node type. If the sink node receives the data packet, it directly delivers the data packet to the upper layer. If the receiving node is not a sink node, the following steps will be performed:
[0136] If a non-sink node receives a data packet, it first updates the information in the packet received by the node to its local table; then it checks whether it is the relay node selected by the previous hop based on the next forwarder ID in the packet header. If it is not a relay node, the data packet will be discarded. If it is a relay node, it will prepare to select the next hop node.
[0137] In this routing protocol design, the embodiment of the present invention prioritizes the forwarding of candidate nodes according to the q value during the data packet transmission process. The q value represents the expected cumulative reward. Therefore, defining the direct reward is the key to the routing protocol proposed in the embodiment of the present invention. The direct reward determines the behavior and effect of the Agent. The process of selecting the next hop node needs to be determined according to the reward function. The reward function mainly includes four factors that affect data transmission: the remaining energy of the node, the energy distribution around the node, the distance between nodes, and the quality of the link between nodes. Among them, the life cycle of the network is extended by reducing energy consumption and making the energy distribution more uniform; the transmission delay is reduced as much as possible by considering the distance between nodes; and the transmission success rate of the network is increased as much as possible by considering the quality of the link between nodes.
[0138] Assume Node Success Send a data packet, then the reward function in this scenario is defined as the following formula (1):
[0139]
[0140] Among them, E(∙) is the reward related to energy, D(∙) is the reward related to delay, and Lq(∙) is the reward related to link quality. These three functions will be described in detail later. R is the continuous penalty or cost when a node attempts to forward a packet, which encourages the protocol to seek the shortest hop path and reduce routing delay. Represents the weight of each function, and its value range is 0 ~ 1.
[0141] In order to prevent premature node loss due to overuse, the reasonable allocation of node energy is crucial to the life cycle of the network. Based on the energy characteristics of communication nodes, it is necessary to further distinguish communication nodes. By using nodes fairly, the remaining energy is distributed more evenly and the network life cycle is extended. To this end, the embodiment of the present invention designs energy-related rewards.
[0142]
[0143] in, and Represent the cost functions of the residual energy of nodes i and j respectively. Among them, and Respectively represent the residual energy and initial energy of the node. When the initial energy is the same, the node with more residual energy is more likely to forward the data packet. The above formulas (2-3) and (2-4) take into account the energy distribution of the current node and its neighboring nodes. Among them, and represents the average residual energy of the cluster to which nodes i and j belong. The cluster to which the node relation belongs consists of the node relation and the neighboring nodes that can communicate with the node relation. The greater the difference between the residual energy of a node and the average energy of its cluster, the higher the probability that the node will be selected as the next relay. k is 0.5. is the weight that can be adjusted in the embodiment of the present invention. The setting here is .
[0144]
[0145] Represents the Euclidean distance between node j and sink. The closer the distance between a node and the sink, the more likely it is to become a forwarding node.
[0146]
[0147] It is a reward related to the quality of the link and consists of two parts. is the success rate of data packet transmission between nodes, Indicates the number of successful data packet transmissions between nodes. represents the total number of data packets transmitted between node i and node j. The average link quality between node j and N neighboring nodes. With this configuration, nodes are more likely to choose nodes with high communication success frequency and favorable next-hop environment to transmit data packets. This setting helps prevent routing from falling into holes, thereby improving routing reliability.
[0148] If the packet forwarding attempt from node i to node j fails, only the energy and link quality of node i are considered, and the reward function is defined as:
[0149]
[0150] in is defined above, It is a weight value that can be adjusted in the embodiment of the present invention.
[0151] Considering the dynamic changes of the underwater acoustic channel, it is a challenge to predict the success rate of data packet transmission. To solve this problem, the embodiment of the present invention uses the most recent transmission records to characterize the channel state. The node records the number of times the data packet is sent. And the number of times the data packet was successfully received To estimate the probability of node state transition, the embodiment of the present invention calculates the packet loss rate of the data packet forwarded by node i and successful transmission rate :
[0152]
[0153] The embodiment of the present invention defines the direct reward function of data packet transmission as:
[0154]
[0155] The process of selecting the next hop node is as follows: the node calculates the remaining energy information of the neighboring nodes according to formulas (2-1 and 2-2); calculates the energy distribution information around the node according to formulas (2-3 and 2-4); calculates the distance information according to formula (3); calculates the link quality information according to formula (4); then calculates the reward function according to formulas (1, 5, 10); finally, according to formula (9), the Q value is calculated using the various node information that has been calculated, and the neighboring node with the largest Q value is selected as the next relay node.
[0156] After the next hop node is selected and the routing decision is made, the current node will encapsulate the information of this node (remaining energy, Q value, link quality, etc.) into the packet header and forward the data packet, and then update its local table.
[0157] At the same time, each network node has a listening function. When a node listens to a data packet, even if it is not a relay node, it will record the node information contained in the packet header and update it in its own local table, but it will not perform packet forwarding actions such as Q value calculation and decision-making.
[0158] The implementation process of the retransmission mechanism is described in detail below:
[0159] In order to cope with the interference of underwater channel quality and improve the transmission success rate, the embodiment of the present invention uses an implicit confirmation method to determine whether the data packet sent by the node is successfully received by the next hop node. After the node sends a data packet, it stores the data packet in the memory instead of deleting it from the buffer immediately. If the next hop node (not the sink node) successfully receives the data packet, they will continue to make routing decisions and forward the data packet. The data packet forwarded again by the previous hop node is regarded as ACK.
[0160] That is, if node i forwards a data packet to node j, when node j receives the data packet, it makes a routing decision. After node j determines the next hop, it updates the data packet header information, sets the sending node ID to the ID of node j, and then forwards the data packet. After node i hears the data packet forwarded by node j, it determines whether the data packet header structure of the data packet is consistent with the data packet in the cache. If they are consistent, it then determines whether the sender ID of the data packet is equal to the next hop ID of the cached data packet. If so, it indicates successful forwarding.
[0161] If after waiting for a period of time, node i has not heard the data packet forwarded by the next-hop node j, node i will update the link information and retransmit the data packet. When the number of retransmissions reaches three, node i will make a new routing decision and select other nodes as forwarding nodes. At the same time, when the energy of the node is about to be exhausted, it will broadcast a control packet of the packet type "exhaust". When its neighboring nodes receive this type of packet, the information of the dead node in the local table will be deleted. At the same time, when calculating the energy distribution information around the node according to formulas (2-3) and 2-4) and calculating the link quality information according to formula (4), the node will not be considered. When the next data packet arrives, the previous hop node will no longer choose the dead node when making a routing decision.
[0162] The optimal transmission power technology of underwater acoustic communication network data packets based on convex optimization proposed in an embodiment of the present invention is introduced below:
[0163] According to Shannon's theorem, increasing the data packet transmission power can increase the channel capacity, which can then guide the physical layer to select a suitable transmission rate to send data packets. In an underwater acoustic information transmission environment where the link quality is unstable, a higher transmission rate can reduce the interruption of data packet transmission caused by link breakage, reduce the impact of the environment on communication quality, and improve reliability. Therefore, an embodiment of the present invention proposes an optimal transmission power technology for underwater acoustic communication network data packets based on convex optimization. After the node selects the next hop, a convex optimization method is used to obtain the optimal transmission power of the node forwarding the data packet according to various constraints in actual transmission, and then the channel capacity is obtained by Shannon's theorem. According to the channel capacity, the physical layer is guided to transmit data packets at the optimal rate.
[0164] 1) Network modeling
[0165] The main optimization problem of this embodiment is to obtain the optimal data packet transmission power, denoted as P, while considering the constraints in the underwater acoustic communication network. The optimal transmission power technology of underwater acoustic communication network data packets based on convex optimization proposed in this section is mathematically modeled as follows:
[0166] Maximize:
[0167]
[0168] Subject to:
[0169]
[0170] Among them, in the actual transmission process, it is necessary to use the optimal operating frequency Select the system operating bandwidth for the center and adjust the transmit power to obtain the preset reception , usually choose 3dB bandwidth as the system working bandwidth, Can be determined as .
[0171] is the environmental noise in the ocean. The noise in the ocean is one of the main interference sources for the reliable transmission of underwater acoustic signals. Its causes are complex and are related to the location of the sea area, meteorological conditions and frequency. Ocean noise includes man-made noise and environmental noise. Man-made noise mainly includes mechanical noise and shipping noise; while environmental noise is mainly composed of tides, shipping, waves and thermal noise. In the frequency band used in this embodiment, the ocean environmental noise can be approximated by formula (13).
[0172] The propagation loss in seawater is a function of the distance l and the signal frequency f, which can be approximately expressed as formula (14). In the formula, k is the expansion factor and α( f ) is the seawater absorption loss coefficient. The expansion factor k is related to the propagation mode and propagation path of the sound wave. Depending on the propagation conditions, k takes different values. For example, when the propagation is expanded by spherical waves, k=2; and when the propagation is expanded by cylindrical waves, k=1; in practice, k=1.5 is often taken. The seawater absorption coefficient α( f ) can be expressed in dB form using the Thorp formula, with the unit of dB / km.
[0173]
[0174] It is the underwater nodes that consume energy when sending data packets. Since the energy of underwater nodes is limited, The value range is , It consists of two parts. The first part The first part is the energy consumed by the node electronic components when sending data packets, and the second part is the energy required for data transmission between two nodes. T is the transmission time of the data packet between the two nodes, which is the ratio of the distance between the nodes to the speed of sound. Compared with the speed of radio propagation, the propagation speed of sound waves is lower, about 1500m / s. The propagation speed of sound waves in seawater depends on water temperature, salinity and depth. The empirical formula for the speed of sound in seawater can be expressed as formula (17), where F is temperature (℃), S is salinity (‰), and H is depth (m). The speed of sound increases with the increase of water temperature, salinity and depth. The change of sea surface sound speed mainly depends on temperature; and with the increase of depth, the change of pressure has the greatest impact on the speed of sound.
[0175] The implementation process of the convex optimization approximation in the embodiment of the present invention is described in detail below:
[0176] In fact, the formula proposed above does not conform to the convex optimization form, because many functions are not convex. In order to convert the objective function and constraints into a convex optimization form, the embodiment of the present invention adopts a Taylor function expansion approximation method.
[0177] Put the following formulas in The Taylor series expansion is performed on the point, and the objective function and constraints after expansion are as follows:
[0178] Maximize:
[0179]
[0180] Subject to:
[0181]
[0182]
[0183] By applying Taylor series expansion approximation, the embodiment of the present invention converts the objective function and constraints into a convex function form. This conversion enables the embodiment of the present invention to more effectively solve the optimal solution of the objective function. When determining the next hop of node-to-node communication, the embodiment of the present invention calculates the optimal transmission power. Shannon's theorem is shown in formula (26).
[0184]
[0185] Where: C represents the channel capacity; B is the channel bandwidth (Hz); S is the signal power (W); N is the noise power (W). According to Shannon's theorem, after obtaining the optimal transmission power under the constraints, the channel capacity can be obtained, and the channel capacity then guides the physical layer to transmit data packets at the optimal rate under the current constraints. This method can reduce the probability of data packet transmission interruption caused by the break of the underwater acoustic communication link, increase the success rate of data packet transmission, and enhance the stability of the underwater acoustic communication network. It also helps to optimize energy utilization, thereby extending the life of the underwater acoustic communication network.
[0186] In view of the specific implementation process of the method of the present invention, the embodiment of the present invention also conducts a simulation test on the actual effect of the method. The simulation test results of the method of the present invention are described in detail below:
[0187] The simulation was verified by MATLAB. In the simulation, all nodes were randomly distributed in a three-dimensional area of 10000m by 10000m by 10000m, and a single sink node was placed on the water surface to collect data. The initial energy of these sensor nodes is 1000J, the transmission power is 100W, the receiving power is 8W, and the power consumed in sleep is 2mW. During the simulation, the simulation was performed in a cyclic form, and the number of nodes increased from 300 to 600. The nodes within 3000m from the bottom were called source nodes. In each round, the network randomly selected source nodes to generate 100 data packets for transmission. The data packet size is 64bytes, and the header file of the data packet is 8bytes. The data transmission rate is 2000bps.
[0188] Figure 4 The packet loss rate of RPCR is shown as the number of nodes increases. Figure 4 The horizontal axis represents the number of nodes, and the vertical axis represents the packet loss rate of data packets transmitted in the network. It can be concluded from the figure that the packet loss rate of the RPCR protocol decreases with the increase in the number of nodes. This is because as the node density increases, the probability of the protocol being able to discover available neighbor nodes is higher, because the probability of falling into a hole and losing packets is also lower. It can also be seen from the figure that RPCR performs better in the case of low node density. Thanks to the relay selection mechanism of RPCR, it can also find reliable next-hop nodes in a sparse node network, reducing the packet loss rate of the network. In addition, RPCR incorporates the link quality between nodes into the reward function, which increases the probability of successful communication between nodes and reduces the loss of data packets due to poor link quality. In a network with denser nodes, RPCR performs better, and the packet loss rate can even be lower than 5%. Another reason is that the re-decision of RPCR routing ensures a low packet loss rate.
[0189] Figure 5 It shows the delay change of RPCR as the number of nodes increases. Figure 5 The horizontal axis represents the number of nodes, and the vertical axis represents the delay from the generation of a data packet to the transmission to the sink node in the network. It can be seen from the figure that as the number of nodes increases, the delay of RPCR gradually decreases. The delay of a data packet is composed of the time it takes for the data packet to propagate in the channel and the time it takes for the data packet to be received and forwarded at the relay node. That is to say, the time it takes for the data packet to be received and forwarded at the relay node accounts for a large proportion of the total delay. Therefore, the more relay nodes a data packet goes through, the greater the delay. The number of hops a data packet goes through decreases as the number of nodes increases, so accordingly, the data packet delay also decreases as the number of nodes increases. It can also be concluded from the figure that the delay of RPCR is lower because the RCRP protocol reduces the time for relay forwarding, greatly reducing the delay.
[0190] Figure 6 The path deviation rate of the two protocols changes as the number of nodes increases. Figure 6 The horizontal axis represents the number of nodes, and the vertical axis represents the deviation rate of data packets transmitted in the network, which refers to the ratio of the actual distance traveled by each data packet to the straight-line distance from the source node that generates the data packet to the sink node. The definition of the path deviation rate is the ratio of the difference between the actual transmission distance of the data packet from the source node to the sink node and the theoretical straight-line distance of the data packet from the source node to the sink node to the theoretical straight-line distance from the source node to the sink node. Therefore, the closer the actual forwarding distance of the data packet is to the actual distance, the lower the path deviation rate and the smaller the additional overhead. As can be seen from the figure, as the number of nodes increases, the lower the path deviation rate of RPCR, the closer the path is to the actual path, and the smaller the additional overhead. When RPCR selects a relay, it fully considers the link quality of the next hop and the next next hop nodes, and can select the next hop node with the most suitable position, success rate and energy, effectively reducing the additional overhead.
[0191] In summary, the present invention improves the network lifetime and transmission success rate to a certain extent by evaluating the energy distribution and congestion level near the node before making the final decision, and successfully avoids problems such as premature network failure and underwater routing loopholes. Secondly, the present invention takes the maximum transmission rate as the goal of power allocation, sets the power allocation as a convex optimization problem with linear constraints, and uses convex optimization tools to maximize the transmission rate between routing nodes that have been selected by the Q-learning algorithm. Due to the harsh and time-varying underwater environment, communication links are often unstable. Therefore, increasing the transmission rate can quickly complete data transmission before the link condition deteriorates, thereby improving the overall reliability of the system. In addition, as the transmission rate increases, the amount of data that can be transmitted per unit time will naturally increase.
[0192] The embodiment of the present invention further provides an underwater network data communication system based on enhanced learning and power control, comprising:
[0193] A first module is used to configure the format of a data packet for underwater communication, wherein the data packet includes a data packet identification field, a routing information field, and a routing decision field made by a previous forwarding node;
[0194] The second module is used for, when the target node receives the underwater communication data packet sent by the previous node, obtaining the Q value of the neighbor node of the target node as the transmission priority according to the node information and routing information identified from the underwater communication data packet, so as to transmit the underwater communication data packet;
[0195] The third module is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node by implicit confirmation when the underwater communication data packet is transmitted to the next node, so as to determine the retransmission strategy of the underwater communication data packet;
[0196] Among them, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem, and the underwater communication data packet is transmitted at the optimal rate according to the channel capacity.
[0197] It can be understood that the contents of the above method embodiments are all applicable to the present system embodiments, the functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0198] An embodiment of the present invention further provides an electronic device, including a processor and a memory;
[0199] The memory is used to store programs;
[0200] The processor executes the program to implement the method described above.
[0201] It is understandable that the electronic device may be any intelligent terminal including a tablet computer, a vehicle-mounted computer, etc. The contents in the above method embodiment are all applicable to the present device embodiment, the functions specifically implemented by the present device embodiment are the same as those in the above method embodiment, and the beneficial effects achieved are also the same as those achieved by the above method embodiment.
[0202] An embodiment of the present invention further provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the above-mentioned underwater network data communication method based on reinforcement learning and power control.
[0203] It can be understood that the contents of the above method embodiments are all applicable to the present storage medium embodiments, the functions specifically implemented by the present storage medium embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.
[0204] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0205] In some selectable embodiments, the function / operation mentioned in the block diagram may not occur in the order mentioned in the operation diagram. For example, depending on the function / operation involved, the two boxes shown in succession can actually be executed substantially simultaneously or the boxes can sometimes be executed in reverse order. In addition, the embodiment presented and described in the flow chart of the present invention is provided by way of example, for the purpose of providing a more comprehensive understanding of technology. The disclosed method is not limited to the operation and logic flow presented herein. Selectable embodiments are expected, wherein the order of various operations is changed and the sub-operation of a part for which is described as a larger operation is performed independently.
[0206] In addition, although the present invention is described in the context of functional modules, it should be understood that, unless otherwise specified, one or more of the functions and / or features described may be integrated into a single physical device and / or software module, or one or more functions and / or features may be implemented in separate physical devices or software modules. It is also understood that a detailed discussion of the actual implementation of each module is unnecessary for understanding the present invention. More specifically, in view of the properties, functions, and internal relationships of the various functional modules in the device disclosed herein, the actual implementation of the module will be understood within the conventional skills of the engineer. Therefore, those skilled in the art can implement the present invention set forth in the claims without excessive experimentation using ordinary techniques. It is also understood that the specific concepts disclosed are merely illustrative and are not intended to limit the scope of the present invention, which is determined by the full scope of the appended claims and their equivalents.
[0207] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., which can store program codes.
[0208] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute instructions), or in conjunction with such instruction execution systems, devices or apparatuses. For the purposes of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in conjunction with such instruction execution systems, devices or apparatuses.
[0209] More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk case (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be a paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium, followed by editing, deciphering or, if necessary, processing in another suitable manner, and then stored in a computer memory.
[0210] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.
[0211] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "examples", "specific examples", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner.
[0212] Although the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the claims and their equivalents.
[0213] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the described embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of the present invention.
Claims
1. An underwater network data communication method based on reinforcement learning and power control, It is characterized in that The following steps are involved: Configuring a format of a data packet for underwater communication, the data packet including a data packet identification field, a routing information field, and a routing decision field made by a previous forwarding node; When the target node receives an underwater communication data packet sent by the previous node, the Q value of the neighboring node of the target node is obtained as the transmission priority according to the node information and routing information identified from the underwater communication data packet to transmit the underwater communication data packet; When the underwater communication data packet is transmitted to the next node, an implicit confirmation method is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node, so as to determine the retransmission strategy of the underwater communication data packet; Wherein, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem, and the underwater communication data packet is transmitted at the optimal rate according to the channel capacity; When the target node receives an underwater communication data packet sent by the previous node, the Q value of the neighbor node of the target node is obtained as the transmission priority according to the node information and routing information identified from the underwater communication data packet to transmit the underwater communication data packet, including the following steps: When the target node receives the underwater communication data packet sent by the previous node, the node type of the target node is determined. If the target node is a sink node, the underwater communication data packet is directly transmitted to the satellite by radio electromagnetic waves, or directly transmitted to a nearby signal station by radio electromagnetic waves, and the transmission process is terminated; if the target node is not a sink node, the following steps are performed: The target node updates the information in the received underwater communication data packet to a local information table; Determine whether the target node is a relay node selected by a previous node according to a data packet identification field in the underwater communication data packet, if not, discard the underwater communication data packet, if yes, execute the next step; According to the expected cumulative rewards of each neighboring node, the Q value of the neighboring node of the target node is calculated, and the neighboring node with the highest Q value is selected as the relay node; Encapsulating the node information of the target node into the header of the underwater communication data packet, forwarding the underwater communication data packet to the relay node, and updating the local information table; The method of calculating the Q value of the neighbor nodes of the target node according to the expected cumulative rewards of each neighbor node and selecting the neighbor node with the highest Q value as the relay node includes the following steps: An initial reward function is configured, and the reward function is used to calculate the expected cumulative reward of each neighbor node; wherein the reward function includes the residual energy of the node, the energy distribution around the node, the distance between nodes, and the quality of the link between nodes; wherein the residual energy and the energy distribution are used to uniformly extend the life cycle of the network, the distance between nodes is used to reduce the transmission delay, and the quality of the link between nodes is used to improve the success rate of network transmission; Obtain the number of times each neighbor node sends a data packet and the number of times the data packet is successfully received, and then calculate the packet loss rate and successful transmission rate of each neighbor node forwarding the data packet; According to the initial reward function, the packet loss rate and the successful transmission rate, a direct reward function for data packet transmission is configured; According to the direct reward function, the Q value of the neighbor node of the target node is calculated, and the neighbor node with the highest Q value is selected as the relay node; The expression of the initial reward function is: , Among them, E(∙) is the reward related to energy; D(∙) is the reward related to delay; Lq(∙) is the reward related to link quality; represents the weight of the respective function; R is the continuous penalty or cost when a node attempts to forward a packet, Representative Node Take Action Success The initial reward function calculation value for sending a data packet; represents the action of forwarding a data packet to j; Among them, the energy-related rewards The expression is: , in, and Respectively represent nodes and The cost function of the remaining energy; is the corresponding weight parameter; and Respectively represent nodes and The residual energy of is proportional to the average energy of the adjacent nodes; Among them, the delay-related reward The expression is: , in, Represents the Euclidean distance between node j and sink; Among them, the reward related to link quality The expression is: , in, is the success rate of data packet transmission between nodes; Represented Node and The average link quality between adjacent nodes; and Represents the corresponding weight parameter.
2. According to claim 1, a method for underwater network data communication based on reinforcement learning and power control, It is characterized in that The data packet identification field includes data packet type, data packet ID, source node location, and sink node location; The routing information field includes the V value of the current node, the remaining energy, the cluster average energy, the link quality, and the sender ID.
3. The underwater network data communication method based on reinforcement learning and power control according to claim 1, It is characterized in that When the underwater communication data packet is transmitted to the next node, an implicit confirmation method is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node to determine the retransmission strategy of the underwater communication data packet, including the following steps: When the underwater communication data packet is transmitted to the next node, the next node makes a routing decision. After the next node determines the next hop, the sending node ID is set to the ID of the next node according to the header information of the underwater communication data packet, and then the data packet is forwarded; when the target node intercepts the underwater communication data packet forwarded by the next node, it determines whether the data packet header structure of the underwater communication data packet is consistent with that in the cache. If they are consistent, it determines whether the sender ID of the data packet is equal to the next hop ID of the cached data packet. If so, it indicates that the next node has successfully forwarded the underwater communication data packet; If the target node does not detect the data packet forwarded by the next node after waiting for a period of time, the target node updates the link information and retransmits the underwater communication data packet; When the number of retransmissions reaches three times, the target node makes a new routing decision and selects another node as a forwarding node; When the energy of a node is about to be exhausted, it broadcasts a control packet of type 'exhaust'. When the neighboring nodes of the node receive this type of packet, they confirm that the node is a dead node and delete the node's information in the local table.
4. The underwater network data communication method based on reinforcement learning and power control according to claim 1, It is characterized in that In the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem. According to the channel capacity, the underwater communication data packet is transmitted at the optimal rate, including the following steps: In the actual transmission process, the system working bandwidth is selected, and the expression of ocean environmental noise is constructed according to the ocean noise conditions and environmental noise conditions; Construct the expression of propagation loss function in seawater; According to the energy consumed by the electronic components of the underwater node when sending data packets, and the energy required for the data packets to be transmitted between two nodes, an expression for the energy consumed by the underwater node when sending data packets is constructed; According to the ratio of the distance between each node and the speed of sound, the transmission time of the data packet between two nodes is calculated; Constructing a mathematical model of optimal transmission power according to the expression of the ocean environment noise, the expression of the propagation loss function, the expression of the energy consumed by the underwater node to send a data packet, and the transmission time of the data packet between two nodes; Performing Taylor series expansion on the mathematical model to obtain the objective function and constraint conditions in the form of convex functions; When it is determined that the underwater communication data packet arrives at the next node, the optimal transmission power is calculated; Calculating the channel capacity according to the optimal transmit power; The channel capacity is used to guide the physical layer to transmit the underwater communication data packet at the optimal rate under the current constraints.
5. A system using the underwater network data communication method based on reinforcement learning and power control as described in any one of claims 1 to 4, It is characterized in that include: A first module is used to configure the format of a data packet for underwater communication, wherein the data packet includes a data packet identification field, a routing information field, and a routing decision field made by a previous forwarding node; The second module is used for, when the target node receives the underwater communication data packet sent by the previous node, obtaining the Q value of the neighbor node of the target node as the transmission priority according to the node information and routing information identified from the underwater communication data packet, so as to transmit the underwater communication data packet; The third module is used to determine whether the underwater communication data packet sent by the target node is successfully received by the next node by implicit confirmation when the underwater communication data packet is transmitted to the next node, so as to determine the retransmission strategy of the underwater communication data packet; Among them, in the process of transmitting the underwater communication data packet, a convex optimization method is used to obtain the optimal transmission power of the current node forwarding the underwater communication data packet according to the constraints in the actual transmission, and then the channel capacity is obtained by Shannon's theorem, and the underwater communication data packet is transmitted at the optimal rate according to the channel capacity.
6. An electronic device, It is characterized in that including a processor and a memory; The memory is used to store programs; The processor executes the program to implement the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, It is characterized in that The storage medium stores a program, and the program is executed by a processor to implement the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Underwater sound sensor network cooperative exploration reinforcement learning routing method
CN109362113A
Underwater wireless sensor network routing method based on multi-agent reinforcement learning
CN115843083A
