CN101048012A - Method for deciding route at radio mesh network - Google Patents
Method for deciding route at radio mesh network Download PDFInfo
- Publication number
- CN101048012A CN101048012A CNA2006100900354A CN200610090035A CN101048012A CN 101048012 A CN101048012 A CN 101048012A CN A2006100900354 A CNA2006100900354 A CN A2006100900354A CN 200610090035 A CN200610090035 A CN 200610090035A CN 101048012 A CN101048012 A CN 101048012A
- Authority
- CN
- China
- Prior art keywords
- node
- routing request
- path
- currently received
- pdr
- 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
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种在无线网状网络中确定路由的方法,包括:针对不同的业务类型设置不同的路由决策策略;源节点接收到携带路径信息的多条路由响应后,根据本次业务类型对应的路由决策策略和各条路由响应中的路径信息,确定本次业务对应的路由。本发明对于不同的业务类型采用不同的路由策略来确定路由,因此,能够保证源节点与目的节点之间每一种业务类型数据的传输,均能够满足其业务服务质量要求,并充分利用网络资源,从而大大提高了网络的性能。
The invention discloses a method for determining a route in a wireless mesh network, comprising: setting different routing decision-making strategies for different service types; The corresponding route decision policy and the path information in each route response determine the route corresponding to this service. The present invention adopts different routing strategies for different business types to determine the route, therefore, it can ensure that the data transmission of each business type between the source node and the destination node can meet the service quality requirements of the business, and make full use of network resources , thereby greatly improving the performance of the network.
Description
技术领域technical field
本发明涉及网络通信技术,特别是涉及一种在无线网状网络(WirelessMesh Network,WMN)中确定路由的方法。The invention relates to network communication technology, in particular to a method for determining routing in a wireless mesh network (Wireless Mesh Network, WMN).
背景技术Background technique
WMN是一种新型的宽带无线网络结构,是一种高容量、高速率的分布式无线网络。在WMN网络中,在进行业务数据传输时所使用的母体路由协议主要为动态源路由(Dynamic Source Routing,DSR)协议。WMN is a new broadband wireless network structure and a high-capacity, high-speed distributed wireless network. In the WMN network, the parent routing protocol used for business data transmission is mainly the Dynamic Source Routing (Dynamic Source Routing, DSR) protocol.
图1是在现有技术中确定两个节点之间路由的流程图。参见图1,目前在WMN网络中,当一个源节点,比如源节点A,需要确定到达一个目的节点,比如目的节点C的路由时,现有技术利用DSR协议确定源节点A与目的节点C之间路由的过程包括以下步骤:Fig. 1 is a flowchart of determining a route between two nodes in the prior art. Referring to Fig. 1, in the current WMN network, when a source node, such as source node A, needs to determine a route to a destination node, such as destination node C, the prior art uses the DSR protocol to determine the route between source node A and destination node C. The process of inter-routing includes the following steps:
步骤101:源节点A通过广播方式发送一个针对目的节点C的路由请求(Route Request,RREQ)。Step 101: The source node A sends a routing request (Route Request, RREQ) for the destination node C by broadcasting.
这里,所述的路由请求中可以包括:该广播路由请求的生命周期TTL(一般为跳数限制)、该路由请求的包序号、源节点自身的地址信息和目的节点的地址信息等。Here, the routing request may include: the life cycle TTL of the broadcast routing request (generally a hop limit), the packet sequence number of the routing request, the address information of the source node itself, the address information of the destination node, and the like.
步骤102:中间节点B接收到该路由请求,判断是否应丢弃当前接收到的路由请求,如果是,则结束当前流程,否则,执行步骤103。Step 102: The intermediate node B receives the routing request, and judges whether the currently received routing request should be discarded, and if so, ends the current process; otherwise, executes step 103.
这里,中间节点B判断是否应丢弃当前接收到的路由请求的过程为:中间节点B判断自身是否曾收到过所述源节点A发送给所述目的节点C的路由请求,如果未曾接收到,则认为不应丢弃当前接收到的路由请求,如果曾接收到,则判断曾收到过的所述路由请求的包序号是否大于或等于与当前收到的路由请求的包序号,如果是,则确定丢弃当前接收到的路由请求,否则认为不应丢弃当前接收到的路由请求。Here, the process for the intermediate node B to determine whether the currently received routing request should be discarded is as follows: the intermediate node B determines whether it has ever received the routing request sent by the source node A to the destination node C, if it has not received it, Then think that the currently received routing request should not be discarded, if once received, then judge whether the packet sequence number of the previously received routing request is greater than or equal to the packet sequence number of the currently received routing request, if yes, then It is determined to discard the currently received routing request, otherwise it is considered that the currently received routing request should not be discarded.
步骤103:中间节点B将本节点的路径信息携带在接收到的路由请求中,然后将当前的路由请求发送至目的节点C。Step 103: The intermediate node B carries the route information of this node in the received routing request, and then sends the current routing request to the destination node C.
需要说明的是,由于在步骤101中,源节点A通过广播方式发送路由请求,所以路由请求会通过多条路径进行传输,在每一条路径上,各个中间节点的处理过程正如在图1中中间节点B的处理过程。相应的,目的节点所接收到的路由请求是由不同路径上的不同中间节点发来的携带不同路径信息的多条路由请求。It should be noted that since in step 101, the source node A broadcasts the routing request, the routing request will be transmitted through multiple paths, and on each path, the processing process of each intermediate node is as shown in Figure 1. The processing procedure of Node B. Correspondingly, the routing requests received by the destination node are multiple routing requests carrying different path information sent by different intermediate nodes on different paths.
步骤104:目的节点C接收到每一条路由请求时,均将本节点收集的路径信息携带在该路由请求中。Step 104: When the destination node C receives each routing request, it carries the path information collected by the node in the routing request.
步骤105:目的节点C接收到每一条路由请求时,均将该路由请求中的所有路径信息携带在一条路由响应中发送至源节点A。Step 105: When the destination node C receives each routing request, it carries all the path information in the routing request and sends it to the source node A in a routing response.
步骤106:源节点A接收到各条路由响应后,根据各条路由响应中携带的所有路径信息,将节点跳数最少的路径确定为本次业务类型的路由。Step 106: After receiving the route responses, the source node A determines the route with the least number of node hops as the route for this service type according to all the route information carried in the route responses.
步骤107:源节点A通过所确定的节点跳数最少的路由将本次业务数据发送至目的节点C。Step 107: The source node A sends the current service data to the destination node C through the determined route with the least number of node hops.
由上述图1所示流程可以看出,当源节点接收到携带各种路径信息的路由响应后,无论本次业务为何种业务类型,源节点确定的路由均是节点跳数最少的路径,在后续过程中,源节点在发送本次业务类型的业务数据时,则按照所确定的节点跳数最少的路径进行传输。From the process shown in Figure 1 above, it can be seen that when the source node receives the routing response carrying various path information, no matter what type of business this service is, the route determined by the source node is the path with the least number of node hops. In the subsequent process, when the source node sends the service data of this service type, it transmits according to the determined path with the least number of node hops.
然而,目前WMN的业务特点之一就是提供了多媒体业务服务,也就是说,在WMN网络中可以传输多种业务类型的数据,比如,语音类型的业务数据、视频类型的业务数据、文本类型的业务数据和尽力而为类型的业务数据等。对于不同业务类型的数据,其对业务服务质量的要求是不同的。However, one of the business characteristics of the current WMN is to provide multimedia business services, that is, data of various types of business can be transmitted in the WMN network, for example, business data of voice type, business data of video type, text type Business data and best-effort type business data, etc. For data of different business types, the requirements for business service quality are different.
由此可见,现有技术对于不同的业务类型不加以区分,而采用相同的路由策略,即均根据节点跳数最少的路径,来确定路由的做法,无法针对不同业务类型的数据满足其对业务服务质量的不同要求,无法充分地利用网络资源,从而大大降低了网络的性能。It can be seen that the existing technology does not distinguish between different business types, but adopts the same routing strategy, that is, the method of determining the route according to the path with the least number of node hops, which cannot satisfy the requirements for different business types of data. The different requirements of service quality cannot make full use of network resources, thus greatly reducing the performance of the network.
发明内容Contents of the invention
有鉴于此,本发明的主要目的在于提供一种在WMN中确定路由的方法,以便针对不同的业务类型确定满足其业务质量要求的最优路径。In view of this, the main purpose of the present invention is to provide a method for determining routing in WMN, so as to determine the optimal path satisfying the service quality requirements for different service types.
为了达到上述目的,本发明的技术方案是这样实现的:In order to achieve the above object, the technical solution of the present invention is achieved in that:
一种在无线网状网络中确定路由的方法,该方法包括:针对不同的业务类型设置不同的路由决策策略;源节点接收到多条携带路径信息的路由响应后,根据本次业务类型对应的路由决策策略和各条路由响应中携带的路径信息,确定本次业务对应的路由。A method for determining routing in a wireless mesh network, the method comprising: setting different routing decision strategies for different business types; after receiving multiple routing responses carrying path information, the source node The route decision policy and the path information carried in each route response determine the route corresponding to this service.
在源节点接收到多条携带路径信息的路由响应之前,进一步包括:Before the source node receives multiple routing responses carrying path information, it further includes:
A、各中间节点接收到源节点通过广播方式发送的路由请求后,分别根据本节点收集到的路径信息更新路由请求中的路径信息;A. After each intermediate node receives the routing request sent by the source node through broadcast, it updates the path information in the routing request according to the path information collected by the node;
B、各中间节点分别将当前的路由请求发送至目的节点;B. Each intermediate node sends the current routing request to the destination node respectively;
C、目的节点接收到各条路由请求后,分别根据本节点收集到的路径信息更新路由请求中的路径信息,然后将各条路由请求中携带的路径信息分别携带在各条路由响应中发送给源节点。C. After the destination node receives each routing request, it updates the path information in the routing request according to the path information collected by the node, and then carries the path information carried in each routing request in each routing response and sends it to source node.
在步骤A与步骤B之间进一步包括:各中间节点判断是否曾接收到所述源节点发送给所述目的节点的路由请求,如果是,则判断曾接收到的所述路由请求的包序号是否等于当前接收到的路由请求的包序号,如果是,则判断当前接收到的路由请求的路径是否优于曾接收到的所述路由请求的路径,如果优于,则执行步骤B,如果不优于,则结束当前流程。Between step A and step B, it further includes: each intermediate node judges whether the routing request sent to the destination node by the source node has been received, and if so, whether the packet sequence number of the routing request once received is judged Equal to the packet sequence number of the currently received routing request, if yes, then judge whether the path of the currently received routing request is better than the path of the previously received routing request, if better, then perform step B, if not If so, end the current process.
所述本次业务类型为语音;The type of this service is voice;
所述判断当前接收到的路由请求的路径是否优于曾接收到的所述路由请求的路径包括:判断当前接收到的路由请求中从源节点到所述中间节点的节点跳数是否少于曾接收到的所述路由请求中从源节点到所述中间节点的节点跳数,如果是,则确定当前接收到的路由请求的路径优于曾接收到的所述路由请求的路径,否则,确定当前接收到的路由请求的路径不优于曾接收到的所述路由请求的路径。The judging whether the path of the currently received routing request is better than the previously received path of the routing request includes: judging whether the number of node hops from the source node to the intermediate node in the currently received routing request is less than that of the previously received routing request The number of node hops from the source node to the intermediate node in the received routing request, if yes, then determine that the path of the currently received routing request is better than the path of the previously received routing request, otherwise, determine The path of the currently received routing request is no better than the path of the previously received routing request.
所述本次业务类型为视频;The type of this business is video;
在步骤A中,所述根据本节点收集到的路径信息更新路由请求中的路径信息的步骤包括:将上一跳节点到所述中间节点的剩余带宽信息Bwi与当前接收到路由请求中携带的原有Min_Bw取最小值后,使用该最小值更新当前接收到的路由请求中的Min_Bw值,并将上一跳节点到所述中间节点的投递率信息pdri,i+1与当前接收到路由请求中携带的原有PDR相乘后,使用相乘后所得结果更新当前接收到的路由请求中的PDR的值,In step A, the step of updating the path information in the routing request according to the path information collected by this node includes: combining the remaining bandwidth information Bw i from the previous hop node to the intermediate node with the information carried in the currently received routing request After taking the minimum value of the original Min_Bw, use the minimum value to update the Min_Bw value in the currently received routing request, and compare the delivery rate information pdr i, i+1 from the previous hop node to the intermediate node with the currently received After the original PDR carried in the routing request is multiplied, use the multiplied result to update the value of the PDR in the currently received routing request,
其中,更新后的Min_Bw=min(Bw1,Bw2,…Bwi,…BwN-1),更新后的Among them, the updated Min_Bw=min(Bw 1 , Bw 2 ,...Bw i ,...Bw N-1 ), the updated
所述判断当前接收到的路由请求的路径是否优于曾接收到的所述路由请求的路径包括:The judging whether the path of the currently received routing request is better than the path of the previously received routing request includes:
100、所述中间节点从当前接收到的路由请求和曾接收到的所述路由请求中分别获取Min_Bw的值和PDR的值,分别利用公式W1=α·Min_Bw+β·PDR,计算出针对当前接收到的路由请求和曾接收到的所述路由请求的W1值,其中,α和β为加权因子;100. The intermediate node respectively obtains the value of Min_Bw and the value of PDR from the currently received routing request and the previously received routing request, and uses the formula W 1 =α·Min_Bw+β·PDR to calculate the The currently received routing request and the W value of the previously received routing request, where α and β are weighting factors;
101、所述中间节点判断针对当前接收到的路由请求的W1值是否大于曾接收到的所述路由请求的W1值,如果是,则确定当前接收到的路由请求的路径优于曾接收到的所述路由请求的路径,否则,确定当前接收到的路由请求的路径不优于曾接收到的所述路由请求的路径。101. The intermediate node judges whether the W 1 value of the currently received routing request is greater than the W 1 value of the previously received routing request, and if so, determines that the route of the currently received routing request is better than that of the previously received routing request. Otherwise, determine that the path of the currently received routing request is not better than the path of the previously received routing request.
所述本次业务类型为尽力而为;The type of this business mentioned is best effort;
在步骤A中,所述根据本节点收集到的路径信息更新路由请求中的路径信息的步骤包括:将上一跳节点到所述中间节点的剩余带宽信息Bwi与当前接收到路由请求中携带的原有Min_Bw取最小值后,使用该最小值更新当前接收到的路由请求中的Min_Bw值,并将上一跳节点到所述中间节点的投递率信息pdri,i+1与当前接收到路由请求中携带的原有PDR相乘后,使用相乘后所得结果更新当前接收到的路由请求中的PDR的值,并将所述中间节点的负荷信息Loadi与当前接收到路由请求中携带的原有Max_Load取最大值后,使用该最大值更新当前接收到的路由请求中的Max_Load的值,其中,更新后的Min_Bw=min(Bw1,Bw2,…Bwi,…BwN-1),更新后的
所述判断当前接收到的路由请求的路径是否优于曾接收到的所述路由请求的路径包括:The judging whether the path of the currently received routing request is better than the path of the previously received routing request includes:
110、所述中间节点从当前接收到的路由请求和曾接收到的所述路由请求中分别获取Max_Load、Min_Bw和PDR,利用公式W2=γ·Max_Load+λ·Min_Bw+v·PDR,分别计算出针对当前接收到的路由请求和曾接收到的所述路由请求的W2值,其中,γ、λ和v为加权因子;110. The intermediate node respectively obtains Max_Load, Min_Bw and PDR from the currently received routing request and the previously received routing request, and uses the formula W 2 =γ·Max_Load+λ·Min_Bw+v·PDR to calculate respectively Get the W 2 value for the currently received routing request and the routing request once received, where γ, λ and v are weighting factors;
111、所述中间节点判断针对当前接收到的路由请求的W2值是否大于针对曾接收到的所述路由请求的W2值,如果是,则确定当前接收到的路由请求的路径优于曾接收到的所述路由请求的路径,否则,确定当前接收到的路由请求的路径不优于曾接收到的所述路由请求的路径。111. The intermediate node judges whether the W 2 value of the currently received routing request is greater than the W 2 value of the previously received routing request, and if so, determines that the route of the currently received routing request is better than the previously received routing request. The path of the received routing request, otherwise, determine that the currently received path of the routing request is not better than the path of the previously received routing request.
在所述各中间节点判断出当前接收到的路由请求的路径优于曾接收到的所述路由请求的路径之后,并在执行步骤B之前,进一步包括:各中间节点分别判断自身当前的资源状况是否允许转发,如果是,则执行步骤B,否则,结束当前流程。After each intermediate node judges that the path of the routing request currently received is better than the path of the previously received routing request, and before performing step B, it further includes: each intermediate node respectively judges its own current resource status Whether to allow forwarding, if yes, execute step B, otherwise, end the current process.
在所述各中间节点判断出当前接收到的路由请求的路径优于曾接收到的所述路由请求的路径之后,并在执行步骤B之前,进一步包括:各中间节点分别判断自身的队列长度是否大于预先设定的长度阈值,如果是,则结束当前流程,否则执行步骤B。After each intermediate node judges that the path of the currently received routing request is better than the path of the previously received routing request, and before performing step B, it further includes: each intermediate node judges whether its own queue length is greater than the preset length threshold, if yes, end the current process; otherwise, execute step B.
在所述各中间节点判断出当前接收到的路由请求的路径优于曾接收到的所述路由请求的路径之后,并在执行步骤B之前,进一步包括:各中间节点分别根据当前接收到的路由请求中携带的生命周期,判断当前接收到的路由请求是否已到期,如果是,则结束当前流程,否则执行步骤B。After each intermediate node determines that the path of the currently received routing request is better than the previously received path of the routing request, and before performing step B, it further includes: each intermediate node respectively according to the currently received route The life cycle carried in the request determines whether the currently received routing request has expired, if so, ends the current process, otherwise executes step B.
在所述各中间节点判断出当前接收到的路由请求的路径优于曾接收到的所述路由请求的路径之后,并在执行步骤B之前,进一步包括:所述各中间节点分别查找自身的路由缓存,判断路由缓存中是否存在从自身到达所述目的节点的路径,如果不存在,则直接执行步骤B,如果存在,则判断路由缓存中从自身到达目的节点的路径是否优于当前接收到的路由请求中携带的路径,如果是,各中间节点将路由缓存中从自身到达目的节点的路径信息以及当前接收到的路由请求中的所有路径信息进行整合后携带在各条路由响应中发送给源节点,否则,直接执行步骤B。After each intermediate node judges that the path of the routing request currently received is better than the path of the previously received routing request, and before performing step B, it further includes: each intermediate node searches for its own route respectively Cache, judging whether there is a path from itself to the destination node in the routing cache, if not, then directly execute step B, if it exists, then judging whether the path from itself to the destination node in the routing cache is better than the currently received The path carried in the routing request, if it is, each intermediate node integrates the path information from itself to the destination node in the routing cache and all the path information in the currently received routing request, and carries it in each routing response and sends it to the source node, otherwise, go to step B directly.
该方法进一步包括:在所述路由请求的业务感知路由协议TARP包头设置用于存放路径性能信息的路由判据结构体;The method further includes: setting a routing criterion structure for storing path performance information in the TARP packet header of the routing request;
所述将路径信息携带在路由请求中的步骤包括:将本节点收集到的路径信息与当前接收到的路由请求中已有的路径信息进行整合后携带在当前接收到的路由请求TARP包头中的路由判据结构体中。The step of carrying the path information in the routing request includes: integrating the path information collected by this node with the existing path information in the currently received routing request and carrying it in the TARP packet header of the currently received routing request In the routing criterion structure.
所述针对不同的业务类型设置不同的路由决策策略包括:对于语音业务类型,设置对应的路由决策策略为选择节点跳数最少的路由;对于视频业务类型,设置对应的路由决策策略为选择投递率和剩余带宽均优的路由;对于尽力而为业务类型,设置对应的路由决策策略为选择节点负荷较小且具有较大剩余带宽和较佳投递率的路由。Said setting different routing decision-making strategies for different business types includes: for the voice service type, setting the corresponding routing decision-making strategy is to select the route with the least number of node hops; for the video service type, setting the corresponding routing decision-making strategy is to select the delivery For the best-effort business type, set the corresponding routing decision-making strategy to select a route with a smaller node load, a larger remaining bandwidth, and a better delivery rate.
所述本次业务类型为语音;The type of this service is voice;
所述确定本次业务对应的路由的步骤包括:源节点根据本次业务类型语音所对应的选择节点跳数最少的路由,以及各条路由响应中分别携带的节点跳数信息,选择对应最少节点跳数的路由响应,并将该所选路由响应中携带的各个节点的地址信息,确定为本次业务对应的路由。The step of determining the route corresponding to this service includes: the source node selects the route with the least node hops corresponding to the voice of this service type, and the node hop information carried in the response of each route, and selects the corresponding least node The route response of the hop count, and the address information of each node carried in the selected route response is determined as the route corresponding to this service.
所述本次业务类型为视频;The type of this business is video;
所述根据本节点收集到的路径信息更新路由请求中的路径信息的步骤包括:将上一跳节点到本节点的剩余带宽信息Bwi与当前接收到路由请求中原有Min_Bw取最小值后,使用该最小值更新当前接收到的路由请求中的Min_Bw值,并将上一跳节点到本节点的投递率信息pdri,i+1与当前接收到路由请求中携带的原有PDR相乘后,使用相乘后所得结果更新当前接收到的路由请求中的PDR的值,The step of updating the path information in the routing request according to the path information collected by the node includes: after the remaining bandwidth information Bw i from the last hop node to the node and the original Min_Bw in the currently received routing request get the minimum value, use The minimum value updates the Min_Bw value in the currently received routing request, and after multiplying the delivery rate information pdr i, i+1 from the previous hop node to the current node by the original PDR carried in the currently received routing request, Update the value of the PDR in the currently received routing request with the result of the multiplication,
其中,更新后的Min_Bw=min(Bw1,Bw2,…Bwi,…Bwn-1),更新后的Among them, the updated Min_Bw=min(Bw 1 , Bw 2 ,...Bw i ,...Bw n-1 ), the updated
所述确定本次业务对应的路由的步骤包括:源节点根据本次业务类型视频所对应的选择投递率和剩余带宽均优的路由,以及各条路由响应中分别携带的最小剩余带宽信息Min_BW和投递率信息PDR,选择对应投递率和最小剩余带宽均优的路由响应,并将该所选路由响应中携带的各个节点的地址信息,确定为本次业务对应的路由。The step of determining the route corresponding to this service includes: the source node selects a route with an excellent delivery rate and remaining bandwidth according to the video corresponding to this service type, and the minimum remaining bandwidth information Min_BW and The delivery rate information PDR selects a route response corresponding to both the delivery rate and the minimum remaining bandwidth, and determines the address information of each node carried in the selected route response as the route corresponding to this service.
所述选择对应投递率和最小剩余带宽均优的路由响应的步骤包括:源节点从各条路由响应中分别获取路径最小剩余带宽信息Min_Bw和路径投递率信息PDR,分别利用公式W1=a·Min_Bw+β·PDR,分别计算出针对各条路由响应的W1值,其中,α和β为加权因子,选择最大W1值所对应的路由响应。The step of selecting a route response corresponding to an excellent delivery rate and minimum remaining bandwidth includes: the source node respectively obtains path minimum remaining bandwidth information Min_Bw and path delivery rate information PDR from each route response, and uses the formula W 1 =a· Min_Bw+β·PDR, respectively calculate the W 1 value for each routing response, where α and β are weighting factors, and select the routing response corresponding to the largest W 1 value.
所述本次业务类型为尽力而为;The type of this business mentioned is best effort;
所述根据本节点收集到的路径信息更新路由请求中的路径信息的步骤包括:将上一跳节点到本节点的剩余带宽信息Bwi与当前接收到路由请求中携带的原有Min_Bw取最小值后,使用该最小值更新当前接收到的路由请求中的Min_Bw值,并将上一跳节点到本节点的投递率信息pdri,i+1与当前接收到路由请求中携带的原有PDR相乘后,使用相乘后所得结果更新当前接收到的路由请求中的PDR的值,并将本节点的负荷信息Loadi与当前接收到路由请求中携带的原有Max_Load取最大值后,使用该最大值更新当前接收到的路由请求中的Max_Load的值,The step of updating the path information in the routing request according to the path information collected by this node includes: taking the minimum value of the remaining bandwidth information Bw i from the last hop node to the current node and the original Min_Bw carried in the currently received routing request Afterwards, use the minimum value to update the Min_Bw value in the currently received routing request, and compare the delivery rate information pdr i, i+1 from the previous hop node to the current node with the original PDR carried in the currently received routing request After multiplication, use the multiplied result to update the value of the PDR in the currently received routing request, and after taking the maximum value of the load information Load i of this node and the original Max_Load carried in the currently received routing request, use the The maximum value updates the value of Max_Load in the currently received routing request,
其中,更新后的Min_Bw=min(Bw1,Bw2,…Bwi,…Bwn-1),更新后的Among them, the updated Min_Bw=min(Bw 1 , Bw 2 ,...Bw i ,...Bw n-1 ), the updated
所述确定本次业务对应的路由的步骤包括:源节点根据本次业务类型尽力而为所对应的选择节点负荷较小且具有较大剩余带宽和较佳投递率的路由,以及各条路由响应中分别携带的最小剩余带宽信息Min_Bw、最大负荷信息Max_Load和路径的投递率信息PDR,选择对应节点负荷较小且具有较大剩余带宽和较佳投递率的路由响应,并将该所选路由响应中携带的各个节点的地址信息,确定为本次业务对应的路由。The step of determining the route corresponding to this service includes: the source node chooses the route corresponding to the best effort of the service type according to the current service type, which has a smaller node load and has a larger remaining bandwidth and a better delivery rate, and each route responds The minimum remaining bandwidth information Min_Bw, the maximum load information Max_Load, and the delivery rate information PDR of the path respectively carried in , select the route response with a relatively small load of the corresponding node and have a large remaining bandwidth and a better delivery rate, and respond to the selected route The address information of each node carried in , is determined as the route corresponding to this service.
所述选择对应节点负荷较小且具有较大剩余带宽和较佳投递率的路由响应的步骤包括:源节点从各条路由响应中分别获取最小剩余带宽信息Min_Bw、最大负荷信息Max_Load和路径的投递率信息PDR,利用公式W2=γ·Max_Load+λ·Min_Bw+v·PDR,分别计算出针对各条路由响应的W2值,其中,γ、λ和v为加权因子,选择最大W2值所对应的路由响应。The step of selecting a routing response corresponding to a node with a relatively small load and having a large remaining bandwidth and a better delivery rate includes: the source node respectively obtains the minimum remaining bandwidth information Min_Bw, the maximum load information Max_Load, and the delivery rate of the path from each routing response Rate information PDR, use the formula W 2 =γ·Max_Load+λ·Min_Bw+v·PDR to calculate the W 2 value for each route response, where γ, λ and v are weighting factors, choose the maximum W 2 value The corresponding routing response.
由此可见,本发明具有以下优点:This shows that the present invention has the following advantages:
1、本发明对于不同的业务类型采用不同的路由策略来确定路由,因此,能够保证源节点与目的节点之间每一种业务类型数据的传输,均能够满足其业务服务质量要求,并充分利用网络资源,从而大大提高了网络的性能。1. The present invention uses different routing strategies to determine routes for different business types, so it can ensure that the transmission of each business type data between the source node and the destination node can meet its business service quality requirements, and make full use of Network resources, thus greatly improving the performance of the network.
2、在本发明中,对于一些特定的业务类型,比如,视频业务类型和尽力而为业务类型,由于在确定其路由时,考虑了节点间的投递率,因此,如果节点间处于业务热点区,即节点间的投递率较小,则可以使所确定的路由避开该热点区,从而满足了WMN网络负载均衡的要求。2. In the present invention, for some specific service types, such as video service types and best-effort service types, since the delivery rate between nodes is considered when determining their routes, if the nodes are in a service hot spot , that is, if the delivery rate between nodes is small, the determined route can be avoided from the hotspot area, thereby meeting the load balancing requirement of the WMN network.
3、在本发明中,对于一些特定的业务类型,比如,尽力而为业务类型,由于在确定其路由时,考虑了节点的最大负荷,因此,如果节点的负荷较大时,则可以使所确定的路由避开该节点,使得该负荷较大的节点能够保证已有连接的正常通信,从而为已接入用户提供了服务保证。3. In the present invention, for some specific service types, such as best-effort service types, since the maximum load of the nodes is considered when determining its route, if the load of the nodes is relatively large, all The determined route avoids the node, so that the node with a large load can ensure the normal communication of the existing connection, thereby providing service guarantee for the connected users.
4、在本发明中,在通过路由请求获取每一种业务类型的路由信息,比如投递率和最大负荷等,是根据每个节点对网络固有信息交互的统计来获取的,而无需通过其他的业务流程或信令来获取,因此,节约了网络带宽资源。4. In the present invention, the routing information of each type of service, such as delivery rate and maximum load, etc. is obtained through the routing request, based on the statistics of each node's interaction with the inherent information of the network, without the need for other Business process or signaling to obtain, therefore, saving network bandwidth resources.
5、在本发明中,由于对于不同的业务类型采用不同的路由策略来确定路由,因此,能够保证同一源节点和目的节点之间不同业务类型的数据通过不同的路径进行传输,即实现了多径数据传输,因此,使得本发明具有多径数据传输的优点,比如,负载均衡等。5. In the present invention, since different routing strategies are used to determine routes for different business types, it can be ensured that data of different business types between the same source node and destination node are transmitted through different paths, that is, multiple routes are realized. Therefore, the present invention has the advantages of multi-path data transmission, such as load balancing and the like.
附图说明Description of drawings
图1是在现有技术中确定两个节点之间路由的流程图。Fig. 1 is a flowchart of determining a route between two nodes in the prior art.
图2是在本发明实施例中确定两个节点之间路由的流程图。Fig. 2 is a flowchart of determining a route between two nodes in an embodiment of the present invention.
图3是在本发明实施例中中间节点确定是否应丢弃当前接收到的路由请求的流程图。Fig. 3 is a flow chart of an intermediate node determining whether to discard a currently received routing request in an embodiment of the present invention.
具体实施方式Detailed ways
本发明的核心思想是:针对不同的业务类型设置不同的路由决策策略;源节点接收到携带路径信息的多条路由响应后,根据本次业务类型对应的路由决策策略,确定本次业务对应的路由。The core idea of the present invention is to set different routing decision-making strategies for different business types; after the source node receives multiple routing responses carrying path information, it determines the corresponding routing strategy for this business according to the routing decision-making strategy corresponding to this business type routing.
为使本发明的目的、技术方案和优点更加清楚,下面结合附图及具体实施例对本发明作进一步地详细描述。In order to make the purpose, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
图2是在本发明实施例中确定两个节点之间路由的流程图。参见图2,当一个源节点,比如源节点A,需要确定到达一个目的节点,比如目的节点C的路由时,本发明实现确定该路由的过程包括以下步骤:Fig. 2 is a flowchart of determining a route between two nodes in an embodiment of the present invention. Referring to Fig. 2, when a source node, such as source node A, needs to determine the route to a destination node, such as destination node C, the present invention realizes that the process of determining the route includes the following steps:
步骤201:预先针对不同的业务类型设置不同的路由决策策略。Step 201: Different routing decision-making strategies are set in advance for different service types.
这里,为了更好地满足每一种业务类型对业务服务质量的不同要求,则必须针对不同的业务类型设置不同的路由决策策略,即不同业务类型按照不同的路由决策策略,来确定其传输路由。Here, in order to better meet the different requirements of each business type on business service quality, different routing decision-making strategies must be set for different business types, that is, different business types determine their transmission routes according to different routing decision-making strategies .
具体来说,以如下表1所示的业务类型为例,
表1 Table 1
参见表1,对于语音类型的业务数据,为了保证通话的连续性,则要求能够实现最小的传输时延,也就是说,在确定路由时,应选择从源节点到目的节点跳数最少即路径最短的路由;对于视频类型的业务数据,为了保证图像的清晰度及对网络带宽的要求,则要求寻找投递率和剩余带宽均优的路径;对于尽力而为的业务数据,由于没有特殊的业务质量要求,所以应寻找节点负荷较小且具有较大剩余带宽的路径,从而充分利用网络资源。因此,为便于描述,可以使用如下表2所示的公式来体现表1中各业务类型的路由决策策略。
表2 Table 2
参见表2,其中,Hops为节点跳数;Min_Bw指路径中所有节点间链路的最小带宽,即路径可用带宽;PDR为路径的投递率;Max_Load为路径中节点最大负载;α、β、γ、λ和v为各部分的加权因子。较佳地,|α|+|β|的值为1,|γ|+|λ|+|v|的值为1。另外,路径最小带宽,路径最大负荷与路径最大投递率的表达式如下:Max_Load=max(Load1,Load2,…,Loadi,…,Loadn),Min_Bw=min(Bw1,Bw2,…Bwi,…,Bwn-1),
步骤202:源节点A通过广播方式发送一个针对目的节点C的路由请求。Step 202: The source node A broadcasts a routing request for the destination node C.
这里,所述的路由请求中可以包括:该广播路由请求的生命周期TTL(一般为跳数限制)、该路由请求的包序号、本次业务的业务类型、源节点自身的地址信息和目的节点的地址信息等。并且,本发明可以在所述路由请求的业务感知路由协议(Traffic Aware Routing Protocol,TARP)包头设置路由判据结构体,用于存放路径的性能参数。Here, the routing request may include: the life cycle TTL of the broadcast routing request (generally hop limit), the packet sequence number of the routing request, the service type of this service, the address information of the source node itself and the destination node address information, etc. Moreover, the present invention can set a routing criterion structure in the Traffic Aware Routing Protocol (TARP) header of the routing request to store the performance parameters of the path.
步骤203:中间节点B接收到路由请求后,根据本节点收集到的路径信息更新所接收到的路由请求的路由判据结构体中的路径信息。Step 203: After receiving the routing request, the intermediate node B updates the path information in the routing criterion structure of the received routing request according to the path information collected by the node.
这里,本步骤的具体实现过程包括:中间节点B接收到路由请求后,将上一跳节点到本节点B的剩余带宽信息Bwi与当前接收到路由请求中携带的原有Min_Bw取最小值,使用该最小值更新当前接收到的路由请求中的Min_Bw值,并将上一跳节点到本节点B的投递率信息pdri,i+1与当前接收到路由请求中携带的原有PDR相乘后,使用相乘后所得结果更新当前接收到的路由请求中的PDR的值,并将本节点B的负荷信息Loadi与当前接收到路由请求中携带的原有Max_Load取最大值后,使用该最大值更新当前接收到的路由请求中的Max_Load的值,其中,更新后的Min_Bw=min(Bw1,Bw2,…Bwi,…BwN-1),更新后的
然后,将更新后的Min_Bw值、PDR的值、Max_Load的值以及本节点B的地址信息携带在所接收到的路由请求中的路由判据结构体中。Then, the updated Min_Bw value, PDR value, Max_Load value and the address information of the current node B are carried in the routing criterion structure in the received routing request.
步骤204:中间节点B接收到路由请求,判断是否应丢弃当前接收到的路由请求,如果是,则结束当前流程,否则,执行步骤205。Step 204: The intermediate node B receives the routing request, and judges whether the currently received routing request should be discarded, and if so, ends the current process; otherwise, executes
这里,本步骤的具体实现过程可参见图3,包括以下步骤:Here, the specific implementation process of this step can be seen in Figure 3, including the following steps:
步骤301:所述中间节点B根据当前接收到的路由请求中的源地址信息和目的地址信息,判断自身是否曾收到过所述源节点A发送给所述目的节点C的路由请求,如果是,则执行步骤302,否则,认为不应丢弃当前接收到的路由请求,直接执行步骤205。Step 301: The intermediate node B judges whether it has ever received the routing request sent by the source node A to the destination node C according to the source address information and destination address information in the currently received routing request, and if so , then execute
步骤302:中间节点B判断曾收到过的所述路由请求的包序号与当前收到的路由请求的包序号的大小关系,如果曾收到过的所述路由请求的包序号大于当前收到的路由请求的包序号,则确定丢弃当前接收到的路由请求,结束当前流程,如果曾收到过的所述路由请求的包序号小于当前收到的路由请求的包序号,则执行步骤303,如果曾收到过的所述路由请求的包序号等于当前收到的路由请求的包序号,则执行步骤304。Step 302: The intermediate node B judges the size relationship between the packet sequence number of the routing request that has been received and the packet sequence number of the currently received routing request, if the packet sequence number of the routing request that has been received is greater than the packet sequence number currently received If the packet sequence number of the routing request is determined, the currently received routing request is discarded, and the current process is ended. If the packet sequence number of the routing request that has been received is less than the packet sequence number of the currently received routing request, then step 303 is performed. If the packet sequence number of the previously received routing request is equal to the currently received packet sequence number of the routing request,
这里,如果曾收到过的所述路由请求的包序号大于当前收到的路由请求的包序号,则说明当前接收到的路由请求为过时的路由请求,并不是源节点A为确定本次业务的路由而发出的路由请求,所以不应该采取后续的确定路由的过程,即丢弃当前接收到的路由请求,结束当前流程。Here, if the packet sequence number of the routing request that has been received is greater than the packet sequence number of the currently received routing request, it means that the currently received routing request is an outdated routing request, and it is not that the source node A is in order to determine this service. Therefore, the subsequent process of determining the route should not be adopted, that is, the currently received routing request is discarded, and the current process is ended.
如果曾收到过的所述路由请求的包序号小于当前收到的路由请求的包序号,则说明当前接收到的路由请求为首次接收到的源节点A为确定本次业务的路由而发出的路由请求,所以应直接执行后续的确定路由的过程。If the packet sequence number of the routing request that has been received is smaller than the packet sequence number of the currently received routing request, it means that the currently received routing request is sent by the source node A received for the first time to determine the route of this service Routing requests, so the subsequent process of determining routing should be performed directly.
如果曾收到过的所述路由请求的包序号等于当前收到的路由请求的包序号,则说明之前已接收到通过从源节点A至本节点B的一种路由,比如路由ADB,发来的为确定本次业务路由的路由请求,在当前又接收到通过从源节点A至本节点B的另一种路由,比如路由AEB,发来的为确定本次业务路由的路由请求,因此,为了实现本发明针对不同业务类型选择满足其网络性能要求的最优路由的目的,则必须执行后续的根据本次业务类型确定最优路由的过程,即执行步骤304。If the packet sequence number of the routing request that has been received is equal to the packet sequence number of the currently received routing request, it means that a route from the source node A to the node B has been received before, such as the route ADB. The routing request to determine the route of this service is currently received from another route from source node A to node B, such as route AEB, and the routing request to determine the route of this service is sent. Therefore, In order to achieve the purpose of the present invention to select the optimal route that meets the network performance requirements for different service types, the subsequent process of determining the optimal route according to the current service type must be performed, that is,
步骤303:中间节点B使用当前接收到的路由请求的包序号更新自身保存的从源节点A至目的节点C的路由请求的包序号,直接执行步骤205。Step 303: The intermediate node B uses the packet sequence number of the currently received routing request to update the packet sequence number of the routing request from the source node A to the destination node C stored by itself, and directly executes
步骤304:中间节点B判断当前接收到的路由请求的路径是否优于曾接收到的所述路由请求的路径,如果是,则直接执行步骤205,否则,确定丢弃当前接收到的路由请求,结束当前流程。Step 304: The intermediate node B judges whether the path of the currently received routing request is better than the path of the previously received routing request, if yes, then directly execute
这里,所述判断具体包括:中间节点B根据当前接收到的路由请求中携带的本次业务的业务类型,以及预先设置的不同业务类型的不同路由决策策略,确定本次业务类型对应的路由决策策略;中间节点B根据所确定的本次业务类型对应的路由决策策略,以及当前接收到的路由请求和曾接收到的所述路由请求中路由判据结构体中分别携带的路径信息,进行判断。Here, the judgment specifically includes: the intermediate node B determines the routing decision corresponding to the current service type according to the service type of the current service carried in the currently received routing request and the different routing decision strategies of different service types preset Strategy; the intermediate node B makes a judgment according to the determined routing decision-making strategy corresponding to the current service type, as well as the currently received routing request and the path information carried in the routing criterion structure in the previously received routing request .
参见表1和表2,比如,本次业务的业务类型为语音业务类型,对应于语音业务类型的公式为W0=Hops,其路由策略为选择W0的值最小的最短路径,即经过的节点跳数最少的路径,因此,在本步骤中,中间节点B根据当前接收到的路由请求以及曾接收到的所述路由请求中的节点跳数信息,确定在从源节点A到本节点B时,当前接收到的路由请求和曾接收到的所述路由请求分别经过的节点跳数,如果当前接收到的路由请求经过的节点跳数少于曾接收到的所述路由请求,则认为当前接收到的路由请求中携带的路径信息优于曾接收到的所述路由请求中携带的路径信息。Referring to Table 1 and Table 2, for example, the service type of this service is a voice service type, and the formula corresponding to the voice service type is W 0 =Hops, and its routing strategy is to select the shortest path with the smallest value of W 0 , that is, the passed The path with the least number of node hops. Therefore, in this step, the intermediate node B determines the route from source node A to this node B according to the currently received routing request and the node hop information in the previously received routing request. , the number of node hops passed by the currently received routing request and the previously received routing request respectively. If the currently received routing request passes through less node hops than the previously received routing request, the current The path information carried in the received routing request is better than the path information carried in the previously received routing request.
再如,本次业务的业务类型为视频业务类型,对应于视频业务类型的公式为W1=α·Min_Bw+β·PDR,其路由策略为选择W1值最大的路径,即选择能够最好地满足最小链路带宽和最大投递率的路径,因此,在本步骤中,中间节点B根据当前接收到的路由请求以及曾接收到的所述路由请求中路由判据结构体中更新后的Min_Bw值和PDR的值,利用公式W1=α·Min_Bw+β·PDR,分别计算出在从源节点A到本节点B时,当前接收到的路由请求和曾接收到的所述路由请求所对应的W1值。如果当前接收到的路由请求对应的W1值大于曾接收到的所述路由请求,则认为当前接收到的路由请求中携带的路径信息优于曾接收到的所述路由请求中携带的路径信息。For another example, the service type of this service is a video service type , and the formula corresponding to the video service type is W 1 =α·Min_Bw+β·PDR. satisfies the minimum link bandwidth and the maximum delivery rate path, therefore, in this step, the intermediate node B according to the currently received routing request and the updated Min_Bw in the routing criterion structure in the previously received routing request value and the value of PDR, use the formula W 1 =α·Min_Bw+β·PDR to calculate the correspondence between the currently received routing request and the previously received routing request when traveling from source node A to local node B The W1 value. If the W 1 value corresponding to the currently received routing request is greater than the previously received routing request, it is considered that the path information carried in the currently received routing request is better than the path information carried in the previously received routing request .
又如,本次业务的业务类型为尽力而为,对应于尽力而为业务类型的公式为W2=γ·Max_Load+λ·Min_Bw+v·PDR,因此,在本步骤中,中间节点B根据当前接收到的路由请求以及曾接收到的所述路由请求中路由判据结构体中更新后的Min_Bw值、PDR的值和Max_Load的值,利用W2=γ·Max_Load+λ·Min_Bw+v·PDR,分别计算出在从源节点A到本节点B时,当前接收到的路由请求和曾接收到的所述路由请求所对应的W2值。如果当前接收到的路由请求对应的W2值大于曾接收到的所述路由请求,则认为当前接收到的路由请求中携带的路径信息优于曾接收到的所述路由请求中携带的路径信息。For another example, the service type of this service is best effort, and the formula corresponding to the best effort service type is W 2 =γ·Max_Load+λ·Min_Bw+v·PDR, therefore, in this step, the intermediate node B according to For the currently received routing request and the updated Min_Bw value, PDR value and Max_Load value in the routing criterion structure in the routing request received, use W 2 =γ·Max_Load+λ·Min_Bw+v· The PDR calculates the W 2 values corresponding to the currently received routing request and the previously received routing request when traveling from the source node A to the local node B. If the W2 value corresponding to the currently received routing request is greater than the previously received routing request, it is considered that the path information carried in the currently received routing request is better than the path information carried in the previously received routing request .
至此,则实现了判断是否应丢弃当前接收到的路由请求的过程。So far, the process of judging whether the currently received routing request should be discarded has been realized.
步骤205:中间节点B判断自身当前的资源状况是否允许转发,如果是,则执行步骤206,否则,结束当前流程。Step 205: The intermediate node B judges whether its current resource status allows forwarding, if yes, executes
这里,所述的资源状况可以包括:剩余带宽和上游节点到本节点的投递率等。Here, the resource status may include: the remaining bandwidth, the delivery rate from the upstream node to the current node, and the like.
步骤206:中间节点B判断自身的队列长度是否大于预先设定的长度阈值,如果是,则结束当前流程,否则,执行步骤207。Step 206: The intermediate node B judges whether its own queue length is greater than a preset length threshold, if yes, ends the current process, otherwise, executes
步骤207:中间节点B根据当前接收到的路由请求中的生命周期TTL,判断当前接收到的路由请求是否已到期,如果是,则结束当前流程,否则,执行步骤208。Step 207: The intermediate node B judges whether the currently received routing request has expired according to the life cycle TTL in the currently received routing request, and if so, ends the current process; otherwise, executes
上述步骤205、步骤206与步骤207之间并不固定的执行上的先后顺序,只是为了便于描述而拆分的不同步骤。The
另外,上述步骤205、步骤206与步骤207的过程限制了转发路由请求的数量,从而减少了网络的协议开销。In addition, the processes of
步骤208:中间节点B查找自身的路由缓存,判断路由缓存中是否存在从自身到达目的节点C的路径,如果是,则执行步骤209,否则,执行步骤211。Step 208: The intermediate node B searches its own routing cache, and judges whether there is a path from itself to the destination node C in the routing cache, if yes, executes
步骤209:中间节点B判断路由缓存中从自身到达目的节点C的路径信息是否优于当前接收到的路由请求中携带的路径信息,如果是,则执行步骤210,否则,直接执行步骤211。Step 209: The intermediate node B judges whether the path information from itself to the destination node C in the routing cache is better than the path information carried in the currently received routing request, if yes, execute
这里,所述判断的过程与步骤304所述过程的原理完全相同。Here, the principle of the judging process is exactly the same as the process described in
步骤210:中间节点B利用当前路由请求路由判据结构体中的所有路径信息更新自身的路由缓存,然后将路由缓存中从自身到达目的节点C的路径信息以及当前接收到的路由请求路由判据结构体中的路径信息携带在路由响应中发送至源节点A,直接执行步骤214。Step 210: The intermediate node B uses all the path information in the current routing request routing criterion structure to update its own routing cache, and then updates the path information from itself to the destination node C in the routing cache and the currently received routing request routing criteria The path information in the structure is carried in the routing response and sent to the source node A, and step 214 is directly executed.
步骤211:中间节点B利用当前路由请求路由判据结构体中的所有路径信息更新自身的路由缓存,然后将当前的路由请求发送至目的节点C。Step 211: The intermediate node B uses all the path information in the routing criterion structure of the current routing request to update its own routing cache, and then sends the current routing request to the destination node C.
需要说明的是,由于在步骤201中,源节点A通过广播方式发送路由请求,所以路由请求会通过多条路径进行传输,在每一条路径上,各个中间节点的处理过程正如上述中间节点B的处理过程。相应的,目的节点所接收到的路由请求是由不同路径上的中间节点发来的携带不同路径信息的多条路由请求。It should be noted that, since in step 201, the source node A broadcasts the routing request, the routing request will be transmitted through multiple paths, and on each path, the processing process of each intermediate node is just like that of the above-mentioned intermediate node B. process. Correspondingly, the routing requests received by the destination node are multiple routing requests carrying different path information sent by intermediate nodes on different paths.
步骤212:目的节点C接收到每一条路由请求时,均将本节点的路径信息携带在该路由请求中的路由判据结构体中。Step 212: When the destination node C receives each routing request, it carries the path information of this node in the routing criterion structure in the routing request.
这里,本步骤的具体实现过程包括:将上一跳节点到本节点C的剩余带宽信息Bwi与当前接收到路由请求中携带的原有Min_Bw取最小值后,使用该最小值更新当前接收到的路由请求中的Min_Bw值,并将上一跳节点到本节点C的投递率信息pdri,i+1与当前接收到路由请求中携带的原有PDR相乘后,使用相乘后所得结果更新当前接收到的路由请求中的PDR的值,并将本节点C的负荷信息Loadi与当前接收到路由请求中携带的原有Max_Load取最大值后,使用该最大值更新当前接收到的路由请求中的Max_Load的值,Here, the specific implementation process of this step includes: After taking the minimum value of the remaining bandwidth information Bw i from the last hop node to the current node C and the original Min_Bw carried in the currently received routing request, use the minimum value to update the currently received The Min_Bw value in the routing request, and multiply the delivery rate information pdr i, i+1 from the last hop node to the current node C by the original PDR carried in the currently received routing request, and use the multiplied result Update the value of the PDR in the currently received routing request, and after taking the maximum value of the load information Load i of the node C and the original Max_Load carried in the currently received routing request, use the maximum value to update the currently received routing The value of Max_Load in the request,
其中,更新后的Min_Bw=min(Bw1,Bw2,…Bwi,…Bwn-1),更新后的Among them, the updated Min_Bw=min(Bw 1 , Bw 2 ,...Bw i ,...Bw n-1 ), the updated
然后,目的节点C将当前更新后的Min_Bw值、PDR的值、Max_Load的值以及本节点C的地址信息携带在所接收到的路由请求中的路由判据结构体中。Then, the destination node C carries the updated Min_Bw value, PDR value, Max_Load value and the address information of the current node C in the routing criterion structure in the received routing request.
步骤213:目的节点C接收到每一条路由请求时,均将该路由请求中路由判据结构体中的所有路径信息携带在一条路由响应中发送至源节点A。Step 213: When the destination node C receives each routing request, it carries all the path information in the routing criterion structure in the routing request and sends it to the source node A in a routing response.
这里,目的节点C将路由响应发送至源节点A时所经过的路径与其接收到的对应路由请求经过的路径相反。并且,在将路由响应发送至源节点A的过程中,各个中间节点接收到路由响应时,还可以进一步从该路由响应中获取相关的路径信息,并保存到自身的路由缓存中。Here, the path traversed by the destination node C when sending the routing response to the source node A is opposite to the path traversed by the corresponding routing request received. Moreover, during the process of sending the routing response to the source node A, when each intermediate node receives the routing response, it can further obtain relevant path information from the routing response and save it in its own routing cache.
步骤214:源节点A接收到各条路由响应后,根据各条路由响应中携带的所有路径信息,确定对应于本次业务类型的最优路由。Step 214: After receiving each route response, the source node A determines the optimal route corresponding to the current service type according to all the path information carried in each route response.
这里,由于每一条路由响应中均携带了其对应路由请求经过的所有路径信息,包括:更新后的Min_Bw值、PDR的值、Max_Load的值以及各个节点的地址信息等。因此,本步骤的具体实现过程包括:源节点A根据预先设置的不同业务类型的不同路由决策策略,确定本次业务类型对应的路由决策策略;源节点A根据所确定的本次业务类型对应的路由决策策略,以及各条路由响应中分别携带的路径信息,进行判断。Here, since each routing response carries all path information that its corresponding routing request passes through, including: updated Min_Bw value, PDR value, Max_Load value, and address information of each node. Therefore, the specific implementation process of this step includes: the source node A determines the routing decision-making strategy corresponding to the current business type according to the different routing decision-making strategies of different business types set in advance; The routing decision-making strategy and the path information carried in each routing response are used for judgment.
参见表1和表2,比如,本次业务的业务类型为语音业务类型,对应于语音业务类型的公式为W0=Hops,其路由策略为选择W0的值最小的最短路径,即经过的节点跳数最少的路径,因此,在本步骤中,源节点A根据每一条路由响应中分别携带的路径信息,确定每一条路由响应经过的节点跳数,将节点跳数最少的路由响应对应的路由确定为本次语音业务的最优路由。Referring to Table 1 and Table 2, for example, the service type of this service is a voice service type, and the formula corresponding to the voice service type is W 0 =Hops, and its routing strategy is to select the shortest path with the smallest value of W 0 , that is, the passed Therefore, in this step, the source node A determines the number of node hops passed by each route response according to the path information carried in each route response, and assigns the route response corresponding to the route with the least node hops The route is determined as the optimal route for this voice service.
再如,本次业务的业务类型为视频业务类型,对应于视频业务类型的公式为W1=a·Min_Bw+β·PDR,其路由策略为选择W1值最大的路径,即选择能够最好地满足最小链路带宽和最大投递率的路径,因此,在本步骤中,对于每一条路由响应,源节点A从该路由响应中携带的路径信息中获取当前的Min_Bw值和PDR的值,并通过计算式Wj=α·Min_Bw+β·PDR计算出对应于该路由响应的W1的值,然后,比较每一条路由响应对应的W1值的大小,将W1值最大路由响应对应的路由确定为本次语音业务的最优路由。For another example, the service type of this service is a video service type, and the formula corresponding to the video service type is W 1 =a·Min_Bw+β·PDR, and its routing strategy is to select the path with the largest value of W 1 , that is, select the path with the best Therefore, in this step, for each routing response, source node A obtains the current Min_Bw value and the value of PDR from the path information carried in the routing response, and Calculate the value of W 1 corresponding to the route response through the calculation formula W j =α·Min_Bw+β·PDR, then compare the size of the W 1 value corresponding to each route response, and calculate the value of W 1 corresponding to the route response with the largest value The route is determined as the optimal route for this voice service.
再如,本次业务的业务类型为尽力而为业务类型,对应于尽力而为业务类型的公式为W2γ·Max_Load+λ·Min_Bw+v·PDR,其路由策略为选择W2值最大的路径,即选择能够最好地满足最小链路带宽、最大投递率和最大负载的路径,因此,在本步骤中,对于每一条路由响应,源节点A从该路由响应中携带的路径信息中获取当前的Min_Bw值、PDR的值和Max_Load的值,并通过计算式W2=γ·Max_Load+λ·Min_Bw+v·PDR计算出对应于该路由响应的W2的值,然后,比较每一条路由响应对应的W2值的大小,将W2值最大路由响应对应的路由确定为本次语音业务的最优路由。For another example, the service type of this service is the best-effort service type, and the formula corresponding to the best-effort service type is W 2 γ·Max_Load+λ·Min_Bw+v·PDR, and its routing strategy is to select the one with the largest value of W 2 Path, that is, to select the path that can best satisfy the minimum link bandwidth, maximum delivery rate and maximum load. Therefore, in this step, for each route response, source node A obtains from the path information carried in the route response The current Min_Bw value, the value of PDR and the value of Max_Load, and calculate the value of W 2 corresponding to the route response by calculating the formula W 2 =γ·Max_Load+λ·Min_Bw+v·PDR, and then compare each route Responding to the size of the corresponding W 2 value, determining the route corresponding to the route response with the largest W 2 value as the optimal route for the voice service.
步骤215:源节点A通过所确定的最优路由将本次业务数据发送至目的节点C。Step 215: The source node A sends the current service data to the destination node C through the determined optimal route.
需要说明的是,为了实现路由方案与链路层更好的耦合,本发明可以在二层即链路层实现。这样,本发明的二层路由方案则可以充分运用链路层状态参数,比如在确定对应于一种业务类型的最优路由时所需的剩余带宽、投递率和网络负荷等网络性能参数,使本发明对应的路由协议对网络状态更加敏感,从而也使得本发明更加易于实现。It should be noted that, in order to achieve better coupling between the routing scheme and the link layer, the present invention can be implemented on the second layer, ie, the link layer. In this way, the two-layer routing scheme of the present invention can make full use of link layer state parameters, such as network performance parameters such as remaining bandwidth, delivery rate and network load required when determining an optimal route corresponding to a service type, so that The routing protocol corresponding to the present invention is more sensitive to the network state, thus making the present invention easier to implement.
总之,以上所述仅为本发明的较佳实施例而已,并非用于限定本发明的保护范围。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。In a word, the above descriptions are only preferred embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims (19)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006100900354A CN101048012A (en) | 2006-06-22 | 2006-06-22 | Method for deciding route at radio mesh network |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA2006100900354A CN101048012A (en) | 2006-06-22 | 2006-06-22 | Method for deciding route at radio mesh network |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101048012A true CN101048012A (en) | 2007-10-03 |
Family
ID=38772122
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA2006100900354A Pending CN101048012A (en) | 2006-06-22 | 2006-06-22 | Method for deciding route at radio mesh network |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101048012A (en) |
Cited By (26)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101483674A (en) * | 2009-02-12 | 2009-07-15 | 迈普(四川)通信技术有限公司 | Data cross-domain searching method |
CN101867995A (en) * | 2010-06-24 | 2010-10-20 | 四川平安都市通讯科技有限公司 | Wireless netlike network routing method |
CN101217497B (en) * | 2008-01-18 | 2011-04-13 | 北京邮电大学 | A path selecting method of wireless mesh network |
CN102571856A (en) * | 2010-12-17 | 2012-07-11 | 中国移动通信集团公司 | Method, device and system for selecting transition node |
CN101754427B (en) * | 2008-12-18 | 2012-11-21 | 华为技术有限公司 | Message transmission method, device and system in wireless mesh network |
CN102907136A (en) * | 2010-05-21 | 2013-01-30 | 日本电气株式会社 | Wireless Communication Network System |
CN103200641A (en) * | 2013-03-29 | 2013-07-10 | 南京邮电大学 | Routing method of multi-radiofrequency multi-channel wireless mesh network |
CN103401802A (en) * | 2013-08-26 | 2013-11-20 | 盛科网络(苏州)有限公司 | Transmission protocol based message load balancing method and device |
CN103476083A (en) * | 2012-06-06 | 2013-12-25 | 华为技术有限公司 | Route selection method and node equipment |
CN103685054A (en) * | 2013-12-18 | 2014-03-26 | 武汉烽火网络有限责任公司 | Multipath load balancing method based on service awareness |
CN103874159A (en) * | 2014-03-26 | 2014-06-18 | 江苏博悦物联网技术有限公司 | Wireless sensor network |
CN104618232A (en) * | 2015-01-28 | 2015-05-13 | 杭州华三通信技术有限公司 | Wide area network link selecting method and wide area network link selecting device |
WO2015085862A1 (en) * | 2013-12-13 | 2015-06-18 | 乐视致新电子科技(天津)有限公司 | Method and apparatus for playing 3d film sources in smart tv |
CN106131619A (en) * | 2016-07-28 | 2016-11-16 | 王晓光 | Method of reseptance and the system of video ads is adjusted according to path jumping figure |
CN106302215A (en) * | 2016-08-30 | 2017-01-04 | 华为技术有限公司 | A kind of method and device E-Packeted |
CN106304168A (en) * | 2016-10-16 | 2017-01-04 | 高道华 | A kind of method for optimizing route of wireless mesh network |
CN107171955A (en) * | 2017-05-24 | 2017-09-15 | 深圳市乃斯网络科技有限公司 | The system of selection of data link and system in network |
CN104618232B (en) * | 2015-01-28 | 2018-02-09 | 新华三技术有限公司 | Wan business link selecting method and device |
CN107733796A (en) * | 2017-02-07 | 2018-02-23 | 深圳臻云技术股份有限公司 | A kind of preferentially path calculation method and system |
WO2018214059A1 (en) * | 2017-05-24 | 2018-11-29 | 深圳市乃斯网络科技有限公司 | Method and system for selecting data link in network |
CN109413712A (en) * | 2019-01-11 | 2019-03-01 | 湖南大学 | Quick route constructing method based on DSR agreement |
WO2019196939A1 (en) * | 2018-04-13 | 2019-10-17 | 华为技术有限公司 | Method and apparatus for service transmission |
WO2020103654A1 (en) * | 2018-11-23 | 2020-05-28 | 腾讯科技(深圳)有限公司 | Route selection policy acquisition method and apparatus, route selection policy rule execution method and apparatus, and device and computer-readable storage medium |
CN111510384A (en) * | 2019-01-31 | 2020-08-07 | 伊姆西Ip控股有限责任公司 | Method, electronic device and computer-readable medium for processing data generated by a service |
CN112423253A (en) * | 2020-10-13 | 2021-02-26 | 北京云联慧通科技有限公司 | Narrow-band ad hoc network communication protocol applied to wireless electronic thermometer |
CN113727409A (en) * | 2021-08-26 | 2021-11-30 | 北京珞安科技有限责任公司 | Message transmission method, node and LORA ad hoc network |
-
2006
- 2006-06-22 CN CNA2006100900354A patent/CN101048012A/en active Pending
Cited By (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101217497B (en) * | 2008-01-18 | 2011-04-13 | 北京邮电大学 | A path selecting method of wireless mesh network |
CN101754427B (en) * | 2008-12-18 | 2012-11-21 | 华为技术有限公司 | Message transmission method, device and system in wireless mesh network |
CN101483674A (en) * | 2009-02-12 | 2009-07-15 | 迈普(四川)通信技术有限公司 | Data cross-domain searching method |
CN101483674B (en) * | 2009-02-12 | 2013-01-09 | 迈普通信技术股份有限公司 | Data cross-domain searching method |
US8923332B2 (en) | 2010-05-21 | 2014-12-30 | Nec Corporation | Wireless communication network system |
CN102907136A (en) * | 2010-05-21 | 2013-01-30 | 日本电气株式会社 | Wireless Communication Network System |
CN102907136B (en) * | 2010-05-21 | 2015-08-19 | 日本电气株式会社 | Wireless communication network system |
CN101867995A (en) * | 2010-06-24 | 2010-10-20 | 四川平安都市通讯科技有限公司 | Wireless netlike network routing method |
CN102571856A (en) * | 2010-12-17 | 2012-07-11 | 中国移动通信集团公司 | Method, device and system for selecting transition node |
CN103476083A (en) * | 2012-06-06 | 2013-12-25 | 华为技术有限公司 | Route selection method and node equipment |
CN103476083B (en) * | 2012-06-06 | 2016-11-02 | 华为技术有限公司 | Route selection method and node equipment |
CN103200641A (en) * | 2013-03-29 | 2013-07-10 | 南京邮电大学 | Routing method of multi-radiofrequency multi-channel wireless mesh network |
CN103200641B (en) * | 2013-03-29 | 2015-08-05 | 南京邮电大学 | Many radio frequencies multi-Channel Wireless Mesh Network route selection method |
CN103401802A (en) * | 2013-08-26 | 2013-11-20 | 盛科网络(苏州)有限公司 | Transmission protocol based message load balancing method and device |
WO2015085862A1 (en) * | 2013-12-13 | 2015-06-18 | 乐视致新电子科技(天津)有限公司 | Method and apparatus for playing 3d film sources in smart tv |
CN103685054A (en) * | 2013-12-18 | 2014-03-26 | 武汉烽火网络有限责任公司 | Multipath load balancing method based on service awareness |
CN103685054B (en) * | 2013-12-18 | 2017-02-01 | 武汉烽火网络有限责任公司 | Multipath load balancing method based on service awareness |
CN103874159A (en) * | 2014-03-26 | 2014-06-18 | 江苏博悦物联网技术有限公司 | Wireless sensor network |
CN104618232B (en) * | 2015-01-28 | 2018-02-09 | 新华三技术有限公司 | Wan business link selecting method and device |
CN104618232A (en) * | 2015-01-28 | 2015-05-13 | 杭州华三通信技术有限公司 | Wide area network link selecting method and wide area network link selecting device |
CN106131619A (en) * | 2016-07-28 | 2016-11-16 | 王晓光 | Method of reseptance and the system of video ads is adjusted according to path jumping figure |
CN106302215A (en) * | 2016-08-30 | 2017-01-04 | 华为技术有限公司 | A kind of method and device E-Packeted |
CN106304168A (en) * | 2016-10-16 | 2017-01-04 | 高道华 | A kind of method for optimizing route of wireless mesh network |
CN107733796A (en) * | 2017-02-07 | 2018-02-23 | 深圳臻云技术股份有限公司 | A kind of preferentially path calculation method and system |
CN107733796B (en) * | 2017-02-07 | 2021-01-26 | 深圳臻云技术股份有限公司 | Method and system for calculating preferred path |
CN107171955A (en) * | 2017-05-24 | 2017-09-15 | 深圳市乃斯网络科技有限公司 | The system of selection of data link and system in network |
WO2018214059A1 (en) * | 2017-05-24 | 2018-11-29 | 深圳市乃斯网络科技有限公司 | Method and system for selecting data link in network |
WO2019196939A1 (en) * | 2018-04-13 | 2019-10-17 | 华为技术有限公司 | Method and apparatus for service transmission |
WO2020103654A1 (en) * | 2018-11-23 | 2020-05-28 | 腾讯科技(深圳)有限公司 | Route selection policy acquisition method and apparatus, route selection policy rule execution method and apparatus, and device and computer-readable storage medium |
US11469994B2 (en) | 2018-11-23 | 2022-10-11 | Tencent Technologv (Shenzhen) Company Limited | Method for obtaining route selection policy, method for performing route selection policy rule, apparatus, device, and computer-readable storage medium |
CN109413712A (en) * | 2019-01-11 | 2019-03-01 | 湖南大学 | Quick route constructing method based on DSR agreement |
CN111510384A (en) * | 2019-01-31 | 2020-08-07 | 伊姆西Ip控股有限责任公司 | Method, electronic device and computer-readable medium for processing data generated by a service |
CN111510384B (en) * | 2019-01-31 | 2023-03-10 | 伊姆西Ip控股有限责任公司 | Method, electronic device and computer-readable medium for processing data generated by a service |
CN112423253A (en) * | 2020-10-13 | 2021-02-26 | 北京云联慧通科技有限公司 | Narrow-band ad hoc network communication protocol applied to wireless electronic thermometer |
CN113727409A (en) * | 2021-08-26 | 2021-11-30 | 北京珞安科技有限责任公司 | Message transmission method, node and LORA ad hoc network |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101048012A (en) | Method for deciding route at radio mesh network | |
CN1282346C (en) | Reliable broadcasting data grouping system and method under specific network environment | |
CN100338604C (en) | Reactive routing on-demand in mobile network | |
CN1921457A (en) | Network equipment and message transferring method based on multiple-core processor | |
CN101030943A (en) | Method for transmitting message and route | |
CN1791054A (en) | Virtual special network multicast method by virtual router mode | |
CN1921477A (en) | Method and system for complicated flow classification of arrange cutted piece message | |
CN1777149A (en) | The Method of Realizing Multicast Forwarding on Layer 3 Switch | |
CN1607783A (en) | Processing broadcast data in a mobile ac-hoc network | |
CN1658586A (en) | Packet transmission system, wireless base station, and method for optimizing packet transmission path | |
CN1533104A (en) | IP network service quality control device, method and system, and router | |
CN101079760A (en) | Method, system and content distribution network for monitoring network | |
CN1722726A (en) | Layer-2 VPN equipment supporting pseudo line tag reflection and networking method | |
CN101047638A (en) | Mesh network route method and device | |
CN1545286A (en) | Congestion Control Method Based on ECN with Predictive Verification | |
CN101053220A (en) | Method for sending an acknowledgement to an ingress mesh point in a mesh network and a medium access control frame format | |
CN1801783A (en) | Multi-domain multicast integration data distributing structure and method based on IP/MPLS/BGP | |
CN1402477A (en) | Radio local network system | |
CN101064637A (en) | Method for guaranteeing quality of service of operation maintenance data stream | |
CN1993932A (en) | Method for informing the availability of reception of traffics and a method for determination of active or inactive state | |
CN1518302A (en) | Communication system, communication method and terminal | |
CN1798098A (en) | Method of differentiating multiple services for anti IP data stream in multicast to impact communication system | |
CN1863144A (en) | Methods of Providing Differentiated Services | |
CN101047634A (en) | Allocating method for upper tag | |
CN1314246C (en) | Communication control system, communication control method, routing controller and router suitably used for same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |
Open date: 20071003 |