CN102638820B - Ad Hoc network link stability prediction method - Google Patents
Ad Hoc network link stability prediction method Download PDFInfo
- Publication number
- CN102638820B CN102638820B CN201210080182.9A CN201210080182A CN102638820B CN 102638820 B CN102638820 B CN 102638820B CN 201210080182 A CN201210080182 A CN 201210080182A CN 102638820 B CN102638820 B CN 102638820B
- Authority
- CN
- China
- Prior art keywords
- node
- stability
- link
- message
- routing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 30
- 238000004364 calculation method Methods 0.000 claims abstract description 16
- 238000013097 stability assessment Methods 0.000 claims abstract description 13
- 238000011156 evaluation Methods 0.000 claims description 56
- 238000001514 detection method Methods 0.000 claims description 25
- 238000012360 testing method Methods 0.000 claims description 23
- 230000005540 biological transmission Effects 0.000 claims description 12
- 238000001994 activation Methods 0.000 claims description 9
- 238000005070 sampling Methods 0.000 claims description 8
- 230000008569 process Effects 0.000 claims description 7
- 230000004913 activation Effects 0.000 claims description 6
- 238000013138 pruning Methods 0.000 claims description 6
- 230000008439 repair process Effects 0.000 claims description 6
- 241001659321 ANME-2 cluster Species 0.000 claims description 3
- 241000605059 Bacteroidetes Species 0.000 claims description 3
- 230000009471 action Effects 0.000 claims description 3
- 238000004891 communication Methods 0.000 claims description 3
- 238000012217 deletion Methods 0.000 claims description 3
- 230000037430 deletion Effects 0.000 claims description 3
- 238000011144 upstream manufacturing Methods 0.000 claims description 3
- 238000013459 approach Methods 0.000 claims 1
- 238000005265 energy consumption Methods 0.000 abstract description 2
- 238000012854 evaluation process Methods 0.000 abstract 1
- 235000008694 Humulus lupulus Nutrition 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 238000007619 statistical method Methods 0.000 description 1
Landscapes
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种Ad?Hoc网络中链路稳定性预测方法。其步骤为:第一步,链路直接稳定性评估;第二步,链路间接稳定性评估;第三步,链路综合稳定性评估;第四步,基于稳定性的组播路由协议。解决了以现有的链路稳定性作为路由标准的组播路由协议并不能很好地适应高移动性、高干扰等不稳定环境的问题。本发明计算简单,评估链路稳定性过程运算量低,网络的整体性能稳定、适应性强,对硬件要求不高,能耗小。<pb pnum="1" />
The invention discloses an Ad? Link Stability Prediction Method in Hoc Networks. The steps are: first step, link direct stability assessment; second step, link indirect stability assessment; third step, link comprehensive stability assessment; fourth step, multicast routing protocol based on stability. It solves the problem that the multicast routing protocol that takes the existing link stability as the routing standard cannot well adapt to unstable environments such as high mobility and high interference. The invention has simple calculation, low calculation amount in the link stability evaluation process, stable overall performance of the network, strong adaptability, low requirement on hardware, and low energy consumption. <pb pnum="1"/>
Description
技术领域 technical field
本发明属于移动AdHoc网络(MANET)领域,具体涉及到对链路稳定性的AdHoc网络中链路稳定性预测方法。The invention belongs to the field of mobile AdHoc network (MANET), and in particular relates to a link stability prediction method in the AdHoc network for link stability.
背景技术 Background technique
移动AdHoc网络是一种动态可重构的无线网络,每个节点同时充当主机和路由器。作为主机,节点需要运行其自身的应用;作为路由器,节点负责根据特定路由协议对数据进行转发。AdHoc网络广泛应用于灾害救援(如地震、火灾)以及分布式协同运算等场合。Mobile AdHoc network is a dynamically reconfigurable wireless network, each node acts as a host and a router at the same time. As a host, a node needs to run its own application; as a router, a node is responsible for forwarding data according to a specific routing protocol. AdHoc networks are widely used in disaster relief (such as earthquakes, fires) and distributed collaborative computing.
在实际应用中,由于一个节点经常需要向多个节点发送相同的数据,因此组播路由协议应运而生。然而,由于移动adhoc网络具有诸如节点的随机移动、有限的资源、不可靠的信道等特点,传统的组播协议并不能很好地适应于MANET网络环境。In practical applications, since a node often needs to send the same data to multiple nodes, multicast routing protocols emerge as the times require. However, due to the characteristics of mobile adhoc network such as random movement of nodes, limited resources, and unreliable channels, traditional multicast protocols cannot be well adapted to MANET network environment.
节点的随机移动导致网络拓扑结构的动态变化,增加了重新路由的频率,进而影响了网络性能。因此,需要一种对链路稳定性的评估方法,并以此为评估指标,在路由选路之时避开不稳定的链路,这无疑会极大地提高网络的整体性能。The random movement of nodes leads to dynamic changes in network topology, which increases the frequency of rerouting and affects network performance. Therefore, there is a need for an evaluation method for link stability, which can be used as an evaluation index to avoid unstable links during route selection, which will undoubtedly greatly improve the overall performance of the network.
目前在adhoc领域中对链路稳定性的研究并不多,大部分研究假定网络环境是常量,仅仅对节点的移动性进行研究,如借助GPS对节点的位置及速度向量进行量化、利用统计学方法对节点移动行为建模并预测节点下一时刻的移动行为等。然而,在实际应用中,并不是每个节点都有GPS模块,而且GPS模块在室内环境中有很大的误差,而统计学方法基于概率论对节点进行建模,有一定的局限性而且准确性有待商榷。另外,在现有的研究中,无一例外,均是站在检测节点的角度,对检测节点与被测节点之间的链路进行评估,并没有站在被测节点的角度对其所处的链路环境进行稳定性评估,因此现有的链路稳定性预测方法具有很大的局限性,效果并不理想。相应的,以链路稳定性作为路由标准的组播路由协议并不能很好地适应高移动性、高干扰等不稳定环境,因此,需要一种更合理的链路稳定性评估方法以及相应的组播路由协议来解决以上问题。At present, there are not many studies on link stability in the adhoc field. Most studies assume that the network environment is constant, and only study the mobility of nodes, such as quantifying the position and velocity vector of nodes with the help of GPS, and using statistics The method models the node's mobile behavior and predicts the next moment's mobile behavior of the node. However, in practical applications, not every node has a GPS module, and the GPS module has a large error in the indoor environment, and the statistical method is based on the probability theory to model the nodes, which has certain limitations and is accurate Sex is debatable. In addition, in the existing research, without exception, they all evaluate the link between the detection node and the node under test from the perspective of the detection node, and do not stand on the point of view of the node under test. Therefore, the existing link stability prediction methods have great limitations and the effect is not ideal. Correspondingly, multicast routing protocols that take link stability as the routing standard cannot well adapt to unstable environments such as high mobility and high interference. Therefore, a more reasonable link stability evaluation method and corresponding Multicast routing protocol to solve the above problems.
发明内容 Contents of the invention
本发明的目的是提供一种AdHoc网络中链路稳定性预测方法,以解决adhoc网络中因节点移动而导致的链路频繁断路、路由不稳定的问题,提高网络的性能(如增加包的投递率、减小端对端延时等)以适应高移动性环境。The purpose of the present invention is to provide a link stability prediction method in an AdHoc network, to solve the problems of frequently disconnected links and unstable routes caused by node movement in the adhoc network, and improve the performance of the network (such as increasing the delivery of packets) Rate, reduce end-to-end delay, etc.) to adapt to high mobility environment.
为此,本发明采用的技术方案是:For this reason, the technical scheme that the present invention adopts is:
一种AdHoc网络中链路稳定性预测方法,它通过对连续接收的信号强度取样,以现实地逼近网络的真实环境,针对检测节点与被测节点,分别评估其所处环境的各条链路的稳定性状况,综合考虑检测节点与被测节点对,计算综合稳定性值,并以此作为稳定性组播路由协议的选路标准,具体步骤为:A link stability prediction method in an AdHoc network, which realistically approximates the real environment of the network by sampling continuously received signal strength, and evaluates each link in the environment for the detection node and the node under test respectively The stability of the stability status, comprehensively consider the detection node and the node under test, calculate the comprehensive stability value, and use it as the routing standard of the stable multicast routing protocol, the specific steps are as follows:
第一步,对链路直接稳定性评估The first step is to directly assess the stability of the link
节点通过定时发送hello消息来维持邻居关系,当检测节点收到其邻居节点发送的hello消息时,检测节点为每一个邻居节点即被测节点维持一个接收信号强度即接收功率列表;The node maintains the neighbor relationship by regularly sending hello messages. When the detection node receives the hello message sent by its neighbor node, the detection node maintains a received signal strength or received power list for each neighbor node, that is, the node under test;
第二步,链路间接稳定性评估The second step, link indirect stability assessment
被测节点采用与第一步同样的方法对其邻居节点的稳定性进行评估;由于该稳定性旨在对被测节点所处环境进行评估,因此剔除移动性特别高的节点之后,对其他节点稳定性取均值,均值越低,则被测节点所处的环境越稳定,反之,环境越不稳定;The tested node uses the same method as the first step to evaluate the stability of its neighbor nodes; since this stability is aimed at evaluating the environment in which the tested node is located, after removing the nodes with particularly high mobility, other nodes Stability takes the mean value, the lower the mean value, the more stable the environment of the tested node, and vice versa, the more unstable the environment;
第三步,链路综合稳定性评估,即将链路的直接与间接稳定性评估值采用加权求和的方法综合计算;The third step is the comprehensive stability assessment of the link, which is to comprehensively calculate the direct and indirect stability assessment values of the link using the method of weighted summation;
第四步,基于稳定性的组播路由协议,基于稳定性的组播路由协议以稳定性作为选路标准。The fourth step is a stability-based multicast routing protocol. The stability-based multicast routing protocol uses stability as a route selection criterion.
所述第一步中链路直接稳定性评估值:The link direct stability evaluation value in the first step:
根据Friis自由空间传播模型,接收功率PRX与发送功率的比值PTX与传输距离R的平方成反比,即
假定接收功率的下限为Pmin,即当接收功率低于此值时,会产生较高的误码率,导致数据包的重传,相应地,此时的传输距离为Rmax;所有节点的Pmin初始化为一固定值,当某个邻居节点移出其通信范围,认为上一时刻成功接收时的接收功率近似等于此时的Pmin,因此用上一时刻的接受功率更新该节点的Pmin;Assume that the lower limit of the received power is P min , that is, when the received power is lower than this value, a higher bit error rate will be generated, resulting in the retransmission of data packets, correspondingly, the transmission distance at this time is R max ; P min is initialized to a fixed value. When a neighbor node moves out of its communication range, it is considered that the received power at the time of successful reception at the previous moment is approximately equal to the current P min at this time, so update the node's P min with the received power at the previous time ;
假定检测节点i对被测节点j接收功率的第n次取样值为Pn ij,则根据Friis自由空间传播模型,有又由于其中PTX为节点的发送功率,Rn ij为第n次功率取样时发送节点与接收节点间的距离,Pmin i为检测节点i的最小接收功率,Rmax为接收功率为Pmin i时相应的最大传输距离,因此,有 Assuming that the nth sampling value of the received power of the detected node j by the detection node i is P n ij , then according to the Friis free space propagation model, we have And because of Among them, P TX is the transmission power of the node, R n ij is the distance between the sending node and the receiving node at the nth power sampling, P min i is the minimum receiving power of the detection node i, and R max is when the receiving power is P min i The corresponding maximum transmission distance, therefore, has
如果节点保持相对距离变化缓慢,则认为二者之间的链路稳定性好,故对上式取方差作为检测节点i与被测节点j之间链路的直接稳定性评估值,即:If the relative distance between the nodes keeps changing slowly, it is considered that the link stability between the two is good, so the variance of the above formula is taken as the direct stability evaluation value of the link between the detection node i and the measured node j, namely:
由此得到了链路直接稳定性评估值的计算公式,评估值越小,链路稳定性越好。Thus, the calculation formula of the direct link stability evaluation value is obtained, and the smaller the evaluation value is, the better the link stability is.
所述第二步中链路间接稳定性评估值:The link indirect stability evaluation value in the second step:
假设被测节点X有n个邻居(Y1、Y2……Yn),节点X对其邻居节点YK稳定性评估值计算与第一步相同,即:Assuming that the node X under test has n neighbors (Y 1 , Y 2 ... Y n ), the calculation of the stability evaluation value of node X to its neighbor node Y K is the same as the first step, namely:
由于被测节点X有n个邻居,且间接链路稳定性是对被测节点X所处环境的评估,因此,X节点需要计算其n个邻居的稳定性评估值,即SX(Y1)、SX(Y2)...SX(Yn);为了消除最不稳定节点的影响,对这n个稳定性排序并取其最小的0.5n个值,假设为SX(YT1),SX(YT2),...SX(YT0.5n),然后对这0.5n个值取均值作为被测节点X所处环境的评估值,即链路的间接稳定性评估值:Since the node X under test has n neighbors, and the indirect link stability is an evaluation of the environment of the node X under test, therefore, node X needs to calculate the stability evaluation value of its n neighbors, that is, S X (Y 1 ), S X (Y 2 )...S X (Y n ); in order to eliminate the influence of the most unstable nodes, sort these n stability nodes and take the smallest 0.5n values, assuming S X (Y T1 ), S X (Y T2 ), ... S X (Y T0.5n ), and then take the average of these 0.5n values as the evaluation value of the environment of the tested node X, that is, the indirect stability of the link The assessed value:
in_SX=avg(SX(YT1),SX(YT2),…SX(YT0.5n))in_S X =avg(S X (Y T1 ), S X (Y T2 ), ... S X (Y T0.5n ))
由此得到了链路间接稳定性评估值的计算公式,评估值越小,被测节点所处的网络环境越稳定。Thus, the calculation formula of the indirect stability evaluation value of the link is obtained. The smaller the evaluation value is, the more stable the network environment of the node under test is.
所述第三步中评估检测节点i与被测节点j间链路的综合稳定性:In the third step, evaluate the comprehensive stability of the link between the detection node i and the measured node j:
Sij=w1*d_Sij+w2*in_Sj(w1+w2=1)S ij =w 1 *d_S ij +w 2 *in_S j (w 1 +w 2 =1)
被测节点j既充当发送者又充当接受者。The node j under test acts as both sender and receiver.
所述第四步中基于稳定性的组播路由协议以稳定性作为选路标准,当节点产生路由请求消息时,在路由请求消息中附加一个特定的域以表征经过的路径的稳定性评估值;一条路径的稳定性评估值等于所经过的所有链路的稳定性评估最大值,即一条路径的稳定性取决于最不稳定的一段链路;当节点收到路由回复消息时,从所有的路径中选择一条稳定性评估值最小的路径予以激活。In the fourth step, the stability-based multicast routing protocol uses stability as the routing criterion. When a node generates a routing request message, a specific field is added to the routing request message to represent the stability evaluation value of the path passed. ; The stability evaluation value of a path is equal to the maximum value of the stability evaluation of all the links it passes through, that is, the stability of a path depends on the most unstable link; when the node receives the routing reply message, from all Among the paths, a path with the smallest stability evaluation value is selected to be activated.
具体过程为:The specific process is:
A.组成员加入A. Group members join
节点加入组播组需要经过三个阶段:路由请求阶段、路由回复阶段和路由激活阶段当一个节点要加入组播组或者有消息向组播组发送,但其并不是组成员而且没有通向组播树的路由时,它发送一个RREQ消息;消息的目的地址域dest_addr是多播组的地址,而源地址source_addr是该节点自己的地址;在RREQ消息增加一个额外的Path_Stable域以记录节点所经过的路径的稳定性评估值;A node needs to go through three stages to join a multicast group: route request stage, route reply stage and route activation stage. When broadcasting the route of the tree, it sends a RREQ message; the destination address field dest_addr of the message is the address of the multicast group, and the source address source_addr is the address of the node itself; an additional Path_Stable field is added to the RREQ message to record the node passed The stability evaluation value of the path of ;
当一个节点收到RREQ消息后,首先检查是否已经处理过相同的RREQ,若是则丢弃,否则根据以上提出的链路稳定性评估方法计算上一跳链路的综合稳定值;然后将计算出来的稳定值与RREQ中Path_Stable域比较,将Path_Stable域更新为二者中的较大值,然后继续转发该RREQ消息;When a node receives a RREQ message, it first checks whether the same RREQ has been processed, and if so, discards it, otherwise it calculates the comprehensive stability value of the last hop link according to the link stability evaluation method proposed above; then the calculated Compare the stable value with the Path_Stable field in the RREQ, update the Path_Stable field to the larger value of the two, and then continue to forward the RREQ message;
如果一个节点是组播组成员或者有通向组播树的路由,收到RREQ后,将该RREQ缓存一段时间,由于在这期间可能有同样的RREQ消息自不同的路径到达该节点,因此该节点选择Path_Stable域最小的RREQ消息发送路由回复消息RREP;If a node is a member of a multicast group or has a route leading to a multicast tree, after receiving the RREQ, it will cache the RREQ for a period of time, because the same RREQ message may arrive at the node from different paths during this period, so the The node selects the RREQ message with the smallest Path_Stable field to send the routing reply message RREP;
当一个中间节点收到RREP消息时,基于该RREP创建一个多播路由表条目同时标记该条目状态为未激活即Activated_Flag未置位,同时更新其Path_Stable域,然后继续沿着RREQ消息创建的反向路径转发RREP消息;When an intermediate node receives an RREP message, it creates a multicast routing table entry based on the RREP and marks the entry status as inactive, that is, Activated_Flag is not set, and updates its Path_Stable field, and then continues along the reverse direction created by the RREQ message The path forwards the RREP message;
一个节点可能收到多个RREP消息,但是它只对更新的即RREP序列号较大或者更稳定的Path_Stable域较小RREP消息进行处理,其他的RREP消息简单地丢弃;A node may receive multiple RREP messages, but it only processes the updated RREP messages with larger RREP sequence numbers or smaller RREP messages with more stable Path_Stable fields, and simply discards other RREP messages;
当RREP消息到达源节点即请求加入组播组的节点时,源节点缓存一段时间,从收到的多个RREP消息中选择一个Path_Stable域最小的进行路由激活即MACT消息,即:将在路由回复阶段创建的路由条目状态标记为激活即Activated_Flag置位,其他未激活的路由条目由于超时而由相应节点删除;When the RREP message arrives at the source node, that is, the node requesting to join the multicast group, the source node caches it for a period of time, and selects a route activation message with the smallest Path_Stable field from the received multiple RREP messages, that is, the MACT message, that is, it will reply in the route The status of the routing entries created in the stage is marked as activated, that is, the Activated_Flag is set, and other inactive routing entries are deleted by the corresponding nodes due to timeout;
B.组成员离开B. Group members leave
当一个组成员希望离开组播树时,如果它是其他节点的路由节点则不采取任何措施。如果它是一个叶子节点,则向其上一跳单播一个剪枝消息Prune,由其上一跳节点删除该后继节点对应的路由条目,如果删除之后导致上一跳节点也变成叶子节点,则继续向其上一跳发送剪枝消息执行剪枝操作;When a group member wishes to leave the multicast tree, no action is taken if it is a routing node for other nodes. If it is a leaf node, a prune message Prune is unicast to its previous hop, and its previous hop node deletes the routing entry corresponding to the successor node. If the deletion causes the previous hop node to become a leaf node, Then continue to send pruning messages to its previous hop to perform pruning operations;
C.链路断路C. Link break
当组播树上发生断路时,发生断路的分支会变得无效;此时,上游节点从其路由条目中删除无效的节点,然后下游节点负责链路修复;下游节点发送RREQ并附加一个多播组重建消息进行断路修复;在多播组重建消息中包含多播组跳数域Group_Hop_Cnt以记录断路节点距离树根节点的跳数,只有跳计数不大于该计数的节点才能响应RREQ消息,这样避免了路由环路的产生;当收到RREP消息后,路由激活过程与组成员加入部分所述相同;When a circuit break occurs on the multicast tree, the branch where the circuit break occurs becomes invalid; at this time, the upstream node deletes the invalid node from its routing entry, and then the downstream node is responsible for link repair; the downstream node sends RREQ and appends a multicast The group reconstruction message is used for circuit break repair; the multicast group reconstruction message contains the multicast group hop field Group_Hop_Cnt to record the hops between the disconnected node and the root node of the tree, and only the nodes whose hop count is not greater than this count can respond to the RREQ message, so as to avoid The routing loop generation is eliminated; when the RREP message is received, the routing activation process is the same as that described in the group member joining section;
D.维护组播树D. Maintain the multicast tree
每个节点定时发送hello消息以维护邻居关系并更新邻居节点的接收功率列表;除此之外,每个组播树的树根节点定时发送GroupHello消息,同时树根节点序列号增1;当组播树成员收到GroupHello消息时,发送MACT消息进行路由激活,由此保证每个节点能够获取组播树最新的路由信息;Each node regularly sends hello messages to maintain the neighbor relationship and update the receiving power list of neighbor nodes; in addition, the root node of each multicast tree regularly sends GroupHello messages, and the sequence number of the root node increases by 1; when the group When the broadcast tree members receive the GroupHello message, they send a MACT message to activate the route, thus ensuring that each node can obtain the latest routing information of the multicast tree;
E.组播树合并E. Multicast tree merging
在移动环境下,由于节点的移动性,adhoc网络可能会被分成几个互不连通的区域,每个区域维护其自己的组播树;由于节点的移动性,两个或者多个不连通的区域可能会再次连通,为了消除混乱,拥有最大序列号的树根节点成为新组播树的树根节点,而其他树根节点停止发送GroupHello消息并等待组播树的重建。In the mobile environment, due to the mobility of nodes, the adhoc network may be divided into several disconnected areas, and each area maintains its own multicast tree; due to the mobility of nodes, two or more disconnected The area may be connected again. To eliminate confusion, the tree root node with the largest sequence number becomes the tree root node of the new multicast tree, while other tree root nodes stop sending GroupHello messages and wait for the reconstruction of the multicast tree.
本发明采用的方法与现有技术相比有如下优点:Compared with the prior art, the method adopted in the present invention has the following advantages:
(1)本发明基于连续接收消息的信号强度进行计算,当有新节点加入时,只有当新节点与检测节点保持一段时间的邻居关系时,该节点才能纳入链路稳定性的计算范围内,减少了因新节点加入而导致的计算不稳定情况,具有较高的适应性和稳定性。(1) The present invention calculates based on the signal strength of continuously received messages. When a new node joins, only when the new node maintains a neighbor relationship with the detection node for a period of time, the node can be included in the calculation range of link stability. It reduces the calculation instability caused by the addition of new nodes, and has high adaptability and stability.
(2)与单纯对节点移动速度进行评估的方法相比,本发明不借助其他第三方模块(如GPS),且准确性较高。(2) Compared with the method of simply evaluating the moving speed of nodes, the present invention does not rely on other third-party modules (such as GPS), and has higher accuracy.
(3)与仅对检测节点进行稳定性评估的方法不同,本发明从检测节点与被测节点两个角度进行链路稳定性评估,评估结果全面、可信且适应性好。(3) Different from the method of only evaluating the stability of the detection node, the present invention evaluates the link stability from two angles of the detection node and the node under test, and the evaluation result is comprehensive, credible and adaptable.
(4)本发明计算简单,评估链路稳定性过程运算量低,对硬件要求不高,能耗小。(4) The present invention has simple calculation, low calculation amount in the process of evaluating link stability, low requirement on hardware, and low energy consumption.
(5)将链路稳定性评估方法应用于基于稳定性的组播路由协议中,使得本发明能够广泛应用于实际需求中,提高网络的稳定性,进而提高工作效率。(5) Applying the link stability evaluation method to the stability-based multicast routing protocol enables the present invention to be widely used in actual needs, improves network stability, and then improves work efficiency.
附图说明 Description of drawings
图1是本发明实施例中链路稳定性计算示意图。FIG. 1 is a schematic diagram of link stability calculation in an embodiment of the present invention.
图2是基于稳定性的组播路由协议中组成员加入过程流程图。Fig. 2 is a flow chart of the group member joining process in the stability-based multicast routing protocol.
具体实施方式 detailed description
下面给出本发明的一个实施例并结合附图对本发明做进一步地说明。An embodiment of the present invention is given below and the present invention will be further described in conjunction with the accompanying drawings.
图1、图2中Figure 1 and Figure 2
(1)链路直接稳定性评估(1) Direct link stability assessment
根据Friis自由空间传播模型,接收功率(PRX)与发送功率的比值(PTX)与传输距离(R)的平方成反比,即
在本发明中,假定接收功率的下限为Pmin,即当接收功率低于此值时,会产生较高的误码率,导致数据包的重传,相应地,此时的传输距离为Rmax。由于不同节点所处的环境不同,因此Pmin的取值不同,在本发明中,所有节点的Pmin初始化为一固定值,当某个邻居节点移出其通信范围,可以认为上一时刻成功接收时的接收功率近似等于此时的Pmin,因此用上一时刻的接受功率更新该节点的Pmin。In the present invention, it is assumed that the lower limit of the received power is P min , that is, when the received power is lower than this value, a higher bit error rate will be generated, resulting in the retransmission of the data packet. Correspondingly, the transmission distance at this time is R max . Due to the different environments of different nodes, the value of P min is different. In the present invention, the P min of all nodes is initialized to a fixed value. When a neighbor node moves out of its communication range, it can be considered that the last time successfully received The received power at time is approximately equal to the P min at this time, so the received power at the previous time is used to update the P min of the node.
如附图1(a)所示,假定检测节点i对被测节点j接收功率的第n次取样值为Pn ij,则根据Friis自由空间传播模型,有又由于其中PTX为节点的发送功率,Rn ij为第n次功率取样时发送节点与接收节点间的距离,Pmin i为检测节点i的最小接收功率,Rmax为接收功率为Pmin i时相应的最大传输距离,因此,有 As shown in Figure 1(a), assuming that the nth sampling value of the received power of the detected node j by the detection node i is P n ij , then according to the Friis free-space propagation model, we have And because of Among them, P TX is the transmission power of the node, R n ij is the distance between the sending node and the receiving node at the nth power sampling, P min i is the minimum receiving power of the detection node i, and R max is when the receiving power is P min i The corresponding maximum transmission distance, therefore, has
如果节点保持相对距离变化缓慢,则可以认为二者之间的链路稳定性好,故可对上式取方差作为检测节点i与被测节点j之间链路的直接稳定性评估值。即:If the relative distance between the nodes changes slowly, it can be considered that the link stability between the two is good, so the variance of the above formula can be taken as the direct stability evaluation value of the link between the detection node i and the measured node j. which is:
由此得到了链路直接稳定性评估值的计算公式。评估值越小,链路稳定性越好。From this, the calculation formula of the link direct stability evaluation value is obtained. The smaller the evaluation value, the better the link stability.
(2)链路间接稳定性评估(2) Link indirect stability assessment
如附图1(b)所示,被测节点X有n个邻居(Y1、Y2……Yn)。节点X对其邻居节点YK稳定性评估值计算与(1)相同,即:As shown in Figure 1(b), the node X under test has n neighbors (Y 1 , Y 2 ...Y n ). The calculation of K stability evaluation value of node X to its neighbor node Y is the same as (1), that is:
由于被测节点X有n个邻居,且间接链路稳定性是对被测节点X所处环境的评估,因此,X节点需要计算其n个邻居的稳定性评估值,即SX(Y1)、SX(Y2)...SX(Yn)。为了消除最不稳定节点(链路)的影响,本发明对这n个稳定性排序并取其最小的0.5n个值,假设为SX(YT1),SX(YT2),...SX(YT0.5n),然后对这0.5n个值取均值作为被测节点X所处环境的评估值,即链路的间接稳定性评估值:Since the node X under test has n neighbors, and the indirect link stability is an evaluation of the environment of the node X under test, therefore, node X needs to calculate the stability evaluation value of its n neighbors, that is, S X (Y 1 ), S X (Y 2 )...S X (Y n ). In order to eliminate the influence of the most unstable node (link), the present invention sorts the n stability and takes the smallest 0.5n values, assuming S X (Y T1 ), S X (Y T2 ), .. .S X (Y T0.5n ), and then take the mean value of these 0.5n values as the evaluation value of the environment of the tested node X, that is, the indirect stability evaluation value of the link:
in_SX=avg(SX(YT1),SX(YT2),…SX(YT0.5n))in_S X =avg(S X (Y T1 ), S X (Y T2 ), ... S X (Y T0.5n ))
由此得到了链路间接稳定性评估值的计算公式。评估值越小,被测节点所处的网络环境越稳定。Thus, the calculation formula of link indirect stability evaluation value is obtained. The smaller the evaluation value, the more stable the network environment where the tested node is located.
(3)链路综合稳定性评估(3) Comprehensive link stability assessment
综合链路的直接、间接稳定性值,本发明采用如下方法评估检测节点i与被测节点j间链路的综合稳定性:The direct and indirect stability value of comprehensive link, the present invention adopts following method to evaluate the comprehensive stability of link between detection node i and measured node j:
Sij=w1*d_Sij+w2*in_Sj(w1+w2=1)S ij =w 1 *d_S ij +w 2 *in_S j (w 1 +w 2 =1)
可以看出,本发明在计算稳定性评估值的时候,被测节点j既充当发送者又充当接受者。It can be seen that when the present invention calculates the stability evaluation value, the measured node j acts as both a sender and a receiver.
(4)基于稳定性的组播路由协议(4) Multicast routing protocol based on stability
A.组成员加入A. Group members join
由附图2可以看出,节点加入组播组需要经过三个阶段:路由请求阶段、路由回复阶段和路由激活阶段。It can be seen from Fig. 2 that a node needs to go through three stages to join a multicast group: a route request stage, a route reply stage and a route activation stage.
当一个节点要加入组播组或者有消息向组播组发送,但其并不是组成员而且没有通向组播树的路由时,它发送一个RREQ消息。消息的目的地址域dest_addr是多播组的地址,而源地址source_addr是该节点自己的地址。在本发明中,RREQ消息增加了一个额外的Path_Stable域以记录节点所经过的路径的稳定性评估值。When a node wants to join a multicast group or has a message to send to a multicast group, but it is not a member of the group and has no route to the multicast tree, it sends a RREQ message. The destination address field dest_addr of the message is the address of the multicast group, and the source address source_addr is the address of the node itself. In the present invention, an additional Path_Stable field is added to the RREQ message to record the stability evaluation value of the path that the node passes.
当一个节点收到RREQ消息后,首先检查是否已经处理过相同的RREQ,若是则丢弃,否则根据以上提出的链路稳定性评估方法计算上一跳链路的综合稳定值。然后将计算出来的稳定值与RREQ中Path_Stable域比较,将Path_Stable域更新为二者中的较大值,然后继续转发该RREQ消息。When a node receives a RREQ message, it first checks whether the same RREQ has been processed, and discards it if so, otherwise calculates the comprehensive stability value of the last-hop link according to the link stability evaluation method proposed above. Then compare the calculated stable value with the Path_Stable field in the RREQ, update the Path_Stable field to the larger value of the two, and then continue to forward the RREQ message.
如果一个节点是组播组成员或者有通向组播树的路由,收到RREQ后,将该RREQ缓存一段时间,由于在这期间可能有同样的RREQ消息自不同的路径到达该节点,因此该节点选择Path_Stable域最小的RREQ消息发送路由回复消息RREP。If a node is a member of a multicast group or has a route leading to a multicast tree, after receiving the RREQ, it will cache the RREQ for a period of time, because the same RREQ message may arrive at the node from different paths during this period, so the The node selects the RREQ message with the smallest Path_Stable field to send the routing reply message RREP.
当一个中间节点收到RREP消息时,基于该RREP创建一个多播路由表条目同时标记该条目状态为未激活(Activated_Flag未置位),同时更新其Path_Stable域,然后继续沿着RREQ消息创建的反向路径转发RREP消息。When an intermediate node receives the RREP message, it creates a multicast routing table entry based on the RREP and marks the entry state as inactive (Activated_Flag is not set), and updates its Path_Stable field at the same time, and then continues along the reverse path created by the RREQ message Forward the RREP message to the path.
一个节点可能收到多个RREP消息,但是它只对更新的(RREP序列号较大)或者更稳定的(Path_Stable域较小)RREP消息进行处理,其他的RREP消息简单地丢弃。A node may receive multiple RREP messages, but it only processes the updated (larger RREP sequence number) or more stable (smaller Path_Stable field) RREP messages, and simply discards other RREP messages.
当RREP消息到达源节点(请求加入组播组的节点)时,源节点缓存一段时间,从收到的多个RREP消息中选择一个Path_Stable域最小的进行路由激活(MACT消息),即:将在路由回复阶段创建的路由条目状态标记为激活(Activated_Flag置位),其他未激活的路由条目由于超时而由相应节点删除。When the RREP message arrives at the source node (the node requesting to join the multicast group), the source node caches it for a period of time, and selects a Path_Stable field minimum for routing activation (MACT message) from multiple RREP messages received. The status of the routing entries created in the routing reply stage is marked as activated (Activated_Flag is set), and other inactive routing entries are deleted by the corresponding nodes due to timeout.
B.组成员离开B. Group members leave
当一个组成员希望离开组播树时,如果它是其他节点的路由节点则不采取任何措施。如果它是一个叶子节点,则向其上一跳单播一个剪枝消息Prune,由其上一跳节点删除该后继节点对应的路由条目,如果删除之后导致上一跳节点也变成叶子节点,则继续向其上一跳发送剪枝消息执行剪枝操作。When a group member wishes to leave the multicast tree, no action is taken if it is a routing node for other nodes. If it is a leaf node, a prune message Prune is unicast to its previous hop, and its previous hop node deletes the routing entry corresponding to the successor node. If the deletion causes the previous hop node to become a leaf node, Then continue to send a pruning message to the previous hop to perform the pruning operation.
C.链路断路C. Link break
当组播树上发生断路时,发生断路的分支会变得无效。此时,上游节点从其路由条目中删除无效的节点,然后下游节点负责链路修复。下游节点发送RREQ并附加一个多播组重建消息进行断路修复。在多播组重建消息中包含多播组跳数域(Group_Hop_Cnt)以记录断路节点距离树根节点的跳数,只有跳计数不大于该计数的节点才能响应RREQ消息,这样避免了路由环路的产生。当收到RREP消息后,路由激活过程与组成员加入部分所述相同。When a disconnection occurs on the multicast tree, the branch where the disconnection occurs becomes invalid. At this point, the upstream node removes the invalid node from its routing entry, and then the downstream node is responsible for link repair. The downstream node sends RREQ and attaches a multicast group reconstruction message to repair the broken circuit. Include the multicast group hop count field (Group_Hop_Cnt) in the multicast group reconstruction message to record the hop count of the disconnected node from the root node of the tree, and only the nodes whose hop count is not greater than the count can respond to the RREQ message, thus avoiding the routing loop produce. After receiving the RREP message, the routing activation process is the same as that described in the group member joining section.
D.维护组播树D. Maintain the multicast tree
在本协议中,每个节点定时发送hello消息以维护邻居关系并更新邻居节点的接收功率列表。除此之外,每个组播树的树根节点定时发送GroupHello消息,同时树根节点序列号增1。当组播树成员收到GroupHello消息时,发送MACT消息进行路由激活,由此保证每个节点能够获取组播树最新的路由信息。In this protocol, each node regularly sends hello messages to maintain the neighbor relationship and update the receiving power list of neighbor nodes. In addition, the root node of each multicast tree regularly sends GroupHello messages, and the sequence number of the root node increases by 1 at the same time. When the members of the multicast tree receive the GroupHello message, they send a MACT message to activate the route, thereby ensuring that each node can obtain the latest routing information of the multicast tree.
E.组播树合并E. Multicast tree merging
在移动环境下,由于节点的移动性,adhoc网络可能会被分成几个互不连通的区域,每个区域维护其自己的组播树。由于节点的移动性,两个或者多个不连通的区域可能会再次连通,为了消除混乱,拥有最大序列号的树根节点成为新组播树的树根节点,而其他树根节点停止发送GroupHello消息并等待组播树的重建。In a mobile environment, due to the mobility of nodes, the adhoc network may be divided into several disconnected areas, and each area maintains its own multicast tree. Due to the mobility of nodes, two or more disconnected areas may be connected again. In order to eliminate confusion, the tree root node with the largest sequence number becomes the tree root node of the new multicast tree, while other tree root nodes stop sending GroupHello message and wait for the rebuilding of the multicast tree.
由此,网络节点按照本发明的链路稳定性评估方法完成了组播路由树的建立和维护,本发明的实施例仿真结果表明,采用本发明的方法,与现有其他技术相比,网络在移动环境下拥有最高的包投递率、低的端对端延时和较高的网络吞吐率,网络的整体性能稳定、适应性强。Thus, the network node has completed the establishment and maintenance of the multicast routing tree according to the link stability evaluation method of the present invention, and the simulation results of the embodiments of the present invention show that, compared with other existing technologies, the method of the present invention adopts the method of the present invention. In the mobile environment, it has the highest packet delivery rate, low end-to-end delay and high network throughput, and the overall performance of the network is stable and adaptable.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210080182.9A CN102638820B (en) | 2012-03-23 | 2012-03-23 | Ad Hoc network link stability prediction method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210080182.9A CN102638820B (en) | 2012-03-23 | 2012-03-23 | Ad Hoc network link stability prediction method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102638820A CN102638820A (en) | 2012-08-15 |
CN102638820B true CN102638820B (en) | 2015-11-11 |
Family
ID=46623010
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210080182.9A Expired - Fee Related CN102638820B (en) | 2012-03-23 | 2012-03-23 | Ad Hoc network link stability prediction method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102638820B (en) |
Families Citing this family (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103841020B (en) * | 2014-03-17 | 2017-01-18 | 山东大学 | Ad Hoc stable routing algorithm based on power control |
CN108811027B (en) * | 2018-07-16 | 2020-06-19 | 山东大学 | Node mobility identification coping method and system in software defined Internet of things |
CA3114288A1 (en) | 2018-10-15 | 2020-04-23 | Netz Forecasts Ltd. | Systems and methods for network stabilization prediction |
CN109376175A (en) * | 2018-10-24 | 2019-02-22 | 上海中商网络股份有限公司 | A kind of data managing method, device, equipment and storage medium |
CN112422418B (en) * | 2020-10-26 | 2022-09-20 | 锐捷网络股份有限公司 | Load balancing method, device, medium and equipment for link state advertisement |
CN115278850B (en) * | 2022-09-29 | 2022-12-20 | 深圳市广和通无线通信软件有限公司 | Power self-adaptive adjustment method and device based on general algorithm and computer equipment |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1659905A (en) * | 2002-06-06 | 2005-08-24 | 摩托罗拉公司(在特拉华州注册的公司) | Protocols and structures for mobile nodes in ad hoc communication networks |
CN101184037A (en) * | 2007-10-31 | 2008-05-21 | 北京航空航天大学 | Flooding method based on probabilistic effective broadcast coefficient |
CN101207537A (en) * | 2006-12-22 | 2008-06-25 | 中兴通讯股份有限公司 | Method for searching stabilizing path in wireless self-organizing network |
WO2008097254A1 (en) * | 2006-06-30 | 2008-08-14 | Embarq Holdings Company Llc | System and method for collecting network performance information |
CN101420364A (en) * | 2007-10-26 | 2009-04-29 | 华为技术有限公司 | Link selection method, method and device for determining stability metric value of link |
CN101815336A (en) * | 2010-01-14 | 2010-08-25 | 北京科技大学 | Multicast routing method based on cooperative sensing in wireless self-organizing network |
CN102036337A (en) * | 2010-12-15 | 2011-04-27 | 山东大学 | Communication method based on improved AODV protocol |
-
2012
- 2012-03-23 CN CN201210080182.9A patent/CN102638820B/en not_active Expired - Fee Related
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1659905A (en) * | 2002-06-06 | 2005-08-24 | 摩托罗拉公司(在特拉华州注册的公司) | Protocols and structures for mobile nodes in ad hoc communication networks |
WO2008097254A1 (en) * | 2006-06-30 | 2008-08-14 | Embarq Holdings Company Llc | System and method for collecting network performance information |
CN101207537A (en) * | 2006-12-22 | 2008-06-25 | 中兴通讯股份有限公司 | Method for searching stabilizing path in wireless self-organizing network |
CN101420364A (en) * | 2007-10-26 | 2009-04-29 | 华为技术有限公司 | Link selection method, method and device for determining stability metric value of link |
CN101184037A (en) * | 2007-10-31 | 2008-05-21 | 北京航空航天大学 | Flooding method based on probabilistic effective broadcast coefficient |
CN101815336A (en) * | 2010-01-14 | 2010-08-25 | 北京科技大学 | Multicast routing method based on cooperative sensing in wireless self-organizing network |
CN102036337A (en) * | 2010-12-15 | 2011-04-27 | 山东大学 | Communication method based on improved AODV protocol |
Also Published As
Publication number | Publication date |
---|---|
CN102638820A (en) | 2012-08-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102638820B (en) | Ad Hoc network link stability prediction method | |
CN103118412A (en) | Trust-based on-demand multipath vector routing algorithm of Ad Hoc network | |
Wang | Power-aware dual-tree-based multicast routing protocol for mobile ad hoc networks | |
CN104579957A (en) | Routing method of delay tolerant network based on degree of intimacy and time constraint forwarding | |
CN104009916A (en) | Energy-saving routing scheme for delay-tolerant network based on social attribute forwarding | |
Sinha et al. | Effect of varying node density and routing zone radius in ZRP: a simulation based approach | |
Tong et al. | Modified AODV routing protocol in underwater acoustic networks | |
Sen et al. | A Simulation Based Performance Analysis of AODV and DSDV Routing Protocols in MANETs | |
Jain et al. | Performance Evaluation of Hybrid Multipath Progressive Routing Protocol for MANETs | |
Zhao et al. | Load balanced and efficient data collection protocol for wireless sensor networks | |
Chandra et al. | Performance Variations of AODV, DSDV and DSR Protocols in MANET under CBR Traffic using NS-2.35 | |
Manikandan et al. | Performance Analysis of Mobile Ad-Hoc Network Routing Protocols using Network Simulator–2 | |
Kumar | Scalability Performance of AODV, TORA and OLSR with Reference to Variable Network Size | |
Hu et al. | A new multipath AODV routing protocol for VANET based on expected link lifetime | |
Meghanathan | A beaconless node velocity-based stable path routing protocol for mobile ad hoc networks | |
Gumaste et al. | Performance analysis of DSR protocol | |
Xie et al. | An EAODV routing approach based on DARED and integrated metric | |
Kazi et al. | Performance evaluation of MANET routing protocols using scenario based mobility models | |
Boudhir et al. | New routing protocol “Dicho-AODV” for energy optimization in MANETS | |
Nikose et al. | CPAODV. A Cross Layer Path Metric Algorithm for TCP improvement in Wireless Networks | |
Chang et al. | Distributed wireless links repair for maximizing reliability and utilization in multicast MANET | |
Yi-Bing et al. | A new method of selecting stable paths in mobile ad hoc networks | |
Saraswathi et al. | Improved packet delivery ratio in mobile ADHOC networks using BTSNA-DS algorithm | |
Swe et al. | Modified Energy Constraint AODV for Wireless Sensor Network | |
Kaur et al. | Multi Hop Routing in Wireless Mobile Networks using Ant Colony Optimization |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB03 | Change of inventor or designer information |
Inventor after: Cai Xiaojun Inventor after: Zhang Zhiyong Inventor after: Jia Zhiping Inventor after: Xia Hui Inventor before: Jia Zhiping Inventor before: Zhang Zhiyong Inventor before: Xia Hui |
|
COR | Change of bibliographic data | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20151111 Termination date: 20160323 |