[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN105791408A - A method and system for constructing a P2P network - Google Patents

A method and system for constructing a P2P network Download PDF

Info

Publication number
CN105791408A
CN105791408A CN201610184905.8A CN201610184905A CN105791408A CN 105791408 A CN105791408 A CN 105791408A CN 201610184905 A CN201610184905 A CN 201610184905A CN 105791408 A CN105791408 A CN 105791408A
Authority
CN
China
Prior art keywords
network node
node
network
loop
directed edge
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
CN201610184905.8A
Other languages
Chinese (zh)
Other versions
CN105791408B (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.)
Institute of Information Engineering of CAS
Original Assignee
Institute of Information Engineering of CAS
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 Institute of Information Engineering of CAS filed Critical Institute of Information Engineering of CAS
Priority to CN201610184905.8A priority Critical patent/CN105791408B/en
Publication of CN105791408A publication Critical patent/CN105791408A/en
Application granted granted Critical
Publication of CN105791408B publication Critical patent/CN105791408B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/104Peer-to-peer [P2P] networks
    • H04L67/1042Peer-to-peer [P2P] networks using topology management mechanisms

Landscapes

  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本发明公开了一种P2P网络的构建方法及系统。该方法包括:对所有的网络节点进行编号;构建一条经过所有网络节点的回路,且回路中相连的两个网络节点位于不同的域;遍历所有的网络节点,并随机选择目标网络节点:若当前遍历的网络节点与目标网络节点位于不同的域,则在当前网络节点与目标网络节点之间添加一条有向边。通过本发明构建的P2P网络具有较强的连通性、跨区域特性以及鲁棒性。

The invention discloses a construction method and system of a P2P network. The method includes: numbering all network nodes; constructing a loop passing through all network nodes, and the two network nodes connected in the loop are located in different domains; traversing all network nodes, and randomly selecting a target network node: if the current If the traversed network node and the target network node are in different domains, a directed edge is added between the current network node and the target network node. The P2P network constructed by the invention has strong connectivity, cross-region characteristics and robustness.

Description

一种P2P网络的构建方法及系统A method and system for constructing a P2P network

技术领域technical field

本发明涉及网络技术领域,特别涉及一种P2P网络的构建方法及系统。The invention relates to the field of network technology, in particular to a method and system for constructing a P2P network.

背景技术Background technique

P2P(peer-to-peer,对等)网络因其鲁棒性强的优势而被通信系统广泛采用。然而,从追踪的角度出发,现有P2P网络存在如下缺陷:P2P (peer-to-peer, peer-to-peer) network is widely used in communication systems because of its strong robustness. However, from the perspective of tracking, the existing P2P network has the following defects:

首先通信具有局域性:通信倾向于发生在同一域内的节点之间,一旦某次通信的源节点暴露,第三方能轻易地追踪到对应的目的节点。本文“域”是指划分互联网的逻辑单位,可以是地域(国家/省份/城市/…)、自治域、因特网服务提供商等。每个域具有独立的互联网监管权,对多个域进行监控,需要域间协作。其次通信源易暴露:节点利用真实的身份进行通信,一旦某次通信的目的节点暴露,则对应的源节点随之暴露。First of all, communication is local: communication tends to occur between nodes in the same domain. Once the source node of a certain communication is exposed, a third party can easily track the corresponding destination node. In this paper, "domain" refers to a logical unit for dividing the Internet, which may be a region (country/province/city/...), autonomous domain, Internet service provider, etc. Each domain has independent Internet supervision rights, and monitoring multiple domains requires inter-domain cooperation. Secondly, the source of communication is easily exposed: nodes use their real identities to communicate, and once the destination node of a certain communication is exposed, the corresponding source node will also be exposed.

由于P2P网络复杂的通信机制往往导致网络内部存在大量频繁的通信,因此,上述缺陷很可能导致现有P2P网络在每个域内的通信子图的P2P拓扑特征被暴露。而目前尚缺乏能够有效抗追踪的P2P网络,因此,如何保证P2P网络具备强抗追踪性是目前网络技术领域亟待解决的一个技术问题。Since the complex communication mechanism of the P2P network often leads to a large number of frequent communications within the network, the above-mentioned defects are likely to expose the P2P topology characteristics of the communication subgraph in each domain of the existing P2P network. At present, there is still a lack of P2P networks that can effectively resist tracking. Therefore, how to ensure that P2P networks have strong anti-tracking properties is a technical problem that needs to be solved urgently in the field of network technology.

发明内容Contents of the invention

为了解决现有技术中P2P网络抗追踪能力较差的问题,本发明提出了一种新型的P2P网络的构建方法及系统。In order to solve the problem of poor anti-tracking capability of the P2P network in the prior art, the present invention proposes a new method and system for constructing the P2P network.

为了解决上述技术问题,本发明是通过以下技术方案来实现的。In order to solve the above technical problems, the present invention is achieved through the following technical solutions.

依据本发明的一个方面,提供一种P2P网络的构建方法,包括:According to one aspect of the present invention, a method for constructing a P2P network is provided, including:

对所有的网络节点进行编号;Number all network nodes;

构建一条经过所有网络节点的回路,且所述回路中相连的两个网络节点位于不同的域;Construct a loop passing through all network nodes, and the two network nodes connected in the loop are located in different domains;

遍历所有的网络节点,并随机选择目标网络节点:若当前遍历的网络节点与所述目标网络节点位于不同的域,则在所述当前网络节点与所述目标网络节点之间添加一条有向边。Traverse all network nodes and randomly select a target network node: if the currently traversed network node and the target network node are in different domains, add a directed edge between the current network node and the target network node .

进一步地,所述对所有的网络节点进行编号,包括:Further, the numbering of all network nodes includes:

统计网络节点,并将所有网络节点按域进行归类;Count network nodes and classify all network nodes by domain;

从网络节点数最多的域中随机挑选一个网络节点,从其他域中随机挑选一个网络节点,重复该步骤,直至所有网络节点挑选完毕;Randomly select a network node from the domain with the largest number of network nodes, randomly select a network node from other domains, and repeat this step until all network nodes are selected;

若剩余的网络节点位于同一域时,则在该域中随机挑选网络节点,直至所有网络节点挑选完毕;If the remaining network nodes are in the same domain, randomly select network nodes in this domain until all network nodes are selected;

当所有网络节点挑选完毕后,将所有网络节点按照被挑选的先后顺序依序进行编号。After all the network nodes are selected, all the network nodes are numbered sequentially according to the order in which they were selected.

进一步地,所述构建一条经过所有网络节点的回路,且所述回路中相连的两个网络节点位于不同的域,包括:Further, constructing a loop passing through all network nodes, and the two network nodes connected in the loop are located in different domains, including:

从任意节点出发,通过有向边构建连接所有网络节点的回路;Starting from any node, construct a loop connecting all network nodes through directed edges;

逆向遍历所述回路:若所述回路中一个有向边的源节点和目标节点位于同一域,则将所述有向边删除;Reversely traversing the loop: if the source node and the target node of a directed edge in the loop are in the same domain, then delete the directed edge;

从其他域中随机选取一个网络节点,在所述源节点与所述网络节点、所述网络节点与所述目标节点之间添加有向边。A network node is randomly selected from other domains, and directed edges are added between the source node and the network node, and between the network node and the target node.

进一步地,所述若当前遍历的网络节点与所述目标网络节点位于不同的域,则在所述当前网络节点与所述目标网络节点之间添加有向边,包括:Further, if the currently traversed network node and the target network node are located in different domains, adding a directed edge between the current network node and the target network node includes:

以当前网络节点为源节点,并从不同域的其他网络节点中随机选择预设个数的目标节点,并在所述源节点与所述目标节点之间添加有向边。Taking the current network node as a source node, randomly selecting a preset number of target nodes from other network nodes in different domains, and adding a directed edge between the source node and the target node.

依据本发明的另一个方面,提供一种P2P网络的构建系统,包括:According to another aspect of the present invention, a system for constructing a P2P network is provided, including:

节点排序子系统,用于对所有的网络节点进行编号;Node sorting subsystem, used to number all network nodes;

回路构建子系统,用于构建一条经过所有网络节点的回路,且所述回路中相连的两个网络节点位于不同的域;A loop construction subsystem, configured to construct a loop passing through all network nodes, and the two network nodes connected in the loop are located in different domains;

随机加边子系统,用于遍历所有的网络节点,并随机选择目标网络节点:若当前遍历的网络节点与所述目标网络节点位于不同的域,则在所述当前网络节点与所述目标网络节点之间添加有向边。The random edge adding subsystem is used to traverse all network nodes and randomly select a target network node: if the currently traversed network node and the target network node are located in different domains, then the current network node and the target network node Add directed edges between nodes.

进一步地,所述节点排序子系统包括:Further, the node sorting subsystem includes:

统计单元,用于统计网络节点,并将所有网络节点按域进行归类;A statistical unit is used to count network nodes and classify all network nodes by domain;

挑选单元,用于从网络节点数最多的域中随机挑选一个网络节点,从其他域中随机挑选一个网络节点,重复该步骤,直至所有网络节点挑选完毕;若剩余的网络节点为同一域时,则在该域中随机挑选网络节点,直至所有网络节点挑选完毕;The selection unit is used to randomly select a network node from the domain with the largest number of network nodes, randomly select a network node from other domains, and repeat this step until all network nodes are selected; if the remaining network nodes are in the same domain, Then randomly select network nodes in this domain until all network nodes are selected;

编号单元,用于当所有网络节点挑选完毕后,将所有网络节点按照被挑选的先后顺序依序进行编号。The numbering unit is used to sequentially number all network nodes according to the order in which they were selected after all network nodes are selected.

进一步地,所述回路构建子系统包括:Further, the circuit construction subsystem includes:

回路构建单元,用于从任意节点出发,通过有向边构建连接所有的网络节点的回路;The circuit construction unit is used to start from any node and construct a circuit connecting all network nodes through directed edges;

删除单元,用于逆向遍历所述回路:若所述回路中一个有向边的源节点和目标节点位于同一域时,将所述有向边删除;A deletion unit for traversing the loop in reverse: if the source node and the target node of a directed edge in the loop are in the same domain, delete the directed edge;

加边单元,用于从其他域中随机选取一个网络节点,在所述源节点与所述网络节点、所述网络节点与所述目标节点之间添加有向边。The edge adding unit is configured to randomly select a network node from other domains, and add directed edges between the source node and the network node, and between the network node and the target node.

进一步地,所述随机加边子系统具体用于:Further, the random edge adding subsystem is specifically used for:

以当前网络节点为源节点,并从不同域的其他网络节点中随机选择预设个数的目标节点,并在所述源节点与所述目标节点之间添加有向边。Taking the current network node as a source node, randomly selecting a preset number of target nodes from other network nodes in different domains, and adding a directed edge between the source node and the target node.

本发明有益效果如下:The beneficial effects of the present invention are as follows:

本发明所提供的P2P网络的构建方法及系统,消息从任意节点注入,均可覆盖到所有节点,使得整个网络具有较强的连通性;对于任意一条边的源节点和目标节点属于不同的域,具有跨区域特性;在删除部分节点及其相连的边后,剩余子图,仍然具有较强的鲁棒性。In the P2P network construction method and system provided by the present invention, messages injected from any node can cover all nodes, so that the entire network has strong connectivity; the source node and target node of any edge belong to different domains , which has cross-region characteristics; after deleting some nodes and their connected edges, the remaining subgraph still has strong robustness.

附图说明Description of drawings

图1是本发明一实施例中P2P网络构建方法的流程图;Fig. 1 is a flow chart of a P2P network construction method in an embodiment of the present invention;

图2是本发明一实施例中节点排序的流程图;Fig. 2 is a flowchart of node sorting in an embodiment of the present invention;

图3是本发明一实施例中回路构建的流程图;Fig. 3 is a flowchart of loop construction in an embodiment of the present invention;

图4是本发明一实施例中构建的P2P网络有向图;Fig. 4 is the directed graph of the P2P network constructed in an embodiment of the present invention;

图5是本发明一实施例中随机加边的流程图;Fig. 5 is a flowchart of random edge addition in an embodiment of the present invention;

图6是本发明实施例中构建的P2P网络与TDL-4网络抗追踪性对比图;Fig. 6 is a comparison chart of anti-tracking performance between the P2P network and the TDL-4 network constructed in the embodiment of the present invention;

图7是本发明实施例中构建的P2P网络与TDL-4网络的鲁棒性到对比图;Fig. 7 is the robustness-to-contrast diagram of the P2P network constructed in the embodiment of the present invention and the TDL-4 network;

图8是本发明一实施例中P2P网络的构建系统的结构框图。Fig. 8 is a structural block diagram of a P2P network construction system in an embodiment of the present invention.

具体实施方式detailed description

为了解决现有技术中网络抗追踪能力较差的问题,本发明提供了一种P2P网络的构建方法及系统。以下结合附图以及实施例,对本发明进行进一步详细说明。应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不限定本发明。In order to solve the problem of poor anti-tracking ability of the network in the prior art, the present invention provides a method and system for constructing a P2P network. The present invention will be described in further detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

参见图1,本发明实施例提供了一种P2P网络的构建方法,具体包括如下步骤:Referring to Fig. 1, the embodiment of the present invention provides a kind of construction method of P2P network, specifically comprises the following steps:

步骤1,对所有的网络节点进行编号;Step 1, numbering all network nodes;

步骤2,构建一条经过所有网络节点的回路,且回路中相连的两个网络节点位于不同的域;Step 2, construct a loop passing through all network nodes, and the two network nodes connected in the loop are located in different domains;

步骤3,遍历所有的网络节点,并随机选择目标网络节点:若当前遍历的网络节点与目标网络节点位于不同的域,则在当前网络节点与目标网络节点之间添加一条有向边。Step 3, traverse all network nodes, and randomly select the target network node: if the currently traversed network node and the target network node are in different domains, add a directed edge between the current network node and the target network node.

本发明中所提供的P2P网络的构建方法,消息从任意网络节点注入后,均可覆盖到所有节点,使得整个网络具有较强的连通性;对于网络中任意一条边的两个网络节点均属于不同的域,具有跨区域特性;在删除部分节点及其相连的边后,剩余网络子图,仍然具有较强的鲁棒性。In the construction method of the P2P network provided in the present invention, after the message is injected from any network node, it can cover all nodes, so that the entire network has strong connectivity; two network nodes on any edge in the network belong to Different domains have cross-region characteristics; after deleting some nodes and their connected edges, the remaining network subgraphs still have strong robustness.

下面对本发明的各个步骤的具体实现过程进行详细介绍。The specific implementation process of each step of the present invention will be introduced in detail below.

首先介绍节点排序的过程:对所有的网络节点进行编号。参见图2,具体包括如下步骤:Firstly, the process of node sorting is introduced: numbering all network nodes. Referring to Figure 2, it specifically includes the following steps:

步骤101,统计网络节点,并将所有网络节点按域进行归类;Step 101, counting network nodes, and classifying all network nodes by domain;

步骤102,从网络节点数最多的域中随机挑选一个网络节点,从其他域中随机挑选一个网络节点,重复该步骤,直至所有网络节点挑选完毕;若剩余的网络节点位于同一域时,则在该域中随机挑选网络节点,直至所有网络节点挑选完毕;Step 102, randomly select a network node from the domain with the largest number of network nodes, randomly select a network node from other domains, repeat this step until all network nodes are selected; if the remaining network nodes are in the same domain, then in Randomly select network nodes in this domain until all network nodes are selected;

步骤103,待所有节点挑选完后,将所有网络节点按照被挑选的先后顺序依序进行编号,依次编号为:v0,v1,…,vN-1Step 103, after all the nodes are selected, number all the network nodes in sequence according to the selected order, and the numbers are: v 0 , v 1 , . . . , v N-1 .

其次介绍回路构建的过程:构建一条经过所有网络节点的回路,且回路中相连的两个网络节点位于不同的域。参见图3,包括:Next, introduce the process of circuit construction: construct a circuit passing through all network nodes, and the two network nodes connected in the circuit are located in different domains. See Figure 3, including:

步骤201,从任意节点出发,通过有向边构建连接所有的网络节点的回路。本发明的一个实施例中,从最小编号的网络节点出发,按照编号从小到大到顺序,依次连接各个节点构建回路。其中,构成的回路为一个经过每个节点至少一次的有向环。例如,V0-V1-V2-V3-V0为一个经过每个节点一次的有向环,也可以为V0-V3-V1-V2-V3-V0。该有向环中节点V3经过了两次,其余各点经过了一次。Step 201, starting from any node, constructing a loop connecting all network nodes through directed edges. In one embodiment of the present invention, starting from the network node with the smallest number, the loops are constructed by connecting each node sequentially in ascending order of numbers. Wherein, the formed circuit is a directed ring passing through each node at least once. For example, V 0 -V 1 -V 2 -V 3 -V 0 is a directed ring that passes each node once, and it can also be V 0 -V 3 -V 1 -V 2 -V 3 -V 0 . The node V 3 in the directed ring has passed through twice, and the other points have passed through once.

步骤202,逆向遍历回路:若回路中一个有向边的源节点和目标节点位于同一域时,将有向边删除。Step 202, traversing the loop in reverse: if the source node and the target node of a directed edge in the loop are in the same domain, delete the directed edge.

参见图4,本发明实施例中用有向图G(V,E)描述这种网络。其中,V表示网络节点集(v0,v1,…,vN-1),E表示连接集,即两个网络节点边之间的集合。图G包含N个网络节点,分布在M个域中(N>>M>>1)。每一个网络节点表示一台主机;vi.m表示节点vi的域编号,用于标识节点vi对应的主机所属的域;虚线边<vi,vj>表示通连关系vi→vj,其中,vi称为源节点,vj称为目标节点,且vi使用伪造的身份向vj发送消息。Referring to FIG. 4 , this network is described by a directed graph G(V,E) in the embodiment of the present invention. Among them, V represents the network node set (v 0 , v 1 ,...,v N-1 ), and E represents the connection set, that is, the set between two network node edges. Graph G contains N network nodes distributed in M domains (N>>M>>1). Each network node represents a host; v i .m represents the domain number of node v i , which is used to identify the domain to which the host corresponding to node v i belongs; the dashed edge <v i , v j > represents the connection relationship v i → v j , where, v i is called the source node, v j is called the target node, and v i uses a forged identity to send messages to v j .

具体地,有向环构建完成后,删除有向环中的共域边。本发明的实施例中从vN-1出发,逆向遍历有向环,若有:则删除边<vi,vj>;当源节点和目标节点来自同一域时,则将源节点和目标节点之间的边删除。由于共域边会破坏网络的跨域特性,因此必须从图中删除。Specifically, after the directed ring is constructed, the co-domain edges in the directed ring are deleted. In the embodiment of the present invention, starting from v N-1 , reversely traverse the directed ring, if there is: Then delete the edge <v i , v j >; when the source node and the target node are from the same domain, delete the edge between the source node and the target node. Since co-domain edges would destroy the cross-domain properties of the network, they must be removed from the graph.

步骤203,从其他域中随机选取一个网络节点,在源节点与网络节点、网络节点与目标节点之间添加有向边。Step 203, randomly select a network node from other domains, and add directed edges between the source node and the network node, and between the network node and the target node.

为保证网络的跨域特性,共域边<vi,vj>被删除后,需要随机从与源节点不同的域中选取一个节点vk(满足条件:vk.m≠vi.m),则在网络中添加两条边:<vi,vk>与<vk,vj>。本发明实施例中,通过删除共域边,并进行跨域随机重连,保证了回路的强连通性和跨域特性。In order to ensure the cross-domain characteristics of the network, after the co-domain edge <v i , v j > is deleted, it is necessary to randomly select a node v k from a domain different from the source node (satisfying the condition: v k .m≠v i .m ), then add two edges in the network: <v i , v k > and <v k , v j >. In the embodiment of the present invention, by deleting co-domain edges and performing cross-domain random reconnection, the strong connectivity and cross-domain characteristics of the loop are guaranteed.

最后介绍随机加边的过程:遍历所有的网络节点,并随机选择目标网络节点:若当前遍历的网络节点与目标网络节点位于不同的域,则在当前网络节点与目标网络节点之间添加一条有向边。Finally, the process of randomly adding edges is introduced: traverse all network nodes and randomly select the target network node: if the currently traversed network node and the target network node are in different domains, add a link between the current network node and the target network node to the side.

具体地,在随机加边时,需要以当前网络节点为源节点,并从不同域的其他网络节点中随机选择预设个数的目标节点,并在源节点与目标节点之间添加有向边。图5中为本发明实施例中随机加边的流程图,其具体实施步骤如下:Specifically, when adding edges randomly, it is necessary to use the current network node as the source node, and randomly select a preset number of target nodes from other network nodes in different domains, and add a directed edge between the source node and the target node . Fig. 5 is the flow chart of randomly adding edges in the embodiment of the present invention, and its specific implementation steps are as follows:

步骤301,预先设定加边参数K,并置初值k=0;Step 301, preset edge adding parameter K, and set initial value k=0;

步骤302,对所有网络节点进行遍历;Step 302, traversing all network nodes;

步骤303,以当前节点为源节点,并从其余节点中随机选择一个目标节点,若目标节点与源节点来自不同的域,则添加一条边,k=k+1;若k≤K,继续选取目标节点,并加边;Step 303, take the current node as the source node, and randomly select a target node from the remaining nodes, if the target node and the source node are from different domains, add an edge, k=k+1; if k≤K, continue to select Target node, and add edge;

步骤304,当所有网络节点加边完成后,方法结束。Step 304, when all network nodes are added with edges, the method ends.

实验结果表明,相比已公开的相关技术,本发明公开的方法及系统主要有如下积极效果:The experimental results show that compared with the disclosed related technologies, the method and system disclosed in the present invention mainly have the following positive effects:

(1)抗追踪性强:图6给出了通过本发明构建的P2P网络(名为CRA网络)与现有技术中TDL-4网络的抗追踪性对比图。横坐标(#ofrealms)表示域编号,图6中所有17个国家(“Others”被视为一个特殊的国家)按照主机占有率由低到高的顺序从1开始编号。纵坐标(α)代表抗追踪性,即当防御者拥有前i个域的监控权时,其可能追踪到的主机数量占总数的百分比。α越小,则抗追踪性越强。Total曲线代表主机在域上的累积占有率。从图7可以看出,相比CRA曲线,TDL-4曲线更靠近Total曲线,因此,CRA的抗追踪性比TDL-4更强。(1) Strong tracking resistance: Fig. 6 shows a comparison chart of tracking resistance between the P2P network (named CRA network) constructed by the present invention and the TDL-4 network in the prior art. The abscissa (#ofrealms) represents the domain number, and all 17 countries in Figure 6 ("Others" is regarded as a special country) are numbered from 1 in order of host occupancy from low to high. The vertical axis (α) represents the tracking resistance, that is, when the defender has the monitoring right of the first i domains, the number of hosts that may be tracked accounts for the percentage of the total. The smaller α is, the stronger the tracking resistance is. The Total curve represents the cumulative occupancy of hosts on the domain. It can be seen from Figure 7 that the TDL-4 curve is closer to the Total curve than the CRA curve. Therefore, CRA is more resistant to tracking than TDL-4.

(2)鲁棒性强:图7给出了CRA与TDL-4的鲁棒性对比图。横坐标(p)代表移除率,即从拓扑图中移除度最高的p部分节点。纵坐标代表鲁棒性(β),即在度最高的p部分节点被移除后,最大连通子图包含的节点数占剩余子图包含的节点总数的比例。β越大,则鲁棒性越强。从图8可以看出,CRA的鲁棒性比TDL-4更强。(2) Strong robustness: Figure 7 shows the robustness comparison between CRA and TDL-4. The abscissa (p) represents the removal rate, that is, the p part of nodes with the highest degree of removal from the topology graph. The ordinate represents the robustness (β), which is the ratio of the number of nodes contained in the largest connected subgraph to the total number of nodes contained in the remaining subgraph after the p part of nodes with the highest degree is removed. The larger β is, the stronger the robustness is. It can be seen from Figure 8 that CRA is more robust than TDL-4.

参见图8,本发明实施例还提供了一种P2P网络的构建系统,包括:Referring to Figure 8, the embodiment of the present invention also provides a P2P network construction system, including:

节点排序子系统,用于对所有的网络节点进行编号;Node sorting subsystem, used to number all network nodes;

回路构建子系统,用于构建一条经过所有网络节点的回路,且回路中相连的两个网络节点位于不同的域;The circuit construction subsystem is used to construct a circuit passing through all network nodes, and the two network nodes connected in the circuit are located in different domains;

随机加边子系统,用于遍历所有的网络节点,并随机选择目标网络节点:若当前遍历的网络节点与目标网络节点位于不同的域,则在当前网络节点与目标网络节点之间添加有向边。The random edge addition subsystem is used to traverse all network nodes and randomly select the target network node: if the currently traversed network node and the target network node are in different domains, add a directed edge between the current network node and the target network node. side.

进一步地,节点排序子系统包括:Further, the node sorting subsystem includes:

统计单元,用于统计网络节点,并将所有网络节点按域进行归类;A statistical unit is used to count network nodes and classify all network nodes by domain;

挑选单元,用于从网络节点数最多的域中随机挑选一个网络节点,从其他域中随机挑选一个网络节点,重复该步骤,直至所有网络节点挑选完毕;若剩余的网络节点为同一域时,则在该域中随机挑选网络节点,直至所有网络节点挑选完毕;The selection unit is used to randomly select a network node from the domain with the largest number of network nodes, randomly select a network node from other domains, and repeat this step until all network nodes are selected; if the remaining network nodes are in the same domain, Then randomly select network nodes in this domain until all network nodes are selected;

编号单元,用于当所有网络节点挑选完毕后,将所有网络节点按照被挑选的先后顺序依序进行编号。The numbering unit is used to sequentially number all network nodes according to the order in which they were selected after all network nodes are selected.

进一步地,回路构建子系统包括:Further, the circuit construction subsystem includes:

回路构建单元,用于从任意节点出发,通过有向边构建连接所有的网络节点的回路;The circuit construction unit is used to start from any node and construct a circuit connecting all network nodes through directed edges;

删除单元,用于逆向遍历回路:若回路中一个有向边的源节点和目标节点位于同一域时,将有向边删除;Delete unit, used to traverse the loop in reverse: if the source node and target node of a directed edge in the loop are in the same domain, the directed edge will be deleted;

加边单元,用于从其他域中随机选取一个网络节点,在源节点与网络节点、网络节点与目标节点之间添加有向边。The edge adding unit is used to randomly select a network node from other domains, and add directed edges between the source node and the network node, and between the network node and the target node.

进一步地,随机加边子系统具体用于:Further, the random edge addition subsystem is specifically used for:

以当前网络节点为源节点,并从不同域的其他网络节点中随机选择预设个数的目标节点,并在源节点与目标节点之间添加有向边。Take the current network node as the source node, randomly select a preset number of target nodes from other network nodes in different domains, and add directed edges between the source node and the target node.

由于本实施例的装置所实现的功能基本相应于前述的图1-图5的方法,故本实施例的描述未详尽之处,可以参见前述实施例中的相关说明,在此不作赘述。Since the functions implemented by the device in this embodiment basically correspond to the aforementioned methods in FIGS. 1-5 , for details not described in this embodiment, you can refer to the relevant descriptions in the aforementioned embodiments, and details are not repeated here.

尽管为示例目的,已经公开了本发明的优选实施例,本领域的技术人员将意识到各种改进、增加和取代也是可能的,因此,本发明的范围应当不限于上述实施例。Although preferred embodiments of the present invention have been disclosed for illustrative purposes, those skilled in the art will appreciate that various modifications, additions and substitutions are possible, and therefore, the scope of the present invention should not be limited to the above-described embodiments.

Claims (8)

1. the construction method of a P2P network, it is characterised in that including:
All of network node is numbered;
Build a loop through all-network node, and two network nodes being connected in described loop are positioned at different territories;
Travel through all of network node, and randomly choose target network node: if the network node of current traversal is positioned at different territories from described target network node, then between described current network node and described target network node, add a directed edge.
2. the method for claim 1, it is characterised in that described all of network node is numbered includes:
Statistics network node, and all-network node is sorted out by territory;
One network node of random choose from the territory that number of network node is maximum, from other territories, one network node of random choose, repeats this step, until all-network node is selected complete;
If remaining network node is positioned at same territory, then random choose network node in this domain, until all-network node is selected complete;
After all-network node is selected, all-network node is sequentially numbered according to selected sequencing.
3. the method for claim 1, it is characterised in that one loop through all-network node of described structure, and in described loop be connected two network nodes be positioned at different territories, including:
From arbitrary node, built the loop connecting all-network node by directed edge;
The described loop of reverse traversal: if the source node of a directed edge and destination node are positioned at same territory in described loop, described directed edge is deleted;
From other territories, randomly select a network node, between described source node and described network node, described network node and described destination node, add directed edge.
4. the method for claim 1, it is characterised in that if the network node of described current traversal is positioned at different territories from described target network node, then add directed edge between described current network node and described target network node, including:
With current network node for source node, and other network nodes of never same area randomly choose the destination node of predetermined number, and between described source node and described destination node, add directed edge.
5. the constructing system of a P2P network, it is characterised in that including:
Node sequencing subsystem, for being numbered all of network node;
Loop builds subsystem, and for building a loop through all-network node, and two network nodes being connected in described loop are positioned at different territories;
Random edged subsystem, for traveling through all of network node, and randomly choose target network node: if the network node of current traversal is positioned at different territories from described target network node, then between described current network node and described target network node, add directed edge.
6. system as claimed in claim 5, it is characterised in that described node sequencing subsystem, including:
Statistic unit, for statistics network node, and sorts out all-network node by territory;
Module of selection, for one network node of random choose the territory maximum from number of network node, from other territories, one network node of random choose, repeats this step, until all-network node is selected complete;If remaining network node is same territory, then random choose network node in this domain, until all-network node is selected complete;
Numbered cell, for, after all-network node is selected, being sequentially numbered all-network node according to selected sequencing.
7. system as claimed in claim 5, it is characterised in that described loop builds subsystem and includes:
Loop construction unit, for from arbitrary node, building the loop connecting all-network node by directed edge;
Delete unit, for the described loop of reverse traversal: if the source node of a directed edge and destination node are positioned at same territory in described loop, deleted by described directed edge;
Edged unit, for randomly selecting a network node from other territories, adds directed edge between described source node and described network node, described network node and described destination node.
8. system as claimed in claim 5, it is characterised in that described random edged subsystem specifically for:
With current network node for source node, and other network nodes of never same area randomly choose the destination node of predetermined number, and between described source node and described destination node, add directed edge.
CN201610184905.8A 2016-03-29 2016-03-29 A kind of construction method and system of P2P network Active CN105791408B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610184905.8A CN105791408B (en) 2016-03-29 2016-03-29 A kind of construction method and system of P2P network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610184905.8A CN105791408B (en) 2016-03-29 2016-03-29 A kind of construction method and system of P2P network

Publications (2)

Publication Number Publication Date
CN105791408A true CN105791408A (en) 2016-07-20
CN105791408B CN105791408B (en) 2019-04-02

Family

ID=56392200

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610184905.8A Active CN105791408B (en) 2016-03-29 2016-03-29 A kind of construction method and system of P2P network

Country Status (1)

Country Link
CN (1) CN105791408B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314336A (en) * 2020-02-11 2020-06-19 中国科学院信息工程研究所 Dynamic transmission path construction method and system for anti-tracking network

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127649A (en) * 2007-09-30 2008-02-20 华为技术有限公司 A method and system for defending against network attacks
WO2013048484A1 (en) * 2011-09-30 2013-04-04 Intel Corporation Quality of experience enhancements over wireless networks
US20130132601A1 (en) * 2011-11-18 2013-05-23 Peerialism AB Method and device for peer arrangement in streaming-constrained p2p overlay networks

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101127649A (en) * 2007-09-30 2008-02-20 华为技术有限公司 A method and system for defending against network attacks
WO2013048484A1 (en) * 2011-09-30 2013-04-04 Intel Corporation Quality of experience enhancements over wireless networks
US20130132601A1 (en) * 2011-11-18 2013-05-23 Peerialism AB Method and device for peer arrangement in streaming-constrained p2p overlay networks

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111314336A (en) * 2020-02-11 2020-06-19 中国科学院信息工程研究所 Dynamic transmission path construction method and system for anti-tracking network

Also Published As

Publication number Publication date
CN105791408B (en) 2019-04-02

Similar Documents

Publication Publication Date Title
Lu et al. Community detection in weighted networks: Algorithms and applications
CN108965141B (en) Method and device for calculating multipath routing tree
Liu et al. Optimizing overlay topology by reducing cut vertices
CN112564991B (en) Application identification method, device and storage medium
US20140372585A1 (en) Reliable bulk data dissemination using rateless codes
CN105745870A (en) Removing lead filter from serial multiple-stage filter used to detect large flows in order to purge flows for prolonged operation
CN103595734B (en) Based on the online social network fast repairing method that user-association structure divides
CN104521192A (en) Techniques for flooding optimization for link state protocols in a network topology
CN109064348A (en) A method of it blocking rumour community in social networks and inhibits gossip propagation
WO2015139533A1 (en) Method for network manager to back-calculate hybrid networking services
Keralapura et al. A novel self-learning architecture for p2p traffic classification in high speed networks
CN103236978B (en) The determination method and apparatus of AS topology top layer autonomous system node
CN108965288A (en) A method of it is traced to the source based on stream the cross-domain of fingerprint
CN102238090B (en) Packet Rerouting Method for Anonymous Communication System
JP2015156529A (en) Flow aggregation device, method and program
CN105791408A (en) A method and system for constructing a P2P network
Krenc et al. Coarse-grained inference of BGP community intent
CN107438026A (en) The failure recovery method and apparatus of inter-domain routing system
Zhao et al. K-core-based attack to the internet: Is it more malicious than degree-based attack?
CN106549929B (en) The localization method and system in a kind of APT attack source
CN104994464A (en) Mobile social network data forwarding method based on hierarchical community structure
Fadel et al. A low-storage precise IP traceback technique based on packet marking and logging
Roos et al. Dealing with dead ends: Efficient routing in darknets
Hamedi-Hamzehkolaie et al. Bee-based IP traceback
Bachmann et al. Miuz: measuring the impact of disconnecting a node

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant