Improved wireless sensor network routing algorithm for infinitely balancing ant colony entropy

By introducing the improved ant colony entropy algorithm of the infinite equilibrium strategy into the wireless sensor network, selecting nodes that satisfy the infinite equilibrium entropy and integrating the remaining energy of the nodes, the problem of uneven energy consumption and short life cycle in the sensor network is solved, and the implementation for more efficient data transmission and network stability.

CN118612683AInactive Publication Date: 2024-09-06康国府
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410710541.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing wireless sensor network routing algorithms cannot effectively save energy loss during transmission when the number of sensors is large, the geographical span is large, and the environment is complex, leading to problems such as data loss, excessive node energy consumption, and short network life cycle.

Method used

Introducing the improved ant colony entropy algorithm of the infinite equilibrium strategy disk, selecting the node that satisfies the infinite equilibrium entropy as the next hop through the strategy disk results between nodes, integrating the remaining energy of the node as the routing selection factor, and updating the pheromone from a global perspective , optimize the process of ants finding paths.

Benefits of technology

It significantly improves the convergence speed, energy consumption balance, survival rate and life cycle of the network, reduces the packet loss rate and increases the throughput rate, and extends the service life of the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118612683A
    Figure CN118612683A
Patent Text Reader

Abstract

According to the wireless sensor network routing algorithm improved by the infinite equilibrium ant colony entropy, the node meeting the infinite equilibrium entropy is directly selected as the node of the next hop through the routing table data obtained by adopting the ant colony entropy algorithm according to the countermeasure result between the neighbor nodes, so that the convergence speed of the algorithm is obviously accelerated; the residual energy of the node is used as a parameter to be fused into an infinite equilibrium countermeasure disk model of routing selection, the influence of the energy of the node on routing selection is enhanced in the process of selecting the next hop node, the energy consumption of the whole system is more balanced, the survival rate of the node is improved, and the life cycle of the network is prolonged; the pheromone updating capability of the ants is determined from the global perspective, the pheromone updating capability of the ants is determined by the ants according to the time spent by the data packets from the source node to the target node, and the performance of convergence, node energy consumption balance, network packet loss rate, throughput rate and the like is good.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to a balanced ant colony entropy wireless sensor network routing algorithm, and in particular to an infinite balanced ant colony entropy improved wireless sensor network routing algorithm, belonging to the technical field of wireless sensor network routing. Background Art

[0002] Wireless sensor networks are composed of hundreds of low-energy-loss, low-power, and low-cost sensor nodes, operating in natural environments without human protection, and have limited sensing and data analysis capabilities. With the rapid progress of technologies such as sensors, wireless communications, embedded software development, microelectronics, and large-scale integrated circuits, high-tech technologies such as the Internet of Things, big data, and smart homes are increasingly being combined with wireless sensor networks. As an important part of the Internet of Things, wireless sensor network technology has made great progress and has played a significant role in the fields of environment, land, and medical care with its advantages of low cost, low energy consumption, rapid deployment, and high fault tolerance.

[0003] A wireless sensor network is a wireless network system composed of a large number of small, low-cost sensor nodes placed within the monitoring range in a self-organized form. Each sensor node collaborates to collect and process data within the monitoring range and transmits the processed data to the observer. The wireless sensor network contains multiple technologies, such as wireless communication technology, sensor technology, distributed information processing technology, embedded computing technology, etc. However, due to the complexity of the deployment of the wireless sensor network monitoring environment, it is generally necessary to randomly spread the nodes in the designated area through manual burial, rocket launch, aircraft spreading, etc. The limited battery capacity in the sensor node, the complexity of the network deployment environment, and the arbitrary scattered nodes make it basically impossible to replace or charge the battery. Therefore, the life cycle of a wireless sensor network often depends on the battery capacity of the sensor node.

[0004] Since the data transmission range of each sensor node is limited, each sensor node must cooperate with the nodes within its reach to complete data transmission. This can not only avoid data loss due to long transmission distance, but also prevent sensor nodes from excessive energy loss due to long transmission distance, and maximize the global service life of the network. Therefore, the optimization design of the inter-cluster routing algorithm is of great significance to extending the life cycle of wireless sensor networks and balancing the energy consumption of sensor nodes.

[0005] The problems that need to be solved by the existing wireless sensor network routing algorithm and the key technical difficulties of this application include:

[0006] (1) Wireless sensor networks are limited by factors such as the large number of sensors, the large geographical span, and the harsh geographical conditions. In most cases, it is impossible to manually replace batteries. However, the existing technology does not do a good job of energy saving when designing the network architecture, and cannot save transmission losses. Each sensor node cannot cooperate with the nodes within its reach to complete data transmission, resulting in data loss due to the long transmission distance. The sensor nodes have excessive energy consumption due to the long transmission distance. The inter-cluster routing algorithm cannot play a good role in extending the life cycle of the wireless sensor network and balancing the energy consumption of the sensor nodes, resulting in a short overall service life of the network.

[0007] (2) The prior art lacks an improved ant colony entropy algorithm that introduces an infinite equilibrium countermeasure disk when nodes make routing selections. First, the node cannot directly select the node that satisfies the infinite equilibrium entropy as the next-hop node based on the countermeasure disk results between neighboring nodes, lacks mixed infinite equilibrium entropy, and cannot directly select the node that satisfies the infinite equilibrium entropy as the next-hop node, resulting in a slow convergence of the algorithm; second, the residual energy of the node cannot be incorporated into the infinite equilibrium countermeasure disk model of routing selection as a parameter, that is, the residual energy of the node is lacking as an influencing factor of the next-hop routing. In the process of selecting the next-hop node, the energy of the node has a weak influence on the routing selection, resulting in unbalanced energy consumption of the entire system, low node survival rate, and short network life cycle; third, there is a lack of a global perspective to determine the ability of ants to update pheromones. Ants cannot determine their pheromone update ability based on the time it takes for a data packet to reach the target node from the source node. The algorithm performs poorly in terms of convergence, node energy consumption balance, network packet loss rate, and throughput rate.

[0008] (3) The existing wireless sensor network nodes have limited energy. When the energy of some sensor nodes is over-consumed, the nodes die prematurely, which leads to the failure of the network. The remaining energy of the nodes is not used as a factor in path selection. In the process of ants looking for paths, each time the ants calculate the jump probability based on the pheromone concentration, and then select the next jump by generating random numbers. In this way, more ants will choose the optimal path, resulting in the rapid consumption of energy and death of nodes on the optimal path, which in turn leads to an increase in the packet loss rate of the network. The obtained routing table data simply depends on the jump probability. There is a lack of an infinite equilibrium countermeasure disk model to improve the entropy of the ant colony and the corresponding protocol node and protocol data packet design, resulting in high node energy consumption, short network life, and poor stability and robustness. Summary of the invention

[0009] The present application improves the original ant colony algorithm based on the infinite balanced countermeasure disk. The improved ant colony entropy algorithm selects the node that satisfies the infinite balanced entropy as the next hop node by adopting the routing table data obtained by the ant colony entropy algorithm, and constructs an improved ant colony entropy algorithm that introduces the infinite balanced countermeasure disk when the node performs routing selection. First, the node directly selects the node that satisfies the infinite balanced entropy as the next hop node according to the countermeasure disk result between neighboring nodes, that is, the mixed infinite balanced entropy, and the algorithm convergence speed is significantly accelerated; second, the residual energy of the node is incorporated into the infinite balanced countermeasure disk model of routing selection as a parameter, that is, the residual energy of the node is used as an influencing factor of the next hop routing, and the influence of the node energy on the routing selection is strengthened in the process of selecting the next hop node, so that the energy consumption of the whole system is more balanced, the survival rate of the node is improved, and the life cycle of the network is extended; third, the ability of the ant to update pheromone is determined from a global perspective. The ant determines the pheromone update ability of the ant according to the time it takes for the data packet to reach the target node from the source node. The algorithm performs well in convergence, node energy consumption balance, network packet loss rate and throughput rate.

