CN116962250A - Network quality detection method, device, computer equipment and storage medium - Google Patents

Network quality detection method, device, computer equipment and storage medium Download PDF

Info

Publication number
CN116962250A
CN116962250A CN202210415159.4A CN202210415159A CN116962250A CN 116962250 A CN116962250 A CN 116962250A CN 202210415159 A CN202210415159 A CN 202210415159A CN 116962250 A CN116962250 A CN 116962250A
Authority
CN
China
Prior art keywords
detection
network quality
bandwidth
network
terminal
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
CN202210415159.4A
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.)
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 CN202210415159.4A priority Critical patent/CN116962250A/en
Publication of CN116962250A publication Critical patent/CN116962250A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • 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/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The embodiment of the application discloses a network quality detection method, a network quality detection device, computer equipment and a storage medium, and belongs to the technical field of computers. The method comprises the following steps: responding to the triggering operation of the network quality detection subprogram, providing a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface displays the network connection state, the terminal type and the detection control of the current terminal; responding to a first detection instruction triggered by a detection control, sequentially carrying out network delay detection, download bandwidth detection and upload bandwidth detection on the terminal under the condition that the network connection state of the terminal is stable, and dynamically displaying a network delay detection result, a download bandwidth detection result and an upload bandwidth detection result step by step on a network quality detection subroutine interface; and displaying a network quality detection result page corresponding to the network connection state. The network quality detection method improves the efficiency and the network security of network quality detection.

Description

Network quality detection method, device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to a network quality detection method, a network quality detection device, computer equipment and a storage medium.
Background
The network quality of the terminal may affect data transmission between the terminal and other devices, for example, when the uploading bandwidth is small, it takes a long time for the terminal to send the file to the other devices. Therefore, in order to achieve efficient data transmission, it is important to detect the network quality of the terminal.
Disclosure of Invention
The embodiment of the application provides a network quality detection method, a network quality detection device, computer equipment and a storage medium, which improve the efficiency of network quality detection and the network security performance. The technical scheme is as follows:
in one aspect, a network quality detection method is provided, the method comprising:
responding to the triggering operation of the network quality detection subprogram, and providing a network quality detection subprogram interface based on a target application program, wherein the network quality detection subprogram interface displays the network connection state, the terminal type and the detection control of the current terminal;
responding to a first detection instruction triggered by the detection control, under the condition that the network connection state of the terminal is stable, sequentially carrying out network delay detection, download bandwidth detection and upload bandwidth detection on the terminal, and dynamically displaying a network delay detection result, a download bandwidth detection result and an upload bandwidth detection result step by step on the network quality detection subroutine interface;
And displaying a network quality detection result page corresponding to the network connection state, wherein the network quality detection result page displays the network delay detection result, the download bandwidth detection result, the upload bandwidth detection result and a network quality improvement control, and the network quality improvement control is used for guiding and improving the network quality of the terminal.
In another aspect, a network quality detection method is provided, the method including:
responding to the triggering operation of the network quality detection subprogram, and providing a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface is provided with a detection control;
sequentially transmitting a plurality of subfiles between a terminal and a detection server corresponding to the network quality detection subprogram in response to a first detection instruction triggered by the detection control, wherein the subfiles are divided by a test file for detecting the network quality;
and determining the current transmission bandwidth based on the file capacity and the transmission duration corresponding to at least one transmitted sub-file after each transmission is completed, and displaying the current transmission bandwidth through the network quality detection subroutine interface.
In another aspect, there is provided a network quality detection apparatus, the apparatus comprising:
the interface display module is used for responding to the triggering operation of the network quality detection subprogram and providing a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface displays the network connection state, the terminal type and the detection control of the current terminal;
the detection module is used for responding to a first detection instruction triggered by the detection control, sequentially carrying out network delay detection, download bandwidth detection and upload bandwidth detection on the terminal under the condition that the network connection state of the terminal is stable, and dynamically displaying a network delay detection result, a download bandwidth detection result and an upload bandwidth detection result step by step in the network quality detection subroutine interface;
the network quality detection result page is used for displaying the network delay detection result, the download bandwidth detection result, the upload bandwidth detection result and a network quality improvement control, and the network quality improvement control is used for guiding and improving the network quality of the terminal.
In one possible implementation, the network quality detection subroutine interface further includes a stop detection control, the apparatus further comprising:
and the stop detection module is used for responding to a stop detection instruction triggered by the stop detection control in any detection process of network delay detection, download bandwidth detection or upload bandwidth detection on the terminal, and stopping the currently executing detection process.
In another possible implementation manner, the detection module is configured to:
responding to the first detection instruction, and carrying out network delay detection on the terminal under the condition that the network connection state is stable;
under the condition that the network delay detection result is obtained, detecting the download bandwidth of the terminal;
and under the condition that the download bandwidth detection result is obtained, carrying out uploading bandwidth detection on the terminal.
In another possible implementation, the apparatus further includes:
and the stopping detection module is used for stopping the currently executing detection process under the condition that the network delay detection result is not detected within a first time period after the first detection instruction is triggered.
In another possible implementation, the apparatus further includes:
And the network quality improving module is used for responding to the triggering operation of the network quality improving control and switching from the network quality detection result page to the network quality improving page.
In another possible implementation, the network quality detection subroutine interface further includes a status switch control, the apparatus further comprising:
and the state switching module is used for responding to a switching instruction triggered by the state switching control when the network connection state is a wireless connection state, and switching the network connection state into a mobile connection state.
In another aspect, there is provided a network quality detection apparatus, the apparatus comprising:
the interface display module is used for responding to the triggering operation of the network quality detection subprogram to provide a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface displays a detection control;
the sub-file transmission module is used for responding to a first detection instruction triggered by the detection control, sequentially transmitting a plurality of sub-files between the terminal and a detection server corresponding to the network quality detection subprogram, wherein the plurality of sub-files are obtained by dividing a test file for detecting the network quality;
And the bandwidth determining module is used for determining the current transmission bandwidth based on the file capacity and the transmission duration corresponding to at least one transmitted sub-file, and displaying the current transmission bandwidth through the network quality detection sub-program interface.
In one possible implementation manner, the sub-file transmission module includes:
a connection establishing unit, configured to establish a connection between the terminal and the detection server in response to the first detection instruction;
a subfile transmission unit, configured to sequentially transmit the multiple subfiles between the terminal and the detection server through the established connection;
a recording unit, configured to start recording a file capacity and a transmission duration corresponding to a sub-file transmitted between the terminal and the detection server after a second duration elapses at a time point when the connection starts to be established;
the bandwidth determining module is used for determining the current transmission bandwidth based on the recorded file capacity and the transmission duration after completing one sub-file per transmission.
In another possible implementation manner, the bandwidth determining module is further configured to:
under the condition that the total file capacity corresponding to the transmitted subfiles reaches the first capacity, determining the total transmission bandwidth based on the first capacity and the total transmission duration, and displaying the total transmission bandwidth through the network quality detection subroutine interface; or alternatively, the process may be performed,
And under the condition that the total transmission time spent for transmitting the subfiles reaches a third time, determining the total transmission bandwidth based on the total file capacity corresponding to the transmitted subfiles and the third time, and displaying the total transmission bandwidth through the network quality detection subroutine interface.
In another possible implementation, the apparatus further includes:
the bandwidth determining module is further configured to determine the transmission bandwidth as a download bandwidth, generate a second detection instruction after determining the total transmission bandwidth, instruct to detect an upload bandwidth, determine the upload bandwidth in response to the second detection instruction, and display the determined upload bandwidth through the network quality detection subroutine interface; or alternatively, the process may be performed,
the bandwidth determining module is further configured to determine the transmission bandwidth as an upload bandwidth, generate a third detection instruction after determining the total transmission bandwidth, instruct to detect a download bandwidth, determine the download bandwidth in response to the third detection instruction, and display the determined download bandwidth through the network quality detection subroutine interface.
In another possible implementation, the apparatus further includes:
The delay detection module is used for responding to the first detection instruction, sequentially sending a plurality of delay detection requests to the detection server and receiving delay detection responses returned by the detection server based on the plurality of delay detection requests;
a delay duration determining module, configured to determine a network delay duration obtained by each detection based on a sending time point of each delay detection request and a receiving time point of a corresponding delay detection response;
the delay time length determining module is further configured to determine an average value of the detected multiple network delay time lengths as an average network delay time length, and display the average network delay time length through the network quality detection subroutine interface.
In another possible implementation manner, the delay detection module includes:
the detection result determining unit is used for responding to the first detection instruction, sending one delay detection request to the detection server each time, and determining a detection result according to whether a delay detection response returned by the detection server is received or not, wherein the detection result is detection success or detection failure;
and the stop detection unit is used for stopping sending the delay detection request when the number of times of detection success reaches the first number.
In another possible implementation manner, the stopping detection unit is further configured to stop sending the delayed detection request when the number of detection failures reaches the second number.
In another possible implementation, the apparatus further includes:
the instruction receiving module is used for receiving a fourth detection instruction based on the network quality detection subprogram, wherein the fourth detection instruction indicates to detect the uploading bandwidth;
the test file sending module is used for responding to the fourth detection instruction and sending the test file to the detection server;
the bandwidth determining module is further configured to determine a current uploading bandwidth based on a data capacity returned by the detection server and a transmission duration of the test file, where the data capacity represents a capacity of data in the test file received by the detection server;
the bandwidth determining module is further configured to display the current upload bandwidth through the network quality detection subroutine interface.
In another possible implementation manner, the bandwidth determining module is further configured to:
responding to the uploading success notification sent by the detection server, and determining the total uploading bandwidth based on the file capacity of the uploading file and the total transmission time length of the test file;
And displaying the total uploading bandwidth through the network quality detection subroutine interface.
In another aspect, a computer device is provided, the computer device including a processor and a memory, the memory storing at least one computer program, the at least one computer program loaded and executed by the processor to implement the operations performed by the network quality detection method as described in the above aspects.
In another aspect, there is provided a computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to implement the operations performed by the network quality detection method of the above aspect.
In another aspect, a computer program product is provided, comprising a computer program which, when executed by a processor, implements the operations performed by the network quality detection method of the above aspect.
The embodiment of the application provides a network quality detection scheme, network quality detection is carried out through a network quality detection subprogram in a target application program, and the detection of network delay, download bandwidth and upload bandwidth is realized in response to a first detection instruction triggered by a detection control, so that different controls are not required to be triggered to detect the network delay, the download bandwidth and the upload bandwidth respectively, the detection efficiency is improved, and after the network quality detection is finished, the detected result is comprehensively displayed through a network quality detection result page, thereby being beneficial to comprehensively knowing the network quality of a terminal. And by detecting the network quality of the terminal, when the network quality of the terminal is found to be poor, the network quality can be timely improved through the network quality improving control, and network interruption of the terminal in the running process is avoided, so that the network safety performance is improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic illustration of an implementation environment provided by an embodiment of the present application;
FIG. 2 is a schematic illustration of another implementation environment provided by an embodiment of the present application;
FIG. 3 is a schematic illustration of yet another implementation environment provided by an embodiment of the present application;
fig. 4 is a flowchart of a network quality detection method according to an embodiment of the present application;
FIG. 5 is a schematic diagram of a network quality detection subroutine interface according to an embodiment of the present application;
fig. 6 is a schematic diagram of a network quality detection process according to an embodiment of the present application;
FIG. 7 is a schematic diagram of another network quality detection process according to an embodiment of the present application;
fig. 8 is a flowchart of another network quality detection method according to an embodiment of the present application;
fig. 9 is a flowchart of an upload bandwidth detection method provided in an embodiment of the present application;
FIG. 10 is a flow chart of a communication process provided by an embodiment of the present application;
FIG. 11 is a schematic diagram of another network quality detection subroutine interface provided by embodiments of the present application;
fig. 12 is a flowchart of another method for detecting an upload bandwidth according to an embodiment of the present application;
fig. 13 is a flowchart of a download bandwidth detection method according to an embodiment of the present application;
fig. 14 is a flowchart of another download bandwidth detection method according to an embodiment of the present application;
fig. 15 is a flowchart of a network delay detection method according to an embodiment of the present application;
FIG. 16 is a flowchart of another method for detecting network delay according to an embodiment of the present application;
fig. 17 is a flowchart of a network quality detection process according to an embodiment of the present application;
FIG. 18 is a flow chart of another network quality detection process provided by an embodiment of the present application;
fig. 19 is a schematic structural diagram of a network quality detecting device according to an embodiment of the present application;
fig. 20 is a schematic structural diagram of another network quality detecting device according to an embodiment of the present application;
fig. 21 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 22 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the following detailed description of the embodiments of the present application will be given with reference to the accompanying drawings.
It is to be understood that the terms "first," "second," and the like, as used herein, may be used to describe various concepts, but are not limited by these terms unless otherwise specified. These terms are only used to distinguish one concept from another. For example, the first permutation may be referred to as a second permutation and the second permutation may be referred to as a first permutation without departing from the scope of the present application.
The terms "at least one", "a plurality", "each", "any" and the like as used herein, at least one includes one, two or more, a plurality includes two or more, each means each of the corresponding plurality, and any one means any of the plurality. For example, the plurality of subfiles includes 3 subfiles, and each subfile refers to each of the 3 subfiles, and any one refers to any one of the 3 subfiles, which may be the first, the second, or the third.
FIG. 1 is a schematic diagram of an implementation environment provided by an embodiment of the present application. Referring to fig. 1, the implementation environment includes a terminal 101 and a detection server 102. The terminal 101 and the detection server 102 are connected by a wireless or wired network.
Optionally, the terminal 101 includes, but is not limited to, a mobile phone, a computer, an intelligent voice interaction device, an intelligent home appliance, a vehicle-mounted terminal, an aircraft, and the like. The detection server 102 is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud security, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs (Content Delivery Network, content delivery networks), basic cloud computing services such as big data and artificial intelligence platforms, and the like.
In one possible implementation, the terminal 101 is provided with a target application program, where a network quality detection subroutine in the target application program is served by the detection server 102, through which the terminal 101 can implement functions such as data transmission, message interaction, etc., and through which the terminal 101 can perform network quality detection. For example, the target application program is an instant messaging application program having a message interaction function, and the network quality detection subroutine in the instant messaging application program has a network quality detection function, but of course, the instant messaging application program can also have other functions, such as a shopping function, a navigation function, a game function, etc., and the instant messaging application program also has a subroutine having other functions, such as a subroutine having a shopping function, etc. Optionally, the detection server 102 is a background server of the subroutine or a cloud server providing services such as cloud computing and cloud storage.
The target application is served by a target server, which is different from the detection server 102, and is a background server of the target application or a cloud server providing services such as cloud computing, cloud security, cloud storage, and the like.
In the network quality detection process, the terminal 101 transmits a plurality of subfiles divided by the test file to the detection server 102 through a subroutine to detect an upload bandwidth, or the detection server 102 transmits a plurality of subfiles divided by the test file to the terminal 101 through a subroutine to detect a download bandwidth.
In one possible implementation, referring to fig. 2, the implementation environment further includes a base station 103 and a public network 104, the terminal 101 is connected to the base station 103, the base station 103 is connected to the public network 104, and the public network is connected to the detection server 102. In the network quality detection process, the terminal 101 transmits a plurality of subfiles obtained by dividing the test file to the detection server 102 through the base station 103 and the public network 104 to detect the uploading bandwidth; alternatively, the detection server 102 transmits a plurality of subfiles divided from the test file to the terminal 101 via the public network 104 and the base station 103 to detect the download bandwidth.
In one possible implementation, referring to fig. 3, the detection server 102 includes an upload server 105, a download server 106, and a delay server 107. Wherein a plurality of subfiles are transmitted between the terminal 101 and the upload server 105, and an upload bandwidth is detected; transmitting a plurality of subfiles between the terminal 101 and the download server 106, detecting a download bandwidth; the terminal 101 detects the network delay period by transmitting a delay detection request to the delay server 107.
Alternatively, in the above implementation environment, the terminal 101 communicates with the detection server 102, or the terminal 101 communicates with the upload server 105, the download server 106, and the delay server 107 through HTTPS (Hyper Text Transfer Protocol over Secure Socket Layer, hypertext transfer security protocol), or communicates based on WebSocket protocol (full duplex communication protocol based on transmission control protocol), or communicates based on other communication protocols, which the embodiment of the present application is not limited to.
Fig. 4 is a flowchart of a network quality detection method according to an embodiment of the present application. The execution main body of the embodiment of the application is a terminal. Referring to fig. 4, the method includes the steps of:
401. the terminal responds to the triggering operation of the network quality detection subprogram, and provides a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface displays the network connection state, the terminal type and the detection control of the current terminal.
The target application program is any application program installed on the terminal, for example, the target application program is an instant messaging application program or other types of application programs, the network quality detection subprogram is a subprogram in the target application program, and the network quality detection subprogram has a network quality detection function and can detect the network delay condition, the uploading bandwidth and the downloading bandwidth of the terminal. The network connection state of the terminal refers to the network state of the terminal currently connected, the network connection state comprises a WiFi (Wireless Fidelity ) state, a 5G (5 thGeneration Mobile Communication Technology, fifth generation mobile communication technology) state, a 4G (4 thGeneration Mobile Communication Technology, fourth generation mobile communication technology) state and the like, the terminal type comprises a 5G type, a 4G type and the like, and the detection control is used for triggering the detection of the network quality of the terminal.
In one possible implementation, the network quality detection subroutine interface further includes a state switch control for switching the current network connection state to another network connection state. When the network connection state is the wireless connection state, the terminal responds to the switching quality triggered by the state switching control to switch the network connection state into the mobile connection state, namely when the current network connection state is the WiFi state, the terminal can switch the network connection state into the 5G state or the 4G state by triggering the state switching control.
For example, referring to the network quality detection subroutine interface 501 shown in fig. 5, the network quality detection subroutine interface 501 is an interface corresponding to a case where the network connection state is a WiFi state, and the network quality detection subroutine interface 501 includes a network connection state "WiFi environment", a terminal type "4G model", a detection control "start speed measurement", and a state switching control "turn off WiFi, i.e. a mobile network speed can be tested.
402. The terminal responds to a first detection instruction triggered by the detection control, and under the condition that the network connection state of the terminal is stable, network delay detection, downloading bandwidth detection and uploading bandwidth detection are sequentially carried out on the terminal, and network delay detection results, downloading bandwidth detection results and uploading bandwidth detection results are dynamically displayed step by step on a network quality detection subroutine interface.
The first detection instruction indicates that the network delay condition, the download bandwidth and the upload bandwidth of the terminal are sequentially detected under the condition that the network connection state of the terminal is stable. The network delay detection result comprises the network delay time of the terminal, the download bandwidth detection result comprises the download bandwidth of the terminal, and the upload bandwidth detection result comprises the upload bandwidth of the terminal. The stable network connection state of the terminal means that the terminal can transmit files to other devices or can receive files transmitted by other devices in the network connection state.
In one possible implementation manner, the terminal responds to the first detection instruction, and performs network delay detection on the terminal under the condition that the network connection state is stable; under the condition that a network delay detection result is obtained, detecting the download bandwidth of the terminal; and under the condition that the download bandwidth detection result is obtained, carrying out uploading bandwidth detection on the terminal.
Optionally, in the detection process, performing network delay detection on the terminal to obtain a network delay detection result, and displaying the network delay detection result in a network quality detection subroutine interface; then, carrying out download bandwidth detection on the terminal to obtain a download bandwidth detection result, and displaying the download bandwidth detection result in a network quality detection subroutine interface; and then carrying out uploading bandwidth detection on the terminal to obtain an uploading bandwidth detection result, and displaying the uploading bandwidth detection result in a network quality detection subroutine interface.
In one possible implementation manner, the terminal stops the currently executing detection process when the network delay detection result is not detected within a first duration after the first detection instruction is triggered. That is, the terminal needs to complete network delay detection within a first time period after triggering the first detection instruction, and then continues to perform download bandwidth detection and upload bandwidth detection.
In one possible implementation, the network quality detection subroutine interface includes a stop detection control, and in any detection process of network delay detection, download bandwidth detection or upload bandwidth detection on the terminal, the currently executing detection process is stopped in response to a stop detection instruction triggered by the stop detection control. Wherein the stop detection instruction instructs to stop network quality detection of the terminal.
For example, referring to the network quality detection process shown in fig. 6, taking network quality detection in a WiFi state as an example, the terminal displays a network quality detection subroutine interface 601, the network quality detection subroutine interface 601 displays a "WiFi speed measurement", and in response to clicking operation on a "start detection" control in the network quality detection subroutine interface 601, displays a network quality detection subroutine interface 602, performs network delay detection based on the network quality detection subroutine interface 602, and after detecting that, displays a network quality detection subroutine interface 603. The detected network delay detection result is displayed in the network quality detection subroutine interface 603, and the download bandwidth is detected, in the process of detecting the download bandwidth, the currently detected download bandwidth is displayed in real time in the network quality detection subroutine interface 603, and after the download bandwidth detection result is obtained by detection, the network quality detection subroutine interface 604 is displayed. The detected download bandwidth detection result is displayed in the network quality detection subroutine interface 604, and the upload bandwidth is detected, and in the process of the upload bandwidth detection, the currently detected upload bandwidth is displayed in real time in the network quality detection subroutine interface 604.
403. The terminal displays a network quality detection result page corresponding to the network connection state, wherein the network quality detection result page displays a network delay detection result, a download bandwidth detection result, an upload bandwidth detection result and a network quality improvement control, and the network quality improvement control is used for guiding and improving the network quality of the terminal.
After the network delay detection result, the download bandwidth detection result and the upload bandwidth detection result are obtained, the network quality detection of the terminal is completed, a network quality detection result page is displayed at the moment, each detected detection result is comprehensively displayed through the network quality detection result page, and the network quality of the current terminal can be improved through a network quality improvement control in the network quality detection result page.
The network quality detection result page corresponds to a network connection state, for example, the wireless connection state and the mobile connection state correspond to different network quality detection result pages respectively.
For example, referring to fig. 6, in the case where the network connection state is the WiFi state, after the detection of the upload bandwidth detection result, a network quality detection result page 605 is presented, and the detected network delay detection result, download bandwidth detection result, and upload bandwidth detection result are presented in the network quality detection result page 605; in addition, the network quality detection result page 605 also takes downloaded music as an example, and compares the number of music that can be downloaded in one minute in the WiFi state with the number of music that can be downloaded in one minute in the 5G state, so as to intuitively represent the difference between the network quality in the WiFi state and the network quality in the 5G state. The network quality inspection results page 605 also presents a network quality promotion control "experience high speed bandwidth".
The network quality detection process shown in fig. 6 is, for example, a WiFi state, and in the case that the network connection state is a 5G state, referring to fig. 7, a "mobile network speed measurement" is displayed in the network quality detection subroutine interface 701, and in response to a trigger operation of the "start detection" control, network quality detection is started, where the network quality detection process is similar to the network quality detection process shown in fig. 6, and is not repeated herein, except that, in the network quality detection result page 705 in fig. 7, a network delay detection result, a download bandwidth detection result, and an upload bandwidth detection result of the current terminal, and 5G authentication information are displayed, where the 5G authentication information includes operator information and a current network type, and in the network quality detection result page 705, by way of example, a time required for downloading a game, a time required for downloading a television play, and a time required for downloading 100 pieces of music, so as to intuitively reflect the network quality of the current terminal.
In one possible implementation, the network quality improvement control is triggered to switch from the network quality detection result page to a network quality improvement page. When the current network connection state is a WiFi state, the network quality improving page can improve the network quality by upgrading the WiFi network; when the current network connection state is a mobile connection state, the network quality improvement page can improve the network quality by upgrading the mobile network, for example, upgrading from a 4G network to a 5G network.
According to the method provided by the embodiment of the application, the network quality is detected through the network quality detection subprogram in the target application program, the detection of the network delay, the download bandwidth and the upload bandwidth is realized in response to the first detection instruction triggered by the detection control, different controls are not required to be triggered to detect the network delay, the download bandwidth and the upload bandwidth respectively, the detection efficiency is improved, and after the network quality detection is finished, the detected result is comprehensively displayed through the network quality detection result page, so that the network quality of the terminal is comprehensively known. And by detecting the network quality of the terminal, when the network quality of the terminal is found to be poor, the network quality can be timely improved through the network quality improving control, and network interruption of the terminal in the running process is avoided, so that the network safety performance is improved.
Fig. 8 is a flowchart of another network quality detection method according to an embodiment of the present application. The execution main body of the embodiment of the application is a terminal. Referring to fig. 8, the method includes the steps of:
801. and the terminal responds to the triggering operation of the network quality detection subprogram, provides a network quality detection subprogram interface based on the target application program, and the network quality detection subprogram interface is provided with a detection control.
The embodiment of step 801 is the same as the embodiment of step 401 and will not be described in detail herein.
802. And the terminal responds to a first detection instruction triggered by the detection control, and sequentially transmits a plurality of subfiles between the terminal and a detection server corresponding to the network quality detection subprogram, wherein the subfiles are divided by a test file for detecting the network quality.
Under the condition that the terminal detects the uploading bandwidth, the test file is a file randomly generated by the terminal or a file stored in advance, and the terminal sends a plurality of subfiles obtained by dividing the test file to the detection server, so that the uploading bandwidth is detected. Under the condition that the terminal detects the download bandwidth, the test file is a file randomly generated by the detection server or a file stored in advance, and the detection server sends a plurality of subfiles obtained by dividing the test file to the terminal, so that the download bandwidth is detected.
The file capacities of the plurality of subfiles obtained by dividing the test file may be the same or different, which is not limited in the embodiment of the present application. And when a plurality of subfiles are sequentially transmitted between the terminal and the detection server, the transmission sequence of the subfiles can be any sequence, and the embodiment of the application does not limit the transmission sequence of the subfiles.
803. And determining the current transmission bandwidth based on the file capacity and the transmission duration corresponding to at least one transmitted sub-file when the terminal finishes transmitting one sub-file, and displaying the current transmission bandwidth through a network quality detection sub-program interface.
And determining the current transmission bandwidth based on the determined file capacity and the transmission duration, so that the transmission bandwidth can be acquired in real time without waiting for the transmission of the whole test file to be completed. And the current transmission bandwidth is displayed through the network quality detection subroutine interface, so that the detected transmission bandwidth can be fed back to the user in real time in the transmission process of the test file.
According to the method provided by the embodiment of the application, the test file for network quality detection is divided into the plurality of subfiles, the plurality of subfiles are sequentially transmitted between the terminal and the detection server in the network quality detection process, the terminal can detect the current transmission bandwidth after finishing one subfile, the terminal does not need to wait for the complete test file to finish transmission and acquire the transmission bandwidth, the network quality detection speed is improved, and the user can acquire the current transmission bandwidth in real time by displaying the current transmission bandwidth, so that the instantaneity of the transmission bandwidth is improved.
In the embodiment of the present application, network quality detection includes network delay detection, download bandwidth detection and upload bandwidth detection, and the upload bandwidth detection process is described first by the embodiment shown in fig. 9.
Fig. 9 is a flowchart of an upload bandwidth detection method according to an embodiment of the present application. The interaction main body of the embodiment of the application is a terminal and a detection server. Referring to fig. 9, the method includes the steps of:
901. the terminal responds to the triggering operation of the network quality detection subprogram, and provides a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface is provided with detection controls.
902. And the terminal responds to a first detection instruction triggered by the detection control, divides the test file into a plurality of subfiles, and establishes connection between the terminal and the detection server.
When a user wants to detect the uploading bandwidth, the detection control is triggered, and the terminal responds to the triggering operation of the detection control to generate a first detection instruction.
The test file is a file randomly generated by the terminal or a file stored in advance. In the process of uploading the test file to the detection server by the terminal, the detection server returns a successful uploading notification to the terminal under the condition of receiving the complete test file, and then the terminal can determine the uploading bandwidth, the uploading bandwidth cannot be acquired in real time in the uploading process, and the larger the test file capacity is, the slower the uploading bandwidth is acquired. Therefore, in order to obtain the real-time uploading bandwidth, the embodiment of the application divides the test file into a plurality of subfiles, and the uploading bandwidth can be determined after each subfile is successfully uploaded.
In one possible implementation manner, the terminal determines the target number, divides the test file into a target number of subfiles, and the file capacities corresponding to the target number of subfiles may be the same or different; or determining the target file capacity, wherein the target file capacity is smaller than the file capacity corresponding to the test file, dividing the test file into a plurality of subfiles, and the file capacity corresponding to the subfiles is the target file capacity. Of course, the terminal can divide the test file into a plurality of subfiles in other modes, and the embodiment of the application does not limit the division mode of the test file.
In one possible implementation manner, before the connection between the terminal and the detection server is established, the candidate server closest to the terminal is selected from the plurality of candidate servers as the detection server based on the distance between the geographic position of the plurality of candidate servers and the geographic position of the terminal, so that the accuracy of the uploading bandwidth detected subsequently is prevented from being influenced due to different geographic positions of different terminals.
In one possible implementation, establishing a connection between the terminal and the detection server includes: the terminal sends a connection establishment request to the detection server, and the detection server responds to the connection establishment request and returns a connection establishment response to the terminal, so that connection establishment is completed. In the case where a plurality of connections need to be established, a plurality of connection establishment requests are sequentially transmitted to establish a plurality of connections.
903. And the terminal sequentially sends the plurality of subfiles to the detection server through the established connection, and after the second duration passes through the time point of starting to establish the connection, the terminal starts to record the file capacity and uploading duration corresponding to the subfiles sent to the detection server by the terminal.
The second time period is a preset time period, for example, the second time period is 0.1 second, 0.05 second or other time periods. In the process of detecting the uploading bandwidth, the established connection is easily affected by network fluctuation, the accuracy of the detected uploading bandwidth can be affected under the condition that the connection is disconnected due to the network fluctuation, and the accuracy of the detected uploading bandwidth can be improved by recording the file capacity and uploading duration corresponding to the uploaded subfiles after the second duration passes at the time point of starting to establish the connection.
In one possible implementation, in the case of communication between the terminal and the detection server via HTTPS protocol, after the connection is established, the protocol authentication and encryption process also needs to be completed before the subfiles can be transferred via the connection. In order to avoid the influence of the protocol verification and encryption process, after a second time period passes from the time point of starting to establish the connection, the record of the file capacity and uploading time period corresponding to the subfiles sent to the detection server by the connection is started.
A process for communication between a terminal and a detection server via HTTPS protocol, see fig. 10, the process comprising: 1. the terminal sends a communication request to the detection server, the communication request carrying the random number R1 generated by the terminal and the encryption algorithm supported by the terminal. 2. The detection server returns a communication response to the terminal in response to the communication request, the communication response carrying the random number R2, the detection server certificate and the session key generation algorithm. 3. The terminal negotiates a shared key with the detection server based on the communication response, i.e., transmits the random number R3 and the terminal certificate to the detection server. 4. The terminal communicates with the detection server, i.e. a plurality of subfiles are transmitted in sequence between the terminal and the detection server.
For the effects of network fluctuations, in one possible implementation, multiple connections are established between the terminal and the detection server, and the terminal sequentially sends multiple subfiles to the detection server over the multiple connections. Wherein the number of the plurality of connections is any number. For example, 5 connections are established between the terminal and the detection server, the test file is divided into 7 subfiles, the terminal sends the first subfile to the detection server through the first connection, then sends the second subfile to the detection server through the second connection until the fifth subfile is sent to the detection server through the fifth connection, after the first subfile is sent through the first connection, the sixth subfile is sent to the detection server through the first connection again, and then the seventh subfile is sent to the detection server through the second connection.
In the embodiment of the application, even if some of the connections are disconnected due to the influence of network fluctuation in the manner of sending the subfiles through the plurality of connections, the subfiles can still be sent continuously through other connections, thereby reducing the influence of network fluctuation and improving the accuracy of the detected uploading bandwidth.
In one possible implementation manner, when the terminal sends the subfile to the detection server, the terminal records the sending time point of the subfile, so that the consumed uploading duration is determined according to the sending time point and the receiving time point received by the detection server. Optionally, each subfile has a corresponding subfile identifier, where the subfile identifier is used to uniquely represent one subfile, and the terminal stores the sending time point in correspondence with the subfile identifier.
In the embodiment of the present application, only after the second time period passes at the time point of establishing the connection, a plurality of subfiles are sent to the detection server as an example, in another embodiment, the plurality of subfiles can be sent to the detection server immediately after the connection is established, and the embodiment of the present application does not limit the time when the terminal sends the subfiles to the detection server after the connection is established.
904. And the detection server returns a successful uploading notification to the terminal every time when receiving one subfile.
Wherein, the uploading success notification indicates that the detection server has received the subfiles sent by the terminal.
In one possible implementation, the uploading successfully notifies the sub-file identifier corresponding to the sub-file and detects a receiving time point when the sub-file is received by the server. When the terminal receives the uploading success notification, determining a sending time point of the corresponding subfile according to the subfile identification in the uploading success notification, and determining the uploading duration corresponding to the subfile according to the sending time point and the receiving time point in the uploading success notification.
905. The terminal determines the current uploading bandwidth based on the recorded file capacity and uploading duration corresponding to at least one sub-file, and displays the current uploading bandwidth through a network quality detection subroutine interface.
In the embodiment of the application, one sub-file is completed in each uploading, and the terminal determines the current uploading bandwidth according to the recorded file capacity and uploading duration corresponding to at least one sub-file, namely, the current uploading bandwidth is obtained by dividing the file capacity by the uploading duration.
In one possible implementation manner, the uploading duration corresponding to the at least one recorded sub-file is respectively determined, and the sum of the uploading durations corresponding to the at least one sub-file is determined as the consumed uploading duration; or determining the consumed uploading time according to the transmission time point of the first subfile and the receiving time point of the last subfile in the recorded at least one subfile.
After determining the uploading bandwidth, the terminal displays the uploading bandwidth through a network quality detection subroutine interface. For example, referring to the network quality detection subroutine interface 1101 shown in fig. 11, the current upload bandwidth 33.29Mbps (megabits per second) is displayed in the detection area in the network quality detection subroutine interface 1101.
It should be noted that, in the embodiment of the present application, the detection of the upload bandwidth can be stopped under two conditions, where the first condition is that the total file capacity of the sub-file uploaded by the terminal reaches the first capacity, and the second condition is that the total upload duration consumed by the terminal to upload the sub-file reaches the third duration. Wherein step 906 is performed if the first condition is satisfied and step 907 is performed if the second condition is satisfied.
906. And under the condition that the recorded total file capacity reaches the first capacity, the terminal determines the total uploading bandwidth based on the first capacity and the total uploading duration, and displays the total uploading bandwidth through a network quality detection subroutine interface.
In the case that the file capacity corresponding to the recorded subfiles is small, the accuracy of the detected uploading bandwidth is seriously affected when the recorded subfiles are affected by network fluctuation, so that in order to reduce the influence of the network fluctuation, enough subfiles need to be uploaded. Under the condition that the total file capacity corresponding to the recorded subfiles reaches the first capacity, namely, the subfiles are considered to be uploaded enough, at the moment, the total uploading bandwidth can be determined, and the total uploading bandwidth is the finally detected uploading bandwidth.
Wherein the first capacity is a preset capacity. The determination manner of the total upload time length is the same as that of the upload time length in step 905, and will not be described here again.
907. And under the condition that the recorded total uploading time length reaches a third time length, the terminal determines the total uploading bandwidth based on the recorded total file capacity corresponding to the subfiles and the third time length, and displays the total uploading bandwidth through a network quality detection subroutine interface.
Under the condition that the file capacity corresponding to the test file is fixed, when the network is poor, a long time is required to upload a plurality of subfiles, and the time for waiting to determine the final uploading bandwidth is long for a user. Therefore, in order to avoid longer waiting time of the user, a third time length is set, and when the total uploading time length is detected to reach the third time length, whether uploading of a plurality of subfiles is completed or not is stopped, the subfiles are continuously uploaded, and therefore the total uploading bandwidth is determined based on the total file capacity and the third time length corresponding to the recorded subfiles. Wherein the third duration is any duration, such as the third duration is 5 seconds, 10 seconds, or other duration.
It should be noted that, in the steps 906-907, only the case that the recorded total file capacity of the terminal reaches the first capacity or the recorded total uploading duration reaches the third duration is taken as an example is described, in another embodiment, after the connection is established, the terminal can immediately start to record the subfiles uploaded to the detection server, and the recorded total file capacity and the total uploading duration are the total file capacity and the total uploading duration corresponding to the subfiles that have been uploaded.
For the embodiments of steps 901-907 described above, in one possible implementation, the step of detecting the upload bandwidth can be represented by using the flowchart shown in fig. 12, referring to fig. 12, including:
1. The terminal starts to detect the upload bandwidth.
2. And the terminal generates a test file with the file capacity of S. Wherein S is any numerical value greater than 0.
3. The terminal divides the test file into I subfiles, and the size of each subfile is a i . Wherein I is a positive integer greater than 1, a i Any number greater than 0.
4. The terminal determines the number N of connections to be established with the detection server. Wherein N is a positive integer greater than 1.
5. The terminal records the current time t=0.
6. The terminal sends an nth connection establishment request to the detection server, and establishes the nth connection in response to receiving a connection establishment response returned by the detection server.
7. The terminal determines whether N is greater than or equal to N, and if N is less than N, step 6 is executed, and if N is greater than or equal to N, step 8 is executed.
8. The terminal determines whether the current time period t is greater than or equal to t 1 At t less than t 1 In the case of (2), repeating the step 8, and when t is greater than or equal to t 1 In the case of (2), step 9 is performed.
9. The terminal determines the total file capacity corresponding to at least one sub-file which is recorded currentlyAnd the current time period t of the upload.
10. The terminal determines whether the current consumed uploading time length t is greater than or equal to t 2 At t less than t 2 In the case of (1), step 11 is performed, when t is greater than or equal to t 2 In the case of (2), step 12 is performed.
11. Terminal determinationWhether or not it is greater than or equal to the first capacity A, in->In case of less than A, step 9 is performed, in +.>If a is equal to or greater than a, step 12 is performed.
12. The terminal determines the total uploading bandwidth based on the total file capacity corresponding to the recorded at least one sub-file and the total uploading time spent.
13. The terminal stops detecting the upload bandwidth.
It should be noted that, in another embodiment, the terminal receives a fourth detection instruction based on the network quality detection subroutine, where the fourth detection instruction indicates to detect the upload bandwidth; the terminal responds to the fourth detection instruction and sends a test file to the detection server; determining the current uploading bandwidth based on the data capacity returned by the current detection server and the transmission time length of the test file, wherein the data capacity represents the capacity of data in the test file received by the detection server; and displaying the current uploading bandwidth through a network quality detection subroutine interface. Optionally, the detection server is configured with an API (Application Programming Interface, application program interface) interface for returning the received data capacity to the terminal once per received data of the target capacity.
In one possible implementation, the terminal determines a total uploading bandwidth based on a file capacity of an uploading file and a total transmission time length of a test file in response to a notification of successful uploading sent by the detection server; and displaying the total uploading bandwidth through a network quality detection subroutine interface. Wherein the upload success notification indicates that the entire test file has been uploaded.
According to the method provided by the embodiment of the application, the test file for network quality detection is divided into the plurality of subfiles, in the process of detecting the uploading bandwidth, the terminal sequentially uploads the plurality of subfiles to the detection server, one subfile is completed after uploading, the terminal can detect the current uploading bandwidth without waiting for the uploading of the complete test file to be completed and then acquiring the uploading bandwidth, the speed of network quality detection is improved, and the user can acquire the current uploading bandwidth in real time by displaying the current uploading bandwidth, so that the instantaneity of the displayed uploading bandwidth is improved.
The download bandwidth detection process is described below by way of an embodiment shown in fig. 13.
Fig. 13 is a flowchart of a download bandwidth detection method according to an embodiment of the present application. The interaction main body of the embodiment of the application is a terminal and a detection server. Referring to fig. 13, the method includes the steps of:
1301. The terminal responds to the triggering operation of the network quality detection subprogram, and provides a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface is provided with detection controls.
1302. And the terminal responds to a first detection instruction triggered by the detection control, establishes connection between the terminal and the detection server, and sends a downloading request to the detection server.
Wherein the download request is for requesting a file download from the detection server. The download request carries a terminal identifier corresponding to the terminal.
The connection establishment is performed in the same manner as the connection establishment in step 902, and will not be described herein.
1303. The detection server divides the test file into a plurality of subfiles in response to the download request.
The detection server responds to the downloading request to determine a test file, wherein the test file is a file randomly generated by the detection server or a file stored in advance.
Since the capacity corresponding to the file transmitted to the terminal by the detection server each time cannot exceed the second capacity, for example, the second capacity is 500M (mega), when the download bandwidth is detected, the speed of downloading the file by the terminal is fast under the condition that the network quality is good, so that the detected download bandwidth is easily affected by network fluctuation. Therefore, in order to download a large enough file, the embodiment of the application divides the test file into a plurality of subfiles, and only the file capacity corresponding to each subfile does not exceed the second capacity.
The division manner of the test file is the same as that of the test file in the step 503, and will not be described herein.
1304. The detection server sequentially sends the plurality of subfiles to the terminal through the established connection.
The method for transmitting the subfiles through the established connection in step 1304 is the same as the method for transmitting the subfiles through the established connection in step 903, and will not be described here. In contrast, in step 903, the terminal transmits a subfile to the detection server, and in step 1304, the detection server transmits a subfile to the terminal.
1305. The terminal sequentially receives the plurality of subfiles sent by the detection server, starts to record the file capacity and the downloading time length corresponding to the received subfiles after the second time length passes at the time point of starting to establish the connection, determines the current downloading bandwidth based on the recorded file capacity and the downloading time length corresponding to at least one subfile when receiving one subfile, and displays the current downloading bandwidth through a network quality detection subroutine interface.
In one possible implementation manner, the terminal respectively determines the downloading time length corresponding to each sub-file, and determines the sum of the downloading time lengths corresponding to at least one sub-file as the consumed downloading time length; or determining the consumed downloading time according to the sending time point of the first sub-file and the receiving time point of the last sub-file in the downloaded at least one sub-file. The sending time point of the subfile refers to the time of sending the subfile by the detection server, and the receiving time point of the subfile refers to the time of receiving the subfile by the terminal.
The determination and display manner of the download bandwidth are the same as those of the upload bandwidth in step 905, and will not be described in detail here.
In one possible implementation, since the downloaded subfiles are used for detecting the download bandwidth and persistent storage is not required, the downloaded subfiles can be stored in the temporary files of the terminal, thereby ensuring that the downloaded subfiles can be cleaned in time.
It should be noted that, in the embodiment of the present application, the detection of the download bandwidth can be stopped under two conditions, where the first condition is that the total file capacity of the sub-files downloaded by the terminal reaches the first capacity, and the second condition is that the total download duration consumed by the terminal for downloading the sub-files reaches the third duration. Wherein, in case the first condition is fulfilled, step 1306 is performed, and in case the second condition is fulfilled, step 1307 is performed.
1306. And under the condition that the recorded total file capacity reaches the first capacity, the terminal determines the total download bandwidth based on the first capacity and the total download duration, and displays the total download bandwidth through a network quality detection subroutine interface.
1307. And under the condition that the recorded total download time length reaches a third time length, the terminal determines the total download bandwidth based on the recorded total file capacity corresponding to the subfiles and the third time length, and displays the total download bandwidth through a network quality detection subroutine interface.
The embodiments of steps 1306-1307 are the same as the embodiments of steps 906-907 described above, and are not described in detail herein.
It should be noted that, in the steps 1306-1307, only the case where the recorded total file capacity of the terminal reaches the first capacity or the recorded total download time length reaches the third time length is taken as an example is described, in another embodiment, after the connection is established, the recording of the subfiles downloaded by the terminal from the detection server can be started immediately, and the recorded total file capacity and total download time length are the total file capacity and total download time length corresponding to the subfiles that have been downloaded.
For the embodiments of steps 1301-1307 described above, in one possible implementation, the step of detecting the download bandwidth can be represented by a flowchart shown in fig. 14, referring to fig. 14, including:
1. the terminal starts to detect the download bandwidth.
2. The terminal obtains the file capacity sent by the detection server.
3. The terminal determines the number N of connections to be established with the detection server. Wherein N is a positive integer greater than 1.
4. The terminal records the current time t=0.
5. The terminal sends an nth connection establishment request to the detection server, and establishes the nth connection in response to receiving a connection establishment response returned by the detection server.
6. The terminal determines whether N is greater than or equal to N, and if N is less than N, step 5 is executed, and if N is greater than or equal to N, step 7 is executed.
7. The terminal determines whether the current time period t is greater than or equal to t 3 At t less than t 3 In the case of (1), repeating the step 7, and when t is greater than or equal to t 3 In the case of (2), step 8 is performed.
8. The terminal determines the total file capacity corresponding to at least one sub-file which is recorded currentlyAnd the current time period t of the upload. Wherein b i Representing the file capacity of the downloaded subfiles.
9. The terminal determines whether the current consumed uploading time length t is greater than or equal to t 4 At t less than t 4 In the case of (1), step 10 is performed, and when t is equal to or greater than t 4 In the case of (2), step 11 is performed.
10. Terminal determinationWhether or not it is greater than or equal to the first capacity B, in->In case of less than B, step 8 is performed, in +.>If B or more, step 11 is performed.
11. The terminal determines the total download bandwidth based on the total file capacity corresponding to the downloaded at least one sub-file and the total download duration consumed.
12. The terminal stops detecting the download bandwidth.
In the embodiment shown in fig. 9 and the embodiment shown in fig. 13 are processes of detecting the upload bandwidth and the download bandwidth, respectively, and in another embodiment, when the terminal detects the download bandwidth in response to the first detection instruction, the terminal determines the total download bandwidth by using the embodiment shown in fig. 13, and then determines the upload bandwidth, that is, after determining the total download bandwidth, generates a second detection instruction indicating to detect the upload bandwidth, determines the upload bandwidth in response to the second detection instruction, and displays the determined upload bandwidth through the network quality detection subroutine interface. The embodiment of determining the upload bandwidth by the terminal in response to the second detection instruction is the same as the embodiment shown in fig. 9 and is not described herein.
Similarly, when the terminal responds to the first detection instruction to indicate to detect the uploading bandwidth, the embodiment shown in fig. 9 is adopted to determine the total uploading bandwidth, and then determine the downloading bandwidth, that is, after determining the total uploading bandwidth, a third detection instruction is generated, the third detection instruction indicates to detect the downloading bandwidth, and the terminal responds to the third detection instruction to determine the downloading bandwidth, and displays the determined downloading bandwidth through the network quality detection subroutine interface. The embodiment of determining the download bandwidth by the terminal in response to the third detection instruction is the same as the embodiment shown in fig. 13, and is not described herein.
According to the method provided by the embodiment of the application, the test file for network quality detection is divided into the plurality of subfiles, in the process of detecting the download bandwidth, the terminal sequentially downloads the plurality of subfiles from the detection server, and each time one subfile is downloaded, the terminal can detect the current download bandwidth without waiting for the complete test file to be downloaded and then acquiring the download bandwidth, so that the network quality detection speed is improved, and the user can acquire the current download bandwidth in real time by displaying the current download bandwidth, and the instantaneity of the displayed download bandwidth is improved.
The network delay detection process is described below by way of an embodiment shown in fig. 15.
Fig. 15 is a flowchart of a network delay detection method according to an embodiment of the present application. The interaction main body of the embodiment of the application is a terminal and a detection server. Referring to fig. 15, the method includes the steps of:
1501. the terminal responds to the triggering operation of the network quality detection subprogram, and provides a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface is provided with detection controls.
1502. And the terminal responds to a first detection instruction triggered by the detection control, and sequentially sends a plurality of delay detection requests to the detection server.
1503. The detection server returns a delay detection response to the terminal based on the plurality of delay detection requests.
The terminal sequentially sending a plurality of delay detection requests to the detection server includes: the terminal sends a first delay detection request to the detection server, and then, for the delay detection request, after determining a detection result corresponding to the delay detection request, the terminal continues to send a next delay detection request.
1504. The terminal determines a detection result corresponding to each delay detection request according to whether a delay detection response returned by the detection server based on the delay detection request is received or not according to each delay detection request, wherein the detection result is detection success or detection failure.
The terminal sends a delay detection request to the detection server each time, and determines a detection result according to whether a delay detection response returned by the detection server is received or not, wherein the detection result is detection success or detection failure. The terminal determines that the detection is successful when receiving the delay detection response returned by the detection server, and determines that the detection is failed when not receiving the delay detection response returned by the detection server.
In one possible implementation manner, the terminal determines that the detection is successful when receiving the delay detection response returned by the detection server within a fourth time period after sending the delay detection request; and the terminal determines that the detection fails when the delay detection response returned by the detection server is not received after the delay detection request is sent for a fourth time. The fourth time period is any time period preset, for example, the fourth time period is 0.05 second, 0.01 second and the like.
The terminal determines the network delay duration obtained by each detection based on the sending time point of each delay detection request and the receiving time point of the corresponding delay detection response. Optionally, for a delay detection request with a detection result that is successful, the terminal determines a network delay duration corresponding to the delay detection request based on a sending time point of the delay detection request and a receiving time point of a corresponding delay detection response.
The terminal records the number of successful detection times and the number of failed detection times, and executes step 1505 when the number of successful detection times reaches the first number of times, and executes step 1506 when the number of failed detection times reaches the second number of times.
1505. And stopping sending the delay detection request by the terminal under the condition that the detection success times reach the first time, determining the average value of a plurality of network delay time lengths when the detection is successful as the average network delay time length, and displaying the average network delay time length through a network quality detection subroutine interface.
In consideration of the influence of network fluctuation, the network delay time lengths corresponding to the delay detection requests sent at different time points may be different, so in the embodiment of the application, the average network delay time length is obtained by detecting the first network delay time length and averaging the first network delay time length, and the average network delay time length is determined as the detected network delay time length, thereby reducing the influence of the network fluctuation on the detected network delay time length and improving the accuracy of the detected network delay time length. The first number of times is a preset number of times, for example, the first number of times is 10 times, 20 times or other times.
And under the condition that the number of times of successful detection reaches the first number, the average network delay time length can be obtained, and the network delay time length does not need to be continuously acquired, so that the delay detection request can be stopped from being sent.
The display manner of the average network delay duration is the same as that of the uploading bandwidth in the step 505, and will not be described herein.
1506. And stopping sending the delay detection request by the terminal under the condition that the detection failure times reach the second times.
And under the condition that the detection failure times reach the second times, the current network is considered to be abnormal, the network delay time is difficult to detect, and the delay detection request is stopped from being sent. The second number of times is a preset number of times, for example, the second number of times is 10 times, 20 times or other times.
In one possible implementation, the number of detection failures refers to the number of consecutive detection failures. Namely, when the terminal has recorded the detection failure times, and when the terminal receives the delay detection response returned by the detection server, the terminal clears the current detection failure times, so that the finally recorded detection failure times are continuous detection failure times.
For the embodiments of steps 1501 to 1506 described above, in one possible implementation, the step of detecting the network delay duration can be represented by using the flowchart shown in fig. 16, referring to fig. 16, including:
1. The terminal starts to detect the network delay duration.
2. The terminal initializes the detection success times h=0 and the detection failure times j=0.
3. The terminal transmits a delay detection request to the detection server.
4. The terminal determines whether the request is overtime, and then performs step 5 if it is determined that the request is overtime, and then performs step 7 if it is determined that the request is not overtime. That is, the terminal determines whether or not a delay detection response returned from the detection server is received, and if the delay detection response is not received, then step 5 is performed, and if the delay detection response is received, then step 7 is performed.
5. The terminal adds 1 to the number of detection failures.
6. The terminal determines whether the current detection failure times j is larger than or equal to the second times x, and executes the step 11 when j is larger than or equal to x, and executes the step 3 when j is smaller than x. Wherein x is a positive integer greater than 1.
7. The terminal adds 1 to the number of detection successes, and sets the number of detection failures to 0.
8. The terminal determines the network delay time length corresponding to the current delay detection request.
9. The terminal determines whether the current detection success times h is greater than or equal to the first times y, and executes the step 10 when h is greater than or equal to y, and executes the step 3 when h is less than y. Wherein y is a positive integer greater than 1.
10. And the terminal determines the average network delay duration according to the network delay duration of y times of successful detection.
11. The terminal stops detecting the network delay time.
According to the method provided by the embodiment of the application, the first network delay time is detected, the first network delay time is averaged to obtain the average network delay time, and the average network delay time is determined as the detected network delay time, so that the influence of network fluctuation on the detected network delay time is reduced, and the accuracy of the detected network delay time is improved.
It should be noted that, in the embodiment shown in fig. 9, the embodiment shown in fig. 13, and the embodiment shown in fig. 15, the processes of detecting the upload bandwidth, the download bandwidth, and the network delay time period are respectively performed, and in another embodiment, there is a sequence in detecting the upload bandwidth, the download bandwidth, and the network delay time period, for example, referring to fig. 17, the network delay time period is detected first, the upload bandwidth is detected when the network delay time period is detected, and the download bandwidth is detected when the upload bandwidth is detected. The embodiment of the application does not limit the sequence of detecting the uploading bandwidth, the downloading bandwidth and the network delay time.
In one possible implementation, in the case where the detection server includes an upload server, a download server, and a delay server, and detects the network delay duration first, then detects the download bandwidth, and finally detects the upload bandwidth, see the detection procedure shown in fig. 18:
1801. the terminal responds to the triggering operation of the network quality detection subprogram, and provides a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface is provided with detection controls.
1802. And the terminal responds to a first detection instruction triggered by the detection control, and sequentially sends a plurality of delay detection requests to the delay server under the condition that the network connection state of the terminal is stable.
1803. The delay server returns a delay detection response to the terminal based on the plurality of delay detection requests.
1804. The terminal determines a detection result corresponding to each delay detection request based on the delay detection response exerted by the delay server, determines a network delay detection result based on the detection result corresponding to each delay detection request, and displays the network delay detection result through a network quality detection subroutine interface.
The embodiments of steps 1802-1804 are the same as the embodiments of steps 1502-1505 described above, and are not described in detail herein.
1805. And under the condition that the network delay detection result is displayed on the network quality detection subroutine interface, the terminal establishes connection between the terminal and the download server, and sends a download request to the download server.
1806. The download server responds to the download request, divides the test file into a plurality of subfiles, and sequentially sends the subfiles to the terminal through the established connection.
1807. And the terminal determines a download bandwidth detection result based on the file capacity and the download duration corresponding to the received subfiles, and displays the download bandwidth detection result through a network quality detection subroutine interface.
The embodiments of steps 1805-1807 are the same as the embodiments of steps 1302-1307 and are not described in detail herein.
1808. And under the condition that the network quality detection subroutine interface displays the download bandwidth detection result, the terminal divides the test file into a plurality of subfiles, and establishes connection between the terminal and the uploading server.
1809. And the terminal sequentially transmits the plurality of subfiles to the uploading server through the established connection.
1810. And the uploading server returns a notification of successful uploading to the terminal every time when receiving one sub-file.
1811. And the terminal determines an uploading bandwidth detection result based on the file capacity and uploading duration corresponding to the uploaded subfiles, and displays the uploading bandwidth detection result through a network quality detection subroutine interface.
The embodiments of steps 1808-1811 are the same as the embodiments of steps 902-907, and are not described here again.
1812. The terminal displays a network delay detection result, a download bandwidth detection result, an upload bandwidth detection result and a network quality improvement control through a network quality detection result page corresponding to the network connection state.
Fig. 19 is a schematic structural diagram of a network quality detecting device according to an embodiment of the present application. Referring to fig. 19, the apparatus includes:
an interface display module 1901, configured to provide a network quality detection subroutine interface based on the target application in response to a triggering operation of the network quality detection subroutine, where the network quality detection subroutine interface displays a network connection state of the current terminal, a terminal type, and a detection control;
the detection module 1902 is configured to, in response to a first detection instruction triggered by the detection control, sequentially perform network delay detection, download bandwidth detection and upload bandwidth detection on the terminal under a condition that a network connection state of the terminal is stable, and dynamically display the network delay detection result, the download bandwidth detection result and the upload bandwidth detection result step by step in the network quality detection subroutine interface;
The result display module 1903 is configured to display a network quality detection result page corresponding to the network connection state, where the network quality detection result page displays a network delay detection result, the download bandwidth detection result, the upload bandwidth detection result, and a network quality promotion control, and the network quality promotion control is configured to guide and promote network quality of the terminal.
According to the device provided by the embodiment of the application, the network quality is detected through the network quality detection subprogram in the target application program, the detection of the network delay, the download bandwidth and the upload bandwidth is realized in response to the first detection instruction triggered by the detection control, different controls are not required to be triggered to detect the network delay, the download bandwidth and the upload bandwidth respectively, the detection efficiency is improved, and after the network quality detection is finished, the detected result is comprehensively displayed through the network quality detection result page, so that the network quality of the terminal is comprehensively known. And by detecting the network quality of the terminal, when the network quality of the terminal is found to be poor, the network quality can be timely improved through the network quality improving control, and network interruption of the terminal in the running process is avoided, so that the network safety performance is improved.
In one possible implementation, the network quality detection subroutine interface further includes a stop detection control, the apparatus further comprising:
and the stop detection module is used for responding to a stop detection instruction triggered by the stop detection control in any detection process of network delay detection, download bandwidth detection or upload bandwidth detection on the terminal, and stopping the currently executing detection process.
In another possible implementation, the detection module 1902 is configured to:
responding to the first detection instruction, and carrying out network delay detection on the terminal under the condition that the network connection state is stable;
under the condition that the network delay detection result is obtained, detecting the download bandwidth of the terminal;
and under the condition that the download bandwidth detection result is obtained, carrying out uploading bandwidth detection on the terminal.
In another possible implementation, the apparatus further includes:
and the stopping detection module is used for stopping the currently executing detection process under the condition that the network delay detection result is not detected within a first time period after the first detection instruction is triggered.
In another possible implementation, the apparatus further includes:
And the network quality improvement module is used for responding to the triggering operation of the network quality improvement control and switching from the network quality detection result page to the network quality improvement page.
In another possible implementation, the network quality detection subroutine interface further includes a status switch control, the apparatus further comprising:
and the state switching module is used for responding to a switching instruction triggered by the state switching control to switch the network connection state into the mobile connection state under the condition that the network connection state is the wireless connection state.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
It should be noted that: in the network quality detection apparatus provided in the above embodiment, only the division of the above functional modules is used for illustration when detecting network quality, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the network quality detection device and the network quality detection method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
Fig. 20 is a schematic structural diagram of another network quality detecting device according to an embodiment of the present application. Referring to fig. 20, the apparatus includes:
an interface display module 2001 for providing a network quality detection subroutine interface based on the target application program in response to a trigger operation of the network quality detection subroutine, the network quality detection subroutine interface exhibiting a detection control;
a subfile transmission module 2002, configured to sequentially transmit, in response to a first detection instruction triggered by the detection control, a plurality of subfiles between a terminal and a detection server corresponding to the network quality detection subroutine, where the plurality of subfiles are divided by a test file for performing network quality detection;
the bandwidth determining module 2003 is configured to determine, for each transmission completed sub-file, a current transmission bandwidth based on a file capacity and a transmission duration corresponding to at least one sub-file that has been completed, and display the current transmission bandwidth through the network quality detection subroutine interface.
According to the device provided by the embodiment of the application, the test file for network quality detection is divided into the plurality of subfiles, the plurality of subfiles are sequentially transmitted between the terminal and the detection server in the network quality detection process, the terminal can detect the current transmission bandwidth after finishing one subfile, the terminal does not need to wait for the complete test file to finish transmission and acquire the transmission bandwidth, the network quality detection speed is improved, and the user can acquire the current transmission bandwidth in real time by displaying the current transmission bandwidth, so that the instantaneity of the transmission bandwidth is improved.
In one possible implementation, the subfile transfer module 2002 includes:
the connection establishment unit is used for responding to the first detection instruction and establishing connection between the terminal and the detection server;
a subfile transmission unit for sequentially transmitting the subfiles between the terminal and the detection server through the established connection;
a recording unit, configured to start recording a file capacity and a transmission duration corresponding to a sub-file transmitted between the terminal and the detection server after a second duration elapses at a time point when the connection is started;
the bandwidth determining module 2003 is configured to determine a current transmission bandwidth based on the recorded file capacity and the transmission duration for each transmission completion of one sub-file.
In another possible implementation, the bandwidth determining module 2003 is further configured to:
under the condition that the total file capacity corresponding to the transmitted subfiles reaches the first capacity, determining the total transmission bandwidth based on the first capacity and the total transmission duration, and displaying the total transmission bandwidth through the network quality detection subroutine interface; or alternatively, the process may be performed,
and under the condition that the total transmission time spent for transmitting the subfiles reaches a third time, determining the total transmission bandwidth based on the total file capacity corresponding to the transmitted subfiles and the third time, and displaying the total transmission bandwidth through the network quality detection subroutine interface.
In another possible implementation, the apparatus further includes:
the bandwidth determining module 2003 is further configured to determine that the transmission bandwidth is a download bandwidth, generate a second detection instruction after determining the total transmission bandwidth, instruct to detect an upload bandwidth, determine the upload bandwidth in response to the second detection instruction, and display the determined upload bandwidth through the network quality detection subroutine interface; or alternatively, the process may be performed,
the bandwidth determining module 2003 is further configured to determine that the transmission bandwidth is an upload bandwidth, generate a third detection instruction after determining the total transmission bandwidth, the third detection instruction indicating to detect a download bandwidth, determine the download bandwidth in response to the third detection instruction, and display the determined download bandwidth through the network quality detection subroutine interface.
In another possible implementation, the apparatus further includes:
the delay detection module is used for responding to the first detection instruction, sequentially sending a plurality of delay detection requests to the detection server and receiving delay detection responses returned by the detection server based on the plurality of delay detection requests;
a delay duration determining module, configured to determine a network delay duration obtained by each detection based on a sending time point of each delay detection request and a receiving time point of a corresponding delay detection response;
The delay time length determining module is further configured to determine an average value of the detected plurality of network delay time lengths as an average network delay time length, and display the average network delay time length through the network quality detecting subroutine interface.
In another possible implementation, the delay detection module includes:
the detection result determining unit is used for responding to the first detection instruction, sending one delay detection request to the detection server each time, and determining a detection result according to whether a delay detection response returned by the detection server is received or not, wherein the detection result is detection success or detection failure;
and a stop detection unit for stopping sending the delay detection request when the number of times of detection success reaches the first number.
In another possible implementation manner, the stop detection unit is further configured to stop sending the delayed detection request if the number of detection failures reaches the second number.
In another possible implementation, the apparatus further includes:
the instruction receiving module is used for receiving a fourth detection instruction based on the network quality detection subprogram, wherein the fourth detection instruction indicates to detect the uploading bandwidth;
The test file sending module is used for responding to the fourth detection instruction and sending the test file to the detection server;
the bandwidth determining module 2003 is further configured to determine a current upload bandwidth based on a data capacity returned by the detection server and a transmission duration of the test file, where the data capacity represents a capacity of data in the test file that has been received by the detection server;
the bandwidth determining module 2003 is further configured to display the current upload bandwidth through the network quality detection subroutine interface.
In another possible implementation, the bandwidth determining module 2003 is further configured to:
responding to the uploading success notice sent by the detection server, and determining the total uploading bandwidth based on the file capacity of the uploading file and the total transmission time length of the test file;
and displaying the total uploading bandwidth through the network quality detection subroutine interface.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein.
It should be noted that: in the network quality detection apparatus provided in the above embodiment, only the division of the above functional modules is used for illustration when detecting network quality, and in practical application, the above functional allocation may be performed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the network quality detection device and the network quality detection method provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
The embodiment of the application also provides a computer device, which comprises a processor and a memory, wherein at least one computer program is stored in the memory, and the at least one computer program is loaded and executed by the processor to realize the operation executed by the network quality detection method of the embodiment.
Optionally, the computer device is provided as a terminal. Fig. 21 is a schematic structural diagram of a terminal 2100 according to an embodiment of the present application. The terminal 2100 includes: a processor 2101 and a memory 2102.
The processor 2101 may include one or more processing cores, such as a 4-core processor, an 8-core processor, or the like. The processor 2101 may be implemented in hardware in at least one of a DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 2101 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ); a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 2101 may incorporate a GPU (Graphics Processing Unit, image processor) for taking care of rendering and drawing of content that the display screen is required to display. In some embodiments, the processor 2101 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
Memory 2102 may include one or more computer-readable storage media, which may be non-transitory. Memory 2102 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 2102 is used to store at least one computer program for execution by processor 2101 to implement the network quality detection method provided by the method embodiments of the present application.
In some embodiments, terminal 2100 may further optionally include: a peripheral interface 2103 and at least one peripheral. The processor 2101, memory 2102, and peripheral interface 2103 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 2103 by buses, signal lines or circuit boards. Specifically, the peripheral device includes: at least one of radio frequency circuitry 2104, a display screen 2105, a camera assembly 2106, an audio circuit 2107, a positioning assembly 2108, and a power supply 2109.
The peripheral interface 2103 may be used to connect at least one Input/Output (I/O) related peripheral device to the processor 2101 and the memory 2102. In some embodiments, the processor 2101, memory 2102, and peripheral interface 2103 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 2101, memory 2102, and peripheral interface 2103 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 2104 is used for receiving and transmitting RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 2104 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 2104 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 2104 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth. The radio frequency circuitry 2104 may communicate with other terminals via at least one wireless communication protocol. The wireless communication protocol includes, but is not limited to: the world wide web, metropolitan area networks, intranets, generation mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and/or WiFi (Wireless Fidelity ) networks. In some embodiments, the radio frequency circuit 2104 may also include NFC (Near Field Communication ) related circuits, which the present application is not limited to.
The display screen 2105 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 2105 is a touch screen, the display 2105 also has the ability to collect touch signals at or above the surface of the display 2105. The touch signal may be input to the processor 2101 as a control signal for processing. At this point, the display 2105 may also be used to provide virtual buttons and/or a virtual keyboard, also referred to as soft buttons and/or a soft keyboard. In some embodiments, the display 2105 may be one, provided on the front panel of the terminal 2100; in other embodiments, the display 2105 may be at least two, respectively disposed on different surfaces of the terminal 2100 or in a folded design; in other embodiments, the display 2105 may be a flexible display disposed on a curved surface or a folded surface of the terminal 2100. Even more, the display 2105 may be arranged in a non-rectangular irregular pattern, i.e. a shaped screen. The display 2105 may be made of LCD (Liquid Crystal Display ), OLED (Organic Light-Emitting Diode) or other materials.
The camera assembly 2106 is used to capture images or video. Optionally, the camera assembly 2106 includes a front camera and a rear camera. The front camera is arranged on the front panel of the terminal, and the rear camera is arranged on the back of the terminal. In some embodiments, the at least two rear cameras are any one of a main camera, a depth camera, a wide-angle camera and a tele camera, so as to realize that the main camera and the depth camera are fused to realize a background blurring function, and the main camera and the wide-angle camera are fused to realize a panoramic shooting and Virtual Reality (VR) shooting function or other fusion shooting functions. In some embodiments, the camera assembly 2106 may also include a flash. The flash lamp can be a single-color temperature flash lamp or a double-color temperature flash lamp. The dual-color temperature flash lamp refers to a combination of a warm light flash lamp and a cold light flash lamp, and can be used for light compensation under different color temperatures.
The audio circuitry 2107 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and the environment, converting the sound waves into electric signals, and inputting the electric signals to the processor 2101 for processing, or inputting the electric signals to the radio frequency circuit 2104 for realizing voice communication. For the purpose of stereo acquisition or noise reduction, a plurality of microphones may be provided at different portions of the terminal 2100, respectively. The microphone may also be an array microphone or an omni-directional pickup microphone. The speaker is used to convert electrical signals from the processor 2101 or the radio frequency circuit 2104 into sound waves. The speaker may be a conventional thin film speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, not only the electric signal can be converted into a sound wave audible to humans, but also the electric signal can be converted into a sound wave inaudible to humans for ranging and other purposes. In some embodiments, the audio circuit 2107 may also include a headphone jack.
The positioning component 2108 is used to position the current geographical position of the terminal 2100 to enable navigation or LBS (Location Based Service, location based services).
The power supply 2109 is used to supply power to the respective components in the terminal 2100. The power source 2109 may be alternating current, direct current, disposable battery, or rechargeable battery. When the power source 2109 includes a rechargeable battery, the rechargeable battery may be a wired rechargeable battery or a wireless rechargeable battery. The wired rechargeable battery is a battery charged through a wired line, and the wireless rechargeable battery is a battery charged through a wireless coil. The rechargeable battery may also be used to support fast charge technology.
It will be appreciated by those skilled in the art that the structure shown in fig. 21 does not constitute a limitation of the terminal 2100, and more or less components than those illustrated may be included, or some components may be combined, or a different arrangement of components may be employed.
Optionally, the computer device is provided as a server. Fig. 22 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 2200 may have a relatively large difference due to configuration or performance, and may include one or more processors (Central Processing Units, CPU) 2201 and one or more memories 2202, where the memories 2202 store at least one computer program, and the at least one computer program is loaded and executed by the processors 2201 to implement the methods provided in the foregoing method embodiments. Of course, the server may also have a wired or wireless network interface, a keyboard, an input/output interface, and other components for implementing the functions of the device, which are not described herein.
The embodiment of the application also provides a computer readable storage medium, in which at least one computer program is stored, and the at least one computer program is loaded and executed by a processor to implement the operations performed by the network quality detection method of the above embodiment.
The embodiment of the present application also provides a computer program product, which comprises a computer program, and the computer program realizes the operations performed by the network quality detection method of the above embodiment when being executed by a processor.
In some embodiments, a computer program according to an embodiment of the present application may be deployed to be executed on one computer device or on multiple computer devices located at one site, or on multiple computer devices distributed across multiple sites and interconnected by a communication network, where the multiple computer devices distributed across multiple sites and interconnected by a communication network may constitute a blockchain system.
It will be appreciated that in the specific embodiments of the present application, related data such as user information is involved, and when the above embodiments of the present application are applied to specific products or technologies, user permissions or consents need to be obtained, and the collection, use and processing of related data need to comply with related laws and regulations and standards of related countries and regions.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing is merely an alternative embodiment of the present application and is not intended to limit the embodiment of the present application, and any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the embodiment of the present application should be included in the protection scope of the present application.

Claims (20)

1. A method for detecting network quality, the method comprising:
responding to the triggering operation of the network quality detection subprogram, and providing a network quality detection subprogram interface based on a target application program, wherein the network quality detection subprogram interface displays the network connection state, the terminal type and the detection control of the current terminal;
responding to a first detection instruction triggered by the detection control, under the condition that the network connection state of the terminal is stable, sequentially carrying out network delay detection, download bandwidth detection and upload bandwidth detection on the terminal, and dynamically displaying a network delay detection result, a download bandwidth detection result and an upload bandwidth detection result step by step on the network quality detection subroutine interface;
And displaying a network quality detection result page corresponding to the network connection state, wherein the network quality detection result page displays the network delay detection result, the download bandwidth detection result, the upload bandwidth detection result and a network quality improvement control, and the network quality improvement control is used for guiding and improving the network quality of the terminal.
2. The method of claim 1, wherein the network quality detection subroutine interface further comprises a stop detection control, the method further comprising:
and in any detection process of network delay detection, download bandwidth detection or upload bandwidth detection on the terminal, responding to a stop detection instruction triggered by the stop detection control, and stopping the detection process currently being executed.
3. The method according to claim 1 or 2, wherein the responding to the first detection instruction triggered by the detection control sequentially performs network delay detection, download bandwidth detection and upload bandwidth detection on the terminal under the condition that the network connection state of the terminal is stable, and includes:
responding to the first detection instruction, and carrying out network delay detection on the terminal under the condition that the network connection state is stable;
Under the condition that the network delay detection result is obtained, detecting the download bandwidth of the terminal;
and under the condition that the download bandwidth detection result is obtained, carrying out uploading bandwidth detection on the terminal.
4. A method according to claim 3, wherein in response to the first detection instruction, after the network delay detection is performed on the terminal in a case where the network connection state is stable, the method further comprises:
and stopping the currently executing detection process under the condition that the network delay detection result is not detected within a first time period after the first detection instruction is triggered.
5. The method of claim 1, wherein after displaying the network quality detection result page corresponding to the network connection state, the method further comprises:
and responding to the triggering operation of the network quality improvement control, and switching from the network quality detection result page to a network quality improvement page.
6. The method of claim 1, wherein the network quality detection subroutine interface further comprises a status switch control, the method further comprising:
And under the condition that the network connection state is a wireless connection state, responding to a switching instruction triggered by the state switching control, and switching the network connection state into a mobile connection state.
7. A method for detecting network quality, the method comprising:
responding to the triggering operation of the network quality detection subprogram, and providing a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface is provided with a detection control;
sequentially transmitting a plurality of subfiles between a terminal and a detection server corresponding to the network quality detection subprogram in response to a first detection instruction triggered by the detection control, wherein the subfiles are divided by a test file for detecting the network quality;
and determining the current transmission bandwidth based on the file capacity and the transmission duration corresponding to at least one transmitted sub-file after each transmission is completed, and displaying the current transmission bandwidth through the network quality detection subroutine interface.
8. The method of claim 7, wherein sequentially transmitting the plurality of subfiles between the terminal and the detection server corresponding to the network quality detection subroutine in response to the first detection command triggered by the detection control comprises:
Responding to the first detection instruction, and establishing connection between the terminal and the detection server;
sequentially transmitting the plurality of subfiles between the terminal and the detection server through the established connection;
after a second time period passes at the time point of starting to establish the connection, starting to record file capacity and transmission time period corresponding to the subfiles transmitted between the terminal and the detection server;
and determining the current transmission bandwidth based on the file capacity and the transmission duration corresponding to at least one sub-file which is transmitted, wherein each sub-file is transmitted, and the method comprises the following steps:
and determining the current transmission bandwidth based on the recorded file capacity and the transmission duration after each transmission is completed.
9. The method of claim 7, wherein each time a sub-file is completed, determining a current transmission bandwidth based on a file capacity and a transmission duration corresponding to at least one sub-file that has been completed, and displaying the current transmission bandwidth through a network quality detection sub-program interface of the sub-program, the method further comprising:
under the condition that the total file capacity corresponding to the transmitted subfiles reaches the first capacity, determining the total transmission bandwidth based on the first capacity and the total transmission duration, and displaying the total transmission bandwidth through the network quality detection subroutine interface; or alternatively, the process may be performed,
And under the condition that the total transmission time spent for transmitting the subfiles reaches a third time, determining the total transmission bandwidth based on the total file capacity corresponding to the transmitted subfiles and the third time, and displaying the total transmission bandwidth through the network quality detection subroutine interface.
10. The method according to claim 9, wherein the method further comprises:
the transmission bandwidth is a downloading bandwidth, after the total transmission bandwidth is determined, a second detection instruction is generated, the second detection instruction indicates to detect the uploading bandwidth, the uploading bandwidth is determined in response to the second detection instruction, and the determined uploading bandwidth is displayed through the network quality detection subroutine interface; or alternatively, the process may be performed,
the transmission bandwidth is an uploading bandwidth, after the total transmission bandwidth is determined, a third detection instruction is generated, the third detection instruction indicates to detect the downloading bandwidth, the downloading bandwidth is determined in response to the third detection instruction, and the determined downloading bandwidth is displayed through the network quality detection subroutine interface.
11. The method of claim 7, wherein the method further comprises:
Responding to the first detection instruction, sequentially sending a plurality of delay detection requests to the detection server, and receiving delay detection responses returned by the detection server based on the plurality of delay detection requests;
determining network delay time length obtained by each detection based on the sending time point of each delay detection request and the receiving time point of the corresponding delay detection response;
and determining an average value of the detected multiple network delay time lengths as an average network delay time length, and displaying the average network delay time length through the network quality detection subroutine interface.
12. The method of claim 11, wherein sequentially sending a plurality of delayed detection requests to the detection server in response to the first detection instruction, and receiving delayed detection responses returned by the detection server based on the plurality of delayed detection requests, comprises:
responding to the first detection instruction, sending one delay detection request to the detection server each time, and determining a detection result according to whether a delay detection response returned by the detection server is received or not, wherein the detection result is detection success or detection failure;
And stopping sending the delay detection request when the number of times of detection success reaches the first number.
13. The method of claim 12, wherein after determining the detection result according to whether a delayed detection response returned from the detection server is received, the method further comprises:
and stopping sending the delay detection request when the detection failure times reach the second times.
14. The method according to any one of claims 7-13, further comprising:
receiving a fourth detection instruction based on the network quality detection subroutine, wherein the fourth detection instruction indicates to detect an uploading bandwidth;
responding to the fourth detection instruction, and sending the test file to the detection server;
determining a current uploading bandwidth based on the data capacity returned by the detection server and the transmission time length of the test file, wherein the data capacity represents the capacity of data in the test file received by the detection server;
and displaying the current uploading bandwidth through the network quality detection subroutine interface.
15. The method of claim 14, wherein after displaying the current upload bandwidth via the network quality detection subroutine interface, the method further comprises:
Responding to the uploading success notification sent by the detection server, and determining the total uploading bandwidth based on the file capacity of the uploading file and the total transmission time length of the test file;
and displaying the total uploading bandwidth through the network quality detection subroutine interface.
16. A network quality detection apparatus, the apparatus comprising:
the interface display module is used for responding to the triggering operation of the network quality detection subprogram and providing a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface displays the network connection state, the terminal type and the detection control of the current terminal;
the detection module is used for responding to a first detection instruction triggered by the detection control, sequentially carrying out network delay detection, download bandwidth detection and upload bandwidth detection on the terminal under the condition that the network connection state of the terminal is stable, and dynamically displaying a network delay detection result, a download bandwidth detection result and an upload bandwidth detection result step by step in the network quality detection subroutine interface;
the network quality detection result page is used for displaying the network delay detection result, the download bandwidth detection result, the upload bandwidth detection result and a network quality improvement control, and the network quality improvement control is used for guiding and improving the network quality of the terminal.
17. A network quality detection apparatus, the apparatus comprising:
the interface display module is used for responding to the triggering operation of the network quality detection subprogram to provide a network quality detection subprogram interface based on the target application program, wherein the network quality detection subprogram interface displays a detection control;
the sub-file transmission module is used for responding to a first detection instruction triggered by the detection control, sequentially transmitting a plurality of sub-files between the terminal and a detection server corresponding to the network quality detection subprogram, wherein the plurality of sub-files are obtained by dividing a test file for detecting the network quality;
and the bandwidth determining module is used for determining the current transmission bandwidth based on the file capacity and the transmission duration corresponding to at least one transmitted sub-file, and displaying the current transmission bandwidth through the network quality detection sub-program interface.
18. A computer device comprising a processor and a memory, wherein the memory stores at least one computer program that is loaded and executed by the processor to implement the operations performed by the network quality detection method of any of claims 1 to 15.
19. A computer readable storage medium having stored therein at least one computer program loaded and executed by a processor to implement the operations performed by the network quality detection method of any of claims 1 to 15.
20. A computer program product comprising a computer program which, when executed by a processor, performs the operations performed by the network quality detection method of any of claims 1 to 15.
CN202210415159.4A 2022-04-15 2022-04-15 Network quality detection method, device, computer equipment and storage medium Pending CN116962250A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210415159.4A CN116962250A (en) 2022-04-15 2022-04-15 Network quality detection method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210415159.4A CN116962250A (en) 2022-04-15 2022-04-15 Network quality detection method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116962250A true CN116962250A (en) 2023-10-27

Family

ID=88460699

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210415159.4A Pending CN116962250A (en) 2022-04-15 2022-04-15 Network quality detection method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116962250A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117411191A (en) * 2023-12-14 2024-01-16 广州超科自动化科技有限公司 Remote intelligent complete power distribution cabinet

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117411191A (en) * 2023-12-14 2024-01-16 广州超科自动化科技有限公司 Remote intelligent complete power distribution cabinet
CN117411191B (en) * 2023-12-14 2024-02-13 广州超科自动化科技有限公司 Remote intelligent complete power distribution cabinet

Similar Documents

Publication Publication Date Title
CN110868459B (en) Data transmission method, device, terminal and storage medium
CN111625381B (en) Method, device, equipment and storage medium for reproducing running scene of application program
CN111757305B (en) Service execution terminal switching method, device, system and storage medium
CN111866140B (en) Fusion management device, management system, service calling method and medium
CN111596885B (en) Audio data processing method, server and storage medium
CN110121084A (en) The methods, devices and systems of port switching
CN110944307A (en) Data transmission method, terminal, server, device and storage medium
CN108737551B (en) VR experiences equipment and VR broadcast management system
CN110502184B (en) Data storage method, data reading method, device and system
CN111294607B (en) Live broadcast interaction method and device, server and terminal
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
CN110278273B (en) Multimedia file uploading method, device, terminal, server and storage medium
CN116962250A (en) Network quality detection method, device, computer equipment and storage medium
CN116418795A (en) Processing method of user access request, electronic device, electronic equipment and medium
CN111399796A (en) Voice message aggregation method and device, electronic equipment and storage medium
CN107566215B (en) Wireless network cutout detection method, device, storage medium and mobile terminal
CN114565388B (en) Method and device for updating consensus rounds, electronic equipment and storage medium
CN115914189A (en) Resource processing method, device, server, terminal and storage medium
CN111918084B (en) Wheat loading method and device, server and terminal
CN114173321B (en) Equipment communication connection establishment method and equipment communication system
CN110971692B (en) Method and device for opening service and computer storage medium
CN112260845B (en) Method and device for accelerating data transmission
CN115022730B (en) Data transmission method, device, electronic equipment and storage medium
CN112988552A (en) Application program testing method, device, equipment and storage medium
KR20140100171A (en) Electronic device, method for controlling of the same and method for connecting wireless communications

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