Dynamic computing cluster head routing method in underwater acoustic networks based on Q-learning and data classification

By introducing dynamic computing cluster heads and Q-learning technology into the underwater acoustic communication network, combined with data classification, the problems of high delay and uneven energy distribution in the underwater acoustic communication network are solved, the network life is extended and the transmission efficiency is improved.

CN115002865BActive Publication Date: 2024-09-03XIAMEN UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210638987.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-07
Publication Date
2024-09-03
Estimated Expiration
2042-06-07

AI Technical Summary

Technical Problem

Due to high latency, uneven node residual energy distribution, and limited energy supply, underwater acoustic communication networks have short network lifespan and are prone to network congestion. Existing routing algorithms fail to effectively combine data priority characteristics for latency optimization.

Method used

Adopt a dynamic calculation cluster head routing method based on Q learning and data classification, select the initial cluster head and backup cluster head through the concept of dynamic calculation cluster head, combine Q learning and data classification method to arrange the data transmission path, avoid network congestion, and in the cluster Choose the optimal transmission route.

Benefits of technology

It effectively reduces the delay and energy consumption of the underwater acoustic communication network, extends the network life, improves the performance of the routing algorithm, avoids network congestion, and optimizes the distribution of node energy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115002865B
    Figure CN115002865B
Patent Text Reader

Abstract

A method for dynamically calculating cluster head routing in an underwater acoustic network based on Q learning and data classification relates to an underwater acoustic communication network. The underwater nodes are clustered, and the cluster head CH node is set as the calculation cluster head, which is responsible for calculating the optimal path of data transmission and the storage of the Q value table, and the non-cluster head node is responsible for data signal transmission. According to the initial position of the underwater acoustic network node, the initial cluster head CH node is selected, and then the backup cluster head is selected according to the energy change rate of the non-cluster head node. Data is classified according to different data priority levels, and different data transmission modes are selected to ensure that nodes with higher data priority are transmitted first; when the residual energy of the initial calculation cluster head CH node is close to the threshold, it performs task handover with the backup cluster head, optimizes the uniform distribution of node energy in the cluster, and makes a more reasonable plan for the allocation of energy resources of the underwater acoustic communication network, so as to realize the underwater acoustic communication energy consumption and delay optimization function based on Q learning and data priority of the underwater acoustic communication network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to underwater communication, and in particular to a method for dynamically calculating cluster head routing of an underwater acoustic network based on Q learning and data classification. Background Art

[0002] In recent years, underwater acoustic communication networks have broad application prospects in marine environmental protection, underwater detection, marine disaster monitoring, offshore operations and marine military activities, and have attracted great attention from governments, industry and academia. As an important part of the design of underwater wireless sensor networks, efficient and low-power routing methods can ensure fast and reliable transmission of data packets and have become a research hotspot in underwater acoustic communication networks.

[0003] Underwater acoustic communication is currently the most robust technical means to achieve reliable long-distance data transmission in the ocean. Since underwater sensor nodes are powered by built-in batteries that are difficult to replace, and the unevenness of data transmission paths can easily lead to premature exhaustion of energy in some nodes, resulting in a shortened network life, extending the life of the underwater acoustic network is the most urgent need. At the same time, due to the large amount of data and low transmission rate, the underwater acoustic communication network is prone to network congestion. Compared with terrestrial wireless sensor networks, due to the inherent properties of the underwater acoustic channel, the underwater acoustic communication network has problems such as low energy utilization, extended end-to-end time, high packet loss rate and system energy consumption, and poor adaptability of the network topology. For this reason, the traditional land-based wireless sensor network routing algorithm cannot be directly applied to the underwater acoustic communication network, and the routing algorithm must be specially designed according to the inherent characteristics of the underwater acoustic communication network. In addition, with the development of the marine Internet of Things, the amount of underwater data perceived by the underwater acoustic communication network is becoming increasingly large. For limited underwater resources, how to combine the different data priorities of underwater information to classify data and then design a suitable routing algorithm is of great significance. At present, the problem of data classification is rarely considered in the research of routing algorithms for underwater acoustic communication networks.

[0004] Y. Lu et al. (Y. Lu; R. He; X. Chen; B. Lin and C. Yu, "Energy-Efficient Depth-Based Opportunistic Routing with Q-Learning for Underwater Wireless Sensor Networks", Sensors 2020, 20, 1025.) proposed an energy-efficient opportunistic routing algorithm based on Q-learning and depth to ensure energy saving and reliable data transmission in underwater acoustic communication networks. The algorithm combines the advantages of Q-learning technology and opportunistic routing algorithms to improve network performance in terms of energy consumption, average network overhead, and message delivery rate, but does not effectively utilize empty nodes, resulting in uneven distribution of residual energy in underwater acoustic communication networks. T.Hu et al. (T.Hu and Y.Fei, "QELAR: A Machine-Learning-Based Adaptive Routing Protocol for Energy-Efficient and Lifetime-Extended Underwater Sensor Networks", IEEE Trans.Mobile Comput., vol.9, no.6, Jun.2010.) proposed a reinforcement learning-based adaptive, energy-saving, life-cycle-aware routing method QELAR. The protocol uses a general MAC protocol, which aims to make the remaining energy distribution of sensor nodes more uniform through design to extend the network life cycle. However, in this scheme, the exchange of information between nodes increases energy loss and increases invalid loss. Y.Su et al. (Y.Su, R.Fan, Xi Fu and Z.Jin, "DQELR: An Adaptive Deep Q-Network-Based Energy-and Latency-Aware Routing Protocol Design for Underwater Acoustic Sensor Networks", IEEE Access, vol.7, pp.9091-9104, Jan.2019.) proposed an adaptive energy and latency-aware routing method (DQELR) based on a deep Q network to extend the network lifetime of underwater acoustic communication networks. A hybrid of broadcast and unicast communication mechanisms is also designed to reduce network overhead; with lower energy consumption and strict latency constraints, the network lifetime in underwater acoustic communication networks can be extended.Z. Jin et al. (Z. Jin; Y. Ma; Y. Su; Shuo Li and X. Fu, "A Q-Learning-Based Delay-Aware Routing Algorithm to Extend the Lifetime of Underwater Sensor Networks", Sensors 2017, 17, 1660.) proposed a Q-learning-based delay-aware routing (QDAR) algorithm to extend the lifecycle of underwater acoustic communication networks. In QDAR, a data collection phase that adapts to dynamic environments is designed. Through the application of Q learning technology, QDAR can determine the global optimal next hop instead of using a greedy mode for the next hop. However, since each path design requires the help of the source node, it may increase the propagation delay, reduce the transmission rate, and cause network congestion.

