[go: up one dir, main page]

CN1710882A - Routing method of sectional interaction to goal node according to scale value based on optimized diameter network - Google Patents

Routing method of sectional interaction to goal node according to scale value based on optimized diameter network Download PDF

Info

Publication number
CN1710882A
CN1710882A CNA2005100120019A CN200510012001A CN1710882A CN 1710882 A CN1710882 A CN 1710882A CN A2005100120019 A CNA2005100120019 A CN A2005100120019A CN 200510012001 A CN200510012001 A CN 200510012001A CN 1710882 A CN1710882 A CN 1710882A
Authority
CN
China
Prior art keywords
node
sequence
network
packet
item
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.)
Granted
Application number
CNA2005100120019A
Other languages
Chinese (zh)
Other versions
CN100364296C (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.)
Tsinghua University
Original Assignee
Tsinghua 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 Tsinghua University filed Critical Tsinghua University
Priority to CNB2005100120019A priority Critical patent/CN100364296C/en
Publication of CN1710882A publication Critical patent/CN1710882A/en
Application granted granted Critical
Publication of CN100364296C publication Critical patent/CN100364296C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

基于优化直径网络的按度值对目的节点分段迭代的路由法属于互联网技术领域,其特征在于:使源节点按优化直径网络的迭代公式反复迭代[logdn]次,d为节点的度值,n为网络节点数,得到一个长度为dx的序列(x=[logdn]),再对该序列进行d等分,根据节点归属判定方法判断出目的节点所处位置,从而按节点路由决定下一步转发的节点号并把分组转发给该节点,收到该分组的节点再根据上次序列划分的结果按同样步骤迭代上述操作,并进行相应的分组转发,直到分组被最终转发到目的节点为止。本发明可以实现大规模P2P网络上任意节点之间基于低延时分组转发的快速通信。

Figure 200510012001

The routing method based on the degree value of the optimized diameter network to the segmented iteration of the destination node belongs to the Internet technology field, and is characterized in that: the source node is repeatedly iterated [log d n] times according to the iterative formula of the optimized diameter network, and d is the degree of the node value, n is the number of network nodes, and a sequence of length d x (x=[log d n]) is obtained, and then the sequence is divided into d equal parts, and the position of the destination node is judged according to the node attribution determination method, so as to press Node routing determines the node number to be forwarded in the next step and forwards the packet to the node. The node that receives the packet then iterates the above operations in the same steps according to the result of the previous sequence division, and performs corresponding packet forwarding until the packet is finally forwarded to the destination node. The invention can realize fast communication based on low-delay packet forwarding between arbitrary nodes on a large-scale P2P network.

Figure 200510012001

Description

基于优化直径网络的按度值对目的节点分段迭代的路由法A Routing Method Based on Optimal Diameter Networks to Segment and Iterate Destination Nodes According to Degree Values

技术领域technical field

本发明属于互联网技术领域。The invention belongs to the technical field of Internet.

背景技术Background technique

P2P网络的性能很大程度上取决于网络的最大传输时延和路由方法。分组是指具有一定格式的数据包;网络的最大传输时延是指从网络的任意两点之间发送分组到接收分组之间的最大时间差。基于以下原因我们认为最人传输时延的控制对于网络的拥塞控制以及网络的服务质量都十分重要:首先,某些应用会因端到端时延过大而不能很好地执行,甚至不能执行;其次,最大传输时延不确定的变化使得网络对很多交互式实时应用的支持变得很困难;最后,最大传输时延值越大传输层协议对于高带宽应用的支持就越困难。The performance of P2P network largely depends on the maximum transmission delay and routing method of the network. A packet refers to a data packet with a certain format; the maximum transmission delay of the network refers to the maximum time difference between sending a packet and receiving a packet between any two points on the network. Based on the following reasons, we believe that the control of the most human transmission delay is very important for the congestion control of the network and the quality of service of the network: First, some applications will not perform well due to the excessive end-to-end delay, or even cannot perform ; Secondly, the uncertain change of the maximum transmission delay makes it difficult for the network to support many interactive real-time applications; finally, the larger the maximum transmission delay value, the more difficult it is for the transport layer protocol to support high-bandwidth applications.

