A kind of method for routing based on heat source selection strategy
Technical field
The present invention relates to a kind of method for routing based on heat source selection strategy, belong to low-voltage powerline carrier communication field。
Background technology
In low-voltage network, load often changes, and network exists various noise and impulse disturbances, causes that low-tension network presents transmission characteristic a kind of time-varying, asymmetrical, so low-voltage power line communication success rate is low at present, reliability is not strong。Paid close attention to raising point-to-point communication in the past and received sending probability, from the reliability that the aspect raisings such as the characteristic of channel and model, modulating and demodulating signal and suppression noise communicate。But, when network size is relatively big and noise jamming is comparatively serious, correlational study technology will be unable to ensure the reliable connected of communication network。Therefore, research power line communication network networking and route technology are practical application institute urgent needss。
Conventional low power line network is generally centralized network, Centroid be responsible for other ordinary node of network, and the route that network service uses organizes the study of the whole network node, training to be formed by Centroid;Meanwhile, existing application occurs in that the flooding communication mode not taking concrete routing policy。
For power line communication environment, ITUG.9903 proposes the LOAD agreement routing plan as network system。LOAD agreement be a kind of peer-to-peer network for immediately finding the communication path between any two communication nodes, the routing plan of LOAD protocol realization is without by historical information。The basic procedure of LOAD agreement correspondence routing plan is: when node is when sending unicast message, determine that the route arriving final purpose node is missing or invalid, present node initiates the broadcast of RREQ the whole network, final purpose node is scanned for, and the node of each RREQ of forwarding is by record and the link information received, forwarding RREQ is relevant。When receiving this RREQ broadcast, final purpose node sends routing reply message RREP (unicast message) by selecting a good opportunity according to the information of record, the node of middle each forwarding RREP message is determined sending the next-hop node of RREP also according to the information of broadcast phase record, meanwhile, node can build the route reaching RREQ source node, RREP source node。
For the routing plan leading with Centroid, its target is exactly set up Centroid to arrive path and the ordinary node arrival Centroid path of ordinary node, and along with the raising that the variation of communication is required by intelligent grid, this scheme is difficult to meet needs substantially;And the type scheme path learning is consuming time general longer, hardly consistent with the real-time communication day by day improved。
For the system using flooding as communication mode, its communication concurrency is seriously restricted, and meanwhile, the conflict between adjacent networks will be more prominent。
The scene that LOAD agreement is suitable for is intended to: between node, communication has symmetry, communication environment is stablized and without substantially interfering with。China's power grid environment is complicated, some interference signals that many electrical equipment bands being linked in electrical network produce due to self make there is multiple interference on power line communication channel, and the electrical equipment accessed causes the change of load, impedance etc., power line communication channel is made to produce frequency selective fading, power line communication is brought greater impact, and therefore LOAD agreement lacks practicality。
Summary of the invention
It is an object of the invention to provide a kind of method for routing based on heat source selection strategy, in the network with periodic neighbor broadcast, the method can set up rapidly the communication path between any two nodes, simultaneously, under relatively complex communication environment, there is good vigorousness。
To achieve these goals, technical scheme is as follows。
A kind of method for routing based on heat source selection strategy, the each node being arranged in communication network can directly listen to the communication message that surroundings nodes sends, therefore, the message that certain node sends directly can be listened to by present node, this node is known as the neighbor node of present node, and wherein, node A can receive the message of node B, C, D, E, F, G, therefore, node B, C, D, E, F, G is the neighbor node of node A。
For the network that the present invention describes, each node therein has the neighbor list carrying all neighbor informations, and, each node will carry out spot broadcasting according to the fixed cycle, the type broadcast carries the neighbor list of present node, therefore, this kind of broadcast being called, neighbor list is broadcasted;If adjacent two neighbor lists broadcast that can receive the other side each other, it is possible to being known as by above-mentioned two node can intercommunication。
When the node that in network is labeled as OSRC initiates communication to another node being labeled as FDST, present node is it needs to be determined that a paths, and detailed process is as follows:
(1) OSRC node initiates the whole network broadcast, and the type broadcast is called that path recovery is broadcasted, and the information of FDST node is carried in broadcast, and other nodes in network are by this broadcast of forwarding, and each node only forwards once this broadcasting packet;In this process, intermediate forwarding nodes needs the forwarding rule observed as follows:
A) for intermediate forwarding nodes, if receiving the broadcast that OSRC node sends, the historical information broadcasted according to neighbor list is determined and the whether intercommunication of OSRC node by this node, if intercommunication, this node can send after the broadcasting packet to forward is carried out labelling, and this labelling is called that path preferably indicates;
B) for intermediate forwarding nodes, if only receiving the forwarding broadcasting packet of other intermediate nodes, message will be carried out analysis judgment by this node, if message carrying path preferably indicate, can determine that whether the sending node of present node and this message has intercommunity according to historical information simultaneously, if having intercommunity, when present node sending this message, carrying path equally and preferably indicating;Other situations, message will not carry path and preferably indicate。
For path from node OSRC to node A, then to node B, then to node C, then to node FDST, if adjacent node all has intercommunity, node A to receive the OSRC broadcasting packet sent, when A forwards this broadcasting packet, path preferably mark will be carried and forward;Equally, B receives the A broadcasting packet sent, and B E-Packets and also will carry path and preferably indicate;C node is also such。
(2) FDST node is after receiving route repair broadcast, and tissue is routed back to multi-frame, transmits to OSRC node with the form of unicast frame。Node is when forwarding is routed back to multi-frame, broadcast message according to record, selecting the node preferably indicated with path to propagate node as the down hop being routed back to multi-frame, wherein, the node preferably indicated with path is this section point and receives the sending node carrying the message that path preferably indicates。
This beneficial effect of the invention is in that: the inventive method fully employs the information that node periodic neighbor list broadcast is entrained, in the network with periodic neighbor broadcast, the method can set up rapidly the communication path between any two nodes, simultaneously, under relatively complex communication environment, there is good vigorousness。
Accompanying drawing explanation
Fig. 1 is neighbor node schematic diagram in the embodiment of the present invention。
Fig. 2 is path recovery broadcast schematic diagram in the embodiment of the present invention。
Fig. 3 is that in the embodiment of the present invention, schematic diagram is replied in path。
Detailed description of the invention
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described, in order to be better understood from the present invention。
Embodiment
The each node being arranged in communication network can directly listen to the communication message that surroundings nodes sends, therefore, the message that certain node sends directly can be listened to by present node, this node is known as the neighbor node of present node, wherein, as it is shown in figure 1, node A can receive the message of node B, C, D, E, F, G, therefore, node B, C, D, E, F, G is the neighbor node of node A。
For the network that the present invention describes, each node therein has the neighbor list carrying all neighbor informations (mark including at least neighbor node), and, each node will carry out spot broadcasting according to the fixed cycle, the type broadcast carries the neighbor list of present node, therefore, this kind of broadcast is called that neighbor list is broadcasted。If adjacent two neighbor lists broadcast that can receive the other side each other, it is possible to being known as by above-mentioned two node can intercommunication。
When the node (being labeled as OSRC) in network initiates communication to another node (FDST), present node is it needs to be determined that a paths, and detailed process is as follows:
(1) OSRC node initiates the whole network broadcast, and the type broadcast is called that path recovery is broadcasted, and the information of FDST node is carried in broadcast, and other nodes in network are by this broadcast of forwarding, and each node only forwards once this broadcasting packet, as shown in Figure 2。In this process, intermediate forwarding nodes needs the forwarding rule observed as follows:
A) for intermediate forwarding nodes, if receiving the broadcast that OSRC node sends, the historical information broadcasted according to neighbor list is determined and the whether intercommunication of OSRC node by this node, if intercommunication, this node can send after the broadcasting packet to forward is carried out labelling, and this labelling is called that path preferably indicates;
B) for intermediate forwarding nodes, if only receiving the forwarding broadcasting packet of other intermediate nodes, message will be carried out analysis judgment by this node, if message carrying path preferably indicate, can determine that whether the sending node of present node and this message has intercommunity according to historical information simultaneously, if having intercommunity, when present node sending this message, carrying path equally and preferably indicating;Other situations, message will not carry path and preferably indicate。
As in figure 2 it is shown, for path OSRC-> A-> B-> C-> FDST, if adjacent node all has intercommunity, node A to receive the OSRC broadcasting packet sent, when A forwards this broadcasting packet, path preferably mark will be carried and will forward;Equally, B receives the A broadcasting packet sent, and B E-Packets and also will carry path and preferably indicate;C node is also such。
(2) FDST node is after receiving route repair broadcast, and tissue is routed back to multi-frame, transmits to OSRC node with the form of unicast frame。Node is when forwarding is routed back to multi-frame, broadcast message according to record, selecting the node preferably indicated with path to propagate node as the down hop being routed back to multi-frame, wherein, the node preferably indicated with path is this section point and receives the sending node carrying the message that path preferably indicates。
As shown in Figure 3, for Sample Scenario proposed in step 1, the propagation trajectories for being routed back to multi-frame of dotted line instruction, the FDST node information according to record, it may be determined that node C has path and preferably marks, therefore, FDST will be routed back to multi-frame and be sent to C node, similar, C node will be sent to B, and last A node is sent to OSRC node。
By said process, OSRC node arrives by obtaining in the trusted path of FDST node。This mechanism fully employs the information that node periodic neighbor list broadcast is entrained。
The above is the preferred embodiment of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications are also considered as protection scope of the present invention。