[0005] In summary, in the relevant literature on designing specific routing algorithms for underwater acoustic communication networks, there are still many problems in the current specialized research on routing algorithms, and there is no relevant research on network life extension and latency optimization strategies for underwater acoustic communication networks combined with data priority characteristics. Summary of the invention

[0006] The purpose of the present invention is to provide a method for dynamically calculating cluster heads in underwater acoustic network based on Q learning and data classification to solve the problems of high latency, uneven distribution of node residual energy and limited node energy supply in underwater acoustic communication network. The proposed method introduces the concept of dynamic calculation of cluster heads: in the clustering stage, the initial cluster head is selected to calculate and coordinate data transmission. When its residual energy is close to the threshold, it is replaced by a backup cluster head to extend the life of the network; in the coordination of data transmission stage, the data transmission path is arranged based on Q learning and data classification to avoid network congestion.

[0007] The present invention comprises the following steps:

[0008] 1) In the entire underwater acoustic communication network, for a series of nodes randomly distributed in the underwater environment, at the initial moment, any K nodes are selected as cluster centers, and all nodes are traversed. According to formula (1) and the principle of the closest distance, these points are assigned to the vicinity of the K cluster centers to form K clusters; then, according to formula (2), the cluster center of each cluster is recalculated, and clustering is performed again until the result of each clustering remains unchanged; in each cluster, the node closest to the cluster center is selected as the initial cluster head CH node; in practical applications, a maximum number of iterations can be set, and when the maximum number of iterations is reached, the calculation is terminated to obtain a more ideal result;

[0009]

[0010]

[0011] Where D represents the node s n With cluster center distance; Represents node s n The coordinates of x (n) ,y (n) Node s n The horizontal and vertical coordinates of For C n The coordinates of the cluster centers, m k For C n The number of nodes in a cluster;

[0012] 2) Perform cluster initialization operations to determine the status of each node in the cluster. The initial cluster head CH node broadcasts to inform the remaining nodes in the cluster about the information about the cluster head. The initial cluster head CH node sends a blank data packet containing the cluster head logo to the adjacent nodes. When the remaining nodes in the cluster receive this data packet, they recognize the cluster head logo and add their own information (including node depth, initial residual energy) to the data packet. The nodes number themselves according to the order in which they receive this data packet and attach them to the data packet. Finally, when the initial cluster head CH node receives this data packet, it establishes an initial Q value table according to the numbering sequence and checks whether a node is missing according to the numbering. If a node is missing, it broadcasts again until there is no missing node.

[0013] 3) In the framework of Q learning, the π strategy refers to each state s under this strategy i ∈S and action a i ∈A(s i ), all correspond to a fixed state s i Take action a i The probability is π(s i , a i ), where S represents the state space, A(s i ) indicates state s i The core of Q learning is the value of the state-action pair Q(s, a). Under the strategy π, let t Take action a t , and the expected return that can be obtained by following the optimal strategy is Q * (s t , a t ):

[0014]

[0015] It can be approximated by iteration:

[0016]

[0017] Among them, α∈(0,1] represents the learning efficiency, which determines the update rate of the Q value; r t Indicates that it is in state s t When taking action a t the returns that can be received; Indicates that from state s t Take action a t To the next state s t+1 γ represents the discount factor, which is used to discount the rewards received in the future, and because the recent behavior has a greater impact on the current value than the future behavior, its value range is [0, 1); when γ is set to 0, the system only considers the current reward, and its behavior is similar to the greedy algorithm, but the local optimum does not necessarily lead to the global optimum; when γ is set to 1, the system will strive for long-term high returns, however, future rewards cannot be accurately estimated, so good performance cannot be guaranteed; for this reason, it is necessary to balance these two factors, and the typical value of γ can be set between 0.5 and 0.99;

[0018] Therefore, consider the cluster head CH node to calculate the reward function r t The formula is:

[0019] r t =-g-β1c(s n )+β2d(s n ) (5)

[0020]

[0021]

[0022] β1+β2=1 (8)

[0023] Among them, g represents continuous punishment; β1 and β2 represent reward weights respectively; c(s n ) represents the node s n The remaining energy reward, d(s n ) represents the node s n Depth of Rewards; E res (s n ) represents node s n The remaining energy, E init (s n ) represents node s n The initial energy of (CH) represents the depth of the cluster head CH node, Represents node s n Depth

[0024] Node Depth The information is obtained during the cluster initialization operation, and the node remaining energy E res (s n ) information is obtained when the data transmission is in progress or completed;

[0025] Because in the initial period of time (the initial residual energy of each node in the cluster is the same), when the initial cluster head calculates the Q value table, the weight of the depth reward β2 increases and the weight of the residual energy reward β1 decreases; when the variance of the residual energy in the cluster is greater than the threshold C (C is a constant), the weight of the depth reward β2 decreases and the weight of the residual energy reward β1 increases; in actual application, the threshold C is often set according to the number of nodes in the underwater acoustic network and the initial residual energy of the nodes;

[0026] 4) In the entire underwater acoustic communication network, each cluster head CH node is responsible for calculating and updating the Q value table based on the information of other nodes, so as to obtain the best transmission path for data within the cluster to which each cluster head belongs; each non-cluster head node in the cluster is responsible for data transmission and information exchange with the cluster head of the cluster to which it belongs; when any node starts to transmit data, it first determines the priority of the data and classifies the data, so as to select the data transmission method, and the node exchanges signals with the cluster head CH node to which it belongs. The cluster head CH node returns the information to the node after calculation, so as to complete the data transmission between the nodes in the cluster according to the calculation results;

[0027] In step 4), the calculation formula for the data level transmitted by the node is:

[0028]

[0029] In step 4), there are two types of data transmission:

[0030] Suppose the node that needs to transmit data is s0, the cluster head CH node of the cluster to which node s0 belongs is CH1, and the cluster heads CH nodes of the other clusters are CH2, CH3, ..., CH K , the other non-cluster head nodes are s1, s2, ..., s n ;

[0031] In order to avoid a single node participating in multiple data transmissions at the same time, thus causing signal congestion, the cluster head CH node is required to mark the decision nodes participating in the optimal path as ψ=1 (indicating that these nodes need to complete the task of transmitting data) when calculating a certain optimal path. When the cluster head CH node receives the ACK data packet returned by the node (including the remaining energy information of the node), the cluster head CH node updates the Q value table and marks this node as ψ=0; in short, ψ=0 means that the node is in standby state, that is, there is no transmission task; ψ=1 means that the node is in working state, that is, there is a transmission task; the cluster head CH node is required to only allow non-cluster head nodes with ψ=0 to participate in the calculation when calculating a certain optimal path;