网络直径直接决定了网络的最大传输时延,路由机制则决定了分组的转发效率。一个性能良好的P2P网络应该具有相对较小的网络直径和高效的路由机制。目前已有一些比较好的方法(如:Chord,Pastry,Tapestry),但是,这些方法的共同弱点是网络直径不够小,分组转发效率较低,一台主机需要维护较多的其他主机信息。这就不适用于大规模网络环境中对于最大传输时延等指标要求较高的应用,比如,病毒预警、布丁数据分发、病毒特征码下载等应用。The network diameter directly determines the maximum transmission delay of the network, and the routing mechanism determines the packet forwarding efficiency. A well-performing P2P network should have a relatively small network diameter and an efficient routing mechanism. There are some better methods (such as Chord, Pastry, Tapestry) at present, but the common weakness of these methods is that the network diameter is not small enough, the packet forwarding efficiency is low, and one host needs to maintain more information about other hosts. This is not suitable for applications that require high indicators such as maximum transmission delay in a large-scale network environment, such as applications such as virus early warning, pudding data distribution, and virus signature download.

优化直径网络具有严格的拓扑结构,我们用图论的方法来描述该结构,首先需要定义一些用到的图论术语。有向图是指所有边都为有向边的图,用符号G=(V,E),V是点集,E是边集;如果点u和点v之间存在一条有向边(u,v),则点v和点u互称为邻居点;图G的阶定义为图G中点的个数;点v的入度是指图G中以点v作为终点的边的条数,记为dG -(v);点u的出度是指图G中以点u作为起点的边的条数,记为dG +(v);点的入度和出度通称为点的度;图G的直径定义为图G的两个顶点之间的最大距离,记为d(G);若图G的所有点的度都为d,则称图G为d正则图。我们下面提到的图均指有向图,把网络的拓扑图中的点称为节点。The optimal diameter network has a strict topological structure. We use graph theory to describe the structure. First, we need to define some graph theory terms used. A directed graph refers to a graph in which all edges are directed edges, using the symbol G=(V, E), V is a point set, and E is an edge set; if there is a directed edge between point u and point v (u , v), then point v and point u are called neighbor points; the order of graph G is defined as the number of points in graph G; the in-degree of point v refers to the number of edges in graph G that end at point v , denoted as d G - (v); the out-degree of point u refers to the number of edges starting from point u in graph G, denoted as d G + (v); the in-degree and out-degree of a point are commonly referred to as points degree; the diameter of a graph G is defined as the maximum distance between two vertices of the graph G, denoted as d(G); if the degree of all points of the graph G is d, the graph G is called a d-regular graph. The graphs we mention below all refer to directed graphs, and the points in the topology graph of the network are called nodes.

因为一条有向边可由它的两个邻居节点唯一确定,所以我们通过构造邻居节点的方法来构造有向图的边。设图G是一个阶为n度为d直径为k的有向正则图(n>0,d>1),记为G=(V,E),设图G的点集为:V={0,1,2,...,n-1},对于任意节点i∈V,我们定义如下公式:Because a directed edge can be uniquely determined by its two neighbor nodes, we construct the edge of the directed graph by constructing neighbor nodes. Let the graph G be a directed regular graph (n>0, d>1) with order n, degree d, and diameter k, denoted as G=(V, E), and the point set of graph G is: V={ 0, 1, 2, ..., n-1}, for any node i∈V, we define the following formula:

          d×i+s+t (modn)(1≤s≤d,t∈[0,n-1])    (1)以这个公式计算得到的数字作为节点i的邻居节点的节点号。这样构造出的总路由表具有模n周期回归的特点(见图1),并且其直径可以达到 (logd n向上取整),这一结构具有比上述其他结构都小的网络直径,并且非常接近理论最小值。d×i+s+t (modn)(1≤s≤d, t∈[0,n-1]) (1) The number calculated by this formula is used as the node number of the neighbor node of node i. The total routing table constructed in this way has the characteristics of modulo n periodic regression (see Figure 1), and its diameter can reach (log d n rounded up), this structure has a smaller network diameter than the other structures mentioned above and is very close to the theoretical minimum.

本发明基于上述优化直径网络拓扑结构设计出按度值对目的节点分段迭代的路由法,该方法通过对目的节点进行分段迭代归类,在每一次数据转发时都能使数据沿着趋向于目的节点的正确方向进行转发,从而保证了数据在经过最多

Figure A20051001200100042
次转发后到达目的节点。按度值对目的节点分段迭代的路由法在具有较小直径的同时还具有较小的计算开销,其计算复杂度为
Figure A20051001200100043
(见图5),该方法可以满足大规模网络中许多对于传输时延要求苛刻的应用。Based on the above-mentioned optimized diameter network topology, the present invention designs a routing method for segmenting and iterating the destination node according to the degree value. The method can make the data along the forwarding in the correct direction of the destination node, thus ensuring that the data passes through the most
Figure A20051001200100042
After forwarding, it reaches the destination node. The routing method that iterates the destination node segment by degree value has a smaller diameter and a smaller computational overhead, and its computational complexity is
Figure A20051001200100043
(See FIG. 5 ), this method can satisfy many applications with strict requirements on transmission delay in large-scale networks.

发明内容Contents of the invention

本发明的目的在于克服已有方法普遍较低的数据转发效率问题,提供一种新的在大规模P2P网络上进行快速数据传输的启发式路由机制。The purpose of the present invention is to overcome the generally low data forwarding efficiency problem of existing methods, and provide a new heuristic routing mechanism for fast data transmission on a large-scale P2P network.

本发明解决其技术问题所采用的技术方案是:源节点反复迭代公式(1)

Figure A20051001200100044
次,得到一个长度为dx的序列(令 ),再对该序列进行d等分,然后根据节点归属判定方法判断出目的节点所处位置,从而决定下一步转发的节点号并将分组转发给该节点,收到该分组的节点再根据上次序列划分的结果迭代上述操作,并进行相应的分组转发,直到分组被最终转发到目的节点为止。The technical solution adopted by the present invention to solve its technical problems is: source node iterative formula (1)
Figure A20051001200100044
times to get a sequence of length d x (let ), and then divide the sequence by d, and then judge the location of the destination node according to the node attribution determination method, so as to determine the node number to be forwarded in the next step and forward the packet to the node. The result of sequence division iterates the above operations and performs corresponding packet forwarding until the packet is finally forwarded to the destination node.

本发明的特征在于:The present invention is characterized in that:

所述方法是在任意规模的对等网络上依次按以下步骤实现的:The method is implemented in the following steps on a peer-to-peer network of any scale:

步骤1:设:n为所述对等网络的节点数,w0为源节点的节点号,j为目的节点的节点号,P为转发分组,d为节点的度,从源节点w0开始,对下列的计算结果模n后,得wk+1的值:wk+1=d×wk+s+t,再反复按所述公式迭代x次,x为优化直径网络的直径,

Figure A20051001200100046
符号表示向上取整,求出wx,其中,s=1,t∈[0,...n-1]任取;Step 1: Set: n is the number of nodes in the peer-to-peer network, w 0 is the node number of the source node, j is the node number of the destination node, P is the forwarding packet, d is the degree of the node, starting from the source node w 0 , after the modulo n of the following calculation results, the value of w k+1 is obtained: w k+1 =d×w k +s+t, and then iterate x times according to the formula repeatedly, x is the diameter of the optimized diameter network,
Figure A20051001200100046
symbol Indicates rounding up to obtain w x , where s=1, t∈[0,...n-1] is optional;

步骤2:以首项wx开始,相邻两数差值为+1地顺序写出下一项,并判断该下一项的值是否等于n-1,当该项的值等于n-1时再下一项的值变为0,然后再继续顺序按照步骤2所述的方法写出下一项并进行同样的判断,直到写完dx项为止,得到数列a;Step 2: Start with the first item w x , write the next item in sequence with the difference between two adjacent numbers being +1, and judge whether the value of the next item is equal to n-1, when the value of the item is equal to n-1 When the value of the next item becomes 0, then continue to write the next item according to the method described in step 2 and make the same judgment until the d x item is written, and the sequence a is obtained;

步骤3:用源节点的节点号w0对数列a进行d等分,得到d个子列记为:a1,a2,...ad,并把源节点w0的d个邻居节点依节点号从小到大记为:v1,v2,...vdStep 3: Use the node number w 0 of the source node to divide the array a by d, and obtain d sub-sequences as: a 1 , a 2 ,...a d , and divide the d neighbor nodes of the source node w 0 according to Node numbers from small to large are recorded as: v 1 , v 2 , ... v d ;

步骤4:用下述节点归属判定方法判断出目的节点的序号j所处的区间:Step 4: Use the following node ownership determination method to determine the interval where the sequence number j of the destination node is located:

设:子列ai的首项是p(1≤i≤d),ai的末项是q,当前待分割子列的长度为h,d为节点的度,n为节点数,第k次d分操作时h等于dx-k则: q = p + ( h d - 1 ) ; Suppose: the first item of the sub-column a i is p (1≤i≤d), the last item of a i is q, the length of the current sub-column to be divided is h, d is the degree of the node, n is the number of nodes, the kth h is equal to d xk during the d-time operation, but: q = p + ( h d - 1 ) ;

当p>g时,若j≥p或j≤q,则j∈aiWhen p>g, if j≥p or j≤q, then j∈a i ;

当p<q时,若p≤j≤q,则j∈aiWhen p<q, if p≤j≤q, then j∈a i ;

步骤5:若目的节点序列号j属于子列ai,则源节点w0把分组P和数列ai转发给下标i相对应的那个邻居节点vi:若目的节点序列号j在多个子列中都有出现,则从中任选一个子列ak,1<k<d,并把分组P和数列ak转发给下标k相对应的那个邻居节点vkStep 5: If the sequence number j of the destination node belongs to the sub-sequence a i , then the source node w 0 forwards the packet P and the sequence a i to the neighbor node v i corresponding to the subscript i: if the sequence number j of the destination node is in multiple sub-sequences all appear in the column, choose a sub-column a k from it, 1<k<d, and forward the packet P and the sequence a k to the neighbor node v k corresponding to the subscript k ;

步骤6:收到步骤5所述的分组的节点再根据步骤3划分的结果,对收到的序号为j的目的节点所属的数列按步骤3-步骤5进行同样的操作,直到收到分组P的节点就是目的节点j为止。Step 6: The node that received the grouping described in step 5 then performs the same operation on the sequence of the destination node with the received sequence number j according to step 3-step 5 according to the division result of step 3 until the group P is received The node of is the destination node j.

本发明所提出的基于优化直径网络的按度值对目的节点分段迭代的路由法,解决了已有方法由于网络直径限制所带来的分组转发效率低的问题,并且可以满足大量具有低时延转发需求的应用,提供了一种新的在P2P网络上以接近理论最小值进行低时延分组转发的技术方法,可以实现大规模P2P网络上任意节点之间的快速通信,图5中列出了本路由方法与几种经典路由方法Chord、Pastry和CAN的性能比较,Chord方法实现了

Figure A20051001200100053
的网络直径和复杂度,Pastry方法实现了logb n的网络直径,CAN构造的网络直径可以达到1/2dn1/d,而本路由方法的网络直径和计算复杂度均仅为 这要小于其他几种方法,从而解决了传统方法中数据转发效率低的问题。目前清华大学已经将该项研究成果运用在“P2P蠕虫防御系统”中,是该系统的重要组成部分。The routing method proposed by the present invention based on the optimized diameter network based on the segmented iteration of the destination node according to the degree value solves the problem of low packet forwarding efficiency caused by the limitation of the network diameter in the existing method, and can satisfy a large number of users with low time requirements. The application of delayed forwarding requirements provides a new technical method for low-latency packet forwarding on the P2P network that is close to the theoretical minimum value, and can realize fast communication between any nodes on a large-scale P2P network, as shown in Figure 5 Out of the performance comparison between this routing method and several classic routing methods Chord, Pastry and CAN, the Chord method achieves
Figure A20051001200100053
The network diameter and complexity of the network, the Pastry method realizes the network diameter of log b n, the network diameter of the CAN structure can reach 1/2dn 1/d , and the network diameter and computational complexity of the routing method are only This is smaller than several other methods, thereby solving the problem of low data forwarding efficiency in traditional methods. At present, Tsinghua University has applied this research achievement in the "P2P Worm Defense System", which is an important part of the system.

附图说明Description of drawings

图1.优化直径网络原理示意图:a.优化直径网络的邻居表;b.节点4、13的路由树;Figure 1. Schematic diagram of the principle of optimizing the Diameter network: a. The neighbor table of the Optimizing Diameter network; b. The routing tree of nodes 4 and 13;

图2.基于优化直径网络的按度值对目的节点分段迭代的路由法流程图;Fig. 2. The flow chart of the routing method based on the degree value of the optimized diameter network for the segmented iteration of the destination node;

图3.基于优化直径网络的按度值对目的节点分段迭代的路由法应用示例图;Figure 3. An example diagram of the application of the routing method based on the degree value of the optimized diameter network for the segmented iteration of the destination node;

图4.按度值对目的节点分段迭代的路由法在“P2P蠕虫防御系统”中的具体实施方法示例图:d=2,s=1,t=2,n=14,w0=4,j=5:Fig. 4. An example diagram of the specific implementation method of the routing method for destination node segmentation iteration in the "P2P worm defense system" according to the degree value: d=2, s=1, t=2, n=14, w 0 =4 , j=5:

图5.不同方法的比较示意图。Figure 5. Schematic comparison of different methods.

具体实施方式Detailed ways

步骤1.记:源节点的节点号为w0,目的节点的节点号为j,转发分组为P,节点的度为d,令公式(1)中的i为wk,根据公式(1)我们可得公式(2):Step 1. Note: the node number of the source node is w 0 , the node number of the destination node is j, the forwarding packet is P, the degree of the node is d, let i in the formula (1) be w k , according to the formula (1) We can get formula (2):

        wk+1=d×wk+s+t  (mod n)(s=1,t∈[0,n-1])    (2)w k+1 =d×w k +s+t (mod n)(s=1, t∈[0,n-1]) (2)

