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

Method for optimizing connection download of client terminal Download PDF

Info

Publication number
CN101325579A
CN101325579A CNA2007100418525A CN200710041852A CN101325579A CN 101325579 A CN101325579 A CN 101325579A CN A2007100418525 A CNA2007100418525 A CN A2007100418525A CN 200710041852 A CN200710041852 A CN 200710041852A CN 101325579 A CN101325579 A CN 101325579A
Authority
CN
China
Prior art keywords
client
list
return
request
described request
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
CNA2007100418525A
Other languages
Chinese (zh)
Other versions
CN101325579B (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

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 invention provides a kind of client of optimizing and connect the method for downloading.
Background technology
The application software of many use P2P frameworks has appearred in popular along with the P2P technology on the network.The most common a few class 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 (as BT) centralization topology is a main body, the structure of all distributed structure 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 may 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 described server, and described server receives this request message, generate return-list;
B, described 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 described return-list can not meet the demands return quantity the time, other client is added in the described return-list;
D, described 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.
As a kind of improvement of the present invention, after carrying out described step B, the client terminal quantity in the described return-list can not meet the demands when returning quantity, and is before described step C, further comprising the steps of:
E, the client-side information adjacent with the client physical location of described request added this return-list.
As another improvement of the present invention, after carrying out described step e, the client terminal quantity in the described return-list can not meet the demands when returning quantity, and is before described 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.
As a kind of optimal way of the present invention, adopt mode at random to select the client-side information in the client side list to add in this return-list among the described step C.
One improve again as of the present invention, before the described step B, further comprising the steps of after described steps A:
G, described server judge the quantity of returning whether the client terminal quantity that is stored in the client side list meet the demands, as the time be execution in step B then, otherwise the whole client-side informations in the described client side list are added in the return-lists execution in step D.
One improve again as of the present invention, after described step D, also comprise following download optimization step:
The client of step 20, described request regularly is provided by the speed of connected each client for oneself providing data to download in section T sometime;
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 selects to open M connection that has got clogged at random;
The client of step 23, described request judges whether the data download of oneself is finished, if then change step 25, otherwise enter 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.
One improve again as of the present invention, if the client of described request in a certain period, all downloads connect the client that all is attached thereto block after, the client of described request is initiated one or more new connections at once.
One improve again as of the present invention, after described step D, also comprise following download optimization step:
The client of step 30, described request is regularly calculated in section T1 sometime and is provided the speed of data upload for connected each client (Peer);
The client of step 31, described request keeps it that the fastest N1 of uploading rate connection, the connection of blocking other are provided;
The client of step 32, described request selects to open M1 connection that has got clogged at random;
The client of step 33, described request judges whether to satisfy forces the condition of uploading, if then change step 35, otherwise enter 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 period, 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 described 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 by improving data and uploading realizes the equilibrium that connects.Fully utilize 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, server preserves client side list such as list structure is ((M4-20-2-226d6c299670,192.168.6.73,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 described server, and described 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, described server are judged the quantity of returning whether the client terminal quantity that is stored in the client side list meet the demands, as the time be, then execution in step 12, otherwise, all client-side informations in the described server client tabulation are added in the described return-list execution in step 19;
Step 12, described 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, described server are judged the quantity of returning whether the client terminal quantity in the described return-list meet the demands, if, then change step 19, otherwise, step 14 entered;
Step 14, described 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, described server are judged the quantity of returning whether the client terminal quantity in the described return-list meet the demands, if, then change step 19, otherwise, step 16 entered;
Step 16, described server will add with the information of nearest client (Peer) of the client joining day of this request described return-list ((IP address, client port) ...) in;
Step 17, described server are judged the quantity of returning whether the client terminal quantity in the described return-list meet the demands, if, then change step 19, otherwise, step 18 entered;
Step 18, described 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, described server send to the client of described request with described return-list, after the client of described request is received described return-list, connect with client (Peer) in the described 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 regularly is provided by the speed of connected each client (Peer) for oneself providing data to download in section T sometime;
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 described client (Peer) sum.
The client of step 22, described request selects to open M connection that has got clogged at random.Wherein, M adds that the value of N is less than described client (Peer) sum.The connection of Xuan Zeing is not a condition with existing speed of download at random.By 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 finished, if then change step 25, otherwise enter 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 a certain condition of uploading of observing, 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 disconnect and being connected of each described client (Peer) (network go offline or fortuitous event such as outage except).This is uploaded condition and can be sent in the lump when sending described return-list to the client of described request by described server, is promptly set by server, also can set in the relative program by the client operation of described request.This forces uploads 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 is provided the speed of data upload for connected each client (Peer);
The client of step 31, described request keeps it that the fastest N1 of uploading rate connection, the connection of blocking other are provided.Wherein, N1 is less than described client (Peer) sum.
The client of step 32, described request selects to open M1 connection that has got clogged at random.Wherein, M1 adds that the value of N1 is less than described client (Peer) sum.By selecting at random, can guarantee that the client of described request has an opportunity to provide data upload for the low client of uploading rate (Peer).
The client of step 33, described request judges whether to satisfy forces the condition of uploading, if then change step 35, otherwise enter 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 described 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 by improving data and uploading realizes the equilibrium that connects.Fully utilize available resources in the network, improved the exchange efficiency of overall network.

Claims (10)

1, optimize client and connect the method for downloading, preserve client side list in the server, it is characterized in that may further comprise the steps:
A, client send a request message to described server, and described server receives this request message, generate return-list;
B, described 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 described return-list can not meet the demands return quantity the time, other client is added in the described return-list;
D, described 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.
2, optimization client according to claim 1 connects the method for downloading, it is characterized in that: after carrying out described step B, client terminal quantity in the described return-list can not meet the demands when returning quantity, and is before described step C, further comprising the steps of:
E, the client-side information adjacent with the client physical location of described request added this return-list.
3, optimization client according to claim 2 connects the method for downloading, it is characterized in that: after carrying out described step e, client terminal quantity in the described return-list can not meet the demands when returning quantity, and is before described 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.
4, 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 described step C.
5, optimization client according to claim 1 connects the method for downloading, and it is characterized in that: before the described step B, further comprising the steps of after described steps A:
G, described server judge the quantity of returning whether the client terminal quantity that is stored in the client side list meet the demands, as the time be execution in step B then, otherwise the whole client-side informations in the described client side list are added in the return-lists execution in step D.
6, connect the method for downloading according to arbitrary described optimization client in the claim 1 to 5, it is characterized in that: after described step D, also comprise following download optimization step:
The client of step 20, described request regularly is provided by the speed of connected each client for oneself providing data to download in section T sometime;
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 selects to open M connection that has got clogged at random;
The client of step 23, described request judges whether the data download of oneself is finished, if then change step 25, otherwise enter 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.
7, optimization client according to claim 6 connects the method for downloading, it is characterized in that: if the client of described request is in a certain period, 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.
8, connect the method for downloading according to arbitrary described optimization client in the claim 1 to 5, it is characterized in that: after described step D, also comprise following download optimization step:
The client of step 30, described request is regularly calculated in section T1 sometime and is provided the speed of data upload for connected each client (Peer);
The client of step 31, described request keeps it that the fastest N1 of uploading rate connection, the connection of blocking other are provided;
The client of step 32, described request selects to open M1 connection that has got clogged at random;
The client of step 33, described request judges whether to satisfy forces the condition of uploading, if then change step 35, otherwise enter 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.
9, optimization client according to claim 8 connects the method for downloading, it is characterized in that: if the client of described request is in a certain period, 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.
10, optimization client according to claim 8 connects the method for downloading, and it is characterized in that: the described condition of uploading of forcing is time of uploading or the data volume of uploading.
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 true CN101325579A (en) 2008-12-17
CN101325579B 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)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368833A (en) * 2011-11-29 2012-03-07 乐视网信息技术(北京)股份有限公司 Method for carrying out segment download equalization on video information
CN104539619A (en) * 2014-12-29 2015-04-22 芜湖乐锐思信息咨询有限公司 Data processing system and method for internet online trading

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100459497C (en) * 2004-06-18 2009-02-04 千橡世纪科技发展(北京)有限公司 Method and method for realizing document accelerated download
CN100539502C (en) * 2005-12-08 2009-09-09 华为技术有限公司 The method that a kind of multiple spot is downloaded
CN101098272A (en) * 2006-06-27 2008-01-02 腾讯科技(深圳)有限公司 Seed enquiring method of P2P system and P2P server
CN100488146C (en) * 2006-09-14 2009-05-13 华为技术有限公司 Method for establishing point-to-point collection in P2P network and nodes in P2P network

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102368833A (en) * 2011-11-29 2012-03-07 乐视网信息技术(北京)股份有限公司 Method for carrying out segment download equalization on video information
CN104539619A (en) * 2014-12-29 2015-04-22 芜湖乐锐思信息咨询有限公司 Data processing system and method for internet online trading
CN104539619B (en) * 2014-12-29 2017-10-27 福建爱特点信息科技有限公司 Data processing method for internet online transaction

Also Published As

Publication number Publication date
CN101325579B (en) 2012-09-12

Similar Documents

Publication Publication Date Title
EP2031816B1 (en) Optimal operation of hierarchical peer-to-peer networks
US20090182815A1 (en) Accelerating peer-to-peer content distribution
KR101215993B1 (en) P2P Content Distribution Network for Peer-to-Peer Live Streaming
CN101355591A (en) P2P network and scheduling method thereof
Hamra et al. Understanding the properties of the bittorrent overlay
CN103957269A (en) P2P network node selection method and P2P redirect server
CN101483604A (en) Method, apparatus and system for resource list sending
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
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
Skevik et al. Analysis of bittorrent and its use for the design of a p2p based streaming protocol for a hybrid cdn
CN101494664B (en) P2P push type network storage method based on JXTA
Hwang et al. EAFR-based DLNA proxy for high-quality video distribution in extended home space
Hecht et al. B-tracker: Improving load balancing and efficiency in distributed p2p trackers
Ma et al. A cloud‐assisted publish/subscribe service for time‐critical dissemination of bulk content
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
Erman Extending bittorrent for streaming applications
CN102291457A (en) Game content distribution system based on Barserver
CN107800567A (en) A kind of method for building up of the P2P stream media network topological models of mixed mode
Ye et al. Adaptive topology optimization base on bidirectional peer selection in peer-to-peer media streaming
Favalli et al. Improved multicast algorithm for overlay multicast in P2P based video streaming
Krini et al. Tool to derive and calculate safety parameter

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
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

PC01 Cancellation 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