CN104348680A - Method and device for detecting network speed - Google Patents

Method and device for detecting network speed Download PDF

Info

Publication number
CN104348680A
CN104348680A CN201310343896.9A CN201310343896A CN104348680A CN 104348680 A CN104348680 A CN 104348680A CN 201310343896 A CN201310343896 A CN 201310343896A CN 104348680 A CN104348680 A CN 104348680A
Authority
CN
China
Prior art keywords
data bag
target data
time
downloading
detected
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
CN201310343896.9A
Other languages
Chinese (zh)
Other versions
CN104348680B (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310343896.9A priority Critical patent/CN104348680B/en
Publication of CN104348680A publication Critical patent/CN104348680A/en
Application granted granted Critical
Publication of CN104348680B publication Critical patent/CN104348680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method and device for detecting network speed and relates to the technical field of the Internet. The method and the device can be used for solving the problem that the detection efficiency is relatively low during manual detection. The method comprises the steps: determining a target packet meeting the type of a current network, wherein the target packet is a packet provided by a website to be detected; requesting the website to be detected to download the target packet by simulating downloading operation; recording a first time when the downloading operation is triggered; after a preset waiting time after the first time, acquiring the amount of downloaded data of the target packet and a second time consumed for downloading the amount of downloaded data; calculating the network speed according to the first time, the second time and the amount of downloaded data of the target packet, wherein the network speed is used for representing the network speed of the website to be detected in the type of the current network. The method and the device are mainly applied to a network maintenance process.

Description

The method of wire-speed detection and device
Technical field
The present invention relates to Internet technical field, particularly relate to a kind of method and device of wire-speed detection.
Background technology
Along with the development of the extensively universal and network of application (Application is called for short APP), people are more and more by web download APP.For the provider of APP electronic market, an important aspect is for user provides download service at a high speed.
At present, when Sampling network speed, adopt following technical proposals: the overall process being recorded manual down operation by camera.After download completes, tester extracts and downloads start time point from the video recorded, download deadline point frame corresponding respectively.Obtain downloading duration by the time point contrasted in these two frames, then according to the size of data downloaded, calculate speed of download.
State in realization in the process of wire-speed detection, inventor finds that in prior art, at least there are the following problems: manually extract frame due to needs and calculate speed of download, and the time therefore by manually carrying out required for wire-speed detection is long, and wire-speed detection efficiency is low.When needs repeated detection is averaged network speed, the problem that manual detection efficiency is low will be more outstanding.
Summary of the invention
The method of a kind of wire-speed detection provided by the invention and device, the problem that when can solve manual detection, detection efficiency is lower.
The invention provides a kind of method of wire-speed detection, described method comprises:
Determine the target data bag meeting current network type, the packet of described target data bag for providing in website to be detected;
Simulation down operation downloads described target data bag to web site requests to be detected;
Record very first time when described down operation triggers;
During default waiting time after the first time, obtain the amount of downloading data of described target data bag and downloading data amount is used described in downloading the second time;
Calculate network speed according to the data volume that the described very first time, the second time and described target data bag have been downloaded, described network speed is for representing the network speed of website to be detected described in the type of current network.
Present invention also offers a kind of device of wire-speed detection, described device comprises:
First determining unit, for determining the target data bag meeting current network type, the packet of described target data bag for providing in website to be detected;
Analogue unit, downloads described target data bag for simulating down operation to web site requests to be detected;
Record cell, very first time when the described down operation for recording the simulation of described analogue unit triggers;
Acquiring unit, during for default waiting time after the first time, obtains the amount of downloading data of described target data bag and downloading data amount is used described in downloading the second time;
Computing unit, the data volume that described second time obtained for the described very first time according to described recording unit records, described acquiring unit and described target data bag have been downloaded calculates network speed, and described network speed is for representing the network speed of website to be detected described in the type of current network.
The method of wire-speed detection provided by the invention and device, the target data bag in website to be detected can be determined according to the type of current network, simulate artificial down operation and download target data bag to web site requests to be detected, record request downloads the very first time of target data bag simultaneously, during default waiting time after the very first time, obtain the amount of downloading data of described target data bag and the second time that described in download, downloading data amount is used, calculate network speed according to the data volume that the very first time, the second time and described target data bag have been downloaded.In prior art, need by manually extracting frame, detection efficiency is low.In the present invention, by simulating artificial down operation, cost of labor can be saved.Processed by electronic equipment, can improve the accuracy of detection, mention the error that frame exists when overcoming manual detection, electronic equipment more manually has efficient data-handling capacity simultaneously, and then improves the efficiency detected.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the flow chart of the method for a wire-speed detection in the embodiment of the present invention;
Fig. 2 is the flow chart of the method for another wire-speed detection in the embodiment of the present invention;
Fig. 3 is the flow chart of the method for another wire-speed detection in the embodiment of the present invention;
Fig. 4 is the structural representation of the device of a wire-speed detection in the embodiment of the present invention;
Fig. 5 is the structural representation of the device of another wire-speed detection in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Embodiments provide a kind of method of wire-speed detection, described method is applied in electronic equipment, and described electronic equipment comprises the permanent plants such as the mobile device such as smart mobile phone, panel computer and PC, and as shown in Figure 1, described method comprises:
Step 101, determine the target data bag meeting current network type, the packet of target data bag for providing in website to be detected.
Current network type is but is not limited to any one network type following: Generation Mobile Telecommunication System technology (2nd-generation, be called for short 2G), G mobile communication (3rd-generation, be called for short 3G), Wireless Fidelity (wireless fidelity, be called for short Wi-Fi).
Step 102, simulation down operation download target data bag to web site requests to be detected.
If by manually detecting, then the band of position of the download function key shown in screen receives the down operation of user's triggering.In order to can manual detection be simulated in the present invention, reach the down operation effect identical with manual detection, to be set out download request by simulation down operation.
Very first time when step 103, the triggering of record down operation.
When the downloading task of simulated operation trigger target packet, time when record down operation sets out, the very first time.
When step 104, default waiting time after the very first time, obtain the amount of downloading data of target data bag and download the second time used of downloading data amount.
If because the downloading process of target data bag exists the reasons such as mistake, cause target data bag to download, can not unconfinedly wait for downloads.Therefore from the very first time, through presetting waiting time, obtaining the amount of downloading data of target data bag and downloading this time that downloading data amount is used.Default waiting time is more than 10s.
The very first time and the second time are the hardware timeout of electronic equipment.Whenever the data slot of receiving target packet, record receives the time of reception of this data slot.If complete the download of target data bag within default waiting time, automatically time when downloading complete can be recorded during owing to downloading complete, then downloading data amount is the data volume of target data bag, downloads the up-to-date modification time that the second time used of downloading data amount is target data bag.If failed the download of target data bag within default waiting time, then downloading data amount has been the partial data amount of target data bag, downloads the up-to-date modification time that the second time used of downloading data amount is target data bag.
Step 105, the data volume calculating network speed downloaded according to the very first time, the second time and target data bag, network speed is for representing the network speed of website to be detected in the type of current network.
The downloading duration downloading the quantity that target data bag has been downloaded can be obtained according to the very first time and the second time.The network speed of website to be tested can be obtained divided by this downloading duration by the data volume downloaded.
The method of wire-speed detection provided by the invention, the target data bag in website to be detected can be determined according to the type of current network, simulate artificial down operation and download target data bag to web site requests to be detected, record request downloads the very first time of target data bag simultaneously, during default waiting time after the very first time, obtain the amount of downloading data of described target data bag and the second time that described in download, downloading data amount is used, calculate network speed according to the data volume that the very first time, the second time and described target data bag have been downloaded.In prior art, need by manually extracting frame, detection efficiency is low.In the present invention, by simulating artificial down operation, cost of labor can be saved.Processed by electronic equipment, can improve the accuracy of detection, mention the error that frame exists when overcoming manual detection, electronic equipment more manually has efficient data-handling capacity simultaneously, and then improves the efficiency detected.
The embodiment of the present invention additionally provides a kind of method of wire-speed detection, as illustrating method shown in Fig. 1, as shown in Figure 2, step 101, determines the step of the target data bag meeting current network type, implements by following manner:
Step 201, type determination preset data bag size according to current network.
Different network capacity is different, therefore needs to be determined at according to the type of different networks the data package size that this network type conforms to.Such as: if current network is Wi-Fi, then preset data bag size is 10M.If current network is 2G, then preset data bag size is 2-3M.If current network is 3G, then preset data bag size is 3-7M.
Step 202, obtain packet information set from website to be detected, packet information set is for representing title and the data volume size of Downloadable packet.
Website to be detected stores its application inventory that can provide, and this inventory is shown by the form of datagram message set, and datagram message set is as shown in table 1, for representing title and the data volume size of Downloadable packet.
Table 1
Sequence number Title Size of data
1 Application one 100M
2 Application two 10M
3 Application three 7M
10 Application ten 1M
If the network type of current network is Wi-Fi, then search size of data attribute and the immediate record of 10M in Table 1.Lookup result to be sequence number be 2 record.Size of data can be found to be the Apply Names " application two " of 10M by this record.
Step 203, from packet information set, search target data bag immediate with preset data bag size according to preset data bag size.
After the size determining to need target data bag according to the type of current network, in packet information set, search the package name minimum with the difference of the size of the target data bag determined.When downloading during target data bag, need to send request according to the title of target data bag to website to be detected.
The method of the wire-speed detection that the embodiment of the present invention provides, can according to the type of current network, determine the size of the packet adapted with the type of current network, the packet that conforms to the size of this packet is searched as target data bag from datagram message set, and then reach and download more targetedly, improve wire-speed detection efficiency.
The embodiment of the present invention additionally provides a kind of method of wire-speed detection, as further illustrating method shown in Fig. 1, when step 104, default waiting time after the very first time, obtain target data bag the amount of downloading data and before downloading the second time used of downloading data amount, described method also comprises: determine default waiting time according to the type of described current network.
Because the network transfer speeds of heterogeneous networks is different, by the data volume difference that heterogeneous networks is downloaded in same time, therefore, need to determine the default stand-by period according to the type of current network.Such as: if current network is Wi-Fi, then presetting the stand-by period is 80s.If current network is 2G, then presetting the stand-by period is 150s.If current network is 3G, then presetting the stand-by period is 120s.
The embodiment of the present invention, by determining the default stand-by period according to the type of current network, according to the difference of network type, can arrange the different default stand-by period, reaches the applicability improving wire-speed detection.
The embodiment of the present invention additionally provides a kind of method of wire-speed detection, as illustrating method shown in Fig. 1, when step 104, default waiting time after the very first time, obtain the amount of downloading data of target data bag and download the second time used of downloading data amount, implementing by following manner:
If described target data bag has been downloaded complete, then obtain the size of described target data bag and the up-to-date modification time of described target data bag, the described size by target data bag is defined as downloading data amount, described up-to-date modification time was defined as the second time;
If described target data bag is not downloaded complete, then obtain the size that described target data bag has been downloaded, the size that described target data bag has been downloaded is defined as downloading data amount, the up-to-date modification time of described target data bag was defined as the second time.
For mobile phone, when realizing, because the second time obtained is the hardware timeout of mobile phone linux operating system, so the very first time obtained also must get hardware timeout.Perform shell-command by java code, obtain the very first time and the second time, then change into special time form " year-month-day time: point: second " return.Main code is as follows:
In addition, perform shell-command by java code, obtain the size of the second time and target data bag.Because the bag obtained is in units of byte, conveniently bag size is obtained in units of K divided by 1024 bag size by reading needs.Main code is as follows:
The method of the wire-speed detection that the embodiment of the present invention provides, can download complete situation according to target data bag, the data volume that acquisition target data bag has been downloaded and the time that the data volume that download has been downloaded uses, improves the accuracy of wire-speed detection.
The embodiment of the present invention additionally provides a kind of method of wire-speed detection, as further illustrating method shown in Fig. 1, step 101, described determine the step of the target data bag meeting current network type before, described method also comprises:
The packet deleted cache contents corresponding to described website to be detected and downloading from described website to be detected.
The method of the wire-speed detection that the embodiment of the present invention provides, by deleting cache contents, the target data bag of request when network speed can be avoided to test repeats with the packet downloaded, and improves the accuracy of wire-speed detection today.
The embodiment of the present invention additionally provides a kind of method of wire-speed detection, as further illustrating method shown in Fig. 1, step 101, determine the target data bag meeting current network type step before, described method also comprises:
Receive the network type designated order that user triggers, described network type formulates instruction for describing default network type, the network type used when described default network type is and detects website network speed to be detected.
If current network type is not identical with default network type, then switch to described default network type.
User controls electronic equipment by errorlevel and is switched to another network (3G) from a network (2G).
User inputs following parameter by errorlevel: application market title (as: application market a, application market b, application market c), network type (1:Wi-Fi2:2G3:3G), with or without buffer memory (1: have buffer memory 2: without buffer memory), cycle-index, mobile phone resolution (as: 480*854).Application market input All represents that all application markets all detect.For making application market perform wire-speed detection under identical network state as far as possible, the execution sequence of employing is application market a-> application market b-> application market c-> application market a-> application market b-> application market c-> ... order wheel gives in mode to perform wire-speed detection.
The method of the wire-speed detection that the embodiment of the present invention provides, according to the network type designated order of user, can switch in the network type needed for user and detects.
The embodiment of the present invention additionally provides a kind of method of wire-speed detection, and as illustrating method shown in Fig. 1, as shown in Figure 3, step 102, simulation down operation download target data bag to web site requests to be detected, implement by following manner:
Step 301, the preset coordinate obtaining download function key and default screen resolution.
According to the difference of mobile phone screen, mobile phone resolution changes thereupon, in order to can all can accurate simulation down operation in the mobile phone of different resolution, needs the change according to mobile phone resolution and adjusts the trigger coordinate of down operation.
Obtain manner comprises: obtained from website to be detected by network, and obtains from this locality.
Step 302, according to current resolution, preset resolution and preset coordinate, calculate the actual coordinate of download function key.
The computing formula of the abscissa of actual coordinate is as follows:
The abscissa of (the pixels across value of the pixels across value/default resolution of current resolution) * preset coordinate.
The computing formula of the ordinate of actual coordinate is as follows:
The ordinate of (longitudinal pixel value of the longitudinal pixel value/default resolution of current resolution) * preset coordinate.
Be described below by an example: current resolution is 320*480, default resolution is 400*854, and preset coordinate is (X1, Y1).Calculate actual coordinate (X2, Y2): X2=(320/400) * X1; Y2=(480/854) * Y1.
Step 303, actual coordinate place generate down operation.
Step 304, the download request triggered to default network transmission down operation, download request is used for downloading target data bag from website to be detected.
In this programme implementation procedure, call Monkeyrunner mechanism form by java and realize starting the application market software in electronic equipment, this electronic market software is the client application of website to be detected.
When realizing, need to set up and set up electronic equipment example by software language, its codes implement is as follows:
The method of the wire-speed detection that the embodiment of the present invention provides, according to the coordinate of the resolution adjustment simulation down operation of electronic equipment, can make the electronic equipment of different resolution all can use this method, improves the scope of application of wire-speed detection.
It should be noted that, the method of the wire-speed detection that the embodiment of the present invention provides, speed of download not only for a target data bag to a website to be detected detects, speed of download also for the multiple target data bags to a website detects, and the speed of download also for the multiple target data bags to multiple website detects.Detection method for each target data bag is consistent with method shown in Fig. 1.
Further, for each target data bag, the mode of being averaged by repeated detection, obtains the average speed of download of this packet.If with the multiple target data bags to a website (as application a, application b, application speed of download c) detect, then download target data bag successively according to putting in order, after a down operation terminates, carrying out second time down operation according to putting in order again, realizing repeated detection by that analogy.If detecting number of times is 3 times, then all target data Bao Sanci that sequential loop is downloaded in certain website to be detected (as application a, apply b, application c, application a, application b, application c, apply a, application b, application c).
Further, if need to detect the speed of download of multiple website to be detected (as website A, website B, website C, website D), then detect all websites to be detected according to the number of times sequential loop detected.Usually, the number of times of detection is 30 times.
The speed of download mentioned in this law people embodiment is equal to network speed (network speed).
The embodiment of the present invention additionally provides a kind of device of wire-speed detection, and as shown in Figure 4, described device 41 comprises:
First determining unit 411, for determining the target data bag meeting current network type, the packet of described target data bag for providing in website to be detected;
Analogue unit 412, downloads described target data bag for simulating down operation to web site requests to be detected;
Record cell 413, very first time when the described down operation for recording the simulation of described analogue unit 412 triggers;
Acquiring unit 414, during for default waiting time after the first time, obtains the amount of downloading data of described target data bag and downloading data amount is used described in downloading the second time;
Computing unit 415, the data volume that described second time obtained for the described very first time according to described record cell 413 record, described acquiring unit 414 and described target data bag have been downloaded calculates network speed, and described network speed is for representing the network speed of website to be detected described in the type of current network.
The device 41 of wire-speed detection provided by the invention, the target data bag in website to be detected can be determined according to the type of current network, simulate artificial down operation and download target data bag to web site requests to be detected, record request downloads the very first time of target data bag simultaneously, during default waiting time after the very first time, obtain the amount of downloading data of described target data bag and the second time that described in download, downloading data amount is used, calculate network speed according to the data volume that the very first time, the second time and described target data bag have been downloaded.In prior art, need by manually extracting frame, detection efficiency is low.In the present invention, by simulating artificial down operation, cost of labor can be saved.Processed by electronic equipment, can improve the accuracy of detection, mention the error that frame exists when overcoming manual detection, electronic equipment more manually has efficient data-handling capacity simultaneously, and then improves the efficiency detected.
Further, as shown in Figure 5, described device 41 also comprises the second determining unit 416, delete cells 417, receiving element 418, switch unit 419.
Described first determining unit 411 comprises:
Determine subelement 4111, for the type determination preset data bag size according to current network;
First obtains subelement 4112, and for obtaining packet information set from website to be detected, described packet information set is for representing title and the data volume size of Downloadable packet;
Search subelement 4113, search from described packet information set and the immediate target data bag of described preset data bag size for the described preset data bag size obtaining subelement 4112 acquisition according to described first.
The device 41 of the wire-speed detection that the embodiment of the present invention provides, can according to the type of current network, determine the size of the packet adapted with the type of current network, the packet that conforms to the size of this packet is searched as target data bag from datagram message set, and then reach and download more targetedly, improve wire-speed detection efficiency.
Further, described device 41 also comprises:
Second determining unit 416, for determining default waiting time according to the type of described current network.
The embodiment of the present invention, by determining the default stand-by period according to the type of current network, according to the difference of network type, can arrange the different default stand-by period, reaches the applicability improving wire-speed detection.
Further, described acquiring unit 414 also for:
When described target data bag is downloaded complete, obtain the size of described target data bag and the up-to-date modification time of described target data bag, the described size by target data bag is defined as downloading data amount, described up-to-date amendment was defined as the second time;
When described target data bag is not downloaded complete, obtain the size that described target data bag has been downloaded, the size that described target data bag has been downloaded is defined as downloading data amount, the up-to-date modification time of described target data bag was defined as the second time.
The device 41 of the wire-speed detection that the embodiment of the present invention provides, can download complete situation according to target data bag, the data volume that acquisition target data bag has been downloaded and the time that the data volume that download has been downloaded uses, improves the accuracy of wire-speed detection.
Further, described device 41 also comprises:
Delete cells 417, for the packet deleting cache contents corresponding to described website to be detected and downloading from described website to be detected.
The device 41 of the wire-speed detection that the embodiment of the present invention provides, by deleting cache contents, the target data bag of request when network speed can be avoided to test repeats with the packet downloaded, and improves the accuracy of wire-speed detection today.
Further, described device 41 also comprises:
Receiving element 418, for receiving the network type designated order that user triggers, described network type formulates instruction for describing default network type, the network type used when described default network type is and detects website network speed to be detected;
Switch unit 419, for when current network type and default network type are not identical, switches to described default network type.
The device 41 of the wire-speed detection that the embodiment of the present invention provides, according to the network type designated order of user, can switch in the network type needed for user and detects.
Further, described analogue unit 412, comprising:
Second obtains subelement 4121, for obtaining the preset coordinate of download function key and default screen resolution;
Computation subunit 4122, for obtaining described default resolution and the preset coordinate of subelement 4121 acquisition according to current resolution, described second, calculates the actual coordinate of described download function key;
Generate subelement 4123, generate down operation for the described actual coordinate place calculated in described computation subunit 4122;
Send subelement 4124, for sending the download request that described down operation triggers to default network, described download request is used for downloading target data bag from described website to be detected.
The device 41 of the wire-speed detection that the embodiment of the present invention provides, according to the coordinate of the resolution adjustment simulation down operation of electronic equipment, can make the electronic equipment of different resolution all can use this device 41, improves the scope of application of wire-speed detection.
Those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, internal structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (14)

1. a method for wire-speed detection, is characterized in that, described method comprises:
Determine the target data bag meeting current network type, the packet of described target data bag for providing in website to be detected;
Simulation down operation downloads described target data bag to web site requests to be detected;
Record very first time when described down operation triggers;
During default waiting time after the first time, obtain the amount of downloading data of described target data bag and downloading data amount is used described in downloading the second time;
Calculate network speed according to the data volume that the described very first time, the second time and described target data bag have been downloaded, described network speed is for representing the network speed of website to be detected described in the type of current network.
2. method according to claim 1, is characterized in that, the described step determining the target data bag meeting current network type, comprising:
According to the type determination preset data bag size of current network;
Obtain packet information set from website to be detected, described packet information set is for representing title and the data volume size of Downloadable packet;
Search from described packet information set and the immediate target data bag of described preset data bag size according to described preset data bag size.
3. method according to claim 2, it is characterized in that, when described default waiting time after the first time, before the amount of downloading data obtaining described target data bag and the step of the second time that downloading data amount is used described in downloading, described method also comprises:
Default waiting time is determined according to the type of described current network.
4. method according to claim 3, is characterized in that, the step of the amount of downloading data of described acquisition described target data bag and the second time that downloading data amount is used described in downloading, comprising:
If described target data bag has been downloaded complete, then obtain the size of described target data bag and the up-to-date modification time of described target data bag, the described size by target data bag is defined as downloading data amount, described up-to-date modification time was defined as the second time;
If described target data bag is not downloaded complete, then obtain the size that described target data bag has been downloaded, the size that described target data bag has been downloaded is defined as downloading data amount, the up-to-date modification time of described target data bag was defined as the second time.
5. method according to claim 4, is characterized in that, described determine the step of the target data bag meeting current network type before, described method also comprises:
The packet deleted cache contents corresponding to described website to be detected and downloading from described website to be detected.
6. method according to claim 5, is characterized in that, described determine the step of the target data bag meeting current network type before, described method also comprises:
Receive the network type designated order that user triggers, described network type formulates instruction for describing default network type, the network type used when described default network type is and detects website network speed to be detected;
If current network type is not identical with default network type, then switch to described default network type.
7. method according to claim 6, is characterized in that, described simulation down operation downloads the step of described target data bag to web site requests to be detected, comprising:
Obtain the preset coordinate of download function key and default screen resolution;
According to current resolution, described default resolution and preset coordinate, calculate the actual coordinate of described download function key;
Down operation is generated at described actual coordinate place;
Send the download request of described down operation triggering to default network, described download request is used for downloading target data bag from described website to be detected.
8. a device for wire-speed detection, is characterized in that, described device comprises:
First determining unit, for determining the target data bag meeting current network type, the packet of described target data bag for providing in website to be detected;
Analogue unit, downloads described target data bag for simulating down operation to web site requests to be detected;
Record cell, very first time when the described down operation for recording the simulation of described analogue unit triggers;
Acquiring unit, during for default waiting time after the first time, obtains the amount of downloading data of described target data bag and downloading data amount is used described in downloading the second time;
Computing unit, the data volume that described second time obtained for the described very first time according to described recording unit records, described acquiring unit and described target data bag have been downloaded calculates network speed, and described network speed is for representing the network speed of website to be detected described in the type of current network.
9. device according to claim 8, is characterized in that, described first determining unit comprises:
Determine subelement, for the type determination preset data bag size according to current network;
First obtains subelement, and for obtaining packet information set from website to be detected, described packet information set is for representing title and the data volume size of Downloadable packet;
Search subelement, search from described packet information set and the immediate target data bag of described preset data bag size for the described preset data bag size obtaining subelement acquisition according to described first.
10. device according to claim 9, is characterized in that, described device also comprises:
Second determining unit, for determining default waiting time according to the type of described current network.
11. devices according to claim 10, is characterized in that, described acquiring unit also for:
When described target data bag is downloaded complete, obtain the size of described target data bag and the up-to-date modification time of described target data bag, the described size by target data bag is defined as downloading data amount, described up-to-date amendment was defined as the second time;
When described target data bag is not downloaded complete, obtain the size that described target data bag has been downloaded, the size that described target data bag has been downloaded is defined as downloading data amount, the up-to-date modification time of described target data bag was defined as the second time.
12. devices according to claim 11, is characterized in that, described device also comprises:
Delete cells, for the packet deleting cache contents corresponding to described website to be detected and downloading from described website to be detected.
13. devices according to claim 12, is characterized in that, described device also comprises:
Receiving element, for receiving the network type designated order that user triggers, described network type formulates instruction for describing default network type, the network type used when described default network type is and detects website network speed to be detected;
Switch unit, for when current network type and default network type are not identical, switches to described default network type.
14. devices according to claim 13, is characterized in that, described analogue unit, comprising:
Second obtains subelement, for obtaining the preset coordinate of download function key and default screen resolution;
Computation subunit, for obtaining described default resolution and the preset coordinate of subelement acquisition according to current resolution, described second, calculates the actual coordinate of described download function key;
Generate subelement, generate down operation for the described actual coordinate place calculated in described computation subunit;
Send subelement, for sending the download request that described down operation triggers to default network, described download request is used for downloading target data bag from described website to be detected.
CN201310343896.9A 2013-08-08 2013-08-08 The method and device of wire-speed detection Active CN104348680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310343896.9A CN104348680B (en) 2013-08-08 2013-08-08 The method and device of wire-speed detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310343896.9A CN104348680B (en) 2013-08-08 2013-08-08 The method and device of wire-speed detection

Publications (2)

Publication Number Publication Date
CN104348680A true CN104348680A (en) 2015-02-11
CN104348680B CN104348680B (en) 2019-11-12

Family

ID=52503547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310343896.9A Active CN104348680B (en) 2013-08-08 2013-08-08 The method and device of wire-speed detection

Country Status (1)

Country Link
CN (1) CN104348680B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954197A (en) * 2015-04-29 2015-09-30 广东欧珀移动通信有限公司 Multitask transmission speed detection method and device
CN105306295A (en) * 2015-10-20 2016-02-03 浪潮软件集团有限公司 Network speed detection method and device
CN105553777A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Regional network speed detection method and device
CN105681124A (en) * 2015-12-25 2016-06-15 北京奇虎科技有限公司 Network speed detection method and device
CN106851695A (en) * 2017-03-29 2017-06-13 北京小米移动软件有限公司 A kind of methods, devices and systems for testing network speed
CN108092837A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 Network communication quality detection method tests the speed server and network tests the speed plug-in unit
CN109982358A (en) * 2019-04-11 2019-07-05 中国联合网络通信集团有限公司 The detection method of network speed, detection device, mobile terminal
CN112398702A (en) * 2019-08-12 2021-02-23 腾讯科技(深圳)有限公司 Speed measurement method and device, server and storage medium
CN115134274A (en) * 2022-05-19 2022-09-30 赛尔网络有限公司 Network speed measuring method and device, electronic equipment and storage medium
CN116614393A (en) * 2023-07-21 2023-08-18 中融云数(北京)技术有限公司 Weak network scene bandwidth estimation method and system based on RTC communication

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1744529A (en) * 2004-08-31 2006-03-08 英业达股份有限公司 Automatic test method for multi web site performance
US20060159098A1 (en) * 2004-12-24 2006-07-20 Munson Michelle C Bulk data transfer
US7219145B2 (en) * 2001-05-30 2007-05-15 Qualcomm Incorporated Method and apparatus for individually estimating time required to download application programs to remote modules over wireless network
CN102761467A (en) * 2011-04-25 2012-10-31 腾讯科技(深圳)有限公司 Method, device and system for calculating webpage download time of browser
CN102882738A (en) * 2012-09-06 2013-01-16 北京奇虎科技有限公司 Method and device for detecting network access speed
CN103001829A (en) * 2012-12-14 2013-03-27 大唐移动通信设备有限公司 Testing method and device of network data transmission
CN103001835A (en) * 2012-12-29 2013-03-27 电信科学技术第一研究所 Network bandwidth test method and system based on data transmission

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7219145B2 (en) * 2001-05-30 2007-05-15 Qualcomm Incorporated Method and apparatus for individually estimating time required to download application programs to remote modules over wireless network
CN1744529A (en) * 2004-08-31 2006-03-08 英业达股份有限公司 Automatic test method for multi web site performance
US20060159098A1 (en) * 2004-12-24 2006-07-20 Munson Michelle C Bulk data transfer
CN102761467A (en) * 2011-04-25 2012-10-31 腾讯科技(深圳)有限公司 Method, device and system for calculating webpage download time of browser
CN102882738A (en) * 2012-09-06 2013-01-16 北京奇虎科技有限公司 Method and device for detecting network access speed
CN103001829A (en) * 2012-12-14 2013-03-27 大唐移动通信设备有限公司 Testing method and device of network data transmission
CN103001835A (en) * 2012-12-29 2013-03-27 电信科学技术第一研究所 Network bandwidth test method and system based on data transmission

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104954197A (en) * 2015-04-29 2015-09-30 广东欧珀移动通信有限公司 Multitask transmission speed detection method and device
CN104954197B (en) * 2015-04-29 2018-05-29 广东欧珀移动通信有限公司 Multitask transmission speed detection method and device
CN105306295A (en) * 2015-10-20 2016-02-03 浪潮软件集团有限公司 Network speed detection method and device
CN105306295B (en) * 2015-10-20 2018-04-27 浪潮软件集团有限公司 Network speed detection method and device
CN105553777A (en) * 2015-12-25 2016-05-04 北京奇虎科技有限公司 Regional network speed detection method and device
CN105681124A (en) * 2015-12-25 2016-06-15 北京奇虎科技有限公司 Network speed detection method and device
CN105681124B (en) * 2015-12-25 2019-05-21 北京奇虎科技有限公司 A kind of wire-speed detection method and device
CN105553777B (en) * 2015-12-25 2019-06-21 北京奇虎科技有限公司 A kind of region network speed detection method and device
CN108092837B (en) * 2016-11-21 2021-04-27 腾讯科技(深圳)有限公司 Network communication quality detection method, speed measurement server and network speed measurement plug-in
CN108092837A (en) * 2016-11-21 2018-05-29 腾讯科技(深圳)有限公司 Network communication quality detection method tests the speed server and network tests the speed plug-in unit
CN106851695A (en) * 2017-03-29 2017-06-13 北京小米移动软件有限公司 A kind of methods, devices and systems for testing network speed
CN106851695B (en) * 2017-03-29 2021-03-09 北京小米移动软件有限公司 Method, device and system for testing network speed
CN109982358A (en) * 2019-04-11 2019-07-05 中国联合网络通信集团有限公司 The detection method of network speed, detection device, mobile terminal
CN112398702A (en) * 2019-08-12 2021-02-23 腾讯科技(深圳)有限公司 Speed measurement method and device, server and storage medium
CN115134274A (en) * 2022-05-19 2022-09-30 赛尔网络有限公司 Network speed measuring method and device, electronic equipment and storage medium
CN115134274B (en) * 2022-05-19 2023-08-22 赛尔网络有限公司 Network speed measuring method and device, electronic equipment and storage medium
CN116614393A (en) * 2023-07-21 2023-08-18 中融云数(北京)技术有限公司 Weak network scene bandwidth estimation method and system based on RTC communication
CN116614393B (en) * 2023-07-21 2023-11-28 中融云数(北京)技术有限公司 Weak network scene bandwidth estimation method and system based on RTC communication

Also Published As

Publication number Publication date
CN104348680B (en) 2019-11-12

Similar Documents

Publication Publication Date Title
CN104348680A (en) Method and device for detecting network speed
CN107566786B (en) Method and device for acquiring monitoring video and terminal equipment
CN108075934A (en) A kind of network quality monitoring method, apparatus and system
CN107666406B (en) Intelligent card display method and device
CN106339273A (en) Application program restoration method, terminal and server
CN104581785A (en) Wireless network testing method, testing device and mobile terminal
CN104679627A (en) Testing method and device
CN105389568A (en) Method, device and system for acquiring location of vehicle
CN112584422B (en) Method and device for acquiring performance of 5G terminal
CN111813622B (en) Equipment monitoring method and device
CN113434101A (en) Device control method, device, storage medium, and electronic apparatus
CN112566078A (en) Device connection method and apparatus, storage medium, and electronic apparatus
CN109408309A (en) The test method and device of multiple terminals
CN109688483A (en) A kind of method, apparatus and electronic equipment obtaining video
CN108462590B (en) Network flow monitoring method and device and computer terminal
CN104283865A (en) Download processing method and device, server and client device
CN114095876A (en) Broadcast data processing method and device, storage medium and electronic device
CN102316507A (en) Method for detecting mobile terminal network signal, system and mobile terminal thereof
CN104243202A (en) Data processing method and device of parameter configuration and parameter configuration method and device
CN112738019B (en) Method and device for displaying device information, storage medium and electronic device
CN109194706A (en) Internet resources dial testing method and terminal
CN102685155B (en) The method that content transmits, content delivering server and content transmit proxy server
CN104244334B (en) A kind of method and apparatus for determining network service quality
CN105978958A (en) Method and device for precisely marking position
CN113300910B (en) Method and system for acquiring use rate, terminal, access point and MEC server

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