CN102387062B - Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact - Google Patents

Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact Download PDF

Info

Publication number
CN102387062B
CN102387062B CN201010266436.7A CN201010266436A CN102387062B CN 102387062 B CN102387062 B CN 102387062B CN 201010266436 A CN201010266436 A CN 201010266436A CN 102387062 B CN102387062 B CN 102387062B
Authority
CN
China
Prior art keywords
bridge contact
node
server
data
network
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
CN201010266436.7A
Other languages
Chinese (zh)
Other versions
CN102387062A (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.)
SHANGHAI ULUCU ELECTRONIC TECHNOLOGY CO.,LTD.
Original Assignee
SHANGHAI ULUCU ELECTRONIC TECHNOLOGY 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 SHANGHAI ULUCU ELECTRONIC TECHNOLOGY CO LTD filed Critical SHANGHAI ULUCU ELECTRONIC TECHNOLOGY CO LTD
Priority to CN201010266436.7A priority Critical patent/CN102387062B/en
Publication of CN102387062A publication Critical patent/CN102387062A/en
Application granted granted Critical
Publication of CN102387062B publication Critical patent/CN102387062B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention relates to the field of peer-to-peer (p2p), mainly solves the problem of the data transmission of a node in crossing a network operator, and comprises the following steps: (1) logging in a server by a bridging contact; (2) enabling the bridging contact to serve as the father node of a p2p common node by the server; (3) receiving punching information to the p2p common node by the bridging contact; (4) receiving a data request to the p2p common node by the bridging contact; (5) replying p2p common node data by the bridging point; and (6) closing the bridging contact according to a strategy.

Description

