CN102882738B - The detection method and device of a kind of network access speed - Google Patents

The detection method and device of a kind of network access speed Download PDF

Info

Publication number
CN102882738B
CN102882738B CN201210328608.8A CN201210328608A CN102882738B CN 102882738 B CN102882738 B CN 102882738B CN 201210328608 A CN201210328608 A CN 201210328608A CN 102882738 B CN102882738 B CN 102882738B
Authority
CN
China
Prior art keywords
user terminal
data
address
seed
seed file
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
CN201210328608.8A
Other languages
Chinese (zh)
Other versions
CN102882738A (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.)
Beijing Qizhi Business Consulting Co ltd
Beijing Qihoo Technology Co Ltd
360 Digital Security Technology Group Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210328608.8A priority Critical patent/CN102882738B/en
Publication of CN102882738A publication Critical patent/CN102882738A/en
Application granted granted Critical
Publication of CN102882738B publication Critical patent/CN102882738B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides the detection method and device of a kind of network access speed, to solve network access speed detected in the prior art than less accurate problem.Described method includes:First user terminal receives the seed list for test access speed, and the seed list includes that several are based on the kind sub-mark of the seed file of liveness screening, the file that the seed file is downloaded when being test access speed;For the kind sub-mark in seed list, first user terminal downloads the data of correspondence seed file from least one data terminal;According to the data volume of the seed file downloaded from each data terminal in Preset Time, the network access speed of first user terminal is calculated.

Description