[0032] ① When θ=1, that is, the priority of the transmitted data is higher, the nodes in the cluster perform the following transmission steps:

[0033] (1) Node s0 will send a data packet containing a data header and its own information to the cluster head node CH1;

[0034] The data packet in step (1) contains the priority θ=1 of the transmitted data, a data header and the remaining energy information of the node s0; wherein the data header is the serial number of the data to be transmitted;

[0035] (2) When the cluster head node CH1 receives a data packet from node s0, it reads the priority information of the data and updates the Q value table based on the node residual energy information in the data packet;

[0036] (3) Cluster head node CH1 calculates the optimal path for data transmission within the cluster and returns the signal to node s0. At the same time, cluster head node CH1 transmits the number information of the end node s1 of the optimal path for data transmission and the data header information to cluster head node CH2 with a shallower depth. At this time, cluster head node CH1 marks the nodes participating in the optimal path for data transmission within the cluster as ψ = 1.

[0037] The signal returned by cluster head CH1 to node s0 in step (3) contains the serial number sequence of nodes along the optimal path for data transmission within the cluster;

[0038] (4) After receiving the signal returned by the cluster head node CH1, node s0 starts to transmit data along the optimal path within the cluster until the data is transmitted to the end node s1 of the optimal data transmission path within the cluster;

[0039] In step (4), whenever a node transmitting data along the optimal path completes its transmission task, it sends an ACK data packet containing the node's remaining energy information to the cluster head CH1 node; after receiving the ACK data packet, the cluster head CH1 node marks the node as ψ = 0;

[0040] (5) After receiving the information, the cluster head CH2 node calculates the optimal path of the data in the cluster according to the Q value table, and transmits the signal to the initial node s2 of the cluster connected to the optimal path end node s1 of the previous cluster. At the same time, the cluster head CH2 node transmits the information containing the optimal path end node s3 information and the data header to the shallower cluster head CH2 node;

[0041] (6) Node s2 sends a receiving signal to node s1, the end of the optimal path for data transmission in the previous cluster. After receiving the data from node s1, node s2 starts to transmit data along the optimal path for data transmission in the current cluster until the data is transmitted to node s3, the end of the optimal path for data transmission in the current cluster.

[0042] (7) Repeat iterative steps (3) to (6) until there is no shallower cluster head CH node, and finally the end node s of the optimal data transmission path of the last cluster n Transmit data to the Sink node;

[0043] ② When θ = 0, that is, the priority of the transmitted data is low, the nodes in the cluster perform the following transmission steps:

[0044] (1) Node s0 will send a data packet containing a data header and its own information to the cluster head node CH1;

[0045] The data packet in step (1) contains the priority θ=0 of the transmitted data, a data header and the remaining energy information of the node s0; wherein the data header is the serial number of the data to be transmitted;

[0046] (2) When the cluster head node CH1 receives a data packet from node s0, it reads the priority information of the data and updates the Q value table based on the node residual energy information in the data packet;

[0047] (3) Cluster head node CH1 calculates the optimal path for data transmission within the cluster and returns the signal to node s0. At this time, cluster head node CH1 marks the nodes participating in the optimal path for data transmission within the cluster as ψ=1. After node s0 receives the signal returned by cluster head node CH1, it starts to transmit data along the optimal path within the cluster.

[0048] In step (3), whenever a node transmitting data along the optimal path completes its transmission task, it sends an ACK data packet containing the node's remaining energy information to the cluster head CH1 node; after receiving the ACK data packet, the cluster head CH1 node marks the node as ψ = 0;

[0049] (4) After the data is transmitted to the end node s1 of the optimal data transmission path within the cluster, node s1 sends a data packet containing the data header and data priority information to the neighboring node s2 of other clusters with a shallower depth (excluding the cluster head CH node);

[0050] (5) After receiving the data packet, the neighboring node s2 forwards the data packet containing the data header and data priority information to the cluster head node CH2 of the cluster;

[0051] (6) After receiving the data packet, the cluster head CH2 node determines whether to perform the optimal path calculation based on whether there is a transmission demand for higher priority data;

[0052] (6.1) If there is a need to transmit data with a higher priority, the cluster head CH2 node sends a waiting signal to the neighboring node s2, and the neighboring node s2 forwards this signal to the node s1. The node s1 retains the data and waits until the neighboring node s2 sends a receiving signal;

[0053] (6.2) If there is no transmission demand for data with higher priority, the cluster head CH2 node calculates the optimal path for data transmission within the cluster according to the Q value table and sends a signal to the neighboring node s2; at this time, the neighboring node s2 sends a receiving signal to the node s1, and then the neighboring node s2 receives the data from the node s1 and starts to transmit data along the optimal path for data transmission within the cluster;

[0054] The signal returned by cluster head CH2 to node s2 in step (6.2) contains the serial number sequence of nodes along the optimal path for data transmission within the cluster;

[0055] (7) Repeat iterative steps (4) to (6) until there is no cluster head CH node with a shallower depth, and finally the end node s of the optimal data transmission path of the last cluster n Transmit data to the Sink node;

[0056] 5) After the node determines the priority of the data, it will select the data transmission method to complete the data transmission; in the process of the cluster head CH node calculating the optimal path, the residual energy of the cluster head CH node will decrease with the increase of time; when the residual energy E res(CH) Below threshold E ave When the initial cluster head CH node loses its computing function and passes its own information and the information of each non-cluster head node to the backup cluster head, and starts to transmit data and data header information. After receiving the information of the initial cluster head, the backup cluster head enables the computing function and broadcasts to notify the nodes in the cluster that the cluster head has changed, and at the same time, starts to look for the backup cluster head;

[0057] In step 5), the energy threshold calculation formula for replacing the cluster head CH node is:

[0058]

[0059] In the formula, E res(CH) represents the residual energy of the cluster head CH node, E res (s i ) represents node si The remaining energy, n k Indicates the number of non-cluster head nodes in the current cluster;

[0060] In the process of cluster head CH node calculating the optimal path, the residual energy of cluster head CH node will decrease with the increase of time. The dynamic replacement of cluster head is conducive to the extension of the life of underwater acoustic communication network.

[0061] In the stage of selecting backup cluster heads, combined with the energy change rate of non-cluster head nodes, potential nodes that may be empty are selected as backup cluster heads in the subsequent stage as much as possible; the cluster head CH node regularly updates the V value of each non-cluster head node according to the energy change rate of the remaining nodes, and selects the non-cluster head node with the smallest V value as the backup cluster head; where the V value represents the expected value of each non-cluster head node as a backup cluster head;

[0062] In step 5), the V value calculation formula considering the non-cluster head node is:

[0063]

[0064] In the formula, E init (s n ) represents node s n The initial energy, E res (s n ) represents node s n The remaining energy

[0065] When the remaining energy E of the cluster head CH node res(CH) Below threshold E ave (calculated by formula (10)), the initial cluster head CH node loses its computing function, and transmits its own information and the information of each non-cluster head node to the backup cluster head, and starts to transmit data and data header information at the same time, and then becomes a non-cluster head node; after receiving the information of the initial cluster head CH node, the backup cluster head enables the computing function; then it becomes the cluster head CH node, and at the same time broadcasts to notify the other nodes in the cluster that the cluster head has changed;

[0066] When the cluster head CH node replaces the previous cluster head CH node, the cluster head CH node starts to look for a backup cluster head; this cycle is repeated throughout the protocol to dynamically select and replace cluster heads, thereby extending the life of the underwater acoustic communication network.

[0067] The present invention has the following outstanding advantages:

[0068] 1) The present invention can effectively reduce the communication delay and energy consumption in the underwater acoustic communication network, and to a certain extent solve the problem of uneven distribution of residual energy of underwater nodes.

[0069] 2) Taking into account the high latency, high energy consumption and short network life of the underwater acoustic communication network, the present invention proposes a dynamic computing cluster head based on Q learning to coordinate data transmission across clusters. The dynamic cluster head calculates the optimal data transmission path according to the remaining energy and depth, and the remaining nodes in the cluster are only responsible for transmitting data and sending information. At the same time, selecting different data transmission modes based on data priority helps to reduce energy loss, save computing resources, extend the life of the underwater acoustic network, and reduce end-to-end transmission delay, so as to improve the performance of the underwater acoustic communication network routing algorithm.

[0070] 3) The present invention proposes a data classification mechanism according to the different priorities of the transmitted data. Different priority data adopt different data transmission methods to reduce the communication delay of the underwater acoustic communication network and avoid network congestion. BRIEF DESCRIPTION OF THE DRAWINGS

[0071] Figure 1 Construct a scenario graph for an underwater hydroacoustic communication network.

[0072] Figure 2 This is a flow chart of the data transmission mode of the underwater hydroacoustic communication network.

[0073] Figure 3 Coordinate distribution diagram of random nodes in underwater hydroacoustic communication network.

[0074] Figure 4 Simulation analysis results of dynamically calculating the optimal path for cross-cluster coordination of cluster heads for underwater hydroacoustic communication network data transmission. DETAILED DESCRIPTION

[0075] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0076] like Figure 1 As shown, the embodiment of the present invention includes the following steps:

[0077] 1) In the entire underwater acoustic communication network, for a series of nodes randomly distributed in the underwater environment, select any K nodes as cluster centers at the initial moment, traverse all nodes, and according to the formula (1) and the principle of the closest distance, distribute these points to the vicinity of the K cluster centers to form K clusters. Then, according to the formula (2), recalculate the cluster center of each cluster and re-cluster until the result of each clustering remains unchanged. In each cluster, select the node closest to the cluster center as the initial cluster head CH node. In practical applications, a maximum number of iterations can be set. When the maximum number of iterations is reached, terminate the calculation to obtain a more ideal result.

[0078]

[0079]

[0080] Where D represents the node s n With cluster center distance; Represents node s n The coordinates of x (n) ,y (n) Node s n The horizontal and vertical coordinates of For C n The coordinates of the cluster centers, m k For C n The number of nodes in a cluster.

[0081] 2) Perform cluster initialization operations to determine the status of each node in the cluster. The initial cluster head CH node broadcasts to inform the remaining nodes in the cluster about the information about the cluster head. The initial cluster head CH node sends a blank data packet containing the cluster head logo to the adjacent nodes. When the remaining nodes in the cluster receive this data packet, they recognize the cluster head logo and add their own information (including node depth, initial residual energy) to the data packet. The nodes number themselves according to the order in which they receive this data packet and attach them to the data packet. Finally, when the initial cluster head CH node receives this data packet, it establishes an initial Q value table according to the numbering sequence and checks whether a node is missing according to the numbering. If a node is missing, broadcast again until there is no missing node.

[0082] 3) In the framework of Q learning, the π strategy refers to each state s under this strategy i ∈S and action a i ∈A(s i ), all correspond to a fixed state s i Take action a i The probability is π(s i , a i ), where S represents the state space, A(s i ) indicates state s i The core of Q learning is the value of the state-action pair, i.e., Q(s, a). Under the strategy π, let t Take action a t , and the expected return that can be obtained by following the optimal strategy is Q * (s t , a t ):

[0083]

[0084] It can be approximated by iteration:

[0085]

[0086] Among them, α∈(0,1] represents the learning efficiency, which determines the update rate of the Q value; r t Indicates that it is in state s t When taking action a t the returns that can be received; Indicates that from state s t Take action a t To the next state s t+1 γ represents the discount factor, which is used to discount the rewards received in the future, and because the recent behavior has a greater impact on the current value than the future behavior, its value range is [0, 1). When γ is set to 0, the system only considers the current reward, and its behavior is similar to the greedy algorithm, but the local optimum does not necessarily lead to the global optimum; when γ is set to 1, the system will strive for high returns in the long term, however, future rewards cannot be accurately estimated, so good performance cannot be guaranteed. To this end, it is necessary to balance these two factors, and the typical value of γ can be set between 0.5 and 0.99.

[0087] Therefore, consider the cluster head CH node to calculate the reward function r t The formula is:

[0088] r t =-g-β1c(sn)+β2d(s n ) (5)

[0089]

[0090]

[0091] β1+β2=1 (8)

[0092] Among them, g represents continuous punishment. β1 and β2 represent reward weights. c(s n ) represents the node s n The remaining energy reward, d(s n ) represents the node s n Depth of reward. res (s n ) represents node s n The remaining energy, E init (s n ) represents node s n The initial energy of (CH) represents the depth of the cluster head CH node, Represents node s n Depth.

[0093] Node Depth The information is obtained during the cluster initialization operation, and the node remaining energy E res (sn ) information is obtained when data transmission is in progress or completed.

[0094] Because in the initial period of time (the initial residual energy of each node in the cluster is the same), when the initial cluster head calculates the Q value table, the weight of the depth reward β2 increases and the weight of the residual energy reward β1 decreases; when the variance of the residual energy in the cluster is greater than the threshold C (C is a constant), the weight of the depth reward β2 decreases and the weight of the residual energy reward β1 increases. In practical applications, the threshold C is often set according to the number of nodes in the underwater acoustic network and the initial residual energy of the nodes.

