CN101079783A - A method for establishing P2P channel in P2P network - Google Patents

A method for establishing P2P channel in P2P network Download PDF

Info

Publication number
CN101079783A
CN101079783A CN 200610060839 CN200610060839A CN101079783A CN 101079783 A CN101079783 A CN 101079783A CN 200610060839 CN200610060839 CN 200610060839 CN 200610060839 A CN200610060839 A CN 200610060839A CN 101079783 A CN101079783 A CN 101079783A
Authority
CN
China
Prior art keywords
node
network
broadcast
network information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 200610060839
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN 200610060839 priority Critical patent/CN101079783A/en
Publication of CN101079783A publication Critical patent/CN101079783A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a P2P channel building method in the P2P network in the network communicating domain, which comprises the following steps: A. transmitting broadcast information within the network information of the joint for the joint in the same net segment; B. receiving the broadcast respond information returned by the joint in the same net segment; selecting the connected joint according to the joint network information carried in the broadcast respond information; reserving the network information of the connected joint; C. negotiating the P2P communicating transmitting protocol with the connected joint; establishing P2P channel. The invention saves broad band to reduce the server load, which improves the P2P service quality of LAN obviously.

Description

Set up the method for P2P passage in a kind of P2P network
Technical field
The invention belongs to network communication field, relate in particular in the P2P network, set up the method for P2P passage between the node.
Background technology
Peer-to-peer network (Peer to Peer, P2P) system generally adopts lumped model, decentralized model, stratification model and 4 kinds of models of mixed model, and its network signal is respectively shown in a, b, c and d among Fig. 1.Wherein, centralized model adopts a server as Centroid, and simple in structure being convenient to managed.Generally, owing to manage in the resource set, it is very fast therefore to retrieve response ratio, and the network bandwidth of the whole network consumption of management maintenance is lower.Do not have central index server in the decentralized model, all nodes all are equality.In the stratification model, participate in the process of service at node, the node of choosing better performances wherein is as super node, super node management ordinary node, super node by the super node or the server admin of more senior one-level, constitutes into hierarchical setting again.Mixed model builds up a two-layer structure with whole P2P network, is made up of ordinary node and super node, and a super node is managed a plurality of ordinary nodes, and super node is a decentralized model.
In the network of above-mentioned lumped model, stratification model or mixed model, server is preserved the network information of node.When the node logging in network, report the place subnet information to server, server is by retrieval, will return to this node with other nodal informations of existence in this node is in same network segment mutually.Because the limited storage space of server, and the quantity of node magnanimity often, therefore server does not have enough spaces to preserve the network information of all nodes in certain network segment, can only preserve the network information of part of nodes, thereby cause node can't obtain the network information of all nodes in the needed phase same network segment.
Summary of the invention
The object of the present invention is to provide the method for setting up the P2P passage in a kind of P2P network, be intended to solve the restriction that exists in the prior art, cause node can't obtain the problem of the network information of all nodes in the needed phase same network segment owing to the server stores space.
The present invention is achieved in that the method for setting up the P2P passage in a kind of P2P network, and described method comprises the steps:
A. the node in the phase same network segment sends broadcast, the network information of carrying this node in the described broadcast;
B. receive the broadcasting response message that the node in the phase same network segment returns, select connected node, preserve the network information of connected node according to the network information of the node that carries in the broadcasting response message;
C and connected node are consulted P2P channel transfer agreement, set up the P2P passage.
The described network information comprises the P2P business information.
Described broadcast and broadcasting response message transmit by udp port.
Described method further comprises the steps:
D. according to the network information of the node of preserving, send probe data packet to the node of setting up the P2P passage.
Set up the method for P2P passage in a kind of P2P network, described method comprises the steps:
A. receive the broadcast that the node in the phase same network segment sends;
B. extract and preserve the network information of the node that carries in the described broadcast, return the broadcasting response message, carry the network information of this node in the message;
C. consult P2P channel transfer agreement with connected node, set up the P2P passage.
The described network information comprises the P2P business information.
Described broadcast and broadcasting response message transmit by udp port.
Described method further comprises the steps:
D. according to the network information of the node of preserving, send probe data packet to the node of setting up the P2P passage.
In the present invention, set up the P2P passage by broadcasting between the P2P node in the phase same network segment, saved the network bandwidth, reduced server load, and can significantly improve the P2P service quality of local area network (LAN).
Description of drawings
Fig. 1 is P2P network structure model figure in the prior art;
Fig. 2 is the P2P network structure model figure that the present invention is suitable for;
Fig. 3 is that node other nodes in the phase same network segment send broadcast among the present invention, sets up the realization flow figure of P2P passage;
Fig. 4 is that node receives the broadcast that other nodes send in the phase same network segment among the present invention, sets up the realization flow figure of P2P passage.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In the present invention, node other nodes in the phase same network segment send broadcast, and other nodes return the broadcasting response message after receiving broadcast, set up the P2P passage between the node.
Fig. 2 shows the P2P network structure model that the present invention is suitable for, and wherein server/super node can exist also and can not exist, and is example with 4 nodes, and node 1, node 2, node 3 and node 4 are in the same network segment.
In the present invention, when any one node in the network segment is started working, send broadcast, can carry the P2P business information such as programme information, data slice information of this node storage in the broadcast by industry ethernet other node in the network segment.After other active node is received broadcast in the network segment, return the broadcasting response message, preserve the other side's the network information between the node mutually, set up the P2P passage each other to the node that sends broadcast.
Fig. 3 shows node other nodes transmission broadcasts in the phase same network segment among the present invention, sets up the realization flow of P2P passage, and details are as follows:
In step S301, node starts, open acquiescence User Datagram Protoco (UDP) (User DatagramProtocol, UDP) listening port 48923, receive other nodes send in the phase same network segment broadcast or broadcasting response message;
In step S302, node udp port 48923 in the network segment sends broadcast, the network information of carrying this node in the message, for example P2P business information;
In step S303, judge whether the broadcasting response message of receiving that other nodes return, be execution in step S304 then, otherwise finish.Specifically can a timer be set,, then finish if do not receive the broadcasting response message that other nodes return regularly at node;
In step S304, receive the broadcasting response message of other nodes, extract the network information of the node that carries in the broadcasting response message, to select connected node, but for example have the node of shared network resource, the network information of preserving connected node is as the P2P business information;
In step S305, consult between node and the connected node to use P2P channel transfer agreement, as UDP/TCP, set up transmission control protocol (Transmission Control Protocol, TCP) direct channel.
Fig. 4 shows the broadcast that other nodes send in the node reception phase same network segment among the present invention, sets up the realization flow of P2P passage, and details are as follows:
In step S401, node starts, open acquiescence User Datagram Protoco (UDP) (User DatagramProtocol, UDP) listening port 48923, receive other nodes send in the phase same network segment broadcast or broadcasting response message;
In step S402, judge whether to receive the broadcast of other nodes, be execution in step S403 then, otherwise finish;
In step S403, receive the broadcast of other nodes, extract the network information of preserving the node that carries in the broadcast, return the broadcasting response message, carry the network information of this node in the message, as the P2P business information;
In step S404, consult between the node to use P2P channel transfer agreement, as UDP/TCP, set up the TCP direct channel.
After the P2P passage between the node is set up, each node can be preserved the network information of once setting up the node of P2P passage in the network segment, when initiating when professional, can be preferentially to the node transmission probe data packet of setting up the P2P passage, whether survey these nodes online.
In the present invention, the P2P node only sends udp broadcast message one time after starting, and can not produce big communication load to network.After other active node in the phase same network segment is collected broadcast, just set up the P2P passage between the node, each node all can be preserved the network information of connected node, has saved the network bandwidth, reduce server load, and can significantly improve the P2P service quality in the local area network (LAN).
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (8)