The detection method and device of a kind of network access speed
Technical field
The present invention relates to network technology, the detection method and device of more particularly to a kind of network access speed.
Background technology
As the user using network is more and more, in order to allow user to be best understood from the situation of used network, produce The service of network access velocity measuring, that is, the network service of testing the speed.
A kind of detection method of network access speed is to be provided for detection network access speed in the terminal of user in advance The http-server address of degree, and the file that tests the speed is set in the server.When network speed test is carried out, terminal passes through multiple lines Journey accesses the http-server, i.e., ask the file that tests the speed to the http-server by setting up multiple data cube computations.Pass through The data cube computation tests the speed the data of file described in downloading, then in the unit of account time file that tests the speed download, you can Obtain the network speed of the user.Wherein, http(Hypertext transport protocol, HTTP)It is a kind of The rule that is communicated between browser and Web server of specified in more detail, the number of web documents is transmitted by internet According to transportation protocol.
When above-mentioned this method is detected to network access speed, to a certain extent by http-server performance Limitation.Because the http-server can receive the request of data of each terminal in network, if each terminal is unlimited System to the http-server request data file, the burden of the http-server will be excessive, in some instances it may even be possible to can cause The http-server collapse.Therefore, the quantity of the thread of request data file in each terminal can be limited, with this to reduce State the burden of http-server.
But, the thread of request data file is restricted in terminal, may result in the number when network access speed is detected Quantity according to connection is fewer, and then causes the bandwidth occupancy of terminal fewer, and detected network access speed ratio is less Accurately.
The content of the invention
It is detected in the prior art to solve the invention provides the detection method and device of a kind of network access speed Network access speed than less accurate problem.
In order to solve the above problems, the invention discloses a kind of detection method of network access speed, including:
First user terminal receives the seed list for test access speed, and the seed list includes several bases In the kind sub-mark of the seed file of liveness screening, the file that the seed file is downloaded when being test access speed;
For the kind sub-mark in seed list, first user terminal downloads correspondence kind Ziwen from least one data terminal The data of part;
According to the data volume of the seed file downloaded from each data terminal in Preset Time, first user terminal is calculated Network access speed.
In the embodiment of the present invention, data terminal includes second user terminal and/or second server.
In the embodiment of the present invention, the chained address of seed file is also included in seed list;First user terminal is from least Before the described kind of data of sub-mark correspondence seed file are downloaded in one data terminal, also include:Connected by the chained address It is connected to the first server of seed file, and the download address of seed file is asked to the first server, wherein, described the The address of each data terminal for having seed file is stored in one server;Receive one of first server feedback or Multiple download address, wherein, the download address is the address of the data terminal that first server is selected.
In the embodiment of the present invention, data terminal is second user terminal, for the kind sub-mark in seed list, first user Terminal downloads the data of correspondence seed file from least one data terminal, including:For the download ground of first server feedback Location, first user terminal connects the corresponding second user terminal of each download address respectively;First user terminal concurrence from each The data of correspondence seed file are downloaded in second user terminal.
In the embodiment of the present invention, data terminal is second server, for the kind sub-mark in seed list, first user end The data that correspondence seed file is downloaded from least one data terminal are held, including:For the download address of first server feedback, First user terminal connects the corresponding second server of each download address respectively;First user terminal concurrence from each second clothes The data of correspondence seed file are downloaded in business device.
In the embodiment of the present invention, the IP address of first user terminal is also included in seed list, also included:For download ground The corresponding second user terminal in location, detects the IP address of each second user terminal respectively;By the IP of the second user terminal Address is compared with the IP address of first user terminal, and deleted from download address has identical IP ground with first user terminal The address of the second user terminal of location.
In the embodiment of the present invention, HTTP information is also included in seed file list, also included:First user Terminal connects the 3rd server by the HTTP information;Download kind sub-mark correspondence seed in the 3rd server The data of file.
In the embodiment of the present invention, the seed file based on liveness screening is to be arranged according to download time in the default time period The top n seed file filtered out after sequence, N is positive integer.
In the embodiment of the present invention, according to the data volume of the seed file downloaded from each data terminal in Preset Time, meter The network access speed of first user terminal is calculated, including:In Preset Time, the kind Ziwen downloaded from each data terminal is obtained The instantaneous maximum data amount of part, as the network access speed of first user terminal;Or, obtaining in Preset Time from each data The seed file total amount of data downloaded in end, the data volume that the unit of account time downloads is visited as the network of first user terminal Ask speed.
In the embodiment of the present invention, the network access speed of first user terminal is obtained, and show the first user terminal Network access speed.
Accordingly, the invention also discloses a kind of detection means of network access speed, it is configured in first user terminal, Including:
Receiver module, for receiving the seed list for test access speed, the seed list includes several The kind sub-mark of the seed file based on liveness screening, the file that the seed file is downloaded when being test access speed;
Download module, for from least one data terminal, downloads the data of the corresponding seed file of described kind of sub-mark;
Computing module, for the data volume according to the seed file downloaded from each data terminal in Preset Time, calculates The network access speed of the first user terminal.
Also include in the embodiment of the present invention:Display module, for obtaining the network access speed of first user terminal, and shows Show the network access speed of the first user terminal.
Compared with prior art, the present invention includes advantages below:
First, when being detected to network access speed in the prior art, all of user terminal can all be serviced from http Seed file is downloaded in device, therefore can be limited by http-server performance.Net of the present invention in detection first user terminal During network access speed, the seed list for test access speed can be first received, then for the seed in seed list Mark, first user terminal downloads the described kind of data of sub-mark correspondence seed file from least one data terminal.The present invention The data terminal that middle different user terminals are connected when detecting may be different, and can connect multiple data terminals and sets up multiple data Connection.Therefore the present invention can obtain the data of seed file from multiple data terminals, and data connect during detection network access speed The quantity for connecing can not be limited.Again according to the data volume of the seed file downloaded from each data terminal in Preset Time, meter The network access speed of first user terminal is calculated, because the quantity of data cube computation can not be limited during present invention detection, therefore Can be tried one's best occupied bandwidth, and the network access speed ratio for detecting is more accurate.
Secondly, data terminal of the present invention includes second user terminal and/or second server, and the species of data terminal is relatively more, Both the data of seed file can have been downloaded from second user terminal, it is also possible to the number of seed file is downloaded from second server According to.Downloadable data terminal is relatively more, it is hereby ensured that the quantity of data source during detection network access speed, so that really Protect the quantity of data cube computation so that the network access speed ratio of detection is more accurate.
Again, first server can be managed to all of seed file in the present invention, have seed file Each data terminal address, and then cause first user terminal request download address when, can be by pre-conditioned screening number According to end address as download address, for example, being screened etc. by the distance of first user terminal and data terminal, then feed back to First user terminal.Therefore can ensure that the seed file downloaded compares the seed file of high-quality, the i.e. data terminal to the It is relatively good for one user terminal, connects more stable.
Brief description of the drawings
Technical scheme in order to illustrate more clearly the embodiments of the present invention, below will be to that will use needed for embodiment description Accompanying drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill of field, on the premise of not paying creative work, can also obtain other according to these accompanying drawings Accompanying drawing.
Fig. 1 is a kind of detection method flow chart of network access speed described in the embodiment of the present invention;
Fig. 2 is that the data volume of seed file described in alternative embodiment of the present invention downloads distribution schematic diagram;
Fig. 3 is file download flow chart in a kind of detection method of network access speed described in alternative embodiment of the present invention;
Fig. 4 is a kind of structure of the detecting device figure of network access speed described in the embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
A kind of detection method of network access speed is to be provided for detection network access speed in the terminal of user in advance The http-server address of degree, and set test the speed file in the server, i.e., for detecting the kind Ziwen of network access speed Part.When network speed test is carried out, terminal passes through http-server described in multiple thread accesses, i.e., by setting up multiple data cube computations The file that tests the speed is asked to the http-server.By the data of the file that tested the speed described in data cube computation download, then calculate list The download of the file that tests the speed in the time of position, you can obtain the network speed of the user.
But, this method by http-server performance due to being limited so that the line of request data file in terminal Journey is restricted, and the quantity that may result in the data cube computation when network speed is tested is fewer, and then causes the bandwidth occupancy ratio of terminal Less, the network speed for being tested out is more inaccurate.
The present invention provides a kind of detection method of network access speed, and the kind can be downloaded from least one data terminal The data of sub-mark correspondence seed file, the quantity of present invention data cube computation when network access speed is detected is relatively more, and then Occupied bandwidth of being tried one's best in detection is allowd, detected network access speed ratio is more accurate.
Reference picture 1, gives a kind of detection method flow chart of network access speed described in the embodiment of the present invention.
Step 101, first user terminal receives the seed list for test access speed;
When the network access speed of first user terminal is detected, first user terminal can receive seed list first, The seed list is used to provide the seed file downloaded during detection network access speed, then the seed list can be with shape such as table Shown in 1:
Sequence number The kind sub-mark of seed file
1 Z001
...... ......
Table 1
Table 1 is only a kind of form of seed list, should not be understood as limitation of the present invention.
As shown in table 1, the seed list can not directly provide seed file, and be to provide the seed mark of seed file Know, the kind sub-mark comprising several seed files in seed list, when network access speed is detected, first user terminal can To plant the corresponding part or all of seed file of sub-mark in download seed list simultaneously.
Wherein, the seed file is the file downloaded when network access speed is detected.Seed file in seed list Kind sub-mark screened based on liveness, the screening technique can obtain each seed file in default time period Download time, because the number of times that the seed file within a period of time is downloaded is more, illustrates that the seed file is more active, because According to download time can be from high to low ranked up seed file by this, then select wherein top n seed file, add institute The seed for stating selected seed file is identified in seed list, and wherein N is positive integer.
Step 102, for the kind sub-mark in seed list, it is right that first user terminal is downloaded from least one data terminal Answer the data of seed file;
Seed file can be stored in data terminal, the number that first user terminal passes through the download seed file from data terminal According to complete the detection to the access speed of network.Therefore, by the kind sub-mark in seed list there is provided seed file, Seed file can be found, then first user terminal can download described kind of sub-mark correspondence seed file from data terminal Data.
Because each seed file is likely stored in multiple data terminals, and comprising multiple seeds in seed list Mark, therefore there are multiple seed file, i.e. first user terminals from least one when being detected to network access speed The described kind of data of sub-mark correspondence seed file are downloaded in data terminal.Can be entered using a thread for each data terminal Row is accessed, it would however also be possible to employ multiple threads conduct interviews, you can so that in detection multiple data terminals are set up with multiple data cube computations. Therefore the present invention can obtain the data of seed file from multiple data terminals, the number of data cube computation during detection network access speed Amount can not be limited.
Step 103, according to the data volume of the seed file downloaded from each data terminal in Preset Time, calculates first and uses The network access speed of family terminal.
In order to more accurately measure network access speed during detection, a detection time section can be preset i.e. pre- If the time, such as 1 minute.The data of the seed file then downloaded in Preset Time while from each data terminal, then The data volume of the seed file downloaded from each data terminal according to Preset Time, calculates the network access speed of first user terminal Degree.
The computational methods of the network access speed of first user terminal can include:
1)In Preset Time, the instantaneous maximum data amount of the seed file downloaded from each data terminal is obtained, as The network access speed of first user terminal;
The data of seed file are downloaded in Preset Time, and records the transient data amount during downloading, i.e., per for the moment The data volume of the seed file downloaded from all data terminals is carved, the maximum amount of data of wherein a certain moment download, i.e. wink is obtained When maximum amount of data, as the network access speed of first user terminal.
Reference picture 2, the data volume for giving seed file described in alternative embodiment of the present invention downloads distribution schematic diagram.
Shown in Fig. 21 minute in, the data volume of the seed file downloaded from all data terminals constitutes one continuously Download curve distribution figure, then the data volume that peak a correspondences therein are downloaded is 1024kb, and the network of first user terminal is visited Ask that speed is 1M/s.
2)The seed file total amount of data downloaded from each data terminal in Preset Time is obtained, the unit of account time downloads Data volume, as the network access speed of first user terminal.
In Preset Time, the data volume of the seed file that each moment downloads from all data terminals is being recorded, then Read group total goes out the total amount of data of the seed file downloaded from all data terminals, the number that further the unit of account time downloads According to amount, for example, the total amount of data downloaded for 1 minute is 60M, then data of user download 1M per second.Then can be by the unit interval The data volume of download, as the network access speed of the first user terminal.
In sum, when being detected to network access speed in the prior art, all of user terminal all can be from http Seed file is downloaded in server, therefore can be limited by http-server performance.The present invention is in detection first user terminal Network access speed when, the seed list for test access speed can be first received, then in seed list Sub-mark is planted, first user terminal downloads the described kind of data of sub-mark correspondence seed file from least one data terminal.This The data terminal that connects may be different when different user terminals are detected in invention, and can connect multiple data terminals and set up multiple Data cube computation.Therefore the present invention can obtain the data of seed file, number during detection network access speed from multiple data terminals Be can not be limited according to the quantity of connection.Again according to the data of the seed file downloaded from each data terminal in Preset Time Amount, calculates the network access speed of first user terminal, because the quantity of data cube computation can not be limited during present invention detection, Therefore can try one's best occupied bandwidth, and the network access speed ratio for detecting is more accurate.
Optionally, also include:The network access speed of first user terminal is obtained, and shows the first user terminal Network access speed.
Calculate after the network access speed of first user terminal, the network that can also obtain the first user terminal is visited Speed is asked, its network access speed is then shown in the user interface of first user terminal.Can be in actual treatment The network access speed of first user terminal is shown on the browser or desktop of one user terminal using forms such as a windows, Download curve distribution figure as shown in Figure 2 can also be shown in the window, user is clearly understood the net of oneself Speed.
Can be downloaded using the method for P2P, P2SP in actual treatment of the present invention, to detect network access speed.
Wherein, P2P(Point to Point, it is point-to-point)It is to download term, refers to that a user terminal is both downloading end, and It is to upload end, i.e. user terminal while downloading, is also uploaded as main frame.Using this downloading mode, user's end End is more, and speed of download is faster.
P2SP(Peer to Server&Peer points are to server and point)Compared with P2P, the part of server more, i.e., During download in addition to being downloaded from user terminal, can also be downloaded from server.Because user terminal is uncontrollable, if User closes the user terminal of oneself, and he just cannot be used as the data terminal downloaded, and server can be with all-the-time stable Used as the data terminal downloaded, therefore P2SP likely ensure that the data terminal i.e. stability of data source of download when being downloaded.
Therefore, data terminal of the present invention can be second user terminal, and the P in such as P2P is user terminal;Can also be S and P in second user terminal and second server, such as P2SP are user terminal and server;Can also be second server, If the S in P2SP is server.The present invention is not limited service end, can be according to the technology employed in actual treatment It is fixed.
Wherein, in the detection of network access speed, using the user terminal of perform detection as first user terminal, will be The download of first user terminal provides the user terminal of seed file as second user terminal.
Reference picture 3, gives in a kind of detection method of network access speed described in alternative embodiment of the present invention under file Carry flow chart.
Step 301, the first server of seed file is connected to by the chained address, and to the first server Ask the download address of seed file;
In actual treatment, all of seed file can be managed using first server, such as in first server Preserve all of seed file, and can be so that the ground of each data terminal for having seed file can also be stored in first server Location.
Therefore, the chained address of seed file, the i.e. address of first server can be included in the seed list.Therefore From data terminal before downloading data, the first server of seed file, Ran Houxiang can be connected to by the chained address The first server sends request, is that subsequent download seed file is prepared to ask the download address of seed file.
Step 302, receives one or more download address of the first server feedback;
After first server receives the request of first user terminal transmission, it is possible to be first user terminal selected data The address at end, first user terminal is sent to as download address.Wherein, first server, can be with when download address is chosen Chosen according to the physical distance of data terminal and first user terminal, for example, first user terminal is in Beijing, therefore can be preferential The address of Pekinese's data terminal is chosen as download address.Certainly, it is also possible to be carried out according to other principles in P2P in specific implementation Choose, because the choosing method of download address is prior art, therefore the present invention is repeated no more.
Then, first user terminal can just receive the download address of first server feedback, due to first server The download address of feedback is probably multiple, therefore first user terminal can receive the address of one or more data terminals.
Step 303, for the download address of first server feedback, first user terminal connects each download address respectively Corresponding data terminal;
After receiving the download address of first server feedback, data terminal may be coupled to by the download address, because This can connect the corresponding data terminal of each download address, be connected to after data terminal, can just carry out the download of seed file.
Therefore, if the data terminal is second user terminal, for the download address of first server feedback, first uses Family terminal connects the corresponding second user terminal of each download address respectively;If the data terminal is second server, it is directed to The download address of first server feedback, first user terminal connects the corresponding second server of each download address respectively.
Step 304, concurrently downloads the data of correspondence seed file from each data terminal.
Due to providing the kind sub-mark of multiple seed files in seed list, and to each seed file, server inspection That surveys meets pre-conditioned data terminal address and may have multiple, therefore, when being downloaded, each seed file may be deposited In multiple download address.Therefore for multiple seed files, there is the situation of multiple download address in each seed file again, can be with A data for the concurrent download kind sub-mark correspondence seed file from each data terminal, i.e., download from the multiple address and plant simultaneously The data of subfile.
If the data terminal is second user terminal, correspondence seed file is concurrently downloaded from each second user terminal Data.If the data terminal is second server, the number of correspondence seed file is concurrently downloaded from each second server According to.
Optionally, the IP address of first user terminal is also included in the seed list, described method also includes:
For the corresponding second user terminal of download address, the IP address of each second user terminal is detected respectively;By institute The IP address and the IP address of first user terminal for stating second user terminal are compared, and are deleted from download address and are used with first Family terminal has the address of the second user terminal of identical ip addresses.
In order to ensure the accuracy of the network access speed of detection, in addition it is also necessary to which local area network is filtered.Because, this The signified network of the described network access speed of invention is mainly external network, and internal network is the user terminal in LAN In be likely to preserve seed file, if server return data terminal address be the user terminal in LAN address, The data of seed file can be downloaded from internal network, therefore the network access speed of detection can be caused inaccurate.
Therefore, the IP address of first user terminal is also included in the seed list, the IP address is Virtual network operator The IP address of each user is distributed to, i.e., the user terminal for carrying out business of networking using same router there can be identical IP ground Location, therefore the other users terminal for sharing same router with first user terminal has identical IP address, using with all the way It is that the user terminal with identical ip addresses shares same LAN by device.
In order to ensure the accuracy of the network access speed of detection, when carrying out local area network filtering, it is first determined first service Whether the second user terminal corresponding to download address that device is returned, be use in same LAN with the first user terminal Family terminal.Therefore the IP address of the second user terminal corresponding to each download address is obtained respectively, and described second is used The IP address of family terminal is compared with the IP address of first user terminal, if the IP address and first of a certain second user terminal The IP address of user terminal is identical, then the second user terminal belongs to same LAN with the first user terminal, therefore can To delete the address of the second user terminal from download address, so as to realize local area network filtering.
Optionally, HTTP information is also included in the seed file list, described method also includes:
First user terminal connects the 3rd server by the HTTP information;In downloading the 3rd server Plant the data of sub-mark correspondence seed file.
The present invention is except above-mentioned method(Such as P2P and P2SP)Outward, can also be by http protocol to the number of seed file According to being downloaded.Therefore, also including HTTP information it is HTTP information, first user in the seed file list Terminal may be coupled to the 3rd server by the HTTP information.3rd server is the service based on http protocol Device, for example, server of the feedback seed list to first user terminal.
First user terminal connects the 3rd server by the HTTP information, then can be from described the Kind of a data for sub-mark correspondence seed file are downloaded in three servers.
To sum up, first server can provide the address of data terminal for first user terminal;Second server is first The download of user terminal provides the server of seed file;3rd server is based on the server of http protocol, can be first User terminal feeds back seed list, while can also be based on http protocol for the download of first user terminal provides seed file. Above-mentioned three kinds of servers are based in the present invention, can be realized to network access by P2P, P2SP and three kinds of methods of http protocol The detection of speed, is thus provided that the data cube computation more than comparing so that the network access speed of detection is more accurate.
In sum, data terminal of the present invention includes second user terminal and/or second server, and the species of data terminal compares It is many, the data of seed file can be both downloaded from second user terminal, it is also possible to seed file is downloaded from second server Data.Downloadable data terminal is relatively more, it is hereby ensured that the quantity of data source during detection network access speed, so that The quantity of data cube computation must be ensured so that the network access speed ratio of detection is more accurate.
Secondly, first server can be managed to all of seed file in the present invention, have seed file Each data terminal address, and then cause first user terminal request download address when, can be by pre-conditioned screening number According to end address as download address, for example, being screened etc. by the distance of first user terminal and data terminal, then feed back to First user terminal.Therefore can ensure that the seed file downloaded compares the seed file of high-quality, the i.e. data terminal to the It is relatively good for one user terminal, connects more stable.
Again, in order to ensure detection network access speed accuracy, present invention additionally comprises the method for local area network filtering.
Reference picture 4, gives a kind of structure of the detecting device figure of network access speed described in the embodiment of the present invention.
Accordingly, present invention also offers a kind of detection means of network access speed, including:Receiver module 11, download Module 12 and computing module 13, wherein:
Receiver module 11, for receiving the seed list for test access speed, the seed list includes some The kind sub-mark of the individual seed file based on liveness screening, the file that the seed file is downloaded when being test access speed;
Download module 12, for from least one data terminal, downloads the number of the corresponding seed file of described kind of sub-mark According to;
Computing module 13, for the data volume according to the seed file downloaded from each data terminal in Preset Time, meter Calculate the network access speed of first user terminal.
Optionally, the data terminal includes second user terminal and/or second server.
Optionally, the chained address of seed file is also included in the seed list;
Described device also includes:
First link block, the first server for being connected to seed file by the chained address, and to described First server asks the download address of seed file, wherein, stored in the first server and have each of seed file The address of individual data terminal;
Download address receiver module, one or more download address for receiving the first server feedback, wherein, The download address is the address of the data terminal that first server is selected.
Optionally, if the data terminal is second user terminal, the download module 12, including:
First connection submodule, for the download address fed back for first server, first user terminal is connected respectively The corresponding second user terminal of each download address;
First downloads submodule, the data for concurrently downloading correspondence seed file from each second user terminal.
Optionally, the data terminal be second server, the download module 12, including:
Second connection submodule, for the download address fed back for first server, first user terminal is connected respectively The corresponding second server of each download address;
Second downloads submodule, the data for concurrently downloading correspondence seed file from each second server.
Optionally, the IP address of first user terminal is also included in the seed list, described device also includes:Address Filtering module, the address filtering module includes:
Detection sub-module, for for the corresponding second user terminal of download address, each second user end being detected respectively The IP address at end;
Filter submodule, for the IP address of the second user terminal and the IP address of first user terminal to be compared Compared with deletion has the address of the second user terminal of identical ip addresses with first user terminal from download address.
Optionally, HTTP information is also included in the seed file list, described device also includes:
Link block, the 3rd server is connected for first user terminal by the HTTP information;
Data download module, the data for downloading kind sub-mark correspondence seed file in the 3rd server.
Optionally, after the seed file based on liveness screening according to download time in the default time period to sort The top n seed file for filtering out, N is positive integer.
Optionally, the computing module 13, in Preset Time, obtaining the kind Ziwen downloaded from each data terminal The instantaneous maximum data amount of part, as the network access speed of first user terminal, or, obtaining in Preset Time from each data The seed file total amount of data downloaded in end, the data volume that the unit of account time downloads is visited as the network of first user terminal Ask speed.
Optionally, described device also includes:
Display module, for obtaining the network access speed of first user terminal, and shows the first user terminal Network access speed.
In sum, when being detected to network access speed in the prior art, all of user terminal all can be from http Seed file is downloaded in server, therefore can be limited by http-server performance.The present invention is in detection first user terminal Network access speed when, the seed list for test access speed can be first received, then in seed list Sub-mark is planted, first user terminal downloads the described kind of data of sub-mark correspondence seed file from least one data terminal.This The data terminal that connects may be different when different user terminals are detected in invention, and can connect multiple data terminals and set up multiple Data cube computation.Therefore the present invention can obtain the data of seed file, number during detection network access speed from multiple data terminals Be can not be limited according to the quantity of connection.Again according to the data of the seed file downloaded from each data terminal in Preset Time Amount, calculates the network access speed of first user terminal, because the quantity of data cube computation can not be limited during present invention detection, Therefore can try one's best occupied bandwidth, and the network access speed ratio for detecting is more accurate.
Secondly, data terminal of the present invention includes second user terminal and/or second server, and the species of data terminal is relatively more, Both the data of seed file can have been downloaded from second user terminal, it is also possible to the number of seed file is downloaded from second server According to.Downloadable data terminal is relatively more, it is hereby ensured that the quantity of data source during detection network access speed, so that really Protect the quantity of data cube computation so that the network access speed ratio of detection is more accurate.
Again, first server can be managed to all of seed file in the present invention, have seed file Each data terminal address, and then cause first user terminal request download address when, can be by pre-conditioned screening number According to end address as download address, for example, being screened etc. by the distance of first user terminal and data terminal, then feed back to First user terminal.Therefore can ensure that the seed file downloaded compares the seed file of high-quality, the i.e. data terminal to the It is relatively good for one user terminal, connects more stable.
Again, in order to ensure detection network access speed accuracy, present invention additionally comprises the method for local area network filtering.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part is illustrated referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
The present invention can be described in the general context of computer executable instructions, such as program Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type Part, data structure etc..The present invention can also be in a distributed computing environment put into practice, in these DCEs, by Remote processing devices connected by communication network perform task.In a distributed computing environment, program module can be with In local and remote computer-readable storage medium including including storage device.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between there is any this actual relation or order.And, term " including ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, commodity or equipment including a series of key elements not only include that A little key elements, but also other key elements including being not expressly set out, or also include for this process, method, commodity or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", does not arrange Except also there is other identical element in the process including the key element, method, commodity or equipment.
Above to the detection method and device of a kind of network access speed provided by the present invention, it is described in detail, Specific case used herein is set forth to principle of the invention and implementation method, and the explanation of above example is use Understand the method for the present invention and its core concept in help;Simultaneously for those of ordinary skill in the art, according to of the invention Thought, will change in specific embodiments and applications, and in sum, this specification content should not be construed as Limitation of the present invention.

Claims (9)

1. a kind of detection method of network access speed, including:
First user terminal receives the seed list for test access speed, and the seed list includes that several are based on living The kind sub-mark of the seed file of jerk screening and the chained address of seed file, when the seed file is test access speed The file of download, the seed file based on liveness screening is screening after being sorted according to download time in the default time period The top n seed file for going out, N is positive integer, and each seed file is stored in multiple data terminals, the chain of the seed file Ground connection location refers to the address of first server, and the first server is used to manage seed file, and the liveness is under Number of times is carried to determine;
For the kind sub-mark in seed list, first user terminal downloads correspondence seed file from least one data terminal Data;
According to the data volume of the seed file downloaded from each data terminal in Preset Time, the network of first user terminal is calculated Access speed, the data terminal includes second user terminal and/or second server;
Also include the IP address of first user terminal in the seed list, described method also includes:For download address pair The second user terminal answered, detects the IP address of each second user terminal respectively;By the IP address of the second user terminal IP address with first user terminal is compared, and deleted from download address has identical ip addresses with first user terminal The address of second user terminal.
2. method according to claim 1, the first user terminal downloads the seed from least one data terminal Before the data of mark correspondence seed file, also include:
The first server of seed file is connected to by the chained address, and seed file is asked to the first server Download address, wherein, the address of each data terminal for having seed file is stored in the first server;
One or more download address of the first server feedback are received, wherein, the download address is first server The address of selected data terminal.
3. method according to claim 2, described in seed list if the data terminal is second user terminal Sub-mark is planted, first user terminal downloads the data of correspondence seed file from least one data terminal, including:
For the download address of first server feedback, first user terminal connects each download address corresponding second and uses respectively Family terminal;
First user terminal concurrence downloads the data of correspondence seed file from each second user terminal.
4. method according to claim 2, the data terminal is second server, the seed in seed list Mark, first user terminal downloads the data of correspondence seed file from least one data terminal, including:
For the download address of first server feedback, first user terminal connects corresponding second clothes of each download address respectively Business device;
First user terminal concurrence downloads the data of correspondence seed file from each second server.
5., according to any described method of Claims 1-4, HTTP information is also included in the seed list, Described method also includes:
First user terminal connects the 3rd server by the HTTP information;
Download the data of kind sub-mark correspondence seed file in the 3rd server.
6. method according to claim 2, described according to the seed file downloaded from each data terminal in Preset Time Data volume, calculate first user terminal network access speed, including:
In Preset Time, the instantaneous maximum data amount of the seed file downloaded from each data terminal is obtained, used as first The network access speed of family terminal;
Or, the seed file total amount of data downloaded from each data terminal in Preset Time is obtained, what the unit of account time downloaded Data volume, as the network access speed of first user terminal.
7. method according to claim 1, also includes:
The network access speed of first user terminal is obtained, and shows the network access speed of the first user terminal.
8. a kind of detection means of network access speed, is configured in first user terminal, including:
Receiver module, for receiving the seed list for test access speed, the seed list includes that several are based on The kind sub-mark of the seed file of liveness screening and the chained address of seed file, the seed file is test access speed When the file downloaded, the seed file based on liveness screening after being sorted according to download time in the default time period to sieve The top n seed file selected, N is positive integer, and each seed file is stored in multiple data terminals, the seed file Chained address refers to the address of first server, and the first server is used to manage seed file, the liveness foundation Download time determines;
Download module, for from least one data terminal, downloads the data of the corresponding seed file of described kind of sub-mark;
Computing module, for the data volume according to the seed file downloaded from each data terminal in Preset Time, calculates described The network access speed of first user terminal, the data terminal includes second user terminal and/or second server;
Also include the IP address of first user terminal in the seed list, described device also includes:Address filtering module, institute Stating address filtering module includes:
Detection sub-module, for for the corresponding second user terminal of download address, each second user terminal being detected respectively IP address;
Filter submodule, for the IP address of the second user terminal and the IP address of first user terminal to be compared, The address of the second user terminal that there are identical ip addresses with first user terminal is deleted from download address.
9. device according to claim 8, also includes:
Display module, for obtaining the network access speed of first user terminal, and shows the network of the first user terminal Access speed.
CN201210328608.8A 2012-09-06 2012-09-06 The detection method and device of a kind of network access speed Active CN102882738B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210328608.8A CN102882738B (en) 2012-09-06 2012-09-06 The detection method and device of a kind of network access speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210328608.8A CN102882738B (en) 2012-09-06 2012-09-06 The detection method and device of a kind of network access speed

Publications (2)

Publication Number Publication Date
CN102882738A CN102882738A (en) 2013-01-16
CN102882738B true CN102882738B (en) 2017-06-20

Family

ID=47483892

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210328608.8A Active CN102882738B (en) 2012-09-06 2012-09-06 The detection method and device of a kind of network access speed

Country Status (1)

Country Link
CN (1) CN102882738B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348680B (en) * 2013-08-08 2019-11-12 腾讯科技(深圳)有限公司 The method and device of wire-speed detection
CN105335526A (en) * 2015-12-04 2016-02-17 北京京东尚科信息技术有限公司 Image loading method and device
CN105681124B (en) * 2015-12-25 2019-05-21 北京奇虎科技有限公司 A kind of wire-speed detection method and device
CN106028381B (en) * 2016-05-24 2019-10-25 广州杰赛科技股份有限公司 A kind of method and device for testing transmission rate on mobile terminals
CN112055036A (en) * 2019-06-05 2020-12-08 阿里巴巴集团控股有限公司 Data downloading method, device, equipment, system and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009568A (en) * 2006-01-24 2007-08-01 腾讯科技(深圳)有限公司 A method and system for the data download in the P2P network
CN102123063A (en) * 2011-04-26 2011-07-13 杭州华三通信技术有限公司 Method and device for detecting link bandwidth

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100518104C (en) * 2007-06-25 2009-07-22 中兴通讯股份有限公司 Speed-measuring resource dynamic distributing method and system for network speed-measuring system
US9215086B2 (en) * 2007-10-30 2015-12-15 Centurylink Intellectual Property Llc System and method for an integrated DSL/cable modem performance test
US20090190483A1 (en) * 2008-01-25 2009-07-30 Inventec Corporation Network transmission system and a testing method thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009568A (en) * 2006-01-24 2007-08-01 腾讯科技(深圳)有限公司 A method and system for the data download in the P2P network
CN102123063A (en) * 2011-04-26 2011-07-13 杭州华三通信技术有限公司 Method and device for detecting link bandwidth

Also Published As

Publication number Publication date
CN102882738A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
CN102882738B (en) The detection method and device of a kind of network access speed
DE60126798T2 (en) METHOD FOR BROWSING AND ANALYZING INFORMATION IN DATA NETWORKS
CN104283933B (en) Method, client and the system of downloading data
CN104410691B (en) A kind of website accelerated method and system based on content distributing network
CN103036977B (en) Business pushing method and pushing system based on content distribution network
CN108199921A (en) The method, apparatus and storage medium of a kind of simulation test
CN103414608B (en) Rapid web flow collection statistical system and method
CN107249049A (en) A kind of method and apparatus screened to the domain name data that network is gathered
CN109768879A (en) The determination method, apparatus and server of target service server
CN104202220A (en) Pressure test method and pressure test device
CN103825919B (en) A kind of method, the apparatus and system of data cached resource
CN102055815B (en) System for acquiring local domain name analyses server of caller
CN104301171B (en) A kind of network for formance measuring method and system based on DNS authority server
CN109873734A (en) A kind of bottom data monitoring method, medium, equipment and device
CN110428368A (en) A kind of algorithm evaluation method, device, electronic equipment and readable storage medium storing program for executing
CN109063158A (en) A kind of method, equipment, system and the medium of the inquiry of website visiting ranking information
CN108334444A (en) Various dimensions dynamic combined shunts method of servicing, device, terminal and storage medium
CN105794150B (en) Method for measuring end-to-end Internet application performance
CN102123063B (en) Method and device for detecting link bandwidth
CN105827454A (en) Method and system for constructing topologic CDN (content delivery network) model
CN103678312B (en) A kind of method and client for recommending network address
CN103793509B (en) Group figure grasping means and device
CN105959361A (en) Task distribution method, task distribution device, and task distribution system
CN105512020B (en) Test method and device
CN105100151B (en) A kind of method, apparatus and system of content distribution

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee after: Beijing Qizhi Business Consulting Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

CP01 Change in the name or title of a patent holder
TR01 Transfer of patent right

Effective date of registration: 20220329

Address after: 100016 1773, 15 / F, 17 / F, building 3, No.10, Jiuxianqiao Road, Chaoyang District, Beijing

Patentee after: Sanliu0 Digital Security Technology Group Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Beijing Qizhi Business Consulting Co.,Ltd.

TR01 Transfer of patent right