Method for optimizing LBD node routing based on network communication

文档序号:1966269 发布日期:2021-12-14 浏览:19次 中文

阅读说明:本技术 一种基于网络通信的优化lbd节点路由的方法 (Method for optimizing LBD node routing based on network communication ) 是由 吴项林 刘春华 张月保 孙东坡 翟岩涛 于 2021-10-18 设计创作,主要内容包括:本发明公开了一种基于网络通信的优化LBD节点路由的方法,涉及网络通信技术领域。本发明的选网方法具体包括以下步骤:S1:LBD发送寻找相邻LBA请求;S2:LBD在当前的网络中选择最优LBA入网,并记录保存到达对应LBS的信息;S3:LBD根据G3-PLC标准,发出BeaconReq命令,收集LBA Beacon应答,用于寻找其他网络的LBA;S4:当有其它网络的LBA,则LBD退出正在连接的网络的LBS,并申请加入新寻找到LBA,并记录保存到达对应LBS的信息;S5:重复S3-S4的步骤,直到遍历寻找到的所有LBA;S6:比较LBD节点到达各个LBS的信息,选择最优路径的LBS。本发明在面对多个LBS时,LBD节点可以加入路径最优的LBS网络中,从而使整个网络的LBD节点路径达到最优,提高组网及通信效率。(The invention discloses a method for optimizing LBD node routing based on network communication, and relates to the technical field of network communication. The network selection method specifically comprises the following steps: s1: LBD sends a request for finding adjacent LBA; s2: the LBD selects an optimal LBA in the current network to access the network, and records and stores the information reaching the corresponding LBS; s3: the LBD sends out Beacon Req commands according to the G3-PLC standard, collects LBA Beacon responses and is used for searching LBAs of other networks; s4: when the LBA of other networks exists, the LBD exits the LBS of the network which is being connected, applies for adding a newly found LBA, and records and stores the information reaching the corresponding LBS; s5: repeating the steps of S3-S4 until all LBAs found are traversed; s6: and comparing the information of the LBD node reaching each LBS, and selecting the LBS of the optimal path. When facing a plurality of LBSs, the LBD node can be added into the LBS network with the optimal path, so that the LBD node path of the whole network is optimal, and the networking and communication efficiency is improved.)

1. A method for optimizing LBD node routing based on network communication is characterized in that: the network selection method specifically comprises the following steps:

s1: LBD sends a request for finding adjacent LBA;

s2: the LBD selects an optimal LBA in the current network to access the network, and records and stores the information reaching the corresponding LBS;

s3: the LBD sends out Beacon Req commands according to the G3-PLC standard, collects LBA Beacon responses and is used for searching LBAs of other networks;

s4: when the LBA of other networks exists, the LBD exits the LBS of the network which is being connected, applies for adding a newly found LBA, and records and stores the information reaching the corresponding LBS;

s5: repeating the steps of S3-S4 until all LBAs found are traversed;

s6: comparing the information of the LBD node reaching each LBS, and selecting the LBS of the optimal path;

s7: after a period of random delay, returning to step S1, the LBD automatically selects the LBS with the best arrival path.

2. The method for optimizing routing of LBD node based on network communication of claim 1, wherein the record keeping information reaching the corresponding LBS includes routing weight and network ID.

3. The method for optimizing routing of LBD node based on network communication according to claim 2, wherein the information reaching the corresponding LBS is saved through flash.

4. The method for optimizing routing of LBD node based on network communication according to claim 3, wherein the reach path information in S2 and S7 is read from the information saved in the flash.

5. The method for optimizing routing of LBD nodes based on network communication of claim 3, wherein the steps of S1-S7 are performed periodically.

6. The method for optimizing routing of LBD node based on network communication of claim 1, wherein LBD numbers the newly found LBAs +1 in order of discovery precedence, and the initial LBA number is 0.

Technical Field

The invention belongs to the technical field of network communication, and particularly relates to a method for optimizing LBD node routing based on network communication.

Background

At present, the device node network access process of the G3-PLC is as follows: firstly, an LBD (LoWPAN Bootstrapping device) node sends a request for searching for an LBA (LoWPAN Bootstrapping agent) of a neighbor node in a network, and after receiving the response of the LBA, the LBD selects an optimal LBA and then initiates an access application from the LBA to an LBS (LoWPAN Bootstrapping Server);

if there is only one LBS in the network access process, the current network access process mechanism is naturally not problematic, but if there are two or more adjacent LBS, the LBA selected by the LDB may not be the optimal path due to the problems of the working timing of each LBS and the sequential network access timing of the LBA;

therefore, there is a need for improvement of the prior art to solve the above technical problems.

Disclosure of Invention

The invention aims to provide a method for optimizing LBD node routing based on network communication, which can realize automatic selection of an optimal LBS in a plurality of LBSs for connection by automatically selecting a network, and solves the problem that the existing G3-PLC device node network access process cannot select the optimal connection in the plurality of LBSs.

In order to solve the technical problems, the invention is realized by the following technical scheme:

the invention relates to a method for optimizing LBD node routing based on network communication, which comprises the following steps:

s1: LBD sends a request for finding adjacent LBA;

s2: the LBD selects an optimal LBA in the current network to access the network, and records and stores the information reaching the corresponding LBS;

s3: the LBD sends out Beacon Req commands according to the G3-PLC standard, collects LBA Beacon responses and is used for searching LBAs of other networks;

s4: when the LBA of other networks exists, the LBD exits the LBS of the network which is being connected, applies for adding a newly found LBA, and records and stores the information reaching the corresponding LBS;

s5: repeating the steps of S3-S4 until all LBAs found are traversed;

s6: comparing the information of the LBD node reaching each LBS, and selecting the LBS of the optimal path;

s7: after a period of random delay, returning to step S1, the LBD automatically selects the LBS with the best arrival path.

Through the improvement, the LBD node automatically tries to join all LBS networks within limited time, stores relevant information in each LBS network, and finally selects an optimal network access path by comparing the relevant information of each LBS.

Further, the information recorded and saved to reach the corresponding LBS includes a routing weight and a network ID.

Further, information reaching the corresponding LBS is stored through flash.

Further, the reach path information in S2 and S7 is read from the information saved in the flash.

Further, the steps of S1-S7 may be performed periodically.

Further, LBD numbers the newly found LBAs +1 in order of the order of discovery, and the first LBA is numbered 0.

The invention has the following beneficial effects: when a plurality of LBSs exist, the LBD node can be ensured to be added into the LBS network with the optimal path, so that the LBD node routing of the whole network is optimal, and the networking and communication efficiency is improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.

FIG. 1 is a flow chart of the present invention.

Detailed Description

The technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

Referring to fig. 1, the present invention is a method for optimizing LBD node routing based on network communication, and the network selection method specifically includes the following steps:

s1: LBD sends a request for finding adjacent LBA;

s2: the LBD selects an optimal LBA to access the network in the current network, records and stores information reaching the corresponding LBS, wherein the information kept by the LBD comprises a routing weight and a network ID, and can also keep other network related information which is read and stored in a flash;

s3: the LBD sends out Beacon Req commands according to the G3-PLC standard, collects LBA Beacon responses and is used for searching LBAs of other networks;

s4: when the LBA of other networks exists, the LBD exits the LBS of the network which is being connected, applies for adding a newly found LBA, records and stores the information reaching the corresponding LBS, and stores the information in the flash;

s5: repeating the steps of S3-S4 until all the found LBAs are traversed, the LBD numbering the newly found LBAs by +1 in turn in the found sequence, and the initial LBA number is 0 (and i in fig. 1, where n refers to the total number of searched LBAs);

s6: comparing the information of the LBD node reaching each LBS, and selecting the LBS of the optimal path;

s7: after a period of random delay, returning to step S1, the LBD automatically selects the LBS with the best arrival path.

It should be noted that, in the actual usage process, in order to ensure the reliability of the network selection mechanism, the steps of S1-S7 may be periodically executed, so as to discover the new LBA in time, although the method is not limited to G3-PLC, and is also applicable to other technologies and application scenarios with similar technical defects.

The above automatic network selection method will be described in more detail with reference to specific embodiments below: after the LBD is powered on, initializing the maximum time for executing a G3-PLC adjacent station area node network selection mechanism; reading related information such as the route of each LBS stored in the flash, and selecting an optimal LBS to initiate a network access application; the LBD sends out Beacon Req commands according to the G3-PLC standard, and collects LBA Beacon responses; traversing the LBA Beacon response list, applying for network access through the LBA of the LBS in sequence, and storing information such as the LBD route which is successfully accessed to the network in the flash after the network access is finished; and after the maximum time of the network selection mechanism of the G3-PLC adjacent station area nodes is overtime, selecting the optimal LBS to apply for network access by comparing the routing information of each LBS stored in the flash.

Finally, the acronyms or techniques used in the present disclosure are intended to be interpreted accordingly to facilitate a more thorough understanding of the invention;

LBA, proxy node that has already been networked;

LBD, non-networked node;

LBS, central point of network (concentrator or network block);

flash, storage block of network node;

G3-PLC standard, a standard for smart grids;

BeaconReq, an instruction for determining whether a network exists on a channel;

LBA Beacon, block to respond to Beacon req.

The above are only preferred embodiments of the present invention, and the present invention is not limited thereto, and any modification, equivalent replacement, and improvement made to the technical solutions described in the above embodiments, and to some of the technical features thereof, are included in the scope of the present invention.

6页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种网络切换方法及终端

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!