CN118450464A - A data routing decision method based on comprehensive adaptive function - Google Patents
A data routing decision method based on comprehensive adaptive function Download PDFInfo
- Publication number
- CN118450464A CN118450464A CN202410518681.4A CN202410518681A CN118450464A CN 118450464 A CN118450464 A CN 118450464A CN 202410518681 A CN202410518681 A CN 202410518681A CN 118450464 A CN118450464 A CN 118450464A
- Authority
- CN
- China
- Prior art keywords
- terminal
- routing
- function
- terminals
- network
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/24—Connectivity information management, e.g. connectivity discovery or connectivity update
- H04W40/246—Connectivity information discovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/30—Services specially adapted for particular environments, situations or purposes
- H04W4/40—Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
-
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W40/00—Communication routing or communication path finding
- H04W40/24—Connectivity information management, e.g. connectivity discovery or connectivity update
- H04W40/248—Connectivity information update
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明涉及一种基于综合自适应函数的数据路由决策方法,该方法用于处理面向车辆边缘计算网络的数据路由决策,包括:在路由发现阶段进行网络初始化,并基于广播发现机制获取网络拓扑信息和可行路径集;在路由决策阶段基于网络拓扑信息和可行路径集构建路由信息表,基于综合自适应函数确定优先级,选择下一跳终端来获取主路径和辅助路径,并形成全网路径集;以及在路由维护阶段通过双阶段路由维护机制来更新路由表信息。与现有技术相比,本发明具有实现稳定、高效和可靠的网络数据路由、适用范围广等优点。
The present invention relates to a data routing decision method based on a comprehensive adaptive function, which is used to process data routing decisions for a vehicle edge computing network, including: initializing the network in the routing discovery phase, and obtaining network topology information and a feasible path set based on a broadcast discovery mechanism; constructing a routing information table based on network topology information and a feasible path set in the routing decision phase, determining the priority based on a comprehensive adaptive function, selecting a next-hop terminal to obtain a primary path and an auxiliary path, and forming a full-network path set; and updating routing table information through a dual-stage routing maintenance mechanism in the routing maintenance phase. Compared with the prior art, the present invention has the advantages of achieving stable, efficient and reliable network data routing, and a wide range of applications.
Description
技术领域Technical Field
本发明涉及车辆边缘计算网络路由技术领域,尤其是涉及一种基于综合自适应函数的数据路由决策方法。The present invention relates to the technical field of vehicle edge computing network routing, and in particular to a data routing decision method based on a comprehensive adaptive function.
背景技术Background technique
V2X(vehicle-to-everything,车对外界的信息交换)网络的自组织特性使车辆之间的无线通信成为可能,促进了不同地点的车辆之间的交互和对关键信息的无缝访问。这一功能为确保道路安全和提高交通效率提供了一条很有前途的途径。在V2X网络中,应用程序将产生大量数据密集型和计算密集型的任务,如辅助驾驶系统、视频娱乐、车辆状态监控和路径规划计算。然而,资源受限的车辆和无线移动性特性不仅会导致网络拥塞,还会影响任务路由的稳定性和可靠性,使得执行的任务无法满足低延迟通信服务质量的要求,从而限制了V2X网络的应用和发展。边缘计算范式的出现,被广泛认为是满足低延迟需求的关键推动因素。该范例的基本思想是通过使用部署在网络边缘的边缘服务器来扩展云服务来减少传输延迟。作为外部资源提供者,边缘服务器在扩展资源有限的V2X系统的计算能力方面发挥着关键作用。作为中介和协调员,他们还促进了跨终端云层的无缝通信。如图2,由车辆生成的计算密集型任务可以被卸载到这些边缘服务器上,以减少任务处理延迟和响应时间。更重要的是,卸载可以更灵活地将具有低计算负担的任务放置在车辆上的嵌入式终端设备上进行处理,实时和短周期任务在边缘服务器上进行计算,非实时长周期任务在云服务器上计算。显然,如何找到高效和可靠的传输路径使V2X任务路由和卸载问题的关键。The self-organizing nature of V2X (vehicle-to-everything) networks enables wireless communication between vehicles, facilitating interaction between vehicles at different locations and seamless access to critical information. This capability provides a promising way to ensure road safety and improve traffic efficiency. In V2X networks, applications will generate a large number of data-intensive and computation-intensive tasks, such as assisted driving systems, video entertainment, vehicle status monitoring, and path planning calculations. However, resource-constrained vehicle and wireless mobility characteristics not only lead to network congestion, but also affect the stability and reliability of task routing, making it impossible for the executed tasks to meet the requirements of low-latency communication service quality, thus limiting the application and development of V2X networks. The emergence of the edge computing paradigm is widely regarded as a key enabler to meet the low-latency requirements. The basic idea of this paradigm is to reduce transmission delays by extending cloud services using edge servers deployed at the edge of the network. As external resource providers, edge servers play a key role in extending the computing power of resource-limited V2X systems. As intermediaries and coordinators, they also facilitate seamless communication across terminal cloud layers. As shown in Figure 2, computationally intensive tasks generated by vehicles can be offloaded to these edge servers to reduce task processing delays and response times. More importantly, offloading can more flexibly place tasks with low computational burdens on embedded terminal devices on vehicles for processing, with real-time and short-cycle tasks being calculated on edge servers and non-real-time long-cycle tasks being calculated on cloud servers. Obviously, how to find efficient and reliable transmission paths is the key to V2X task routing and offloading.
虽然通过路由方案可以实现任务传输,但不能保证每辆车可能总是达到边缘服务器在一跳,特别是当链路失败在单路路由方案可能导致任务终止。与单路径路由方案相比,多路径路由方案可以存储多路径。凭借其数据转发能力,车辆可以将任务分配到不同的路径上,从而平衡负载分配,提高网络利用率。当一条路径出现故障时,车辆可以选择其他路径继续转发任务,以确保传输的可靠性。然而,车辆上的终端设备通常受到能量受限,车辆的能量耗尽会导致通信链路中断,中断会导致任务传输终止;其次,车辆移动性可能会导致V2X网络拓扑结构的变化,从而导致通信中断;然后,并不是所有的地方都被良好的无线信号所覆盖,不稳定的无线链路会导致传输任务的丢失;最后,车辆转发的任务容易受到电磁干扰和外部噪声等环境因素的影响,导致传输任务的损失和质量的下降。因此,需要一种能够识别外部环境和链路的稳定性路由方法来确保数据路由的可靠性和可持续性。Although task transmission can be achieved through routing schemes, it cannot be guaranteed that each vehicle may always reach the edge server in one hop, especially when link failure in single-path routing schemes may lead to task termination. Compared with single-path routing schemes, multi-path routing schemes can store multiple paths. With its data forwarding capability, vehicles can distribute tasks to different paths, thereby balancing load distribution and improving network utilization. When one path fails, vehicles can choose other paths to continue forwarding tasks to ensure the reliability of transmission. However, the terminal devices on the vehicle are usually energy-constrained, and the energy exhaustion of the vehicle will cause the communication link to be interrupted, and the interruption will lead to the termination of task transmission; secondly, vehicle mobility may cause changes in the topology of the V2X network, resulting in communication interruption; then, not all places are covered by good wireless signals, and unstable wireless links will lead to the loss of transmission tasks; finally, the tasks forwarded by the vehicle are easily affected by environmental factors such as electromagnetic interference and external noise, resulting in the loss of transmission tasks and the degradation of quality. Therefore, a routing method that can identify the external environment and the stability of the link is needed to ensure the reliability and sustainability of data routing.
如何实现稳定、高效、可靠的V2X网络数据路由,成为需要解决的技术问题。How to achieve stable, efficient and reliable V2X network data routing has become a technical problem that needs to be solved.
发明内容Summary of the invention
本发明的目的就是为了克服上述现有技术存在的缺陷而提供一种基于综合自适应函数的数据路由决策方法。The purpose of the present invention is to provide a data routing decision method based on a comprehensive adaptive function in order to overcome the defects of the above-mentioned prior art.
本发明的目的可以通过以下技术方案来实现:The purpose of the present invention can be achieved by the following technical solutions:
根据本发明的一个方面,提供了一种基于综合自适应函数的数据路由决策方法,该方法用于处理面向车辆边缘计算网络的数据路由决策,包括:According to one aspect of the present invention, a data routing decision method based on a comprehensive adaptive function is provided, the method is used to process data routing decisions for a vehicle edge computing network, and includes:
在路由发现阶段进行网络初始化,并基于广播发现机制获取网络拓扑信息和可行路径集;In the route discovery phase, the network is initialized and network topology information and feasible path sets are obtained based on the broadcast discovery mechanism;
在路由决策阶段基于网络拓扑信息和可行路径集构建路由信息表,基于综合自适应函数确定优先级,选择下一跳终端来获取主路径和辅助路径,并形成全网路径集;In the routing decision stage, a routing information table is constructed based on network topology information and feasible path sets, priorities are determined based on comprehensive adaptive functions, next-hop terminals are selected to obtain primary and secondary paths, and a network-wide path set is formed;
以及在路由维护阶段通过双阶段路由维护机制来更新路由表信息。And in the routing maintenance phase, the routing table information is updated through a two-phase routing maintenance mechanism.
优选地,所述在路由决策阶段基于网络拓扑信息和可行路径集构建路由信息表,基于综合自适应函数选择下一跳终端来获取主路径和辅助路径,并形成全网路径集包括:Preferably, in the routing decision stage, the routing information table is constructed based on the network topology information and the feasible path set, the next hop terminal is selected based on the comprehensive adaptive function to obtain the main path and the auxiliary path, and the whole network path set is formed, including:
基于拓扑信息表和可行路径集,终端通过信息交互获得彼此的当前状态信息以构建路由信息表;Based on the topology information table and the feasible path set, the terminals obtain each other's current state information through information exchange to build a routing information table;
借助路由信息表,终端将根据综合自适应函数值来确定优先级,指导下一跳终端的选择,并以此选择方式确定主传输路径上的所有终端,辅助路径选择没有被主路径占用的综合自适应函数大的终端;With the help of the routing information table, the terminal will determine the priority according to the comprehensive adaptive function value, guide the selection of the next-hop terminal, and determine all the terminals on the main transmission path in this way. The auxiliary path selects the terminal with a large comprehensive adaptive function that is not occupied by the main path;
对于源终端和目标服务器,通过选择主路径和多条辅助路径来构建不相交多路径,形成全网路径集。For the source terminal and the target server, a disjoint multi-path is constructed by selecting a primary path and multiple auxiliary paths to form a full network path set.
更加优选地,所述的综合自适应函数具体为:More preferably, the comprehensive adaptive function is specifically:
根据边缘中心函数、剩余能量函数和风险环境函数构建综合自适应函数,计算表达式为:A comprehensive adaptive function is constructed based on the edge center function, residual energy function and risk environment function. The calculation expression is:
式中,为综合自适应函数,ωEC为边缘-中心函数的权重系数,ωRE为剩余能量函数的权重系数,ωR为风险环境函数的权重系数,为边缘中心函数,为剩余能量函数,为风险环境函数;In the formula, is the comprehensive adaptive function, ω EC is the weight coefficient of the edge-center function, ω RE is the weight coefficient of the residual energy function, ω R is the weight coefficient of the risk environment function, is the edge-center function, is the residual energy function, is the risk environment function;
所述边缘中心函数的计算表达式为:The calculation expression of the edge center function is:
hi=min{hi→j|i∈VT,j∈VE}h i =min{h i→j |i∈V T ,j∈V E }
式中,为边缘中心函数,hi是终端i到达距离它最近的边缘服务器j的跳数,VT表示终端的集合,VE表示边缘服务器的集合;In the formula, is the edge-centric function, hi is the number of hops from terminal i to the nearest edge server j, V T represents the set of terminals, and V E represents the set of edge servers;
所述剩余能量函数的计算表达式为:The calculation expression of the residual energy function is:
式中,Ei(t)表示终端i在t时刻的剩余能量,E0为终端的初始能量,为剩余能量函数;In the formula, E i (t) represents the residual energy of terminal i at time t, E 0 is the initial energy of the terminal, is the residual energy function;
所述风险环境函数的计算表达式为:The calculation expression of the risk environment function is:
rmax=max{rj|j∈VT}r max = max{r j |j∈V T }
式中,是终端i的风险环境函数,rmax是网络中的最高风险等级,VT表示终端的集合,ri为终端i的风险等级。In the formula, is the risk environment function of terminal i, r max is the highest risk level in the network, V T represents the set of terminals, and ri is the risk level of terminal i.
优选地,所述在路由维护阶段通过双阶段路由维护机制来更新路由表信息包括:Preferably, updating the routing table information by a two-stage routing maintenance mechanism during the routing maintenance phase includes:
利用主路径和辅助路径进行数据传输期间,终端通过实时发送Hello消息来监视与其他终端的链路状态,基于是否回复Resp消息进行状态评判,并获取实时更新的网络拓扑信息表;During data transmission using the primary and secondary paths, the terminal monitors the link status with other terminals by sending Hello messages in real time, makes status judgments based on whether Resp messages are replied, and obtains a real-time updated network topology information table;
终端状态发生变化时,将变化情况以消息的形式及时反馈给邻居,并更新路由信息表。When the terminal status changes, the change is promptly fed back to the neighbor in the form of a message, and the routing information table is updated.
更加优选地,该方法还包括若拓扑信息表和路由信息表内容更新,则重新决策路由。More preferably, the method further comprises re-determining the route if the contents of the topology information table and the routing information table are updated.
更加优选地,所述终端状态发生变化时,将变化情况以消息的形式及时反馈给邻居,并更新路由信息表包括:计算不同数据传输模式的数据传输速率、计算数据传输延迟以及预测终端间链路寿命。More preferably, when the terminal status changes, the change is fed back to the neighbor in a timely manner in the form of a message, and the routing information table is updated including: calculating the data transmission rate of different data transmission modes, calculating the data transmission delay and predicting the link life between terminals.
更加优选地,所述数据传输模式包括终端到终端,以及终端到边缘服务器两种模式;More preferably, the data transmission mode includes two modes: terminal to terminal and terminal to edge server;
所述计算不同数据传输模式的数据传输速率具体为:The calculation of the data transmission rates of different data transmission modes is specifically as follows:
式中,表示从终端i到终端j的数据传输速率,表示从终端i到边缘服务器m的数据传输速率,wi表示终端i拥有的带宽资源,pi,j表示终端i的传输功率,表示从终端i到终端j的信道增益,N0表示噪声功率,qi,j(t)表示动态比例系数,表示从终端i到边缘服务器m的信道增益。In the formula, represents the data transmission rate from terminal i to terminal j, represents the data transmission rate from terminal i to edge server m, wi represents the bandwidth resources owned by terminal i, pi ,j represents the transmission power of terminal i, represents the channel gain from terminal i to terminal j, N 0 represents the noise power, qi ,j (t) represents the dynamic proportional coefficient, represents the channel gain from terminal i to edge server m.
更加优选地,所述数据传输延迟包括终端完成计算任务的执行延迟、终端将计算任务传输至边缘服务器通信延迟以及边缘服务器完成计算任务的计算延迟;More preferably, the data transmission delay includes an execution delay of the terminal completing the computing task, a communication delay of the terminal transmitting the computing task to the edge server, and a computational delay of the edge server completing the computing task;
数据传输延迟计算方式为:The data transmission delay is calculated as:
式中,表示终端i完成计算任务Ti的执行延迟,表示终端i将计算任务Ti传输至边缘服务器m的通信延迟;表示边缘服务器m完成计算任务Ti的计算延迟,其中计算延迟取决于完成计算任务Ti所需要的的计算能力和边缘服务器m自身的计算能力;表示边缘服务器m的计算能力,hi→m为终端i到边缘服务器m的中继跳数,为传输路径上不同终端间最小的传输速率,是传输路径上不同终端间最大的传输速率,di为计算任务的大小,ci为完成计算任务所需的计算资源。In the formula, represents the execution delay of terminal i to complete computing task Ti , represents the communication delay of terminal i transmitting computing task Ti to edge server m; represents the computational delay of edge server m to complete computational task Ti , where the computational delay Depends on the computing power required to complete the computing task Ti and the computing power of the edge server m itself; represents the computing power of edge server m, hi →m is the number of relay hops from terminal i to edge server m, is the minimum transmission rate between different terminals on the transmission path, is the maximum transmission rate between different terminals on the transmission path, d i is the size of the computing task, and ci is the computing resources required to complete the computing task.
更加优选地,所述预测终端间链路寿命具体为:More preferably, the predicted inter-terminal link lifetime is specifically:
链路寿命计算方式为:The link lifetime is calculated as follows:
式中,为终端间的欧式距离;r为通信半径;Rv=0表示车辆的初始位置在路侧单元的通信范围内,Rv=1表示车辆的初始位置在路侧单元的通信范围外;θ表示两个终端链接向量与相对速度向量之间的夹角。In the formula, is the Euclidean distance between terminals; r is the communication radius; R v = 0 indicates that the initial position of the vehicle is within the communication range of the roadside unit, and R v = 1 indicates that the initial position of the vehicle is outside the communication range of the roadside unit; θ indicates the angle between the link vectors of the two terminals and the relative speed vector.
优选地,所述网络初始化包括在指定区域内部署网络设备,并设置ID、划分终端类型、预设动态车辆终端的前进方向和速度,以及划分不同等级的风险区域,其中网络设备包括终端和边缘服务器;Preferably, the network initialization includes deploying network equipment in a designated area, setting IDs, classifying terminal types, presetting the forward direction and speed of dynamic vehicle terminals, and classifying risk areas of different levels, wherein the network equipment includes terminals and edge servers;
所述基于广播发现机制获取网络拓扑信息和可行路径集具体为:终端通过广播Hello消息请求获取邻居列表,然后基于请求回复的Resp消息获取邻居的坐标位置、能量及环境状况,边缘服务器同步所有终端的邻居列表获取网络拓扑信息,并基于离线计算方式获取可行路径集。The method of obtaining network topology information and feasible path set based on the broadcast discovery mechanism is as follows: the terminal requests to obtain a neighbor list by broadcasting a Hello message, and then obtains the coordinate position, energy and environmental conditions of the neighbor based on the Resp message in reply to the request. The edge server synchronizes the neighbor lists of all terminals to obtain network topology information, and obtains a feasible path set based on an offline calculation method.
与现有技术相比,本发明具有以下有益效果:Compared with the prior art, the present invention has the following beneficial effects:
1)本发明设计了综合自适应函数用于数据路由决策,通过识别无线链路的稳定性来缓解链接中断对数据传输的影响,并通过感知车辆周围的环境条件,并实时调整路径,以绕过“危险环境区域”来缓解外部干扰对数据路由的影响;借助综合自适应函数来帮助车辆做出路由决策,实现稳定、高效和可靠的网络数据路由,从而确保数据传输的可靠性、实时性和可持续性。1) The present invention designs a comprehensive adaptive function for data routing decision-making, which mitigates the impact of link interruption on data transmission by identifying the stability of the wireless link, and mitigates the impact of external interference on data routing by sensing the environmental conditions around the vehicle and adjusting the path in real time to bypass the "dangerous environment area"; with the help of the comprehensive adaptive function, the vehicle is helped to make routing decisions to achieve stable, efficient and reliable network data routing, thereby ensuring the reliability, real-time and sustainability of data transmission.
2)本发明提出一种双阶段路由维护机制,通过状态评判和消息反馈来实时更新状态信息以帮助后续的路由更新,进一步提高了数据路由的各项性能。2) The present invention proposes a two-stage routing maintenance mechanism, which updates the status information in real time through status evaluation and message feedback to assist in subsequent routing updates, thereby further improving various performances of data routing.
3)本发明的综合自适应函数通过设置不同函数的权重比来满足不同场景的应用需求,方便灵活,适用范围广。3) The comprehensive adaptive function of the present invention meets the application requirements of different scenarios by setting the weight ratios of different functions, which is convenient, flexible and has a wide range of applications.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明中基于综合自适应函数的数据路由决策方法的流程示意图;FIG1 is a schematic diagram of a flow chart of a data routing decision method based on a comprehensive adaptive function in the present invention;
图2为现有技术车辆边缘计算网络三层架构示意图;FIG2 is a schematic diagram of a three-layer architecture of a vehicle edge computing network in the prior art;
图3为本发明中网络初始化过程示意图;FIG3 is a schematic diagram of a network initialization process in the present invention;
图4为本发明中路由发现过程示意图;FIG4 is a schematic diagram of a routing discovery process in the present invention;
图5为本发明中路由决策过程示意图;FIG5 is a schematic diagram of the routing decision process in the present invention;
图6为本发明中路由维护过程示意图;FIG6 is a schematic diagram of the routing maintenance process in the present invention;
图7为本发明中自适应函数权重对数据包接收率影响示意图;FIG7 is a schematic diagram showing the effect of the adaptive function weight on the data packet receiving rate in the present invention;
图8为本发明中自适应函数权重对数据包丢失率影响示意图;FIG8 is a schematic diagram showing the effect of the adaptive function weight on the packet loss rate in the present invention;
图9为本发明中自适应函数权重对能量均衡指数影响示意图;FIG9 is a schematic diagram showing the effect of the adaptive function weight on the energy balance index in the present invention;
图10为本发明中自适应函数权重对端到端延迟影响示意图;FIG10 is a schematic diagram showing the effect of the adaptive function weight on the end-to-end delay in the present invention;
附图中,PRR:数据包接收率,PLR:数据包丢失率,EBI:能量均衡指数,EED:端到端延迟。In the figure, PRR: packet reception rate, PLR: packet loss rate, EBI: energy balance index, EED: end-to-end delay.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明的一部分实施例,而不是全部实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动的前提下所获得的所有其他实施例,都应属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
本实施例涉及一种基于综合自适应函数的数据路由决策方法,如图1包括:This embodiment relates to a data routing decision method based on a comprehensive adaptive function, as shown in FIG1 , including:
在路由发现阶段进行网络初始化,并基于广播发现机制获取拓扑信息和可行路径集。In the routing discovery phase, the network is initialized and the topology information and feasible path set are obtained based on the broadcast discovery mechanism.
在路由决策阶段通过信息交互构建路由信息表,借助综合自适应函数指导下一跳终端的选择以获取主路径和辅助路径,并获取全网路径集。In the routing decision stage, a routing information table is constructed through information interaction, and a comprehensive adaptive function is used to guide the selection of the next-hop terminal to obtain the main path and auxiliary path, and obtain the path set of the entire network.
在路由维护阶段通过双阶段路由维护机制来更新路由表信息,其中双阶段路由维护机制包括状态评判实时更新拓扑信息表,以及基于消息反馈更新路由表信息。若拓扑信息表和路由信息表内容更新,则需重新决策路由,否则继续等待拓扑和路由的更新。In the routing maintenance phase, the routing table information is updated through a two-stage routing maintenance mechanism, which includes real-time updating of the topology information table based on status evaluation and updating of the routing table information based on message feedback. If the contents of the topology information table and the routing information table are updated, the routing decision needs to be made again, otherwise, the topology and routing updates will continue.
基于综合自适应函数的数据路由决策方法具体包括以下步骤:The data routing decision method based on the comprehensive adaptive function specifically includes the following steps:
步骤S1:通过在指定区域内部署设备(即终端和边缘服务器)并设置ID、划分终端类型(包括动态车辆终端和静态终端)、预设动态车辆终端的前进方向和速度以及划分不同等级的风险区域来进行网络初始化,如图3所示;Step S1: Initialize the network by deploying devices (i.e., terminals and edge servers) in a specified area and setting IDs, classifying terminal types (including dynamic vehicle terminals and static terminals), presetting the forward direction and speed of dynamic vehicle terminals, and dividing risk areas of different levels, as shown in Figure 3;
步骤S2:初始化网络后,网络设备通过广播Hello消息请求获取邻居列表,然后基于请求回复的Resp消息获取邻居的坐标位置、能量及环境状况,边缘服务器同步所有终端的邻居列表获取网络拓扑信息,并基于离线计算方式获取可行路径集,如图4;Step S2: After the network is initialized, the network device broadcasts a Hello message to request a neighbor list, and then obtains the coordinate position, energy and environmental conditions of the neighbor based on the Resp message in reply to the request. The edge server synchronizes the neighbor lists of all terminals to obtain network topology information, and obtains a feasible path set based on an offline calculation method, as shown in Figure 4;
步骤S3:基于拓扑信息表和可行路径集,网络终端通过信息交互获得彼此的当前状态信息以构建路由信息表;Step S3: Based on the topology information table and the feasible path set, the network terminals obtain each other's current state information through information exchange to construct a routing information table;
步骤S4:借助路由信息表,网络终端将根据综合自适应函数值来确定优先级并指导下一跳终端的选择,并以此选择方式可以确定主传输路径上的所有终端,辅助路径将选择没有被主路径占用的综合自适应函数大的终端;Step S4: With the help of the routing information table, the network terminal will determine the priority and guide the selection of the next hop terminal according to the comprehensive adaptive function value, and in this way, all the terminals on the main transmission path can be determined, and the auxiliary path will select the terminal with a large comprehensive adaptive function that is not occupied by the main path;
步骤S5:对于源终端和目标服务器可以通过选择主路径和多条辅助路径以构建不相交多路径,并获取全网路径集,如图5;Step S5: For the source terminal and the target server, a main path and multiple auxiliary paths may be selected to construct a disjoint multi-path, and a full network path set may be obtained, as shown in FIG5 ;
步骤S6:利用主路径和辅助路径进行数据传输期间,终端通过实时发送Hello消息来监视与其他终端的链路状态,基于是否回复Resp消息进行状态评判,并获取实时更新的网络拓扑信息;Step S6: During data transmission using the primary path and the auxiliary path, the terminal monitors the link status with other terminals by sending Hello messages in real time, makes status judgment based on whether a Resp message is replied, and obtains real-time updated network topology information;
步骤S7:终端状态发生变化时,变化情况将以消息(包括警告消息和提醒信息)的形式及时反馈给邻居,并更新路由信息表(包括邻居及状态)。Step S7: When the terminal status changes, the change will be fed back to the neighbors in a timely manner in the form of messages (including warning messages and reminder information), and the routing information table (including neighbors and status) will be updated.
步骤S4中,根据边缘中心函数、剩余能量函数和风险环境函数构建综合自适应函数,计算表达式为:In step S4, a comprehensive adaptive function is constructed based on the edge center function, the residual energy function and the risk environment function, and the calculation expression is:
式中,为综合自适应函数,ωEC为边缘-中心函数的权重系数,ωRE为剩余能量函数的权重系数,ωR为风险环境函数的权重系数,为边缘中心函数,为剩余能量函数,为风险环境函数。In the formula, is the comprehensive adaptive function, ω EC is the weight coefficient of the edge-center function, ω RE is the weight coefficient of the residual energy function, ω R is the weight coefficient of the risk environment function, is the edge-center function, is the residual energy function, is a function of the risk environment.
其中,边缘中心函数的计算表达式为:Among them, the edge center function The calculation expression is:
hi=min{hi→j|i∈VT,j∈VE}h i =min{h i→j |i∈V T ,j∈V E }
式中,为边缘中心函数,hi是终端i到达距离它最近的边缘服务器j的跳数,VT表示终端的集合,VE表示边缘服务器的集合。In the formula, is the edge-centric function, hi is the number of hops from terminal i to the nearest edge server j, VT represents the set of terminals, and VE represents the set of edge servers.
剩余能量函数的计算表达式为:The calculation expression of the residual energy function is:
式中,Ei(t)表示终端i在t时刻的剩余能量,E0为终端的初始能量,为剩余能量函数。In the formula, E i (t) represents the residual energy of terminal i at time t, E 0 is the initial energy of the terminal, is the residual energy function.
风险环境函数的计算表达式为:The calculation expression of the risk environment function is:
rmax=max{rj|j∈VT}r max = max{r j |j∈V T }
式中,是终端i的风险环境函数,rmax是网络中的最高风险等级,VT表示终端的集合,ri为终端i的风险等级。In the formula, is the risk environment function of terminal i, r max is the highest risk level in the network, V T represents the set of terminals, and ri is the risk level of terminal i.
步骤S7中,更新路由信息表还包括计算不同数据传输模式的数据传输速率、计算数据传输延迟和预测终端间链路寿命。In step S7, updating the routing information table further includes calculating data transmission rates of different data transmission modes, calculating data transmission delays, and predicting the link life between terminals.
有两种传输模式,分别为:终端到终端(T2T),以及终端到边缘服务器(T2E)。不同数据传输模式下的数据传输速率计算方式为:There are two transmission modes: terminal to terminal (T2T) and terminal to edge server (T2E). The data transmission rate calculation method under different data transmission modes is:
式中,表示从终端i到终端j的数据传输速率,表示从终端i到边缘服务器m的数据传输速率,wi表示终端i拥有的带宽资源,pi,j表示终端i的传输功率,表示从终端i到终端j的信道增益,N0表示噪声功率,qi,j(t)表示动态比例系数,表示从终端i到边缘服务器m的信道增益。In the formula, represents the data transmission rate from terminal i to terminal j, represents the data transmission rate from terminal i to edge server m, wi represents the bandwidth resources owned by terminal i, pi ,j represents the transmission power of terminal i, represents the channel gain from terminal i to terminal j, N 0 represents the noise power, qi ,j (t) represents the dynamic proportional coefficient, represents the channel gain from terminal i to edge server m.
数据传输延迟计算方式为:The data transmission delay is calculated as:
式中,表示终端i完成计算任务Ti的执行延迟,表示终端i将计算任务Ti传输至边缘服务器m的通信延迟;表示边缘服务器m完成计算任务Ti的计算延迟,其中计算延迟取决于完成计算任务Ti所需要的的计算能力和边缘服务器m自身的计算能力;表示边缘服务器m的计算能力,hi→m为终端i到边缘服务器m的中继跳数,为传输路径上不同终端间最小的传输速率,是传输路径上不同终端间最大的传输速率,di为计算任务的大小,ci为完成计算任务所需的计算资源。In the formula, represents the execution delay of terminal i to complete computing task Ti , represents the communication delay of terminal i transmitting computing task Ti to edge server m; represents the computational delay of edge server m to complete computational task Ti , where the computational delay Depends on the computing power required to complete the computing task Ti and the computing power of the edge server m itself; represents the computing power of edge server m, hi →m is the number of relay hops from terminal i to edge server m, is the minimum transmission rate between different terminals on the transmission path, is the maximum transmission rate between different terminals on the transmission path, d i is the size of the computing task, and ci is the computing resources required to complete the computing task.
在进行路由决策之前,会先预测链路寿命,如果任务传输的时间比链路寿命长,那么就不会选择这条传输路径,因为任务在传输过程中会由于链路寿命不足导致任务传输中断,如图6中的短寿命虚线路径就不会被选择作为传输路径。Before making a routing decision, the link lifetime is predicted. If the task transmission time is longer than the link lifetime, this transmission path will not be selected because the task transmission will be interrupted due to insufficient link lifetime during the transmission process. For example, the short-lived dotted path in Figure 6 will not be selected as the transmission path.
链路寿命计算方式为:The link lifetime is calculated as follows:
式中,为终端间的欧式距离;r为通信半径;Rv=0表示车辆的初始位置在路侧单元(RSU:Road-side unit)的通信范围内,Rv=1表示车辆的初始位置在路侧单元的通信范围外;θ表示两个终端链接向量与相对速度向量之间的夹角。In the formula, is the Euclidean distance between terminals; r is the communication radius; R v =0 indicates that the initial position of the vehicle is within the communication range of the road-side unit (RSU), and R v =1 indicates that the initial position of the vehicle is outside the communication range of the road-side unit; θ indicates the angle between the link vectors of the two terminals and the relative speed vector.
路径的链路寿命越大,剩余能量越多以及中继次数越少的,我们会优先选择该路径。We will give priority to the path with a longer link lifetime, more remaining energy, and fewer relay times.
数据路由决策方法包括路由发现、路由决策和路由维护三个阶段,并可以基于设备本身的通信、处理和存储模块实现,无需另外添加或修改设备的组件。The data routing decision method includes three stages: routing discovery, routing decision and routing maintenance, and can be implemented based on the communication, processing and storage modules of the device itself without adding or modifying the components of the device.
本发明还涉及一种基于综合自适应函数的路由决策方法的实验研究,结果如下:The present invention also relates to an experimental study of a routing decision method based on a comprehensive adaptive function, and the results are as follows:
如图7所示,综合自适应函数不同权重设置下的数据包接收率(PRR),不难发现,随着边缘-中心函数权重的增加,数据包接收率逐渐增大。As shown in Figure 7, the packet reception rate (PRR) under different weight settings of the comprehensive adaptive function shows that as the weight of the edge-center function increases, the packet reception rate gradually increases.
如图8所示,当在路由决策中考虑到剩余能量时,数据包丢失主要是由风险环境造成的。当不考虑剩余能量时,数据损失主要是由于终端的能量消耗所致。此外,随着剩余能量函数和风险环境函数权重的增加,数据包丢失率(PLR)也会逐渐减小。As shown in Figure 8, when the residual energy is considered in the routing decision, the packet loss is mainly caused by the risk environment. When the residual energy is not considered, the data loss is mainly caused by the energy consumption of the terminal. In addition, as the weights of the residual energy function and the risk environment function increase, the packet loss rate (PLR) will gradually decrease.
如图9所示为综合自适应函数不同权重设置下的能量均衡指数(EBI)。可以观察到,增加剩余能量函数的权重可以显著降低EBI。The energy balance index (EBI) under different weight settings of the comprehensive adaptive function is shown in Figure 9. It can be observed that increasing the weight of the residual energy function can significantly reduce the EBI.
如图10所示为综合自适应函数不同权重设置下的端到端延迟(EED)的累积分布。可以观察到,EED随着边缘中心函数权重的升高而减小。The cumulative distribution of end-to-end delay (EED) under different weight settings of the comprehensive adaptive function is shown in Figure 10. It can be observed that EED decreases with the increase of the edge center function weight.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到各种等效的修改或替换,这些修改或替换都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of various equivalent modifications or substitutions within the technical scope disclosed by the present invention, and these modifications or substitutions should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410518681.4A CN118450464A (en) | 2024-04-28 | 2024-04-28 | A data routing decision method based on comprehensive adaptive function |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202410518681.4A CN118450464A (en) | 2024-04-28 | 2024-04-28 | A data routing decision method based on comprehensive adaptive function |
Publications (1)
Publication Number | Publication Date |
---|---|
CN118450464A true CN118450464A (en) | 2024-08-06 |
Family
ID=92327511
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202410518681.4A Pending CN118450464A (en) | 2024-04-28 | 2024-04-28 | A data routing decision method based on comprehensive adaptive function |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN118450464A (en) |
-
2024
- 2024-04-28 CN CN202410518681.4A patent/CN118450464A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8199664B2 (en) | Communication terminal and communication network | |
Senthilkumaran et al. | Dynamic congestion detection and control routing in ad hoc networks | |
Reddy et al. | Energy-efficient stable multipath routing in MANET | |
Vadivel et al. | Adaptive reliable and congestion control routing protocol for MANET | |
Anuradha et al. | Cross-layer based congestion detection and routing protocol using fuzzy logic for MANET | |
CN113490251B (en) | Mobile ad hoc network route construction method based on flooding constraint and multi-metric function | |
Sultanuddin et al. | Token system‐based efficient route optimization in mobile ad hoc network for vehicular ad hoc network in smart city | |
Ghaleb et al. | Energy efficient multipath routing using multi-objective grey wolf optimizer based dynamic source routing algorithm for manet | |
Venkatasubramanian et al. | QoS provisioning in MANET using fuzzy-based multifactor multipath routing metric | |
CN110831006A (en) | Ad hoc network system and data transmission method thereof | |
Liu et al. | Advanced fast recovery OLSR protocol for UAV swarms in the presence of topological change | |
Kaur et al. | Analysis of traffic impact on proposed congestion control scheme in AODV | |
Hao et al. | An adaptive load-aware routing algorithm for multi-interface wireless mesh networks | |
Waheed et al. | Laod: Link aware on demand routing in flying ad-hoc networks | |
WO2013133185A1 (en) | Communication system and communication method | |
Ayub et al. | Energy efficient inactive node detection based routing protocol for delay tolerant network | |
Gulati et al. | Load Balanced and Link Break Prediction Routing Protocol for Mobile Ad Hoc Networks. | |
CN118450464A (en) | A data routing decision method based on comprehensive adaptive function | |
Pourfakhar et al. | A hybrid QoS multicast framework-based protocol for wireless mesh networks | |
CN118282483A (en) | Inter-satellite routing method and device under periodic oscillation scene of link state | |
Narayana Rao et al. | Way-point multicast routing framework for improving QoS in hybrid wireless mesh networks | |
Verma et al. | Stable energy proficient and load balancing based QoS routing in mobile Ad-Hoc networks: Mobile software based approach | |
CN114390476B (en) | A routing method for aviation ad hoc networks based on end-to-end quality parameters | |
Jawhar et al. | Towards more reliable and secure source routing in mobile ad hoc and sensor networks | |
Ezhil Selvan et al. | An efficient method for adjustable load equalization for reducing traffic in routing for mobile Ad Hoc networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |