[go: up one dir, main page]

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 PDF

Info

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
Application number
CN202111186831.9A
Other languages
Chinese (zh)
Other versions
CN113938417A (en
Inventor
王天博
林婉霜
夏春和
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN202111186831.9A priority Critical patent/CN113938417B/en
Publication of CN113938417A publication Critical patent/CN113938417A/en
Application granted granted Critical
Publication of CN113938417B publication Critical patent/CN113938417B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/08Learning-based routing, e.g. using neural networks or artificial intelligence
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/123Evaluation of link metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/12Shortest path evaluation
    • H04L45/124Shortest path evaluation using a combination of metrics
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address 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分布,综合丢包率、带宽、往返时间多指标进行路径评估,将评估结果作为路径转发概率分布的调整依据;采用改进的汤普森采样方法自适应地选择最优路径来转发兴趣包。在多路径选择场景下,本发明方法不依赖于预先设定的转发策略,能够适应不同网络条件,根据路径评级结果智能选择转发路径。本发明方法有效避免了转发策略的冷启动问题;根据多指标评估选择转发路径,有效避免了网络拥塞,减少了数据传输的延迟。

Figure 202111186831

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.

Figure 202111186831

Description

基于汤普森采样的内容中心网络多路径选择方法Multi-path selection method for content-centric network based on Thompson sampling

技术领域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:

步骤一,采用改进的汤普森采样获取转发路径;Step 1, using improved Thompson sampling to obtain forwarding paths;

步骤11,获取转发节点上的所有路径;Step 11, obtaining all paths on the forwarding node;

在转发节点node收到任意一兴趣包AAa后,能够确认的可供选择的路径就是转发节点-路径集

Figure BDA0003299588610000021
中的所有路径;After the forwarding node node forwards any Interest packet AA a , the alternative path that can be confirmed is the forwarding node-path set
Figure BDA0003299588610000021
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:

Figure BDA0003299588610000022
Figure BDA0003299588610000022

ω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;

归一化的传输时延回报值

Figure BDA0003299588610000023
Normalized transmission delay return value
Figure BDA0003299588610000023

归一化的的丢包率回报值

Figure BDA0003299588610000024
Normalized packet loss rate return value
Figure BDA0003299588610000024

归一化的带宽回报值

Figure BDA0003299588610000031
Normalized Bandwidth Return Value
Figure BDA0003299588610000031

步骤13,计算下一时刻的路径转发概率;Step 13, calculating the path forwarding probability at the next moment;

任意一条路径Ri的当前时刻t的路径回报值,记为

Figure BDA0003299588610000032
Figure BDA0003299588610000033
所述
Figure BDA0003299588610000034
的丢包率、传输时延和带宽可以看作是当前时刻t下的路径选择的状态因素,记为
Figure BDA0003299588610000035
Figure BDA0003299588610000036
The path reward value of any path R i at the current moment t, denoted as
Figure BDA0003299588610000032
and
Figure BDA0003299588610000033
said
Figure BDA0003299588610000034
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
Figure BDA0003299588610000035
and
Figure BDA0003299588610000036

Figure BDA0003299588610000037
表示路径Ri在当前时刻t的归一化的传输时延回报值;
Figure BDA0003299588610000037
Indicates the normalized transmission delay return value of the path R i at the current time t;

Figure BDA0003299588610000038
表示路径Ri在当前时刻t的归一化的丢包率回报值;
Figure BDA0003299588610000038
Indicates the normalized packet loss rate return value of the path R i at the current moment t;

Figure BDA0003299588610000039
表示路径Ri在当前时刻t的归一化的带宽回报值;
Figure BDA0003299588610000039
Indicates the normalized bandwidth return value of the path R i at the current moment t;

位于转发节点node上的任意一条路径Ri的路径转发概率为

Figure BDA00032995886100000310
Figure BDA00032995886100000311
当前时刻t的路径转发概率为
Figure BDA00032995886100000312
Figure BDA00032995886100000313
所述
Figure BDA00032995886100000314
服从Beta分布,转发节点node依赖得到的当前回报值
Figure BDA00032995886100000315
来调整Beta函数,从而调整下一时刻路径的转发概率
Figure BDA00032995886100000316
Figure BDA00032995886100000317
The path forwarding probability of any path R i located on the forwarding node node is
Figure BDA00032995886100000310
and
Figure BDA00032995886100000311
The path forwarding probability at the current moment t is
Figure BDA00032995886100000312
and
Figure BDA00032995886100000313
said
Figure BDA00032995886100000314
Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on
Figure BDA00032995886100000315
To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
Figure BDA00032995886100000316
and
Figure BDA00032995886100000317

步骤14,基于Beta分布的转发概率调整;Step 14, adjusting the forwarding probability based on Beta distribution;

转发概率

Figure BDA00032995886100000318
服从Beta(αii)分布;αi表示路径Ri上的正向回报参数;βi表示路径Ri上的负向回报参数;forwarding probability
Figure BDA00032995886100000318
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的下一时刻路径的转发概率

Figure BDA00032995886100000319
服从Beta(αi,t+1i,t+1)分布,初始化阶段,转发概率
Figure BDA00032995886100000320
服从均匀分布Beta(1,1),即αi,1=βi,1=1;The forwarding probability of the path at the next moment for any path R i
Figure BDA00032995886100000319
Obey Beta(α i,t+1i,t+1 ) distribution, initialization stage, forwarding probability
Figure BDA00032995886100000320
Obey the uniform distribution Beta(1,1), that is, α i,1i,1 =1;

当路径Ri收到返回的当前时刻t的路径回报值

Figure BDA00032995886100000321
后,比较
Figure BDA00032995886100000322
与平均路径回报值
Figure BDA00032995886100000323
Figure BDA00032995886100000324
When the path R i receives the returned path return value at the current time t
Figure BDA00032995886100000321
After, compare
Figure BDA00032995886100000322
vs mean path return value
Figure BDA00032995886100000323
and
Figure BDA00032995886100000324

Figure BDA00032995886100000325
大于等于
Figure BDA00032995886100000326
则调整αi,t+1,且
Figure BDA00032995886100000327
like
Figure BDA00032995886100000325
greater or equal to
Figure BDA00032995886100000326
Then adjust α i,t+1 , and
Figure BDA00032995886100000327

Figure BDA00032995886100000328
小于
Figure BDA00032995886100000329
则调整βi,t+1,且
Figure BDA00032995886100000330
like
Figure BDA00032995886100000328
less than
Figure BDA00032995886100000329
Then adjust β i,t+1 , and
Figure BDA00032995886100000330

步骤15,获得兴趣包的转发路径;Step 15, obtaining the forwarding path of the Interest packet;

从下一时刻-转发概率集

Figure BDA00032995886100000331
中选取出最大值的转发概率,记为
Figure BDA00032995886100000332
From Next Moment - Forwarding Probability Set
Figure BDA00032995886100000331
Select the forwarding probability of the maximum value in , denoted as
Figure BDA00032995886100000332

然后,将所述的

Figure BDA00032995886100000333
对应的路径作为兴趣包的转发路径HR;Then, the described
Figure BDA00032995886100000333
The corresponding path is used as the forwarding path HR of the interest packet;

步骤二,构建PR_FIB表;Step 2, construct PR_FIB table;

改进的兴趣转发表,记为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;

步骤三,兴趣包和数据包在转发节点上的转发机制;Step 3, the forwarding mechanism of the interest packet and the data packet on the forwarding node;

从转发节点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的数据包BBbAfter 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增加来源端口;同时丢弃所述的兴趣包AAaIf 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对应的转发端口生成转发概率,并选取出最大转发概率

Figure BDA0003299588610000041
对应的转发路径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
Figure BDA0003299588610000041
The corresponding forwarding path HR, and then use the forwarding path HR to forward the interest packet AA a ;

若PR_FIB表中无,则丢弃所述的兴趣包AAaIf 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的路径回报值

Figure BDA0003299588610000042
后,比较
Figure BDA0003299588610000043
与平均路径回报值
Figure BDA0003299588610000044
Figure BDA0003299588610000045
When the forwarding path HR receives the returned path return value at the current time t
Figure BDA0003299588610000042
After, compare
Figure BDA0003299588610000043
vs mean path return value
Figure BDA0003299588610000044
and
Figure BDA0003299588610000045

Figure BDA0003299588610000051
大于等于
Figure BDA0003299588610000052
则调整αHR,t+1,且
Figure BDA0003299588610000053
like
Figure BDA0003299588610000051
greater or equal to
Figure BDA0003299588610000052
Then adjust α HR,t+1 , and
Figure BDA0003299588610000053

Figure BDA0003299588610000054
小于
Figure BDA0003299588610000055
则调整βHR,t+1,且
Figure BDA0003299588610000056
like
Figure BDA0003299588610000054
less than
Figure BDA0003299588610000055
Then adjust β HR,t+1 , and
Figure BDA0003299588610000056

本发明基于汤普森采样的内容中心网络多路径选择方法的优点在于: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 Embodiment 1.

图4是实施例1中的转发节点的数据结构图。FIG. 4 is a data structure diagram of a forwarding node in Embodiment 1.

图5是实施例1中的转发节点执行PIT查找的数据结构图。FIG. 5 is a data structure diagram of the PIT lookup performed by the forwarding node in Embodiment 1.

图6是实施例1中的转发节点执行Beta分布的数据结构图。FIG. 6 is a data structure diagram of Beta distribution performed by forwarding nodes in Embodiment 1.

图7是实施例1中的转发节点执行路径回报的数据结构图。FIG. 7 is a data structure diagram of path reporting performed by forwarding nodes in Embodiment 1. FIG.

图8是经本发明方法处理的实施例1的转发节点收到数据包的平均时延对比图。Fig. 8 is a comparison diagram of the average time delay of the data packets received by the forwarding node in embodiment 1 processed by the method of the present invention.

图9是经本发明方法处理的实施例1的转发节点丢包率对比图。Fig. 9 is a comparison chart of the packet loss rate of forwarding nodes in Embodiment 1 processed by the method of the present invention.

具体实施方式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。转发节点,记为nodeIn 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上的多条路径构成了转发节点-路径集,记为

Figure BDA0003299588610000061
Figure BDA0003299588610000062
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
Figure BDA0003299588610000061
and
Figure BDA0003299588610000062

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的路径回报值,记为

Figure BDA0003299588610000063
(即
Figure BDA0003299588610000071
)。任意一条路径Ri的转发概率,记为
Figure BDA0003299588610000072
任意一条路径Ri的丢包率,记为
Figure BDA0003299588610000073
任意一条路径Ri的传输时延,记为
Figure BDA0003299588610000074
任意一条路径Ri的带宽,记为
Figure BDA0003299588610000075
In the present invention, the path return value of any path R i is denoted as
Figure BDA0003299588610000063
(Right now
Figure BDA0003299588610000071
). The forwarding probability of any path R i is denoted as
Figure BDA0003299588610000072
The packet loss rate of any path R i is denoted as
Figure BDA0003299588610000073
The transmission delay of any path R i is denoted as
Figure BDA0003299588610000074
The bandwidth of any path R i is denoted as
Figure BDA0003299588610000075

参见图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:

步骤一,采用改进的汤普森采样获取转发路径;Step 1, using improved Thompson sampling to obtain forwarding paths;

步骤11,获取转发节点上的所有路径;Step 11, obtaining all paths on the forwarding node;

在本发明中,收集转发节点node上的所有路径,形成了转发节点-路径集

Figure BDA0003299588610000076
然后采用多臂赌博机方法将转发节点-路径集
Figure BDA0003299588610000077
中的各个路径映射为多臂赌博机的臂元素。In the present invention, all the paths transferred by the forwarding node node are collected to form a forwarding node-path set
Figure BDA0003299588610000076
Then use the multi-armed bandit method to convert the forwarding node-path set
Figure BDA0003299588610000077
Each path in is mapped to an arm element of a multi-armed bandit.

在转发节点node收到任意一兴趣包AAa后,能够确认的可供选择的路径就是转发节点-路径集

Figure BDA0003299588610000078
中的所有路径。After the forwarding node node forwards any Interest packet AA a , the alternative path that can be confirmed is the forwarding node-path set
Figure BDA0003299588610000078
All paths in .

步骤12,计算每一条路径上的路径回报值;Step 12, calculating the path return value on each path;

任意一数据包BBb到达转发节点node时,采用路径回报值公式计算每一条路径上的路径回报值,得到路径回报值集,记为

Figure BDA0003299588610000079
Figure BDA00032995886100000710
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
Figure BDA0003299588610000079
and
Figure BDA00032995886100000710

Figure BDA00032995886100000711
表示第一条路径R1的路径回报值。
Figure BDA00032995886100000711
Indicates the path reward value of the first path R1 .

Figure BDA00032995886100000712
表示第二条路径R2的路径回报值。
Figure BDA00032995886100000712
Indicates the path reward value of the second path R2 .

Figure BDA00032995886100000713
表示第i条路径Ri的路径回报值。
Figure BDA00032995886100000713
Indicates the path reward value of the i-th path R i .

Figure BDA00032995886100000714
表示最后一条路径Rk的路径回报值。
Figure BDA00032995886100000714
Indicates the path reward value of the last path R k .

为了方便说明,所述的

Figure BDA00032995886100000715
也称为任意一条路径Ri的路径回报值。For convenience of description, the
Figure BDA00032995886100000715
It is also called the path return value of any path R i .

在本发明中,路径回报值公式为:In the present invention, the path return value formula is:

Figure BDA00032995886100000716
Figure BDA00032995886100000716

ω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.

在本发明中,归一化的传输时延回报值

Figure BDA0003299588610000081
当RTT_Q的值越大时,说明转发节点上的路径的传输时延情况越差。而RTT_Q与
Figure BDA0003299588610000082
成反比关系。In the present invention, the normalized transmission delay return value
Figure BDA0003299588610000081
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
Figure BDA0003299588610000082
Inversely proportional relationship.

在本发明中,归一化的的丢包率回报值

Figure BDA0003299588610000083
当Drop_Q的值越大,说明转发节点上的路径的丢包率就越大。而Drop_Q与
Figure BDA0003299588610000084
成反比关系。In the present invention, the normalized packet loss rate return value
Figure BDA0003299588610000083
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
Figure BDA0003299588610000084
Inversely proportional relationship.

在本发明中,归一化的带宽回报值

Figure BDA0003299588610000085
当Bandwidth_Q的值越大,说明路径的带宽回报值越大,路径性能越好。而Bandwidth_Q与
Figure BDA0003299588610000086
成正比关系。In the present invention, the normalized bandwidth return value
Figure BDA0003299588610000085
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
Figure BDA0003299588610000086
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的路径回报值,记为

Figure BDA0003299588610000087
Figure BDA0003299588610000088
所述
Figure BDA0003299588610000089
的丢包率、传输时延和带宽可以看作是当前时刻t下的路径选择的状态因素,记为
Figure BDA00032995886100000810
Figure BDA00032995886100000811
Figure BDA00032995886100000812
表示路径Ri在当前时刻t的归一化的传输时延回报值。In the present invention, the path reward value of any path R i at the current moment t is denoted as
Figure BDA0003299588610000087
and
Figure BDA0003299588610000088
said
Figure BDA0003299588610000089
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
Figure BDA00032995886100000810
and
Figure BDA00032995886100000811
Figure BDA00032995886100000812
Indicates the normalized transmission delay return value of the path R i at the current time t.

Figure BDA00032995886100000813
表示路径Ri在当前时刻t的归一化的丢包率回报值。
Figure BDA00032995886100000813
Indicates the normalized packet loss rate return value of the path R i at the current time t.

Figure BDA00032995886100000814
表示路径Ri在当前时刻t的归一化的带宽回报值。
Figure BDA00032995886100000814
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的路径转发概率为

Figure BDA00032995886100000815
Figure BDA00032995886100000816
当前时刻t的路径转发概率为
Figure BDA00032995886100000817
Figure BDA0003299588610000091
所述
Figure BDA0003299588610000092
服从Beta分布,转发节点node依赖得到的当前回报值
Figure BDA0003299588610000093
来调整Beta函数,从而调整下一时刻路径的转发概率
Figure BDA0003299588610000094
Figure BDA0003299588610000095
In the present invention, the path forwarding probability of any path R i located on the forwarding node node is
Figure BDA00032995886100000815
and
Figure BDA00032995886100000816
The path forwarding probability at the current moment t is
Figure BDA00032995886100000817
and
Figure BDA0003299588610000091
said
Figure BDA0003299588610000092
Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on
Figure BDA0003299588610000093
To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
Figure BDA0003299588610000094
and
Figure BDA0003299588610000095

同理,位于转发节点node上的路径R1的路径转发概率为

Figure BDA0003299588610000096
当前时刻t的路径转发概率为
Figure BDA0003299588610000097
所述
Figure BDA0003299588610000098
服从Beta分布,转发节点node依赖得到的当前回报值
Figure BDA0003299588610000099
来调整Beta函数,从而调整下一时刻路径的转发概率
Figure BDA00032995886100000910
Similarly, the path forwarding probability of the path R 1 located on the forwarding node node is
Figure BDA0003299588610000096
The path forwarding probability at the current moment t is
Figure BDA0003299588610000097
said
Figure BDA0003299588610000098
Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on
Figure BDA0003299588610000099
To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
Figure BDA00032995886100000910

同理,位于转发节点node上的路径R2的路径转发概率为

Figure BDA00032995886100000911
当前时刻t的路径转发概率为
Figure BDA00032995886100000912
所述
Figure BDA00032995886100000913
服从Beta分布,转发节点node依赖得到的当前回报值
Figure BDA00032995886100000914
来调整Beta函数,从而调整下一时刻路径的转发概率
Figure BDA00032995886100000915
Similarly, the path forwarding probability of the path R 2 on the forwarding node node is
Figure BDA00032995886100000911
The path forwarding probability at the current moment t is
Figure BDA00032995886100000912
said
Figure BDA00032995886100000913
Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on
Figure BDA00032995886100000914
To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
Figure BDA00032995886100000915

同理,位于转发节点node上的路径Rk的路径转发概率为

Figure BDA00032995886100000916
当前时刻t的路径转发概率为
Figure BDA00032995886100000917
所述
Figure BDA00032995886100000918
服从Beta分布,转发节点node依赖得到的当前回报值
Figure BDA00032995886100000919
来调整Beta函数,从而调整下一时刻路径的转发概率
Figure BDA00032995886100000920
Similarly, the path forwarding probability of the path R k on the forwarding node node is
Figure BDA00032995886100000916
The path forwarding probability at the current moment t is
Figure BDA00032995886100000917
said
Figure BDA00032995886100000918
Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on
Figure BDA00032995886100000919
To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
Figure BDA00032995886100000920

在本发明中,当前时刻t的路径回报值集,记为

Figure BDA00032995886100000921
(简称为当前时刻-路径回报值集),且
Figure BDA00032995886100000922
In the present invention, the path return value set at the current moment t is denoted as
Figure BDA00032995886100000921
(referred to as the current moment-path return value set), and
Figure BDA00032995886100000922

Figure BDA00032995886100000923
表示当前时刻t的第一条路径R1的路径回报值。
Figure BDA00032995886100000923
Indicates the route reward value of the first route R1 at the current time t.

Figure BDA00032995886100000924
表示当前时刻t的第二条路径R2的路径回报值。
Figure BDA00032995886100000924
Indicates the path reward value of the second path R2 at the current time t.

Figure BDA00032995886100000925
表示当前时刻t的第i条路径Ri的路径回报值。
Figure BDA00032995886100000925
Indicates the path reward value of the i-th path R i at the current time t.

Figure BDA00032995886100000926
表示当前时刻t的最后一条路径Rk的路径回报值。
Figure BDA00032995886100000926
Indicates the path reward value of the last path R k at the current time t.

在本发明中,当前时刻t的路径转发概率集,记为

Figure BDA00032995886100000927
(简称为当前时刻-转发概率集),且
Figure BDA00032995886100000928
In the present invention, the path forwarding probability set at the current moment t is denoted as
Figure BDA00032995886100000927
(referred to as the current moment - forwarding probability set), and
Figure BDA00032995886100000928

Figure BDA00032995886100000929
表示当前时刻t的第一条路径R1的路径转发概率。
Figure BDA00032995886100000929
Indicates the path forwarding probability of the first path R1 at the current time t.

Figure BDA00032995886100000930
表示当前时刻t的第二条路径R2的路径转发概率。
Figure BDA00032995886100000930
Indicates the path forwarding probability of the second path R2 at the current time t.

Figure BDA00032995886100000931
表示当前时刻t的第i条路径Ri的路径转发概率。
Figure BDA00032995886100000931
Indicates the path forwarding probability of the i-th path R i at the current time t.

Figure BDA00032995886100000932
表示当前时刻t的最后一条路径Rk的路径转发概率。
Figure BDA00032995886100000932
Indicates the path forwarding probability of the last path R k at the current time t.

在本发明中,下一时刻t+1的路径转发概率集,记为

Figure BDA00032995886100000933
(简称为下一时刻-转发概率集),且
Figure BDA00032995886100000934
In the present invention, the path forwarding probability set at the next moment t+1 is denoted as
Figure BDA00032995886100000933
(referred to as the next moment - forwarding probability set), and
Figure BDA00032995886100000934

Figure BDA00032995886100000935
表示下一时刻t+1的第一条路径R1的路径转发概率。
Figure BDA00032995886100000935
Indicates the path forwarding probability of the first path R 1 at the next time t+1.

Figure BDA00032995886100000936
表示下一时刻t+1的第二条路径R2的路径转发概率。
Figure BDA00032995886100000936
Indicates the path forwarding probability of the second path R2 at the next time t+1.

Figure BDA00032995886100000937
表示下一时刻t+1的第i条路径Ri的路径转发概率。
Figure BDA00032995886100000937
Indicates the path forwarding probability of the i-th path R i at the next time t+1.

Figure BDA0003299588610000101
表示下一时刻t+1的最后一条路径Rk的路径转发概率。
Figure BDA0003299588610000101
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;

在本发明中,转发概率

Figure BDA0003299588610000102
服从Beta(αii)(下角标i为路径标识号)分布。αi表示路径Ri上的正向回报参数。βi表示路径Ri上的负向回报参数。In the present invention, the forwarding probability
Figure BDA0003299588610000102
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的下一时刻路径的转发概率

Figure BDA0003299588610000103
服从Beta(αi,t+1i,t+1)(下角标i为路径标识号)分布,初始化阶段,转发概率
Figure BDA0003299588610000104
服从均匀分布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
Figure BDA0003299588610000103
Obey Beta(α i,t+1i,t+1 ) (the subscript i is the path identification number) distribution, initialization stage, forwarding probability
Figure BDA0003299588610000104
It obeys the uniform distribution Beta(1,1), that is, α i,1i,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的路径回报值

Figure BDA0003299588610000105
后,比较
Figure BDA0003299588610000106
与平均路径回报值
Figure BDA0003299588610000107
Figure BDA0003299588610000108
When the path R i receives the returned path return value at the current time t
Figure BDA0003299588610000105
After, compare
Figure BDA0003299588610000106
vs mean path return value
Figure BDA0003299588610000107
and
Figure BDA0003299588610000108

Figure BDA0003299588610000109
大于等于
Figure BDA00032995886100001010
则调整αi,t+1,且
Figure BDA00032995886100001011
like
Figure BDA0003299588610000109
greater or equal to
Figure BDA00032995886100001010
Then adjust α i,t+1 , and
Figure BDA00032995886100001011

Figure BDA00032995886100001012
小于
Figure BDA00032995886100001013
则调整βi,t+1,且
Figure BDA00032995886100001014
like
Figure BDA00032995886100001012
less than
Figure BDA00032995886100001013
Then adjust β i,t+1 , and
Figure BDA00032995886100001014

G表示时刻点的总个数。G represents the total number of time points.

Figure BDA00032995886100001015
表示路径Ri的第1时刻的路径回报值。
Figure BDA00032995886100001015
Indicates the path reward value of the path R i at the first moment.

Figure BDA00032995886100001016
表示路径Ri的第2时刻的路径回报值。
Figure BDA00032995886100001016
Indicates the route reward value of the route R i at the second moment.

Figure BDA00032995886100001017
表示路径Ri的上一时刻的路径回报值。
Figure BDA00032995886100001017
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的下一时刻路径的转发概率

Figure BDA00032995886100001018
服从Beta(α1,t+11,t+1)分布。In the same way, the forwarding probability of the path at the next moment of the first path R 1 is
Figure BDA00032995886100001018
Obey the Beta(α 1,t+11,t+1 ) distribution.

同理可得,第二条路径R2的下一时刻路径的转发概率

Figure BDA00032995886100001019
服从Beta(α2,t+12,t+1)分布。In the same way, the forwarding probability of the second path R 2 at the next moment is
Figure BDA00032995886100001019
Obey the Beta(α 2,t+12,t+1 ) distribution.

同理可得,最后一条路径Rk的下一时刻路径的转发概率

Figure BDA00032995886100001020
服从Beta(αk,t+1k,t+1)分布。Similarly, the forwarding probability of the next path of the last path R k
Figure BDA00032995886100001020
Obey the Beta(α k,t+1k,t+1 ) distribution.

在本发明中,经Beta分布调整后的下一时刻路径的转发概率,记录入

Figure BDA00032995886100001021
中,达到更新路径转发概率的目的。In the present invention, the forwarding probability of the path at the next moment adjusted by the Beta distribution is recorded into
Figure BDA00032995886100001021
, to achieve the purpose of updating the path forwarding probability.

在本发明中,步骤一的转发路径选取是在传统汤普森采样算法上的改进,利用Beta分布的参数调整与路径回报值的大小相关,路径回报值达到设定的阈值时,路径回报值越大,αi的增加的幅度越大;路径回报值未达到设定的阈值时,路径回报值越小,βi的增加幅度越大。In the present invention, the forwarding path selection in step 1 is an improvement on the traditional Thompson sampling algorithm, and the parameter adjustment using the Beta distribution is related to the size of the path return value. When the path return value reaches the set threshold, the greater the path return value , the greater the increase of α i is; when the path return value does not reach the set threshold, the smaller the path return value, the greater the increase of β i .

步骤15,获得兴趣包的转发路径;Step 15, obtaining the forwarding path of the Interest packet;

从下一时刻-转发概率集

Figure BDA0003299588610000111
中选取出最大值的转发概率,记为
Figure BDA0003299588610000112
From Next Moment - Forwarding Probability Set
Figure BDA0003299588610000111
Select the forwarding probability of the maximum value in , denoted as
Figure BDA0003299588610000112

然后,将所述的

Figure BDA0003299588610000113
对应的路径作为兴趣包的转发路径HR。Then, the described
Figure BDA0003299588610000113
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表;Step 2, construct PR_FIB table;

对于内容中心网络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

Figure BDA0003299588610000121
Figure BDA0003299588610000121

表2 PR_FIB表的结构Table 2 Structure of PR_FIB table

Figure BDA0003299588610000122
Figure BDA0003299588610000122

在本发明中,转发节点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.

步骤三,兴趣包和数据包在转发节点上的转发机制;Step 3, the forwarding mechanism of the interest packet and the data packet on the forwarding node;

参见图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的数据包BBbAfter 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增加来源端口;同时丢弃所述的兴趣包AAaIf 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对应的转发端口生成转发概率,并选取出最大转发概率

Figure BDA0003299588610000131
对应的转发路径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
Figure BDA0003299588610000131
The corresponding forwarding path HR, and then use the forwarding path HR to forward the interest packet AA a ;

若PR_FIB表中无,则丢弃所述的兴趣包AAaIf 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的路径回报值

Figure BDA0003299588610000132
后,比较
Figure BDA0003299588610000133
与平均路径回报值
Figure BDA0003299588610000134
Figure BDA0003299588610000135
In the present invention, when the forwarding path HR receives the returned path return value at the current moment t
Figure BDA0003299588610000132
After, compare
Figure BDA0003299588610000133
vs mean path return value
Figure BDA0003299588610000134
and
Figure BDA0003299588610000135

Figure BDA0003299588610000136
大于等于
Figure BDA0003299588610000137
则调整αHR,t+1,且
Figure BDA0003299588610000138
like
Figure BDA0003299588610000136
greater or equal to
Figure BDA0003299588610000137
Then adjust α HR,t+1 , and
Figure BDA0003299588610000138

Figure BDA0003299588610000139
小于
Figure BDA00032995886100001310
则调整βHR,t+1,且
Figure BDA00032995886100001311
like
Figure BDA0003299588610000139
less than
Figure BDA00032995886100001310
Then adjust β HR,t+1 , and
Figure BDA00032995886100001311

Figure BDA00032995886100001312
表示转发路径HR的第1时刻的路径回报值。
Figure BDA00032995886100001312
Indicates the path reward value of the forwarding path HR at the first moment.

Figure BDA00032995886100001313
表示转发路径HR的第2时刻的路径回报值。
Figure BDA00032995886100001313
Indicates the path reward value of the forwarding path HR at the second moment.

Figure BDA00032995886100001314
表示转发路径HR的上一时刻的路径回报值。
Figure BDA00032995886100001314
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 time t+1.

β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 time t+1.

从整体CCN网络的转发阶段来看,转发阶段分为初始化阶段、探索阶段和利用阶段:From the forwarding stage of the overall CCN network, the forwarding stage is divided into initialization stage, exploration stage and utilization stage:

初始化阶段:转发节点收到第一个兴趣包AA1时,由于可选转发路径的转发概率

Figure BDA0003299588610000141
服从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
Figure BDA0003299588610000141
Obey the Beta(1,1) distribution, which is a uniform distribution, and the path selection is random at this time.

探索阶段:可被选择路径的转发概率

Figure BDA0003299588610000142
的分布曲线宽,集中度小,各路径的转发概率
Figure BDA0003299588610000143
不确定,此时转发概率
Figure BDA0003299588610000144
的Beta分布中心值低的路径仍有机会被选择。Exploration phase: the forwarding probability of the path that can be selected
Figure BDA0003299588610000142
The distribution curve is wide, the concentration is small, and the forwarding probability of each path
Figure BDA0003299588610000143
Uncertain, the forwarding probability at this time
Figure BDA0003299588610000144
The path with a low central value of the Beta distribution still has a chance to be selected.

利用阶段:可被选择路径的转发概率

Figure BDA0003299588610000145
的分布曲线窄,集中度高,各路径的转发概率相对确定,但若遇到路径Ri拥塞,导致时延
Figure BDA0003299588610000146
变长、丢包率
Figure BDA0003299588610000147
变大,本发明会根据回报值
Figure BDA0003299588610000148
对转发概率
Figure BDA0003299588610000149
的Beta分布做出调整。Exploitation stage: the forwarding probability of the path that can be selected
Figure BDA0003299588610000145
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
Figure BDA0003299588610000146
Variable length, packet loss rate
Figure BDA0003299588610000147
become larger, the invention will according to the return value
Figure BDA0003299588610000148
pair forwarding probability
Figure BDA0003299588610000149
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,即

Figure BDA00032995886100001410
Figure BDA00032995886100001411
Referring to the CCN network topology shown in Figure 3, the path between forwarding port 1 and producer 1 is marked as the first path R 1 in the figure, and the path between forwarding port 2 and producer 2 is marked as the second path The path R 2 , the path between the forwarding port 3 and the producer 3 is recorded as the third path R 3 . The data structure of the forwarding node is shown in Figure 4. The weight coefficient of transmission delay of the forwarding node ω rtt =0.6, the weight coefficient of packet loss rate ω drop =0.3, and the weight coefficient of bandwidth ω bw =0.1. The average path return values of the three paths on the forwarding node are all set to 0.5, namely
Figure BDA00032995886100001410
and
Figure BDA00032995886100001411

在实施例1中,定义转发节点需要转发的是第一个兴趣包AA1和第一个数据包BB1In Embodiment 1, it is defined that what the forwarding node needs to forward is the first Interest packet AA 1 and the first data packet BB 1 .

生产者1、生产者2和生产者3的CS中存在内容前缀为prefix_3的第一个数据包BB1,根据步骤二建立得到属于如图3所示结构的CCN网络拓扑的PR_FIB表结构。转发节点的数据结构如图4所示。当消费者请求对每秒250个内容前缀为prefix_3的第一个数据包BB1时,执行下列过程:Producer 1, Producer 2, and Producer 3 have the first data packet BB 1 with the content prefix prefix_3 in their CSs. According to Step 2, establish the PR_FIB table structure belonging to the CCN network topology shown in Figure 3. The data structure of the forwarding node is shown in Figure 4. When the consumer requests the first data packet BB 1 with content prefix prefix_3 at 250 per second, the following process is performed:

(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 source port 1 corresponding to the content prefix prefix_3, as shown in Figure 5 in the data structure.

(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 port 1, forwarding port 2 and forwarding port 3;

(5)转发节点根据步骤11,获取内容前缀为prefix_3的第一个兴趣包AA1的转发端口对应的转发路径集

Figure BDA0003299588610000151
(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
Figure BDA0003299588610000151

(6)转发节点根据步骤13和转发路径集

Figure BDA0003299588610000152
的初始Beta分布,计算得到转发概率;第一个兴趣包AA1是第一个达到的兴趣包,计算出转发概率为0.8、0.9、0.4并记录,如图6所示的数据结构中;(6) forwarding node according to step 13 and forwarding path set
Figure BDA0003299588610000152
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 port 2 according to step 15;

(8)当第一个兴趣包AA1到达生产者2时,生产者2的CS中存在内容前缀为prefix_3的第一个数据包BB1,根据步骤31将该第一个数据包BB1发给第一个兴趣包AA1的来源路径,即第二条路径R2(8) When the first interest packet AA 1 arrives at producer 2, there is a first data packet BB 1 with content prefix prefix_3 in the CS of producer 2, and the first data packet BB 1 is sent according to step 31 Give the source path of the first interest packet AA1, that is, the second path R 2 ;

(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 source port 1 of the record. So far, the request of the first data packet BB 1 whose content prefix is prefix_3 is completed.

参见图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)

1.一种基于汤普森采样的内容中心网络多路径选择方法,其特征在于包括有下列步骤:1. A content-centric network multi-path selection method based on Thompson sampling is characterized in that comprising the following steps: 步骤一,采用改进的汤普森采样获取转发路径;Step 1, using improved Thompson sampling to obtain forwarding paths; 步骤11,获取转发节点上的所有路径;Step 11, obtaining all paths on the forwarding node; 在转发节点node收到任意一兴趣包AAa后,能够确认的可供选择的路径就是转发节点-路径集
Figure FDA0003922312480000011
中的所有路径;
After the forwarding node node forwards any Interest packet AA a , the alternative path that can be confirmed is the forwarding node-path set
Figure FDA0003922312480000011
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:
Figure FDA0003922312480000012
Figure FDA0003922312480000012
ω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; 归一化的传输时延回报值
Figure FDA0003922312480000013
Normalized transmission delay return value
Figure FDA0003922312480000013
归一化的丢包率回报值
Figure FDA0003922312480000014
Normalized packet loss rate return value
Figure FDA0003922312480000014
归一化的带宽回报值
Figure FDA0003922312480000015
Normalized Bandwidth Return Value
Figure FDA0003922312480000015
步骤13,计算下一时刻的路径转发概率;Step 13, calculating the path forwarding probability at the next moment; 任意一条路径Ri的当前时刻t的路径回报值,记为
Figure FDA0003922312480000016
Figure FDA0003922312480000017
所述
Figure FDA0003922312480000021
的丢包率、传输时延和带宽可以看作是当前时刻t下的路径选择的状态因素,记为
Figure FDA0003922312480000022
Figure FDA0003922312480000023
The path reward value of any path R i at the current moment t, denoted as
Figure FDA0003922312480000016
and
Figure FDA0003922312480000017
said
Figure FDA0003922312480000021
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
Figure FDA0003922312480000022
and
Figure FDA0003922312480000023
Figure FDA0003922312480000024
表示路径Ri在当前时刻t的归一化的传输时延回报值;
Figure FDA0003922312480000024
Indicates the normalized transmission delay return value of the path R i at the current time t;
Figure FDA0003922312480000025
表示路径Ri在当前时刻t的归一化的丢包率回报值;
Figure FDA0003922312480000025
Indicates the normalized packet loss rate return value of the path R i at the current moment t;
Figure FDA0003922312480000026
表示路径Ri在当前时刻t的归一化的带宽回报值;
Figure FDA0003922312480000026
Indicates the normalized bandwidth return value of the path R i at the current moment t;
位于转发节点node上的任意一条路径Ri的路径转发概率为
Figure FDA0003922312480000027
Figure FDA0003922312480000028
当前时刻t的路径转发概率为
Figure FDA0003922312480000029
Figure FDA00039223124800000210
所述
Figure FDA00039223124800000211
服从Beta分布,转发节点node依赖得到的当前回报值
Figure FDA00039223124800000212
来调整Beta函数,从而调整下一时刻路径的转发概率
Figure FDA00039223124800000213
Figure FDA00039223124800000214
The path forwarding probability of any path R i located on the forwarding node node is
Figure FDA0003922312480000027
and
Figure FDA0003922312480000028
The path forwarding probability at the current moment t is
Figure FDA0003922312480000029
and
Figure FDA00039223124800000210
said
Figure FDA00039223124800000211
Obey the Beta distribution, and forward the current reward value obtained by the forwarding node node to rely on
Figure FDA00039223124800000212
To adjust the Beta function, thereby adjusting the forwarding probability of the path at the next moment
Figure FDA00039223124800000213
and
Figure FDA00039223124800000214
步骤14,基于Beta分布的转发概率调整;Step 14, adjusting the forwarding probability based on Beta distribution; 转发概率
Figure FDA00039223124800000215
服从Beta(αii)分布;αi表示路径Ri上的正向回报参数;βi表示路径Ri上的负向回报参数;
forwarding probability
Figure FDA00039223124800000215
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的下一时刻路径的转发概率
Figure FDA00039223124800000216
服从Beta(αi,t+1i,t+1)分布,初始化阶段,转发概率
Figure FDA00039223124800000217
服从均匀分布Beta(1,1),即αi,1=βi,1=1;
The forwarding probability of the path at the next moment for any path R i
Figure FDA00039223124800000216
Obey Beta(α i,t+1i,t+1 ) distribution, initialization stage, forwarding probability
Figure FDA00039223124800000217
Obey the uniform distribution Beta(1,1), that is, α i,1i,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 return parameter on the path R i at the initial moment; 当路径Ri收到返回的当前时刻t的路径回报值
Figure FDA00039223124800000218
后,比较
Figure FDA00039223124800000219
与平均路径回报值
Figure FDA00039223124800000220
Figure FDA00039223124800000221
When the path R i receives the returned path return value at the current time t
Figure FDA00039223124800000218
After, compare
Figure FDA00039223124800000219
vs mean path return value
Figure FDA00039223124800000220
and
Figure FDA00039223124800000221
Figure FDA00039223124800000222
大于等于
Figure FDA00039223124800000223
则调整αi,t+1,且
Figure FDA00039223124800000224
like
Figure FDA00039223124800000222
greater or equal to
Figure FDA00039223124800000223
Then adjust α i,t+1 , and
Figure FDA00039223124800000224
Figure FDA00039223124800000225
小于
Figure FDA00039223124800000226
则调整βi,t+1,且
Figure FDA00039223124800000227
like
Figure FDA00039223124800000225
less than
Figure FDA00039223124800000226
Then adjust β i,t+1 , and
Figure FDA00039223124800000227
G表示时刻点的总个数;G represents the total number of time points;
Figure FDA00039223124800000228
表示路径Ri的第1时刻的路径回报值;
Figure FDA00039223124800000228
Indicates the path return value of the path R i at the first moment;
Figure FDA00039223124800000229
表示路径Ri的第2时刻的路径回报值;
Figure FDA00039223124800000229
Indicates the path return value at the second moment of path R i ;
Figure FDA00039223124800000230
表示路径Ri的上一时刻的路径回报值;
Figure FDA00039223124800000230
Indicates the path return value of the path R i at the previous moment;
αi,t表示当前时刻t的路径Ri上的正向回报参数;α i,t represents the positive return parameter on the path R i at the current moment t; αi,t+1表示下一时刻t+1的路径Ri上的正向回报参数;α i,t+1 represents the positive return parameter on the path R i at the next moment t+1; βi,t表示当前时刻t的路径Ri上的负向回报参数;β i,t represents the negative return parameter on the path R i at the current moment t; βi,t+1表示下一时刻t+1的路径Ri上的负向回报参数;β i,t+1 represents the negative return parameter on the path R i at the next moment t+1; 步骤15,获得兴趣包的转发路径;Step 15, obtaining the forwarding path of the Interest packet; 从下一时刻-转发概率集
Figure FDA0003922312480000031
中选取出最大值的转发概率,记为
Figure FDA0003922312480000032
然后,将所述的
Figure FDA0003922312480000033
对应的路径作为兴趣包的转发路径HR;
From Next Moment - Forwarding Probability Set
Figure FDA0003922312480000031
Select the forwarding probability of the maximum value in , denoted as
Figure FDA0003922312480000032
Then, the described
Figure FDA0003922312480000033
The corresponding path is used as the forwarding path HR of the interest packet;
步骤二,构建PR_FIB表;Step 2, construct PR_FIB table; 改进的兴趣转发表,记为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; 步骤三,兴趣包和数据包在转发节点上的转发机制;Step 3, the forwarding mechanism of the interest packet and the data packet on the forwarding node; 从转发节点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的数据包BBbAfter 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增加来源端口;同时丢弃所述的兴趣包AAaIf 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对应的转发端口生成转发概率,并选取出最大转发概率
Figure FDA0003922312480000034
对应的转发路径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
Figure FDA0003922312480000034
The corresponding forwarding path HR, and then use the forwarding path HR to forward the interest packet AA a ;
若PR_FIB表中无,则丢弃所述的兴趣包AAaIf 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的路径回报值
Figure FDA0003922312480000041
后,比较
Figure FDA0003922312480000042
与平均路径回报值
Figure FDA0003922312480000043
Figure FDA0003922312480000044
When the forwarding path HR receives the returned path return value at the current time t
Figure FDA0003922312480000041
After, compare
Figure FDA0003922312480000042
vs mean path return value
Figure FDA0003922312480000043
and
Figure FDA0003922312480000044
Figure FDA0003922312480000045
大于等于
Figure FDA0003922312480000046
则调整αHR,t+1,且
Figure FDA0003922312480000047
like
Figure FDA0003922312480000045
greater or equal to
Figure FDA0003922312480000046
Then adjust α HR,t+1 , and
Figure FDA0003922312480000047
Figure FDA0003922312480000048
小于
Figure FDA0003922312480000049
则调整βHR,t+1,且
Figure FDA00039223124800000410
like
Figure FDA0003922312480000048
less than
Figure FDA0003922312480000049
Then adjust β HR,t+1 , and
Figure FDA00039223124800000410
Figure FDA00039223124800000411
表示转发路径HR的第1时刻的路径回报值;
Figure FDA00039223124800000411
Indicates the path return value of the forwarding path HR at the first moment;
Figure FDA00039223124800000412
表示转发路径HR的第2时刻的路径回报值;
Figure FDA00039223124800000412
Indicates the path return value at the second moment of the forwarding path HR;
Figure FDA00039223124800000413
表示转发路径HR的上一时刻的路径回报值;
Figure FDA00039223124800000413
Indicates the path return value of the forwarding path HR at the previous moment;
αHR,t表示当前时刻t的转发路径HR上的正向回报参数;α HR,t represents the positive return parameter on the forwarding path HR at the current moment t; αHR,t+1表示下一时刻t+1的转发路径HR上的正向回报参数;α HR,t+1 represents the positive return parameter on the forwarding path HR at the next moment t+1; βHR,t表示当前时刻t的转发路径HR上的负向回报参数;β HR,t represents the negative return parameter on the forwarding path HR at the current moment t; βHR,t+1表示下一时刻t+1的转发路径HR上的负向回报参数。β HR,t+1 represents the negative reward parameter on the forwarding path HR at the next time t+1.
2.根据权利要求1所述的基于汤普森采样的内容中心网络多路径选择方法,其特征在于:从整体CCN网络的转发阶段来看,转发阶段分为初始化阶段、探索阶段和利用阶段;2. the content-centric network multi-path selection method based on Thompson sampling according to claim 1 is characterized in that: from the forwarding stage of the overall CCN network, the forwarding stage is divided into initialization stage, exploration stage and utilization stage; 初始化阶段:转发节点收到第一个兴趣包AA1时,由于可选转发路径的转发概率
Figure FDA0003922312480000051
服从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
Figure FDA0003922312480000051
Obey the Beta(1,1) distribution, which is a uniform distribution, and the path selection is random at this time;
探索阶段:可被选择路径的转发概率
Figure FDA0003922312480000052
的分布曲线宽,集中度小,各路径的转发概率
Figure FDA0003922312480000053
不确定,此时转发概率
Figure FDA0003922312480000054
的Beta分布中心值低的路径仍有机会被选择;
Exploration phase: the forwarding probability of the path that can be selected
Figure FDA0003922312480000052
The distribution curve is wide, the concentration is small, and the forwarding probability of each path
Figure FDA0003922312480000053
Uncertain, the forwarding probability at this time
Figure FDA0003922312480000054
The path with a low central value of the Beta distribution still has a chance to be selected;
利用阶段:可被选择路径的转发概率
Figure FDA0003922312480000055
的分布曲线窄,集中度高,各路径的转发概率相对确定,但若遇到路径Ri拥塞,导致时延
Figure FDA0003922312480000056
变长、丢包率
Figure FDA0003922312480000057
变大,会根据回报值
Figure FDA0003922312480000058
对转发概率
Figure FDA0003922312480000059
的Beta分布做出调整。
Exploitation stage: the forwarding probability of the path that can be selected
Figure FDA0003922312480000055
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
Figure FDA0003922312480000056
Variable length, packet loss rate
Figure FDA0003922312480000057
become larger, according to the return value
Figure FDA0003922312480000058
pair forwarding probability
Figure FDA0003922312480000059
Adjusted for the Beta distribution.
CN202111186831.9A 2021-10-12 2021-10-12 Content center network multi-path selection method based on Topson sampling Active CN113938417B (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (3)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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