[0095] 4) In the entire underwater acoustic communication network, each cluster head CH node is responsible for calculating and updating the Q value table based on the information of other nodes, so as to obtain the best transmission path for data within the cluster to which each cluster head belongs. Non-cluster head nodes within each cluster are responsible for data transmission and information exchange with the cluster head of the cluster to which they belong. When any node starts to transmit data, it first determines the priority of the data and classifies the data, thereby selecting the data transmission method. The node exchanges signals with the cluster head CH node to which it belongs. The cluster head CH node returns the information to the node after calculation, thereby completing data transmission between nodes within the cluster according to the calculation results.

[0096] In step 4), the calculation formula for the data level transmitted by the node is:

[0097]

[0098] In step 4), there are two types of data transmission:

[0099] Suppose the node that needs to transmit data is s0, the cluster head CH node of the cluster to which node s0 belongs is CH1, and the cluster heads CH nodes of the other clusters are CH2, CH3, ..., CH K , the other non-cluster head nodes are s1, s2, ..., s n .

[0100] In order to avoid a single node participating in multiple data transmissions at the same time, thus causing signal congestion, the cluster head CH node is required to mark the decision nodes participating in the optimal path as ψ=1 (indicating that these nodes need to complete the task of transmitting data) when calculating a certain optimal path. When the cluster head CH node receives the ACK data packet returned by the node (including the remaining energy information of the node), the cluster head CH node updates the Q value table and marks this node as ψ=0. In short, ψ=0 means that the node is in standby state, that is, there is no transmission task; ψ=1 means that the node is in working state, that is, there is a transmission task. When calculating a certain optimal path, the cluster head CH node is required to only allow non-cluster head nodes with ψ=0 to participate in the calculation.

[0101] ① When θ=1, that is, the priority of the transmitted data is higher, the nodes in the cluster perform the following transmission steps:

[0102] (1) Node s0 will send a data packet containing a data header and its own information to the cluster head node CH1;

[0103] The data packet in step (1) contains the priority θ=1 of the transmission data, a data header and the residual energy information of the node s0, wherein the data header is the serial number of the data to be transmitted.

[0104] (2) When the cluster head node CH1 receives a data packet from node s0, it reads the priority information of the data and updates the Q value table based on the node residual energy information in the data packet;

[0105] (3) Cluster head node CH1 calculates the optimal path for data transmission within the cluster and returns the signal to node s0. At the same time, cluster head node CH1 transmits the number information of the end node s1 of the optimal path for data transmission and the data header information to cluster head node CH2 with a shallower depth. At this time, cluster head node CH1 marks the nodes participating in the optimal path for data transmission within the cluster as ψ=1.

[0106] The signal returned by cluster head node CH1 to node s0 in step (3) contains the serial number sequence of the nodes along the optimal path for data transmission within the cluster.

[0107] (4) At the same time, after receiving the signal returned by the cluster head node CH1, node s0 starts to transmit data along the optimal path within the cluster until the data is transmitted to the end node s1 of the optimal data transmission path within the cluster;

[0108] In step (4), whenever a node transmitting data along the optimal path completes its transmission task, it sends an ACK data packet containing the node's remaining energy information to the cluster head CH1 node. After receiving the ACK data packet, the cluster head CH1 node marks the node as ψ=0.

[0109] (5) After receiving the information, the cluster head CH2 node calculates the optimal path of the data within the cluster according to the Q value table, and transmits the signal to the initial node s2 of the cluster that is connected to the optimal path end node s1 of the previous cluster. At the same time, the cluster head CH2 node transmits information containing the optimal path end node s3 information and the data header to the shallower cluster head CH2 node.

[0110] (6) Node s2 sends a receiving signal to node s1, the end point of the optimal path for data transmission in the previous cluster. After receiving the data from node s1, node s2 starts to transmit data along the optimal path for data transmission in the current cluster until the data is transmitted to node s3, the end point of the optimal path for data transmission in the current cluster.

[0111] (7) Repeat iterative steps (3) to (6) until there is no shallower cluster head CH node, and finally the end node s of the optimal data transmission path of the last cluster n Transmit data to the Sink node.

[0112] ② When θ = 0, that is, the priority of the transmitted data is low, the nodes in the cluster perform the following transmission steps:

[0113] (1) Node s0 will send a data packet containing a data header and its own information to the cluster head node CH1;

[0114] The data packet in step (1) contains the priority θ=0 of the transmission data, a data header and the residual energy information of the node s0, wherein the data header is the serial number of the data to be transmitted.

[0115] (2) When the cluster head node CH1 receives a data packet from node s0, it reads the priority information of the data and updates the Q value table based on the node residual energy information in the data packet;

[0116] (3) Cluster head node CH1 calculates the optimal path for data transmission within the cluster and returns the signal to node s0. At this time, cluster head node CH1 marks the nodes participating in the optimal path for data transmission within the cluster as ψ=1. After node s0 receives the signal returned by cluster head node CH1, it starts to transmit data along the optimal path within the cluster;

[0117] In step (3), whenever a node transmitting data along the optimal path completes its transmission task, it sends an ACK data packet containing the node's remaining energy information to the cluster head CH1 node. After receiving the ACK data packet, the cluster head CH1 node marks the node as ψ=0.

[0118] (4) After the data is transmitted to the end node s1 of the optimal data transmission path within the cluster, node s1 sends a data packet containing the data header and data priority information to the neighboring node s2 of other clusters with a shallower depth (excluding the cluster head CH node);

[0119] (5) After receiving the data packet, the neighboring node s2 forwards the data packet containing the data header and data priority information to the cluster head node CH2 of the cluster;

[0120] (6) After receiving the data packet, the cluster head CH2 node determines whether to perform optimal path calculation based on whether there is a transmission demand for data with higher priority.

[0121] (6.1) If there is a need to transmit data with a higher priority, the cluster head CH2 node sends a waiting signal to the neighboring node s2, and the neighboring node s2 forwards this signal to the node s1. The node s1 retains the data and waits until the neighboring node s2 sends a receiving signal.

[0122] (6.2) If there is no transmission demand for higher priority data, the cluster head CH2 node calculates the optimal path for data transmission within the cluster according to the Q value table and sends a signal to the neighboring node s2. At this time, the neighboring node s2 sends a receiving signal to the node s1, and then the neighboring node s2 receives the data from the node s1 and starts to transmit data along the optimal path for data transmission within the cluster.

[0123] The signal returned by cluster head CH2 to node s2 in step (6.2) contains the serial number sequence of the nodes along the optimal path within the cluster where the data is transmitted.