[0010] In order to achieve the above technical effects, the technical solutions adopted in this application are as follows:

[0011] The wireless sensor network routing algorithm improved by infinite balanced ant colony entropy is based on the infinite balanced countermeasure disk to improve the original ant colony algorithm. The improved ant colony entropy algorithm uses the routing table data obtained by the ant colony entropy algorithm to select the node that meets the infinite balanced entropy as the next hop node, and constructs an improved ant colony entropy algorithm that introduces the infinite balanced countermeasure disk when the node performs routing selection:

[0012] First, the node directly selects the node that satisfies the infinite equilibrium entropy as the next hop node according to the countermeasure disk results between neighboring nodes, that is, the mixed infinite equilibrium entropy, which speeds up the convergence of the algorithm.

[0013] Second, the residual energy of the node is incorporated into the infinite equilibrium strategy model of routing selection as a parameter, that is, the residual energy of the node is used as an influencing factor of the next-hop routing. In the process of selecting the next-hop node, the influence of the node energy on the routing selection is strengthened, making the energy consumption of the entire system more balanced.

[0014] Third, the ability of ants to update pheromones is determined from a global perspective. The time it takes for a data packet to reach the target node from the source node determines the ability of ants to update pheromones.

[0015] Preferably, the infinite equilibrium game disk model of the improved ant colony entropy is:

[0016] 1) The participants of a countermeasure disk are all the neighboring nodes of sensor node m in the network. If sensor m uses neighboring sensor n as a transit node, sensor n recursively applies countermeasures to all its neighboring sensors except node m, and selects the next hop from the neighboring nodes based on the countermeasure disk results.

[0017] 2) Each participant’s pure strategy set is {do not forward, forward};

[0018] 3) Define the cost function for each participant as follows:

[0019]

[0020] Among them, ρ ij is the probability that sensor node i chooses j as the next hop in the algorithm, P is the reachable path between the source sensor and the target sensor node, nodes j and k are the neighbor nodes of node i, j represents all nodes except node j among the neighbor nodes of node i, f is represented by a constant, which represents the global benefit of the network, and the energy consumed by the node to forward a data packet is represented by c, which is set as a constant. Assume that in a game, there are n participants, E k Represents the residual energy of node k, using:

[0021]

[0022] It means that when a neighboring node refuses to forward a data packet, it can only obtain part of the network benefit, thereby motivating nodes with more residual energy to actively participate in the forwarding of data packets.

[0023] Preferably, the improved ant colony entropy algorithm uses the residual energy of the node as a factor in path selection, based on the fact that each sensor node in the wireless network is rational, that is, when each sensor faces the need to transmit data, it minimizes its own energy loss and maximizes the global network benefit, thus converting the problem into an infinite equilibrium strategy disk problem.

[0024] Preferably, the protocol node design: NS2 is used to establish a network communication model, which has a certain number of network nodes. Each node is represented by a C++ class represented by an Agent class. The Agent class of each node provides it with all the functions required to run the network protocol:

[0025] The node ID is a unique symbol that identifies the node itself. The transmission of data packets in the network is based on this. This unique identifier is also used to deploy wireless sensor nodes in the environment.

[0026] Node Routing Table Vector <routertable>Stores the available adjacent routes of the node. This table is needed when the current node selects a path node. The node routing table contains the sensor number, pheromone size and remaining energy parameters.

[0027] The node's remaining energy NodeLife is the life cycle of the node. When the node selects the next-hop routing node, an infinite balance strategy disk model is introduced. The node's remaining energy is used as a parameter to introduce the infinite balance strategy disk model to prevent some sensors from being unable to continue to be used due to too high energy loss rate;

[0028] The packetSize field is convenient for a node to set the size of the data packet it sends;

[0029] Preferably, the maximum hop count TTLMax of a data packet prevents the data packet from being transmitted endlessly in the network and from developing into discarded data that is transmitted infinitely within the network. When the data packet and the detection packet reach the critical value of the maximum hop count, the node will recycle the data packet and the detection packet.

[0030] The sendNumb field, the number of packets sent by the node, and the backNumb field, the number of packets received by the node, are used to calculate the packet loss rate of the network by recording the number of packets sent by the source node and received by the target node.

[0031] The detection packet forwarding delay detectDelay is used to set the delay time of the detection packet and is set to be much shorter than the data packet forwarding delay time;

[0032] The maximum transmission time of the data packet that the source node can accept, Sendovertime, is used to determine the problem of data packet loss during transmission. If the data packet transmission time has exceeded the set maximum transmission time, but the source node still has not received the data packet, the data packet information is set as a lost packet and a new data packet needs to be resent;

[0033] The detection packet cycle time Senddetectovertime is used to determine if the detection packet is lost during the detection process;

[0034] The detection packet forwarding timer senddetect_timer_ cooperates with the detection packet forwarding delay time to manage and control the forwarding time of the entire detection packet;

[0035] The source node sends a data packet timer send_timer_ to match the maximum data packet transmission time acceptable to the source node, and control the frequency of the source node sending data packets in the entire system;

[0036] The pheromone volatilize_timer is used to periodically volatilize the pheromone concentration on the paths in the network, and to reduce the pheromone concentration on the invalid paths, thus avoiding the unlimited increase of the pheromone concentration in the entire network.

[0037] Preferably, the node routing table is a two-dimensional array, wherein ID is the ID of the reachable next-hop node, Pheromone is the pheromone concentration on the path from the node to the next-hop node in the table entry, and NodeLife is the remaining energy of the next-hop node in the table entry.

[0038] Preferably, the protocol data packet is designed as follows: the protocol data packet is transmitted between sensor nodes in the network, and the node routing table is updated by transmitting data. During the forwarding process, the sensor node updates its own routing table according to the data in the data packet, and then forwards according to the data in the node and the data packet. The data packet structure refers to the Header structure of the data packet. Through the Header structure, the protocol is correctly executed;

[0039] The source sensor number SID is the number of the source sensor that the data packet is transmitted from. After the data packet is transmitted to the target sensor, it uses the identifier to find the source sensor and returns.

[0040] The target sensor number DID is the target sensor number of the data packet transmission. Each node passed through during the transmission process determines whether it is the target sensor node by matching with the DID field; the sensor number NodeSend of the transmitted data is the sensor node number of the transmitted data packet, which provides support for the routing table change of the next sensor passing through;

[0041] The packet loss TTL is the number of times a packet is transmitted. By judging whether the value represented by this field exceeds a certain value, it is judged whether the packet has expired. If it has expired, forwarding is abandoned;

[0042] The packet type identifier Detect is an identifier of the data packet type. This field can be used to mark the type of packet being transmitted, so that the protocol node can distinguish different packets and adopt corresponding solutions according to the packet type. Detect=0 indicates a data packet; Detect=1 indicates a detection packet; Detect=2 indicates a detection reply packet; Detect=3 indicates a pheromone detection packet;

[0043] The node number NodeNext of the next path stores the node number of the next path selected by the current sensor node through the routing selection strategy of the ant colony entropy algorithm. If the number of the sensor receiving the data packet is different from the NodeNext number, the data packet can be abandoned.

[0044] Preferably, the pheromone update capability is calculated globally: the ant's pheromone update capability is calculated from a global perspective, so that the ant can dynamically form its own pheromone update capability when searching for a path from a source node to a target node. After the data packet arrives at the target node, the ant determines the ant's pheromone update capability based on the time it takes for the data packet to reach the target node from the source node. The formula is:

[0045]

[0046] Among them, parameter A is defined as a constant, arriveTime is the time when the data packet arrives at the target node, startTime is the time when the target node sends the data packet, and the ant's pheromone update ability is inversely proportional to the data packet transmission delay. The smaller the transmission delay of the data packet on a certain path, the greater the ant's ability to update pheromones when returning along the original path. Conversely, the greater the transmission delay, the smaller the ant's ability to update pheromones on the original path.

[0047] The pheromone updating ability of the ants returning along the optimal path is better than that of the ants returning along other paths. The pheromone concentration on the path with shorter data packet transmission delay increases faster than that on other paths, that is, the information concentration on the path is getting higher and higher, and the distance from other paths is increasing. When the pheromone concentration on the optimal path increases significantly, the optimal path is more likely to be selected by the subsequent path-finding ants, and finally the algorithm converges to the optimal path;

[0048] It is stipulated that ants can only update the pheromone concentration on the path when they return along the original route after reaching the target node; at the same time, it is stipulated that a part of the pheromone concentration on the path will evaporate periodically to avoid the uncontrolled growth of the pheromone concentration on the path and reduce the packet loss rate.

[0049] Preferably, the introduction of energy factors in the infinite equilibrium strategy disk model:

[0050] There are n finite participants in the game board, G = {S1, ..., S n ; u1,…,u n }, for any participant i, if in its set of all selectable strategies S, the pure strategy s i The number of is not infinite, there is infinite equilibrium entropy, the participants are the adjacent nodes of node i, the number of participants is not infinite, the pure strategy set of the participants is {do not forward, forward}, that is, the pure strategy is also finite, and there is infinite equilibrium entropy in the infinite equilibrium strategy disk model of the improved ant colony entropy algorithm;

[0051] The infinite equilibrium entropy solution in the infinite equilibrium game disk model of the improved ant colony entropy algorithm is as follows:

[0052] p=(p1 * ,…,p i * ,…,p n * ) is a mixed strategy set. If this mixed strategy set is adopted, the pure strategy set s=(s1,s2,...,S n ) is adopted with a probability of:

[0053]

[0054] That is, the mixed strategy p of each ant k Give it pure strategies k ∈S k , the product of the probabilities of, the payoff function of participant i is u i (s) = u i (s1, ..., s n ), the expected return of this mixed strategy combination to ant k is:

[0055] v k (p) = ∑ s∈S p(s)u k (s) Formula 5

[0056] The pure strategy set of each participant is {forward, do not forward}, denoted by S k ={s k1 ,s k2 }, k∈K, let the probability p k1 To choose pure strategy s k1 , then select s k2 The probability is 1-p k1 According to the income function formula 1, we get:

[0057]

[0058] ρ j is the probability that the sensor node inside the algorithm chooses j as the next hop. Nodes j and k are the neighbor nodes of node i. j represents all nodes except node j among the neighbor nodes of node i. f is represented by a constant, which represents the global benefit of the network. The energy consumed by a node to forward a data packet is represented by c, which is set as a constant. α k represents the network benefit obtained when an adjacent node refuses to forward a data packet. According to Formula 6, the expected benefit of the participant is:

[0059]

[0060] Then, according to have:

[0061]

[0062] The format of the converted equations is:

[0063]

[0064] Adding all the rows of equation 9 gives:

[0065]

[0066] make Then there is Substituting into formula 10, we get:

[0067]

[0068] The solution is:

[0069]

[0070] The format for converting to the solution of the system of equations is:

[0071]

[0072] According to formula 13, the probability p of each node k participating in the countermeasure disk choosing the {forward} strategy is calculated k1 ,When a data packet is transmitted in the network, each node uses the mixed infinite balanced entropy of the ant routing strategy disk to select the next hop, that is, the node with the maximum forwarding probability is selected as the next hop;

[0073] In formula 13:

[0074]

[0075] There are n nodes participating in the countermeasure disk, E k Represents the residual energy of node k. The residual energy of the node is integrated into the infinite equilibrium countermeasure disk model of routing selection as a parameter, that is, the residual energy of the node will be used as an influencing factor for the next-hop routing. In the early stage of network operation, the energy of all nodes in the wireless sensor network is sufficient, and the α values ​​of the nodes participating in the countermeasure disk are not much different. The residual energy of the node has not yet affected the selection of the next-hop node, and it still depends on the forwarding probability p calculated by the pheromone size and path length. j After multiple rounds of transmission, the energy loss of all intermediate nodes on the optimal path is a large part, and the a between the nodes participating in the countermeasure disk j The difference in values ​​is obvious, and the residual energy of the node begins to affect the selection of the next-hop node. By designing the cost function, when an adjacent node refuses to forward a data packet, it can only obtain part of the network benefit, which can motivate nodes with more residual energy to actively participate in the forwarding of data packets. When performing routing selection, avoid choosing paths with nodes with less residual energy, thereby extending the life cycle of the entire network.

[0076] Compared with the prior art, the innovations and advantages of this application are:

[0077] (1) The present application improves the original ant colony algorithm based on the infinite balance countermeasure disk. The improved ant colony entropy algorithm adopts the routing table data obtained by the ant colony entropy algorithm to select the node that satisfies the infinite balance entropy as the next hop node, and constructs an improved ant colony entropy algorithm that introduces the infinite balance countermeasure disk when the node performs routing selection. First, the node directly selects the node that satisfies the infinite balance entropy as the next hop node according to the countermeasure disk results between neighboring nodes, that is, the mixed infinite balance entropy, and the algorithm convergence speed is significantly accelerated; second, the residual energy of the node is incorporated into the infinite balance countermeasure disk model of routing selection as a parameter, that is, the residual energy of the node is used as an influencing factor of the next hop routing, and the influence of the node energy on the routing selection is strengthened in the process of selecting the next hop node, so that the energy consumption of the whole system is more balanced, the survival rate of the node is improved, and the life cycle of the network is extended; third, the ability of the ant to update pheromone is determined from a global perspective. The ant determines the pheromone update ability of the ant according to the time it takes for the data packet to reach the target node from the source node. The algorithm performs well in terms of convergence, node energy consumption balance, network packet loss rate and throughput rate.

[0078] (2) The improved ant colony entropy algorithm of this application uses the residual energy of the node as a factor in path selection. This is based on the fact that each sensor node in the wireless network is rational, that is, when each sensor faces the need to transmit data, it minimizes its own energy loss and maximizes the overall network efficiency, thus transforming the problem into an infinite equilibrium countermeasure disk problem. An infinite equilibrium countermeasure disk model of improved ant colony entropy is proposed, and corresponding protocol nodes and protocol data packets are designed to avoid the situation where excessive energy consumption of some sensor nodes leads to premature death of nodes, thereby causing network failure. The packet loss rate of the improved ant colony entropy algorithm is significantly lower than that of the original ant colony entropy algorithm, while the throughput rate is better than that of the original ant colony algorithm. Overall, the effect of the improved ant colony entropy algorithm is significantly better than that of the original ant colony algorithm.

