A kind of low-voltage power carrier communication network optimization method and system
Technical field
The present invention relates to the Power-line Carrier Technology in Low field, especially relate to a kind of low-voltage power carrier communication network optimization method and system.
Background technology
In recent years, power line carrier communication, as the important field device bus communication technology in a kind of future, has become study hotspot new in communication system.Wherein, the network technology of low-voltage network carrier communication industry is just in develop rapidly, and power carrier communication has also experienced one from integrated system to evolution distributed, that networked system changes.
Yet power line carrier, PLC has noise jamming by force and has time variation, signal attenuation is large, the little inherent characteristics that waits of channel capacity, and it also exists much not enough in concrete application; And, in low-voltage network, except having above-mentioned carrier communication inherent characteristics, it also has the characteristics of physical topological structure the unknown.Thereby, in order to improve the power line communication reliability, outside can considering from aspects such as the channel estimating of physical layer and selection, chnnel coding, filter design, power division, modulating/demodulating modes on the one hand, also can consider from networking mode, the network model equal angles of power line communication on the other hand, improve network service efficiency, antijamming capability and reliability, could adapt to like this and relatively in rugged environment, carry out transfer of data.
At present, the networking technology of the power carrier of main flow generally adopts the thinking dynamic group net of relaying classification, the network environment become when adapting to.Although it has reduced the harmonic pollution in electric power net in the network by the via node reduced in networking, for high-quality low-voltage power carrier communication network system, the method still can't meet the requirement that the network coverage is large, network communication quality is high.
Summary of the invention
Technical problem to be solved by this invention is: the networking existed in prior art is slow, the route searching efficiency is low, and the network coverage and network communication quality are lower.
For solving the problems of the technologies described above, the present invention adopts following technical scheme:
The invention provides a kind of low-voltage power carrier communication network optimization method, method comprises the following steps:
Step S1: the host node of carrier communication traversal one-level is from node, and usings one-level and issue networking commands toward next stage from node as relaying from node, and described networking commands comprises from node carries out time and the unknown node number that channel is seized needs;
Step S2: describedly connect from node the networking commands issued according to host node and carry out channel and seize, to described host node, send the networking request message;
Step S3: described host node is according to the described networking request message sent from node, extracts describedly from address of node and neighbours' reliability information distribute its network identity, completes the networking of primary node and secondary node.
Further, in above-mentioned low-voltage power carrier communication network optimization method, after described step S3, also comprise:
Step S4: set up a reliability value table in described host node inside, store the reliability value that each is communicated by letter each other from node, the described value of the reliability from node size is decided by this signal to noise ratio from node and its neighbor node.
Further, in above-mentioned low-voltage power carrier communication network optimization method, after described step S3, also comprise:
Step S5: set up a routing table in described host node inside, be used for preserving the routing iinformation of current system; And according in described reliability value table each from node reliability each other, calculate the described optimal path from host node to each node, and regularly upgrade this routing table.
Further, in above-mentioned low-voltage power carrier communication network optimization method, described step S1 specifically comprises:
Step S101: find all one-levels that directly can reach from node, then by described one-level, from node, as relaying, find all secondarys from node, the rest may be inferred searches out all afterbodies from node;
Step S102: described host node issues networking commands from node as relaying by one-level respectively, described order comprises singlely carries out from node time and the unknown node number that channel is seized needs, this time and scope are counted the variation of size and dynamic change according to unknown node, wait for that in channel is seized the time needed the channel that receives all nodes seizes message.
Further, in above-mentioned low-voltage power carrier communication network optimization method, described step S2 specifically comprises:
Step S201: describedly from node, seize according to channel the networking commands of receiving time of needing and produce a channel and seize time point and carry out channel and seize from nodes is random, and seize message to the host node transmitting channel, it is message identifier and node address that this channel is seized message;
Step S202: described host node receives that channel seizes after message transmitting channel and seize and receive the response, described receiveing the response as receiveing the response sign and initiate node address;
Step S203: described from node receives that the channel of host node is seized and receiveed the response, initiation node address and this node address during this is receiveed the response are mated, if coupling enters step S204; If do not mate, describedly from node, wait for that next round seizes;
Step S204: describedly from the node channel, seize successfully described networking request message, the reliability value that described networking request message comprises this from the address of node and the neighbor node that networks and this be communicated by letter with neighbor node from node of sending from node to host node.
Further, in above-mentioned low-voltage power carrier communication network optimization method, described step S204 also comprises:
Describedly from node, monitor the group-net communication of other neighbours from node and host node simultaneously, obtain the reliability value that this is communicated by letter with neighbor node from node, and this neighbor node reliability value is saved to memory space.
Further, in above-mentioned low-voltage power carrier communication network optimization method, described step S3 specifically comprises:
Step S301: described host node is received from the networking request message of node, extracts and is somebody's turn to do from address of node and neighbours' reliability information, gives and should be assigned with network identity from node according to this;
Step S302: described host node sends the networking response message, and described networking response message comprises that this identifies from the node distribution network;
Step S303: describedly from node, receive that the backward described host node of described networking response message responds the networking confirmation message, described networking confirmation message comprises the network identity that this is assigned with from node;
Step S304: describedly from node, carve at one's leisure and monitor other confirmation messages of networking from node, the neighbor node network identity using the network identity in the networking confirmation message listened to as self, and this information of neighbor nodes is saved to memory space.
Further, in above-mentioned low-voltage power carrier communication network optimization method, described step S4 specifically comprises:
Step S401: the described session from node free time monitoring neighbor node, according to this neighbor node and should decide this from reliability value size between node and neighbor node from the signal to noise ratio of node, and the information of neighbor nodes that will have an optimum reliability value is saved to memory space.
Step S402: describedly from node, communicate by letter with host node and carry the reliability value information, each reliability value information comprises described from node and the reliability of a plurality of neighbor nodes on every side;
Step S403: set up a reliability value table in described host node inside, store the reliability value that each is communicated by letter each other from node, the described value of the reliability from node size is decided by this signal to noise ratio from node and its neighbor node.
Further, in above-mentioned low-voltage power carrier communication network optimization method, described step S5 specifically comprises:
Step S501: set up a routing table in described host node inside, be used for preserving the routing iinformation of current system;
Step S502: described host node, according to the reliability in reliability value table, calculates the optimal path from host node to each from node, and regularly upgrades routing table;
Step S503: carry the message that comprises downstream routing during host node communication, one of every arrival is forwarded to message the next one route from node from node, each is described from node to upper level Father's Day point transmission message, can realize uplink communication, and up route is kept to this from node;
Step S504: carry out uplink communication failure from node according to the route of host node appointment when described, from neighbor table, search the minimum and reliability of level preferably neighbor node carry out uplink communication as next-hop node;
Step S505: when abnormal conditions appear in described host node downlink communication, the node find disconnected, and by it reliability reduction certain proportion with father node, recalculate route.
The present invention also provides a kind of low-voltage power carrier communication network optimization system, comprising: host node and a plurality of from node, and described host node comprises: networking commands sending module and information extraction distribution module;
Described networking commands sending module is for traveling through one-level from node, and usings one-level and issue networking commands toward next stage from node as relaying from node, and described networking commands comprises from node carries out time and the unknown node number that channel is seized needs;
Described information extraction distribution module is for according to the described networking request message sent from node, extracts describedly from address of node and neighbours' reliability information distribute its network identity, completes the networking of primary node and secondary node;
Describedly from node, comprise that channel seizes module and networking request message sending module;
Described channel is seized module and is carried out channel for the networking commands issued according to host node and seize; Described networking request message sending module is for sending the networking request message to described host node.
Further, in above-mentioned low-voltage power carrier communication network optimization system, described host node also comprises: reliability value table module, for setting up a reliability value table, and storing the reliability value that each is communicated by letter each other from node, the described value of the reliability from node size is decided by this signal to noise ratio from node and its neighbor node.
Further, in above-mentioned low-voltage power carrier communication network optimization system, described host node also comprises: router table means, be used for preserving the routing iinformation of current system, and according in described reliability value table each from node reliability each other, calculate the described optimal path from host node to each node, and regularly upgrade this routing table.
A kind of low-voltage power carrier communication network optimization method of the present invention and system report by adopting channel to seize to carry out part to exhale together, adopt the method for Dynamic Selection time-out time to carry out time-division slot, and when idle from node with the reliable communications degree value monitoring neighbor node message mode sounding channel and report this node and neighbor node for host node selection route, dynamically set up, safeguard, optimize the power line communication network route according to the variation of channel quality, improve the network coverage and network communication quality, guaranteed the reliable validity of communication network.
The accompanying drawing explanation
The hardware structure schematic diagram that Fig. 1 is a kind of low-voltage power carrier communication network of the present invention optimization method;
The structural representation that Fig. 2 is a kind of low-voltage power carrier communication network of the present invention;
The schematic flow sheet that Fig. 3 is a kind of low-voltage power carrier communication network of the present invention optimization method;
The idiographic flow schematic diagram that Fig. 4 is step S1 in Fig. 3;
The idiographic flow schematic diagram that Fig. 5 is step S2 in Fig. 3;
The idiographic flow schematic diagram that Fig. 6 is step S3 in Fig. 3;
The idiographic flow schematic diagram that Fig. 7 is step S4 in Fig. 3;
The idiographic flow schematic diagram that Fig. 8 is step S5 in Fig. 3;
The structural representation that Fig. 9 is a kind of low-voltage power carrier communication network of the present invention optimization system.
Embodiment
Describe the preferred embodiments of the present invention in detail below in conjunction with accompanying drawing.
The invention provides a kind of low-voltage power carrier communication network optimization method reports by adopting channel to seize to carry out part to exhale together, adopt the method for Dynamic Selection time-out time to carry out time-division slot, and when idle from node with the reliable communications degree value monitoring neighbor node message mode sounding channel and report this node and neighbor node for host node selection route, dynamically set up, safeguard, optimize the power line communication network route according to the variation of channel quality, improve the network coverage and network communication quality, guaranteed the reliable validity of communication network.
Refer to Fig. 1 and Fig. 2, the hardware structure schematic diagram that Fig. 1 is a kind of low-voltage power carrier communication network of the present invention optimization method, the structural representation that Fig. 2 is a kind of low-voltage power carrier communication network of the present invention.Low-voltage power carrier communication network optimization method hardware module of the present invention comprises: the host node 1 of carrier communication and a plurality of from node 2, described a plurality ofly be connected with host node 1 by power line from node 2.Wherein, described host node 1 and a plurality ofly from node 2, unique identification is all arranged.Suppose that the maximum number of plies of communication system is m (m>0), maximum node number is n (n>0).In the communication process of any two nodes, this node can be surveyed the signal to noise ratio of signal transmission.
Refer to Fig. 3, a kind of low-voltage power carrier communication network of the present invention optimization method comprises the following steps:
Step S1: the host node of carrier communication traversal one-level is from node, and usings one-level and issue networking commands toward next stage from node as relaying from node, and described networking commands comprises from node carries out time and the unknown node number that channel is seized needs.
Step S2: describedly connect from node the networking commands issued according to host node and carry out channel and seize, to described host node, send the networking request message.
Step S3: described host node is according to the described networking request message sent from node, extracts describedly from address of node and neighbours' reliability information distribute its network identity, completes the networking of primary node and secondary node.
The present invention also comprises after described step S3:
Step S4: set up a reliability value table in described host node inside, store the reliability value that each is communicated by letter each other from node, the described value of the reliability from node size is decided by this signal to noise ratio from node and its neighbor node.
The present invention also comprises after described step S3:
Step S5: set up a routing table in described host node inside, be used for preserving the routing iinformation of current system; And according in described reliability value table each from node reliability each other, calculate the described optimal path from host node to each node, and regularly upgrade this routing table.
Further illustrate low-voltage power carrier communication network optimization method of the present invention below in conjunction with specific embodiment.
Refer to Fig. 4 and Fig. 2, step S1 of the present invention specifically comprises:
Step S101: find all one-levels that directly can reach from node, then by described one-level, from node, as relaying, find all secondarys from node, the rest may be inferred searches out all afterbodies from node.
Manually system is established into host node from number of nodes N, if do not arrange and be defaulted as theoretical maximum.It is n from number of nodes that host node the unknown is set, and initial value is N.
Step S102: described host node issues networking commands from node as relaying by one-level respectively, described order comprises singlely carries out from node time and the unknown node number that channel is seized needs, this time and scope are counted the variation of size and dynamic change according to unknown node, wait for that in channel is seized the time needed the channel that receives all nodes seizes message.
Refer to Fig. 5, step S2 of the present invention specifically comprises:
Step S201: describedly from node, seize according to channel the networking commands of receiving time of needing and produce a channel and seize time point and carry out channel and seize from nodes is random, and seize message to the host node transmitting channel, it is message identifier and node address that this channel is seized message.
Wherein, channel seize message be only for allow neighbor node keep mourning in silence and allow host node now only with this node communication, it only comprises few information seizes to complete channel, sends other message that networking is relevant after seizing successfully again.Describedly from node, receive that networking commands and self also network, start timing, timing time is t.Extract T and n from order, according to certain random algorithm, calculate n ' (0<=n '<=n), then when n ' * T/n<t<(n '+1) * T/n, transmitting channel is seized message, and content only comprises message identifier and node address.
Step S202: described host node receives that channel seizes after message transmitting channel and seize and receive the response, described receiveing the response as receiveing the response sign and initiate node address.
Step S203: described from node receives that the channel of host node is seized and receiveed the response, initiation node address and this node address during this is receiveed the response are mated, if coupling enters step S204; If do not mate, describedly from node, wait for that next round seizes.By the method for Dynamic Selection time-out time, along with the minimizing of unknown node, the corresponding time-out time that reduced, improved networking speed like this.
Step S204: describedly from the node channel, seize successfully described networking request message, the reliability value that described networking request message comprises this from the address of node and the neighbor node that networks and this be communicated by letter with neighbor node from node of sending from node to host node.
Wherein, described step S204 also comprises: describedly from node, monitor the group-net communication of other neighbours from node and host node simultaneously, obtain this reliability value of communicating by letter with neighbor node from node (being reliability), and this neighbor node reliability value is saved to memory space.Wherein, the neighbor node number Cnt_neighbor of preservation is according to the actual conditions adjustment.This reliability value is produced by neighbor node and the signal to noise ratio of being somebody's turn to do from node, according to monitoring neighbor node, enter the network information acquisition.
Refer to Fig. 6, step S3 of the present invention specifically comprises:
Step S301: described host node is received from the networking request message of node, extracts and is somebody's turn to do from address of node and neighbours' reliability information, gives and should identify from the node distribution network according to this;
Step S302: described host node sends the networking response message, and described networking response message comprises that this identifies from the node distribution network.
Step S303: describedly from node, receive that the backward described host node of described networking response message responds the networking confirmation message, described networking confirmation message comprises the network identity that this is assigned with from node;
Step S304: describedly from node, carve at one's leisure and monitor other confirmation messages of networking from node, the neighbor node network identity using the network identity in the networking confirmation message listened to as self, and this information of neighbor nodes is saved to memory space.The Cnt_neighbor preserved is according to the actual conditions adjustment.
Refer to Fig. 7, step S4 of the present invention specifically comprises:
Step S401: the described session from node free time monitoring neighbor node, according to this neighbor node and should decide this from reliability value size between node and neighbor node from the signal to noise ratio of node, and the information of neighbor nodes that will have an optimum reliability value is saved to memory space.
Step S402: describedly from node, communicate by letter with host node and carry the reliability value information, each reliability value information comprises described from node and the reliability of a plurality of neighbor nodes on every side.Wherein, consider system communication load, the described number from node and host node number of communications and neighbor node can be according to the actual conditions adjustment.
Step S403: set up a reliability value table in described host node inside, store the reliability value that each is communicated by letter each other from node, the described value of the reliability from node size is decided by this signal to noise ratio from node and its neighbor node.
Refer to Fig. 8, step S5 of the present invention specifically comprises:
Step S501: set up a routing table in described host node inside, be used for preserving the routing iinformation of current system.
Step S502: described host node, according to the reliability in reliability value table, calculates the optimal path from host node to each from node, and regularly upgrades routing table.Host node upgrades after routing table that to need to select the suitable time be that each node of the father from node is issued to from node by routing iinformation at every turn.
Step S503: carry the message that comprises downstream routing during host node communication, one of every arrival is forwarded to message the next one route from node from node, each is described from node to upper level Father's Day point transmission message, can realize uplink communication, and up route is kept to this from node.
To be used for obtaining the information of more channels communication quality from node free time like this, and offer the foundation that host node is selected as dynamic routing, to save the action of initiatively finding route, reduce communication complexity, improve communication quality.
Described step S5 also comprises:
Step S504: carry out uplink communication failure from node according to the route of host node appointment when described, from neighbor table, search the minimum and reliability of level preferably neighbor node carry out uplink communication as next-hop node.
Step S505: when abnormal conditions appear in described host node downlink communication, the node find disconnected, and by it reliability reduction certain proportion with father node, recalculate route.
Refer to Fig. 9, the present invention also provides a kind of low-voltage power carrier communication network optimization system, comprise: host node 10 and a plurality of from node 20, described host node 10 comprises: networking commands sending module 102 and information extraction distribution module 104, described networking commands sending module 102 is for traveling through one-level from node, and using one-level and issue networking commands from node from node as relaying toward next stage, described networking commands comprises from node carries out time and the unknown node number that channel is seized needs; Described information extraction distribution module 104 is for according to the described networking request message sent from node, extracts describedly from address of node and neighbours' reliability information distribute its network identity, completes the networking of primary node and secondary node.
Describedly from node 20, comprise that channel seizes module 201 and networking request message sending module 202.Described channel is seized module 201 and is carried out channel and seize for connecing the networking commands issued according to host node; Described networking request message sending module 202 is connected in channel and seizes module 201, for to described host node, sending the networking request message.
Described host node 10 also comprises: reliability value table module 106 and router table means 108, described reliability value table module 106 is for setting up a reliability value table, and storing the reliability value that each is communicated by letter each other from node, the described value of the reliability from node size is decided by this signal to noise ratio from node and its neighbor node; Described router table means 108 is used for preserving the routing iinformation of current system, and according in described reliability value table each from node reliability each other, calculate the described optimal path from host node to each node, and regularly upgrade this routing table.
Than prior art, a kind of low-voltage power carrier communication network optimization method of the present invention and system are exhaled together by adopting channel to seize to carry out part, the method of employing Dynamic Selection time-out time is carried out time-division slot and is reported, and when idle from node with the reliable communications degree value monitoring neighbor node message mode sounding channel and report this node and neighbor node for host node selection route, according to the variation of channel quality, dynamically set up, safeguard, optimize the power line communication network route, the network coverage and network communication quality have been improved, guaranteed the reliable validity of communication network.
Here description of the invention and application is illustrative, not wants by scope restriction of the present invention in the above-described embodiments.Here the distortion of disclosed embodiment and change is possible, and for those those of ordinary skill in the art, the various parts of the replacement of embodiment and equivalence are known.Those skilled in the art are noted that in the situation that do not break away from spirit of the present invention or substantive characteristics, and the present invention can be with other form, structure, layout, ratio, and realizes with other assembly, material and parts.In the situation that do not break away from the scope of the invention and spirit, can carry out other distortion and change to disclosed embodiment here.