The invention discloses a vehicle network GPSR routing protocol improved greedy forwarding rules, the improved protocol to manage the neighbor table information, increase the definition of a total communication time, communication time accumulated between neighbor nodes, including the vehicle position information regularly sent between nodes, the cumulative communication time and other information of the Hello package at the same time, in the Hello packet received on the neighbor list update and update the list of neighbor nodes in real time, when the source node to the destination node to transmit data packets, the source node will find the nearest distance of the destination node in their neighbor nodes, calculate the node to the destination node according to the distance. The nearest distance, calculate the allowed range, the cumulative communication by comparing the vehicle in a given range of the length of the size of the communication between vehicles The stability of prediction, to find the most stable next hop node; the improved routing protocol in greedy forwarding both the distance factor and consider the stability of communication between nodes, so that the application of GPSR in vehicle network to achieve better results.
【技术实现步骤摘要】
本专利技术涉及一种车载网络GPSR路由协议中贪婪转发方法,属于车载通信网
技术介绍
随着全球汽车保有量的上升、道路拥堵状况的加剧以及交通事故的频繁发生,提升道路安全的技术和措施越来越多,其中,网络技术的高速发展使得车间网络应运而生。车间网络是将道路上的车辆加入网络,通过车辆间的相互通信,从而感知周围车辆的存在及运行状态,并据此预防潜在的危险。在车间网络中,车辆作为车间网络的各个节点,由于车辆具有快速移动的特性,因此车间网络是拓扑变化频繁的网络。由于作为节点的车辆移动速度快,使车间网络拓扑时刻发生变化,因此,在车间网络中,如何寻找稳定的路由路径成为一个重要的研究方向。在自组网的路由协议中,基于位置的路由协议由于比较适应车间网络的特点,在车间网络中成为应用的主流。在基于位置的路由协议中,最具代表性的是GPSR协议(贪婪周边无状态路由,GreedyPerimeterstateleSSRouting),相较于其它的路由协议来说,GPSR协议是一种无状态的路由,需要车间网络中的节点定期通报自己的位置信息,每个节点将相邻节点的位置信息保存在邻居节点列表中,节点在发送数据前不寻找路由,不保存路由表,直接根据自己、相邻节点以及目的节点的位置信息制定数据转发决策,因此,GPSR协议更加适合拓扑变化频繁的车间网络。但在车间网络中,GPSR路由协议尚存在问题,协议在进行贪婪转发时,总是选择邻居列表中地理位置上离目的节点最近的节点作为下一跳,这样选择的下一跳节点通常会处在通信范围的边缘,又由于节点的运动速度变化快,贪婪转发机制选择的下一跳节点很有可能会在数据包到达之前 ...
【技术保护点】
一种车载网络GPSR路由协议中贪婪转发方法,其特征在于:首先对邻居表信息进行管理,增加定义了一个累计通信时长,即邻居节点之间累计的通信时间,节点之间定时发送包括车辆的位置信息,累计通信时长等信息的hello包,同时,在接收到hello包后会对邻居列表进行更新,当源节点S向目的节点发送数据包时,源节点会在自己的邻居节点中查找距离目的节点D最近的点N,计算出此节点到目的节点的距离再计算源节点S到选定出的最近邻居节点N的距离根据这两个距离确定最大的通信距离范围dmax=d+λ×dSN,其中λ的取值为0.3,是通过多次实验得到的,在给定的距离范围内通过比较车辆的累计通信时长的大小来进行车辆之间通信稳定性的预测,找到最稳定的下一跳节点;车载网络GPSR路由协议中贪婪转发方法,其步骤为:S1:源节点接收邻居节点的hello包信息,并将所有邻居节点的信息保存到自己的邻居列表中;S2:找到邻居节点中距离目的节点最近的点,计算距离值并给出允许的距离范围;S3:将S2中节点的累计通信时间设定为当前最大的累计时长,累计通信时长计算公式为tlasti=tlasti‑1+tsi‑tsi‑1,其中tlasti为当 ...
【技术特征摘要】
1.一种车载网络GPSR路由协议中贪婪转发方法,其特征在于:首先对邻居表信息进行管理,增加定义了一个累计通信时长,即邻居节点之间累计的通信时间,节点之间定时发送包括车辆的位置信息,累计通信时长等信息的hello包,同时,在接收到hello包后会对邻居列表进行更新,当源节点S向目的节点发送数据包时,源节点会在自己的邻居节点中查找距离目的节点D最近的点N,计算出此节点到目的节点的距离再计算源节点S到选定出的最近邻居节点N的距离根据这两个距离确定最大的通信距离范围dmax=d+λ×dSN,其中λ的取值为0.3,是通过多次实验得到的,在给定的距离范围内通过比较车辆的累计通信时长的大小来进行车辆之间通信稳定性的预测,找到最稳定的下一跳节点;车载网络GPSR路由协议中贪婪转发方法,其步骤为:S1:源节点接收邻居节点的hello包信息,并将所有邻居节点的信息保存到自己的邻居...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。