[0079] (3) In the process of ants searching for paths, the existing technology allows ants to calculate the jump probability through pheromone concentration each time, and then select the next hop by generating random numbers. Then more ants will choose the optimal path, resulting in the rapid consumption of node energy and death on the optimal path, which in turn leads to an increase in the packet loss rate of the network. This application considers the advantages and disadvantages of the original ant colony algorithm and improves the original ant colony algorithm based on the infinite balance countermeasure disk. The improved ant colony entropy algorithm uses the routing table data obtained by the ant colony entropy algorithm to select the node that meets the infinite balance entropy as the next hop node, rather than simply relying on the jump probability. It achieves the energy saving goal well, and improves the overall service life of the network by saving the energy lost in transmission. It proposes a global calculation based on pheromone update capability, introduces the energy factor in the infinite balance countermeasure disk model, and has low node energy consumption, long network life, and good stability and robustness. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 It is a schematic diagram of the participants in the infinite equilibrium ant colony entropy strategy.

[0081] Figure 2 It is a schematic diagram of the routing table structure designed for the protocol node.

[0082] Figure 3 This is a schematic diagram of the data packet transmission delay comparison experiment.

[0083] Figure 4 This is a schematic diagram of the node residual energy analysis results for scenario 2.

[0084] Figure 5 This is a comparison chart of packet loss rates in experimental simulation scenario 2.

[0085] Figure 6 This is a throughput comparison chart of experimental simulation scenario 2. DETAILED DESCRIPTION

[0086] The following, in conjunction with the accompanying drawings, further describes the technical solution of the wireless sensor network routing algorithm improved by infinite balanced ant colony entropy provided by the present application, so that those skilled in the art can better understand the present application and implement it.

[0087] Wireless sensor networks are composed of hundreds of low-energy-loss, low-power, and low-cost sensor nodes, operating in natural environments without human protection, with limited sensing and data analysis capabilities. Due to the large number of sensors, the large geographical span of placement, and the harsh geographical conditions, it is impossible to manually replace batteries in most cases. Therefore, energy saving is the primary goal when designing the network architecture, and the overall service life of the network is increased by saving energy lost in transmission.

[0088] The ant colony algorithm simulates the process of ants starting from the ant nest to find food and eventually finding the shortest path from the ant nest to the food. Considering the limited energy of sensor nodes in the network, which leads to node death or invalidity, and the frequent changes in network structure, the traditional ant colony algorithm has aspects that can be improved.

[0089] This application constructs an improved ant colony entropy algorithm that introduces an infinite balancing strategy disk when nodes perform routing selection. Compared with the original ant colony algorithm, the optimized ant colony entropy algorithm has the following advantages:

[0090] (1) The node directly selects the node that satisfies the infinite equilibrium entropy as the next hop node based on the countermeasure disk results between neighboring nodes, that is, the mixed infinite equilibrium entropy, so that the algorithm converges faster;

[0091] (2) The residual energy of the node is incorporated into the infinite equilibrium strategy model of routing selection as a parameter, that is, the residual energy of the node is used as an influencing factor of the next-hop routing. In the process of selecting the next-hop node, the influence of the node energy on the routing selection is strengthened, making the energy consumption of the entire system more balanced, improving the survival rate of the node, and extending the life cycle of the network;

[0092] (3) The ability of ants to update pheromones is determined from a global perspective. The ants determine their pheromone updating ability based on the time it takes for a data packet to reach the target node from the source node.

[0093] 1. Overview of Algorithm Design

[0094] Since sensor nodes in wireless sensor networks are generally powered by micro batteries, and due to the complexity of the monitoring environment and the randomness of the scattered nodes, it is basically impossible to replace or charge the batteries, so the node energy is limited. When the energy of some sensor nodes is over-consumed, the nodes die prematurely, which leads to the failure of the network. Therefore, the improved ant colony entropy algorithm uses the remaining energy of the node as a factor in path selection. Based on the fact that each sensor node in the wireless network is rational, that is, each sensor, when facing the need to transmit data, minimizes its own energy loss and maximizes the global benefits of the network, and transforms the problem into an infinite equilibrium countermeasure disk problem.

[0095] In the process of ants searching for paths, if the ants are allowed to calculate the jump probability by pheromone concentration each time and then select the next hop by generating random numbers, more ants will choose the optimal path, resulting in the rapid consumption of node energy and death on the optimal path, which in turn leads to an increase in the packet loss rate of the network. This application considers the advantages and disadvantages of the original ant colony algorithm and improves the original ant colony algorithm based on the infinite equilibrium countermeasure disk. The improved ant colony entropy algorithm uses the routing table data obtained by the ant colony entropy algorithm to select the node that meets the infinite equilibrium entropy as the next hop node, rather than simply relying on the jump probability.

[0096] Improved infinite equilibrium game disk model of ant colony entropy:

[0097] (1) The participants of a countermeasure disk are all the neighboring nodes of sensor node m in the network. If sensor m uses neighboring sensor n as a transit node, sensor n recursively applies countermeasures to all its neighboring sensors except node m, and selects the next hop from the neighboring nodes based on the countermeasure disk results. Figure 1 , node 4 needs to select a node from the neighbor node set {s, 2, 3, 5, 6} as the next hop node. Excluding node s, the set of participants in this countermeasure disk is {2, 3, 5, 6};

[0098] (2) The pure strategy set of each participant is {do not forward, forward};

[0099] (3) Define the cost function of each participant as follows:

[0100]

[0101] Among them, ρ ij is the probability that sensor node i chooses j as the next hop in the algorithm, P is the reachable path between the source sensor and the target sensor node, nodes j and k are the neighbor nodes of node i, j represents all nodes except node j among the neighbor nodes of node i, f is represented by a constant, which represents the global benefit of the network, and the energy consumed by the node to forward a data packet is represented by c, which is set as a constant. Assume that in a game, there are n participants, E k Represents the residual energy of node k, using:

[0102]

[0103] It means that when a neighboring node refuses to forward a data packet, it can only obtain part of the network benefit, thereby motivating nodes with more residual energy to actively participate in the forwarding of data packets.

[0104] 2. Protocol Data Structure

[0105] (I) Protocol Node Design

[0106] NS2 is used to establish a network communication model. The model has a certain number of network nodes. Each node is represented by a C++ class called Agent. The Agent class of each node provides it with all the functions required to run the network protocol. The design is as follows:

[0107] The node ID is a unique symbol that identifies the node itself. The transmission of data packets in the network is based on this. This unique identifier is also used to deploy wireless sensor nodes in the environment.

[0108] Node Routing Table Vector <routertable>Stores the available adjacent routes of the node. This table is needed when the current node selects a path node. The node routing table contains the sensor number, pheromone size and remaining energy parameters.

[0109] The node's remaining energy NodeLife is the life cycle of the node. When the node selects the next-hop routing node, an infinite balance strategy disk model is introduced. The node's remaining energy is used as a parameter to introduce the infinite balance strategy disk model to prevent some sensors from being unable to continue to be used due to too high energy loss rate;

[0110] The packetSize field is convenient for a node to set the size of the data packet it sends;