[0124] (7) Repeat iterative steps (4) to (6) until there is no cluster head CH node with a shallower depth, and finally the end node s of the optimal data transmission path of the last cluster n Transmit data to the Sink node.

[0125] 5) After the node determines the priority of the data, it will select the data transmission method to complete the data transmission. In the process of the cluster head CH node calculating the optimal path, the residual energy of the cluster head CH node will decrease with the increase of time. res(CH) Below threshold E ave When the initial cluster head CH node loses its computing function and passes its own information and the information of each non-cluster head node to the backup cluster head, and starts to transmit data and data header information. After receiving the information of the initial cluster head, the backup cluster head enables the computing function and broadcasts to notify the nodes in the cluster that the cluster head has changed. At the same time, it starts to look for a backup cluster head.

[0126] In step 5), the energy threshold calculation formula for replacing the cluster head CH node is:

[0127]

[0128] In the formula, E res(CH) represents the residual energy of the cluster head CH node, E res (s i ) represents node s i The remaining energy, n k Indicates the number of non-cluster head nodes in the current cluster.

[0129] In the process of cluster head CH node calculating the optimal path, the residual energy of cluster head CH node will decrease with time. The dynamic replacement of cluster head is beneficial to prolong the life of underwater acoustic communication network.

[0130] In the stage of selecting backup cluster heads, combined with the energy change rate of non-cluster head nodes, try to select potential nodes that may be empty as backup cluster heads in subsequent stages. The cluster head CH node regularly updates the V value of each non-cluster head node according to the energy change rate of the remaining nodes, and selects the non-cluster head node with the smallest V value as the backup cluster head. Among them, the V value represents the expected value of each non-cluster head node as a backup cluster head.

[0131] In step 5), the V value calculation formula considering the non-cluster head node is:

[0132]

[0133] In the formula, E init (s n ) represents node s n The initial energy, E res (s n ) represents node s n of remaining energy.

[0134] When the remaining energy E of the cluster head CH node res(CH) Below threshold E ave (calculated by formula (10)), the initial cluster head CH node loses its computing function, and transmits its own information and the information of each non-cluster head node to the backup cluster head, and starts to transmit data and data header information at the same time, and then becomes a non-cluster head node; after the backup cluster head receives the information of the initial cluster head CH node, it enables the computing function. It then becomes the cluster head CH node, and at the same time broadcasts to notify the other nodes in the cluster that the cluster head has changed.

[0135] When the cluster head CH node replaces the previous cluster head CH node, the cluster head CH node starts to look for a backup cluster head. This cycle is repeated throughout the protocol to dynamically select and replace cluster heads, thereby extending the life of the underwater acoustic communication network.

[0136] The feasibility of the method of the present invention is verified by computer simulation below.

[0137] The simulation platform is MATLAB_R2021b.

[0138] like Figure 3 As shown in the figure, the network topology model of underwater sensor nodes is randomly arranged, with a total of 40 nodes.

[0139] The parameter settings are as follows: the number of cluster heads K = 5; the number of non-cluster head nodes n = 35; the total number of nodes n + K = 40; the number of exploration iterations ε max =10000; learning efficiency α=0.9; discount factor γ=0.8; continuous penalty g=0.1; reward weight β1=0.4; reward weight β2=0.6; the Q value table is initialized to a 7×7 zero matrix.

[0140] pass Figure 3 It can be seen that the underwater acoustic communication network topology model has a total of 5 clusters.

[0141] Taking a certain cluster as an example, the simulation process is introduced.

[0142] (1) Set the reward matrix R of each non-cluster head node 7×7 , the reward value setting rules are as follows:

[0143] ① When node s i The transmission distance is less than that of node s i and nodes j When the geometric distance is i ,s j ) = -1000;

[0144] ②When node s i The transmission distance is greater than that of node s i and nodes j When the geometric distance is , it can be known from formulas (5-7):

[0145] R(s i ,s j )=-g-β1c(s j )+β2d(s j )

[0146]

[0147]

[0148] Among them, g represents continuous punishment. β1 and β2 represent reward weights. c(s j ) represents the node s j The remaining energy reward, d(s j ) represents the node s j Depth of reward. res (s j ) represents node s j The remaining energy, E init (s j ) represents node s j The initial energy of (CH) Indicates the depth of the cluster head CH node, Represents node s j Depth.

[0149] (2) Before the cluster head CH node calculates the optimal data transmission path, it selects the end node s of the optimal data transmission path within the cluster according to the residual energy of each non-cluster node in the cluster and the distance between the node and the sink node. N , that is, the non-cluster head node with the largest ρ value. The formula is:

[0150]

[0151] In the formula, E res (s i ) represents node s i The remaining energy, E init (s i ) represents node s i The initial energy, Represents node s i The distance from the Sink node.

[0152] (3) Update the Q matrix of the cluster head CH node. The Q matrix will be updated once after each exploration iteration until the matrix converges. The specific steps are as follows:

[0153] ① Randomly select a non-cluster head node s in the cluster i , randomly select the next node s′ from the i-1th row (i.e. the row where the node is located) in the reward matrix R i , from formula (4), we can know that the update rule is:

[0154]

[0155] Among them, Q′(s i , s′ i ) is the updated Q value, α and γ are the learning efficiency and discount factor set previously, and Ψ represents the condition that satisfies R(s′ i ,s″ i )>-1000.

[0156] ②Repeat step ① until the matrix converges.

[0157] (4) When a node needs to transmit data, the cluster head CH node calculates the optimal path based on the Q value table.

[0158] ① Select the source node s0, and set the multi-hop path to be: s0→s1→s2→…→s i →s i+1 →…→s N

[0159] ②Data from node s i Pass to the next node s i+1

[0160] The requirement for selecting the next node is: Q(s i ,s i+1 )=max{Q(s i ,s 1~N )};

[0161] ③ Repeat step ② until i=N, and the calculation of the optimal path is completed;

[0162] (5) When the data in the cluster is transmitted to the end node of the optimal path, the cluster head CH node with a shallower depth selects the initial node of the optimal path for data transmission in the shallower cluster, that is, the non-cluster head node with the largest σ value, based on the residual energy of each non-cluster node in the cluster and the distance between the node and the end node. The formula is:

[0163]

[0164] In the formula, E res (s i ) represents node s i The remaining energy, E init (s i ) represents node s i The initial energy, Represents node s i The distance to the end node.

[0165] (6) Repeat steps (3) to (5) until the data is transmitted to the Sink node.

[0166] Figure 4 The figure shows the simulation analysis results of the optimal path for cross-cluster coordination of underwater acoustic communication network data transmission, where S1 and S2 are source nodes and Sink is the destination node. The units of the X and Y axes are m (meter).

[0167] When S1 is the source node, the optimal path in the first cluster is L1 = [1, 5, 7], the optimal path in the second cluster is L2 = [8, 10, 12, 13], and the optimal path in the third cluster is L3 = [15, 21]. The data is then transmitted to the Sink node.

[0168] When S2 is the source node, the optimal path in the first cluster is L1 = [23, 25, 27, 28], the optimal path in the second cluster is L2 = [29, 32, 34, 35], and the optimal path in the third cluster is L3 = [18, 20]. The data is then transmitted to the Sink node.

Claims

1. A method for dynamically calculating cluster head routing in underwater acoustic networks based on Q learning and data classification, characterized in that The following steps are involved: 1) In the entire underwater acoustic communication network, for the nodes randomly distributed in the underwater environment, at the initial moment, select any K nodes as cluster centers, traverse all the nodes, and according to the formula (1) and the principle of the closest distance, distribute these points to the vicinity of the K cluster centers to form K clusters; according to the formula (2), recalculate the cluster center of each cluster and re-cluster until the result of each clustering remains unchanged; in each cluster, select the node closest to the cluster center as the initial cluster head CH node; in practical applications, set a maximum number of iterations, and terminate the calculation when the maximum number of iterations is reached; Where D represents the node s n With cluster center distance; represents the coordinates of the node sn, and x (n) ,y (n) Node s n The horizontal and vertical coordinates of For C n The coordinates of the cluster centers, m k For C n The number of nodes in a cluster; 2) Cluster initialization operation, determine the status of each node in the cluster, the initial cluster head CH node broadcasts to inform the other nodes in the cluster about the information of the cluster head, and the initial cluster head CH node sends a blank data packet containing the cluster head logo to the adjacent nodes; when the other nodes in the cluster receive this data packet, they recognize the cluster head logo and add their own information to the data packet. The self-information includes the node depth and the initial residual energy. According to the order in which the data packet is received, the node numbers itself and attaches it to the data packet; finally, when the initial cluster head CH node receives this data packet, it establishes the initial Q value table according to the numbering sequence and checks whether the node is missed according to the number; if the node is missed, it broadcasts again until there is no missed node; 3) In the framework of Q learning, the π strategy refers to each state s under this strategy i ∈S and action a i ∈A(s i ), all correspond to a fixed state s i Take action a i The probability is π(s i , a i ), where S represents the state space, A(s i ) indicates state s i The core of Q learning is the value of the state-action pair Q(s, a). Under the strategy π, let t Take action a t , and the expected return that can be obtained by following the optimal strategy is Q * (s t , a t ): Approximate by iteration: Among them, α∈(0,1] represents the learning efficiency and determines the update rate of the Q value; r t Indicates that it is in state s t When taking action a t the returns that can be received; Indicates that from state s t Take action a t To the next state s t+1 γ represents the discount factor, which is used to discount the rewards received in the future, and because the recent behavior has a greater impact on the current value than the future behavior, its value range is [0, 1); when γ is set to 0, the system only considers the current reward, and the behavior is similar to the greedy algorithm, but the local optimum does not necessarily lead to the global optimum; when γ is set to 1, the system will strive for high returns in the long term, however, future rewards cannot be accurately estimated, so good performance cannot be guaranteed; for this reason, it is necessary to balance these two factors, and the typical value of γ is set between 0.5 and 0.99; Consider the cluster head CH node to calculate the reward function r t The formula is: r t =-g-β1c(s n )+β2d(s n ) (5) β1+β2=1 (8) Among them, g represents continuous punishment; β1 and β2 represent reward weights respectively; c(s n ) represents the node s n The remaining energy reward, d(s n ) represents the node s n Depth of Rewards; E res (s n ) represents node s n The remaining energy, E init (s n ) represents node s n The initial energy of (CH) Indicates the depth of the cluster head CH node, Represents node s n Depth Node Depth The information is obtained during the cluster initialization operation, and the node remaining energy E res (s n ) information is obtained when the data transmission is in progress or completed; Since the initial residual energy of each node in the cluster is the same, when the initial cluster head calculates the Q value table, the weight β2 of the depth reward increases and the weight β1 of the residual energy reward decreases; when the variance of the residual energy in the cluster is greater than the threshold C, the weight β2 of the depth reward decreases and the weight β1 of the residual energy reward increases; the threshold C is set according to the number of nodes in the underwater acoustic network and the initial residual energy of the nodes; where C is a constant; 4) In the entire underwater acoustic communication network, each cluster head CH node is responsible for calculating and updating the Q value table based on the information of other nodes, so as to obtain the best transmission path for data within the cluster to which each cluster head belongs; each non-cluster head node in the cluster is responsible for data transmission and information exchange with the cluster head of the cluster to which it belongs; when any node starts to transmit data, it first determines the priority of the data and classifies the data, so as to select the data transmission method, and the node exchanges signals with the cluster head CH node to which it belongs. The cluster head CH node returns the information to the node after calculation, so as to complete the data transmission between the nodes in the cluster according to the calculation results; The calculation formula for the data level transmitted by the node is: There are two types of data transmission methods: Suppose the node that needs to transmit data is s0, the cluster head CH node of the cluster to which node s0 belongs is CH1, and the cluster heads CH nodes of the other clusters are CH2, CH3, ..., CH K , the other non-cluster head nodes are s1, s2, ..., s n ; When the cluster head CH node calculates an optimal path, it marks the decision nodes participating in the optimal path as ψ=1, indicating that these nodes need to complete the task of transmitting data. When the cluster head CH node receives the ACK data packet containing the remaining energy information returned by the node, the cluster head CH node updates the Q value table and marks this node as ψ=0. In short, ψ=0 means that the node is in standby state, that is, there is no transmission task; ψ=1 means that the node is in working state, that is, there is a transmission task. When the cluster head CH node calculates an optimal path, only non-cluster head nodes with ψ=0 are allowed to participate in the calculation. ① When θ=1, that is, the priority of the transmitted data is higher, the nodes in the cluster perform the following transmission steps: (1) Node s0 sends a data packet containing a data header and its own information to the cluster head node CH1; the data packet contains the priority θ=1 of the transmitted data, the data header, and the remaining energy information of node s0; the data header is the number of the data to be transmitted; (2) When the cluster head node CH1 receives a data packet from node s0, it reads the priority information of the data and updates the Q value table based on the node residual energy information in the data packet; (3) Cluster head node CH1 calculates the optimal path for data transmission within the cluster and returns the signal to node s0. At the same time, cluster head node CH1 transmits the number information of node s1 at the end of the optimal path for data transmission and the data header information to cluster head node CH2 at a shallower depth. At this time, cluster head node CH1 marks the nodes participating in the optimal path for data transmission within the cluster as ψ=1. The signal returned by cluster head node CH1 to node s0 contains the number sequence of nodes along the optimal path for data transmission within the cluster. (4) After receiving the signal returned by the cluster head node CH1, node s0 starts to transmit data along the optimal path within the cluster until the data is transmitted to the end node s1 of the optimal data transmission path within the cluster; Whenever a node transmitting data along the optimal path completes its transmission task, it sends an ACK data packet containing the node's remaining energy information to the cluster head CH1 node; after receiving the ACK data packet, the cluster head CH1 node marks the node as ψ = 0; (5) After receiving the information, the cluster head CH2 node calculates the optimal path of the data in the cluster according to the Q value table, and transmits the signal to the initial node s2 of the cluster connected to the optimal path end node s1 of the previous cluster. At the same time, the cluster head CH2 node transmits the information containing the optimal path end node s3 information and the data header to the shallower cluster head CH2 node; (6) Node s2 sends a receiving signal to node s1, the end of the optimal path for data transmission in the previous cluster. After receiving the data from node s1, node s2 starts to transmit data along the optimal path for data transmission in the current cluster until the data is transmitted to node s3, the end of the optimal path for data transmission in the current cluster. (7) Repeat iterative steps (3) to (6) until there is no shallower cluster head CH node, and finally the end node s of the optimal data transmission path of the last cluster n Transmit data to the Sink node; ② When θ = 0, that is, the priority of the transmitted data is low, the nodes in the cluster perform the following transmission steps: (1) Node s0 sends a data packet containing a data header and its own information to the cluster head node CH1; the data packet contains the priority θ=0 of the transmitted data, the data header, and the remaining energy information of node s0; the data header is the number of the data to be transmitted; (2) When the cluster head node CH1 receives a data packet from node s0, it reads the priority information of the data and updates the Q value table based on the node residual energy information in the data packet; (3) Cluster head node CH1 calculates the optimal path for data transmission within the cluster and returns the signal to node s0. At this time, cluster head node CH1 marks the nodes participating in the optimal path for data transmission within the cluster as ψ=1. After node s0 receives the signal returned by cluster head node CH1, it starts to transmit data along the optimal path within the cluster. Whenever a node transmitting data along the optimal path completes its transmission task, it sends an ACK data packet containing the node's remaining energy information to the cluster head CH1 node; after receiving the ACK data packet, the cluster head CH1 node marks the node as ψ = 0; (4) After the data is transmitted to the end node s1 of the optimal data transmission path within the cluster, node s1 sends a data packet containing the data header and data priority information to the neighboring node s2 of other clusters with a shallower depth; the neighboring node s2 of other clusters excludes the cluster head CH node; (5) After receiving the data packet, the neighboring node s2 forwards the data packet containing the data header and data priority information to the cluster head node CH2 of the cluster; (6) After receiving the data packet, the cluster head CH2 node determines whether to perform the optimal path calculation based on whether there is a transmission demand for higher priority data; (6.1) If there is a need to transmit data with a higher priority, the cluster head CH2 node sends a waiting signal to the neighboring node s2, and the neighboring node s2 forwards this signal to the node s1. The node s1 retains the data and waits until the neighboring node s2 sends a receiving signal; (6.2) If there is no transmission demand for data with higher priority, the cluster head CH2 node calculates the optimal path for data transmission within the cluster according to the Q value table and sends a signal to the neighboring node s2; at this time, the neighboring node s2 sends a receiving signal to the node s1, and then the neighboring node s2 receives the data from the node s1 and starts to transmit data along the optimal path for data transmission within the cluster; The signal returned by cluster head CH2 to node s2 in step (6.2) contains the serial number sequence of nodes along the optimal path for data transmission within the cluster; (7) Repeat iterative steps (4) to (6) until there is no cluster head CH node with a shallower depth, and finally the end node s of the optimal data transmission path of the last cluster n Transmit data to the Sink node; 5) After the node determines the priority of the data, it will select the data transmission method to complete the data transmission; in the process of the cluster head CH node calculating the optimal path, the residual energy of the cluster head CH node will decrease with the increase of time; when the residual energy E res(CH) Below threshold E ave When the initial cluster head CH node loses its computing function and passes its own information and the information of each non-cluster head node to the backup cluster head, and starts to transmit data and data header information. After receiving the information of the initial cluster head, the backup cluster head enables the computing function and broadcasts to notify the nodes in the cluster that the cluster head has changed, and at the same time, starts to look for the backup cluster head; The energy threshold calculation formula for replacing the cluster head CH node is: In the formula, E res(CH) represents the residual energy of the cluster head CH node, E res (s i ) represents node s i The remaining energy, n k Indicates the number of non-cluster head nodes in the current cluster; The factors affecting the selection of the backup cluster head and the replacement of the cluster head CH node and the backup cluster head are as follows: (1) In the process of cluster head CH node calculating the optimal path, the residual energy of cluster head CH node will decrease with the increase of time; In the stage of selecting backup cluster heads, the potential nodes with holes are selected as backup cluster heads in the subsequent stages in combination with the energy change rate of non-cluster head nodes; the cluster head CH node regularly updates the V value of each non-cluster head node according to the energy change rate of the remaining nodes, and selects the non-cluster head node with the smallest V value as the backup cluster head; the V value represents the expected value of each non-cluster head node as a backup cluster head; The calculation formula of V value considering non-cluster head nodes is: In the formula, E init (s n ) represents node s n The initial energy, E res (s n ) represents node s n The remaining energy (2) Calculated by formula (10), when the remaining energy E of the cluster head CH node res(CH) Below threshold E ave When the initial cluster head CH node loses its computing function, and transmits its own information and the information of each non-cluster head node to the backup cluster head, and starts to transmit data and data header information at the same time, and then becomes a non-cluster head node; after the backup cluster head receives the information of the initial cluster head CH node, it enables the computing function; then it becomes the cluster head CH node, and at the same time broadcasts to notify the other nodes in the cluster that the cluster head has changed; (3) When the cluster head CH node replaces the previous cluster head CH node, the cluster head CH node starts to look for a backup cluster head; this cycle is repeated throughout the protocol to dynamically select and replace cluster heads.

Citation Information

Patent Citations

  • Opportunistic routing method for ocean underwater wireless sensing network based on reinforcement learning

    CN112188583A

  • Underwater acoustic network routing method based on information importance and Q learning algorithm

    CN112867089A