Dynamic bridge contact improves the method for the transmission speed of p2p node when across a network
Technical field
The present invention relates to p2p field, mainly solve the data transmission problems of node when across a network operator.
Background technology
The great advantage of p2p (peerto peer) system is to make user can effectively utilize the resource in network, and these resources comprise data resource, bandwidth resources and computational resource.It has broken through the bottleneck of original C/S (server and client side) pattern, has good extensibility.In the model of p2p, each node (peer) has two kinds of roles: be client be also server, can be to other node request msg and inquiry as client, and also can provide data and service to other nodes as server.But the effect of p2p is also subject to the restriction of several factors, such as when the across a network operator, flow can be subject to very large restriction.This just makes the node under different operators, to each other data alternately can be very difficult, and have very large time delay; This can not surpass the internet video live broadcasting field of tens of seconds at delay requirement, is to bring the customer experience that is difficult to tolerance.
Traditional settling mode is not treated the node of each operator with a certain discrimination, but coordinate each other to realize by node, this coarse scheduling can not (live node is fewer such as initially watching, and is distributed to separately different network packet environment) produce good effect under specific environment.
Summary of the invention
The object of this invention is to provide a kind of method that dynamic bridge contact improves the transmission speed of p2p node when across a network, comprise the following steps: (1) bridge contact logon server; (2) father node of server using bridge contact as p2p ordinary node; (3) bridge contact receives the information that burrows of p2p ordinary node; (4) bridge contact receives the request of data of p2p ordinary node; (5) bridge contact is replied p2p ordinary node data; (6) bridge contact is closed oneself according to strategy.
Further, in above-mentioned steps: (1) bridge contact logon server; (1.1) bridge contact is with tcp mode logon server, and inserts self all address information in login bag; (1.2) bridge contact sends heartbeat packet to server after logining successfully, and maintains the whole login cycle; (2) father node of server using bridge contact as p2p ordinary node; (2.1) server receives the information that a certain remote data source is watched in the request of p2p ordinary node; (2.2) server judges the network packet i that this p2p ordinary node is affiliated; (2.3) if server can not find the father node of sufficient amount from network packet i; Using bridge contact as father node, return to p2p ordinary node; (3) bridge contact receives the information that burrows of p2p ordinary node; (3.1) bridge contact parses the request msg source address of p2p ordinary node; (3.2) bridge contact is to server request father node; (3.3) direct-connected between bridge contact and father node; (3.4) bridge contact obtains data from father node; (4) bridge contact receives the request of data of p2p ordinary node; (4.1) bridge contact receives the request of data of p2p ordinary node; (5) bridge contact is replied p2p ordinary node data; (5.1) bridge contact is replied p2p ordinary node data (6) bridge contact and is closed oneself according to strategy; (6.1) the nearest request time of bridge contact inspection to certain data source; (6.2) if this time and current time interval the time-out time of default, stop asking the data of this data source; (6.3) bridge contact is deleted the resource relevant to this data source of request, for example father node list.
The creation environment of above-mentioned bridge contact is at multi-thread machine room and has a plurality of outer net IP.
Further, bridge contact obtains all outer net IP that can normal communication when initialization from configuration file.
Above-mentioned bridge contact has the structure consistent with ordinary node.
Further, bridge contact has the network communication module consistent with ordinary node, father node administration module and local data cache module.
Above-mentioned dynamic bridge contact improves the method for the transmission speed of p2p node when across a network, also comprises: when having node to burrow to it, need to return to the outer net address that the network type with node matches according to the network type of this node.
Beneficial effect, as Fig. 6, adopts the method for above network data transmission, and while having 100 nodes on network, average delay is in 30 milliseconds, and packet loss can be controlled in 5/1000ths.
As Fig. 7, while having 500 nodes on network, average delay is in 170 milliseconds, and packet loss can be controlled in 8/1000ths.
Accompanying drawing explanation
Fig. 1 is the flow chart of bridge contact logon server; Fig. 2 is the flow chart that server process node data is watched request; Fig. 3 is the sequential chart that ordinary node is communicated by letter with bridge node; Fig. 4 is the flow chart that bridge contact is rejected data source; Fig. 5 is the network diagram of bridge contact; Fig. 6 is packet loss surveillance map A; Fig. 7 is packet loss surveillance map B.
Embodiment
The flow chart of bridge contact logon server: step s100 is described below in conjunction with Fig. 1: bridge contact is read the outer net address that this node is corresponding (generally can be more than one) from configuration file; Step s110: the part of bridge contact using address information as log-on message, sends to logon server; If login unsuccessfully, the N (3) that makes repeated attempts is inferior, unsuccessful output journal still, and prompting keeper logins fault; Step s120: bridge contact is within the whole cycle being connected with server, and what need timing sends heartbeat packet to server, maintains connection.
In conjunction with Fig. 2, prescribed server processing node data are watched the flow chart of request: step s200: server listens to request of data information on serve port, the unique sign of data source that this packets of information is watched containing request, the unique sign of requesting node; Step s210: server, according to unique sign of requesting node, is found the network packet type NetX that this node is corresponding from log in list; Step s220: the node listing that server is NetX from network packet type, filter out the node of watching same data source, screening according to being: watch same data source, from identical network packet; Step s230: if the node sum that server is selected is less than N, choose and the bridge contact of requesting node in consolidated network packet type; Step s240: server sends to requesting node by the father node information of screening.
In conjunction with Fig. 3, the sequential chart that ordinary node is communicated by letter with bridge node: step s300 is described: ordinary node sends direct-connected request bag to server, and this packets of information contains: unique indications of unique indications of destination node, the unique indications of data source, requesting node; After server receives this information, this bag is transmitted to destination node; Step s310: bridge contact judges that current whether can permission connects, criterion is it self network condition, if good, just allows, and sends direct-connected response packet, otherwise do not allow to it; For the node that allows to connect, bridge contact also will take out the unique indications of data source in direct-connected request bag, then to server application, watches; The father node list that server is returned (server should avoid the ordinary node in s300 to regard as the father node of bridge contact as far as possible) is preserved, and then attempts successively and request for data direct-connected to it; Step s320: after bridge contact and ordinary node are direct-connected, the request of data of response ordinary node.
The flow chart of bridge contact rejecting data source: step s400: bridge contact travels through the requested time T i of each data source is described in conjunction with Fig. 4, and this request time is to write down in certain node request msg; This time gap current time is far away, illustrates the request probability again of this data source lower; Step s410: the size of judgement Ti and system definite value Ts, if be greater than, illustrates that all nodes all finish the request of data of this data source; Step s420: send the information that stops watching this data source to server; Delete father node list corresponding to this data source.
Fig. 5 is the network diagram of bridge contact.

Claims (6)

1. dynamic bridge contact improves a method for the transmission speed of p2p node when across a network, comprises the following steps:
(1) bridge contact logon server;
(2) father node of server using bridge contact as p2p ordinary node;
(3) bridge contact receives the information that burrows of p2p ordinary node;
(4) bridge contact receives the request of data of p2p ordinary node;
(5) bridge contact is replied p2p ordinary node data;
(6) bridge contact is closed oneself according to strategy;
It is characterized in that, in described step:
(1) bridge contact logon server;
(1.1) bridge contact is with tcp mode logon server, and inserts self all address information in login bag;
(1.2) bridge contact logins successfully with rear and sends heartbeat packet to server, and maintains the whole login cycle;
(2) father node of server using bridge contact as p2p ordinary node;
(2.1) server receives the information that a certain remote data source is watched in the request of p2p ordinary node;
(2.2) server judges the network packet i that this p2p ordinary node is affiliated;
(2.3) if server can not find the father node of sufficient amount from network packet i; Using bridge contact as father
Node returns to p2p ordinary node;
(3) bridge contact receives the information that burrows of p2p ordinary node;
(3.1) bridge contact parses the request msg source address of p2p ordinary node;
(3.2) bridge contact is to server request father node;
(3.3) direct-connected between bridge contact and father node;
(3.4) bridge contact obtains data from father node;
(4) bridge contact receives the request of data of p2p ordinary node;
(4.1) bridge contact receives the request of data of p2p ordinary node;
(5) bridge contact is replied p2p ordinary node data;
(5.1) bridge contact is replied p2p ordinary node data
(6) bridge contact is closed oneself according to strategy;
(6.1) the nearest request time of bridge contact inspection to certain data source;
(6.2) if this time and current time interval the time-out time of default, stop asking this data source
Data;
(6.3) bridge contact is deleted the resource relevant to this data source of request.
2. dynamic bridge contact according to claim 1 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, the creation environment of described bridge contact is at multi-thread machine room and has a plurality of outer net IP.
3. dynamic bridge contact according to claim 2 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, described bridge contact obtains all outer net IP that can normal communication when initialization from configuration file.
4. dynamic bridge contact according to claim 1 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, described bridge contact has the structure consistent with ordinary node.
5. dynamic bridge contact according to claim 4 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, described bridge contact has the network communication module consistent with ordinary node, father node administration module and local data cache module.
6. dynamic bridge contact according to claim 1 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, when having node to burrow to it, need to return to the outer net address that the network type with node matches according to the network type of this node.
CN201010266436.7A 2010-08-30 2010-08-30 Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact Active CN102387062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010266436.7A CN102387062B (en) 2010-08-30 2010-08-30 Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010266436.7A CN102387062B (en) 2010-08-30 2010-08-30 Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact

Publications (2)

Publication Number Publication Date
CN102387062A CN102387062A (en) 2012-03-21
CN102387062B true CN102387062B (en) 2014-04-23

Family

ID=45826062

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010266436.7A Active CN102387062B (en) 2010-08-30 2010-08-30 Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact

Country Status (1)

Country Link
CN (1) CN102387062B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9591508B2 (en) * 2012-12-20 2017-03-07 Google Technology Holdings LLC Methods and apparatus for transmitting data between different peer-to-peer communication groups
TWI566592B (en) * 2014-01-07 2017-01-11 物聯智慧科技(深圳)有限公司 An information concentrating center capable of making p2p connections with remote client devices
CN108063921A (en) * 2017-12-26 2018-05-22 天津天地人和企业管理咨询有限公司 A kind of optimization application process of embedded network monitoring equipment in P2P
CN110891082A (en) * 2019-10-24 2020-03-17 南京可信区块链与算法经济研究院有限公司 Method, system and storage medium for connecting P2P port address in alliance chain

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN101631061A (en) * 2008-07-15 2010-01-20 中国移动通信集团公司 Method for informing resource node message and network entity device
CN101635831A (en) * 2009-08-24 2010-01-27 成都市华为赛门铁克科技有限公司 Method, device and agent system for sharing node data of P2P live video
CN101764833A (en) * 2008-12-24 2010-06-30 中国移动通信集团公司 Resource node information notification method and network entity device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7603464B2 (en) * 2003-06-04 2009-10-13 Sony Computer Entertainment Inc. Method and system for identifying available resources in a peer-to-peer network

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN101631061A (en) * 2008-07-15 2010-01-20 中国移动通信集团公司 Method for informing resource node message and network entity device
CN101764833A (en) * 2008-12-24 2010-06-30 中国移动通信集团公司 Resource node information notification method and network entity device
CN101635831A (en) * 2009-08-24 2010-01-27 成都市华为赛门铁克科技有限公司 Method, device and agent system for sharing node data of P2P live video

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《基于网络测量的P2P跨域流量优化机制》;郭涛等;《计算机应用》;20100430;第30卷(第4期);第888页到第891页、附图1-8 *
郭涛等.《基于网络测量的P2P跨域流量优化机制》.《计算机应用》.2010,第30卷(第4期),

Also Published As

Publication number Publication date
CN102387062A (en) 2012-03-21

Similar Documents

Publication Publication Date Title
US11363116B2 (en) Systems and methods for intelligent routing and content placement in information centric networks
CN110048927B (en) Communication method and communication device
CN105407180B (en) The information push method and device of server
CN111372100B (en) Distributed election-based end-to-end content distribution network system and distribution method
EP2448206B1 (en) Method, system and device for transmitting video data
CN106254377B (en) Support the soft load-balancing method and system of the long connection of magnanimity
CN103634692A (en) CDN (content distribution network) and P2P (peer-to-peer) based hybrid stream media video-on-demand system
CN101410819A (en) Reliable, high-throughput, high-performance transport and routing mechanism for arbitrary data flows
CN109905409A (en) Things-internet gateway real time bidirectional communication system based on Socket.IO
CN108881354A (en) A kind of pushed information storage method, device, server and computer storage medium
CN114418574A (en) Consensus and resource transmission method, device and storage medium
CN102045270A (en) Chat server system, method for constructing chat server system and chat system
CN108733821A (en) A kind of distribution of monitor video sectional drawing and methods of exhibiting and system
CN105991412A (en) Method and device for pushing message
CN102387062B (en) Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact
CN108924609A (en) Method, electronic equipment, device and the storage medium of transmission of flow media data
Imtiaz et al. Churn in the bitcoin network
CN104010228A (en) Apparatus and method for level-based self-adjusting peer-to-peer media streaming
CN103763206B (en) Network scheduling method and gateway
CN107959704B (en) Data processing method and home gateway
CN112203261A (en) Charging pile management method and device, electronic equipment and readable storage medium
CN109862055A (en) A kind of satellite network communications method, agent service device and gateway
WO2016180284A1 (en) Service node allocation method, device, cdn management server and system
CN102291458B (en) Method for peer-to-peer (p2p) server framework
CN103685497B (en) A kind of on-line storage sharing method and system

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
CP03 Change of name, title or address

Address after: 201799 building 6, No. 888, Huaxu highway, Xujing Town, Qingpu District, Shanghai

Patentee after: SHANGHAI ULUCU ELECTRONIC TECHNOLOGY CO.,LTD.

Address before: 201700 building 6, No. 888, Huaxu Road, Xujing Town, Qingpu District, Shanghai

Patentee before: SHANGHAI ULUCU ELECTRONIC TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A method of improving the transmission speed of P2P nodes across networks by dynamic Bridge

Effective date of registration: 20220225

Granted publication date: 20140423

Pledgee: Shanghai Rural Commercial Bank Co.,Ltd. Qingpu sub branch

Pledgor: SHANGHAI ULUCU ELECTRONIC TECHNOLOGY CO.,LTD.

Registration number: Y2022310000038

PE01 Entry into force of the registration of the contract for pledge of patent right