[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109982358A - The detection method of network speed, detection device, mobile terminal - Google Patents

The detection method of network speed, detection device, mobile terminal Download PDF

Info

Publication number
CN109982358A
CN109982358A CN201910290235.1A CN201910290235A CN109982358A CN 109982358 A CN109982358 A CN 109982358A CN 201910290235 A CN201910290235 A CN 201910290235A CN 109982358 A CN109982358 A CN 109982358A
Authority
CN
China
Prior art keywords
transmission rate
current time
network speed
resource
time
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.)
Pending
Application number
CN201910290235.1A
Other languages
Chinese (zh)
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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN201910290235.1A priority Critical patent/CN109982358A/en
Publication of CN109982358A publication Critical patent/CN109982358A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters
    • H04W28/22Negotiating communication rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Quality & Reliability (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention provides the detection method, detection device, mobile terminal of a kind of network speed, belongs to field of communication technology, can at least partly solve the problems, such as that the application program that existing mobile terminal is run not can determine that current network speed size.Detection method of the invention includes step S1, the server transport first resource with specified IP address;Step S2, the change rate of transmission rate is determined in real time;Step S3, judge whether the change rate of current time transmission rate is lower than first threshold, if it is S4 is thened follow the steps, otherwise return step S2;Step S4, using current transmission rate as network speed measured value.

Description

The detection method of network speed, detection device, mobile terminal
Technical field
The invention belongs to fields of communication technology, and in particular to a kind of detection method of network speed, a kind of detection device of network speed With a kind of mobile terminal.
Background technique
Existing mobile terminal when accessing network (such as 3G network, 4G network, Wifi etc.) is run on mobile terminal Application program not can determine that current network speed size, and then be easy to cause data transmission card.
Summary of the invention
The present invention at least partly solves the application program run on existing mobile terminal not and can determine that current network speed The problem of size, provides a kind of detection method of network speed, a kind of detection device of network speed and a kind of mobile terminal.
Solve present invention problem used by technical solution be a kind of network speed detection method, comprising: step S1, with The server transport first resource of specified IP address;Step S2, the change rate of transmission rate is determined in real time;Step S3, judgement is worked as Whether the change rate of preceding moment transmission rate is lower than first threshold, if it is S4 is thened follow the steps, otherwise return step S2;Step S4, using current transmission rate as network speed measured value.
Optionally, step S2 is specifically included: the transmission rate at corresponding moment step S21, is determined every first time interval; Step S22, according to determined by current time, the difference of transmission rate and the preceding transmission rate once determined determines that current time passes The change rate of defeated rate.
Optionally, step S21 is specifically included: calculating the first resource transmitted before the first time interval at current time Total amount of data and the first time interval at current time before the time-consuming quotient of transmission, using result as the first of current time Transmission rate before time interval;Calculate the total amount of data and the transmission at current time of the first resource that current time has transmitted Time-consuming quotient, using result as the transmission rate at current time.
Optionally, step S1 specifically: the server of Xiang Zhiding IP address uploads first resource;Or from specified IP address Server download first resource.
Optionally, after step s4 further include: the quality of resources to be downloaded step S5, is determined according to network speed measured value.
Solve the detection device that technical solution used by present invention problem is a kind of network speed, comprising: starting module, For starting the server transport first resource with specified IP address;Determining module, for determining the variation of transmission rate in real time Rate;Judgment module if it is sends first for judging whether the change rate of current time transmission rate is lower than first threshold Signal gives network speed measured value determining module;Network speed measured value determining module will receive the first signal moment corresponding transmission speed Rate is as network speed measured value.
Optionally it is determined that module includes: the first determining submodule, for determining the corresponding moment every first time interval Transmission rate;Second determines submodule, for the transmission rate according to determined by current time and the preceding transmission speed once determined The difference of rate determines the change rate of current time transmission rate.
Optionally, it first determines that submodule is specifically used for: having been transmitted before calculating the first time interval at current time The time-consuming quotient of transmission before the total amount of data of first resource and the first time interval at current time, using result as it is current when Transmission rate before the first time interval at quarter;Calculate the total amount of data of first resource that current time has transmitted and it is current when The time-consuming quotient of the transmission at quarter, using result as the transmission rate at current time.
Optionally, starting module is specifically used for: starting on the server of specified IP address after receiving enabling signal Pass first resource;Or starts after receiving enabling signal from the server of specified IP address and download first resource.
Solving technical solution used by present invention problem is a kind of mobile terminal, the detection including above-mentioned network speed Device further includes document quality adjustment module, is used to determine the quality of resources to be downloaded according to network speed measured value.
By the server transport first resource with specified IP address, current network speed can be estimated quickly, so as to Further to determine that the quality of downloading resource provides foundation for application program.
Detailed description of the invention
Fig. 1 is the flow chart of the detection method of the network speed of the embodiment of the present invention;
Fig. 2 is the block diagram of the detection device of the network speed of the embodiment of the present invention;
Fig. 3 is the block diagram of the mobile terminal of the embodiment of the present invention;
Wherein, appended drawing reference are as follows: 11, starting module;12, determining module;13, judgment module;14, network speed measured value determines Module;15, document quality adjusts module;12a, first determine submodule;12b, second determine submodule.
Specific embodiment
Technical solution in order to enable those skilled in the art to better understand the present invention, with reference to the accompanying drawing and specific embodiment party Present invention is further described in detail for formula.
Embodiment 1:
Referring to Fig. 1, the present embodiment provides a kind of detection methods of network speed, include the following steps.
Step S1, with the server transport first resource of specified IP address.Specifically, the clothes to specified IP address be can be Business device uploads first resource;Or first resource is downloaded from the server of specified IP address.The upload or downloading of first resource be For being detected to network speed.Transmission rate in following full text refers to the transmission rate of first resource.
Step S2, the change rate of transmission rate is determined in real time.
It can specifically complete in two steps, i.e., in step S21, every the transmission rate at first time interval determining corresponding moment; Current time is determined in the difference of step S22, the transmission rate according to determined by current time and the preceding transmission rate once determined The change rate of transmission rate.
Transmission rate determined by current time is denoted as Y2, and the preceding transmission rate once determined is denoted as Y1, between first time Every being denoted as t, then the calculation formula of the change rate K of current time transmission rate is K=(Y2-Y1)/t.
Wherein, the size of first time interval can be determined according to the computing capability of equipment.If computing capability is stronger, first Time interval can be smaller with value;If computing capability is weaker, first time interval can be bigger with value.
Step S21 is specific can include: calculates the number of the first resource transmitted before the first time interval at current time According to the time-consuming quotient of the transmission before total amount and the first time interval at current time, using result as the first time at current time Transmission rate before interval;Total amount of data and the transmission at current time for calculating the first resource that current time has transmitted are time-consuming Quotient, using result as the transmission rate at current time.
The data volume transmitted such as current time first resource is denoted as Q2, and the transmission of the first file of current time is time-consuming It is denoted as T2, transmitted data amount corresponding to first time interval is denoted as Q1 before current time, before current time at the first time The corresponding transmission time-consuming in interval is denoted as T2, then Y2=Q2/T2, Y1=Q1/T1.
Step S3, judge whether the change rate of current time transmission rate is lower than first threshold, if it is thening follow the steps S4, otherwise return step S2.First threshold can be a fixed numerical value, be also possible to be calculated according to current time Transmission rate determined by (e.g. current time be calculated the 10% of transmission rate).
Step S4, using current transmission rate as network speed measured value.Certainly the step after network speed measured value has been determined S2 can stop, that is, stop the change rate for determining transmission rate in real time.
Foregoing provide the method for the change rate of the quick transmission rate for determining different moments and transmission rate, this sides It is less that method occupies hardware resource.In practical applications, such as in order to determine that the quality of resources to be downloaded (such as judges current web page The image of middle display is the image of high-resolution image or low resolution), it does not need to determine accurate transmission rate.It adopts Identified transmission rate is enough as the foundation of above-mentioned judgement in aforementioned manners.
Optionally, after step s4 further include: the quality of resources to be downloaded step S5, is determined according to network speed measured value.
The quality of resources to be downloaded is, for example, the resolution ratio of picture to be downloaded, the resolution ratio of video to be downloaded, sound to be downloaded Code rate of frequency etc..For example, if network speed measured value is bigger, then can choose the picture of downloading high definition;If network speed measures Be worth it is smaller, then can choose downloading Relative Fuzzy picture.So avoidable Caton, improves user experience.
Embodiment 2:
Referring to fig. 2, the present embodiment provides a kind of detection devices of network speed, comprising: starting module 11, for starting and specifying The server transport first resource of IP address;Determining module 12, for determining the change rate of transmission rate in real time;Judgment module 13, for judging whether the change rate of current time transmission rate is lower than first threshold, the first signal is if it is sent to net Fast measured value determining module 14;Network speed measured value determining module 14 will receive the first signal moment corresponding transmission rate and make For network speed measured value.Certainly, if it is determined that module 13 judges that the change rate of current time transmission rate is not less than first threshold, Then it is determined that module 12 continues the change rate for determining transmission rate in real time.
Optionally it is determined that module 12 includes: the first determining submodule 12a, corresponded to for being determined every first time interval The transmission rate at moment;Second determines submodule 12b, for the transmission rate according to determined by current time and preceding primary determination Transmission rate difference determine current time transmission rate change rate.
Optionally, it first determines that submodule 12a is specifically used for: having been transmitted before calculating the first time interval at current time The total amount of data of first resource and the first time interval at current time before the time-consuming quotient of transmission, using result as currently Transmission rate before the first time interval at moment;Calculate the total amount of data of first resource that current time has transmitted and current The time-consuming quotient of the transmission at moment, using result as the transmission rate at current time.
Optionally, starting module 11 is specifically used for: starting the server to specified IP address after receiving enabling signal Upload first resource;Or starts after receiving enabling signal from the server of specified IP address and download first resource.
The working principle of above each module can refer to embodiment 1.The detection device can realize that occupancy hardware resource is less In the case of quickly estimate the size of transmission rate, obtained network speed measured value can provide reference for the operation of mobile terminal.
Embodiment 3:
Referring to Fig. 3, the present embodiment provides a kind of mobile terminal, the detection device of the network speed including embodiment 2 further includes text Part Mass adjust- ment module 15 is used to determine the quality of resources to be downloaded according to network speed measured value.
Mobile terminal is specifically, for example, smart phone, tablet computer etc..In the case that achievable occupancy hardware resource is less Quickly estimate the size of transmission rate, obtained network speed measured value can be selected for mobile terminal the quality of resources to be downloaded according to According to.So as to avoid Caton, user experience is improved.
It is understood that the principle that embodiment of above is intended to be merely illustrative of the present and the exemplary implementation that uses Mode, however the present invention is not limited thereto.For those skilled in the art, essence of the invention is not being departed from In the case where mind and essence, various changes and modifications can be made therein, these variations and modifications are also considered as protection scope of the present invention.

Claims (10)

1. a kind of detection method of network speed characterized by comprising
Step S1, with the server transport first resource of specified IP address;
Step S2, the change rate of transmission rate is determined in real time;
Step S3, judge whether the change rate of current time transmission rate is lower than first threshold, it is no if it is thening follow the steps S4 Then return step S2;
Step S4, using current transmission rate as network speed measured value.
2. detection method according to claim 1, which is characterized in that step S2 is specifically included:
Step S21, the transmission rate at corresponding moment is determined every first time interval;
Step S22, when according to determined by current time, the difference of transmission rate and the preceding transmission rate once determined determines current Carve the change rate of transmission rate.
3. detection method according to claim 2, which is characterized in that step S21 is specifically included:
Calculate the first of the total amount of data of first resource and current time transmitted before the first time interval at current time The quotient of transmission time-consuming before time interval, using result as the transmission rate before the first time interval at current time;
Calculate the time-consuming quotient of the transmission of the total amount of data of first resource and current time that current time has transmitted, using result as The transmission rate at current time.
4. detection method according to claim 1, which is characterized in that step S1 specifically:
First resource is uploaded to the server of specified IP address;Or
First resource is downloaded from the server of specified IP address.
5. detection method according to claim 1, which is characterized in that after step s4 further include:
Step S5, the quality of resources to be downloaded is determined according to network speed measured value.
6. a kind of detection device of network speed characterized by comprising
Starting module, for starting the server transport first resource with specified IP address;
Determining module, for determining the change rate of transmission rate in real time;
Judgment module if it is sends for judging whether the change rate of current time transmission rate is lower than first threshold One signal gives network speed measured value determining module;
Network speed measured value determining module will receive the first signal moment corresponding transmission rate as network speed measured value.
7. detection device according to claim 6, which is characterized in that determining module includes:
First determines submodule, for determining the transmission rate at corresponding moment every first time interval;
Second determines submodule, the difference for the transmission rate according to determined by current time and the preceding transmission rate once determined Determine the change rate of current time transmission rate.
8. detection device according to claim 7, which is characterized in that first determines that submodule is specifically used for:
Calculate the first of the total amount of data of first resource and current time transmitted before the first time interval at current time The quotient of transmission time-consuming before time interval, using result as the transmission rate before the first time interval at current time;
Calculate the time-consuming quotient of the transmission of the total amount of data of first resource and current time that current time has transmitted, using result as The transmission rate at current time.
9. detection device according to claim 6, which is characterized in that starting module is specifically used for: receiving starting letter Start after number to the server of specified IP address and uploads first resource;Or
Starting downloads first resource from the server of specified IP address after receiving enabling signal.
10. a kind of mobile terminal, which is characterized in that the detection dress including the network speed according to claim 6-9 any one It sets, further includes document quality adjustment module, be used to determine the quality of resources to be downloaded according to network speed measured value.
CN201910290235.1A 2019-04-11 2019-04-11 The detection method of network speed, detection device, mobile terminal Pending CN109982358A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910290235.1A CN109982358A (en) 2019-04-11 2019-04-11 The detection method of network speed, detection device, mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910290235.1A CN109982358A (en) 2019-04-11 2019-04-11 The detection method of network speed, detection device, mobile terminal

Publications (1)

Publication Number Publication Date
CN109982358A true CN109982358A (en) 2019-07-05

Family

ID=67084299

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910290235.1A Pending CN109982358A (en) 2019-04-11 2019-04-11 The detection method of network speed, detection device, mobile terminal

Country Status (1)

Country Link
CN (1) CN109982358A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737887A (en) * 2020-12-29 2021-04-30 北京明略昭辉科技有限公司 Network speed detection method, system, electronic equipment and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348680A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method and device for detecting network speed
CN105099602A (en) * 2014-04-25 2015-11-25 阿里巴巴集团控股有限公司 File transmission method based on network speed and system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348680A (en) * 2013-08-08 2015-02-11 腾讯科技(深圳)有限公司 Method and device for detecting network speed
CN105099602A (en) * 2014-04-25 2015-11-25 阿里巴巴集团控股有限公司 File transmission method based on network speed and system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112737887A (en) * 2020-12-29 2021-04-30 北京明略昭辉科技有限公司 Network speed detection method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
US9106521B2 (en) Method and system for visualizing an adaptive screen according to a terminal
US8594606B2 (en) Smoothing filter for irregular update intervals
CN108075934B (en) Network quality monitoring method, device and system
JP5686133B2 (en) Usable bandwidth measurement system, transmitter, usable bandwidth measurement method and program
US20100071008A1 (en) System and method for transmitting an animated figure
CN109891935A (en) The repositioning of mobile edge application
US20180376176A1 (en) Quality-of-experience optimization apparatus, network quality estimation apparatus, mobile terminal, quality-of-experience optimization method, network quality estimation method, and program
CN106817314B (en) Big data acquisition method, device and system
CN104754416A (en) Video playing method and video playing device
CN107079175B (en) Image transfer apparatus and image transmission method
CN111669468B (en) Network state display method and device in call process, computer equipment and medium
CN105208388B (en) Dynamically adjustment encodes the method and system of frame per second in video communication
CN110012324A (en) A kind of the code rate adaptive approach and system of embedded radio transmission of video
CN109982358A (en) The detection method of network speed, detection device, mobile terminal
CN107395692B (en) Terminal screen methods of exhibiting and device
CN114374841B (en) Optimization method and device for video coding rate control and electronic equipment
CN111617466A (en) Method and device for determining coding format and method for realizing cloud game
CN107248961A (en) A kind of management method and management system of Internet of Things data flow
CN104717555A (en) Video stream acquiring method and device
CN103338131A (en) Method and equipment for testing log transmitting loss rate
US20150350046A1 (en) Information processing apparatus and non-transitory computer readable medium
CN102707959A (en) Implementation method, client and system of loading window of instant communication interface
CN110505352B (en) Call quality testing method, system, computer device and computer storage medium
CN102956208B (en) Method, device and system for counting image frame rates of terminal
CN109756730B (en) Evaluation processing method and device based on video, intelligent equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20190705

RJ01 Rejection of invention patent application after publication