CN105246123B - A kind of improved CARP Routing Protocols - Google Patents
A kind of improved CARP Routing Protocols Download PDFInfo
- Publication number
- CN105246123B CN105246123B CN201510546938.8A CN201510546938A CN105246123B CN 105246123 B CN105246123 B CN 105246123B CN 201510546938 A CN201510546938 A CN 201510546938A CN 105246123 B CN105246123 B CN 105246123B
- Authority
- CN
- China
- Prior art keywords
- node
- data
- packet
- relay node
- sensor
- 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
- 241000252233 Cyprinus carpio Species 0.000 title claims abstract 7
- 230000005540 biological transmission Effects 0.000 claims abstract description 37
- 238000001514 detection method Methods 0.000 claims description 13
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 claims description 5
- 238000004891 communication Methods 0.000 claims description 4
- 238000004364 calculation method Methods 0.000 claims description 3
- 238000005265 energy consumption Methods 0.000 description 9
- 238000000034 method Methods 0.000 description 7
- 238000010187 selection method Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 230000007613 environmental effect Effects 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 239000000523 sample Substances 0.000 description 2
- 235000008694 Humulus lupulus Nutrition 0.000 description 1
- 238000013480 data collection Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/02—Communication route or path selection, e.g. power-based or shortest path routing
- H04W40/22—Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W52/00—Power management, e.g. Transmission Power Control [TPC] or power classes
- H04W52/02—Power saving arrangements
- H04W52/0209—Power saving arrangements in terminal devices
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
本发明公开了一种改进的CARP路由协议,其特征在于,选择最优数据传输中继节点的具体步骤如下:步骤1:每当传感器节点nvsn广播一个PING控制信息包时,计算与节点nvsn相邻的传感器节点的信道质量参数g(nvsn)值;步骤2:上一次数据传输中继节点和所有g(nvsn)值在范围(β×g(ω),∞)内的相邻节点都回复PONG包,其中,阈值β是范围在0‑1之间的浮点数;步骤3:在所有g(nvsn)值在范围(β×g(ω),∞)内的相邻节点中,选择g(nvsn)值最大的上一层节点uvz,若则选择uvz为当前数据传输的中继节点,否则,继续使用上次中继节点选择最优数据传输中继节点时,减少PING‑PONG冗余控制信息包;进一步的,提出一种数据包上传算法,高效节能使用传感器收集的数据。
The invention discloses an improved CARP routing protocol, which is characterized in that the specific steps of selecting the optimal data transmission relay node are as follows: Step 1: Whenever the sensor node nv sn broadcasts a PING control information packet, calculate and node nv The channel quality parameter g(nv sn ) value of the sensor node adjacent to sn ; step 2: last data transmission relay node and all adjacent nodes whose g(nv sn ) values are in the range (β×g(ω), ∞) reply PONG packets, where the threshold β is a floating-point number ranging from 0‑1; step 3: in Among the adjacent nodes whose values of g(nv sn ) are in the range (β×g(ω), ∞), select the upper layer node uv z with the largest value of g(nv sn ), if Then select uv z as the relay node for the current data transmission, otherwise, continue to use the last relay node When selecting the optimal data transmission relay node, reduce PING‑PONG redundant control information packets; further, a data packet upload algorithm is proposed to use the data collected by the sensor in an efficient and energy-saving manner.
Description
技术领域technical field
本发明涉及一种改进的CARP路由协议。The invention relates to an improved CARP routing protocol.
背景技术Background technique
海洋覆盖了地球表面面积的70%以上,地球环境深受海洋的影响,人类的生活严重依赖于海洋。水下传感器网络(将耗能低、短距离中通信的水下传感器节点部署到指定海域中从而建立起的网络)被认为是探索水下环境的可靠选择。其中,绝大多数的传感器节点是靠电池供电的。所以,设计收集探测数据并上传这些数据到水面基站的路由协议时,提高能源效率是最基本的原则。The ocean covers more than 70% of the earth's surface area, the earth's environment is deeply affected by the ocean, and human life is heavily dependent on the ocean. Underwater sensor networks (a network established by deploying underwater sensor nodes with low energy consumption and short-distance communication in designated sea areas) are considered to be a reliable choice for exploring the underwater environment. Among them, the vast majority of sensor nodes are powered by batteries. Therefore, improving energy efficiency is the most basic principle when designing routing protocols that collect detection data and upload these data to surface base stations.
CARP(Common Access Redundancy Protocol:共用地址冗余协议)是一个位置无关和逐层贪婪的路由协议,使用传感器节点的跳数来表示网络拓扑结构,可以有效避免连通性漏洞和阴影区域。CARP持续监测相邻传感器节点之间的链路质量,并把它作为数据传输中继节点选择过程中一个重要因素加以考虑。数据包上传过程中,CARP采用的是逐层贪婪和全包上传的方式。CARP (Common Access Redundancy Protocol: Common Address Redundancy Protocol) is a location-independent and layer-by-layer greedy routing protocol. It uses the hop count of sensor nodes to represent the network topology, which can effectively avoid connectivity holes and shadow areas. CARP continuously monitors the link quality between adjacent sensor nodes and takes it into consideration as an important factor in the selection process of data transmission relay nodes. During the data packet upload process, CARP adopts layer-by-layer greedy and full-packet upload methods.
CARP的性能和适用性已经在实际的海洋环境中被评估,当网络拓扑结构相对稳定时,CARP的最优数据传输中继节点选择策略,即PING-PONG策略,会产生大量的冗余控制信息包,造成网络的拥塞,降低了数据传输的效率。另外,CARP不考虑重用之前收集到的探测数据,来支持某些特定领域的应用程序(当探测数据数值的变化在一定的阈值范围内时,某些应用依然能够很好的工作)。The performance and applicability of CARP have been evaluated in the actual marine environment. When the network topology is relatively stable, CARP's optimal data transmission relay node selection strategy, that is, the PING-PONG strategy, will generate a large amount of redundant control information packets, causing network congestion and reducing the efficiency of data transmission. In addition, CARP does not consider reusing previously collected probe data to support certain domain-specific applications (some applications can still work well when the value of the probe data changes within a certain threshold range).
发明内容Contents of the invention
针对上述问题,本发明提供一种改进的CARP路由协议,选择最优数据传输中继节点时,减少PING-PONG冗余控制信息包;进一步的,提出一种数据包上传算法,高效节能使用传感器收集的数据。In view of the above problems, the present invention provides an improved CARP routing protocol, which reduces PING-PONG redundant control information packets when selecting the optimal data transmission relay node; collected data.
为实现上述技术目的,达到上述技术效果,本发明通过以下技术方案实现:In order to achieve the above-mentioned technical purpose and achieve the above-mentioned technical effect, the present invention is realized through the following technical solutions:
一种改进的CARP路由协议,其特征在于,选择最优数据传输中继节点的具体步骤如下:An improved CARP routing protocol is characterized in that the specific steps of selecting the optimal data transmission relay node are as follows:
步骤1:每当传感器节点nvsn广播一个PING控制信息包时,计算与节点nvsn相邻的传感器节点的信道质量参数g(nvsn)值;Step 1: Whenever the sensor node nv sn broadcasts a PING control information packet, calculate the channel quality parameter g(nv sn ) value of the sensor node adjacent to the node nv sn ;
步骤2:上一次数据传输中继节点和所有g(nvsn)值在范围(β×g(ω),∞)内的相邻节点都回复PONG包,其中,阈值β是范围在0-1之间的浮点数,g(ω)是上一次最优的节点的信道质量参数值;Step 2: Last data transmission relay node and all adjacent nodes whose g(nv sn ) values are in the range (β×g(ω), ∞) reply PONG packets, where the threshold β is a floating-point number ranging from 0-1, and g(ω) is the channel quality parameter value of the last optimal node;
步骤3:在所有g(nvsn)值在范围(β×g(ω),∞)内的相邻节点中,选择g(nvsn)值最大的上一层节点uvz,若则选择uvz为当前数据传输的中继节点,否则,继续使用上次中继节点 Step 3: Among all adjacent nodes whose g(nv sn ) value is in the range (β×g(ω), ∞), select the upper layer node uv z with the largest g(nv sn ) value, if Then select uv z as the relay node for the current data transmission, otherwise, continue to use the last relay node
优选,信息包上传的具体步骤如下:Preferably, the specific steps of uploading the information package are as follows:
步骤a:当传感器节点uvsn收集到新数据包后,与存储在本地节点的上一次收集的数据进行比较;Step a: When the sensor node uv sn collects new data packets After that, with the last collected data stored on the local node Compare;
步骤b:若改变量小于设定的阈值αatr,则向中继节点发送INFORM控制包;若改变量大于设定的阈值αatr,则将数据包上传,并将存储在本地节点的数据更新为新收集的数据 Step b: If the change amount is less than the set threshold α atr , send to the relay node Send an INFORM control packet; if the change is greater than the set threshold α atr , upload the data packet and update the data stored in the local node to the newly collected data
其中,INFORM控制包定义为:Among them, the INFORM control package is defined as:
表示传感器 节点uvsn的ID标识号,表示中继节点的ID标识号,HC(uvsn)表示传感器节点 uvsn的跳数,pid表示上一次上传的数据包id,Lpkt表示数据包标识集合,包括产生该数据包 节点和转发该数据包节点。 Indicates the ID identification number of the sensor node uv sn , indicates the ID identification number of the relay node, HC(uv sn ) indicates the hop count of the sensor node uv sn , pid indicates the last uploaded data packet id, L pkt indicates the data packet identification set , including the node that generates the data packet and the node that forwards the data packet.
其中,信道质量参数g(nvsn)值的计算公式如下:Among them, the calculation formula of the channel quality parameter g(nv sn ) is as follows:
g(nvsn)=goodness(nvsn)+1/HC(nvsn)g(nv sn )=goodness(nv sn )+1/HC(nv sn )
式中:g(nvsn)表示节点uvx和节点nvsn的通信质量,HC(nvsn)表示传感器节点nvsn的跳数,goodness(nvsn)=lq(uvx,nvsn)×lq(nvsn,uvz),lq(uvx,nvsn)代表节点uvx和节点nvsn的链路质量,lq(nvsn,uvz)代表节点nvsn和节点uvz的链路质量,uvz是nvsn的相邻节点中具有最佳的链路质量的传感器节点。In the formula: g(nv sn ) represents the communication quality between node uv x and node nv sn , HC(nv sn ) represents the hop count of sensor node nv sn , goodness(nv sn )=lq(uv x ,nv sn )×lq (nv sn ,uv z ), lq(uv x ,nv sn ) represents the link quality of node uv x and node nv sn , lq(nv sn ,uv z ) represents the link quality of node nv sn and node uv z , uv z is the sensor node with the best link quality among the adjacent nodes of nv sn .
本发明的有益效果是:在CARP路由协议基础上提出一种优化路由协议E-CARP,从高效节能的角度出发,优化CARP路由协议,提出一种更加高效节能的路由协议E-CARP。其中,E-CARP路由协议在网络初始化沿用CARP的思想,而在中继节点选择和数据包的传送上进行了改进:The beneficial effects of the present invention are: on the basis of the CARP routing protocol, an optimized routing protocol E-CARP is proposed, from the perspective of high efficiency and energy saving, the CARP routing protocol is optimized, and a more efficient and energy-saving routing protocol E-CARP is proposed. Among them, the E-CARP routing protocol follows the idea of CARP in network initialization, and improves on relay node selection and data packet transmission:
第一、选择最优数据传输中继节点时,减少PING-PONG冗余控制信息包,上一次数据传输中继节点和所有g(nvsn)值在范围(β×g(ω),∞)内的相邻节点都回复PONG包,范围之外的相邻节点无需回复PONG包,减少部分PONG包冗余。而且,数据传输中继节点的选择程序不是每一次都是必须更新的,再次使用前一段时间使用的数据传输中继节点可能更加合适。这种策略将显著减少网络中的PONG控制信息包的数量,从而减少水下传感器网络能量消耗。First, when selecting the optimal data transmission relay node, reduce PING-PONG redundant control information packets, the last data transmission relay node And all adjacent nodes whose g(nv sn ) values are in the range (β×g(ω), ∞) reply PONG packets, and adjacent nodes outside the range do not need to reply PONG packets, reducing the redundancy of some PONG packets. Moreover, the selection procedure of the data transmission relay node does not have to be updated every time, and it may be more appropriate to use the data transmission relay node used some time ago. This strategy will significantly reduce the number of PONG control packets in the network, thereby reducing the energy consumption of underwater sensor networks.
第二、数据包重用:在两个相邻的时间片段内,监测海域环境变化相对稳定情况下,探测数据在一定阈值范围内变化时,某些特定领域的应用程序依然能够很好的工作。而大多数情况,探测数据只会在小范围内变化,探测数据轻微的变化对一些不需要高精度数据的应用程序来说价值不大。以INFORM包代替部分变化范围在阈值之内数据包上传,从而减少整个网络数据包传送,减低传感器网络的耗能。Second, data packet reuse: In two adjacent time segments, when the environmental changes in the monitored sea area are relatively stable, when the detection data changes within a certain threshold range, some applications in specific fields can still work well. In most cases, the detection data will only change in a small range, and slight changes in the detection data are of little value to some applications that do not require high-precision data. Use INFORM packets to replace part of the data packets whose change range is within the threshold, so as to reduce the transmission of data packets in the entire network and reduce the energy consumption of the sensor network.
附图说明Description of drawings
图1是本发明水下传感器节点的部署图;Fig. 1 is the deployment figure of underwater sensor node of the present invention;
图2是本发明改进的CARP路由协议的工作流程图。Fig. 2 is a working flow diagram of the improved CARP routing protocol of the present invention.
具体实施方式Detailed ways
下面结合附图和具体的实施例对本发明技术方案作进一步的详细描述,以使本领域的技术人员可以更好的理解本发明并能予以实施,但所举实施例不作为对本发明的限定。The technical scheme of the present invention will be described in further detail below in conjunction with the accompanying drawings and specific embodiments, so that those skilled in the art can better understand the present invention and implement it, but the examples given are not intended to limit the present invention.
一种改进的CARP路由协议,从高效节能的角度出发,优化CARP路由协议,提出一种更加高效节能的路由协议E-CARP,E-CARP路由协议在网络初始化沿用CARP的思想。在中继节点选择和数据包的传送上进行两点改进,下面分别对改进点进行详细描述。An improved CARP routing protocol, from the perspective of energy efficiency, optimizes the CARP routing protocol, and proposes a more efficient and energy-saving routing protocol E-CARP. The E-CARP routing protocol follows the idea of CARP in network initialization. Two improvements are made on relay node selection and data packet transmission, and the improvements will be described in detail below.
选择最优数据传输中继节点的具体步骤如下:The specific steps for selecting the optimal data transmission relay node are as follows:
步骤1:每当传感器节点nvsn广播一个PING控制信息包时,计算与节点nvsn相邻的传感器节点的信道质量参数g(nvsn)值;Step 1: Whenever the sensor node nv sn broadcasts a PING control information packet, calculate the channel quality parameter g(nv sn ) value of the sensor node adjacent to the node nv sn ;
信道质量参数g(nvsn)值(即g值)的计算公式如下:The calculation formula of the channel quality parameter g(nv sn ) value (i.e. g value) is as follows:
g(nvsn)=goodness(nvsn)+1/HC(nvsn)g(nv sn )=goodness(nv sn )+1/HC(nv sn )
式中:g(nvsn)表示节点uvx和节点nvsn的通信质量,HC(nvsn)表示传感器节点nvsn的跳数,goodness(nvsn)=lq(uvx,nvsn)×lq(nvsn,uvz),lq(uvx,nvsn)代表节点uvx和节点nvsn的链路质量,lq(nvsn,uvz)代表节点nvsn和节点uvz的链路质量,uvz是nvsn的相邻节点中具有最佳的链路质量的传感器节点。显而易见,在所有相邻传感器节点中,最大g(nvsn)值的传感器节点是最适合被选为数据传输中继节点。In the formula: g(nv sn ) represents the communication quality between node uv x and node nv sn , HC(nv sn ) represents the hop count of sensor node nv sn , goodness(nv sn )=lq(uv x ,nv sn )×lq (nv sn ,uv z ), lq(uv x ,nv sn ) represents the link quality of node uv x and node nv sn , lq(nv sn ,uv z ) represents the link quality of node nv sn and node uv z , uv z is the sensor node with the best link quality among the adjacent nodes of nv sn . Obviously, among all adjacent sensor nodes, the sensor node with the largest g(nv sn ) value is the most suitable to be selected as a data transmission relay node.
步骤2:上一次数据传输中继节点和所有g(nvsn)值在范围(β×g(ω),∞)内的相邻节点都回复PONG包,其中,阈值β是范围在0-1之间的浮点数,g(ω)是上一次最优的节点的信道质量参数值;Step 2: Last data transmission relay node and all adjacent nodes whose g(nv sn ) values are in the range (β×g(ω), ∞) reply PONG packets, where the threshold β is a floating-point number ranging from 0-1, and g(ω) is the channel quality parameter value of the last optimal node;
节点位置随着水流而变化。因此,根据特定地区、特定季节水流湍急和缓慢的程度,适当地更新阈值β,更好地减少水下无线传感器网络的耗能。Node positions change with water flow. Therefore, according to the turbulence and slowness of the water flow in a specific area and a specific season, the threshold β is updated appropriately to better reduce the energy consumption of the underwater wireless sensor network.
步骤3:在所有g(nvsn)值在范围(β×g(ω),∞)内的相邻节点中,选择g(nvsn)值最大的上一层节点uvz,若则选择uvz为当前数据传输的中继节点,否则,继续使用上次中继节点 Step 3: Among all adjacent nodes whose g(nv sn ) value is in the range (β×g(ω), ∞), select the upper layer node uv z with the largest g(nv sn ) value, if Then select uv z as the relay node for the current data transmission, otherwise, continue to use the last relay node
在选择中继节点算法中,使用基于接收到EPING包算法来回复PONG包。在此过程中,数据传输中继节点的选择程序不是每一次都是必须更新的,再次使用前一段时间使用的数据传输中继节点可能更加合适。这种策略将显著减少网络中的PONG控制信息包的数量,从而减少水下传感器网络能量消耗。In the algorithm of selecting the relay node, use the algorithm based on the received EPING packet to reply the PONG packet. In this process, the selection procedure of the data transmission relay node does not have to be updated every time, and it may be more appropriate to use the data transmission relay node used some time ago. This strategy will significantly reduce the number of PONG control packets in the network, thereby reducing the energy consumption of underwater sensor networks.
信息包上传的具体步骤如下:The specific steps of uploading the information package are as follows:
步骤a:当传感器节点uvsn收集到新数据包后,与存储在本地节点的上一次收集的数据进行比较;Step a: When the sensor node uv sn collects new data packets After that, with the last collected data stored in the local node Compare;
步骤b:若改变量小于设定的阈值αatr,则向中继节点发送INFORM控制包;若改变量大于设定的阈值αatr,则将数据包上传,并将存储在本地节点的数据更新为新收集的数据以便下次新探测数据做比较,确定改变量;Step b: If the change amount is less than the set threshold α atr , send to the relay node Send an INFORM control packet; if the change is greater than the set threshold α atr , upload the data packet and update the data stored in the local node to the newly collected data In order to compare the next new detection data and determine the amount of change;
其中,αatr是变化因子,规定了重用数据的数据改变量范围:(0,αatr),INFORM控制包定义为:Among them, α atr is a change factor, which specifies the data change range of reused data: (0,α atr ), and the INFORM control package is defined as:
表示传感器 节点uvsn的ID标识号,表示中继节点的ID标识号,HC(uvsn)表示传感器节点 uvsn的跳数,pid表示上一次上传的数据包id,Lpkt表示数据包标识集合,包括产生该数据包 节点和转发该数据包节点。 Indicates the ID identification number of the sensor node uv sn , indicates the ID identification number of the relay node, HC(uv sn ) indicates the hop count of the sensor node uv sn , pid indicates the last uploaded data packet id, L pkt indicates the data packet identification set , including the node that generates the data packet and the node that forwards the data packet.
使用INFORM控制包来通知基站,若新收集的数据与上一次上传到基站的数据改变量在阈值αatr范围内,应用程序可以继续使用上一次数据。中继节点接收到INFORM包回复ACK包,表示正确接收INFORM包。提出一种数据包上传算法,让应用程序确定需求数据精度,来高效节能使用传感器收集的数据。Use the INFORM control packet to notify the base station that if the change between the newly collected data and the last data uploaded to the base station is within the threshold αatr , the application program can continue to use the last data. relay node Receiving an INFORM packet and replying with an ACK packet indicates that the INFORM packet is received correctly. A data packet upload algorithm is proposed to allow the application to determine the required data accuracy to use the data collected by the sensor in an energy-efficient manner.
当监测海域在相对稳定的环境下,探测数据的变化有很大可能在阈值αatr的范围内,此时应向水面基站发送INFORM控制信息包,而不是数据信息包。因此,在网络中传输的数据总量显著减少,网络的能量消耗大幅降低。When the monitoring sea area is in a relatively stable environment, the change of the detection data is likely to be within the range of the threshold αatr . At this time, the INFORM control information packet should be sent to the surface base station instead of the data information packet. Therefore, the total amount of data transmitted in the network is significantly reduced, and the energy consumption of the network is greatly reduced.
下面完整的介绍一个实施例:An embodiment is fully introduced below:
1)在监测海域中,随机均匀部署若干无线传感器节点,传感器节点的疏密程度和探测属性可根据特定场景、特定的应用程序自行控制,其节点部署方式如图1所示,Sensor代表传感器节点,部署到不同深度的位置,Sink代表基站,部署在水面上。1) In the monitoring sea area, a number of wireless sensor nodes are randomly and evenly deployed. The density and detection properties of sensor nodes can be controlled by themselves according to specific scenarios and specific applications. The node deployment method is shown in Figure 1. Sensor represents sensor nodes , deployed at different depths, and Sink represents the base station, deployed on the water surface.
此路由协议所描述的工作原理是在实际水下探测区域部署无线传感器网络的传感器,应用程序根据需求,请求水下传感器收集和上传某种属性的数据。在基站中,设置集合缓存CAH存储节点上传输数据,传感器节点设置阈值β、缓存数据变化因子αatr。完整的流程图如图2所示。The working principle described in this routing protocol is to deploy the sensors of the wireless sensor network in the actual underwater detection area, and the application program requests the underwater sensors to collect and upload data of a certain attribute according to the requirements. In the base station, set the collective cache CAH storage node to transmit data, and set the threshold β, cache Data change factor α atr . The complete flow chart is shown in Figure 2.
在基站设置缓存CAH用来存储节点上传的数据,CAH定义为定义为一个向量,即: Set cache CAH in the base station to store the data uploaded by the node, CAH is defined as Defined as a vector, namely:
其中,表示传感器节点uvsn感兴趣的属性,一个传感器节点可以装备一个或多个设备,用来探测一种或多种感兴趣的属性;参数记录了标识为的传感器节点uvsn最近一次上传到水面基站的探测数据。参数也被存储在传感器节点uvsn的存储器中,用来和新探测到的数据进行比较,看新探测到的数据是否显著变化。in, Indicates the property of interest of the sensor node uv sn , a sensor node can be equipped with one or more devices to detect one or more properties of interest; parameter records identified as The latest detection data uploaded to the surface base station by the sensor node uv sn . parameter It is also stored in the memory of the sensor node uv sn , and is used to compare with the newly detected data to see whether the newly detected data changes significantly.
2)节点部署后,初始化整个水下无线传感器网络:从基站往下广播HELLO包,基站的跳数HC(SN)初始化为0,接收HELLO包节点为基站的相邻节点,即下一层节点,其HC为1,依次类推,初始化所有节点的跳数。初始化时,无数据包传送,因此,基站中CAH和节点中缓存都初始化时置空。2) After the nodes are deployed, initialize the entire underwater wireless sensor network: broadcast the HELLO packet from the base station downward, the hop count HC(SN) of the base station is initialized to 0, and the node receiving the HELLO packet is the adjacent node of the base station, that is, the next layer node , whose HC is 1, and so on, initialize the hops of all nodes. At the time of initialization, no data packet is transmitted, therefore, both the CAH in the base station and the cache in the node are emptied at the time of initialization.
3)若节点接收到基站的请求后,传感器节点收集应用所需的数据。3) After the node receives the request from the base station, the sensor node collects the data required by the application.
4)根据特定应用程序对数据的精度要求或对实时数据的要求,设置符合应用程序数据变化因子阈值αatr,确定需要上传的信息包是数据包或INFORM包。4) According to the specific application program's data accuracy requirements or real-time data requirements, set the application data change factor threshold α atr to determine whether the information package to be uploaded is a data package or an INFORM package.
5)确定信息包后选择中继节点。根据特定水域的水流模型或经验值,在节点中设置阈值β。根据中继节点选择算法,若选择g值(即信道质量参数)范围在(β×g,∞)中节点作为候选中继节点,从候选中继节点中选择上一层g值最大节点与上次数据传输中继节点作比较,选择g值大的为本次数据传输的中继节点。5) Select the relay node after confirming the information package. Set the threshold β in the node according to the flow model or empirical value of the specific water area. According to the relay node selection algorithm, if a node with a g value (that is, a channel quality parameter) in the range of (β×g, ∞) is selected as a candidate relay node, the node with the highest g value in the upper layer is selected from the candidate relay nodes. Compared with the relay node of the second data transmission, the relay node with the larger g value is selected as the relay node of this data transmission.
6)进行信息包上传。6) Upload the information package.
7)若中继节点是基站,则信息包上传结束;否则,继续往上选择中继节点,直至,信息包上传到基站节点。7) If the relay node is the base station, the uploading of the information packet is completed; otherwise, continue to select the relay node until the information packet is uploaded to the base station node.
基站接收到传感器节点收集数据后,通过无线电的方式上传到服务上,应用程序可通过特定服务获取数据信息。After the base station receives the data collected by the sensor nodes, it uploads it to the service through radio, and the application program can obtain the data information through the specific service.
为了便于进一步理解本发明,下面分别介绍一下各算法的伪代码。In order to facilitate the further understanding of the present invention, the pseudo codes of each algorithm are introduced respectively below.
算法1是中继节点选择算法伪代码:Algorithm 1 is the pseudocode of relay node selection algorithm:
算法1中继节点选择伪代码:Algorithm 1 relay node selection pseudocode:
中继节点选择算法中,输入是集合包含所有回复PONG包节点和对应的g值,输出是选为本次数据传输的中继节点传感器节点探测到新数据,需要上传时,经过算法1选择,得到下一跳中继节点。In the relay node selection algorithm, the input is the set Contains all reply PONG packet nodes and the corresponding g value, the output is the relay node selected as this data transmission When the sensor node detects new data and needs to upload it, it is selected by Algorithm 1 to obtain the next hop relay node.
算法2是基于接收到EPING算法伪代码:Algorithm 2 is based on the received EPING algorithm pseudocode:
算法2基于接收EPING算法伪代码:Algorithm 2 is based on receiving EPING algorithm pseudocode:
算法2中,输入是一个EPING包,输出是一个PONG包。基于接收到EPING算法确定一个传感器节点接收EPING后,是否需要回复PONG包。若g值不在范围(β×g,∞)内,则无需回复PONG包,否则,回复PONG包。In Algorithm 2, the input is an EPING packet, and the output is a PONG packet. Based on the received EPING algorithm, it is determined whether a sensor node needs to reply a PONG packet after receiving the EPING. If the value of g is not in the range (β×g, ∞), there is no need to reply the PONG packet, otherwise, reply the PONG packet.
算法3是数据包上传算法伪代码:Algorithm 3 is the pseudocode of the packet upload algorithm:
算法3数据包上传伪代码:Algorithm 3 packet upload pseudocode:
算法3中,输入是当前传感器节点探测到数据节点缓存数据预先设定变化因子αatr,输出是一个INFORM包或数据包。根据之前在节点中设置的变化因子αatr和数据包的改变量,使用算法3确定需要上传的是数据包或是INFORM包。当中继节点接收INFROM包或数据包时,会回复ACK给发包节点,确认已经接收。使用逐层贪婪的方式,将数据包或INFORM包上传到基站。In Algorithm 3, the input is the data detected by the current sensor node Node cache data The change factor α atr is preset, and the output is an INFORM packet or data packet. According to the change factor α atr set in the node and the change amount of the data packet, use Algorithm 3 to determine whether the data packet or the INFORM packet needs to be uploaded. When the relay node receives the INFROM packet or data packet, it will reply ACK to the sending node to confirm that it has been received. Upload data packets or INFORM packets to the base station in a layer-by-layer greedy manner.
本发明的有益效果是:在CARP路由协议基础上提出一种优化路由协议E-CARP,从高效节能的角度出发,优化CARP路由协议,提出一种更加高效节能的路由协议E-CARP。其中,E-CARP路由协议在网络初始化沿用CARP的思想,而在中继节点选择和数据包的传送上进行了改进:The beneficial effects of the present invention are: on the basis of the CARP routing protocol, an optimized routing protocol E-CARP is proposed, from the perspective of high efficiency and energy saving, the CARP routing protocol is optimized, and a more efficient and energy-saving routing protocol E-CARP is proposed. Among them, the E-CARP routing protocol follows the idea of CARP in network initialization, and improves on relay node selection and data packet transmission:
第一、选择最优数据传输中继节点时,减少PING-PONG冗余控制信息包,上一次数据传输中继节点和所有g(nvsn)值在范围(β×g(ω),∞)内的相邻节点都回复PONG包,范围之外的相邻节点无需回复PONG包,减少部分PONG包冗余。而且,数据传输中继节点的选择程序不是每一次都是必须更新的,再次使用前一段时间使用的数据传输中继节点可能更加合适。这种策略将显著减少网络中的PONG控制信息包的数量,从而减少水下传感器网络能量消耗。First, when selecting the optimal data transmission relay node, reduce PING-PONG redundant control information packets, the last data transmission relay node And all adjacent nodes whose g(nv sn ) values are in the range (β×g(ω), ∞) reply PONG packets, and adjacent nodes outside the range do not need to reply PONG packets, reducing the redundancy of some PONG packets. Moreover, the selection procedure of the data transmission relay node does not have to be updated every time, and it may be more appropriate to use the data transmission relay node used some time ago. This strategy will significantly reduce the number of PONG control packets in the network, thereby reducing the energy consumption of underwater sensor networks.
第二、数据包重用:在两个相邻的时间片段内,监测海域环境变化相对稳定情况下,探测数据在一定阈值范围内变化时,某些特定领域的应用程序依然能够很好的工作。而大多数情况,探测数据只会在小范围内变化,探测数据轻微的变化对一些不需要高精度数据的应用程序来说价值不大。以INFORM包代替部分变化范围在阈值之内数据包上传,从而减少整个网络数据包传送,减低传感器网络的耗能。Second, data packet reuse: In two adjacent time segments, when the environmental changes in the monitored sea area are relatively stable, when the detection data changes within a certain threshold range, some applications in specific fields can still work well. In most cases, the detection data will only change in a small range, and slight changes in the detection data are of little value to some applications that do not require high-precision data. Use INFORM packets to replace part of the data packets whose change range is within the threshold, so as to reduce the transmission of data packets in the entire network and reduce the energy consumption of the sensor network.
第三、通过减少冗余PING-PONG控制包和提高数据包重用率,很大程度上减少水下无线传感器网络数据收集和数据传送中的能量消耗,延长了整个水下无线传感器网络的生命周期。为水下无线传感器网络提供了一种高效节能的路由协议。以便人类更好探索海洋。Third, by reducing redundant PING-PONG control packets and increasing the reuse rate of data packets, the energy consumption in data collection and data transmission of underwater wireless sensor networks is greatly reduced, and the life cycle of the entire underwater wireless sensor network is extended. . An energy-efficient routing protocol is provided for underwater wireless sensor networks. So that humans can better explore the ocean.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或者等效流程变换,或者直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (5)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510546938.8A CN105246123B (en) | 2015-08-28 | 2015-08-28 | A kind of improved CARP Routing Protocols |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510546938.8A CN105246123B (en) | 2015-08-28 | 2015-08-28 | A kind of improved CARP Routing Protocols |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105246123A CN105246123A (en) | 2016-01-13 |
CN105246123B true CN105246123B (en) | 2018-10-02 |
Family
ID=55043541
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510546938.8A Expired - Fee Related CN105246123B (en) | 2015-08-28 | 2015-08-28 | A kind of improved CARP Routing Protocols |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105246123B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11233722B2 (en) * | 2017-12-12 | 2022-01-25 | Futurewei Technologies, Inc. | System and method for network topology management |
CN112926007A (en) * | 2021-02-07 | 2021-06-08 | 杭州志卓科技股份有限公司 | Search engine-based website optimization construction system, optimization method, medium and terminal |
IT202100013547A1 (en) * | 2021-05-25 | 2022-11-25 | J&W S R L | Telecommunication system for the management of reporting of anomalies in a production plant |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466295A (en) * | 2002-06-10 | 2004-01-07 | ��Ϊ��������˾ | A Cell Handover Method Based on Cellular High Speed Packet Access Network |
CN102595505A (en) * | 2012-03-12 | 2012-07-18 | 中国科学技术大学苏州研究院 | Distributed routing method based on node load balancing for wireless sensor network |
CN102932866A (en) * | 2012-07-06 | 2013-02-13 | 北京邮电大学 | Opportunistic routing mechanism applicable to multi-radio-frequency multi-channel Ad hoc network |
CN104157120A (en) * | 2014-08-21 | 2014-11-19 | 南京拓诺传感网络科技有限公司 | WSN information perception system and method for industrial equipment and environment monitor |
WO2015010303A1 (en) * | 2013-07-25 | 2015-01-29 | Empire Technology Development Llc | Prompting movement of a device towards a stronger signal |
-
2015
- 2015-08-28 CN CN201510546938.8A patent/CN105246123B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1466295A (en) * | 2002-06-10 | 2004-01-07 | ��Ϊ��������˾ | A Cell Handover Method Based on Cellular High Speed Packet Access Network |
CN102595505A (en) * | 2012-03-12 | 2012-07-18 | 中国科学技术大学苏州研究院 | Distributed routing method based on node load balancing for wireless sensor network |
CN102932866A (en) * | 2012-07-06 | 2013-02-13 | 北京邮电大学 | Opportunistic routing mechanism applicable to multi-radio-frequency multi-channel Ad hoc network |
WO2015010303A1 (en) * | 2013-07-25 | 2015-01-29 | Empire Technology Development Llc | Prompting movement of a device towards a stronger signal |
CN104157120A (en) * | 2014-08-21 | 2014-11-19 | 南京拓诺传感网络科技有限公司 | WSN information perception system and method for industrial equipment and environment monitor |
Also Published As
Publication number | Publication date |
---|---|
CN105246123A (en) | 2016-01-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104394566B (en) | A low-power adaptive clustering multi-hop wireless sensor network topology control method based on fuzzy decision | |
CN103619049B (en) | Energy-saving routing method for wireless sensor network | |
CN103200643B (en) | Based on the distributed fault-tolerance topology control method of dump energy perception | |
CN106413021A (en) | Wireless sensing network routing method based on ant colony algorithm | |
CN106060886B (en) | A Routing Protocol Construction Method for Underwater Acoustic Sensor Network Based on Asymmetric Links | |
WO2018107306A1 (en) | Probability neighborhood and obstacle avoidance-based data collection method for three-dimensional uasns | |
CN106131912A (en) | The mobile Sink method of data capture of wireless sensor network based on tree-shaped bunch | |
CN102802246A (en) | Energy saving method and dormancy decision making system of wireless sensor network | |
CN106817739A (en) | A kind of wireless sensor and actor networks based on mobile sink node Energy Efficient are by agreement | |
CN108541039A (en) | A kind of power consumption wireless sensor network static node-routing method | |
CN105246123B (en) | A kind of improved CARP Routing Protocols | |
CN104539542A (en) | Low-energy-consumption routing tree pruning method based on mobile Sink data collection | |
CN105430708A (en) | Routing Method for Wireless Sensors Based on Routing Table Node Energy | |
CN104185191A (en) | Wireless sensor network data collecting method based on multiple data collection binary tree | |
CN1889467A (en) | Distributing wireless network key node detecting method | |
CN105188084B (en) | A kind of wireless sensor network routing optimization method based on congestion control | |
CN103945508A (en) | Wireless-sensing-network topology construction method based on probability comparison | |
Abedin et al. | Selection of energy efficient routing protocol for irrigation enabled by wireless sensor network | |
CN102413471B (en) | Networking method of wireless grid sensor based on link stability estimation | |
CN106937349A (en) | Routing Protocol for Wireless Sensor Networks Based on Mobile Aggregation Nodes and Ant Colony Algorithm | |
CN102695192A (en) | Routing scheme for IPv6 wireless sensor network | |
Dhurandher et al. | Optimizing energy through parabola based routing in underwater sensor networks | |
Dragana et al. | Evaluation of cluster formation algorithm in large scale wireless sensor network | |
CN107105466A (en) | A kind of mobile Sink methods of data capture based on enhancing learning algorithm | |
CN106341843A (en) | Data flow shunting routing method based on multipath wireless sensor network (WSN) |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
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: 20181002 Termination date: 20190828 |