从源节点w0开始,反复迭代计算该公式x次( ),求出wxStarting from the source node w 0 , iteratively calculate the formula x times ( ), find out w x ;

步骤2.以wx作为数列的首项,写出长度为dx,相邻两项差值为1的等差数列,并对每一项模n,最后我们得到数列a。Step 2. Take w x as the first item of the sequence, write the arithmetic sequence whose length is d x and the difference between two adjacent items is 1, and modulo n for each item, finally we get the sequence a.

实际上,这一步也可以如下操作:从首项wx开始,相邻两数差值为1地顺序写出数列的每一项,并判断该项是否等于n-1,当它等于n-1时下一个元素变为0,然后继续顺序写出下一项并进行同样的判断,直到写完dx个元素为止;In fact, this step can also be operated as follows: starting from the first item w x , write each item of the sequence sequentially with the difference between two adjacent numbers being 1, and judge whether the item is equal to n-1, when it is equal to n- When 1, the next element becomes 0, and then continue to write the next item in sequence and make the same judgment until d x elements are written;

步骤3.节点w0对数列a进行d等分,(因为a的长度是dx,所以d等分操作总可以进行,分出的每一个子列长度为dx-1),将数列a进行d等分后得到的d个子列记为:al、a2、...ad;并将w0的d个邻居节点依节点号从小到大记为:v1、v2、...vdStep 3. The node w 0 divides the array a by d (because the length of a is d x , so the d equal division operation can always be performed, and the length of each divided sub-column is d x-1 ), divide the array a The d sub-columns obtained after d equal division are recorded as: a l , a 2 , ... a d ; and the d neighbor nodes of w 0 are recorded as: v 1 , v 2 , . ..v d ;

步骤4.用步骤6中节点归属判定方法判断出数字j所处的区间,如果j属于子列ai(1≤i≤d),则节点w0将分组P和数列ai转发给下标相对应的那个邻居节点vi;如果数字j在多个子列中都有出现,则从中任选一个子列ak(1≤k≤d),并将分组P和数列ak转发给下标相对应的那个邻居节点vkStep 4. Use the node belonging determination method in step 6 to determine the interval where the number j is located. If j belongs to the sub-sequence a i (1≤i≤d), then the node w 0 forwards the packet P and the sequence ai to the subscript phase The corresponding neighbor node v i ; if the number j appears in multiple sub-columns, choose a sub-column a k (1≤k≤d) from it, and forward the packet P and the sequence a k to the subscript relative The corresponding neighbor node v k ;

步骤5.收到分组P的节点再根据上次划分的结果,对收到的目的节点j所属的数列进行步骤3和步骤4中同样的操作,反复迭代上述操作,直到收到分组P的节点就是目的节点j为止;Step 5. The node that received the packet P performs the same operations in steps 3 and 4 on the sequence that the received destination node j belongs to according to the result of the last division, and iterates the above operations repeatedly until the node that receives the packet P is the destination node j;

步骤6.节点归属判定方法:设子列ai的首项是p,ai的末项是q,h是当前待分割子列的长度,d为节点的度,n为节点数,在第k次d分操作时h等于dx-k(其中

Figure A20051001200100062
),则:q=p+(h/d-1),那么:Step 6. Node ownership determination method: set the first item of the sub-column a i to be p, the last item of a i is q, h is the length of the sub-column to be divided, d is the degree of the node, and n is the number of nodes. h is equal to d xk (wherein
Figure A20051001200100062
), then: q=p+(h/d-1), then:

(1)当p>q时:若j≥p或j≤q,则j∈ai (1) When p>q: if j≥p or j≤q, then j∈a i

(2)当P<q时:若p≤j≤q,则j∈ai (2) When P<q: if p≤j≤q, then j∈a i

也就是说,目的节点j在上述两种情形时属于子列ai(1≤i≤d)。That is to say, the destination node j belongs to the sub-column a i (1≤i≤d) in the above two cases.

本路由方法所适用的硬件平台为任意规模的对等网络,图2为按度值对目的节点分段迭代的路由法的程序流程图,图4为按度值对目的节点分段迭代的路由法在“P2P蠕虫防御系统”中的具体实施示例,我们以d=3,1≤s≤d,t=6,n=27为参数,用周期回归法构造出网络拓扑,其直径为3(见图3)。假设“P2P蠕虫防御系统”中的节点8要给节点17发送分组P,The hardware platform applicable to this routing method is a peer-to-peer network of any scale. Fig. 2 is a program flow chart of the routing method for the segmented iteration of the destination node according to the degree value, and Fig. 4 is a route for the segmented iteration of the destination node according to the degree value The specific implementation example of the method in "P2P worm defense system", we use d=3, 1≤s≤d, t=6, n=27 as parameters, construct a network topology with the periodic regression method, and its diameter is 3( See Figure 3). Assuming that node 8 in the "P2P worm defense system" wants to send packet P to node 17,

按如下步骤进行路由:Routing is performed as follows:

(1)以节点8为起点迭代计算公式(2)(d=3,t=6,n=27,w0=8),共迭代3次,求出w3等于10;(1) Take node 8 as the starting point to iteratively calculate the formula (2) (d=3, t=6, n=27, w 0 =8), iterate 3 times in total, and find that w 3 is equal to 10;

(2)以10为首项,写出长度为27,相邻两项差值为1的等差数列,并对每一项模27,我们得到数列a:(2) With 10 as the first item, write an arithmetic sequence with a length of 27 and a difference of 1 between two adjacent items, and modulo 27 for each item, we get the sequence a:

a:10    11    12    13    14    15    16    17    18    19    20    21    22    23    24    25    26    0    1    2    34    5    6    7    8    9;a: 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 0 1 2 7 6 34;

(3)节点8对数列a进行3等分,得到如下3个子列:(3) Node 8 divides sequence a into three equal parts, and obtains the following three sub-sequences:

a1:10    11    12    13    14    15    16    17    18a 1 : 10 11 12 13 14 15 16 17 18

a2:19    20    21    22    23    24    25    26    0 a2 : 19 20 21 22 23 24 25 26 0

a3: 1    2     3     4     5     6     7     8     9a 3 : 1 2 3 4 5 6 7 8 9

节点8的3个邻居节点是:4,5,6,分别记为v1,v2,v3The three neighbor nodes of node 8 are: 4, 5, 6, which are recorded as v 1 , v 2 , v 3 respectively;

(4)节点8判断出目的节点17属于子列a1,据此,节点8将分组P和子列a1一起发送给其邻居节点v1,即节点4;(4) Node 8 judges that destination node 17 belongs to sub-column a 1 , and accordingly, node 8 sends packet P and sub-column a 1 to its neighbor node v 1 , namely node 4;

(5)节点4收到分组P和数列a1后,令a=a1,再对数列a进行3等分,得到如下3个子列:(5) After node 4 receives the packet P and the sequence a 1 , set a=a 1 , and then divide the sequence a into 3 equal parts to obtain the following 3 sub-sequences:

a1:10    11    12a 1 : 10 11 12

a2:13    14    15a 2 : 13 14 15

a3:16    17    18a 3 : 16 17 18

节点4的3个邻居节点是:19,20,21,分别记为v1,v2,v3The three neighbor nodes of node 4 are: 19, 20, 21, which are recorded as v 1 , v 2 , v 3 respectively;

(6)节点4判断出目的节点17属于子列a3,据此,节点4将分组P和子列a3一起发送给其邻居节点v3,即节点21;(6) Node 4 judges that destination node 17 belongs to sub-column a 3 , accordingly, node 4 sends packet P and sub-column a 3 to its neighbor node v 3 , namely node 21;

(7)节点21收到分组P和子列a3后,令a=a3,再对数列a进行3等分,得到3个子列:(7) After node 21 receives the packet P and the sub-sequence a 3 , set a=a 3 , and then divide the sequence a into 3 equal parts to obtain 3 sub-sequences:

a1:16a 1 : 16

a2:17 a2 :17

a3:18a 3 : 18

节点21的3个邻居节点是:16,17,18,分别记为v1,v2,v3The three neighbor nodes of node 21 are: 16, 17, 18, which are recorded as v 1 , v 2 , v 3 respectively;

(8)节点21判断出目的节点17属于子列a2,据此,节点21将分组P发送给其邻居节点v2,即节点17,这就是目的节点。(8) The node 21 judges that the destination node 17 belongs to the sub-column a 2 . Based on this, the node 21 sends the packet P to its neighbor node v 2 , namely the node 17, which is the destination node.

至此,路由过程结束。整个转发路径就是:8→4→21→17。So far, the routing process ends. The entire forwarding path is: 8→4→21→17.

由此可见,本发明达到了预期目的。It can be seen that the present invention has achieved the intended purpose.

Claims (1)

