CN105681124A - Network speed detection method and device - Google Patents

Network speed detection method and device Download PDF

Info

Publication number
CN105681124A
CN105681124A CN201510997418.9A CN201510997418A CN105681124A CN 105681124 A CN105681124 A CN 105681124A CN 201510997418 A CN201510997418 A CN 201510997418A CN 105681124 A CN105681124 A CN 105681124A
Authority
CN
China
Prior art keywords
speed
test resource
identification information
terminal
route
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
CN201510997418.9A
Other languages
Chinese (zh)
Other versions
CN105681124B (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 CN201510997418.9A priority Critical patent/CN105681124B/en
Publication of CN105681124A publication Critical patent/CN105681124A/en
Application granted granted Critical
Publication of CN105681124B publication Critical patent/CN105681124B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Abstract

The invention relates to a network speed detection method and device. The network speed detection method comprises the steps: responding a speed detection command transmitted by a terminal, and detecting speeds of the terminal when the terminal downloads test resources through different wideband lines; determining a current network speed of the terminal according to the test resource downloading speed of each wideband line. By adopting the technical scheme provided by the invention, a problem of detection inaccuracy due to hijack of a provider or temporary adjustment of wideband lines in a wideband detecting process can be effectively avoided; the detection accuracy of the network speed is improved, and the detection experience of a user is improved.

Description

A kind of wire-speed detection method and device
Technical field
The present invention relates to technical field of the computer network, in particular to a kind of wire-speed detection method and device.
Background technology
Along with popularizing of internet, user is more and more higher to the requirement of bandwidth speed, and also this different operator is constantly being increased bandwidth and network speed. And how to help user to measure user accurately and be currently accessed the actual speed in broadband, and preventing in wide band detection process, the inaccurate problems demand of detection caused owing to being kidnapped by operator or adjust bandwidth connections temporarily solves.
In prior art, it is merely by user and downloads the average speed of big file installation kit or open the speed of news web page to judge the bandwidth speed of user. But actually operator can kidnap download file or adjust bandwidth connections in this process temporarily, and cause the access speed of contemporary broadband that user measures the true network speed of non-user, affect the detection experience of user.
Summary of the invention
In view of the above problems, it is proposed that the present invention is to provide a kind of wire-speed detection method and device overcoming the problems referred to above or solving or slow down the problems referred to above at least in part, to improve the accuracy rate of wire-speed detection, the detection promoting user is experienced.
According to an aspect of the invention, it is provided a kind of wire-speed detection method, described method includes:
In response to the instruction of testing the speed that terminal sends, detect described terminal and downloaded the speed of test resource by different broadbands route;
Speed according to each broadband route download test resource determines the current network speed of described terminal.
Alternatively, before the described terminal of described detection downloads the speed of test resource by different broadbands route, also include:
Obtain the download address of test resource corresponding to different broadbands route;
The download address of test resource corresponding for each broadband route is sent to described terminal, so that described terminal downloads corresponding test resource according to described download address.
Alternatively, the described terminal of described detection downloads the speed of test resource by different broadbands route, specifically includes:
Detect described terminal and download the speed of corresponding test resource according to described download address.
Alternatively, described test resource is the page resource of preset file bag and/or website.
Alternatively, described method also includes:
Described test resource is changed according to predeterminated frequency.
Alternatively, described test resource has identification information;
Correspondingly, described according to the predeterminated frequency described test resource of change, specifically include:
Change the identification information of described test resource;
Before the described terminal of described detection downloads the speed of test resource by different broadbands route, described method also includes:
First identification information of described test resource is sent to described terminal, so that described first identification information and the second identification information are mated by described terminal, and feedback fits through message when fitting through, described first identification information is the identification information of described test resource, and described second identification information is the identification information of the test resource of described terminal downloads;
Receiving when fitting through message of described terminal feedback, perform the step that the described terminal of described detection downloads the speed of test resource by different broadbands route.
Alternatively, described test resource has identification information;
Correspondingly, described according to the predeterminated frequency described test resource of change, specifically include:
Change the identification information of described test resource;
Before the described terminal of described detection downloads the speed of test resource by different broadbands route, described method also includes:
Receiving the first identification information that described terminal sends, described first identification information is the identification information of the test resource of described terminal downloads;
Described first identification information is mated with the second identification information prestored, when fitting through, performing the step that the described terminal of described detection downloads the speed of test resource by different broadbands route, described second identification information is the identification information of described test resource.
Alternatively, the described speed according to each broadband route download test resource determines the current network speed of described terminal, specifically includes:
Speed according to described each broadband route download test resource determines the instant network speed of described terminal;
The history network speed of the instant network speed according to described terminal and this terminal determines the current network speed of described terminal.
Alternatively, the described current network speed determining described terminal according to the instant network speed of described terminal and the history network speed of this terminal, specifically include:
For the weight that described instant network speed and described history network speed are differently configured, foundation weighted average method determines described current network speed.
According to another aspect of the present invention, it is provided that a kind of wire-speed detection device, described device includes:
Detection unit, is adapted for the instruction of testing the speed that terminal sends, and detects described terminal and is downloaded the speed of test resource by different broadbands route;
Determining unit, each broadband route being suitable to detect according to described detection unit is downloaded the speed of test resource and is determined the current network speed of described terminal.
Alternatively, described device also includes:
Acquiring unit, is suitable to, before described detection unit detects the speed that described terminal downloads test resource by different broadbands route, obtain the download address of test resource corresponding to different broadbands route;
Transmitting element, is suitable to the download address by test resource corresponding for each broadband route and is sent to described terminal, so that described terminal downloads corresponding test resource according to described download address.
Alternatively, described detection unit, it is particularly adapted to detect described terminal and downloads the speed of corresponding test resource according to described download address.
Alternatively, described test resource is the page resource of preset file bag and/or website.
Alternatively, described device also includes:
Changing unit, is suitable to change described test resource according to predeterminated frequency.
Alternatively, described test resource has identification information;
Correspondingly, described changing unit, it is particularly adapted to change the identification information of described test resource;
Described transmitting element, it is further adapted for before the described terminal of described detection downloads the speed of test resource by different broadbands route, first identification information of described test resource is sent to described terminal, so that described first identification information and the second identification information are mated by described terminal, and feedback fits through message when fitting through, described first identification information is the identification information of described test resource, and described second identification information is the identification information of the test resource of described terminal downloads;
Described detection unit, is particularly adapted to, receiving when fitting through message of described terminal feedback, perform the operation that the described terminal of described detection downloads the speed of test resource by different broadbands route.
Alternatively, described test resource has identification information;
Correspondingly, described changing unit, it is particularly adapted to change the identification information of described test resource;
Described device also includes:
Receiving unit, be suitable to, before the described terminal of described detection downloads the speed of test resource by different broadbands route, receive the first identification information that described terminal sends, described first identification information is the identification information of the test resource of described terminal downloads;
Described detection unit, it is particularly adapted to mate described first identification information with the second identification information prestored, when fitting through, performing the operation that the described terminal of described detection downloads the speed of test resource by different broadbands route, described second identification information is the identification information of described test resource.
Alternatively, described determine unit, specifically include:
First determines module, is suitable to the speed according to described each broadband route download test resource and determines the instant network speed of described terminal;
Second determines module, and the history network speed being suitable to the instant network speed according to described terminal and this terminal determines the current network speed of described terminal.
Alternatively, described second determines module, is particularly adapted to into the differently configured weight of described instant network speed and described history network speed, determine described current network speed according to weighted average method.
The invention have the benefit that
Wire-speed detection method provided by the invention and device, in response to the instruction of testing the speed that terminal sends, detect described terminal and downloaded the speed of test resource by different broadbands route, and download the speed of test resource according to each broadband route and determine the current network speed of described terminal, efficiently avoid in wide band detection process, the inaccurate problem of detection caused owing to being kidnapped by operator or adjust bandwidth connections temporarily, improves the accuracy rate of wire-speed detection, and the detection promoting user is experienced.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, and can be practiced according to the content of description, and in order to above and other objects of the present invention, feature and advantage can be become apparent, below especially exemplified by the specific embodiment of the present invention.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit those of ordinary skill in the art be will be clear from understanding. Accompanying drawing is only for illustrating the purpose of preferred implementation, and is not considered as limitation of the present invention. And in whole accompanying drawing, it is denoted by the same reference numerals identical parts. In the accompanying drawings:
Fig. 1 diagrammatically illustrates the schematic flow sheet of the wire-speed detection method of one embodiment of the invention;
Fig. 2 diagrammatically illustrates the schematic flow sheet of the wire-speed detection method of another embodiment of the present invention;
Fig. 3 diagrammatically illustrates the segmentation schematic flow sheet of step S12 in the wire-speed detection method of one embodiment of the invention;
Fig. 4 diagrammatically illustrates the structural representation of the wire-speed detection device of one embodiment of the invention;
Fig. 5 diagrammatically illustrates the structural representation of the wire-speed detection device of another embodiment of the present invention;
Fig. 6 diagrammatically illustrates the internal structure schematic diagram determining unit in the wire-speed detection device of one embodiment of the invention.
Detailed description of the invention
Being described below in detail embodiments of the invention, the example of described embodiment is shown in the drawings, and wherein same or similar label represents same or similar element or has the element of same or like function from start to finish. The embodiment described below with reference to accompanying drawing is illustrative of, and is only used for explaining the present invention, and is not construed as limiting the claims.
Those skilled in the art of the present technique are appreciated that unless expressly stated, and singulative used herein " ", " one ", " described " and " being somebody's turn to do " may also comprise plural form. Should be further understood that, the wording " including " used in the description of the present invention refers to there is described feature, integer, step, operation, element and/or assembly, but it is not excluded that existence or adds other features one or more, integer, step, operation, element, assembly and/or their group.
Those skilled in the art of the present technique are appreciated that unless otherwise defined, and all terms used herein (include technical term and scientific terminology), have with the those of ordinary skill in art of the present invention be commonly understood by identical meaning. Should also be understood that those terms of definition in such as general dictionary, it should be understood that there is the meaning consistent with the meaning in the context of prior art, and unless by specific definitions, otherwise will not explain by idealization or excessively formal implication.
In order to prevent from being kidnapped by operator due to test resource or operator adjusts bandwidth connections temporarily, and the inaccurate problem of wire-speed detection caused, improve the accuracy rate of the wire-speed detection of bandwidth, and then ensure the interests of user to greatest extent, simultaneously also accuracy rate for network speed statistical data is laid a solid foundation, embodiments provide a kind of wire-speed detection method, including: the instruction of testing the speed sent in response to terminal, is detected described terminal and is downloaded the speed of test resource by different broadbands route; Speed according to each broadband route download test resource determines the current network speed of described terminal.
Fig. 1 diagrammatically illustrates the schematic flow sheet of the wire-speed detection method of one embodiment of the invention.
With reference to Fig. 1, the wire-speed detection method of the embodiment of the present invention specifically includes following steps:
S11, the instruction of testing the speed sent in response to terminal, detected described terminal and downloaded the speed of test resource by different broadbands route.
In this step, user initiates the request of testing the speed, and the instruction of testing the speed that triggering terminal sends, by checking the broadband route that terminal is currently accessed, and then select the test resource that same circuit, cross-line road are corresponding, detect described terminal and downloaded the speed of test resource by different broadbands route.
It should be noted that the terminal in the present embodiment is the equipment such as computer, panel computer, palm PC PDA or notebook, certainly, also can for other equipment with speed measuring function, this is not any limitation as by the present invention.
It should be noted that the broadband route in the present embodiment includes Netcom broadband, telecommunications broadband, mobile broadband and UNICOM broadband etc.
It will be appreciated that the instruction of testing the speed that described terminal sends can be regarded as the enabled instruction of testing the speed that terminal sends.
In implementing, described in enabled instruction of testing the speed can trigger in several ways, for instance: be showed in the entry element testing the speed in interface of display by click, or, show have described in test the speed interface touch screen on click described entry element.
Wherein, described entry element is realized by graphic element, text element and button element etc. or its combination in any, and to this, the embodiment of the present invention is not especially limited.
It should be noted that the triggering mode of enabled instruction of testing the speed above-mentioned is only citing, other situation can also be included in addition to the above, e.g., be showed in the entry element in display interface or gesture triggering etc. by double mouse click. The present invention need not be defined with specific reference to realize the testing the speed triggering of enabled instruction of what kind of pattern, and those skilled in the art need to be configured according to practical application.
S12, the speed downloading test resource according to each broadband route determine the current network speed of described terminal.
In a concrete example, can pass through to calculate the meansigma methods of the speed of each broadband route download test resource or according to default weight, calculate the weighted mean that each broadband route downloads the speed of test resource, and using current network speed as terminal of the meansigma methods obtained or weighted mean.
In this step, the speed that test resource obtains by adopting each broadband route to download determines the current network speed of described terminal, is not only that the broadband route being currently accessed by user is downloaded the average speed of big file installation kit, opened the speed of news web page and judge the bandwidth speed of user. Can be effectively prevented in wide band detection process, operator by kidnap download file or interim adjust that the operations such as bandwidth connections cause test the speed inaccurate, it is ensured that the bandwidth speed that user records is authentic and valid.
The wire-speed detection method that the embodiment of the present invention provides, in response to the instruction of testing the speed that terminal sends, detect described terminal and downloaded the speed of test resource by different broadbands route, and download the speed of test resource according to each broadband route and determine the current network speed of described terminal, efficiently avoid in wide band detection process, due to the inaccurate problem of detection that test resource is kidnapped by operator or adjusted bandwidth connections and cause temporarily, improve the accuracy rate of wire-speed detection, the detection promoting user is experienced.
Fig. 2 diagrammatically illustrates the schematic flow sheet of the wire-speed detection method of another embodiment of the present invention.
With reference to Fig. 2, the wire-speed detection method of the embodiment of the present invention specifically includes following steps:
S21, obtain the download address of test resource corresponding to different broadbands route.
In actual applications, before passing through the speed of different broadbands route download test resource, it is necessary first to determine the download address of the test resource that different broadbands route is corresponding.
Wherein, download address is IP address or URL address.
S22, the download address of test resource corresponding for each broadband route is sent to described terminal, so that described terminal downloads corresponding test resource according to described download address.
In this step, by the download address by test resource corresponding for each broadband route, such as IP address or URL address, it is sent to described terminal, so that described terminal downloads corresponding test resource according to described download address.
S23, the instruction of testing the speed sent in response to terminal, detected described terminal and downloaded the speed of test resource by different broadbands route.
S24, the speed downloading test resource according to each broadband route determine the current network speed of described terminal.
Shown in above-mentioned step S23 and step S24 and Fig. 1, the step S11 of method is identical with step S12, does not repeat them here.
The wire-speed detection method that the embodiment of the present invention provides, before passing through the speed of different broadbands route download test resource, obtain the download address of test resource corresponding to different broadbands route, and the corresponding download address obtained is sent to terminal unit, to ensure that terminal can download corresponding test resource according to the download address true, reliable that each broadband route is corresponding, further increasing the accuracy rate of wire-speed detection, the detection promoting user is experienced.
Further, the described terminal of described detection downloads the speed of test resource by different broadbands route, specifically includes: detects described terminal and downloads the speed of corresponding test resource according to described download address.
In the present embodiment, test resource download is carried out according to the download address that different broadbands route is corresponding by detecting terminal, and each broadband route is downloaded the network speed that the speed of corresponding test resource obtains as the broadband route based on correspondence, avoid the inaccurate problem of detection kidnapped by operator or adjust bandwidth connections temporarily and cause due to test resource further, improve the accuracy rate of wire-speed detection, the detection promoting user is experienced.
An alternative embodiment according to the present invention, described test resource is the page resource of preset file bag and/or website.
In the embodiment of the present invention, described test resource not only includes preset file, such as the big file installation kit of data such as client of big game, also includes the page resource of preset website. It should be noted that in the present embodiment, the page resource of website includes news web page, game webpage, video web-pages etc., and this is not especially limited by the present invention.
Concrete, the test for the page resource of website can be passed through to test the realization of webpage speed data. In a concrete example, the step tested the speed of the page resource of described website includes: terminal uses IE browser to open the page resource of preset website automatically, records the webpage speed data accessing described page resource.
It will be appreciated that the data volume that webpage speed data can include the web page complete load time, web page loads the data volume that receives completely, time, link dns server used by link dns server receive, collect used by first byte of data the time, client and website first time link successfully used by time and client link the data volume successfully received for the first time with website.
Further, in the above-mentioned methods, the type that tests the speed described in also includes video-see and tests the speed.
It is not only that the broadband route being currently accessed by user is downloaded the average speed of big file installation kit, opened the speed of news web page and judge the bandwidth speed of user. But actually in this process, operator can kidnap download file or adjust bandwidth connections temporarily. And now with the development of video, our opening speed not test to video, and then it is inaccurate to cause testing the speed.
Along with the development of news, video website, the embodiment of the present invention is not only by testing the average speed downloading big file installation kit, opens the speed of news web page and the opening speed of video to judge the bandwidth speed of user also by detection. By considering the bandwidth speed under multiple service condition, further increasing the accuracy rate of wire-speed detection, the detection promoting user is experienced.
In a preferred embodiment of the invention, described method also includes: change described test resource according to predeterminated frequency.
In implementing process, the embodiment of the present invention is by changing described test resource according to predeterminated frequency, to realize the regular update of test resource, and then have effectively achieved and prevent test resource from being kidnapped by operator, to guarantee the accuracy rate of wire-speed detection, meet detection demand and the experience of user further.
In optional embodiment of the present invention, the change of test resource realizes also by the following manner, such as test resource as described in irregularly changing or the circulation change etc. carrying out test resource according to certain strategy. For those skilled in the art, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention
In an alternate embodiment of the present invention where, described test resource has identification information.
Wherein, the identification information of described test resource, indicate described test resource for unique, be specifically as follows data ID or the resource name etc. of test resource.
Further, described step changes described test resource according to predeterminated frequency, specifically includes: change the identification information of described test resource.
In the embodiment of the present invention, realize the renewal of test resource by changing the identification information of described test resource, to prevent test resource from being kidnapped by operator further.
Further, before step detects the speed that described terminal downloads test resource by different broadbands route, described method also includes following not shown step:
A11, the first identification information of described test resource is sent to described terminal, so that described first identification information and the second identification information are mated by described terminal, and feed back when fitting through and fit through message.
Wherein, described first identification information is the identification information of described test resource, and described second identification information is the identification information of the test resource of described terminal downloads.
In a particular application, service end is by sending the first identification information of each broadband route correspondence test resource to described terminal, so that described terminal after completing test resource download by corresponding broadband route, the second identification information that first identification information of the test resource received is corresponding with the test resource of terminal downloads is mated, judge that both are whether consistent, and make terminal feed back when fitting through to fit through message to service end.
A12, receiving when fitting through message of described terminal feedback, perform the step that the described terminal of described detection downloads the speed of test resource by different broadbands route.
In a particular application, service end is receiving when fitting through message of terminal feedback, the test resource then confirming terminal downloads is the authentic testing resource that corresponding broadband route is corresponding, namely the test resource downloaded is not kidnapped by operator or replaces, and after the verity of exact p-value resource, performing to detect the step of the speed that described terminal downloads test resource by different broadbands route, thus being effectively improved the accuracy rate of wire-speed detection, the detection promoting user is experienced.
In an alternate embodiment of the present invention where, described test resource has identification information.
Wherein, the identification information of described test resource, indicate described test resource for unique, be specifically as follows data ID or the resource name etc. of test resource.
Further, described step changes described test resource according to predeterminated frequency, specifically includes: change the identification information of described test resource.
In the embodiment of the present invention, realize the renewal of test resource by changing the identification information of described test resource, to prevent test resource from being kidnapped by operator further.
Further, before step detects the speed that described terminal downloads test resource by different broadbands route, described method also includes following not shown step:
B11, receive described terminal send the first identification information.
Wherein, described first identification information is the identification information of the test resource of described terminal downloads.
B12, described first identification information is mated with the second identification information prestored, when fitting through, performing the step that the described terminal of described detection downloads the speed of test resource by different broadbands route, described second identification information is the identification information of described test resource.
In a particular application, terminal after completing test resource download by corresponding broadband route, first identification information of the test resource that the terminal that service end sends by receiving terminal is downloaded by this broadband route, and described first identification information is mated with the second identification information prestored, judge whether both are consistent, if fitting through, the test resource then confirming terminal downloads is the authentic testing resource that corresponding broadband route is corresponding, namely the test resource downloaded is not kidnapped by operator or replaces, and after the verity of exact p-value resource, perform to detect the step of the speed that described terminal downloads test resource by different broadbands route, thus being effectively improved the accuracy rate of wire-speed detection, the detection promoting user is experienced.
The embodiment of the present invention, by the identification information of the identification information of test resource with the test resource of terminal downloads is mated, whether the test resource realizing terminal downloads is the determination of the authentic testing resource that corresponding broadband route is corresponding, and determining that the test resource of download is not kidnapped by operator or the state replaced exists, perform to detect the step of the speed that described terminal downloads test resource by different broadbands route, thus being effectively improved the accuracy rate of wire-speed detection, the detection promoting user is experienced.
According to a preferred embodiment of the present invention, step S12, as it is shown on figure 3, specifically include following steps:
S121, the speed downloading test resource according to described each broadband route determine the instant network speed of described terminal.
Need illustrate time, in the present embodiment, instant network speed is currently detected real-time network speed.
In a concrete example, can pass through to calculate the meansigma methods of the speed of each broadband route download test resource or according to default weight, or, calculate the weighted mean that each broadband route downloads the speed of test resource, and using instant network speed as terminal of the meansigma methods obtained or weighted mean.
S122, determine the current network speed of described terminal according to the instant network speed of described terminal and the history network speed of this terminal.
The embodiment of the present invention, the current network speed of described terminal is determined by the history network speed of the instant network speed according to described terminal He this terminal, avoid operator to increase bandwidth causes tests the speed inaccurate temporarily, further increases the accuracy rate of wire-speed detection, and the detection promoting user is experienced.
According to a preferred embodiment of the invention, step determines the current network speed of described terminal according to the instant network speed of described terminal and the history network speed of this terminal, specifically include: for the weight that described instant network speed and described history network speed are differently configured, foundation weighted average method determines described current network speed.
In a concrete example, by taking the history network speed data of first 6 days user daily online every days, then do meansigma methods (n1+n2+n3+n4+n5+n6)/6 and obtain nv. Wherein, the history network speed data of user's daily online every day include but not limited to open the network speed data detected in the processes such as shopping website, news website, video website.
Then it is described instant network speed and the differently configured weight of described history network speed, the history network speed of the instant network speed of terminal He this terminal is done weighted average. In a concrete example, when the speed downloading test resource according to each broadband route determines that the instant network speed of terminal is nt, the weight of instant network speed is 1/7, when the weight of history network speed is 6/7, by the current network speed=nv*6/7+nt*1/7 of below equation, the final result of this test can be obtained.
The embodiment of the present invention, weight by the instant network speed according to described terminal He the history network speed of this terminal, the current network speed of described terminal is determined according to weighted average method, operator so both can have been avoided to increase temporarily bandwidth causes test the speed inaccurate, progressively weighting can also be passed through, the band data that real user network is promoted promotes, and then improves the accuracy rate of wire-speed detection, and the detection promoting user is experienced.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the embodiment of the present invention is not by the restriction of described sequence of movement, because according to the embodiment of the present invention, some step can adopt other orders or carry out simultaneously. Secondly, those skilled in the art also should know, embodiment described in this description belongs to preferred embodiment, necessary to the involved action not necessarily embodiment of the present invention.
Fig. 4 diagrammatically illustrates the structural representation of the wire-speed detection device of one embodiment of the invention.
With reference to Fig. 4, the wire-speed detection device based on base station of the embodiment of the present invention specifically includes detection unit 401 and determines unit 402, wherein:
Described detection unit 401, is adapted for the instruction of testing the speed that terminal sends, and detects described terminal and is downloaded the speed of test resource by different broadbands route;
Described determine unit 402, be suitable to download the speed of test resource according to each broadband route that described detection unit 401 detects and determine the current network speed of described terminal.
The wire-speed detection device that the embodiment of the present invention provides, in response to the instruction of testing the speed that terminal sends, detect described terminal and downloaded the speed of test resource by different broadbands route, and download the speed of test resource according to each broadband route and determine the current network speed of described terminal, efficiently avoid in wide band detection process, due to the inaccurate problem of detection that test resource is kidnapped by operator or adjusted bandwidth connections and cause temporarily, improve the accuracy rate of wire-speed detection, the detection promoting user is experienced.
Fig. 5 diagrammatically illustrates the structural representation of the wire-speed detection device of one embodiment of the invention.
With reference to Fig. 5, the wire-speed detection device based on base station of the embodiment of the present invention specifically includes acquiring unit 501, transmitting element 502, detection unit 503 and determines unit 504, wherein:
Described acquiring unit 501, is suitable to, before described detection unit 503 detects the speed that described terminal downloads test resource by different broadbands route, obtain the download address of test resource corresponding to different broadbands route;
Described transmitting element 502, is suitable to the download address by test resource corresponding for each broadband route and is sent to described terminal, so that described terminal downloads corresponding test resource according to described download address.
Described detection unit 503, is adapted for the instruction of testing the speed that terminal sends, and detects described terminal and is downloaded the speed of test resource by different broadbands route;
Described determine unit 504, be suitable to download the speed of test resource according to each broadband route that described detection unit 503 detects and determine the current network speed of described terminal.
Further, described detection unit 503, it is particularly adapted to detect described terminal and downloads the speed of corresponding test resource according to described download address.
An alternative embodiment according to the present invention, described test resource is the page resource of preset file bag and/or website.
In a preferred embodiment of the invention, described device also includes unshowned changing unit in accompanying drawing:
Described changing unit, is suitable to change described test resource according to predeterminated frequency.
In implementing process, the embodiment of the present invention is by changing described test resource according to predeterminated frequency, to realize the regular update of test resource, and then have effectively achieved and prevent test resource from being kidnapped by operator, to guarantee the accuracy rate of wire-speed detection, meet detection demand and the experience of user further.
In optional embodiment of the present invention, the change of test resource realizes also by the following manner, such as test resource as described in irregularly changing or the circulation change etc. carrying out test resource according to certain strategy. For those skilled in the art, under the premise without departing from the principles of the invention, it is also possible to make some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention
In an alternate embodiment of the present invention where, described test resource has identification information;
Correspondingly, described changing unit, it is particularly adapted to change the identification information of described test resource;
Further, described transmitting element, it is further adapted for before the described terminal of described detection downloads the speed of test resource by different broadbands route, first identification information of described test resource is sent to described terminal, so that described first identification information and the second identification information are mated by described terminal, and feedback fits through message when fitting through, described first identification information is the identification information of described test resource, and described second identification information is the identification information of the test resource of described terminal downloads;
Described detection unit, is particularly adapted to, receiving when fitting through message of described terminal feedback, perform the operation that the described terminal of described detection downloads the speed of test resource by different broadbands route.
In an alternate embodiment of the present invention where, described test resource has identification information;
Correspondingly, described changing unit, it is particularly adapted to change the identification information of described test resource;
Further, described device also includes unshowned reception unit in accompanying drawing:
Described reception unit, is suitable to, before the described terminal of described detection downloads the speed of test resource by different broadbands route, receive the first identification information that described terminal sends, and described first identification information is the identification information of the test resource of described terminal downloads;
Further, described detection unit, it is particularly adapted to mate described first identification information with the second identification information prestored, when fitting through, performing the operation that the described terminal of described detection downloads the speed of test resource by different broadbands route, described second identification information is the identification information of described test resource.
In a preferred embodiment of the invention, described determine unit, as shown in Figure 6, specifically include first and determine that module 601 and second determines module 602:
Described first determines module 601, is suitable to the speed according to described each broadband route download test resource and determines the instant network speed of described terminal;
Described second determines module 602, and the history network speed being suitable to the instant network speed according to described terminal and this terminal determines the current network speed of described terminal.
In a preferred embodiment of the invention, described second determines module, is particularly adapted to into the differently configured weight of described instant network speed and described history network speed, determine described current network speed according to weighted average method.
For device embodiment, due to itself and embodiment of the method basic simlarity, so what describe is fairly simple, relevant part illustrates referring to the part of embodiment of the method.
In sum, the wire-speed detection method of embodiment of the present invention offer and device, in response to the instruction of testing the speed that terminal sends, detect described terminal and downloaded the speed of test resource by different broadbands route, and download the speed of test resource according to each broadband route and determine the current network speed of described terminal, efficiently avoid in wide band detection process, the inaccurate problem of detection caused owing to being kidnapped by operator or adjust bandwidth connections temporarily, improve the accuracy rate of wire-speed detection, the detection promoting user is experienced.
It should be noted that, algorithm and formula in this offer are not intrinsic to any certain computer, virtual system or miscellaneous equipment relevant. Various general-purpose systems can also with use based on together with this example. As described above, the structure constructed required by this kind of system is apparent from. Additionally, the present invention is also not for any certain programmed language. It is understood that, it is possible to utilize various programming language to realize the content of invention described herein, and the description above language-specific done is the preferred forms in order to disclose the present invention.
In description mentioned herein, describe a large amount of detail. It is to be appreciated, however, that embodiments of the invention can be put into practice when not having these details. In some instances, known method, structure and technology it are not shown specifically, in order to do not obscure the understanding of this description.
Similarly, it is to be understood that, one or more in order to what simplify that the present invention helping understands in various aspects of the present invention, herein above in the description of the exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or descriptions thereof sometimes. But, the method and apparatus of the disclosure should be construed to and reflect an intention that namely the present invention for required protection requires feature more more than the feature being expressly recited in each claim. More precisely, as claims reflect, inventive aspect is in that all features less than single embodiment disclosed above. Therefore, it then follows claims of detailed description of the invention are thus expressly incorporated in this detailed description of the invention, wherein each claim itself as the independent embodiment of the present invention.
Those skilled in the art are appreciated that, it is possible to carry out the module in the equipment in embodiment adaptively changing and they being arranged in one or more equipment different from this embodiment. Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition. Except at least some in such feature and/or process or unit excludes each other, it is possible to adopt any combination that all processes or the unit of all features disclosed in this specification (including adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment are combined. Unless expressly stated otherwise, each feature disclosed in this specification (including adjoint claim, summary and accompanying drawing) can be replaced by the alternative features providing purpose identical, equivalent or similar.
In addition, those skilled in the art it will be appreciated that, although embodiments more described herein include some feature included in other embodiments rather than further feature, but the combination of the feature of different embodiment means to be within the scope of the present invention and form different embodiments.
The all parts embodiment of the present invention can realize with hardware, or realizes with the software module run on one or more processor, or realizes with their combination. It will be understood by those of skill in the art that the some or all functions of the some or all parts that microprocessor or digital signal processor (DSP) can be used in practice to realize in web portal security detection equipment according to embodiments of the present invention. The present invention is also implemented as part or all the equipment for performing method as described herein or device program (such as, computer program and computer program). The program of such present invention of realization can store on a computer-readable medium, or can have the form of one or more signal. Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The above is only the some embodiments of the present invention; it should be pointed out that, for those skilled in the art, under the premise without departing from the principles of the invention; can also making some improvements and modifications, these improvements and modifications also should be regarded as protection scope of the present invention.
Other embodiments of the present invention also disclose following content:
A1, a kind of wire-speed detection method, including:
In response to the instruction of testing the speed that terminal sends, detect described terminal and downloaded the speed of test resource by different broadbands route;
Speed according to each broadband route download test resource determines the current network speed of described terminal.
A2, method as described in A1, before the described terminal of described detection downloads the speed of test resource by different broadbands route, also include:
Obtain the download address of test resource corresponding to different broadbands route;
The download address of test resource corresponding for each broadband route is sent to described terminal, so that described terminal downloads corresponding test resource according to described download address.
A3, method as described in A2, the described terminal of described detection downloads the speed of test resource by different broadbands route, specifically includes:
Detect described terminal and download the speed of corresponding test resource according to described download address.
A4, method as described in any one of A1-A3, described test resource is the page resource of preset file bag and/or website.
A5, method as described in A4, described method also includes:
Described test resource is changed according to predeterminated frequency.
A6, method as described in A5, described test resource has identification information;
Correspondingly, described according to the predeterminated frequency described test resource of change, specifically include:
Change the identification information of described test resource;
Before the described terminal of described detection downloads the speed of test resource by different broadbands route, described method also includes:
First identification information of described test resource is sent to described terminal, so that described first identification information and the second identification information are mated by described terminal, and feedback fits through message when fitting through, described first identification information is the identification information of described test resource, and described second identification information is the identification information of the test resource of described terminal downloads;
Receiving when fitting through message of described terminal feedback, perform the step that the described terminal of described detection downloads the speed of test resource by different broadbands route.
A7, method as described in A5, described test resource has identification information;
Correspondingly, described according to the predeterminated frequency described test resource of change, specifically include:
Change the identification information of described test resource;
Before the described terminal of described detection downloads the speed of test resource by different broadbands route, described method also includes:
Receiving the first identification information that described terminal sends, described first identification information is the identification information of the test resource of described terminal downloads;
Described first identification information is mated with the second identification information prestored, when fitting through, performing the step that the described terminal of described detection downloads the speed of test resource by different broadbands route, described second identification information is the identification information of described test resource.
A8, method as described in any one of A1-A7, described download the speed of test resource according to each broadband route and determine the current network speed of described terminal, specifically includes:
Speed according to described each broadband route download test resource determines the instant network speed of described terminal;
The history network speed of the instant network speed according to described terminal and this terminal determines the current network speed of described terminal.
A9, method as described in A8, the described current network speed determining described terminal according to the instant network speed of described terminal and the history network speed of this terminal, specifically include:
For the weight that described instant network speed and described history network speed are differently configured, foundation weighted average method determines described current network speed.
B10, a kind of wire-speed detection device, including:
Detection unit, is adapted for the instruction of testing the speed that terminal sends, and detects described terminal and is downloaded the speed of test resource by different broadbands route;
Determining unit, each broadband route being suitable to detect according to described detection unit is downloaded the speed of test resource and is determined the current network speed of described terminal.
B11, device as described in B10, described device also includes:
Acquiring unit, is suitable to, before described detection unit detects the speed that described terminal downloads test resource by different broadbands route, obtain the download address of test resource corresponding to different broadbands route;
Transmitting element, is suitable to the download address by test resource corresponding for each broadband route and is sent to described terminal, so that described terminal downloads corresponding test resource according to described download address.
B12, device as described in B11, described detection unit, it is particularly adapted to detect described terminal and downloads the speed of corresponding test resource according to described download address.
B13, device as described in any one of B10-B12, described test resource is the page resource of preset file bag and/or website.
B14, device as described in B13, described device also includes:
Changing unit, is suitable to change described test resource according to predeterminated frequency.
B15, device as described in B14, described test resource has identification information;
Correspondingly, described changing unit, it is particularly adapted to change the identification information of described test resource;
Described transmitting element, it is further adapted for before the described terminal of described detection downloads the speed of test resource by different broadbands route, first identification information of described test resource is sent to described terminal, so that described first identification information and the second identification information are mated by described terminal, and feedback fits through message when fitting through, described first identification information is the identification information of described test resource, and described second identification information is the identification information of the test resource of described terminal downloads;
Described detection unit, is particularly adapted to, receiving when fitting through message of described terminal feedback, perform the operation that the described terminal of described detection downloads the speed of test resource by different broadbands route.
B16, device as described in B14, described test resource has identification information;
Correspondingly, described changing unit, it is particularly adapted to change the identification information of described test resource;
Described device also includes:
Receiving unit, be suitable to, before the described terminal of described detection downloads the speed of test resource by different broadbands route, receive the first identification information that described terminal sends, described first identification information is the identification information of the test resource of described terminal downloads;
Described detection unit, it is particularly adapted to mate described first identification information with the second identification information prestored, when fitting through, performing the operation that the described terminal of described detection downloads the speed of test resource by different broadbands route, described second identification information is the identification information of described test resource.
B17, device as described in any one of B10-B16, described determine unit, specifically includes:
First determines module, is suitable to the speed according to described each broadband route download test resource and determines the instant network speed of described terminal;
Second determines module, and the history network speed being suitable to the instant network speed according to described terminal and this terminal determines the current network speed of described terminal.
B18, device as described in B17, described second determines module, is particularly adapted to into the differently configured weight of described instant network speed and described history network speed, determine described current network speed according to weighted average method.

Claims (10)

1. a wire-speed detection method, including:
In response to the instruction of testing the speed that terminal sends, detect described terminal and downloaded the speed of test resource by different broadbands route;
Speed according to each broadband route download test resource determines the current network speed of described terminal.
2. the method for claim 1, before the described terminal of described detection downloads the speed of test resource by different broadbands route, also includes:
Obtain the download address of test resource corresponding to different broadbands route;
The download address of test resource corresponding for each broadband route is sent to described terminal, so that described terminal downloads corresponding test resource according to described download address.
3. method as claimed in claim 2, the described terminal of described detection downloads the speed of test resource by different broadbands route, specifically includes:
Detect described terminal and download the speed of corresponding test resource according to described download address.
4. the method as described in any one of claim 1-3, described test resource is the page resource of preset file bag and/or website.
5. method as claimed in claim 4, described method also includes:
Described test resource is changed according to predeterminated frequency.
6. method as claimed in claim 5, described test resource has identification information;
Correspondingly, described according to the predeterminated frequency described test resource of change, specifically include:
Change the identification information of described test resource;
Before the described terminal of described detection downloads the speed of test resource by different broadbands route, described method also includes:
First identification information of described test resource is sent to described terminal, so that described first identification information and the second identification information are mated by described terminal, and feedback fits through message when fitting through, described first identification information is the identification information of described test resource, and described second identification information is the identification information of the test resource of described terminal downloads;
Receiving when fitting through message of described terminal feedback, perform the step that the described terminal of described detection downloads the speed of test resource by different broadbands route.
7. method as claimed in claim 5, described test resource has identification information;
Correspondingly, described according to the predeterminated frequency described test resource of change, specifically include:
Change the identification information of described test resource;
Before the described terminal of described detection downloads the speed of test resource by different broadbands route, described method also includes:
Receiving the first identification information that described terminal sends, described first identification information is the identification information of the test resource of described terminal downloads;
Described first identification information is mated with the second identification information prestored, when fitting through, performing the step that the described terminal of described detection downloads the speed of test resource by different broadbands route, described second identification information is the identification information of described test resource.
8. the method as described in any one of claim 1-7, the described speed according to each broadband route download test resource determines the current network speed of described terminal, specifically includes:
Speed according to described each broadband route download test resource determines the instant network speed of described terminal;
The history network speed of the instant network speed according to described terminal and this terminal determines the current network speed of described terminal.
9. method as claimed in claim 8, the described current network speed determining described terminal according to the instant network speed of described terminal and the history network speed of this terminal, specifically include:
For the weight that described instant network speed and described history network speed are differently configured, foundation weighted average method determines described current network speed.
10. a wire-speed detection device, including:
Detection unit, is adapted for the instruction of testing the speed that terminal sends, and detects described terminal and is downloaded the speed of test resource by different broadbands route;
Determining unit, each broadband route being suitable to detect according to described detection unit is downloaded the speed of test resource and is determined the current network speed of described terminal.
CN201510997418.9A 2015-12-25 2015-12-25 A kind of wire-speed detection method and device Active CN105681124B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510997418.9A CN105681124B (en) 2015-12-25 2015-12-25 A kind of wire-speed detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510997418.9A CN105681124B (en) 2015-12-25 2015-12-25 A kind of wire-speed detection method and device

Publications (2)

Publication Number Publication Date
CN105681124A true CN105681124A (en) 2016-06-15
CN105681124B CN105681124B (en) 2019-05-21

Family

ID=56189640

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510997418.9A Active CN105681124B (en) 2015-12-25 2015-12-25 A kind of wire-speed detection method and device

Country Status (1)

Country Link
CN (1) CN105681124B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046694A (en) * 2017-01-22 2017-08-15 广州成上计算机技术有限公司 A kind of wifi speed-measuring methods and its system
CN108768767A (en) * 2018-05-11 2018-11-06 北京奇虎科技有限公司 Determine the method and device of bandwidth ability
CN111417000A (en) * 2020-03-27 2020-07-14 北京奇艺世纪科技有限公司 Method, device, electronic equipment and medium for switching video code rate
CN112333073A (en) * 2020-09-04 2021-02-05 深圳Tcl新技术有限公司 Network acceleration method, system, device and readable storage medium of gateway device
CN114760228A (en) * 2020-12-25 2022-07-15 深圳Tcl新技术有限公司 Network speed testing method and device, intelligent equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752170A (en) * 2012-06-29 2012-10-24 福建富士通信息软件有限公司 Network speed testing method
CN102882738A (en) * 2012-09-06 2013-01-16 北京奇虎科技有限公司 Method and device for detecting network access speed
CN103684926A (en) * 2013-12-23 2014-03-26 乐视致新电子科技(天津)有限公司 Method and device for testing network speed of local area network
CN104009887A (en) * 2014-05-29 2014-08-27 成都网丁科技有限公司 Automatic speed testing method applied to network resource optimization
CN104348680A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method and device for detecting network speed
CN104918273A (en) * 2015-04-27 2015-09-16 广东欧珀移动通信有限公司 Network access method and device of mobile terminals

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102752170A (en) * 2012-06-29 2012-10-24 福建富士通信息软件有限公司 Network speed testing method
CN102882738A (en) * 2012-09-06 2013-01-16 北京奇虎科技有限公司 Method and device for detecting network access speed
CN104348680A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method and device for detecting network speed
CN103684926A (en) * 2013-12-23 2014-03-26 乐视致新电子科技(天津)有限公司 Method and device for testing network speed of local area network
CN104009887A (en) * 2014-05-29 2014-08-27 成都网丁科技有限公司 Automatic speed testing method applied to network resource optimization
CN104918273A (en) * 2015-04-27 2015-09-16 广东欧珀移动通信有限公司 Network access method and device of mobile terminals

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107046694A (en) * 2017-01-22 2017-08-15 广州成上计算机技术有限公司 A kind of wifi speed-measuring methods and its system
CN108768767A (en) * 2018-05-11 2018-11-06 北京奇虎科技有限公司 Determine the method and device of bandwidth ability
CN108768767B (en) * 2018-05-11 2021-01-12 北京奇虎科技有限公司 Method and device for determining bandwidth capacity
CN111417000A (en) * 2020-03-27 2020-07-14 北京奇艺世纪科技有限公司 Method, device, electronic equipment and medium for switching video code rate
CN111417000B (en) * 2020-03-27 2022-04-22 北京奇艺世纪科技有限公司 Method, device, electronic equipment and medium for switching video code rate
CN112333073A (en) * 2020-09-04 2021-02-05 深圳Tcl新技术有限公司 Network acceleration method, system, device and readable storage medium of gateway device
CN112333073B (en) * 2020-09-04 2023-07-25 深圳Tcl新技术有限公司 Network acceleration method, system, device and readable storage medium of gateway device
CN114760228A (en) * 2020-12-25 2022-07-15 深圳Tcl新技术有限公司 Network speed testing method and device, intelligent equipment and storage medium

Also Published As

Publication number Publication date
CN105681124B (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN105681124A (en) Network speed detection method and device
CN105446750B (en) The method and apparatus that WebApp starting runs, generates image file
US11683342B2 (en) Detecting and attributing undesirable automatic redirects
CN110086895A (en) Domain name analytic method, device, medium and electronic equipment
CN103150513B (en) The method of the implantation information in interception application program and device
CN102884764B (en) Message receiving method, deep packet inspection device, and system
CN103207863B (en) Page cross-domain alternation method and terminal
CN104239577A (en) Method and device for detecting authenticity of webpage data
CN104519070A (en) Method and system for detecting website permission vulnerabilities
CN104980446A (en) Detection method and system for malicious behavior
CN105610993B (en) A kind of domain name analytic method, apparatus and system
CN104363251A (en) Website security detecting method and device
CN104219230A (en) Method and device for identifying malicious websites
CN104363252A (en) Website security detecting method and device
CN102662838B (en) The adjustment method of Flash and system in a kind of browser
CN104050054B (en) Processing method for installation package installation failure and cause determining method and device
CN105681478A (en) Method and device for scheduling network resources to improve network spider crawling efficiency
CN104253783A (en) Web application realization code loading method, device, system and server
CN105678161A (en) Installation monitoring method and apparatus of applications
CN109495319B (en) Method, device and equipment for determining fault information of CDN node
CN105354511A (en) Method and apparatus for detecting page tampering in application
CN105100298A (en) Page access method in application program and apparatus thereof
CN111338928A (en) Chrome-based browser testing method and device
CN112069430B (en) Quick application preview method and device, electronic equipment and storage medium
CN107566211B (en) Method, device and system for accessing test equipment

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

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 xinjiekouwai street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

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

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