[0111] The maximum number of hops for data packets, TTLMax, prevents data packets from being transmitted endlessly in the network and from developing into discarded data that is transmitted infinitely within the network. When data packets and probe packets reach the critical value of the maximum number of hops, the node will recycle the data packets and probe packets.

[0112] The sendNumb field, the number of packets sent by the node, and the backNumb field, the number of packets received by the node, calculate the packet loss rate of the network and verify the performance advantages and disadvantages of the algorithm by recording the number of packets sent by the source node and received by the target node;

[0113] The detection packet forwarding delay detectDelay is used to set the delay time of the detection packet and is set to be much shorter than the data packet forwarding delay time;

[0114] The maximum transmission time of the data packet that the source node can accept, Sendovertime, is used to determine the problem of data packet loss during transmission. If the data packet transmission time has exceeded the set maximum transmission time, but the source node still has not received the data packet, the data packet information is set as a lost packet and a new data packet needs to be resent;

[0115] The detection packet cycle time Senddetectovertime is used to determine if the detection packet is lost during the detection process;

[0116] The detection packet forwarding timer senddetect_timer_ cooperates with the detection packet forwarding delay time to manage and control the forwarding time of the entire detection packet;

[0117] The source node sends a data packet timer send_timer_ to match the maximum data packet transmission time acceptable to the source node, and control the frequency of the source node sending data packets in the entire system;

[0118] The pheromone volatilize_timer is used to periodically volatilize the pheromone concentration on the paths in the network, and to reduce the pheromone concentration on the invalid paths, thus avoiding the unlimited increase of the pheromone concentration in the entire network.

[0119] The node routing table is a two-dimensional array with the following structure: Figure 2 As shown in the figure, ID is the ID of the reachable next-hop node, Pheromone is the pheromone concentration on the path from the node to the next-hop node in the table, and NodeLife is the remaining energy of the next-hop node in the table.

[0120] (II) Protocol Data Packet Design

[0121] The data packets of the protocol are transmitted between sensor nodes in the network, and the node routing table is updated by transmitting data. During the forwarding process, the sensor node updates its own routing table according to the data in the data packet, and then forwards according to the data in the node and the data packet. The data packet structure refers to the header structure of the data packet. Through the header structure, the protocol is correctly executed.

[0122] The source sensor number SID is the number of the source sensor that the data packet is transmitted from. After the data packet is transmitted to the target sensor, it uses the identifier to find the source sensor and returns.

[0123] The target sensor number DID is the target sensor number of the data packet transmission. Each node passed through during the transmission process matches the DID field to determine whether it is the target sensor node;

[0124] The sensor number of the transmitted data NodeSend is the sensor node number of the transmitted data packet, which provides support for the routing table change of the next sensor passing through;

[0125] The packet loss TTL is the number of times a packet is transmitted. By judging whether the value represented by this field exceeds a certain value, it is judged whether the packet has expired. If it has expired, forwarding is abandoned;

[0126] The packet type identifier Detect is an identifier of the data packet type. This field can be used to mark the type of packet being transmitted, so that the protocol node can distinguish different packets and adopt corresponding solutions according to the packet type. Detect=0 indicates a data packet; Detect=1 indicates a detection packet; Detect=2 indicates a detection reply packet; Detect=3 indicates a pheromone detection packet;

[0127] The node number of the next path NodeNext stores the node number of the next path selected by the current sensor node through the routing selection strategy of the ant colony entropy algorithm. If the number of the sensor receiving the data packet is different from the NodeNext number, the data packet can be abandoned;

[0128] NodeThrough is the number set of all nodes passed through, which stores the numbers of each sensor node that the data packet passes through during transmission. When the data packet is transmitted to the final node, the data in the NodeThrough field constitutes the transmission path of the packet when it returns, and also serves as the basis for the final node to modify the pheromone release rate for the data packet;

[0129] The remaining energy of the transmission node NodeLife is the remaining energy of the current transmission node, which serves as the basis for the next node in the way to change the remaining energy of the routing table node;

[0130] The return packet flag bit BackSign marks whether the data packet has reached the target node and returned. BackSign = 0 indicates a non-return packet, i.e., a data packet or a detection packet; BackSign = 0 indicates a return packet;

[0131] The packet sending time departTime records the time point when the packet is sent from the source node. It is used to calculate the packet transmission time in the network in combination with the time when the packet arrives at the target node, and provides data support for making changes to the global pheromone update amount.

[0132] Pheromone update amount PhrAdd: When the data packet is transmitted to the final node, the final node can change the PhrAdd variable through the relevant information recorded in the data packet. In the return path, the ant will find the next hop node according to the node sequence of the path, and use the pheromone update amount to update the pheromone concentration of the path, so that the pheromone concentration can be accumulated faster on the optimal path.

[0133] (III) Detailed description of algorithm optimization design

[0134] (1) Based on global computational pheromone update capability

[0135] The ability of ants to update pheromones is calculated from a global perspective, so that the ants can dynamically form their own pheromone update ability when searching for the path from the source node to the target node. After the data packet arrives at the target node, the ant determines the ant's pheromone update ability based on the time it takes for the data packet to reach the target node from the source node. The formula is:

[0136]

[0137] Among them, parameter A is defined as a constant, arriveTime is the time when the data packet arrives at the target node, startTime is the time when the target node sends the data packet, and the ant's pheromone update ability is inversely proportional to the data packet transmission delay. The smaller the transmission delay of the data packet on a certain path, the greater the ant's ability to update pheromones when returning along the original path. Conversely, the greater the transmission delay, the smaller the ant's ability to update pheromones on the original path.

[0138] The pheromone updating ability of the ants returning along the optimal path is better than that of the ants returning along other paths. The pheromone concentration on the path with shorter data packet transmission delay increases faster than that on other paths, that is, the information concentration on the path becomes higher and higher, and the distance from other paths increases. When the pheromone concentration on the optimal path increases significantly, the optimal path is selected by the subsequent path-finding ants with a greater probability, and finally the algorithm converges to the optimal path.

[0139] If the ants update the pheromone concentration on the path when they are searching for a path, those ants that fail to find a path and do not reach the target node will update the pheromone concentration on the invalid path. Therefore, it is stipulated that the ants can only update the pheromone concentration on the path when they return along the original route after reaching the target node, which effectively avoids the above situation.

[0140] At the same time, it is stipulated that a part of the pheromone concentration on the path is volatilized periodically to avoid the uncontrolled growth of the pheromone concentration on the path and reduce the packet loss rate. When the pheromone concentration on the path increases too high, the path will be selected as the transmission path by more and more ants with a greater probability, resulting in an increasingly higher packet loss rate.

[0141] (2) Introduction of energy factors in the infinite equilibrium game disk model

[0142] In a standard game, there are n finite players, G = {S1, ..., S n ; u1,…,u n }, for any participant i, if in its set of all selectable strategies S, the pure strategy s i The number of is not infinite, there must be infinite equilibrium entropy in this game plan. The participants are the adjacent nodes of node i. The number of participants is not infinite, and the pure strategy set of the participants is {do not forward, forward}, that is, the pure strategy is also finite. There is infinite equilibrium entropy in the infinite equilibrium game plan model of the improved ant colony entropy algorithm.

[0143] The infinite equilibrium entropy solution in the infinite equilibrium game disk model of the improved ant colony entropy algorithm is as follows:

[0144] p=(p1 * , ..., p i * , ..., p n * ) is a mixed strategy set. If this mixed strategy set is adopted, the pure strategy set s=(s1,s2,...,s n ) is adopted with a probability of:

[0145]

[0146] That is, the mixed strategy p of each ant k Give it pure strategies k ∈S k , the product of the probabilities of, the payoff function of participant i is u i (s) = u i (s1, ..., s n ), the expected return of this mixed strategy combination to ant k is:

[0147] v k (p) = ∑ s∈S p(s)u k (s) Formula 5

[0148] The pure strategy set of each participant is {forward, do not forward}, denoted by S k ={s k1 ,s k2 }, k∈K, let the probability p k1 To choose pure strategy s k1 , then select s k2 The probability is 1-p k1 According to the income function formula 1, we get:

[0149]

[0150] ρ j is the probability that the sensor node inside the algorithm chooses j as the next hop. Nodes j and k are the neighbor nodes of node i. j represents all nodes except node j among the neighbor nodes of node i. f is represented by a constant, which represents the global benefit of the network. The energy consumed by a node to forward a data packet is represented by c, which is set as a constant. α k represents the network benefit obtained when an adjacent node refuses to forward a data packet. According to Formula 6, the expected benefit of the participant is:

[0151]

[0152] Then, according to have:

[0153]

[0154] The format of the converted equations is:

[0155]

[0156] Adding all the rows of equation 9 gives:

[0157]

[0158] make Then there is Substituting into formula 10, we get:

[0159]

[0160] The solution is:

[0161]

[0162] The format for converting to the solution of the system of equations is:

[0163]

[0164] According to formula 13, the probability p of each node k participating in the countermeasure disk choosing the {forward} strategy is calculated k1 ,When a data packet is transmitted in the network, each node uses the mixed infinite balanced entropy of the ant routing strategy disk to select the next hop, that is, the node with the maximum forwarding probability is selected as the next hop;

[0165] In formula 13:

[0166]

[0167] There are n nodes participating in the countermeasure disk, E k Represents the residual energy of node k. The residual energy of the node is integrated into the infinite equilibrium countermeasure disk model of routing selection as a parameter, that is, the residual energy of the node will be used as an influencing factor for the next-hop routing. In the early stage of network operation, the energy of all nodes in the wireless sensor network is sufficient, and the α values ​​of the nodes participating in the countermeasure disk are not much different, so the residual energy of the node has not yet affected the selection of the next-hop node, and it still depends on the forwarding probability p calculated by the pheromone size and path length. j After multiple rounds of transmission, the energy loss of all intermediate nodes on the optimal path is a large part, and the a between the nodes participating in the countermeasure disk j The value difference is obvious, so the residual energy of the node begins to affect the selection of the next-hop node. By designing the cost function, when an adjacent node refuses to forward a data packet, it can only obtain part of the network benefit, which can motivate the nodes with more residual energy to actively participate in the forwarding of data packets. When performing routing selection, it can avoid selecting paths with nodes with less residual energy, and use nodes with more residual energy to protect those nodes, effectively extending the life cycle of the entire network.

[0168] 3. Experiment and results analysis

[0169] (I) Convergence analysis

[0170] The time it takes for a data packet to be sent from the source node to the destination node is used as the performance evaluation criterion. The optimal path should be the path with the least time overhead. Since the ant colony entropy algorithm itself has a certain degree of randomness in routing, it cannot guarantee that all data packets will be forwarded along the optimal path in the later stages of the experiment. It can only guarantee that more and more data packets will be forwarded along the optimal path, and that the transmission delay of most data packets is relatively short. The average transmission delay of all data packets in a single experiment is taken as the result of the experiment. The convergence of the algorithm is evaluated by comparing the average value. The experiment uses simulation scenario one with a simulation time of 1000s. The source node sends a data packet every 0.05s. 20 groups of experiments are conducted. The experimental results are as follows: Figure 3 shown.

[0171] like Figure 3 As shown in the figure, in 20 experiments, the delay curve of the data packets of the improved algorithm is basically lower than that of the original algorithm. Compared with the data packets in the original ant colony algorithm, the data packets in the improved ant colony entropy algorithm start to be forwarded along the optimal path earlier and more, making the average transmission delay of the data packets obtained in the end shorter. Therefore, it can be concluded that the convergence performance of the improved ant colony entropy algorithm is better than that of the original ant colony algorithm.

[0172] (II) Node residual energy analysis

[0173] Node energy consumption can show the change of the remaining energy of nodes in the wireless sensor network and reflect whether the energy consumption of nodes in the network is balanced. The experiment uses simulation scenario 2. The communication range of each sensor node is 250, the initial energy value of all nodes is 200, and the node consumes 0.1 energy for each data packet transmission or forwarding. The node does not consume energy when receiving a data packet. The simulation time is 100s, and the source node sends a data packet every 0.05s. The experimental results show the capacity loss of each node in the network during data transmission.

[0174] According to the curve of the residual energy change of each node in the original ant colony algorithm simulation experiment, the energy loss of each node in the original ant colony algorithm simulation experiment is relatively large, and the residual energy distribution of each node is not uniform. During the operation, the sending node will always choose the shortest path to the target node with a greater probability, so the energy consumption of the node in the shortest path is always greater than that of the nodes in other paths. According to the energy changes of each node, it is found that the energy changes of node 1, node 8, and node 12 are much greater than those of other nodes, indicating that in the original ant colony algorithm, most data packets are transmitted along the path n0->n1->n5->n6->n8->n12->n13.

[0175] In the simulation experiment of the improved ant colony entropy algorithm based on the infinite balanced countermeasure disk model with the node residual energy, the curves of the residual energy of each node are obviously different. After the experiment, the energy of most nodes is between 40 and 80. The final residual energy of nodes 7, 9, 10, and 11 is also between 40 and 80, indicating that some data packets also choose the path nO->n1->n5->n7->n8->n12->n13 and path n0->n1->n4->n9->n10->n11->n13, which are second only to the optimal path, for transmission.

[0176] From the perspective of node energy balance, the standard deviation of the final residual energy of each node in the original ant colony algorithm and the improved ant colony entropy algorithm is calculated respectively, as follows: Figure 4 As shown in the figure. The standard deviation of the final residual energy of each node in the original ant colony algorithm is greater than that in the improved ant colony entropy algorithm. In statistics, the standard deviation is used to describe the size of sample fluctuations. Samples with larger standard deviations have larger fluctuations. Therefore, the final residual energy of each node in the improved ant colony entropy algorithm is relatively balanced, which further illustrates that the residual energy factor is introduced into the infinite equilibrium countermeasure disk model of the improved ant colony entropy algorithm, which effectively balances the load of each node.

[0177] (III) Packet loss rate and throughput rate analysis

[0178] Compare and analyze the packet loss rate and throughput rate of the network in the simulation experiment. The experiment adopts simulation scenario 2, and the simulation time is extended to 200s. The experimental results show the changes in the packet loss rate and throughput rate in the network during data transmission, such as Figure 5 shown.

[0179] analyze Figure 5 From the packet loss rate curve of the original ant colony algorithm, we can see that the pheromone has a weak influence on the selection of the next hop node for the data packet at the beginning, the randomness is strong, and the packet loss rate is high. As the pheromone difference becomes larger and larger, the influence on the selection of the next hop node for the data packet becomes larger and larger, the data packet is no longer blindly forwarded, and the packet loss rate begins to decrease. When it slowly converges to the optimal path, the packet loss rate is in a stable state. After running for about 120s, due to the limited node energy, the node loss due to energy exhaustion begins to appear on the optimal path, causing the packet loss rate to rise rapidly.

[0180] Depend on Figure 5 From the packet loss rate curve of the improved ant colony entropy algorithm, we can see that since the residual energy of each node is not much different at the beginning, the influence of pheromone and node residual energy on the selection of the next hop node of the data packet is weak. As the data packet is sent, the difference in pheromone and residual energy of each node participating in the countermeasure disk becomes larger, the data packet converges better to the optimal path, and the packet loss rate drops rapidly. Due to the introduction of node residual energy in the infinite balanced countermeasure disk model, the node energy consumption is balanced, and the packet loss rate will slowly rise around 140s, because the nodes participating in the countermeasure disk also begin to fail due to energy exhaustion.

[0181] Depend on Figure 6 From the throughput curve of the original ant colony algorithm, it can be seen that as the pheromone difference becomes larger and larger, the randomness of data packet forwarding becomes smaller and smaller, and the throughput increases accordingly. As it converges to the optimal path, the throughput also remains stable. Similarly, at about 120s, the throughput drops rapidly due to the failure of nodes on the optimal path. According to the throughput curve of the improved ant colony entropy algorithm, it can be seen that pheromones and node residual energy have a weak influence on the selection of the next hop node of the data packet at the beginning, but as the data packet is sent, the data packet selects the next hop node through the calculation result of infinite equilibrium entropy, better converges to the optimal path, and the throughput increases steadily. Similarly, the throughput will slowly drop around 140s, which is also caused by the failure of the nodes participating in the countermeasure disk. The packet loss rate of the improved ant colony entropy algorithm is significantly lower than that of the original ant colony entropy algorithm, while the throughput is better than that of the original ant colony algorithm. Overall, the effect of the improved ant colony entropy algorithm is much better than that of the original ant colony algorithm.

[0182] Therefore, the improved ant colony entropy algorithm is significantly better than the original ant colony algorithm in terms of convergence, node energy consumption balance, network packet loss rate and throughput rate.< / routertable> < / routertable>

Claims

1. The wireless sensor network routing algorithm improved by infinite balanced ant colony entropy is characterized by: The original ant colony algorithm is improved based on the infinite balance countermeasure disk. The improved ant colony entropy algorithm uses the routing table data obtained by the ant colony entropy algorithm to select the node that meets the infinite balance entropy as the next hop node, and constructs an improved ant colony entropy algorithm that introduces the infinite balance countermeasure disk when the node performs routing selection: First, the node directly selects the node that satisfies the infinite equilibrium entropy as the next hop node according to the countermeasure disk results between neighboring nodes, that is, the mixed infinite equilibrium entropy, which speeds up the convergence of the algorithm. Second, the residual energy of the node is incorporated into the infinite equilibrium strategy model of routing selection as a parameter, that is, the residual energy of the node is used as an influencing factor of the next-hop routing. In the process of selecting the next-hop node, the influence of the node energy on the routing selection is strengthened, making the energy consumption of the entire system more balanced. Third, the ability of ants to update pheromones is determined from a global perspective. The time it takes for a data packet to reach the target node from the source node determines the ability of ants to update pheromones.

2. According to claim 1, the wireless sensor network routing algorithm improved by infinite balanced ant colony entropy is characterized in that: Improved infinite equilibrium game disk model of ant colony entropy: 1) The participants of a countermeasure disk are all the neighboring nodes of sensor node m in the network. If sensor m uses neighboring sensor n as a transit node, sensor n recursively applies countermeasures to all its neighboring sensors except node m, and selects the next hop from the neighboring nodes based on the countermeasure disk results. 2) Each participant’s pure strategy set is {do not forward, forward}; 3) Define the cost function for each participant as follows: Among them, ρ ij is the probability that sensor node i chooses j as the next hop in the algorithm, P is the reachable path between the source sensor and the target sensor node, nodes j and k are the neighbor nodes of node i, j represents all nodes except node j among the neighbor nodes of node i, f is represented by a constant, which represents the global benefit of the network, and the energy consumed by the node to forward a data packet is represented by c, which is set as a constant. Assume that in a game, there are n participants, E k Represents the residual energy of node k, using: It means that when a neighboring node refuses to forward a data packet, it can only obtain part of the network benefit, thereby motivating nodes with more residual energy to actively participate in the forwarding of data packets.

3. According to claim 1, the wireless sensor network routing algorithm improved by infinite balanced ant colony entropy is characterized in that: The improved ant colony entropy algorithm uses the residual energy of the node as a factor in path selection. It is based on the fact that each sensor node in the wireless network is rational, that is, when each sensor needs to transmit data, it minimizes its own energy loss and maximizes the global benefit of the network, thus converting the problem into an infinite equilibrium strategy disk problem.

4. According to claim 1, the wireless sensor network routing algorithm improved by infinite balanced ant colony entropy is characterized in that: Protocol node design: NS2 is used to establish a network communication model. The model has a certain number of network nodes. Each node is represented by a C++ class called Agent. The Agent class of each node provides all the functions required to run the network protocol: The node ID is a unique symbol that identifies the node itself. The transmission of data packets in the network is based on this. This unique identifier is also used to deploy wireless sensor nodes in the environment. Node Routing Table Vector <routertable> Stores the available adjacent routes of the node. This table is needed when the current node selects a path node. The node routing table contains the sensor number, pheromone size and remaining energy parameters.< / routertable> The node's remaining energy NodeLife is the life cycle of the node. When the node selects the next-hop routing node, an infinite balance strategy disk model is introduced. The node's remaining energy is used as a parameter to introduce the infinite balance strategy disk model to prevent some sensors from being unable to continue to be used due to too high energy loss rate; The packetSize field allows a node to set the size of the data packet it sends.

5. The wireless sensor network routing algorithm improved by infinite balanced ant colony entropy according to claim 4 is characterized by: The maximum number of hops for data packets, TTLMax, prevents data packets from being transmitted endlessly in the network and from developing into discarded data that is transmitted infinitely within the network. When data packets and probe packets reach the critical value of the maximum number of hops, the node will recycle the data packets and probe packets. The sendNumb field, the number of packets sent by the node, and the backNumb field, the number of packets received by the node, are used to calculate the packet loss rate of the network by recording the number of packets sent by the source node and received by the target node. The detection packet forwarding delay detectDelay is used to set the delay time of the detection packet and is set to be much shorter than the data packet forwarding delay time; The maximum transmission time of the data packet that the source node can accept, Sendovertime, is used to determine the problem of data packet loss during transmission. If the data packet transmission time has exceeded the set maximum transmission time, but the source node still has not received the data packet, the data packet information is set as a lost packet and a new data packet needs to be resent; The detection packet cycle time Senddetectovertime is used to determine if the detection packet is lost during the detection process; The detection packet forwarding timer senddetect_timer_ cooperates with the detection packet forwarding delay time to manage and control the forwarding time of the entire detection packet; The source node sends a data packet timer send_timer_ to match the maximum data packet transmission time acceptable to the source node, and control the frequency of the source node sending data packets in the entire system; The pheromone volatilize_timer is used to periodically volatilize the pheromone concentration on the paths in the network, and to reduce the pheromone concentration on the invalid paths, thereby preventing the pheromone concentration in the entire network from increasing without limit.

6. The wireless sensor network routing algorithm improved by infinite balanced ant colony entropy according to claim 4 is characterized by: The node routing table is a two-dimensional array, in which ID is the ID of the reachable next-hop node, Pheromone is the pheromone concentration on the path from the node to the next-hop node in the table entry, and NodeLife is the remaining energy of the next-hop node in the table entry.

7. According to claim 1, the wireless sensor network routing algorithm improved by infinite balanced ant colony entropy is characterized in that: Protocol data packet design: The protocol data packet is transmitted between sensor nodes in the network, and the node routing table is updated by transmitting data. During the forwarding process, the sensor node updates its own routing table according to the data in the data packet, and then forwards according to the data in the node and the data packet. The data packet structure refers to the Header structure of the data packet. Only through the Header structure can the protocol be correctly executed; The source sensor number SID is the number of the source sensor that the data packet is transmitted from. After the data packet is transmitted to the target sensor, it uses the identifier to find the source sensor and returns. The target sensor number DID is the target sensor number of the data packet transmission. Each node passed through during the transmission process matches the DID field to determine whether it is the target sensor node; The sensor number of the transmitted data NodeSend is the sensor node number of the transmitted data packet, which provides support for the routing table change of the next sensor passing through; The packet loss TTL is the number of times a packet is transmitted. By judging whether the value represented by this field exceeds a certain value, it is judged whether the packet has expired. If it has expired, the forwarding is abandoned. The packet type identifier Detect is an identifier of the data packet type. This field can be used to mark the type of packet being transmitted, so that the protocol node can distinguish different packets and adopt corresponding solutions according to the packet type. Detect=0 indicates a data packet; Detect=1 indicates a detection packet; Detect=2 indicates a detection reply packet; Detect=3 indicates a pheromone detection packet; The node number NodeNext of the next path stores the node number of the next path selected by the current sensor node through the routing selection strategy of the ant colony entropy algorithm. If the number of the sensor receiving the data packet is different from the NodeNext number, the data packet can be abandoned.

8. According to claim 1, the wireless sensor network routing algorithm improved by infinite balanced ant colony entropy is characterized in that: Based on global calculation of pheromone update capability: Calculate the ant's pheromone update capability from a global perspective, so that the ant can dynamically form its own pheromone update capability when searching for a path from the source node to the target node. After the data packet arrives at the target node, the ant determines the ant's pheromone update capability based on the time it takes for the data packet to reach the target node from the source node. The formula is: Among them, parameter A is defined as a constant, arriveTime is the time when the data packet arrives at the target node, startTime is the time when the target node sends the data packet, and the ant's pheromone update ability is inversely proportional to the data packet transmission delay. The smaller the transmission delay of the data packet on a certain path, the greater the ant's ability to update pheromones when returning along the original path. Conversely, the greater the transmission delay, the smaller the ant's ability to update pheromones on the original path. The pheromone updating ability of the ants returning along the optimal path is better than that of the ants returning along other paths. The pheromone concentration on the path with shorter data packet transmission delay increases faster than that on other paths, that is, the information concentration on the path is getting higher and higher, and the distance from other paths is increasing. When the pheromone concentration on the optimal path increases significantly, the optimal path is more likely to be selected by the subsequent path-finding ants, and finally the algorithm converges to the optimal path; It is stipulated that ants can only update the pheromone concentration on the path when they return along the original route after reaching the target node; at the same time, it is stipulated that a part of the pheromone concentration on the path will evaporate periodically to avoid the uncontrolled growth of the pheromone concentration on the path and reduce the packet loss rate.

9. The wireless sensor network routing algorithm improved by infinite balanced ant colony entropy according to claim 1 is characterized in that: Introduction of energy factors in the infinite equilibrium game disk model: There are n finite participants in the game board, G = {S1, ..., S n ;u1,…,u n }, for any participant i, if in its set of all selectable strategies S, the pure strategy s i The number of is not infinite, there is infinite equilibrium entropy, the participants are the adjacent nodes of node i, the number of participants is not infinite, the pure strategy set of the participants is {do not forward, forward}, that is, the pure strategy is also finite, and there is infinite equilibrium entropy in the infinite equilibrium strategy disk model of the improved ant colony entropy algorithm; The infinite equilibrium entropy solution in the infinite equilibrium game disk model of the improved ant colony entropy algorithm is as follows: p=(p1 * , ..., p i * , ..., p n * ) is a mixed strategy set. If this mixed strategy set is adopted, the pure strategy set s=(s1,s2,...,S n ) is adopted with a probability of: That is, the mixed strategy p of each ant k Give it pure strategies k ∈S k , the product of the probabilities of, the payoff function of participant i is u i (s) = u i (s1, ..., s n ), the expected return of this mixed strategy combination to ant k is: v k (p) = ∑ s∈S p(s)u k (s) Formula 5 The pure strategy set of each participant is {forward, do not forward}, denoted by S k ={s k1 ,s k2 }, k∈K, let the probability p k1 To choose pure strategy s k1 , then select s k2 The probability is 1-p k1 According to the income function formula 1, we get: ρ j is the probability that the sensor node inside the algorithm chooses j as the next hop. Nodes j and k are the neighbor nodes of node i. j represents all nodes except node j among the neighbor nodes of node i. f is represented by a constant, which represents the global benefit of the network. The energy consumed by a node to forward a data packet is represented by c, which is set as a constant. α k represents the network benefit obtained when an adjacent node refuses to forward a data packet. According to Formula 6, the expected benefit of the participant is: Then, according to have: The format of the converted equations is: Adding all the rows of equation 9 gives: make Then there is Substituting into formula 10, we get: The solution is: The format for converting to the solution of the system of equations is: According to formula 13, the probability p of each node k participating in the countermeasure disk choosing the {forward} strategy is calculated k1 ,When a data packet is transmitted in the network, each node uses the mixed infinite balanced entropy of the ant routing strategy disk to select the next hop, that is, the node with the maximum forwarding probability is selected as the next hop; In formula 13: There are n nodes participating in the countermeasure disk, E k Represents the residual energy of node k. The residual energy of the node is integrated into the infinite equilibrium countermeasure disk model of routing selection as a parameter, that is, the residual energy of the node will be used as an influencing factor for the next-hop routing. In the early stage of network operation, the energy of all nodes in the wireless sensor network is sufficient, and the α values ​​of the nodes participating in the countermeasure disk are not much different. The residual energy of the node has not yet affected the selection of the next-hop node, and it still depends on the forwarding probability p calculated by the pheromone size and path length. j After multiple rounds of transmission, the energy loss of all intermediate nodes on the optimal path is a large part, and the a between the nodes participating in the countermeasure disk j The difference in values ​​is obvious, and the residual energy of the node begins to affect the selection of the next-hop node. By designing the cost function, when an adjacent node refuses to forward a data packet, it can only obtain part of the network benefit, which can motivate nodes with more residual energy to actively participate in the forwarding of data packets. When performing routing selection, avoid choosing paths with nodes with less residual energy, thereby extending the life cycle of the entire network.

Citation Information

Patent Citations

  • Wireless sensor network route method based on ant colony algorithm

    CN103327564A

  • Wireless network route establishment method based on ant colony algorithm

    CN106131916A

  • Node communication path selection method in underwater sensor network based on ant colony algorithm

    CN110636582A

  • Underwater multi-agent-oriented Q learning ant colony routing method

    CN111065145A

  • Routing strategy based on genetic algorithm and ant colony algorithm in wireless sensor network

    CN112822747A