CN101325579B - Method for optimizing connection download of client terminal - Google Patents

Method for optimizing connection download of client terminal Download PDF

Info

Publication number
CN101325579B
CN101325579B CN200710041852A CN200710041852A CN101325579B CN 101325579 B CN101325579 B CN 101325579B CN 200710041852 A CN200710041852 A CN 200710041852A CN 200710041852 A CN200710041852 A CN 200710041852A CN 101325579 B CN101325579 B CN 101325579B
Authority
CN
China
Prior art keywords
client
list
return
described request
server
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
CN200710041852A
Other languages
Chinese (zh)
Other versions
CN101325579A (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 B Star Technology Co ltd
Original Assignee
Shanghai B Star 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 B Star Co Ltd filed Critical Shanghai B Star Co Ltd
Priority to CN200710041852A priority Critical patent/CN101325579B/en
Publication of CN101325579A publication Critical patent/CN101325579A/en
Application granted granted Critical
Publication of CN101325579B publication Critical patent/CN101325579B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The invention provides a method for optimizing customer terminal connection, wherein a customer terminal list is stored in a server. The method includes the following steps: the customer terminal sending a request message to the server, the server receiving the request message and generating a return list; the server adding customer terminals with the identical network segment with the request customer terminal into the return list; when the customer terminal number of the return list cannot meet the required return number, adding the other customer terminals into the return list; the server transmits the return list to the request customer terminal, and establishing a connection between the requested customer terminal and the customer terminals in the return list. The invention preferably resolves the discovery and connection between the requested customer terminals and the customer terminals (peers), and realizes balance connection by improving data downloading and uploading. The invention full utilizes available resources in network, and improves the exchange efficiency of the integral network.

Description

Optimize client and connect the method for downloading
Technical field
The present invention provides a kind of client of optimizing to connect the method for downloading.
Background technology
The application software of many use P2P frameworks has appearred in popular along with P2P technology on the network.Several types of the most common softwares comprise: Internet video software, file-sharing software, Internet chat software.Wherein file-sharing software such as BT has taken 40%~70% the network bandwidth, becomes important use in the network.
In order to obtain higher discovery efficient, the many employings of present P2P structure (like BT) centralization topology is a main body, the structure of all distributed structureization topology (DHT mode) for replenishing.There are some shortcomings in this type of scheme: server employing mode is at random returned the client side list of storage, can not form optimum network between the client.The client that client and apart from each other possibly occur connects, and the client of close proximity fails to be found by it, thereby influences the exchange efficiency of overall network.
Summary of the invention
The object of the present invention is to provide a kind of client of optimizing to connect the method for downloading;
For reaching above-mentioned purpose, the present invention adopts following technical scheme:
A kind of client of optimizing connects the method for downloading, and preserves client side list in the server, it is characterized in that may further comprise the steps:
A, client send a request message to said server, and said server receives this request message, generate return-list;
B, said server will have mutually with the client of this request, and the client of same network segment adds this return-list;
C, when the client terminal quantity in the said return-list can not meet the demands return quantity the time, other client is added in the said return-list;
D, said server are sent to the client of this request with return-list, and the client in the client of described request and this return-list connects.
Further, after carrying out said step B, the client terminal quantity in the said return-list can not meet the demands when returning quantity, and is before the said step C, further comprising the steps of after said step B:
E, will be with the client physical location of described request adjacent client-side information add this return-list.
Further, after carrying out said step e, the client terminal quantity in the said return-list can not meet the demands when returning quantity, and is after said step e, before the said step C, further comprising the steps of:
E1, return with nearest client-side information of the client joining day of this request and add this return-list.
Further, adopt mode at random to select the client-side information in the client side list to add in this return-list among the said step C.
Further, after said steps A, further comprising the steps of:
F, said server judge the quantity of returning whether the client terminal quantity that is stored in the client side list meet the demands, in the time of in this way, and execution in step A then, otherwise the whole client-side informations in the said client side list are added in the return-lists execution in step D.
Further, after said step D, also comprise following download optimization step:
The client of step 20, described request is regularly calculated in section T sometime connected each client for the speed of data downloads is provided oneself;
The client of step 21, described request keeps N for oneself providing the data speed of download the fastest connection, the connection of blocking other;
The client of step 22, described request is selected an opening M connection that has got clogged at random;
The client of step 23, described request judges whether the data download of oneself is accomplished, if then change step 25, otherwise get into step 24;
Whether the client of step 24, described request reaches official hour T, if then change step 20, otherwise repeated execution of steps 24;
Step 25, end data are downloaded.
Further, if the client of described request in a certain section time T 2, all download connects the client that all is attached thereto block after, the client of described request is initiated one or more new connections at once.
Further, after said step D, also comprise following download optimization step:
The client of step 30, described request is regularly calculated in section T1 sometime and for connected each client (Peer) speed of data upload is provided;
The client of step 31, described request keeps it to provide uploading rate the fastest N1 connection, the connection of blocking other;
The client of step 32, described request is selected 1 connection that has got clogged of opening M at random;
The client of step 33, described request judges whether to satisfy the condition of uploading of forcing, if then change step 35, otherwise get into step 34;
Whether the client of step 34, described request reaches official hour T1, if, then change step 30, otherwise, repeated execution of steps 34;
Step 35, end data are uploaded.
As of the present invention another improve, if the client of described request in a certain section time T 2, after all were blocked by its client that provides the connection of uploading all to be attached thereto, the client of described request was initiated one or more new connections at once.
As another optimal way of the present invention, the said condition of uploading of forcing is time of uploading or the data volume of uploading.
Discovery between the client that the present invention has solved described request preferably and the client (Peer) be connected, and the download through improving data and uploading realizes the equilibrium that connects.Fully utilize the available resources in the network, improved the exchange efficiency of overall network.
Description of drawings
Fig. 1 is the flow chart of the embodiment of the invention one;
Fig. 2 is the flow chart of the embodiment of the invention two;
Fig. 3 uploads flow chart of steps for forcing in the embodiment of the invention three.
Embodiment
Embodiment one
As shown in Figure 1; A kind of client of optimizing connects the method for downloading, and it is ((M4-20-2-226d6c299670,192.168.6.73 that server for saving has client side list such as list structure; 6881);), the implication of each field is respectively in the tabulation: (Customer ID, client IP address, client port).May further comprise the steps:
Step 10, client send a request message to said server, and said server receives this request message, and the IP address of this client is resolved, and analyze the IP address of client, and the client side list of preserving is made amendment; The tabulation of client address and port is returned in generation, promptly returns customer list, its structure can be ((IP address, client port), (IP address, client port) ...);
Step 11, said server are judged the quantity of returning whether the client terminal quantity that is stored in the client side list meet the demands; In the time of in this way, then execution in step 12, otherwise; All client-side informations in the said server client tabulation are added in the said return-list execution in step 19;
Step 12, said server will have mutually with the client of this request, and the client-side information of same network segment adds in this return-list;
Step 13, said server are judged the quantity of returning whether the client terminal quantity in the said return-list meet the demands, if, then change step 19, otherwise, step 14 got into;
Step 14, said server will be with the client physical location of described request adjacent client-side information add return-list ((IP address, client port) ...) in; Physical location is adjacent to refer to two clients and belongs to a city, a province or a country.
Step 15, said server are judged the quantity of returning whether the client terminal quantity in the said return-list meet the demands, if, then change step 19, otherwise, step 16 got into;
Step 16, said server will add with the information of nearest client (Peer) of the client joining day of this request said return-list ((IP address, client port) ...) in;
Step 17, said server are judged the quantity of returning whether the client terminal quantity in the said return-list meet the demands, if, then change step 19, otherwise, step 18 got into;
Step 18, said server adopt mode at random that the client-side information in the client side list of its preservation is added in this return-list;
Step 19, said server send to the client of described request with said return-list, after the client of described request is received said return-list, connect with client (Peer) in the said return-list, to download or transmitting data.
Embodiment two
A kind ofly optimize the method that client connect to be downloaded, the process that connects between the client is identical with flow process among the embodiment one, therefore omission being repeated in this description this part.
After the step 19 of embodiment one, when the client of described request is carried out the data download, also comprise download optimization step as shown in Figure 2:
The client of step 20, described request is regularly calculated in section T sometime connected each client (Peer) for the speed of data downloads is provided oneself;
The client of step 21, described request keeps N for oneself providing the data speed of download the fastest connection, the connection of blocking other.Wherein, N is less than said client (Peer) sum.
The client of step 22, described request is selected an opening M connection that has got clogged at random.Wherein, M add N value less than said client (Peer) sum.The connection of selecting at random is not a condition with existing speed of download.Through selecting at random, can guarantee that the client of described request obtains the chance of data download from the low client of uploading rate (Peer).
The client of step 23, described request judges whether the data download of oneself is accomplished, if then change step 25, otherwise get into step 24;
Whether the client of step 24, described request reaches official hour T, if then change step 20, otherwise repeated execution of steps 24;
Step 25, end data are downloaded.
Embodiment three
A kind of client of optimizing connects the method for downloading; The process that connects between the client is identical with flow process among the embodiment one; And in data transmission procedure, it is identical with flow process among the embodiment two to download optimization step, therefore omission being repeated in this description this part.
After the step 19 of embodiment one; When the download among the execution embodiment two is divided into the grade step; Also carry out forcing uploading step; The client of described request is forced and is observed a certain condition of uploading, and for example must satisfy time of uploading or the data volume of uploading, and the uncontrollable uploading rate of the client of described request.After the client of described request satisfies this and uploads condition, could break off and being connected of each said client (Peer) (network go offline or fortuitous event such as outage except).This is uploaded condition and can when sending the client of said return-list to described request, be sent in the lump by said server, promptly by server sets, also can set in the relative program by the client operation of described request.This forces, and to upload step as shown in Figure 3, specifically adopts following steps to realize:
The client of step 30, described request is regularly calculated in section T1 sometime and for connected each client (Peer) speed of data upload is provided;
The client of step 31, described request keeps it to provide uploading rate the fastest N1 connection, the connection of blocking other.Wherein, N1 is less than said client (Peer) sum.
The client of step 32, described request is selected 1 connection that has got clogged of opening M at random.Wherein, M1 add N1 value less than said client (Peer) sum.Through selecting at random, can guarantee that the client of described request has an opportunity for the low client of uploading rate (Peer) data upload to be provided.
The client of step 33, described request judges whether to satisfy the condition of uploading of forcing, if then change step 35, otherwise get into step 34;
Whether the client of step 34, described request reaches official hour T1, if, then change step 30, otherwise, repeat 34 steps;
Step 35, end data are uploaded.
Among the foregoing description one and the embodiment two, the client of described request or arbitrary, if in a certain section time T 2, all downloads or upload all connected client of connection (Peer) and block after, the client of this described request is initiated N2 new connection at once.Download or upload to attempt keeping existing data.Wherein, N2 more than or equal to 1 less than said client (Peer) sum.
Discovery between the client that the present invention has solved described request preferably and the client (Peer) be connected, and the download through improving data and uploading realizes the equilibrium that connects.Fully utilize the available resources in the network, improved the exchange efficiency of overall network.

Claims (6)

1. optimize the method that client connects download for one kind, preserve client side list in the server, it is characterized in that may further comprise the steps:
A, client send a request message to said server, and said server receives this request message, and the IP address of this client is resolved, and analyze the IP address of client, and the client side list of preserving is made amendment, and generate return-list;
B, said server will have mutually with the client of this request, and the client of same network segment adds this return-list;
C, when the client terminal quantity in the said return-list can not meet the demands return quantity the time, other client is added in the said return-list;
D, said server are sent to the client of this request with return-list, and the client in the client of described request and this return-list connects;
After carrying out said step B, the client terminal quantity in the said return-list can not meet the demands when returning quantity, and is before said step C, further comprising the steps of:
E, will be with the client physical location of described request adjacent client-side information add this return-list;
After carrying out said step e, the client terminal quantity in the said return-list can not meet the demands when returning quantity,
Before the said step C, further comprising the steps of:
F, return with nearest client-side information of the client joining day of this request and add this return-list;
After said steps A, before the said step B, further comprising the steps of:
G, said server judge the quantity of returning whether the client terminal quantity that is stored in the client side list meet the demands, in the time of in this way, and execution in step B then, otherwise the whole client-side informations in the said client side list are added in the return-lists execution in step D.
2. optimization client according to claim 1 connects the method for downloading, and it is characterized in that: adopt mode at random to select the client-side information in the client side list to add in this return-list among the said step C.
3. connect the method for downloading according to arbitrary described optimization client in the claim 1 to 2, it is characterized in that: after said step D, also comprise following download optimization step:
The client of step 20, described request is regularly calculated in section T sometime connected each client for the speed of data downloads is provided oneself;
The client of step 21, described request keeps N for oneself providing the data speed of download the fastest connection, the connection of blocking other;
The client of step 22, described request is selected an opening M connection that has got clogged at random;
The client of step 23, described request judges whether the data download of oneself is accomplished, if then change step 25, otherwise get into step 24;
Whether the client of step 24, described request reaches official hour T, if then change step 20, otherwise repeated execution of steps 24;
Step 25, end data are downloaded.
4. optimization client according to claim 3 connects the method for downloading; It is characterized in that: if the client of described request is in a certain section time T 2; After all downloads connected the client obstruction that all is attached thereto, the client of described request was initiated one or more new connections at once.
5. connect the method for downloading according to arbitrary described optimization client in the claim 1 to 2, it is characterized in that: after said step D, also comprise following download optimization step:
The client of step 30, described request is regularly calculated in section T1 sometime and for connected each client (Peer) speed of data upload is provided;
The client of step 31, described request keeps it to provide uploading rate the fastest N1 connection, the connection of blocking other;
The client of step 32, described request is selected 1 connection that has got clogged of opening M at random;
The client of step 33, described request judges whether to satisfy the condition of uploading of forcing, if then change step 35, otherwise get into step 34; The said condition of uploading of forcing is time of uploading or the data volume of uploading;
Whether the client of step 34, described request reaches official hour T1, if, then change step 30, otherwise, repeated execution of steps 34;
Step 35, end data are uploaded.
6. optimization client according to claim 5 connects the method for downloading; It is characterized in that: if the client of described request is in a certain section time T 2; After all were blocked by its client that provides the connection of uploading all to be attached thereto, the client of described request was initiated one or more new connections at once.
CN200710041852A 2007-06-11 2007-06-11 Method for optimizing connection download of client terminal Active CN101325579B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200710041852A CN101325579B (en) 2007-06-11 2007-06-11 Method for optimizing connection download of client terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200710041852A CN101325579B (en) 2007-06-11 2007-06-11 Method for optimizing connection download of client terminal

Publications (2)

Publication Number Publication Date
CN101325579A CN101325579A (en) 2008-12-17
CN101325579B true CN101325579B (en) 2012-09-12

Family

ID=40188909

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200710041852A Active CN101325579B (en) 2007-06-11 2007-06-11 Method for optimizing connection download of client terminal

Country Status (1)

Country Link
CN (1) CN101325579B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368833B (en) * 2011-11-29 2013-09-04 乐视网信息技术(北京)股份有限公司 Method for carrying out segment download equalization on video information
CN104539619B (en) * 2014-12-29 2017-10-27 福建爱特点信息科技有限公司 Data processing method for internet online transaction

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN1852108A (en) * 2005-12-08 2006-10-25 华为技术有限公司 Multi-spot downloading method
CN1925444A (en) * 2006-09-14 2007-03-07 华为技术有限公司 Method for establishing point-to-point collection in P2P network and nodes in P2P network
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1710857A (en) * 2004-06-18 2005-12-21 千橡寰宇科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN1852108A (en) * 2005-12-08 2006-10-25 华为技术有限公司 Multi-spot downloading method
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN1925444A (en) * 2006-09-14 2007-03-07 华为技术有限公司 Method for establishing point-to-point collection in P2P network and nodes in P2P network

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
JP特开2006-148197A 2006.06.08
Ye Tian et al.Analyzing Multiple File Downloading in BitTorrent.《IEEE Computer Society》.2006,1-8. *
Ye Tian et al.Modeling,Analysis and Improvement for BitTorrent-Like File Sharing Network.《IEEE Communications Society subject matter experts for publication in the Proceedings IEEE Infocom》.2006,1-11. *
YeTianetal.Modeling Analysis and Improvement for BitTorrent-Like File Sharing Network.《IEEE Communications Society subject matter experts for publication in the Proceedings IEEE Infocom》.2006
郭斌.BitTorrent传输行为的监测与封堵.《中国优秀硕士学位论文全文数据库》.2006,论文22页至23页. *

Also Published As

Publication number Publication date
CN101325579A (en) 2008-12-17

Similar Documents

Publication Publication Date Title
Xie et al. Coolstreaming: Design, theory, and practice
EP2031816B1 (en) Optimal operation of hierarchical peer-to-peer networks
KR101215993B1 (en) P2P Content Distribution Network for Peer-to-Peer Live Streaming
CN101355591A (en) P2P network and scheduling method thereof
CN103957269A (en) P2P network node selection method and P2P redirect server
Hamra et al. Understanding the properties of the bittorrent overlay
CN101087239A (en) A data transmission method and device for fully utilizing bandwidth resource in peer-to-peer network
EP3576371B1 (en) Method and system for transmitting streaming media resource
US10601910B2 (en) Method for broadcasting a piece of content in an it network
WO2009076251A2 (en) Accelerating peer-to-peer content distribution
CN101325579B (en) Method for optimizing connection download of client terminal
CN102857403A (en) Instant messaging client data sharing method and system
CN1937553B (en) Reciprocal network data dispatching method based on flow media data frame
Ghareeb et al. P2PWeb: A Client/Server and P2P hybrid architecture for content delivery over internet
CN101494664B (en) P2P push type network storage method based on JXTA
Hecht et al. B-tracker: Improving load balancing and efficiency in distributed p2p trackers
CN109618011B (en) Processing system and method for improving landscape lighting cloud control platform file transmission efficiency
Ma et al. A cloud‐assisted publish/subscribe service for time‐critical dissemination of bulk content
Koskela et al. RADE: Resource-aware distributed browser-to-browser 3D graphics delivery in the web
Hisada et al. P2P live streaming system suitable for private contents distribution
Sandvik et al. The distance-availability weighted piece selection method for bittorrent: A bittorrent piece selection method for on-demand streaming
Cai et al. Qcast: A qos-aware peer-to-peer streaming system with dht-based multicast
Ceballos et al. P2P file sharing analysis for a better performance
Ye et al. Adaptive topology optimization base on bidirectional peer selection in peer-to-peer media streaming
Wu et al. Time-critical data dissemination in cooperative peer-to-peer systems

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
C56 Change in the name or address of the patentee

Owner name: SHANGHAI FUTURE BROADBAND TECHNOLOGY CO., LTD.

Free format text: FORMER NAME: SHANGHAI FUTURE BROADBAND TECHNOLOGY AND APPLICATION ENGINEERING RESEARCH CENTER CO., LTD.

CP01 Change in the name or title of a patent holder

Address after: 200336 Shanghai City Honggu Road No. 150

Patentee after: SHANGHAI B-STAR TECHNOLOGY CO.,LTD.

Address before: 200336 Shanghai City Honggu Road No. 150

Patentee before: Shanghai B-STAR Co.,Ltd.

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

Denomination of invention: Method of optimizing client connection Download

Effective date of registration: 20220121

Granted publication date: 20120912

Pledgee: Hongkou Branch of Shanghai Rural Commercial Bank Co.,Ltd.

Pledgor: SHANGHAI B-STAR TECHNOLOGY CO.,LTD.

Registration number: Y2021310000130

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

Date of cancellation: 20231026

Granted publication date: 20120912

Pledgee: Hongkou Branch of Shanghai Rural Commercial Bank Co.,Ltd.

Pledgor: SHANGHAI B-STAR TECHNOLOGY CO.,LTD.

Registration number: Y2021310000130

PC01 Cancellation of the registration of the contract for pledge of patent right