Method for avoiding channel conflict of large-scale self-organizing network based on conflict graph
Technical Field
The invention relates to the technical field of field network multi-hop communication, in particular to a large-scale self-organizing network channel conflict avoidance method based on a conflict graph.
Background
The power distribution area side multimode communication network consists of a central main control node, a routing sink node and a terminal sensing node, wherein the central main control node and a plurality of routing sink nodes form a main network taking the central main control node as a center, the terminal sensing node is connected into the main network in a wireless mode, terminal sensing node equipment is low-power consumption equipment for battery power supply or induction power taking, an access point of the terminal sensing node can be the central main control node or the routing sink node, the central main control node equipment and the routing sink node equipment are normal power supply node equipment for alternating current power supply or direct current power supply, the central main control node and the routing sink node take power lines and wireless as transmission media to form a mesh network structure taking the central main control node as a center, the central main control node and the routing sink node can be added with corresponding communication modules, the wireless sensing equipment for standard communication such as Q/GDW12020, Q/GDW12021 wireless sensing equipment and BLE, wiFi, zigBee, loRa is expanded and supported, the multimode communication network is a network which is in various communication modes such as FHPLC, 470MHz-RF and 2.4 GHz-RF.
The low-voltage power line is used as a transmission medium, the low-voltage power line is composed of a large number of carrier nodes arranged on the power line, and a multi-hop network system formed by a power carrier communication mode is a communication network for supporting automatic avoidance of carrier working frequency bands and realizing equipment state information acquisition, control, event reporting, power consumer electricity consumption convergence, transmission and interaction in the distribution area. At present, the communication technology is fast and fast, the communication system is different day by day, but the corresponding network channel resources are increasingly in shortage, and the utilization of the power network channel to bear new services is an effective measure for solving the shortage of communication frequency band resources.
The wireless radio frequency communication is combined with the power line carrier communication to form a multimode communication network, and the method has great help to optimize the network structure and improve the network performance. However, under the condition that a plurality of networks operate in a field area network, because of a plurality of nodes and complex network topology, a plurality of communication links share the same channel in the data transmission process, so that the conditions of increased channel conflict, increased packet loss rate and time delay and reduced throughput are caused, a corresponding channel avoidance strategy is required to be designed, limited channel resources are reasonably allocated to each link, interference and conflict among the communication nodes are reduced, normal operation of the network is ensured, and the transmission performance of the network is improved.
Disclosure of Invention
The invention aims to provide a large-scale self-organizing network channel conflict avoidance method based on a conflict graph, which mainly solves the problem that channel conflict and interference can be generated in a data transmission process in a network under the conditions of limited spectrum resources and coexistence of multiple networks, and needs to design a reasonable resource allocation scheme to avoid the channel conflict, improve the data transmission efficiency and reduce the end-to-end transmission delay.
The technical scheme adopted by the invention is as follows:
a large-scale self-organizing network channel conflict avoidance method based on a conflict graph adopts a frequency hopping technology and a coloring method to allocate channels and avoid channel conflicts, and comprises the following specific steps:
Step S1, establishing a network topology;
Step S2, a channel model is established, interference and signal-to-interference-and-noise ratios are calculated, a wireless channel model is analyzed, each routing sink node supporting wireless transmission and a central master control node are regarded as a base station, a lognormal shadow path loss model is adopted, and path loss is expressed as:
Where d is the communication distance between two nodes, d 0 is the near-ground reference distance, n is the path loss coefficient, X δ is the random variable with Gaussian distribution with mean 0 and variance delta caused by shadow effect,
Order theConstant, PL (d) =k Ldn.
Considering small-scale multipath fading as Rayleigh fading, setting a receiving and transmitting node of a communication link as i and j respectively, wherein the transmitting power of the node i is P i, and the power received by the node j isIt is assumed here that the antennas are all omni-directional antennas, and the antenna gain of node i isChannel fading gainFollowing the rice distribution, the noise is additive white gaussian noise with a mean value of 0 and a variance of sigma 2, and the cumulative interference I n that a receiving end node j in a communication link (I, j) is interfered by all neighbor nodes except a transmitting node I is:
the signal-to-interference-and-noise ratio (SINR, signal to interference plus noise ratio) received by node j is:
S3, resolving conflicts among nodes of different networks, in a field network, referring to frequency hopping sequences of other surrounding networks in a networking stage, generating frequency hopping sequences orthogonal to the surrounding networks through a correlation algorithm, so that channels used between different networks are orthogonal at the same time, channel conflicts and interference are avoided, a method for designing the frequency hopping sequences is specifically, adjustment can be carried out according to the situation of an actual network, if a part of channels are used by a single network to support data transmission of the network, available channels can be grouped and distributed to different networks, channels used between the networks are not identical, channel conflicts among the networks can not be generated, if the scale of the single network is relatively large, all channels are needed to be used to support data transmission of the networks, the frequency hopping sequences between adjacent networks need to be guaranteed to be orthogonal, the fact that a node used by the adjacent networks occupies a channel time in a certain time slot number is avoided, the situation that the adjacent networks are just subjected to frequency hopping to the working condition of the adjacent networks is carried out after the node which is not finished in the certain network occupies a channel time is avoided, and interference is generated;
Step S4, after network node networking, node positions are not moved any more, the transmitting power of each node is fixed to be P t, a network topology graph G is established according to a transmission path given by a routing algorithm, the graph G is a connected graph, points in the graph represent RN nodes in an actual network, edges in the graph represent the routing paths of data transmission to next hop nodes, a conflict graph G' is established by analyzing conflicts existing in links, the points in the graph represent one link in the topology graph, edges in the graph represent links represented by the nodes at two ends of the edges generate conflicts and are required to be distributed to different channels;
s5, introducing a frequency hopping mode, and converting the channel allocation problem into a time slot allocation problem;
S6, establishing a mathematical model to solve channel conflicts in the network;
The flow S6.1, the route path obtained according to the route algorithm can generate an adjacency matrix E, E= { E i,j|Ei,j∈{0,1}}N×N, which is a matrix of N rows and N columns, and represents the route relation between the node i and the node j. E i,j = 0 indicates that there is no route from node i to node j, E i,j = 1 indicates that there is a route from node i to node j, where node i is the transmitting node and node j is the receiving node;
And S6.2, generating an interference matrix I:I= { I n,k,|In,k,∈{0,1}}N×N according to a conflict graph calculated by the established interference model, wherein the interference matrix I= { I n,k,|In,k,∈{0,1}}N×N is a matrix of N rows and N columns, and represents the condition that the links N and k simultaneously use the same channel to generate interference. If I n,k = 1/0, it means that links n and k will/will not interfere when using the same channel at the same time;
The result of the solution in the flow S6.3 is that the non-interference allocation matrix a: a= { a n,m|an,m∈{0,1}}N×M is a matrix of N rows and M columns, indicating a possible slot allocation scheme, a n,m =1 if slot M is allocated to link N, otherwise a n,m =0. The interference-free allocation matrix must satisfy the interference constraint:
Step S7, creating an optimization problem, abstracting the above-mentioned time slot allocation into a vertex coloring problem in a graph theory, for a graph G (V, E) and a color set c, where V is a vertex set of the graph G, representing links in the network, c represents an available color set of vertices, each color represents a time slot, E is an edge set, and is determined by the interference constraint matrix I, if and only if I n,k =1, there is an edge between two different vertices n, k E V, and the coloring condition corresponding to the effective time slot allocation satisfying the interference constraint condition can be described as that when there is an edge between two vertices, the same color cannot be simultaneously colored. The coloring process is a mapping process of assigning a color C v e C to each vertex V e V, ensuring that the color is different from the colors of its neighbors, mathematically representing :R(G,C)={<v,c>|(v∈V∩c∈C∩(<vi,ci>∈R∩<v,vi>∈E→c≠ci))}. to define a color set c= [ C 1,c2,…,cn ], initializing all to 0 for the available color set, and if a color C i is assigned to a vertex V i, forming a mapping pair < V i,ci >, where C i =1. The optimization objective is to color all links for links in the current network using the least number of colors, namely: Obtaining a required minimum color number of c tot and a corresponding coloring scheme;
And S8, solving by adopting a graph coloring algorithm, and traversing the search by adopting a backtracking method for solving how to finish the coloring process by using K colors. If a solution can be found in the search and backtracking process, the problem is solved, and if all cases are traversed, the problem can be considered as having no solution. And introducing heuristic strategies, namely coloring the vertex with the smallest value range preferentially in the current state, wherein the more the neighbor node colors of one vertex are defined, the smaller the value range of the vertex is, and comparing the degree of the vertex with the maximum degree preferentially in the case of the same value range.
The invention has the beneficial effects that:
(1) After the channel allocation is performed by a coloring algorithm, each link cannot transmit data in the same channel with other surrounding links at the same time, so that interference signals in the channel are greatly reduced, and the signal-to-interference-and-noise ratio of the wireless link is obviously improved;
(2) After the channel allocation of the coloring algorithm, the throughput of the wireless link is improved, and the throughput is close to that of the wired link, so that the end-to-end throughput is not limited by the wireless link any more, and the transmission performance of the whole network is greatly improved;
(3) After the channel allocation by the coloring algorithm, the end-to-end transmission delay is reduced;
(4) The more surrounding interference links are distributed with channels through a coloring algorithm, the higher the interference reduction degree is, so that the coloring algorithm channel distribution scheme provided by the invention is suitable for a network with dense node distribution, and can effectively reduce interference during inter-node communication.
Drawings
Fig. 1 is a diagram of a domain network node link relationship provided by the present invention.
Fig. 2 is a collision diagram establishment procedure provided by the present invention.
Fig. 3 is a diagram of a frequency hopping pattern provided by the present invention.
Fig. 4 is a frequency hopping sequence diagram provided by the present invention.
Fig. 5 is a schematic diagram of frequency hopping provided by the present invention.
Detailed Description
The present invention will be further described in detail with reference to the drawings and examples, which are only for the purpose of illustrating the invention and are not to be construed as limiting the scope of the invention.
A large-scale self-organizing network channel conflict avoidance method based on a conflict graph comprises the following specific steps:
Step S1, establishing network topology, wherein a domain network node link relation diagram is shown in FIG. 1, two types of nodes in a domain network are mainly researched, a central master control node (MN) and a routing sink node (RN), and a main research wireless Radio Frequency (RF) channel comprises the following procedures:
The method comprises the following steps that S1.1, a field network is composed of a plurality of areas, one area in the field network is shown in fig. 1 and is a multi-hop network composed of a central master control node (MN), a plurality of routing sink nodes (RNs) and a plurality of end sensing nodes (EN), each central master control node collects data reported by subordinate end sensing nodes and transmits the data to the central master control node through the multi-hop network, a transmission link between RN nodes is divided into two modes of Radio Frequency (RF) and high-speed power line carrier (HPLC), wherein the HPLC link is divided into ABC three-phase links, and the problem of channel conflict of the central master control node (MN) and the wireless RF link which are composed of the RN nodes is mainly studied;
In the process S1.2, in order to control the cost of the nodes, the RN node in the network adopts a half-duplex communication mode, namely, each node has only one wireless transceiver module, cannot simultaneously perform receiving and transmitting work, and can only communicate with one node on one channel in one time slot;
Step S2, a channel model is established, interference and signal-to-interference-and-noise ratios are calculated, a wireless channel model is analyzed, each routing sink node supporting wireless transmission and a central master control node are regarded as a base station, a lognormal shadow path loss model is adopted, and path loss is expressed as:
Wherein d is the communication distance between two nodes, d 0 is the near-ground reference distance, n is the path loss coefficient, X δ is a random variable with Gaussian distribution with mean value of 0 and variance of delta caused by shadow effect;
Order the Constant, PL (d) =k Ldn;
Considering small-scale multipath fading as Rayleigh fading, setting a receiving and transmitting node of a communication link as i and j respectively, wherein the transmitting power of the node i is P i, and the power received by the node j is It is assumed here that the antennas are all omni-directional antennas, and the antenna gain of node i isChannel fading gainObeying the rice distribution, the noise is additive white gaussian noise with a mean value of 0 and a variance of sigma 2. The cumulative interference I n that the receiving end node j receives as all neighbor nodes except the transmitting node I in the communication link (I, j) is:
the signal-to-interference-and-noise ratio (SINR, signal to interference plus noise ratio) received by node j is:
s3, generating a frequency hopping sequence, solving the conflict among nodes of different networks, in a field network, referring to the frequency hopping sequences of other surrounding networks in a networking stage, generating the frequency hopping sequence orthogonal to the surrounding networks through a correlation algorithm, so that the channels used between the adjacent networks are orthogonal at the same time, avoiding channel conflict and interference between the adjacent networks, specifically designing the frequency hopping sequence, adjusting according to the actual network condition, if a part of channels are used by a single network to support the data transmission of the network, grouping the available channels to the different networks, so that the channels used between the networks are not identical, and channel conflict among the networks is not generated;
And S4, after the network nodes are networked, the positions of the nodes are not moved any more, the transmitting power of each node is fixed to be P t, a network topology graph G is established according to a transmission path given by a routing algorithm, the graph G is a connected graph, a point in the graph represents an RN node in an actual network, an edge in the graph represents a routing path of data transmission to a next hop node, a conflict graph G' is established by analyzing conflicts existing in links, the point in the graph represents one link in the topology graph, the edges in the graph represent links represented by the nodes at two ends of the edge generate conflicts, and the links need to be distributed to different channels.
The process for establishing the conflict graph of the field network is shown in fig. 2, and the establishment flow is as follows:
Flow S4.1, for each link in G, a node is established in G',
In the process S4.2, for any one link l in G, the transmitting node is t (l), and the receiving node is r (l). If another link l' exists, when two links transmit data simultaneously, the following three situations occur, and the two links collide:
① The signal-to-interference-plus-noise ratio SINR of the receiving end r (l) or r (l') is lower than the threshold,
② The receiving node of one link is the transmitting node of the other link, i.e. r (l ')=t (l) or r (l) =t (l'),
③ The receiving nodes of the two links are the same node, i.e. r (l) =r (l'),
S4.3, establishing a connection between the corresponding nodes in the conflict graph G' for the two links in the conflict graph G;
Step S5, introducing a frequency hopping mode, wherein the field network adopts the frequency hopping mode to carry out wireless communication, channels used by nodes in the whole network are the same and unchanged in one time slot, after the current time slot is finished, nodes in the whole network synchronously hop to channels corresponding to the next time slot, the hopping rule of the channels is determined by a frequency hopping sequence generated during networking, but the situation that the receiving and transmitting nodes do not transmit in one time slot occupying the current channel is not completed, the adopted scheme is shown in figure 3, the receiving and transmitting nodes of data which are not transmitted in the current time slot do not synchronously hop with other nodes in the network, but continue to occupy the current channel until the data transmission is completed, the frequency hopping is shown in figure 5, the nodes in the network hop according to the frequency hopping sequence in figure 4, but the nodes in the network are not completely synchronous, the channels used by idle nodes in the network synchronously hop according to the frequency hopping sequence, the nodes which are transmitting data together with the idle nodes in the network after the data transmission is finished, the node is synchronous frequency hopping, the problem that the nodes which are set by the nodes in the network do not complete transmission of the data transmission is determined in the time slot cycle, the time slot can be allocated to the time slot in the current time slot when the data transmission is not finished, and the data transmission can be continuously carried out in the time slot cycle, and the data transmission can be started to the time slot is not completed in the time slot of the time slot;
S6, establishing a mathematical model to solve channel conflicts in the network;
The flow S6.1, the route path obtained according to the route algorithm can generate an adjacency matrix E, E= { E i,j|Ei,j∈{0,1}}N×N, which is a matrix of N rows and N columns, and represents the route relation between the node i and the node j. E i,j = 0 indicates that there is no route from node i to node j, E i,j = 1 indicates that there is a route from node i to node j, where node i is the transmitting node and node j is the receiving node;
and S6.2, generating an interference matrix I:I= { I n,k,|In,k,∈{0,1}}N×N according to a conflict graph calculated by the established interference model, wherein the interference matrix I= { I n,k,|In,k,∈{0,1}}N×N is a matrix of N rows and N columns, and represents the condition that the links N and k simultaneously use the same channel to generate interference. If I n,k = 1/0, it means that links n and k will/will not interfere when using the same channel at the same time;
The result of the solution in the flow S6.3 is that the non-interference allocation matrix a: a= { a n,m|an,m∈{0,1}}N×M is a matrix of N rows and M columns, indicating a possible slot allocation scheme, a n,m =1 if slot M is allocated to link N, otherwise a n,m =0. The interference-free allocation matrix must satisfy the interference constraint:
Step S7, creating an optimization problem, abstracting the above-mentioned time slot allocation into a vertex coloring problem in a graph theory, for a graph G (V, E) and a color set c, where V is a vertex set of the graph G, representing links in the network, c represents an available color set of vertices, each color represents a time slot, E is an edge set, and is determined by the interference constraint matrix I, if and only if I n,k =1, there is an edge between two different vertices n, k E V, and the coloring condition corresponding to the effective time slot allocation satisfying the interference constraint condition can be described as that when there is an edge between two vertices, the same color cannot be simultaneously colored. The coloring process is a mapping process of assigning a color C v e C to each vertex V e V, ensuring that the color is different from the colors of its neighbors, mathematically representing :R(G,C)={<v,c>|(v∈V∩c∈C∩(<vi,ci>∈R∩<v,vi>∈E→c≠ci))}. to define a color set c= [ C 1,c2,…,cn ], initializing all to 0 for the available color set, and if a color C i is assigned to a vertex V i, forming a mapping pair < V i,ci >, where C i =1. The optimization objective is to color all links for links in the current network using the least number of colors, namely: Obtaining a required minimum color number of c tot and a corresponding coloring scheme;
And S8, solving by adopting a graph coloring algorithm, and traversing the search by adopting a backtracking method for solving how to finish the coloring process by using K colors. If a solution can be found in the search and backtracking process, the problem is solved, and if all cases are traversed, the problem can be considered as having no solution. And introducing heuristic strategies, namely coloring the vertex with the smallest value range preferentially in the current state, wherein the more the neighbor node colors of one vertex are defined, the smaller the value range of the vertex is, and comparing the degree of the vertex with the maximum degree preferentially in the case of the same value range.
The foregoing is merely a preferred embodiment of the present invention and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present invention, which are intended to be comprehended within the scope of the present invention.