CN113938417B - Content center network multi-path selection method based on Topson sampling - Google Patents
Content center network multi-path selection method based on Topson sampling Download PDFInfo
- Publication number
- CN113938417B CN113938417B CN202111186831.9A CN202111186831A CN113938417B CN 113938417 B CN113938417 B CN 113938417B CN 202111186831 A CN202111186831 A CN 202111186831A CN 113938417 B CN113938417 B CN 113938417B
- Authority
- CN
- China
- Prior art keywords
- path
- forwarding
- return value
- node
- probability
- 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.)
- Active
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/08—Learning-based routing, e.g. using neural networks or artificial intelligence
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F17/00—Digital computing or data processing equipment or methods, specially adapted for specific functions
- G06F17/10—Complex mathematical operations
- G06F17/18—Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/123—Evaluation of link metrics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/12—Shortest path evaluation
- H04L45/124—Shortest path evaluation using a combination of metrics
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/74—Address processing for routing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- General Physics & Mathematics (AREA)
- Data Mining & Analysis (AREA)
- Pure & Applied Mathematics (AREA)
- Mathematical Analysis (AREA)
- Theoretical Computer Science (AREA)
- Mathematical Physics (AREA)
- Computational Mathematics (AREA)
- Mathematical Optimization (AREA)
- Medical Informatics (AREA)
- Algebra (AREA)
- Evolutionary Biology (AREA)
- Life Sciences & Earth Sciences (AREA)
- Operations Research (AREA)
- Probability & Statistics with Applications (AREA)
- Artificial Intelligence (AREA)
- Evolutionary Computation (AREA)
- Bioinformatics & Computational Biology (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种基于汤普森采样的内容中心网络多路径选择方法,该方法采用多臂赌博机方法对转发节点上的多路径选择进行建模;被选择路径的转发概率的概率密度函数服从Beta分布,综合丢包率、带宽、往返时间多指标进行路径评估,将评估结果作为路径转发概率分布的调整依据;采用改进的汤普森采样方法自适应地选择最优路径来转发兴趣包。在多路径选择场景下,本发明方法不依赖于预先设定的转发策略,能够适应不同网络条件,根据路径评级结果智能选择转发路径。本发明方法有效避免了转发策略的冷启动问题;根据多指标评估选择转发路径,有效避免了网络拥塞,减少了数据传输的延迟。
The invention discloses a Thompson sampling-based content-centric network multi-path selection method. The method uses a multi-armed gambling machine method to model the multi-path selection on forwarding nodes; the probability density function of the forwarding probability of the selected path obeys Beta Distribution, comprehensive packet loss rate, bandwidth, and round-trip time for path evaluation, and the evaluation results are used as the basis for adjusting the path forwarding probability distribution; the improved Thompson sampling method is used to adaptively select the optimal path to forward Interest packets. In a multi-path selection scenario, the method of the present invention does not depend on a preset forwarding strategy, can adapt to different network conditions, and intelligently select a forwarding path according to path rating results. The method of the invention effectively avoids the cold start problem of the forwarding strategy; selects the forwarding path according to multi-index evaluation, effectively avoids network congestion, and reduces the delay of data transmission.
Description
技术领域technical field
本发明涉及一种计算机网络数据通信领域,特别涉及一种基于汤普森采样的内容中心网络多路径选择方法。The invention relates to the field of computer network data communication, in particular to a Thompson sampling-based content-centric network multi-path selection method.
背景技术Background technique
内容中心网络(Content-Centric Networking,CCN)是为了适应未来网络通信模式的转变,提供对可扩展和高效内容获取的原生支持而提出的一种新型的网络体系架构,它将传统的由发送者(Dispatcher)驱动的端对端通信模式变革为由接收者(Recipient)驱动的内容(Contents)获取模式。在CCN中,用户(User)更多地关注内容本身而非提供内容的具体位置,并通过内容名称(Content name)来唯一地标识不同的内容(Contents)。其通信过程中主要包含请求分组(Interest Packet,又称兴趣分组)和数据分组(Data Packet)两种包类型。内容(Contents)的请求节点(Request node)通过发送带内容名称标识(Contentname ID)的请求分组来搜寻所需的请求信息(Request information),该请求分组将通过CCN路由节点进行转发。若在CCN网络中某个转发节点(Forwarding node)的缓存中找到了与请求信息(Request information)匹配的内容,则称请求信息(Request information)在该转发节点缓存命中。此时,命中节点(Hit node)将相应的数据分组(Data Packet)沿着请求分组的反向路径传回请求节点(Request node),完成信息传输过程。Content-Centric Networking (CCN) is a new type of network architecture proposed to adapt to the transformation of future network communication models and provide native support for scalable and efficient content acquisition. The end-to-end communication mode driven by (Dispatcher) is changed to the content (Contents) acquisition mode driven by the receiver (Recipient). In CCN, the user (User) pays more attention to the content itself rather than the specific location where the content is provided, and uses the content name (Content name) to uniquely identify different contents (Contents). The communication process mainly includes two types of packets: a request packet (Interest Packet, also known as an Interest Packet) and a data packet (Data Packet). The request node (Request node) of the content (Contents) searches for the required request information (Request information) by sending a request packet with a content name ID (Contentname ID), and the request packet will be forwarded by the CCN routing node. If the content matching the request information (Request information) is found in the cache of a forwarding node (Forwarding node) in the CCN network, it is said that the request information (Request information) hits the cache of the forwarding node. At this time, the hit node (Hit node) sends the corresponding data packet (Data Packet) back to the request node (Request node) along the reverse path of the request packet, and completes the information transmission process.
网络路径的选择可以分为直接路由与间接路由。而CCN需利用间接路由来进行路径选择。现有的转发方案仅依靠预先设定的策略模型(如Best Route),通过获取影响线路性能的单一因素(如传输时延、丢包率、带宽),对转发端口(Forwarding face)进行排序,按模型计算的概率为兴趣包选择转发端口。预先设定的模型策略无法进行智能转发,根据单一因素对线路的影响评估路径的优劣不能全面提升CCN转发性能;例如数据传输时延、丢包率等因素的选择会导致转发的冷启动问题。The selection of network paths can be divided into direct routing and indirect routing. The CCN needs to use indirect routing for path selection. Existing forwarding schemes only rely on a preset policy model (such as Best Route), and sort the forwarding ports by obtaining a single factor that affects line performance (such as transmission delay, packet loss rate, and bandwidth). Select forwarding ports for Interests with probabilities computed by the model. The pre-set model strategy cannot perform intelligent forwarding, and the evaluation of the pros and cons of a path based on the impact of a single factor on the line cannot fully improve the CCN forwarding performance; for example, the selection of factors such as data transmission delay and packet loss rate will lead to the cold start problem of forwarding .
发明内容Contents of the invention
为解决现有内容中心网络CCN的转发策略造成网络拥塞、以及传输延迟的技术问题,本发明提出现了一种基于汤普森采样的内容中心网络多路径选择方法。本发明方法是将CCN转发时的路径选择问题映射为多臂赌博机问题,然后应用汤普森采样的自主学习并选择出合适的下一跳端口,以适应不同网络特性,实现兴趣包和数据包的智能转发。本发明方法能够避免依靠先验丢包率等因素导致的冷启动问题;通过综合丢包率、时延、带宽三因素的路径评级避免网络拥塞,减少数据传输时间。In order to solve the technical problems of network congestion and transmission delay caused by the forwarding strategy of the existing content-centric network CCN, the present invention proposes a multi-path selection method for the content-centric network based on Thompson sampling. The method of the present invention is to map the path selection problem when CCN forwards to a multi-armed gambling machine problem, and then apply Thompson sampling self-learning and select a suitable next-hop port to adapt to different network characteristics and realize interest packets and data packets. Intelligent forwarding. The method of the invention can avoid the cold start problem caused by factors such as the prior packet loss rate; and avoid network congestion and reduce data transmission time by comprehensively evaluating the three factors of packet loss rate, time delay and bandwidth.
本发明的一种基于汤普森采样的内容中心网络多路径选择方法,其特征在于包括有下列步骤:A kind of content-centric network multi-path selection method based on Thompson sampling of the present invention is characterized in that comprising the following steps:
步骤一,采用改进的汤普森采样获取转发路径;
步骤11,获取转发节点上的所有路径;Step 11, obtaining all paths on the forwarding node;
在转发节点node转收到任意一兴趣包AAa后,能够确认的可供选择的路径就是转发节点-路径集中的所有路径;After the forwarding node node forwards any Interest packet AA a , the alternative path that can be confirmed is the forwarding node-path set all paths in
步骤12,计算每一条路径上的路径回报值;Step 12, calculating the path return value on each path;
任意一数据包BBb到达转发节点node转时,采用路径回报值公式计算每一条路径上的路径回报值;When any data packet BB b arrives at the forwarding node node, use the path return value formula to calculate the path return value on each path;
路径回报值公式为:The path return value formula is:
ωrtt表示传输时延的权重系数;ω rtt represents the weight coefficient of transmission delay;
ωdrop表示丢包率的权重系数;ω drop represents the weight coefficient of the packet loss rate;
ωbw表示带宽的权重系数;ω bw represents the weight coefficient of the bandwidth;
RTT_Q表示归一化的传输时延回报值;RTT_Q represents the normalized transmission delay return value;
Drop_Q表示归一化的丢包率回报值;Drop_Q represents the normalized packet loss rate return value;
Bandwidth_Q表示归一化的带宽回报值;Bandwidth_Q represents the normalized bandwidth return value;
归一化的传输时延回报值 Normalized transmission delay return value
归一化的的丢包率回报值 Normalized packet loss rate return value
归一化的带宽回报值 Normalized Bandwidth Return Value
步骤13,计算下一时刻的路径转发概率;Step 13, calculating the path forwarding probability at the next moment;
任意一条路径Ri的当前时刻t的路径回报值,记为且所述的丢包率、传输时延和带宽可以看作是当前时刻t下的路径选择的状态因素,记为且 The path reward value of any path R i at the current moment t, denoted as and said The packet loss rate, transmission delay and bandwidth can be regarded as the state factors of path selection at the current time t, denoted as and
表示路径Ri在当前时刻t的归一化的传输时延回报值; Indicates the normalized transmission delay return value of the path R i at the current time t;
表示路径Ri在当前时刻t的归一化的丢包率回报值; Indicates the normalized packet loss rate return value of the path R i at the current moment t;
表示路径Ri在当前时刻t的归一化的带宽回报值; Indicates the normalized bandwidth return value of the path R i at the current moment t;
位于转发节点node转上的任意一条路径Ri的路径转发概率为且当前时刻t的路径转发概率为且所述服从Beta分布,转发节点node转依赖得到的当前回报值来调整Beta函数,从而调整下一时刻路径的转发概率且 The path forwarding probability of any path R i located on the forwarding node node is and The path forwarding probability at the current moment t is and said Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment and
步骤14,基于Beta分布的转发概率调整;Step 14, adjusting the forwarding probability based on Beta distribution;
转发概率服从Beta(αi,βi)分布;αi表示路径Ri上的正向回报参数;βi表示路径Ri上的负向回报参数;forwarding probability Obey the Beta(α i , β i ) distribution; α i represents the positive return parameter on the path R i ; β i represents the negative return parameter on the path R i ;
对任意一条路径Ri的下一时刻路径的转发概率服从Beta(αi,t+1,βi,t+1)分布,初始化阶段,转发概率服从均匀分布Beta(1,1),即αi,1=βi,1=1;The forwarding probability of the path at the next moment for any path R i Obey Beta(α i,t+1 ,β i,t+1 ) distribution, initialization stage, forwarding probability Obey the uniform distribution Beta(1,1), that is, α i,1 =β i,1 =1;
当路径Ri收到返回的当前时刻t的路径回报值后,比较与平均路径回报值且 When the path R i receives the returned path return value at the current time t After, compare vs mean path return value and
若大于等于则调整αi,t+1,且 like greater or equal to Then adjust α i,t+1 , and
若小于则调整βi,t+1,且 like less than Then adjust β i,t+1 , and
步骤15,获得兴趣包的转发路径;Step 15, obtaining the forwarding path of the Interest packet;
从下一时刻-转发概率集中选取出最大值的转发概率,记为 From Next Moment - Forwarding Probability Set Select the forwarding probability of the maximum value in , denoted as
然后,将所述的对应的路径作为兴趣包的转发路径HR;Then, the described The corresponding path is used as the forwarding path HR of the interest packet;
步骤二,构建PR_FIB表;
改进的兴趣转发表,记为PR_FIB表;所述PR_FIB表是在传统FIB表中增加了转发概率和回报值两项信息;An improved interest forwarding table, which is recorded as the PR_FIB table; the PR_FIB table adds two pieces of information, forwarding probability and return value, to the traditional FIB table;
转发节点node转中的PR_FIB表对收到的任意一兴趣包AAa在进行转发前,需要根据每一条路径的Beta分布生成路径对应的转发概率,并填充至PR_FIB表的转发概率列中;当转发节点node转收到任意一数据包BBb后,会为相应的转发端口填充上记录在PR_FIB表中的路径回报值;The PR_FIB table in the forwarding node node needs to generate the forwarding probability corresponding to the path according to the Beta distribution of each path before forwarding any received interest packet AA a , and fill it into the forwarding probability column of the PR_FIB table; when After the forwarding node node forwards any data packet BB b , it will fill in the path return value recorded in the PR_FIB table for the corresponding forwarding port;
步骤三,兴趣包和数据包在转发节点上的转发机制;
从转发节点node转的一次转发过程来看:路径选择分为兴趣包处理阶段和数据包处理阶段:From the point of view of the forwarding process of the forwarding node node: the path selection is divided into the interest packet processing stage and the data packet processing stage:
步骤31,兴趣包的处理过程;Step 31, the processing process of the interest packet;
转发节点node转收到兴趣包AAa后,首先查找内容缓存CS中有无对应内容前缀prefix的数据包BBb;After the forwarding node node forwards the interest packet AA a , it first checks whether there is a data packet BB b corresponding to the content prefix prefix in the content cache CS;
若有,则将数据包BBb发给兴趣包AAa的来源路径;If so, send the data packet BB b to the source path of the interest packet AA a ;
若无,查询待定请求表PIT;If not, query the pending request table PIT;
若PIT表中有所述内容前缀prefix,说明所述转发节点node转已收到过prefix,为转发节点node转增加来源端口;同时丢弃所述的兴趣包AAa;If there is the content prefix prefix in the PIT table, it means that the forwarding node node has received the prefix, and the source port is increased for the forwarding node node; while discarding the interest packet AA a ;
若PIT表中无,则查询PR_FIB表;If there is none in the PIT table, then query the PR_FIB table;
若PR_FIB表有,为所述内容前缀prefix对应的转发端口生成转发概率,并选取出最大转发概率对应的转发路径HR,然后用所述转发路径HR来转发兴趣包AAa;If the PR_FIB table exists, generate a forwarding probability for the forwarding port corresponding to the content prefix prefix, and select the maximum forwarding probability The corresponding forwarding path HR, and then use the forwarding path HR to forward the interest packet AA a ;
若PR_FIB表中无,则丢弃所述的兴趣包AAa;If there is no PR_FIB table, then discard the interest packet AA a ;
步骤32,数据包的处理过程;Step 32, the processing process of the data packet;
转发节点node转收到任意一数据包BBb后,第一方面采用路径回报值公式计算所述转发路径HR的路径回报值QHR,第二方面采用Beta分布计算转发概率,并将计算得到的转发概率记录在PR_FIB表中;第三方面使用待定请求表PIT将数据包BBb经来源端口返回;After the forwarding node node forwards any data packet BB b , the first aspect uses the path return value formula to calculate the path return value Q HR of the forwarding path HR, and the second aspect uses the Beta distribution to calculate the forwarding probability, and calculates the obtained The forwarding probability is recorded in the PR_FIB table; the third aspect uses the pending request table PIT to return the data packet BB b via the source port;
转发路径HR的路径回报值QHR为:The path return value Q HR of the forwarding path HR is:
QHR=ωrtt×RTT_Q+ωdrop×Drop_Q+ωbw×Bandwidth_QQ HR =ω rtt ×RTT_Q+ω drop ×Drop_Q+ω bw ×Bandwidth_Q
当转发路径HR收到返回的当前时刻t的路径回报值后,比较与平均路径回报值且 When the forwarding path HR receives the returned path return value at the current time t After, compare vs mean path return value and
若大于等于则调整αHR,t+1,且 like greater or equal to Then adjust α HR,t+1 , and
若小于则调整βHR,t+1,且 like less than Then adjust β HR,t+1 , and
本发明基于汤普森采样的内容中心网络多路径选择方法的优点在于:The advantages of the content-centric network multi-path selection method based on Thompson sampling in the present invention are:
①本发明引入汤普森采样算法,将CCN转发时的路径选择问题映射为多臂赌博机问题,不依赖预设的转发策略模型,智能选择下一时间段的转发路径。① The present invention introduces the Thompson sampling algorithm to map the path selection problem during CCN forwarding to a multi-armed gambling machine problem, and intelligently selects the forwarding path for the next time period without relying on the preset forwarding strategy model.
②本发明基于Beta分布设计了转发概率的预测模型,通过学习转发后的路径回报值,调整概率分布,由于Beta分布在初始阶段为均匀分布,能有效避免转发冷启动问题;由于概率分布随路径回报值变化,能有效避免网络拥塞。②The present invention designs a prediction model of forwarding probability based on the Beta distribution, and adjusts the probability distribution by learning the path return value after forwarding. Since the Beta distribution is uniformly distributed in the initial stage, the cold start problem of forwarding can be effectively avoided; since the probability distribution varies with the path The change of return value can effectively avoid network congestion.
③本发明基于路径丢包率、传输时延、带宽多属性对路径评级,不依赖单一属性选择路径,能更全面地提升网络性能。③ The present invention rates paths based on multiple attributes of path packet loss rate, transmission delay, and bandwidth, and does not rely on a single attribute to select a path, which can improve network performance more comprehensively.
附图说明Description of drawings
图1是本发明基于汤普森采样的内容中心网络多路径选择的流程图。Fig. 1 is a flow chart of the multi-path selection of the content-centric network based on Thompson sampling in the present invention.
图2是采用本发明基于汤普森采样的内容中心网络多路径选择方法的实施例的流程图。Fig. 2 is a flow chart of an embodiment of the Thompson sampling-based content-centric network multi-path selection method of the present invention.
图3是实施例1中的CCN网络拓扑结构图。FIG. 3 is a topological structure diagram of the CCN network in
图4是实施例1中的转发节点的数据结构图。FIG. 4 is a data structure diagram of a forwarding node in
图5是实施例1中的转发节点执行PIT查找的数据结构图。FIG. 5 is a data structure diagram of the PIT lookup performed by the forwarding node in
图6是实施例1中的转发节点执行Beta分布的数据结构图。FIG. 6 is a data structure diagram of Beta distribution performed by forwarding nodes in
图7是实施例1中的转发节点执行路径回报的数据结构图。FIG. 7 is a data structure diagram of path reporting performed by forwarding nodes in
图8是经本发明方法处理的实施例1的转发节点收到数据包的平均时延对比图。Fig. 8 is a comparison diagram of the average time delay of the data packets received by the forwarding node in
图9是经本发明方法处理的实施例1的转发节点丢包率对比图。Fig. 9 is a comparison chart of the packet loss rate of forwarding nodes in
具体实施方式Detailed ways
下面将结合附图和实施例对本发明做进一步的详细说明。The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.
在本发明中,网络特性,记为NC,所述网络特性NC是指不同拓扑结构、不同带宽的网络。In the present invention, the network characteristic is denoted as NC, and the network characteristic NC refers to networks with different topological structures and different bandwidths.
在本发明中,网络拓扑结构是网络形状,或者是网络在物理上的连通性。网络拓扑结构是指用传输媒体互连各种设备的物理布局,即用什么方式把网络中的计算机等设备连接起来。拓扑图给出网络服务器、工作站的网络配置和相互间的连接。网络的拓扑结构有很多种,主要有星型结构、环型结构、总线结构、分布式结构、树型结构、网状结构、蜂窝状结构等。In the present invention, the network topology is the shape of the network, or the physical connectivity of the network. Network topology refers to the physical layout of various devices interconnected by transmission media, that is, how to connect computers and other devices in the network. The topology diagram shows the network configuration of network servers and workstations and the connections between them. There are many topological structures of the network, mainly star structure, ring structure, bus structure, distributed structure, tree structure, mesh structure, honeycomb structure and so on.
在本发明中,节点,记为node。转发节点,记为node转。In the present invention, a node is denoted as node. The forwarding node is denoted as node transfer .
在本发明中,兴趣包,记为AA。多个所述的兴趣包AA构成兴趣包集MA,MA={AA1,AA2,…,AAa,…,AAA}。In the present invention, the interest packet is denoted as AA. A plurality of said Interest packets AA constitute an Interest packet set MA, where MA={AA 1 , AA 2 , . . . , AA a , . . . , AA A }.
AA1表示第一个兴趣包。AA 1 indicates the first Interest packet.
AA2表示第二个兴趣包。AA 2 indicates the second Interest.
AAa表示第a个兴趣包。AA a represents the a-th Interest packet.
AAA表示最后一个兴趣包。AA A indicates the last Interest packet.
下角标a为兴趣包的标识号,下角标A为兴趣包的总数目。为了方便说明,所述的AAa也称为任意一个兴趣包。The subscript a is the identification number of the Interest packet, and the subscript A is the total number of Interest packets. For convenience of description, the AA a is also referred to as any Interest packet.
在本发明中,数据包,记为BB。多个所述的数据包BB构成数据包集MB,MB={BB1,BB2,…,BBb,…,BBB}。In the present invention, a data packet is denoted as BB. A plurality of said data packets BB constitute a data packet set MB, MB={BB 1 , BB 2 , . . . , BB b , . . . , BB B }.
BB1表示第一个数据包。BB 1 means the first packet.
BB2表示第二个数据包。BB 2 indicates the second data packet.
BBb表示第b个数据包。BB b indicates the bth packet.
BBB表示最后一个数据包。BB B indicates the last packet.
下角标b为数据包的标识号,下角标B为数据包的总数目。为了方便说明,所述的BBb也称为任意一个数据包。Subscript b is the identification number of the data packet, and subscript B is the total number of data packets. For convenience of description, the BB b is also referred to as any data packet.
在本发明中,转发节点node转上的路径标记,记为R。存在于转发节点node转上的多条路径构成了转发节点-路径集,记为且 In the present invention, the path label forwarded by the forwarding node node is denoted as R. The multiple paths existing on the forwarding node node constitute the forwarding node-path set, denoted as and
R1表示转发节点node转上存在的第一条路径,简称为第一条路径。R 1 represents the first path existing on the forwarding node node, referred to as the first path for short.
R2表示转发节点node转上存在的第二条路径,简称为第二条路径。R 2 represents the second path existing on the forwarding node node, which is referred to as the second path for short.
Ri表示转发节点node转上存在的第i条路径,简称为第i条路径。R i represents the i-th path existing on the forwarding node node, which is referred to as the i-th path for short.
Rk表示转发节点node转上存在的最后一条路径,简称为最后一条路径。R k represents the last path existing on the forwarding node node, which is referred to as the last path for short.
下角标i为转发节点node转上存在的路径标识号,下角标k为转发节点node转上存在的路径总条数。为了方便说明,所述的Ri也称为任意一条路径。The subscript i is the identification number of the path existing on the forwarding node node, and the subscript k is the total number of paths existing on the forwarding node node. For convenience of description, the R i is also referred to as any path.
在本发明中,任意一条路径Ri的路径回报值,记为(即)。任意一条路径Ri的转发概率,记为任意一条路径Ri的丢包率,记为任意一条路径Ri的传输时延,记为任意一条路径Ri的带宽,记为 In the present invention, the path return value of any path R i is denoted as (Right now ). The forwarding probability of any path R i is denoted as The packet loss rate of any path R i is denoted as The transmission delay of any path R i is denoted as The bandwidth of any path R i is denoted as
参见图1、图2所示,本发明的基于汤普森采样的内容中心网络多路径选择方法,包括有下列步骤:Referring to Fig. 1, shown in Fig. 2, the content-centric network multi-path selection method based on Thompson sampling of the present invention includes the following steps:
步骤一,采用改进的汤普森采样获取转发路径;
步骤11,获取转发节点上的所有路径;Step 11, obtaining all paths on the forwarding node;
在本发明中,收集转发节点node转上的所有路径,形成了转发节点-路径集然后采用多臂赌博机方法将转发节点-路径集中的各个路径映射为多臂赌博机的臂元素。In the present invention, all the paths transferred by the forwarding node node are collected to form a forwarding node-path set Then use the multi-armed bandit method to convert the forwarding node-path set Each path in is mapped to an arm element of a multi-armed bandit.
在转发节点node转收到任意一兴趣包AAa后,能够确认的可供选择的路径就是转发节点-路径集中的所有路径。After the forwarding node node forwards any Interest packet AA a , the alternative path that can be confirmed is the forwarding node-path set All paths in .
步骤12,计算每一条路径上的路径回报值;Step 12, calculating the path return value on each path;
任意一数据包BBb到达转发节点node转时,采用路径回报值公式计算每一条路径上的路径回报值,得到路径回报值集,记为且 When any data packet BB b arrives at the forwarding node node, use the path return value formula to calculate the path return value on each path, and obtain the path return value set, denoted as and
表示第一条路径R1的路径回报值。 Indicates the path reward value of the first path R1 .
表示第二条路径R2的路径回报值。 Indicates the path reward value of the second path R2 .
表示第i条路径Ri的路径回报值。 Indicates the path reward value of the i-th path R i .
表示最后一条路径Rk的路径回报值。 Indicates the path reward value of the last path R k .
为了方便说明,所述的也称为任意一条路径Ri的路径回报值。For convenience of description, the It is also called the path return value of any path R i .
在本发明中,路径回报值公式为:In the present invention, the path return value formula is:
ωrtt表示传输时延的权重系数。ω rtt represents the weight coefficient of transmission time delay.
ωdrop表示丢包率的权重系数。ω drop represents the weight coefficient of the packet loss rate.
ωbw表示带宽的权重系数。ω bw represents the weight coefficient of the bandwidth.
RTT_Q表示归一化的传输时延回报值。RTT_Q represents the normalized transmission delay return value.
Drop_Q表示归一化的丢包率回报值。Drop_Q represents the normalized packet loss rate return value.
Bandwidth_Q表示归一化的带宽回报值。Bandwidth_Q represents the normalized bandwidth return value.
在本发明中,归一化的传输时延回报值当RTT_Q的值越大时,说明转发节点上的路径的传输时延情况越差。而RTT_Q与成反比关系。In the present invention, the normalized transmission delay return value When the value of RTT_Q is larger, it indicates that the transmission delay of the path on the forwarding node is worse. while RTT_Q with Inversely proportional relationship.
在本发明中,归一化的的丢包率回报值当Drop_Q的值越大,说明转发节点上的路径的丢包率就越大。而Drop_Q与成反比关系。In the present invention, the normalized packet loss rate return value When the value of Drop_Q is larger, it means that the packet loss rate of the path on the forwarding node is larger. while Drop_Q with Inversely proportional relationship.
在本发明中,归一化的带宽回报值当Bandwidth_Q的值越大,说明路径的带宽回报值越大,路径性能越好。而Bandwidth_Q与成正比关系。In the present invention, the normalized bandwidth return value When the value of Bandwidth_Q is larger, it means that the bandwidth return value of the path is larger and the path performance is better. And Bandwidth_Q with proportional relationship.
步骤13,计算下一时刻的路径转发概率;Step 13, calculating the path forwarding probability at the next moment;
在本发明中,当前时刻,记为t;位于所述当前时刻t之前的时刻,记为t-1(简称为上一时刻);位于所述当前时刻t之后的时刻,记为t+1(简称为下一时刻)。转发节点在转发信息的一个周期里,设置的时刻点总个数记为G。In the present invention, the current moment is denoted as t; the moment before the current moment t is denoted as t-1 (abbreviated as the previous moment); the moment after the current moment t is denoted as t+1 (referred to as the next moment). The total number of time points set by the forwarding node in a cycle of forwarding information is denoted as G.
在本发明中,任意一条路径Ri的当前时刻t的路径回报值,记为且所述的丢包率、传输时延和带宽可以看作是当前时刻t下的路径选择的状态因素,记为且 表示路径Ri在当前时刻t的归一化的传输时延回报值。In the present invention, the path reward value of any path R i at the current moment t is denoted as and said The packet loss rate, transmission delay and bandwidth can be regarded as the state factors of path selection at the current time t, denoted as and Indicates the normalized transmission delay return value of the path R i at the current time t.
表示路径Ri在当前时刻t的归一化的丢包率回报值。 Indicates the normalized packet loss rate return value of the path R i at the current time t.
表示路径Ri在当前时刻t的归一化的带宽回报值。 Indicates the normalized bandwidth return value of the path R i at the current time t.
在本发明中,由于转发节点node转在转发任意一兴趣包AAa前并不知道每条路径可能返回的路径回报值,所以采用Beta分布来对每条路径的转发概率进行计算Beta函数。In the present invention, since the forwarding node node does not know the possible return value of each path before forwarding any interest packet AA a , the Beta distribution is used to calculate the Beta function for the forwarding probability of each path.
在本发明中,位于转发节点node转上的任意一条路径Ri的路径转发概率为且当前时刻t的路径转发概率为且所述服从Beta分布,转发节点node转依赖得到的当前回报值来调整Beta函数,从而调整下一时刻路径的转发概率且 In the present invention, the path forwarding probability of any path R i located on the forwarding node node is and The path forwarding probability at the current moment t is and said Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment and
同理,位于转发节点node转上的路径R1的路径转发概率为当前时刻t的路径转发概率为所述服从Beta分布,转发节点node转依赖得到的当前回报值来调整Beta函数,从而调整下一时刻路径的转发概率 Similarly, the path forwarding probability of the path R 1 located on the forwarding node node is The path forwarding probability at the current moment t is said Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
同理,位于转发节点node转上的路径R2的路径转发概率为当前时刻t的路径转发概率为所述服从Beta分布,转发节点node转依赖得到的当前回报值来调整Beta函数,从而调整下一时刻路径的转发概率 Similarly, the path forwarding probability of the path R 2 on the forwarding node node is The path forwarding probability at the current moment t is said Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
同理,位于转发节点node转上的路径Rk的路径转发概率为当前时刻t的路径转发概率为所述服从Beta分布,转发节点node转依赖得到的当前回报值来调整Beta函数,从而调整下一时刻路径的转发概率 Similarly, the path forwarding probability of the path R k on the forwarding node node is The path forwarding probability at the current moment t is said Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
在本发明中,当前时刻t的路径回报值集,记为(简称为当前时刻-路径回报值集),且 In the present invention, the path return value set at the current moment t is denoted as (referred to as the current moment-path return value set), and
表示当前时刻t的第一条路径R1的路径回报值。 Indicates the route reward value of the first route R1 at the current time t.
表示当前时刻t的第二条路径R2的路径回报值。 Indicates the path reward value of the second path R2 at the current time t.
表示当前时刻t的第i条路径Ri的路径回报值。 Indicates the path reward value of the i-th path R i at the current time t.
表示当前时刻t的最后一条路径Rk的路径回报值。 Indicates the path reward value of the last path R k at the current time t.
在本发明中,当前时刻t的路径转发概率集,记为(简称为当前时刻-转发概率集),且 In the present invention, the path forwarding probability set at the current moment t is denoted as (referred to as the current moment - forwarding probability set), and
表示当前时刻t的第一条路径R1的路径转发概率。 Indicates the path forwarding probability of the first path R1 at the current time t.
表示当前时刻t的第二条路径R2的路径转发概率。 Indicates the path forwarding probability of the second path R2 at the current time t.
表示当前时刻t的第i条路径Ri的路径转发概率。 Indicates the path forwarding probability of the i-th path R i at the current time t.
表示当前时刻t的最后一条路径Rk的路径转发概率。 Indicates the path forwarding probability of the last path R k at the current time t.
在本发明中,下一时刻t+1的路径转发概率集,记为(简称为下一时刻-转发概率集),且 In the present invention, the path forwarding probability set at the next moment t+1 is denoted as (referred to as the next moment - forwarding probability set), and
表示下一时刻t+1的第一条路径R1的路径转发概率。 Indicates the path forwarding probability of the first path R 1 at the next
表示下一时刻t+1的第二条路径R2的路径转发概率。 Indicates the path forwarding probability of the second path R2 at the next
表示下一时刻t+1的第i条路径Ri的路径转发概率。 Indicates the path forwarding probability of the i-th path R i at the next
表示下一时刻t+1的最后一条路径Rk的路径转发概率。 Indicates the path forwarding probability of the last path R k at the next moment t+1.
步骤14,基于Beta分布的转发概率调整;Step 14, adjusting the forwarding probability based on Beta distribution;
在本发明中,转发概率服从Beta(αi,βi)(下角标i为路径标识号)分布。αi表示路径Ri上的正向回报参数。βi表示路径Ri上的负向回报参数。In the present invention, the forwarding probability Obey Beta (α i , β i ) (the subscript i is the path identification number) distribution. α i represents the positive return parameter on the path R i . β i represents the negative reward parameter on the path R i .
在本发明中,对任意一条路径Ri的下一时刻路径的转发概率服从Beta(αi,t+1,βi,t+1)(下角标i为路径标识号)分布,初始化阶段,转发概率服从均匀分布Beta(1,1),即αi,1=βi,1=1。In the present invention, the forwarding probability of the path at the next moment for any path R i Obey Beta(α i,t+1 ,β i,t+1 ) (the subscript i is the path identification number) distribution, initialization stage, forwarding probability It obeys the uniform distribution Beta(1,1), that is, α i,1 =β i,1 =1.
αi,1表示初始时刻的路径Ri上的正向回报参数。α i,1 represents the positive return parameter on the path R i at the initial moment.
βi,1表示初始时刻的路径Ri上的负向回报参数。β i,1 represents the negative reward parameter on the path R i at the initial moment.
当路径Ri收到返回的当前时刻t的路径回报值后,比较与平均路径回报值且 When the path R i receives the returned path return value at the current time t After, compare vs mean path return value and
若大于等于则调整αi,t+1,且 like greater or equal to Then adjust α i,t+1 , and
若小于则调整βi,t+1,且 like less than Then adjust β i,t+1 , and
G表示时刻点的总个数。G represents the total number of time points.
表示路径Ri的第1时刻的路径回报值。 Indicates the path reward value of the path R i at the first moment.
表示路径Ri的第2时刻的路径回报值。 Indicates the route reward value of the route R i at the second moment.
表示路径Ri的上一时刻的路径回报值。 Indicates the path reward value of the path R i at the last moment.
αi,t表示当前时刻t的路径Ri上的正向回报参数。α i,t represents the forward reward parameter on the path R i at the current moment t.
αi,t+1表示下一时刻t+1的路径Ri上的正向回报参数。α i,t+1 represents the forward return parameter on the path R i at the next moment t+1.
βi,t表示当前时刻t的路径Ri上的负向回报参数。β i,t represents the negative reward parameter on the path R i at the current moment t.
βi,t+1表示下一时刻t+1的路径Ri上的负向回报参数。β i,t+1 represents the negative reward parameter on the path R i at the next moment t+1.
同理可得,第一条路径R1的下一时刻路径的转发概率服从Beta(α1,t+1,β1,t+1)分布。In the same way, the forwarding probability of the path at the next moment of the first path R 1 is Obey the Beta(α 1,t+1 ,β 1,t+1 ) distribution.
同理可得,第二条路径R2的下一时刻路径的转发概率服从Beta(α2,t+1,β2,t+1)分布。In the same way, the forwarding probability of the second path R 2 at the next moment is Obey the Beta(α 2,t+1 ,β 2,t+1 ) distribution.
同理可得,最后一条路径Rk的下一时刻路径的转发概率服从Beta(αk,t+1,βk,t+1)分布。Similarly, the forwarding probability of the next path of the last path R k Obey the Beta(α k,t+1 ,β k,t+1 ) distribution.
在本发明中,经Beta分布调整后的下一时刻路径的转发概率,记录入中,达到更新路径转发概率的目的。In the present invention, the forwarding probability of the path at the next moment adjusted by the Beta distribution is recorded into , to achieve the purpose of updating the path forwarding probability.
在本发明中,步骤一的转发路径选取是在传统汤普森采样算法上的改进,利用Beta分布的参数调整与路径回报值的大小相关,路径回报值达到设定的阈值时,路径回报值越大,αi的增加的幅度越大;路径回报值未达到设定的阈值时,路径回报值越小,βi的增加幅度越大。In the present invention, the forwarding path selection in
步骤15,获得兴趣包的转发路径;Step 15, obtaining the forwarding path of the Interest packet;
从下一时刻-转发概率集中选取出最大值的转发概率,记为 From Next Moment - Forwarding Probability Set Select the forwarding probability of the maximum value in , denoted as
然后,将所述的对应的路径作为兴趣包的转发路径HR。Then, the described The corresponding path serves as the forwarding path HR of the Interest packet.
在本发明中,将内容中心网络CCN中的任意一个转发节点node转在转发兴趣包集MA={AA1,AA2,…,AAa,…,AAA}和数据包集MB={BB1,BB2,…,BBb,…,BBB}时的路径选择采用了多臂赌博机方法(即MAB问题)来处理;由于多臂赌博机方法包括有臂、奖励和状态三个因素。因此,本发明的转发节点node转进行信息转发时携带的信息元素,记为三元组转发信息CC=[R,Q,E];所述CC=[R,Q,E]也称为CCN的路径选择问题。In the present invention, any forwarding node node in the content-centric network CCN is transferred to the forwarding interest packet set MA={AA 1 , AA 2 ,...,AA a ,...,AA A } and data packet set MB={BB 1 ,BB 2 ,…,BB b ,…,BB B }, the path selection is handled by the multi-armed bandit method (namely MAB problem); since the multi-armed bandit method includes three factors of arm, reward and state . Therefore, the information element carried by the forwarding node node of the present invention when forwarding information is recorded as triple forwarding information CC=[R, Q, E]; the CC=[R, Q, E] is also called CCN path selection problem.
R为路径。在本发明中,将R映射为多臂赌博机方法中的臂。R is the path. In the present invention, R is mapped as an arm in a multi-armed bandit approach.
Q为路径回报值。在本发明中,将Q映射为多臂赌博机方法中的奖励。Q is the path return value. In the present invention, Q is mapped to the reward in the multi-armed bandit approach.
E为路径状态因素,即E=(DropRate,RTT,Bandwidth)。在本发明中,将E映射为多臂赌博机方法中的状态。E is a path state factor, that is, E=(DropRate, RTT, Bandwidth). In the present invention, E is mapped as a state in the multi-armed bandit method.
DropRate为丢包率。DropRate is the packet loss rate.
RTT为传输时延。RTT is the transmission time delay.
Bandwidth为带宽。Bandwidth is the bandwidth.
在本发明中,多臂赌博机问题请参考2019年9月第1版出版的《统计推荐系统》第29-34页,作者:[美]Deepak K.garwal,Bee-Chung Chen,翻译:戴薇,潘微科,明仲。In the present invention, please refer to pages 29-34 of "Statistical Recommendation System" published in the first edition in September 2019 for the multi-armed gambling machine problem, author: [US] Deepak K.garwal, Bee-Chung Chen, translation: Dai Wei, Pan Weike, Ming Zhong.
步骤二,构建PR_FIB表;
对于内容中心网络CCN的转发过程由内容缓存(CS,Content Store)、待定请求表(PIT,Pending Interest Table)、兴趣转发表(FIB,Forwarding Information Base)三个重要数据结构组成。为了适合本发明的内容中心网络CCN多路径的转发过程,改进了兴趣转发表FIB,称为PR_FIB表。所述PR_FIB表是在传统FIB表中增加了转发概率和回报值两项信息。The forwarding process of CCN consists of three important data structures: content cache (CS, Content Store), pending request table (PIT, Pending Interest Table), and interest forwarding table (FIB, Forwarding Information Base). In order to be suitable for the multi-path forwarding process of the content-centric network CCN of the present invention, the interest forwarding table FIB is improved, which is called PR_FIB table. The PR_FIB table adds two pieces of information, forwarding probability and return value, to the traditional FIB table.
表1,原来FIB表的结构Table 1, the structure of the original FIB table
表2 PR_FIB表的结构Table 2 Structure of PR_FIB table
在本发明中,转发节点node转中的PR_FIB表对收到的任意一兴趣包AAa在进行转发前,需要根据每一条路径的Beta分布生成路径对应的转发概率,并填充至PR_FIB表的转发概率列中。当转发节点node转收到任意一数据包BBb后,会为相应的转发端口填充上记录在PR_FIB表中的路径回报值。In the present invention, the PR_FIB table in the forwarding node node needs to generate the forwarding probability corresponding to the path according to the Beta distribution of each path before forwarding any interest packet AA a received, and fill in the forwarding probability of the PR_FIB table. in the probability column. When the forwarding node node forwards any data packet BB b , it will fill in the path return value recorded in the PR_FIB table for the corresponding forwarding port.
步骤三,兴趣包和数据包在转发节点上的转发机制;
参见图2所示,从转发节点node转的一次转发过程来看:路径选择分为兴趣包处理阶段和数据包处理阶段:As shown in Figure 2, from the point of view of the forwarding process of forwarding node node: the path selection is divided into the interest packet processing stage and the data packet processing stage:
步骤31,兴趣包的处理过程;Step 31, the processing process of the interest packet;
转发节点node转收到兴趣包AAa后,首先查找内容缓存CS中有无对应内容前缀prefix的数据包BBb;After the forwarding node node forwards the interest packet AA a , it first checks whether there is a data packet BB b corresponding to the content prefix prefix in the content cache CS;
若有,则将数据包BBb发给兴趣包AAa的来源路径;If so, send the data packet BB b to the source path of the interest packet AA a ;
若无,查询待定请求表PIT;If not, query the pending request table PIT;
若PIT表中有所述内容前缀prefix,说明所述转发节点node转已收到过prefix,为转发节点node转增加来源端口;同时丢弃所述的兴趣包AAa;If there is the content prefix prefix in the PIT table, it means that the forwarding node node has received the prefix, and the source port is increased for the forwarding node node; while discarding the interest packet AA a ;
若PIT表中无,则查询PR_FIB表;If there is none in the PIT table, then query the PR_FIB table;
若PR_FIB表有,为所述内容前缀prefix对应的转发端口生成转发概率,并选取出最大转发概率对应的转发路径HR,然后用所述转发路径HR来转发兴趣包AAa;If the PR_FIB table exists, generate a forwarding probability for the forwarding port corresponding to the content prefix prefix, and select the maximum forwarding probability The corresponding forwarding path HR, and then use the forwarding path HR to forward the interest packet AA a ;
若PR_FIB表中无,则丢弃所述的兴趣包AAa。If there is none in the PR_FIB table, the said Interest packet AA a is discarded.
步骤32,数据包的处理过程;Step 32, the processing process of the data packet;
转发节点node转收到任意一数据包BBb后,第一方面采用路径回报值公式计算所述转发路径HR的路径回报值QHR,第二方面采用Beta分布计算转发概率,并将计算得到的转发概率记录在PR_FIB表中;第三方面使用待定请求表PIT将数据包BBb经来源端口返回。After the forwarding node node forwards any data packet BB b , the first aspect uses the path return value formula to calculate the path return value Q HR of the forwarding path HR, and the second aspect uses the Beta distribution to calculate the forwarding probability, and calculates the obtained The forwarding probability is recorded in the PR_FIB table; the third aspect uses the pending request table PIT to return the data packet BB b via the source port.
在本发明中,转发路径HR的路径回报值QHR为:In the present invention, the path return value Q HR of the forwarding path HR is:
QHR=ωrtt×RTT_Q+ωdrop×Drop_Q+ωbw×Bandwidth_QQ HR =ω rtt ×RTT_Q+ω drop ×Drop_Q+ω bw ×Bandwidth_Q
在本发明中,当转发路径HR收到返回的当前时刻t的路径回报值后,比较与平均路径回报值且 In the present invention, when the forwarding path HR receives the returned path return value at the current moment t After, compare vs mean path return value and
若大于等于则调整αHR,t+1,且 like greater or equal to Then adjust α HR,t+1 , and
若小于则调整βHR,t+1,且 like less than Then adjust β HR,t+1 , and
表示转发路径HR的第1时刻的路径回报值。 Indicates the path reward value of the forwarding path HR at the first moment.
表示转发路径HR的第2时刻的路径回报值。 Indicates the path reward value of the forwarding path HR at the second moment.
表示转发路径HR的上一时刻的路径回报值。 Indicates the path reward value of the forwarding path HR at the previous moment.
αHR,t表示当前时刻t的转发路径HR上的正向回报参数。α HR,t represents the forward return parameter on the forwarding path HR at the current time t.
αHR,t+1表示下一时刻t+1的转发路径HR上的正向回报参数。α HR,t+1 represents the forward return parameter on the forwarding path HR at the next
βHR,t表示当前时刻t的转发路径HR上的负向回报参数。β HR,t represents the negative reward parameter on the forwarding path HR at the current time t.
βHR,t+1表示下一时刻t+1的转发路径HR上的负向回报参数。β HR,t+1 represents the negative reward parameter on the forwarding path HR at the next
从整体CCN网络的转发阶段来看,转发阶段分为初始化阶段、探索阶段和利用阶段:From the forwarding stage of the overall CCN network, the forwarding stage is divided into initialization stage, exploration stage and utilization stage:
初始化阶段:转发节点收到第一个兴趣包AA1时,由于可选转发路径的转发概率服从Beta(1,1)分布,该分布是均匀分布,此时路径的选择是随机的。Initialization phase: when the forwarding node receives the first Interest packet AA 1 , due to the forwarding probability of the optional forwarding path Obey the Beta(1,1) distribution, which is a uniform distribution, and the path selection is random at this time.
探索阶段:可被选择路径的转发概率的分布曲线宽,集中度小,各路径的转发概率不确定,此时转发概率的Beta分布中心值低的路径仍有机会被选择。Exploration phase: the forwarding probability of the path that can be selected The distribution curve is wide, the concentration is small, and the forwarding probability of each path Uncertain, the forwarding probability at this time The path with a low central value of the Beta distribution still has a chance to be selected.
利用阶段:可被选择路径的转发概率的分布曲线窄,集中度高,各路径的转发概率相对确定,但若遇到路径Ri拥塞,导致时延变长、丢包率变大,本发明会根据回报值对转发概率的Beta分布做出调整。Exploitation stage: the forwarding probability of the path that can be selected The distribution curve is narrow, the concentration is high, and the forwarding probability of each path is relatively certain. However, if the path R i is congested, it will cause delay Variable length, packet loss rate become larger, the invention will according to the return value pair forwarding probability Adjusted for the Beta distribution.
实施例1Example 1
参见图3所示的CCN网络拓扑结构,在图中转发端口1与生产者1之间的路径记为第一条路径R1,转发端口2与生产者2之间的路径记为第二条路径R2,转发端口3与生产者3之间的路径记为第三条路径R3。转发节点的数据结构如图4所示。该转发节点的传输时延的权重系数ωrtt=0.6、丢包率的权重系数ωdrop=0.3、带宽的权重系数ωbw=0.1。该转发节点上的三条路径的平均路径回报值均设为0.5,即和 Referring to the CCN network topology shown in Figure 3, the path between forwarding
在实施例1中,定义转发节点需要转发的是第一个兴趣包AA1和第一个数据包BB1。In
生产者1、生产者2和生产者3的CS中存在内容前缀为prefix_3的第一个数据包BB1,根据步骤二建立得到属于如图3所示结构的CCN网络拓扑的PR_FIB表结构。转发节点的数据结构如图4所示。当消费者请求对每秒250个内容前缀为prefix_3的第一个数据包BB1时,执行下列过程:
(1)消费者发送内容前缀为prefix_3的第一个兴趣包AA1;(1) The consumer sends the first Interest packet AA 1 whose content prefix is prefix_3;
(2)当所述第一个兴趣包AA1到达转发节点时,根据步骤31在CS中查找,没有所述内容前缀为prefix_3的第一个数据包BB1;(2) When the first interest packet AA 1 arrives at the forwarding node, search in the CS according to step 31, there is no first data packet BB 1 whose content prefix is prefix_3;
(3)转发节点在PIT中查找,没有所述内容前缀为prefix_3的第一个数据包BB1,最后记录下内容前缀prefix_3、以及所述内容前缀prefix_3对应的来源端口1,如图5所示的数据结构中。(3) The forwarding node searches in the PIT, and there is no first data packet BB 1 with the content prefix prefix_3, and finally records the content prefix prefix_3 and the
(4)转发节点在PR_FIB表中查找,有内容前缀prefix_3的第一个数据包BB1,且有3个转发端口,即转发端口1、转发端口2和转发端口3;(4) The forwarding node looks up in the PR_FIB table, there is the first data packet BB 1 with content prefix prefix_3, and there are 3 forwarding ports, namely forwarding
(5)转发节点根据步骤11,获取内容前缀为prefix_3的第一个兴趣包AA1的转发端口对应的转发路径集 (5) The forwarding node obtains the forwarding path set corresponding to the forwarding port of the first Interest packet AA 1 whose content prefix is prefix_3 according to step 11
(6)转发节点根据步骤13和转发路径集的初始Beta分布,计算得到转发概率;第一个兴趣包AA1是第一个达到的兴趣包,计算出转发概率为0.8、0.9、0.4并记录,如图6所示的数据结构中;(6) forwarding node according to step 13 and forwarding path set The initial Beta distribution of the calculated forwarding probability; the first Interest packet AA 1 is the first Interest packet to arrive, and the calculated forwarding probabilities are 0.8, 0.9, 0.4 and recorded, as shown in the data structure in Figure 6;
(7)转发节点根据步骤15,从转发端口2对应的第二条路径R2来转发第一个兴趣包AA1;(7) The forwarding node forwards the first interest packet AA 1 from the second path R 2 corresponding to the forwarding
(8)当第一个兴趣包AA1到达生产者2时,生产者2的CS中存在内容前缀为prefix_3的第一个数据包BB1,根据步骤31将该第一个数据包BB1发给第一个兴趣包AA1的来源路径,即第二条路径R2;(8) When the first interest packet AA 1 arrives at
(9)当内容前缀为prefix_3的第一个数据包BB1返回到转发节点,该第二条路径R2的带宽为20、时延为0.2、丢包率为0;转发节点根据步骤12计算第二条路径R2的路径回报值为0.9,并记录如图7所示的的数据结构中;(9) When the first data packet BB 1 whose content prefix is prefix_3 is returned to the forwarding node, the bandwidth of the second path R 2 is 20, the delay is 0.2, and the packet loss rate is 0; the forwarding node calculates according to step 12 The path return value of the second path R2 is 0.9, and is recorded in the data structure shown in Figure 7;
(10)根据步骤14对第二条路径R2的Beta分布调整,0.9>0.5,调整α2,2=α2,1+1×0.9=1.9,α2,1为初始时刻的第二条路径R2上的正向回报参数,α2,2为当前时刻的第二条路径R2上的正向回报参数,此时,第二条路径R2的转发概率服从Beta(1.9,1);(10) Adjust the Beta distribution of the second route R 2 according to step 14, 0.9>0.5, adjust α 2,2 = α 2,1 +1×0.9=1.9, α 2,1 is the second route at the initial moment The positive return parameter on the path R 2 , α 2,2 is the positive return parameter on the second path R 2 at the current moment, at this time, the forwarding probability of the second path R 2 obeys Beta(1.9,1) ;
(11)根据步骤32在PIT中查找,有该内容前缀prefix_3的记录,根据记录的来源端口1转发第一个数据包BB1到消费者。至此第一个内容前缀为prefix_3的第一个数据包BB1请求完毕。(11) Search in the PIT according to step 32, there is a record of the content prefix prefix_3, and forward the first data packet BB 1 to the consumer according to the
参见图8、图9所示,在ndnSIM平台对本发明方法进行仿真,在线路带宽为5Mbps,线路时延为3ms的情况下,请求者以每秒250个兴趣包的速度发送兴趣包,转发节点获得数据包的平均时延为0.07s。转发节点平均丢包率为0.38(常量纲,单位未用%表示)。经本发明方法处理后与最佳路由策略(best-route)方法比较,时延降低了65%,丢包率降低了38%。经本发明方法处理后与多播转发策略(multicast)方法比较,时延降低了73%,丢包率降低了48%。Referring to Figures 8 and 9, the method of the present invention is simulated on the ndnSIM platform. When the line bandwidth is 5 Mbps and the line delay is 3 ms, the requester sends Interest packets at a rate of 250 Interest packets per second, and the forwarding node The average delay of obtaining data packets is 0.07s. The average packet loss rate of forwarding nodes is 0.38 (constant dimension, the unit is not represented by %). Compared with the best-route method after being processed by the method of the invention, the time delay is reduced by 65%, and the packet loss rate is reduced by 38%. Compared with the multicast forwarding strategy (multicast) method after being processed by the method of the invention, the time delay is reduced by 73%, and the packet loss rate is reduced by 48%.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111186831.9A CN113938417B (en) | 2021-10-12 | 2021-10-12 | Content center network multi-path selection method based on Topson sampling |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111186831.9A CN113938417B (en) | 2021-10-12 | 2021-10-12 | Content center network multi-path selection method based on Topson sampling |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113938417A CN113938417A (en) | 2022-01-14 |
CN113938417B true CN113938417B (en) | 2023-03-14 |
Family
ID=79278884
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111186831.9A Active CN113938417B (en) | 2021-10-12 | 2021-10-12 | Content center network multi-path selection method based on Topson sampling |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113938417B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115174337B (en) * | 2022-09-06 | 2022-11-08 | 中国人民解放军国防科技大学 | OFDM waveform parameter adaptation method based on restricted Thompson sampling |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6577601B1 (en) * | 1999-08-05 | 2003-06-10 | The United States Of America As Represented By The Administrator Of The National Aeronautics And Space Administration | Masked proportional routing |
CN108519994A (en) * | 2018-03-04 | 2018-09-11 | 天津大学 | Distributed Origin Guarantee Regular Path Query Algorithm Based on Pregel |
CN108881048A (en) * | 2018-08-23 | 2018-11-23 | 北京理工大学 | A kind of name data network congestion control method based on intensified learning |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8111619B2 (en) * | 2008-02-08 | 2012-02-07 | Honeywell International Inc. | Apparatus and method for routing data in wireless networks |
-
2021
- 2021-10-12 CN CN202111186831.9A patent/CN113938417B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6577601B1 (en) * | 1999-08-05 | 2003-06-10 | The United States Of America As Represented By The Administrator Of The National Aeronautics And Space Administration | Masked proportional routing |
CN108519994A (en) * | 2018-03-04 | 2018-09-11 | 天津大学 | Distributed Origin Guarantee Regular Path Query Algorithm Based on Pregel |
CN108881048A (en) * | 2018-08-23 | 2018-11-23 | 北京理工大学 | A kind of name data network congestion control method based on intensified learning |
Non-Patent Citations (1)
Title |
---|
《域间路由系统的级联失效攻击及检测研究》;邱菡;《中国科学:信息科学》;20171231;第1715-1729页 * |
Also Published As
Publication number | Publication date |
---|---|
CN113938417A (en) | 2022-01-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108881048B (en) | A Congestion Control Method for Named Data Networks Based on Reinforcement Learning | |
US11665084B2 (en) | Method and apparatus for determining forwarding port in information centeric network | |
CN107094115A (en) | A kind of ant group optimization Load Balance Routing Algorithms based on SDN | |
CN103634842B (en) | Method for routing between a kind of distributed satellite network group | |
CN106789648A (en) | Software defined network route decision method based on content storage with network condition | |
CN111885648A (en) | An Energy-Efficient Network Content Distribution Mechanism Construction Method Based on Edge Cache | |
WO2020078448A1 (en) | Message processing method and apparatus | |
CN111314223A (en) | A forwarding method based on routing interface ranking in NDN | |
CN111294394B (en) | Self-adaptive caching strategy method based on complex network junction | |
CN110417662A (en) | A named data network transmission method for smart buildings | |
CN103905538A (en) | Neighbor cooperation cache replacement method in content center network | |
CN113783779B (en) | Hierarchical random caching method in named data network | |
CN112399485A (en) | CCN-based new node value and content popularity caching method in 6G | |
CN113938417B (en) | Content center network multi-path selection method based on Topson sampling | |
CN105262833A (en) | Cross-layer catching method and node of content centric network | |
CN105656788A (en) | CCN (Content Centric Network) content caching method based on popularity statistics | |
US11502956B2 (en) | Method for content caching in information-centric network virtualization | |
CN114513426A (en) | A CCN Community Division Method Based on Node Similarity and Influence | |
CN112422421B (en) | Multi-path data packet transmission method of heterogeneous network | |
CN108173903B (en) | Application method of autonomous system cooperative caching strategy in CCN | |
CN110012071A (en) | Caching method and device for Internet of Things | |
CN103905327B (en) | Stream state information based content-centric network congestion control method and system thereof | |
CN108093056B (en) | Node cache replacement method in information center wireless network virtualization network | |
CN108521373A (en) | A Multipath Routing Method in Named Data Network | |
CN106941695A (en) | A kind of data distributing method matched based on interest in opportunistic network |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |