CN114760228A - Network speed testing method and device, intelligent equipment and storage medium - Google Patents

Network speed testing method and device, intelligent equipment and storage medium Download PDF

Info

Publication number
CN114760228A
CN114760228A CN202011564236.XA CN202011564236A CN114760228A CN 114760228 A CN114760228 A CN 114760228A CN 202011564236 A CN202011564236 A CN 202011564236A CN 114760228 A CN114760228 A CN 114760228A
Authority
CN
China
Prior art keywords
network speed
file
test request
network
calculating
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
CN202011564236.XA
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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202011564236.XA priority Critical patent/CN114760228A/en
Publication of CN114760228A publication Critical patent/CN114760228A/en
Pending legal-status Critical Current

Links

Images

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
    • 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a network speed testing method, a device, intelligent equipment and a storage medium, which respectively calculate corresponding network speeds through three types of network speed testing requests, namely an application program, a downloading request and an access webpage, thereby distinguishing factors influencing the network speeds, simultaneously calculating the real-time network speed occupied by a first foreground application program for the application program, calculating the network speed corresponding to a first downloaded file for downloading, calculating the network speed corresponding to the first webpage for accessing the webpage, reducing the network speed calculation amount, shortening the network speed calculation time, improving the network speed testing efficiency, and calculating the network speed only for a testing object conforming to the corresponding network speed testing request, so that the network speed testing is more accurate.

Description

Network speed testing method and device, intelligent equipment and storage medium
Technical Field
The invention relates to the technical field of network speed testing, in particular to a network speed testing method and device, intelligent equipment and a storage medium.
Background
With the development of computer communication technology and internet technology, more and more people have electronic devices, such as tablet computers, personal digital assistants, palm top computers, smart mobile phones, etc., which can be networked with the wired internet and/or the wireless internet. By connecting the electronic equipment with the internet, the electronic equipment can browse, download and upload various information from a remote network server, such as a website or a cloud server. Among other things, network speed is an important factor affecting the user's network experience of a website. At present, because there are many network operators operating a website, and the network transmission lines and the intercommunication situation operated by each network operator are complex, the network speed is slow, response timeout of visiting the website is over time, and network congestion and other phenomena are often caused in the process of using the internet by a user, so that the network experience of the user is reduced.
In order to avoid the network congestion and other phenomena, the current network speed testing method generally utilizes speed testing software to test the network speed, so that a user can know the internet state according to the tested network speed. However, the network speed testing method cannot distinguish factors affecting the network speed, and the speed testing software is used for testing the network speed of the object related to the whole device, so that the time consumption is long, the accuracy of the obtained network speed is low, and the network speed cannot be adjusted according to the obtained network speed to avoid abnormal phenomena.
Accordingly, the prior art is yet to be improved and developed.
Disclosure of Invention
Therefore, in order to solve the above problems, a network speed testing method, an apparatus, an intelligent device and a storage medium are provided, so as to solve the technical problems of long time consumption and low accuracy in network speed testing in the prior art.
In a first aspect, the present application provides a network speed testing method, including:
receiving a network speed test request;
if the network speed test request is the network speed test request of the application program, determining the real-time network speed occupied by the first foreground application program running on the foreground;
if the network speed test request is a downloaded network speed test request, determining a first downloaded file, and calculating the network speed according to the size and the downloading time length of the first downloaded file;
and if the network speed test request is a network speed test request for accessing a webpage, determining a first webpage, and calculating the network speed according to the response time of the first webpage.
Optionally, the method further includes:
and displaying the network speed on a network speed test interface in a scale dial or numerical mode.
Optionally, if the network speed test request is a network speed test request of an application program, determining a real-time network speed occupied by a first foreground application program running on a foreground, specifically including:
if the network speed test request is the network speed test request of the application program, acquiring application package names of foreground application programs running in the foreground;
identifying all application package names to determine a first application package name belonging to a video type;
determining a first foreground application program according to the first application package name;
and calculating the real-time network speed occupied by the first foreground application program.
Optionally, the calculating the real-time network speed occupied by the first foreground application specifically includes:
acquiring all network ports occupied by the first foreground application program;
respectively calculating the network speed of each network port;
and taking the sum of the network speeds of all the network ports as the real-time network speed occupied by the first foreground application program.
Optionally, if the network speed test request is a downloaded network speed test request, determining a first download file, and calculating the network speed according to the size and the download duration of the first download file specifically includes:
if the network speed test request is a downloaded network speed test request, determining the file type with the downloading frequency reaching a preset threshold value;
if detecting that a first file with the file type is being downloaded, calculating a first downloading time length of the first file, and calculating the network speed according to the first downloading time length and the size of the first file;
if the file of the file type is not detected to be downloaded, acquiring a test file corresponding to the file type and a website of the test file;
and downloading the test file from a website corresponding to the website, calculating second downloading time of the test file, and calculating the network speed according to the second downloading time and the size of the test file, wherein the first file or the test file is used as the first downloading file.
Optionally, if it is not detected that the file of the file type is downloaded, after the test file corresponding to the file type and the website of the test file are obtained, the method further includes:
and encapsulating the website in the network speed test request, and sending the website to a website corresponding to the website.
Optionally, if the network speed test request is a network speed test request for accessing a web page, determining a first web page, and calculating the network speed according to the response time of the first web page specifically includes:
if the network speed test request is a network speed test request for accessing a webpage, determining the webpage with the most frequent access;
taking the most frequently visited webpage as a first webpage;
acquiring the response time of the first webpage;
and calculating the network speed according to the response time.
In a second aspect, the present application provides a wire speed testing device, the device comprising:
the receiving unit is used for receiving the network speed test request;
the first computing unit is used for determining the real-time network speed occupied by a first foreground application program running on a foreground when the network speed test request is the network speed test request of the application program;
the second calculation unit is used for determining a first download file when the network speed test request is a downloaded network speed test request, and calculating the network speed according to the size and the download duration of the first download file;
and the third calculating unit is used for determining the first webpage when the network speed test request is a network speed test request for accessing the webpage, and calculating the network speed according to the response time of the first webpage.
In a third aspect, an embodiment of the present application further provides an intelligent device, which includes a processor and a memory, where the memory is connected to the processor, and the memory stores a computer program, and the computer program is executed by the processor to implement the steps in the network speed testing method.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the steps in the network speed testing method.
The embodiment of the invention has the following beneficial effects:
according to the technical scheme provided by the embodiment of the invention, the corresponding network speeds are respectively calculated through three types of network speed test requests, namely the application program, the downloading request and the webpage accessing request, so that the factors influencing the network speeds are distinguished, meanwhile, only the real-time network speed occupied by the first foreground application program is calculated for the application program, only the network speed corresponding to the first downloading file is calculated for downloading, only the network speed corresponding to the first webpage is calculated for the webpage accessing, the network speed calculated amount is reduced, the network speed calculating time is shortened, the network speed test efficiency is improved, and the network speed is calculated only for the test object meeting the corresponding network speed test request, so that the network speed test is more accurate.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Wherein:
fig. 1 is a schematic flow chart of a network speed testing method in an embodiment of the present application;
FIG. 2 is a schematic structural diagram of a network speed testing apparatus according to an embodiment of the present application;
fig. 3 is a block diagram of an intelligent device in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Please refer to fig. 1, which is a schematic flow chart of a network speed testing method in an embodiment of the present application, the method includes:
step 101, receiving a network speed test request;
in the embodiment of the application, the network speed testing method is applied to the mobile terminal. The mobile terminal has a networking function. The mobile terminal can be a mobile phone, an IPAD, a computer and the like.
In this step, the mobile terminal detects that the user triggers the network speed test operation, and generates a network speed test request according to the network speed test operation. The wire speed test request is used for indicating a test object and a signal for starting a wire speed test of the test object. Due to the diversification of the test objects, the network speed test modes adopted by different test objects are different. Therefore, when the wire speed test request is triggered, the tested object needs to be indicated, so that the wire speed of the tested object is calculated according to the specified tested object.
Further, in this embodiment of the present application, the network speed test request at least includes one of a network speed test request of an application program, a network speed test request for downloading and a network speed test request for accessing a web page.
For example: and the user selects the network speed test drop-down frame of the application program on the network speed test interface, the network speed test request of the application program is triggered, and the mobile terminal receives the network speed test request of the application program.
And the user selects the downloaded network speed test drop-down frame on the network speed test interface, the downloaded network speed test request is triggered, and the mobile terminal receives the downloaded network speed test request.
And if the user selects the network speed test drop-down box for accessing the webpage on the network speed test interface, triggering a network speed test request for accessing the webpage, and receiving the network speed test request for accessing the webpage by the mobile terminal.
It should be noted that, if the user only clicks the network speed test button on the network speed test interface and does not select the network speed test object, the default network speed test request includes the three network speed test requests, that is, if the network speed test request received by the mobile terminal includes three network speed test requests, that is, the network speeds of the application program, the download and the access web page are respectively calculated.
Step 102, if the network speed test request is the network speed test request of an application program, determining the real-time network speed occupied by a first foreground application program running on a foreground;
specifically, applications are divided into foreground applications and background applications. In the embodiment of the application, the application is an application running in the foreground of the mobile terminal. Because the foreground application program may be multiple, the network speed occupied by different foreground application programs is different, and the network speed is high or low. Therefore, when the mobile terminal recognizes that the network speed test request is a network speed test request of an application program, it needs to determine a foreground application program occupying the maximum network speed. And the foreground application program occupying the maximum network speed serves as the first foreground application program.
In this step, the first foreground application determined to run in the foreground is specifically: and taking the foreground application program corresponding to the time closest to the current system as the first foreground application program. The network ports occupied by the first foreground application program are more, and the network speed of the application program can be represented most. Once the first foreground application is determined, the real-time wire speed occupied by the first foreground application is calculated. In the embodiment of the application, the network speed real-time test can be performed on the first foreground application program through a network speed test tool.
In one possible approach, the step 102 of refining includes:
m1021, if the network speed test request is the network speed test request of the application program, acquiring the application package names of foreground application programs running in the foreground;
m1022, identifying all application package names to determine a first application package name belonging to the video type;
m1023, determining a first foreground application program according to the first application package name;
and M1024, calculating the real-time network speed occupied by the first foreground application program.
The application package name of each foreground application is unique. By applying the package name, the corresponding foreground application can be found. In practical applications, the video application program often occupies a high network speed, and therefore, it is necessary to identify whether there is a foreground application program belonging to a video type among all foreground application programs. That is, the wire speed of the application can be characterized by the foreground application of the video type. Specifically, the name of the application package of each foreground application may be determined by extracting keywords of the video type features, for example, the name of the application package contains keywords of a video, or may also identify the format of the application package of each foreground application, for example, the format corresponding to the video at least includes common formats such as mp3, avi, mov, and the like. And if the name of the application packet with the foreground application program contains the keywords of the video type characteristics or the format of the application packet with the foreground application program belongs to the video format, determining that the foreground application program is the first foreground application program. The real-time wire speed occupied by the first foreground application can then be calculated by a wire speed testing tool.
It should be noted that, if there are multiple first foreground applications, the real-time network speeds occupied by the multiple first foreground applications are respectively calculated, the real-time network speed is averaged by summing the real-time network speeds calculated by the first foreground applications, and the obtained average real-time network speed is used as a response to the network speed test request.
Wherein, the step of refining M1024 includes:
s10241, acquiring all network ports occupied by the first foreground application;
s10242, respectively calculating the network speed of each network port;
s10243, taking the sum of the network speeds of all the network ports as the real-time network speed occupied by the first foreground application program.
Specifically, the network speeds of different network ports are different. In the embodiment of the present application, the network port includes, but is not limited to, a TCP port, a UDP port, an SCTP port, and the like. The first foreground application may invoke one or more network ports at runtime. Then all network ports occupied by the first foreground application are determined when calculating the wire speed of the first foreground application. The network speed of each network port is calculated within a preset time, and the preset time is usually set to 1 second. And then adding the obtained network speeds of the network ports, and taking the network speed obtained by the addition as the real-time network speed occupied by the first foreground application program. The real-time wire speed is also referred to as the application wire speed.
Step 103, if the network speed test request is a downloaded network speed test request, determining a first downloaded file, and calculating the network speed according to the size and the downloading time length of the first downloaded file;
in the embodiment of the present application, the factors affecting the network speed include a downloading factor and a webpage loading factor in step 104, in addition to the application factor in step 102. And if the network speed test request is identified to be a downloaded network speed test request, determining a first download file, and calculating the network speed according to the size of the first download file and the download duration required by completely downloading the corresponding first download file. The first download file refers to the file which can represent the download network speed most. In this embodiment of the application, the first download file may be a file corresponding to a file type that is downloaded most frequently, or a file corresponding to a file type that is specified by a user.
It should be noted that, due to network anomaly factors, a phenomenon of pause and unsuccessful download may occur in the process of downloading a file, and in order to ensure the accuracy of the network speed calculated by downloading, a timeout time is preset, and whether the file is successfully downloaded is monitored through the timeout time. And if the corresponding file is not completely downloaded within the overtime, taking the overtime as the downloading duration. It can be understood that the download duration of the successfully downloaded file is usually less than or equal to the timeout time, and if the download duration of the file is greater than the timeout time, it indicates that the broadband influences the download speed, so that the network speed of the download is too small.
It should be noted that the timeout may be a complete sum of multiple file downloads. The timeout is set to ensure optimal time monitoring for file downloads.
In one possible approach, the step 103 of refining includes:
m1031, if the network speed test request is a downloaded network speed test request, determining a file type of which the download frequency reaches a preset threshold;
m1032, if it is detected that a first file with the file type is downloaded, calculating a first downloading time length of the first file, and calculating a network speed according to the first downloading time length and the size of the first file;
m1033, if the file of the file type is not detected to be downloaded, acquiring a test file corresponding to the file type and a website of the test file;
and encapsulating the website in the network speed test request, and sending the website to a website corresponding to the website.
M1034, downloading the test file from the website corresponding to the website, calculating the second downloading time length of the test file, and calculating the network speed according to the second downloading time length and the size of the test file.
In particular, in order to rapidly characterize the internet speed of downloading, the type of the downloaded file is screened through the downloading frequency. If the downloading frequency of a certain file type exceeds a preset threshold value, the user frequently downloads the file corresponding to the file type, and naturally, the downloading network speed corresponding to the file type can respond to the downloading network speed test request.
Further, the mobile terminal may determine a file type with a download frequency exceeding a preset threshold according to the user download history, where the file type includes, but is not limited to, text, picture, audio, video, and the like. And when the file type is determined, detecting whether a first file corresponding to the file type is downloaded at the mobile terminal, and if so, acquiring the size of the first file and a first downloading time length required by the first file after downloading, thereby calculating the network speed according to the size and the first downloading time length.
Further, if the file corresponding to the file type does not exist in downloading, calculating the network speed for downloading the test file through the test file preset in the mobile terminal. In the embodiment of the present application, the test file is preferably a test video. The test video may include one or more video clips. Meanwhile, a website corresponding to the test file needs to be acquired, where the website is a Uniform Resource Locator (URL), and the website is used for locating the address of the test file on the internet, so that the test file can be downloaded from a website. The web address may be a link. Therefore, when the internet speed test request which is triggered by the user to download is detected and no file is downloaded, the website corresponding to the test file, such as the test video, is packaged to the internet speed test request and sent to the website corresponding to the website. Therefore, the mobile terminal can analyze the website of the test file when responding to the network speed test request, and download based on the website. And acquiring the size of the test file stored in the mobile terminal, calculating second downloading time length after the test file is downloaded, and calculating the network speed based on the size and the second downloading time length.
And 104, if the network speed test request is a network speed test request for accessing a webpage, determining a first webpage, and calculating the network speed according to the response time of the first webpage.
Specifically, the first webpage is the webpage which can represent the access network speed most. In an embodiment of the present application, the first webpage is a webpage with the most frequent access. The first web page includes, but is not limited to, hundredths, Tencent, etc. The response time of the first webpage refers to the time from the starting of the webpage to the completion of loading and rendering the first webpage and finally displaying the first webpage.
In this step, the most frequently visited web page is determined as the first web page, and then the response time of the first web page is calculated, thereby calculating the network speed according to the response time.
Thus, based on steps 101 to 104, the corresponding network speeds are calculated respectively through three types of network speed test requests of the application program, the downloading and the accessing webpage, so that the factors influencing the network speeds are distinguished, meanwhile, only the real-time network speed occupied by the first foreground application program is calculated for the application program, only the network speed corresponding to the first downloading file is calculated for the downloading, only the network speed corresponding to the first webpage is calculated for the accessing webpage, the network speed calculation amount is reduced, the network speed calculation time is shortened, the network speed test efficiency is improved, and the network speed is calculated only for the test object which accords with the corresponding network speed test request, so that the network speed test is more accurate.
Please refer to fig. 2, which is a block diagram of a network speed testing apparatus according to an embodiment of the present application, including:
a receiving unit 100, configured to receive a network speed test request;
the first computing unit 201 is configured to determine a real-time network speed occupied by a first foreground application running in a foreground when the network speed test request is a network speed test request of an application;
the second calculating unit 202 is configured to determine a first download file when the network speed test request is a downloaded network speed test request, and calculate a network speed according to the size and download duration of the first download file;
the third calculating unit 203 is configured to determine the first web page when the network speed test request is a network speed test request for accessing a web page, and calculate the network speed according to the response time of the first web page.
The apparatus further comprises a display unit 300, which display unit 300 may be a dial, the display unit 300 being adapted to display the wire speed in a graduated dial or numerical manner.
It should be noted that, the content of the network speed testing apparatus can refer to the content described in fig. 1, and is not described herein again.
According to the device provided by the embodiment of the application, the corresponding network speeds are respectively calculated through three types of network speed test requests, namely the application program, the downloading request and the webpage accessing request, so that the factors influencing the network speeds are distinguished, meanwhile, only the real-time network speed occupied by the first foreground application program is calculated for the application program, only the network speed corresponding to the first downloading file is calculated for downloading, only the network speed corresponding to the first webpage is calculated for the webpage accessing request, the network speed calculation amount is reduced, the network speed calculation time is shortened, the network speed test efficiency is improved, and only the network speed is calculated for a test object meeting the corresponding network speed test request, so that the network speed test is more accurate. The whole device has small calculation amount and is utilized and popularized.
FIG. 3 illustrates an internal block diagram of a smart device in one embodiment. The intelligent terminal can be any device capable of being connected with the network, such as a mobile phone, an ipad, a desktop computer and the like. The intelligent terminal comprises a processor 20 and a memory 22 connected to said processor 20, fig. 3 only showing some components of the intelligent terminal, but it is to be understood that not all shown components are required to be implemented, and more or less components may be implemented instead.
The memory 22 may in some embodiments be an internal storage unit, such as a memory, of the intelligent terminal. The memory 22 may also be an external storage device in other embodiments, such as a plug-in usb disk provided on the Smart terminal, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and so on. Further, the memory 22 may also include both an internal storage unit and an external storage device of the smart terminal. The memory 22 is used for storing application software installed in the intelligent terminal and various data, such as the network speed test program code. The memory 22 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 22 stores a network speed test program, which can be executed by the processor 20 to perform the following steps:
receiving a network speed test request;
if the network speed test request is the network speed test request of the application program, determining the real-time network speed occupied by the first foreground application program running on the foreground;
if the network speed test request is a downloaded network speed test request, determining a first downloaded file, and calculating the network speed according to the size and the downloading time length of the first downloaded file;
if the network speed test request is a network speed test request for accessing a webpage, determining a first webpage, and calculating the network speed according to the response time of the first webpage, specifically in the network speed test mode.
In one embodiment, a computer-readable storage medium is proposed, in which a computer program is stored which, when executed by a processor, causes the processor to carry out the steps of:
receiving a network speed test request;
if the network speed test request is the network speed test request of the application program, determining the real-time network speed occupied by the first foreground application program running on the foreground;
if the network speed test request is a downloaded network speed test request, determining a first download file, and calculating the network speed according to the size and the download duration of the first download file;
if the network speed test request is a network speed test request for accessing a webpage, determining a first webpage, and calculating the network speed according to the response time of the first webpage, specifically in the network speed test mode.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above may be implemented by a computer program, which may be stored in a non-volatile computer readable storage medium, and when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), Rambus (Rambus) direct RAM (RDRAM), direct bused dynamic RAM (DRDRAM), and bused dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A network speed testing method is characterized by comprising the following steps:
receiving a network speed test request;
if the network speed test request is the network speed test request of the application program, determining the real-time network speed occupied by the first foreground application program running on the foreground;
if the network speed test request is a downloaded network speed test request, determining a first downloaded file, and calculating the network speed according to the size and the downloading time length of the first downloaded file;
and if the network speed test request is a network speed test request for accessing a webpage, determining a first webpage, and calculating the network speed according to the response time of the first webpage.
2. The method of claim 1, further comprising:
and displaying the network speed on a network speed test interface in a scale dial or numerical mode.
3. The method according to claim 1, wherein if the network speed test request is a network speed test request of an application program, determining a real-time network speed occupied by a first foreground application program running on a foreground, specifically comprising:
if the network speed test request is the network speed test request of the application program, acquiring the application package names of all foreground application programs running in the foreground;
identifying all application package names to determine a first application package name belonging to a video type;
determining a first foreground application program according to the first application package name;
and calculating the real-time network speed occupied by the first foreground application program.
4. The method according to claim 3, wherein the calculating the real-time network speed occupied by the first foreground application specifically includes:
acquiring all network ports occupied by the first foreground application program;
respectively calculating the network speed of each network port;
and taking the sum of the network speeds of all the network ports as the real-time network speed occupied by the first foreground application program.
5. The method according to claim 1, wherein if the network speed test request is a downloaded network speed test request, determining a first download file, and calculating the network speed according to the size and the download duration of the first download file specifically comprises:
if the network speed test request is a downloaded network speed test request, determining the file type with the downloading frequency reaching a preset threshold value;
if detecting that a first file with the file type is being downloaded, calculating a first downloading time length of the first file, and calculating the network speed according to the first downloading time length and the size of the first file;
if the file of the file type is not detected to be downloaded, acquiring a test file corresponding to the file type and a website of the test file;
and downloading the test file from a website corresponding to the website, calculating second downloading time length of the test file, and calculating the network speed according to the second downloading time length and the size of the test file, wherein the first file or the test file is used as a first downloading file.
6. The method of claim 5, wherein if it is not detected that the file of the file type is downloaded, after obtaining the test file corresponding to the file type and the website of the test file, further comprising:
and encapsulating the website in the network speed test request, and sending the website to a website corresponding to the website.
7. The method according to claim 1, wherein if the wire speed test request is a wire speed test request for accessing a web page, determining a first web page, and calculating a wire speed according to a response time of the first web page specifically comprises:
if the network speed test request is a network speed test request for accessing a webpage, determining the webpage with the most frequent access;
taking the most frequently visited webpage as a first webpage;
acquiring the response time of the first webpage;
and calculating the network speed according to the response time.
8. A wire speed testing apparatus, the apparatus comprising:
the receiving unit is used for receiving the network speed test request;
the first computing unit is used for determining the real-time network speed occupied by a first foreground application program running in a foreground when the network speed test request is the network speed test request of the application program;
the second calculation unit is used for determining a first download file when the network speed test request is a downloaded network speed test request, and calculating the network speed according to the size and the downloading time length of the first download file;
and the third calculating unit is used for determining the first webpage when the network speed test request is a network speed test request for accessing the webpage, and calculating the network speed according to the response time of the first webpage.
9. An intelligent device, characterized in that the intelligent device comprises a processor and a memory connected to the processor, the memory storing a computer program, the computer program being executed by the processor to implement the steps in the wire speed testing method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which is executed by a processor to implement the steps in the wire speed testing method according to any one of claims 1-7.
CN202011564236.XA 2020-12-25 2020-12-25 Network speed testing method and device, intelligent equipment and storage medium Pending CN114760228A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011564236.XA CN114760228A (en) 2020-12-25 2020-12-25 Network speed testing method and device, intelligent equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011564236.XA CN114760228A (en) 2020-12-25 2020-12-25 Network speed testing method and device, intelligent equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114760228A true CN114760228A (en) 2022-07-15

Family

ID=82324644

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011564236.XA Pending CN114760228A (en) 2020-12-25 2020-12-25 Network speed testing method and device, intelligent equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114760228A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103051498A (en) * 2012-12-29 2013-04-17 电信科学技术第一研究所 Network speed test method and network speed test system
CN103117907A (en) * 2013-03-11 2013-05-22 星云融创(北京)信息技术有限公司 Network speed test method and system and method and system for selecting accelerating server
WO2014059805A1 (en) * 2012-10-18 2014-04-24 腾讯科技(深圳)有限公司 Method for prompting network speed and mobile device
CN105490886A (en) * 2015-12-31 2016-04-13 北京金山安全软件有限公司 Method and device for testing network speed and electronic equipment
CN105681124A (en) * 2015-12-25 2016-06-15 北京奇虎科技有限公司 Network speed detection method and device
CN106533988A (en) * 2016-10-26 2017-03-22 维沃移动通信有限公司 Control method for network speed of application and mobile terminal
CN106656665A (en) * 2016-12-08 2017-05-10 深圳创维数字技术有限公司 Local area network speed testing method and device
US20170373984A1 (en) * 2016-06-24 2017-12-28 Verizon Patent And Licensing Inc. Server intelligence for network speed testing control
WO2020155958A1 (en) * 2019-01-30 2020-08-06 上海哔哩哔哩科技有限公司 Internet speed measuring method and device, computer equipment and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014059805A1 (en) * 2012-10-18 2014-04-24 腾讯科技(深圳)有限公司 Method for prompting network speed and mobile device
CN103051498A (en) * 2012-12-29 2013-04-17 电信科学技术第一研究所 Network speed test method and network speed test system
CN103117907A (en) * 2013-03-11 2013-05-22 星云融创(北京)信息技术有限公司 Network speed test method and system and method and system for selecting accelerating server
CN105681124A (en) * 2015-12-25 2016-06-15 北京奇虎科技有限公司 Network speed detection method and device
CN105490886A (en) * 2015-12-31 2016-04-13 北京金山安全软件有限公司 Method and device for testing network speed and electronic equipment
US20170373984A1 (en) * 2016-06-24 2017-12-28 Verizon Patent And Licensing Inc. Server intelligence for network speed testing control
CN106533988A (en) * 2016-10-26 2017-03-22 维沃移动通信有限公司 Control method for network speed of application and mobile terminal
CN106656665A (en) * 2016-12-08 2017-05-10 深圳创维数字技术有限公司 Local area network speed testing method and device
WO2020155958A1 (en) * 2019-01-30 2020-08-06 上海哔哩哔哩科技有限公司 Internet speed measuring method and device, computer equipment and readable storage medium
CN111510777A (en) * 2019-01-30 2020-08-07 上海哔哩哔哩科技有限公司 Method and device for measuring network speed, computer equipment and readable storage medium

Similar Documents

Publication Publication Date Title
CN109766256B (en) Method and device for testing H5 page performance in application program and computer equipment
CN109787974B (en) Message data stream generation method and device, computer equipment and storage medium
CN112579948A (en) Webpage screenshot method and device, storage medium and electronic equipment
CN111259294A (en) Page loading request response method, device, equipment and storage medium
CN111431767B (en) Multi-browser resource synchronization method and device, computer equipment and storage medium
CN113656107A (en) Mobile application loading method and device and electronic equipment
CN105677678B (en) Method and system for determining first screen position of webpage and displaying webpage information
CN110928755A (en) User behavior data processing method and device
CN112241362A (en) Test method, test device, server and storage medium
CN111061977A (en) Website updating method, device and system
CN109951549B (en) Network page access method and device and computer readable storage medium
CN111552696A (en) Data processing method and device based on big data, computer equipment and medium
CN114760228A (en) Network speed testing method and device, intelligent equipment and storage medium
CN111783010A (en) Webpage blank page monitoring method, device, terminal and storage medium
CN111756744B (en) H5 user identification method, device, equipment and storage medium
CN112887362B (en) Equipment access method, equipment access device and server
CN112671615B (en) Method, system and storage medium for collecting front-end user operation behavior data
CN113127788B (en) Page processing method, object processing method, device and equipment
CN113849125A (en) Method, device and system for reading disk of CDN server
CN110069731B (en) Data processing method and device, electronic equipment and computer readable storage medium
CN110012127B (en) Cross-domain name cookie sharing method and device, storage medium and terminal
CN112672187A (en) Page generation method and device and computer equipment
CN109324822B (en) PWA (public warning assistant) item detection method, computer-readable storage medium and terminal device
CN108111561B (en) Data downloading method and equipment thereof
EP2768206A1 (en) Download management method and device based on android browser

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