1, sets up the method for P2P passage in a kind of P2P network, it is characterized in that described method comprises the steps:
A. the node in the phase same network segment sends broadcast, the network information of carrying this node in the described broadcast;
B. receive the broadcasting response message that the node in the phase same network segment returns, select connected node, preserve the network information of connected node according to the network information of the node that carries in the broadcasting response message;
C. consult P2P channel transfer agreement with connected node, set up the P2P passage.
2, the method for claim 1 is characterized in that, the described network information comprises the P2P business information.
3, the method for claim 1 is characterized in that, described broadcast and broadcasting response message transmit by udp port.
4, the method for claim 1 is characterized in that, described method further comprises the steps:
D. according to the network information of the node of preserving, send probe data packet to the node of setting up the P2P passage.
5, set up the method for P2P passage in a kind of P2P network, it is characterized in that described method comprises the steps:
A. receive the broadcast that the node in the phase same network segment sends;
B. extract and preserve the network information of the node that carries in the described broadcast, return the broadcasting response message, carry the network information of this node in the message;
C. consult P2P channel transfer agreement with connected node, set up the P2P passage.
6, method as claimed in claim 5 is characterized in that, the described network information comprises the P2P business information.
7, method as claimed in claim 5 is characterized in that, described broadcast and broadcasting response message transmit by udp port.
8, method as claimed in claim 5 is characterized in that, described method further comprises the steps:
D. according to the network information of the node of preserving, send probe data packet to the node of setting up the P2P passage.
CN 200610060839 2006-05-27 2006-05-27 A method for establishing P2P channel in P2P network Pending CN101079783A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200610060839 CN101079783A (en) 2006-05-27 2006-05-27 A method for establishing P2P channel in P2P network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200610060839 CN101079783A (en) 2006-05-27 2006-05-27 A method for establishing P2P channel in P2P network

Publications (1)

Publication Number Publication Date
CN101079783A true CN101079783A (en) 2007-11-28

Family

ID=38907025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200610060839 Pending CN101079783A (en) 2006-05-27 2006-05-27 A method for establishing P2P channel in P2P network

Country Status (1)

Country Link
CN (1) CN101079783A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505263B (en) * 2008-02-05 2011-10-26 华为技术有限公司 Method and device for maintaining routing information
CN101582916B (en) * 2009-06-19 2012-07-25 武汉钢铁(集团)公司 Network application system based on P2P and application method thereof
CN105471983A (en) * 2015-11-19 2016-04-06 广州云湾信息技术有限公司 Method and system for establishing internet-of-things communication
CN105636175A (en) * 2016-03-16 2016-06-01 中国联合网络通信集团有限公司 Network access method and network equipment
CN109561124A (en) * 2017-09-27 2019-04-02 深圳市创易联合科技有限公司 A kind of method, system and the terminal device of file transmission
CN109936603A (en) * 2017-12-18 2019-06-25 厦门本能管家科技有限公司 One kind being based on the non-associated network network communication means of HTTP
CN112492053A (en) * 2019-08-20 2021-03-12 厦门本能管家科技有限公司 Cross-network penetration method and system for P2P network

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505263B (en) * 2008-02-05 2011-10-26 华为技术有限公司 Method and device for maintaining routing information
US8732298B2 (en) 2008-02-05 2014-05-20 Huawei Technologies Co., Ltd. Method and apparatus for maintaining routing information
CN101582916B (en) * 2009-06-19 2012-07-25 武汉钢铁(集团)公司 Network application system based on P2P and application method thereof
CN105471983A (en) * 2015-11-19 2016-04-06 广州云湾信息技术有限公司 Method and system for establishing internet-of-things communication
CN105471983B (en) * 2015-11-19 2019-05-28 广州云智易物联网有限公司 A kind of method and system for establishing Internet of Things communication
CN105636175A (en) * 2016-03-16 2016-06-01 中国联合网络通信集团有限公司 Network access method and network equipment
CN109561124A (en) * 2017-09-27 2019-04-02 深圳市创易联合科技有限公司 A kind of method, system and the terminal device of file transmission
CN109936603A (en) * 2017-12-18 2019-06-25 厦门本能管家科技有限公司 One kind being based on the non-associated network network communication means of HTTP
CN109936603B (en) * 2017-12-18 2022-07-01 本无链科技(深圳)有限公司 Non-direct connection network communication method based on HTTP
CN112492053A (en) * 2019-08-20 2021-03-12 厦门本能管家科技有限公司 Cross-network penetration method and system for P2P network
CN112492053B (en) * 2019-08-20 2023-04-07 本无链科技(深圳)有限公司 Cross-network penetration method and system for P2P network

Similar Documents

Publication Publication Date Title
CN101079783A (en) A method for establishing P2P channel in P2P network
DE60306832T2 (en) Method, device and medium for switching connection technologies
US20030115340A1 (en) Data transmission process and system
CN111372100A (en) End-to-end content distribution network system and distribution method based on distributed election
US9001826B2 (en) Method, apparatus, system, and article of manufacture for reliable low-bandwidth information delivery across mixed-mode unicast and multicast networks
CA2691167A1 (en) Access and control system for network-enabled devices
CN102594926A (en) Heterogeneous wireless peer-to-peer (P2P) network file sharing system and file transmission acceleration method
CN102195788A (en) Application layer multicast system and streaming media data processing method
US20120185487A1 (en) Method, device and system for publication and acquisition of content
CN101141697A (en) Video sharing method of mobile stream media
CN104427354A (en) Broadcast media sharing method and node subsystem, and streaming media server
CN101123526B (en) An implementation method for large-scale stream media transmission structure
DE102021110225A1 (en) DETECTION OF NETWORK SERVICES
CN102740165B (en) Peer-to-peer streaming media living broadcast system and data transmission method therefor
CN106899640A (en) The acquisition methods and communication system of data resource
CN110769023B (en) Point-to-point content distribution network system based on intelligent home gateway
KR20070048021A (en) System and method for transmitting media stream using automatic tree rmcp
CN1536831A (en) Method for sending address analytic protocol request message into specific object in local area network
SG178407A1 (en) Method and apparatus for constructing seed group in peer-to-peer application and method for using seed group
CN107800567B (en) Method for establishing P2P streaming media network topology model of mixed mode
CN102035894B (en) Distance-based state synchronization method
CA2933106C (en) Distributing content data to resource constrained devices in a segment of a p2p network
EP4178175A1 (en) Live streaming technologies
CN100521769C (en) Network voice/video communication realizing method
CN101977140B (en) Method and device for sharing layer 2 multicast forwarding table

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication