CN102387062A - 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
CN102387062A
CN102387062A CN2010102664367A CN201010266436A CN102387062A CN 102387062 A CN102387062 A CN 102387062A CN 2010102664367 A CN2010102664367 A CN 2010102664367A CN 201010266436 A CN201010266436 A CN 201010266436A CN 102387062 A CN102387062 A CN 102387062A
Authority
CN
China
Prior art keywords
node
bridge contact
server
network
data
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
CN2010102664367A
Other languages
Chinese (zh)
Other versions
CN102387062B (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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

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

Dynamically bridge contact improves the method for the transmission speed of p2p node when across a network
Technical field
The present invention relates to the 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 the user can effectively utilize the resource in the 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, and good expandability is arranged.In the model of p2p, each node (peer) all has two kinds of roles: be client also be server, can be as client, and also can data and service be provided to other nodes as server to other node request msg and inquiry.But the effect of p2p also receives the restriction of several factors, and such as when the across a network operator, flow can receive very big restriction.This just makes the node under the different operators, the difficulty very alternately of data to each other, and have very big time-delay; This can not surpass tens of seconds internet video live broadcasting field at delay requirement, is to bring the customer experience that is difficult to tolerate.
Traditional settling mode is not treated the node of each operator with a certain discrimination; But coordinate each other to realize through node; This coarse scheduling can not (live node is fewer such as initially watching, and is distributed to various network grouping environment separately) produce good effect under specific environment.
Summary of the invention
The purpose of this invention is to provide the method that a kind of dynamic bridge contact improves the transmission speed of p2p node when across a network, may further comprise the steps: (1) bridge contact logon server; (2) server is with the father node of bridge contact as the 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 the above-mentioned steps: (1) bridge contact logon server; (1.1) bridge contact is with tcp mode logon server, and in the login bag, inserts self all address information; (1.2) then send heartbeat packet after bridge contact is logined successfully, and keep the whole login cycle to server; (2) server is with the father node of bridge contact as the 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 is judged 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; Then bridge contact is returned to the p2p ordinary node as father 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 the server requests 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 bridge contact inspection is to the nearest request time of certain data source; (6.2) if this time and current time interval the time-out time of default, then stop to ask the data of this data source; (6.3) bridge contact deletion and the relevant resource of this data source of request, for example father node tabulation.
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 the outer net IP that all can normal communication from configuration file when initialization.
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 it burrows, need return the outer net address that the network type with node is complementary as node according to the network type of this node.
Beneficial effect such as Fig. 6 adopt the method for above network data transmission, and when 100 nodes were arranged on network, average delay was in 30 milliseconds, and packet loss can be controlled in 5/1000ths.
Like Fig. 7, when 500 nodes were arranged on network, average delay was in 170 milliseconds, and packet loss can be controlled in 8/1000ths.
Description of drawings
Fig. 1 is the flow chart of bridge contact logon server; Fig. 2 is the flow chart that the 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 corresponding outer net address of this node (generally meeting is more than) from configuration file; Step s110: bridge contact sends to logon server to the part of address information as log-on message; If login is unsuccessful, the N (3) that then makes repeated attempts is inferior, still unsuccessful then output journal, and the prompting keeper logins fault; Step s120: bridge contact is in the whole cycle that is connected with server, and what need timing sends heartbeat packet to server, keeps connection.
Prescribed server processing node data are watched the flow chart of request: step s200 in conjunction with Fig. 2: server listens to request of data information on serve port, and this information comprises the unique sign of data source that request is watched, the unique sign of requesting node; Step s210: server is found the corresponding network packet type NetX of this node according to unique sign of requesting node from land tabulation; Step s220: server filters out the node of watching same data source from the network packet type is the node listing of NetX, the foundation of screening is: watch same data source, from identical network packet; Step s230:, then choose the bridge contact that is in the consolidated network packet type with requesting node if the node sum that server is selected is less than N; Step s240: server sends to requesting node with 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 package to server, and this information comprises: unique indications of unique indications of destination node, the unique indications of data source, requesting node; Server receives after this information, and this bag is transmitted to destination node; Step s310: bridge contact judges that current whether can the permission connects, and criterion is its self networks situation, if good just permission is sent direct-connected response packet to it, otherwise do not allowed; For the node that allows to connect, bridge contact also will take out the unique indications of data source in the direct-connected request package, then to the server applying for watching; The father node tabulation (server should avoid the ordinary node in the s300 is regarded as the father node of bridge contact as far as possible) that server returns is preserved, attempt to it direct-connected and request for data then successively; Step s320: after bridge contact and ordinary node are direct-connected, the request of data of response ordinary node.
Explain that in conjunction with Fig. 4 bridge contact rejects the flow chart of data source: step s400: each data source of bridge contact traversal by request time Ti, this request time is in certain node request msg, to write down; This time gap current time is far away more, explains the request probability once more of this data source more low; Step s410: judge the size of Ti and the definite value Ts of system, if greater than would explain that all nodes all finish the request of data of this data source; Step s420: send the information that stops to watch this data source to server; Delete the corresponding father node tabulation of this data source.
Fig. 5 is the network diagram of bridge contact.

Claims (7)

1. a dynamic bridge contact improves the method for the transmission speed of p2p node when across a network, may further comprise the steps:
(1) bridge contact logon server;
(2) server is with the father node of bridge contact as the 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.
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, in the said step:
(1) bridge contact logon server;
(1.1) bridge contact is with tcp mode logon server, and in the login bag, inserts self all address information;
(1.2) send heartbeat packet to server after bridge contact is logined successfully, and keep the whole login cycle;
(2) server is with the father node of bridge contact as the 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 is judged 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; Then with bridge contact as the father
Node returns to the 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 the server requests 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 bridge contact inspection is to the nearest request time of certain data source;
(6.2) if this time and current time interval the time-out time of default, then stop to ask this data source
Data;
(6.3) bridge contact deletion and the relevant resource of this data source of request.
3. dynamic bridge contact according to claim 1 and 2 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, the creation environment of said bridge contact is at multi-thread machine room and has a plurality of outer net IP.
4. dynamic bridge contact according to claim 3 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, said bridge contact obtains the outer net IP that all can normal communication from configuration file when initialization.
5. dynamic bridge contact according to claim 1 and 2 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, said bridge contact has the structure consistent with ordinary node.
6. dynamic bridge contact according to claim 5 improves the method for the transmission speed of p2p node when across a network, it is characterized in that, said bridge contact has the network communication module consistent with ordinary node, father node administration module and local data cache module.
7. dynamic bridge contact according to claim 1 and 2 improves the method for the transmission speed of p2p node when across a network; It is characterized in that; When it burrows, need return the outer net address that the network type with node is complementary as node 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 true CN102387062A (en) 2012-03-21
CN102387062B 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)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104767789A (en) * 2014-01-07 2015-07-08 物联智慧科技(深圳)有限公司 Information gathering center capable of establishing point-to-point connection with remote client device
CN104871496A (en) * 2012-12-20 2015-08-26 谷歌技术控股有限责任公司 Methods and apparatus for transmitting data between different peer-to-peer communication groups
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 (5)