1.基于优化直径网络的按度值对目的节点分段迭代的路由法,其特征在于,所述方法是在任意规模的对等网络上依次按以下步骤实现的:1. based on the routing method of optimizing diameter network by degree value to destination node subsection iteration, it is characterized in that, described method is realized by following steps successively on the peer-to-peer network of arbitrary scale: 步骤1:设:n为所述对等网络的节点数,w0为源节点的节点号,j为目的节点的节点号,P为转发分组,d为节点的度,从源节点w0开始,对下列的计算结果模n后,得wk+1的值:wk+1=d×wk+s+t,再反复按所述公式迭代x次,x为优化直径网络的直径, 符号
Figure A2005100120010002C2
表示向上取整,求出wx,其中,s=1,t∈[0,...n-1]任取;
Step 1: Set: n is the number of nodes in the peer-to-peer network, w 0 is the node number of the source node, j is the node number of the destination node, P is the forwarding packet, d is the degree of the node, starting from the source node w 0 , after the modulo n of the following calculation results, the value of w k+1 is obtained: w k+1 =d×w k +s+t, and then iterate x times according to the formula repeatedly, x is the diameter of the optimized diameter network, symbol
Figure A2005100120010002C2
Indicates rounding up to obtain w x , where s=1, t∈[0,...n-1] is optional;
步骤2:以首项wx开始,相邻两数差值为+1地顺序写出下一项,并判断该下一项的值是否等于n-1,当该项的值等于n-1时再下一项的值变为0,然后再继续顺序按照步骤2所述的方法写出下一项并进行同样的判断,直到写完dx项为止,得到数列a;Step 2: Start with the first item w x , write the next item in sequence with the difference between two adjacent numbers being +1, and judge whether the value of the next item is equal to n-1, when the value of the item is equal to n-1 When the value of the next item becomes 0, then continue to write the next item according to the method described in step 2 and make the same judgment until the d x item is written, and the sequence a is obtained; 步骤3:用源节点的节点号w0对数列a进行d等分,得到d个子列记为:a1,a2,...ad,并把源节点w0的d个邻居节点依节点号从小到大记为:v1,v2,...vdStep 3: Use the node number w 0 of the source node to divide the array a by d, and obtain d sub-sequences as: a 1 , a 2 ,...a d , and divide the d neighbor nodes of the source node w 0 according to Node numbers from small to large are recorded as: v 1 , v 2 , ... v d ; 步骤4:用下述节点归属判定方法判断出目的节点的序号j所处的区间:Step 4: Use the following node ownership determination method to determine the interval where the sequence number j of the destination node is located: 设:子列ai的首项是p(1≤i≤d),ai的末项是q,当前待分割子列的长度为h,d为节点的度,n为节点数,第k次d分操作时h等于dx-k则: q = p + ( h d - 1 ) ; Suppose: the first item of the sub-column a i is p (1≤i≤d), the last item of a i is q, the length of the current sub-column to be divided is h, d is the degree of the node, n is the number of nodes, the kth h is equal to d xk during the d-time operation, but: q = p + ( h d - 1 ) ; 当p>q时,若j≥p或j≤q,则j∈aiWhen p>q, if j≥p or j≤q, then j∈a i ; 当p<q时,若p≤j≤q,则j∈aiWhen p<q, if p≤j≤q, then j∈a i ; 步骤5:若目的节点序列号j属于子列ai,则源节点w0把分组P和数列ai转发给下标i相对应的那个邻居节点vi;若目的节点序列号j在多个子列中都有出现,则从中任选一个子列ak,1≤k≤d,并把分组P和数列ak转发给下标k相对应的那个邻居节点vkStep 5: If the sequence number j of the destination node belongs to the sub-sequence a i , then the source node w 0 forwards the packet P and the sequence a i to the neighbor node v i corresponding to the subscript i; all appear in the column, choose a sub-column a k from it, 1≤k≤d, and forward the packet P and the sequence a k to the neighbor node v k corresponding to the subscript k; 步骤6:收到步骤5所述的分组的节点再根据步骤3划分的结果,对收到的序号为j的目的节点所属的数列按步骤3-步骤5进行同样的操作,直到收到分组P的节点就是目的节点j为止。Step 6: The node that received the grouping described in step 5 then performs the same operation on the sequence of the destination node with the received sequence number j according to step 3-step 5 according to the division result of step 3 until the group P is received The node of is the destination node j.
CNB2005100120019A 2005-06-24 2005-06-24 A Routing Method Based on Optimal Diameter Networks to Segment and Iterate Destination Nodes According to Degree Values Expired - Fee Related CN100364296C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100120019A CN100364296C (en) 2005-06-24 2005-06-24 A Routing Method Based on Optimal Diameter Networks to Segment and Iterate Destination Nodes According to Degree Values

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100120019A CN100364296C (en) 2005-06-24 2005-06-24 A Routing Method Based on Optimal Diameter Networks to Segment and Iterate Destination Nodes According to Degree Values

Publications (2)

Publication Number Publication Date
CN1710882A true CN1710882A (en) 2005-12-21
CN100364296C CN100364296C (en) 2008-01-23

Family

ID=35707063

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100120019A Expired - Fee Related CN100364296C (en) 2005-06-24 2005-06-24 A Routing Method Based on Optimal Diameter Networks to Segment and Iterate Destination Nodes According to Degree Values

Country Status (1)

Country Link
CN (1) CN100364296C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008098448A1 (en) * 2007-02-14 2008-08-21 Huawei Technologies Co., Ltd. Method, apparatus and system for diagnosing route in the network based on diameter protocol
CN101938425A (en) * 2010-09-19 2011-01-05 周维 Method for delaying dynamic optimization in structuralized P2P system
CN101924678B (en) * 2009-06-09 2012-09-05 华为技术有限公司 Flow localizing method and device in P2P (Point-to-Point) direct broadcasting system
US8910252B2 (en) 2009-04-14 2014-12-09 Huwei Technologies Co., Ltd. Peer enrollment method, route updating method, communication system, and relevant devices

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7158486B2 (en) * 2001-03-12 2007-01-02 Opcoast Llc Method and system for fast computation of routes under multiple network states with communication continuation
CN1281027C (en) * 2003-12-04 2006-10-18 上海交通大学 Collaborative filtering recommendation approach for dealing with ultra-mass users
CN1299478C (en) * 2004-03-26 2007-02-07 清华大学 Route searching of detgredd of node based on radio self-organizing network and maitenance method thereof

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008098448A1 (en) * 2007-02-14 2008-08-21 Huawei Technologies Co., Ltd. Method, apparatus and system for diagnosing route in the network based on diameter protocol
US7894353B2 (en) 2007-02-14 2011-02-22 Huawei Technologies Co., Ltd. Method, apparatus, and system for diagnosing route in network based on diameter protocol
CN101247321B (en) * 2007-02-14 2012-07-04 华为技术有限公司 Method, device and system for routing diagnosis in network based on diameter protocol
US8910252B2 (en) 2009-04-14 2014-12-09 Huwei Technologies Co., Ltd. Peer enrollment method, route updating method, communication system, and relevant devices
US9819688B2 (en) 2009-04-14 2017-11-14 Huawei Technologies Co., Ltd. Peer enrollment method, route updating method, communication system, and relevant devices
US10616243B2 (en) 2009-04-14 2020-04-07 Huawei Technologies Co., Ltd. Route updating method, communication system, and relevant devices
CN101924678B (en) * 2009-06-09 2012-09-05 华为技术有限公司 Flow localizing method and device in P2P (Point-to-Point) direct broadcasting system
CN101938425A (en) * 2010-09-19 2011-01-05 周维 Method for delaying dynamic optimization in structuralized P2P system

Also Published As

Publication number Publication date
CN100364296C (en) 2008-01-23

Similar Documents

Publication Publication Date Title
Maymounkov et al. Methods for efficient network coding
Loo et al. Declarative networking: language, execution and optimization
US20110185077A1 (en) Multi-pattern matching in compressed communication traffic
CN1674532A (en) Estimating and managing network traffic
KR20170031618A (en) Network named fragments in a content centric network
CN107565973B (en) Method for realizing node-extensible Huffman coding and circuit structure
CN110719106A (en) A social network graph compression method and system based on node classification and sorting
CN1469260A (en) Path calculation device with switchable routing criteria
CN1543150A (en) Grouping classifiers and methods using field-level tries
WO2009132556A1 (en) A data searching method and apparatus
CN101588618A (en) Method and communication system for selecting network path
CN118410881A (en) Quantum circuit optimization method for QAOA
CN101430741A (en) Short sequence mapping method and system
CN109656898B (en) Distributed large-scale complex community detection method and device based on node degree
CN108833052A (en) Channel Polar Decoding Path Metric Ranking Method
CN117875404A (en) Federal graph learning method based on network topology and graph neighbor sampling joint optimization
CN1710882A (en) Routing method of sectional interaction to goal node according to scale value based on optimized diameter network
CN1633111A (en) High-speed Network Traffic Classification Method
CN1191520C (en) TCAM high speed updating method supporting route compress
CN102427420B (en) Virtual network mapping method and device based on graph pattern matching
CN1688140A (en) High-speed multi-dimension message classifying algorithm design and realizing based on network processor
CN1889520A (en) Route information update method and network equipment based on OSPF
JP6085577B2 (en) Retrieval tree generation / retrieval apparatus, method, and program
CN1306737C (en) Method and apparatus for obtaining constrained path of loose routing in intelligent optical network
CN100352233C (en) Route list organizing and searching method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20080123

Termination date: 20110624