[go: up one dir, main page]

CN106304237B - Terminal-Vehicle Communication Method Based on Wireless Protocol - Google Patents

Terminal-Vehicle Communication Method Based on Wireless Protocol Download PDF

Info

Publication number
CN106304237B
CN106304237B CN201610630896.0A CN201610630896A CN106304237B CN 106304237 B CN106304237 B CN 106304237B CN 201610630896 A CN201610630896 A CN 201610630896A CN 106304237 B CN106304237 B CN 106304237B
Authority
CN
China
Prior art keywords
node
vehicle
message
nodes
messages
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
Application number
CN201610630896.0A
Other languages
Chinese (zh)
Other versions
CN106304237A (en
Inventor
谢欣霖
陈波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Zhida Science And Technology Co Ltd
Original Assignee
Chengdu Zhida Science And Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Chengdu Zhida Science And Technology Co Ltd filed Critical Chengdu Zhida Science And Technology Co Ltd
Priority to CN201610630896.0A priority Critical patent/CN106304237B/en
Publication of CN106304237A publication Critical patent/CN106304237A/en
Application granted granted Critical
Publication of CN106304237B publication Critical patent/CN106304237B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/20Communication route or path selection, e.g. power-based or shortest path routing based on geographic position or location
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/122Shortest path evaluation by minimising distances, e.g. by selecting a route with minimum of number of hops
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update
    • H04W40/248Connectivity information update

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

本发明提供了一种基于无线协议的终端车辆通信方法,该方法包括:设置巡游车载节点,沿预定义路线行驶,在行驶过程中不断发送消息,路侧节点广播所接收的消息,车辆节点在经过巡游节点网络覆盖范围时,接收到相应消息。本发明提出了一种基于无线协议的终端车辆通信方法,适用于车载网络的拓扑结构频繁变换的条件,提高网络的吞吐量,降低网络拥塞。

Figure 201610630896

The invention provides a terminal-vehicle communication method based on a wireless protocol. The method includes: setting a cruising vehicle node, driving along a predefined route, sending messages continuously during the driving process, broadcasting the received message by the roadside node, and the vehicle node in the When passing through the network coverage of the cruising node, the corresponding message is received. The invention proposes a terminal-vehicle communication method based on a wireless protocol, which is suitable for the condition that the topology structure of the vehicle-mounted network changes frequently, improves the throughput of the network and reduces the network congestion.

Figure 201610630896

Description

基于无线协议的终端车辆通信方法Terminal-Vehicle Communication Method Based on Wireless Protocol

技术领域technical field

本发明涉及车载网络,特别涉及一种基于无线协议的终端车辆通信方法。The invention relates to a vehicle network, in particular to a terminal vehicle communication method based on a wireless protocol.

背景技术Background technique

为了让交通运输的效率得以提升,减缓资源的消耗速度,车辆研发环节中不可避免地采用智能交通系统,而车辆间网络也已成为优化现代交通的热点课题。人们可利用配备在车辆上的无线通信设备,完成车辆节点之间的直接或间接通信,同时,车辆节点也可以同路边固定通信设备在其相对应的无线通信信道上实现无线通讯,以此来达到车辆间网络在智能交通系统中对各种传输信息完成传输、处理及交互过程的目的。从提高服务便捷性方面来看,驾驶员能够将其他车辆广播出来的各种信息搜集起来,从而很方便的找到附近的一些服务点。同时采用电子不停车收费系统,可以大大缩短车辆在支付等待时间。安装在道路两旁的设备与车辆自身携带的信息公共作用之后,相关部门能够充分利用这些信息对交通进行智能的调度。In order to improve the efficiency of transportation and slow down the consumption of resources, intelligent transportation systems are inevitably used in vehicle research and development, and the inter-vehicle network has also become a hot topic in optimizing modern transportation. People can use the wireless communication equipment equipped on the vehicle to complete the direct or indirect communication between the vehicle nodes. In order to achieve the purpose of completing the transmission, processing and interaction process of various transmission information in the vehicle-to-vehicle network in the intelligent transportation system. From the perspective of improving service convenience, drivers can collect various information broadcasted by other vehicles, so that they can easily find some nearby service points. At the same time, the electronic non-stop toll collection system is adopted, which can greatly shorten the waiting time for vehicles to pay. After the equipment installed on both sides of the road and the information carried by the vehicle itself play a public role, relevant departments can make full use of this information to intelligently dispatch traffic.

然而车辆本身是高速移动中的,并且由于城市道路对其限制较大,网络的拓扑方面也是瞬息万变的,各个节点之间进行通讯的时间较短,现有的车辆间通信方法不能很好地实时适应车载网络的拓扑结构频繁变换的动态特性,因此提高网络的吞吐量等网络特性方面没有发挥出较为优质的表现。在车载节点过多时常常造成网络堵塞。However, the vehicle itself is moving at high speed, and due to the large restrictions on urban roads, the topology of the network is also changing rapidly, and the communication time between each node is short, and the existing inter-vehicle communication methods cannot be very real-time. It adapts to the dynamic characteristics of the frequent change of the topology structure of the vehicle network, so it does not play a relatively high-quality performance in terms of network characteristics such as improving the throughput of the network. Network congestion is often caused when there are too many on-board nodes.

发明内容SUMMARY OF THE INVENTION

为解决上述现有技术所存在的问题,本发明提出了一种基于无线协议的终端车辆通信方法,包括:In order to solve the problems existing in the above-mentioned prior art, the present invention proposes a terminal-vehicle communication method based on a wireless protocol, including:

设置巡游车载节点,沿预定义路线行驶,在行驶过程中不断发送消息,路侧节点广播所接收的消息,车辆节点在经过巡游节点网络覆盖范围时,接收到相应消息。The cruising vehicle node is set up to drive along a predefined route, and continuously send messages during the driving process. The roadside node broadcasts the received message, and the vehicle node receives the corresponding message when it passes through the network coverage of the cruising node.

优选地,网络中的消息都有唯一的消息id号,当目标节点R收到消息后,如果判定之前未曾收到过该消息,则将消息的id号存储在广播表中;如果目标节点R在其广播表中查找接收信息的相同的id号,表示该消息已收到过,确定为冗余消息,直接丢弃,否则目标节点R对数据进行如下处理;Preferably, messages in the network have a unique message id number. After the target node R receives the message, if it is determined that the message has not been received before, the id number of the message is stored in the broadcast table; if the target node R Find the same id number of the received message in its broadcast table, indicating that the message has been received, it is determined to be a redundant message, and it is discarded directly, otherwise the target node R will process the data as follows;

根据GPS获取的位置信息,车辆节点判断自身是否位于车辆节点密集区;如果目标节点R位于车辆节点密集区或者R属于路侧节点,则R在延迟WD1后,转发收到的消息;如果接收节点R的位置不在车辆节点密集区但是源节点S位于车辆节点密集区,则R丢弃消息;如果源节点S不是车辆节点密集区节点,则R将自己的方向DR与最后一跳源节点S的方向DS继续比较,如果它们的移动方向相同,则在延迟WD2后,发送消息,如果判定它们的方向相反,则放弃转发;According to the location information obtained by GPS, the vehicle node judges whether it is located in the dense area of vehicle nodes; if the target node R is located in the dense area of vehicle nodes or R belongs to the roadside node, then R forwards the received message after delaying WD 1 ; The location of node R is not in the dense area of vehicle nodes but the source node S is located in the dense area of vehicle nodes, then R discards the message; if the source node S is not a node in the dense area of vehicle nodes, then R connects its direction DR with the last hop source node S The direction D S continues to compare, if their moving directions are the same, after a delay of WD 2 , the message is sent, and if it is determined that their directions are opposite, the forwarding is abandoned;

其中WD1=(1-Pd)×Tp where WD 1 =(1-P d )×T p

WD2=(1-Pd)×2Tp WD 2 =(1-P d )×2T p

Tp代表一跳广播之间的最小时长;T p represents the minimum duration between one-hop broadcasts;

Pd=ds-r/dmax为与距离相关的概率,ds-r为最后一次转发的源节点和目标节点的距离,dmax为节点覆盖范围内的最大值。P d =d sr /d max is the probability related to the distance, d sr is the distance between the source node and the target node of the last forwarding, and d max is the maximum value within the coverage area of the node.

本发明相比现有技术,具有以下优点:Compared with the prior art, the present invention has the following advantages:

本发明提出了一种基于无线协议的终端车辆通信方法,适用于车载网络的拓扑结构频繁变换的条件,提高网络的吞吐量,降低网络拥塞。The invention proposes a terminal-vehicle communication method based on a wireless protocol, which is suitable for the condition that the topology structure of the vehicle-mounted network changes frequently, improves the throughput of the network and reduces the network congestion.

附图说明Description of drawings

图1是根据本发明实施例的基于无线协议的终端车辆通信方法的流程图。FIG. 1 is a flowchart of a wireless protocol-based terminal vehicle communication method according to an embodiment of the present invention.

具体实施方式Detailed ways

下文与图示本发明原理的附图一起提供对本发明一个或者多个实施例的详细描述。结合这样的实施例描述本发明,但是本发明不限于任何实施例。本发明的范围仅由权利要求书限定,并且本发明涵盖诸多替代、修改和等同物。在下文描述中阐述诸多具体细节以便提供对本发明的透彻理解。出于示例的目的而提供这些细节,并且无这些具体细节中的一些或者所有细节也可以根据权利要求书实现本发明。A detailed description of one or more embodiments of the invention is provided below together with the accompanying drawings that illustrate the principles of the invention. The present invention is described in conjunction with such embodiments, but the present invention is not limited to any embodiment. The scope of the invention is limited only by the claims, and the invention encompasses numerous alternatives, modifications and equivalents. In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. These details are provided for the purpose of example and the invention may be practiced according to the claims without some or all of these specific details.

本发明的一方面提供了一种基于无线协议的终端车辆通信方法。图1是根据本发明实施例的基于无线协议的终端车辆通信方法流程图。An aspect of the present invention provides a wireless protocol-based terminal vehicle communication method. FIG. 1 is a flowchart of a wireless protocol-based terminal-vehicle communication method according to an embodiment of the present invention.

车载节点应用层管理模块采集无线网络中的数据,分析数据的来源和类型,实现对上层报文信息的收发管理,编码规则设置和侦听。路由管理模块负责路由机制的选择,路由请求以及侦听应答和维护等。接入管理模块存在于路由层与MAC层之间,负责在路由层处获得数据同时对其分配随机的目标地址,然后将这些地址信息送到MAC层之中。无线传输模块用于发射天线和接收天线管理,根据数据的编码结果,使用模拟的方式对其进行相应的处理,通过天线将队列中的数据在对应的传输信道中传输,通过其传输性能进行控制和管理。The application layer management module of the vehicle node collects data in the wireless network, analyzes the source and type of the data, and realizes the management of sending and receiving of upper-layer message information, and the setting and monitoring of encoding rules. The routing management module is responsible for the selection of routing mechanisms, routing requests, and monitoring responses and maintenance. The access management module exists between the routing layer and the MAC layer, and is responsible for obtaining data at the routing layer and assigning random target addresses to it, and then sending the address information to the MAC layer. The wireless transmission module is used for the management of the transmitting antenna and the receiving antenna. According to the coding result of the data, it is processed in an analog manner, and the data in the queue is transmitted in the corresponding transmission channel through the antenna, and the transmission performance is controlled by the antenna. and management.

对于应用层管理模块的消息分发,本发明的实施例扩展中继节点的选择范围,同时采用位置估计,获得消息广播的低时延、低负载特性。For the message distribution of the application layer management module, the embodiment of the present invention expands the selection range of relay nodes, and simultaneously adopts location estimation to obtain the characteristics of low delay and low load of message broadcasting.

车辆向邻接节点发送信标消息,当车辆的估计位置与实际位置之间的差超出设定的误差阈值时,同时采用周期性发送和条件驱动的发送方式。通过信标消息,网络中的车辆可以获取邻接节点的位置信息,不断更新邻接表。The vehicle sends a beacon message to adjacent nodes. When the difference between the estimated position and the actual position of the vehicle exceeds the set error threshold, periodic transmission and condition-driven transmission are simultaneously used. Through beacon messages, vehicles in the network can obtain the location information of adjacent nodes and continuously update the adjacency table.

车辆通过GPS获取自身位置信息,结合车辆移动的历史记录和当前位置信息,计算出车辆当前的行驶速度s和方向θ。The vehicle obtains its own position information through GPS, and calculates the current speed s and direction θ of the vehicle based on the historical record of vehicle movement and current position information.

提取信标消息中的车辆节点ID,并判断发送该信标的车辆是否在当前车辆的邻接表中。如果是当前车辆的邻接节点,则更新邻接表;否则,将发送信标消息的车辆加入邻接表中。Extract the vehicle node ID in the beacon message, and determine whether the vehicle sending the beacon is in the adjacency list of the current vehicle. If it is an adjacent node of the current vehicle, update the adjacency list; otherwise, add the vehicle sending the beacon message to the adjacency list.

提取信标消息中的车辆位置信息、车辆方向信息、车辆速度信息和时间戳信息。估计邻接节点的当前时刻t2的位置(Xp,Yp)。Extract the vehicle position information, vehicle direction information, vehicle speed information and timestamp information in the beacon message. The position (X p , Y p ) of the adjacent node at the current time t 2 is estimated.

Xp=X+s×(t2-t1)×cos(θ)X p =X+s×(t 2 -t 1 )×cos(θ)

Yp=Y+s×(t2-t1)×sin(θ)Y p =Y+s×(t 2 -t 1 )×sin(θ)

其中(X,Y)和t1是对邻接车辆进行估计前最后一次接收的信标携带的位置信息和时间戳。而s和θ是车辆进行估计前最后一次接收到的信标中的车辆速度和方向信息。where (X, Y) and t 1 are the location information and timestamp carried by the last received beacon before the adjacent vehicle is estimated. And s and θ are the vehicle speed and direction information in the beacon last received by the vehicle before estimation.

当前车辆根据对邻接车辆的估计位置,计算出当前节点与其邻接节点间的通信链路的有效时间。The current vehicle calculates the effective time of the communication link between the current node and its adjacent nodes according to the estimated position of the adjacent vehicle.

车辆将邻接点的估计位置与自身位置进行比较,并将位置关系归为下面四类之一:前方同向、后方同向、前方反向、后方反向。The vehicle compares the estimated position of the adjacent point with its own position, and classifies the positional relationship into one of the following four categories: front co-directional, rear co-directional, front reverse, and rear reverse.

当前车辆计算自己与其邻接节点之间的距离D:The current vehicle calculates the distance D between itself and its neighbors:

D=((Xv-Xp)2+((Yv-Yp))2)1/2 D=((X v -X p ) 2 +((Y v -Y p )) 2 ) 1/2

这里的(Xv,Yv)表示当前车辆的坐标位置,(Xp和Yp)是邻接节点位置的估计坐标值。Here (X v , Y v ) represents the coordinate position of the current vehicle, and (X p and Y p ) are the estimated coordinate values of the adjacent node positions.

位置估计过程停止,直到当前车辆收到新的信标消息再重新开始。The position estimation process stops and restarts until the current vehicle receives a new beacon message.

当某一车辆发生高优先级的异常事件时,异常车辆立刻生成异常消息,选定转发节点进行广播。当其他车辆节点收到异常消息后,判断是否需要对异常消息进行广播。如果其他车辆节点中的节点之一被选中为转发节点,则需要转发消息。When a high-priority abnormal event occurs in a vehicle, the abnormal vehicle immediately generates an abnormal message and selects a forwarding node to broadcast. When other vehicle nodes receive the abnormal message, it is determined whether the abnormal message needs to be broadcast. The message needs to be forwarded if one of the other vehicle nodes is selected as the forwarding node.

如果异常车辆的同向后方存在车辆节点,异常车辆选择最远的车辆作为直接后继节点,选择次远的车辆作为第二后继节点。如果异常车辆后方反向上存在车辆,选择最远的车辆作为直接后继节点,选择次远的车辆作为第二后继节点。如果在异常车辆反向前方存在车辆,选择最近的车辆作为直接后继节点,选择次近的车辆作为第二后继节点。如果以上情况都不满足,则异常车辆存储异常消息,直到新的车辆进入其无线信息覆盖范围内,然后重新按照上述情况选择转发。If there is a vehicle node behind the abnormal vehicle in the same direction, the abnormal vehicle selects the farthest vehicle as the immediate successor node, and selects the next farthest vehicle as the second successor node. If there is a vehicle in the reverse direction behind the abnormal vehicle, the farthest vehicle is selected as the direct successor node, and the second farthest vehicle is selected as the second successor node. If there is a vehicle in the reverse direction of the abnormal vehicle, the nearest vehicle is selected as the immediate successor node, and the next closest vehicle is selected as the second successor node. If none of the above conditions are satisfied, the abnormal vehicle stores the abnormal message until the new vehicle enters its wireless information coverage area, and then selects forwarding again according to the above conditions.

在异常车辆选定转发节点后,根据转发节点与异常车辆节点的位置关系,分两种情况从转发节点R向其他节点分发异常消息。当前车辆同向的车辆R被选为转发节点,在收到异常消息后,R检测自身的位置,如果自身的位置超出异常车辆所在区域的边界,则广播复制的异常消息作为确认信息。如果自身的位置仍然位于异常车辆所在区域边界内,则转发节点R通过判断选择最优的后继节点。After the abnormal vehicle selects the forwarding node, according to the positional relationship between the forwarding node and the abnormal vehicle node, the abnormal message is distributed from the forwarding node R to other nodes in two cases. Vehicle R with the same direction as the current vehicle is selected as the forwarding node. After receiving the abnormal message, R detects its own position. If its own position exceeds the boundary of the area where the abnormal vehicle is located, it broadcasts the copied abnormal message as confirmation information. If its own position is still within the boundary of the area where the abnormal vehicle is located, the forwarding node R selects the optimal successor node by judging.

(a)如果在转发节点的行驶方向后方存在同向行驶车辆,转发节点R选择最远车辆作为首选的下一节点,选取次远的车辆作为转发节点的第二选择。(a) If there are vehicles traveling in the same direction behind the forwarding node's travel direction, the forwarding node R selects the farthest vehicle as the first choice for the next node, and selects the second farthest vehicle as the second choice for the forwarding node.

(b)如果在相反的行驶方向上存在车辆节点,则当前的转发节点选择最远的车辆作为直接后继节点,选择次远的节点作为第二后继节点。(b) If there is a vehicle node in the opposite driving direction, the current forwarding node selects the farthest vehicle as the immediate successor node, and the next farthest node as the second successor node.

(c)如果两种情况都不满足,转发节点广播一次异常消息作为确认,然后使用存储转发机制对异常消息进行缓存,同时检测转发节点的当前位置。如果发现转发节点正在路过异常车辆,则转发节点终止转发过程,否则,转发节点在遇到其他车辆时,选取下一转发节点,转发异常消息。(c) If the two conditions are not satisfied, the forwarding node broadcasts an exception message as confirmation, and then uses the store-and-forward mechanism to cache the exception message, and at the same time detects the current position of the forwarding node. If it is found that the forwarding node is passing by an abnormal vehicle, the forwarding node terminates the forwarding process; otherwise, when the forwarding node encounters other vehicles, the forwarding node selects the next forwarding node to forward the abnormal message.

当反向的车辆R被选为转发节点时,在收到异常消息后,转发节点检测自身的位置,如果超出异常车辆所在区域的边界,转发节点R只需广播重复的异常消息进行确认;否则,转发节点按照以下过程选择下一节点。When the reverse vehicle R is selected as the forwarding node, after receiving the abnormal message, the forwarding node detects its own position. If it exceeds the boundary of the area where the abnormal vehicle is located, the forwarding node R only needs to broadcast the repeated abnormal message for confirmation; otherwise , the forwarding node selects the next node according to the following process.

(a)如果转发节点R的反向后方不存在任何车辆节点,则它选择反向前方最远的车辆节点和次远的车辆节点作为后继中继的第一选择和第二选择。(a) If there is no vehicle node behind the forwarding node R in the reverse direction, it selects the farthest vehicle node and the second farthest vehicle node in the reverse direction as the first choice and the second choice of the subsequent relay.

(b)如果在R的同向前方存在车辆节点,则选定最远车辆和次远车辆将分别作为直接后继节点和第二后继节点。(b) If there is a vehicle node in the same direction ahead of R, the farthest vehicle and the next farthest vehicle are selected as the immediate successor node and the second successor node, respectively.

(c)如果两种情况都不满足,转发节点广播复制的异常消息作为确认信息,然后切换到存储转发模式,并进行位置检测。如果中继车辆超出异常车辆所在区域的边界,则终止转发,否则,转发节点继续选择下一节点。当转发节点或者后继转发节点接收到异常消息后,选择不同的车辆作为下一转发节点。(c) If both conditions are not satisfied, the forwarding node broadcasts the duplicated exception message as confirmation information, then switches to the store-and-forward mode, and performs location detection. If the relay vehicle exceeds the boundary of the area where the abnormal vehicle is located, the forwarding is terminated, otherwise, the forwarding node continues to select the next node. When the forwarding node or the subsequent forwarding node receives the abnormal message, a different vehicle is selected as the next forwarding node.

在上述转发方式的基础上,本发明利用具有预定路线的巡游车载节点的帮助进一步实现数据传输,有助于车辆节点向一个或多个目标节点分发数据。巡游车载节点沿预定义路线行驶,在行驶过程中不断发送消息,路侧节点广播所接收的消息,车辆节点在经过巡游节点覆盖范围时,接收到相应消息。网络中的消息都有唯一的消息id号,当目标节点R收到消息后,如果判定之前未曾收到过该消息,则将消息的id号存储在广播表中。如果目标节点R在其广播表中查找接收信息的相同的id号,表示该消息已收到过,确定为冗余消息,直接丢弃,否则目标节点R对数据进行下一步处理。On the basis of the above forwarding method, the present invention further realizes data transmission with the help of cruising vehicle-mounted nodes with predetermined routes, which helps vehicle nodes to distribute data to one or more target nodes. The cruising vehicle node travels along a predefined route and continuously sends messages during the driving process. The roadside node broadcasts the received message, and the vehicle node receives the corresponding message when it passes the coverage of the cruising node. Messages in the network have a unique message id number. When the target node R receives the message, if it determines that the message has not been received before, the id number of the message is stored in the broadcast table. If the target node R looks up the same id number of the received information in its broadcast table, it means that the message has been received, it is determined to be a redundant message, and it is discarded directly, otherwise the target node R will process the data in the next step.

根据GPS获取的位置信息,车辆节点判断自身是否位于车辆节点密集区。如果目标节点R位于车辆节点密集区或者R属于路侧节点,则R在延迟WD1后,转发收到的消息。如果接收节点R的位置不在车辆节点密集区但是源节点S位于车辆节点密集区,则R丢弃消息。如果源节点S不是车辆节点密集区节点,则R将自己的方向DR与最后一跳源节点S的方向DS继续比较,如果它们的移动方向相同,在延迟WD2后,发送消息。如果判定它们的方向相反,则放弃转发。According to the location information obtained by GPS, the vehicle node determines whether it is located in a dense area of vehicle nodes. If the target node R is located in a dense area of vehicle nodes or R belongs to a roadside node, then R forwards the received message after a delay of WD 1 . If the location of the receiving node R is not in the dense area of vehicle nodes but the source node S is located in the dense area of vehicle nodes, then R discards the message. If the source node S is not a node in the dense area of vehicle nodes, R will continue to compare its own direction DR with the direction D S of the last hop source node S , and if their moving directions are the same, after a delay of WD 2 , send a message. If it is determined that they are in opposite directions, the forwarding is discarded.

其中WD1=(1-Pd)×Tp where WD 1 =(1-P d )×T p

WD2=(1-Pd)×2Tp WD 2 =(1-P d )×2T p

Tp代表一跳广播之间的最小时长。T p represents the minimum duration between one-hop broadcasts.

Pd=ds-r/dmax为与距离相关的概率,ds-r为最后一次转发的源节点和目标节点的距离,dmax为节点覆盖范围内的最大值。P d =d sr /d max is the probability related to the distance, d sr is the distance between the source node and the target node of the last forwarding, and d max is the maximum value within the coverage area of the node.

本发明的路由管理模块将源节点和目标节点之间的通信过程分成路由请求,接收应答以及编码侦听。The routing management module of the present invention divides the communication process between the source node and the target node into routing request, receiving response and encoding interception.

当一个节点接收到路由请求消息时,首先创建或更新路由表项。然后查看在预定义间隔内是否收到相同的源IP地址和路由请求ID消息的路由请求分组,如果有,忽略目前收到的路由请求分组。当收到的路由请求不被忽略时,首先将路由请求中的跳数增1,然后在路由表中搜寻到源节点的反向路径,使用最长匹配原则,创建新的逆向路由表项,或者用路由请求中的源节点ID更新原有路由表项。当反向路径被创建或更新时,执行下面的操作:When a node receives a routing request message, it first creates or updates a routing table entry. Then check whether a routing request packet with the same source IP address and routing request ID message is received within a predefined interval, and if so, ignore the currently received routing request packet. When the received routing request is not ignored, first increase the number of hops in the routing request by 1, then search for the reverse path of the source node in the routing table, and use the longest matching principle to create a new reverse routing table entry. Or update the original routing table entry with the source node ID in the routing request. When a reverse path is created or updated, do the following:

(1)将路由请求消息源节点ID和对应的反向路由中的目标节点ID作比较,如果前者比后者大,将前者取代后者。(1) Compare the source node ID of the routing request message with the target node ID in the corresponding reverse route, and if the former is larger than the latter, replace the latter with the former.

(2)路由项的有效ID值被设为真。(2) The effective ID value of the routing entry is set to true.

(3)路由项的下一条设为向该节点传送路由请求的节点。(3) The next item of the routing item is set as the node that transmits the routing request to the node.

当一个节点收到路由响应时,首先在路由表中搜寻到前驱的路由项,创建不包含有效的ID的新的表项。然后节点将路由响应中的跳数增1。将路由响应中的目标节点ID和已有ID相比较。如果当前节点不是路由响应中的源节点,则查询路由表以决定路由响应的后继。如果节点发送的路由响应的链路有错误或是单向的,节点使路由响应的接收方回复一个应答信号。When a node receives a routing response, it first searches for the predecessor routing entry in the routing table, and creates a new entry that does not contain a valid ID. The node then increments the hop count in the route response by 1. Compare the target node ID in the route response with the existing ID. If the current node is not the source node in the routing response, the routing table is consulted to determine the successor of the routing response. If the link of the route response sent by the node is faulty or unidirectional, the node causes the receiver of the route response to reply with an acknowledgement signal.

任何转发路由响应的节点,均将发送路由响应的后继加入到去往目标节点的路由项前驱表中,在同一时间,修改源节点路径的生存期为现有的生存时间的较大值。路由响应是通过路由响应的广播包,进行侦听判断,如果有则存储路由响应中当前流的路径及侦听节点信息。通过路由层中报文请求以及控制层中相关判断条件的判断,进行是否下一步操作。Any node that forwards the route response will add the successor of the route response to the predecessor table of the route entry to the target node, and at the same time, modify the lifetime of the source node path to the larger value of the existing lifetime. The routing response is to judge the listening through the broadcast packet of the routing response, and if there is, store the path of the current flow and the listening node information in the routing response. Whether the next step is performed is determined by the packet request in the routing layer and the judgment of the relevant judgment conditions in the control layer.

编码侦听的判断条件为:The judgment conditions for encoding interception are:

节点队列中的k个待发送的报文p1,p2,…,pk,相应的后继节点为v1,v2,…,vk,经过编码得到编码报文广播该编码报文p至上述节点集v1,v2,…,vk。如果在v1,v2,…,vk中,准备接收报文pi的节点vi已经侦听到除pi外其它所有的报文,并且满足两个条件之一:The k messages p 1 , p 2 , ..., p k to be sent in the node queue, the corresponding successor nodes are v 1 , v 2 , ..., v k , the encoded messages are obtained after encoding Broadcast the encoded message p to the above node sets v 1 , v 2 , . . . , v k . If in v1 , v2 , .

节点vi是报文Pj的前驱节点,j≠i,或者Node v i is the precursor node of packet P j , j≠i, or

节点vi已侦听到报文Pj,j≠i;Node v i has detected the message P j , j≠i;

则节点vi将在一定时间内缓存报文pj以获得更多的编码。Then the node v i will buffer the message p j for a certain period of time to obtain more codes.

编码过程中,当无线信道有效时,节点则从输出队列中取出头部报文,并检查头部报文能否与队列中的其他初始报文进行编码。如果能够进行编码,则将这些初始报文进行相与运算后,广播到各邻接节点。如果无法编码,节点则直接广播该初始报文而不等待可匹配的初始报文。如果转发节点没有收到邻接节点发来的接收报告,则该节点使用路由协议来计算后继节点间链路的到达率,并依据到达率来估计后继节点存储某初始报文的可能性,并据此决定是否进行网络编码。During the encoding process, when the wireless channel is valid, the node takes out the header message from the output queue and checks whether the header message can be encoded with other initial messages in the queue. If the encoding can be performed, the initial packets will be ANDed and broadcast to each adjacent node. If it cannot be encoded, the node broadcasts the initial message directly without waiting for a matching initial message. If the forwarding node does not receive the reception report sent by the adjacent node, the node uses the routing protocol to calculate the arrival rate of the link between the successor nodes, and estimates the possibility of the successor node to store an initial message according to the arrival rate. This determines whether to do network coding.

若某转发节点一次将n个报文进行相与的编码,第n个报文的后继接收节点侦听到其他某一个报文i的概率为Pi,则该接收节点能正确解码的概率PD等于这节点能侦听参与编码的其他n-1个初始报文的概率:If a forwarding node encodes n packets at a time, and the probability that the subsequent receiving node of the n-th packet hears another packet i is P i , then the probability P that the receiving node can decode correctly is P i . D is equal to the probability that this node can listen to the other n-1 initial packets participating in the encoding:

PD=P1×P2×…×Pn-1 P D =P 1 ×P 2 ×…×P n-1

此时判断这n个初始报文的后继节点集可解码的概率PD是否满足大于一个阈值PG。如果满足阈值约束,则节点发起路由请求过程,向网络中广播路由请求报文,该报文中含有目标节点ID,编码ID,源节点地址和目标节点地址。当中间节点接收到路由请求报文,时,中间节点首先广播源节点发送来的路由请求报文,然后递增修改分组中的编码ID,将报文广播给具有编码的后继节点集,在包头中加入节点集的地址列表。如果在一个节点上收到不同的路由请求,首先判断目标节点ID的大小,用来更新路由;如果目标节点ID相同,则根据编码ID来判断具有编码的路径。在目标节点接收到的路由请求分组后,直接按原路反馈路由响应给源节点,建立从源节点到目标节点的具有编码的路由。At this time, it is judged whether the probability PD that the successor node set of the n initial messages can be decoded satisfies a threshold value P G or not. If the threshold constraint is met, the node initiates a routing request process and broadcasts a routing request message to the network, which contains the target node ID, code ID, source node address and target node address. When the intermediate node receives the routing request message, the intermediate node first broadcasts the routing request message sent by the source node, then incrementally modifies the encoded ID in the packet, and broadcasts the message to the set of subsequent nodes with encoding, in the packet header List of addresses to join the node set. If different routing requests are received on a node, the size of the target node ID is first determined to update the route; if the target node ID is the same, the encoded path is determined according to the encoded ID. After the target node receives the routing request packet, it directly feeds back the route response to the source node according to the original path, and establishes a coded route from the source node to the target node.

在车载网络中,由于网络拓扑结构时刻发生变化致使通信链路的不确定及时常间断,存在两种状态:当节点u,v处于彼此通信范围时,链路是连通并可传输;若不在通信范围内链路不通。In the in-vehicle network, due to the constant change of the network topology, the uncertainty and constant interruption of the communication link, there are two states: when the nodes u and v are within the communication range of each other, the link is connected and can be transmitted; if not in communication The link within the range fails.

(1)网络中每个节点u初始化各自本地群体集Cu、频繁访问集Fu、节点u和v的相遇时长W(u,v)和局部群体频繁访问集Lu(1) Each node u in the network initializes its own local group set C u , frequent visit set Fu , meeting duration W(u, v) of nodes u and v, and local group frequent visit set Lu .

(2)当节点u和v相遇时,节点相互交换本地信息,包括群体集、频繁访问集和局部群体频繁访问集。判断节点v是否属于Cu,若属于跳转7,若不属于转3。(2) When the nodes u and v meet, the nodes exchange local information with each other, including the group set, the frequent access set and the local group frequent access set. Determine whether node v belongs to C u , if it belongs to jump 7, if not to jump 3.

(3)统计节点v频繁访问集Fv和u群体集共同的节点个数num,如果共同节点个数num>K-1,K为预设阈值,将节点v加入u群体集,v频繁访问集Fv加入u局部群体频繁访问集Lu。如果num<K-1转6。(3) Count the number num of common nodes in the frequent access set F v and u group set by node v. If the number of common nodes num>K-1, K is the preset threshold, add node v to the u group set, and v frequently visits The set F v joins the u local population to frequently visit the set Lu . If num<K-1 turn to 6.

(4)取出节点v群体集中的第i个节点vi,统计节点i频繁访问集Fvi和u群体集Cu共同节点Inum,如果Inum≥K-1,将节点vi加入u群体集,vi频繁访问集Fvi加入u局部群体频繁访问集Lu。如果Inum<K-1则转5。(4) Take out the i-th node v i in the node v cluster set, and count the node i frequently visits the common node I num of the set F vi and the u cluster set C u , if I num ≥ K-1, add the node v i to the u cluster Set, vi frequently visited set F vi joins u local group frequently visited set Lu . Turn 5 if I num < K-1.

(5)判断i是否大于节点v群体集的大小,如果是则转7;如果不是则转4。(5) Determine whether i is greater than the size of the node v group set, if so, turn to 7; if not, turn to 4.

(6)计算节点u和v累计相遇时长W(u,v),判断是否W(u,v)>T,T为预设阈值,如果是则将节点v加入u群体集,v频繁访问集Fv加入u局部群体频繁访问集Lu。如果不是则转7。(6) Calculate the cumulative meeting time W(u, v) of nodes u and v, determine whether W(u, v)>T, T is the preset threshold, if so, add node v to the u group set, and v frequently visits the set F v joins the u local group frequently visited set Lu . If not go to 7.

(7)群体更新结束。(7) The group update is over.

在建立群体之后,群体内和群体间的传输模式中分别采用不同的数据转发策略实现。After the group is established, the intra-group and inter-group transmission modes are implemented with different data forwarding strategies.

节点u中所携带的报文遇到节点v时:When the message carried by node u encounters node v:

(1)若报文的目标节点D、所携带报文的u和所遇节点v,三个节点属于同一群体,使用本地活跃度衡量数据是否转发;若u的本地活跃度比v的大则被转发报文,否则将报文转发给v。(1) If the target node D of the message, the u of the carried message, and the encountered node v, the three nodes belong to the same group, use the local activity to measure whether the data is forwarded; if the local activity of u is greater than that of v, then The packet is forwarded, otherwise the packet is forwarded to v.

(2)若目标节点D和节点u和v不在相同群体,使用全局活跃度衡量报文是否转发。如果所携带报文的当前u节点全局活跃度大于遇到节点v则不转发,否则将报文转发给v。(2) If the target node D and nodes u and v are not in the same group, use the global activity to measure whether the message is forwarded. If the current global activity of node u of the packet is greater than that of node v, it will not forward the packet; otherwise, the packet will be forwarded to v.

(3)若目标节点D和节点u不在同一群体,却和节点v属于同一群体,则u将报文转发给v。(3) If the target node D and node u are not in the same group, but belong to the same group as node v, then u forwards the message to v.

(4)若目标节点和所携带报文的u节点是同一群体,和遇到的节点v在不同群体,则u不转发报文。(4) If the target node and the u node carrying the message are in the same group, and the encountered node v is in a different group, u does not forward the message.

根据上面几种情况转发报文,直到遇到目标节点,将报文递交。Forward the message according to the above conditions until the target node is encountered, and then submit the message.

综上所述,本发明提出了一种基于无线协议的终端车辆通信方法,适用于车载网络的拓扑结构频繁变换的条件,提高网络的吞吐量,降低网络拥塞。In summary, the present invention proposes a terminal-vehicle communication method based on a wireless protocol, which is suitable for the condition that the topology structure of the vehicle network changes frequently, improves the throughput of the network, and reduces the network congestion.

显然,本领域的技术人员应该理解,上述的本发明的各模块或各步骤可以用通用的计算系统来实现,它们可以集中在单个的计算系统上,或者分布在多个计算系统所组成的网络上,可选地,它们可以用计算系统可执行的程序代码来实现,从而,可以将它们存储在存储系统中由计算系统来执行。这样,本发明不限制于任何特定的硬件和软件结合。Obviously, those skilled in the art should understand that the above-mentioned modules or steps of the present invention can be implemented by a general-purpose computing system, and they can be centralized on a single computing system or distributed in a network composed of multiple computing systems Alternatively, they may be implemented in program code executable by a computing system, whereby they may be stored in a storage system for execution by the computing system. As such, the present invention is not limited to any particular combination of hardware and software.

应当理解的是,本发明的上述具体实施方式仅仅用于示例性说明或解释本发明的原理,而不构成对本发明的限制。因此,在不偏离本发明的精神和范围的情况下所做的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。此外,本发明所附权利要求旨在涵盖落入所附权利要求范围和边界、或者这种范围和边界的等同形式内的全部变化和修改例。It should be understood that the above-mentioned specific embodiments of the present invention are only used to illustrate or explain the principle of the present invention, but not to limit the present invention. Therefore, any modifications, equivalent replacements, improvements, etc. made without departing from the spirit and scope of the present invention should be included within the protection scope of the present invention. Furthermore, the appended claims of this invention are intended to cover all changes and modifications that fall within the scope and boundaries of the appended claims, or the equivalents of such scope and boundaries.

Claims (2)

1. A method for wireless protocol-based end-vehicle communication, comprising:
arranging tour vehicle-mounted nodes, driving along a predefined route, continuously sending messages in the driving process, broadcasting the received messages by roadside nodes, and receiving corresponding messages when the vehicle nodes pass through the network coverage range of the tour nodes;
(1) each node u in the vehicle-mounted network initializes a respective local colony set CuFrequent access set FuTime duration W (u, v) of encounter of nodes u and v and local population frequent visit set Lu
(2) When the nodes u and v meet, the nodes exchange local information mutually, wherein the local information comprises a group set, a frequent access set and a local group frequent access set; judging whether the node v belongs to CuIf the jump (7) is performed, if the jump is not performed, the turn (3) is not performed;
(3) statistical node v frequent visit set FvNumber of nodes num common to u group set, if common nodeNumber num>K-1, wherein K is a preset threshold value, adding a node v into a u group set, and v frequently accessing a set FvJoining u local population frequent Access set Lu(ii) a If num<K-1 rotation (6);
(4) taking out the ith node v in the node v colony setiStatistical node i frequent visit set FviAnd u population set CuCommon node InumIf I isnumMore than or equal to K-1, node viAdd u population set, viFrequent access set FviJoining u local population frequent Access set Lu(ii) a If Inum<K-1 is converted to (5);
(5) judging whether i is larger than the size of the group set of the node v, if so, turning to (7); if not, turning to (4);
(6) calculating the cumulative encounter duration W (u, v) of the nodes u and v, and judging whether W (u, v) exists or not>T and T are preset threshold values, if yes, the node v is added into the u group set, and v frequently visits the set FvJoining u local population frequent Access set Lu(ii) a If not, turning to (7);
(7) the population update is finished.
2. The method of claim 1, further comprising:
the messages in the network all have unique message id numbers, and after the target node R receives the messages, if the target node R judges that the messages are not received before, the id numbers of the messages are stored in a broadcast table; if the target node R finds the id number which is the same as the received information in the broadcast table, the message is received, the message is determined to be a redundant message and is directly discarded, otherwise, the target node R processes the data as follows;
according to the position information acquired by the GPS, the vehicle node judges whether the vehicle node is located in a vehicle node dense area; if target node R is located in a dense area of vehicle nodes or R belongs to a roadside node, R is delayed WD1Then, the received message is forwarded; if the location of the target node R is not in the vehicle node dense area but the source node S is in the vehicle node dense area, then R discards the message; if the source node S is not a vehicle node dense area node, then R will be its own direction DRDirection D to last hop source node SSContinuing the comparison, if their moving directions are the same, at delay WD2Then, sending the message, and if the direction of the message is opposite, giving up forwarding;
wherein WD1=(1-Pd)×Tp
WD2=(1-Pd)×2Tp
TpRepresents a minimum duration between one-hop broadcasts;
Pd=ds-r/dmaxas probability related to distance, ds-rDistance between source node and target node for the last forwarding, dmaxIs the maximum value within the node coverage.
CN201610630896.0A 2016-08-03 2016-08-03 Terminal-Vehicle Communication Method Based on Wireless Protocol Expired - Fee Related CN106304237B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610630896.0A CN106304237B (en) 2016-08-03 2016-08-03 Terminal-Vehicle Communication Method Based on Wireless Protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610630896.0A CN106304237B (en) 2016-08-03 2016-08-03 Terminal-Vehicle Communication Method Based on Wireless Protocol

Publications (2)

Publication Number Publication Date
CN106304237A CN106304237A (en) 2017-01-04
CN106304237B true CN106304237B (en) 2020-02-18

Family

ID=57664968

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610630896.0A Expired - Fee Related CN106304237B (en) 2016-08-03 2016-08-03 Terminal-Vehicle Communication Method Based on Wireless Protocol

Country Status (1)

Country Link
CN (1) CN106304237B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107889077B (en) * 2017-11-01 2020-06-09 浙江如新智能科技有限公司 Rapid data transmission method based on Internet of vehicles technology
CN111886823B (en) * 2018-03-08 2024-06-11 诺基亚技术有限公司 Method, apparatus and computer program

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103763785A (en) * 2013-12-31 2014-04-30 哈尔滨工业大学 VANET message broadcasting method based on distances
US9852637B2 (en) * 2014-01-10 2017-12-26 Regents Of The University Of Minnesota Vehicle-to-vehicle congestion monitoring using ad hoc control
WO2015124746A1 (en) * 2014-02-20 2015-08-27 Nec Europe Ltd. Method for performing delay-aware forwarding in a wireless ad hoc network
CN105592138B (en) * 2015-10-19 2018-08-28 中山大学 A kind of city vehicle-mounted road of crossing ad hoc nodes auxiliary is by protocol method

Also Published As

Publication number Publication date
CN106304237A (en) 2017-01-04

Similar Documents

Publication Publication Date Title
US11064321B2 (en) Content centric dynamic ad hoc networking
JP6407157B2 (en) Zone-based density-aware packet forwarding in vehicle networks
Li et al. A distance-based directional broadcast protocol for urban vehicular ad hoc network
CN102256333B (en) Data relay transmission method in vehicle Ad hoc network
Raja et al. SDN-enabled traffic alert system for IoV in smart cities
Zemouri et al. A fast, reliable and lightweight distributed dissemination protocol for safety messages in urban vehicular networks
CN103763753B (en) A kind of road grid traffic information fast propagation method based on VANET
Chitra et al. Efficient broadcasting mechanisms for data dissemination in vehicular ad hoc networks
Han et al. Speed and position aware dynamic routing for emergency message dissemination in VANETs
Benamar et al. Recent study of routing protocols in VANET: survey and taxonomy
Najafzadeh et al. Broadcasting in connected and fragmented vehicular ad hoc networks
Kuai et al. Delay-tolerant forwarding strategy for named data networking in vehicular environment
CN107105389B (en) Geographic information routing method based on road topological structure in vehicle-mounted network
Smida et al. Video streaming forwarding in a smart city’s VANET
Khan et al. Data collection from smart-city sensors through large-scale urban vehicular networks
Lin et al. Reliable forwarding strategy in vehicular networks using NDN
CN106304237B (en) Terminal-Vehicle Communication Method Based on Wireless Protocol
CN106254250B (en) Car networking short-distance networking method
KR20090056070A (en) Relay node selection method using competitive window in vehicle ad hoc network
Leal et al. Information-centric opportunistic data dissemination in vehicular ad hoc networks
Shiddharthy et al. A selective reliable communication to reduce broadcasting for cluster based VANET
Tei et al. Multi-criteria-based relay election for Data Dissemination in urban VANET
KR20090056072A (en) An Emergency Warning Message Broadcasting Method using Area-based Relay Node Selection Algorithm for Vehicle Ad Hoc Network
CN106332216B (en) Point-to-point communication method between vehicles
Koti et al. Intelligent safety information dissemination scheme for V2V communication in VANETs

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
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Wireless protocol-based terminal vehicle communication method

Effective date of registration: 20200619

Granted publication date: 20200218

Pledgee: Bank of Chengdu science and technology branch of Limited by Share Ltd.

Pledgor: CHENGDU ZHIDA TECHNOLOGY Co.,Ltd.

Registration number: Y2020980003275

PE01 Entry into force of the registration of the contract for pledge of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200218