* 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
US20080256243A1 (en) * 2003-06-04 2008-10-16 Sony Computer Entertainment Inc. Method and system for identifying available resources in a peer-to-peer network
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

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080256243A1 (en) * 2003-06-04 2008-10-16 Sony Computer Entertainment Inc. Method and system for identifying available resources in a peer-to-peer network
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 (1)

* Cited by examiner, † Cited by third party
Title
郭涛等: "《基于网络测量的P2P跨域流量优化机制》", 《计算机应用》, vol. 30, no. 4, 30 April 2010 (2010-04-30) *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104871496A (en) * 2012-12-20 2015-08-26 谷歌技术控股有限责任公司 Methods and apparatus for transmitting data between different peer-to-peer communication groups
CN104871496B (en) * 2012-12-20 2018-04-17 谷歌技术控股有限责任公司 Method and apparatus for transmitting data between different peer-to-peer communications groups
CN104767789A (en) * 2014-01-07 2015-07-08 物联智慧科技(深圳)有限公司 Information gathering center capable of establishing point-to-point connection with remote client device
CN104767789B (en) * 2014-01-07 2018-10-09 物联智慧科技(深圳)有限公司 The information aggregation center of point-to-point connection can be established with remote customer 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

Also Published As

Publication number Publication date
CN102387062B (en) 2014-04-23

Similar Documents

Publication Publication Date Title
CN111372100B (en) Distributed election-based end-to-end content distribution network system and distribution method
CN105407180B (en) The information push method and device of server
CN110048927B (en) Communication method and communication device
CN101410819B (en) Reliable, high-throughput, high-performance transport and routing mechanism for arbitrary data flows
CN103634692A (en) CDN (content distribution network) and P2P (peer-to-peer) based hybrid stream media video-on-demand system
CN111612466B (en) Consensus and resource transmission method, device and storage medium
CN106254377B (en) Support the soft load-balancing method and system of the long connection of magnanimity
CN107079050A (en) Service layer's conversation shift and shared
CN102045270A (en) Chat server system, method for constructing chat server system and chat system
JP7375203B2 (en) Account access methods and devices, storage media, and electronic devices
CN103873523B (en) client cluster access method and device
CN109905409A (en) Things-internet gateway real time bidirectional communication system based on Socket.IO
CN108494826A (en) A kind of distribution cloud storage method and system
CN111083187A (en) Industrial application service processing method and system
CN103763206B (en) Network scheduling method and gateway
CN102387062B (en) Method for improving transmission rate of peer-to-peer (p2p) node in crossing network by dynamic bridging contact
CN107959704B (en) Data processing method and home gateway
CN101662508A (en) Method for data transmission based on point-to-point protocol, device and system thereof
CN109862055A (en) A kind of satellite network communications method, agent service device and gateway
CN103685497B (en) A kind of on-line storage sharing method and system
CN102291458A (en) Method for peer-to-peer (p2p) server framework
CN105635179B (en) A kind of double net emerging systems and data transmission method
CN115669075A (en) Private network device and private lan connection, content discovery, data transmission and control method
Lai et al. A novel NAT-based approach for resource load balancing in fog computing architecture
CN101286928B (en) Method for realizing P2P stream media system based on bandwidth guaranty technique

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