CN111092792A - Method and device for evaluating network performance of terminal - Google Patents

Method and device for evaluating network performance of terminal Download PDF

Info

Publication number
CN111092792A
CN111092792A CN202010204959.2A CN202010204959A CN111092792A CN 111092792 A CN111092792 A CN 111092792A CN 202010204959 A CN202010204959 A CN 202010204959A CN 111092792 A CN111092792 A CN 111092792A
Authority
CN
China
Prior art keywords
terminal
tested
preset
evaluation
network performance
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
CN202010204959.2A
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.)
Beijing Abt Networks Co ltd
Original Assignee
Beijing Abt Networks Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Abt Networks Co ltd filed Critical Beijing Abt Networks Co ltd
Priority to CN202010204959.2A priority Critical patent/CN111092792A/en
Publication of CN111092792A publication Critical patent/CN111092792A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • 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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • H04L43/0894Packet rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides an evaluation and device for terminal network performance. The method comprises the following steps: after the terminal to be tested is determined to be accessed into the preset test page, the network performance index of the terminal to be tested can be obtained by calling the preset js file of the test page, wherein the network performance index can comprise a connection success rate, a concurrency success rate, a bandwidth and a CPU performance, further, a first evaluation grade, a second evaluation grade, a third evaluation grade and a fourth evaluation grade of the terminal to be tested can be determined according to the connection power, the concurrency success rate, the bandwidth and the CPU performance, and if any one evaluation grade is lower than the preset grade requirement, the network performance of the terminal to be tested is determined to be not up to standard. By adopting the method, when the network performance of the terminal is evaluated, the obtained various network performance indexes can be referred to, so that the network performance of the terminal can be evaluated more scientifically and reasonably, and the accuracy of network performance evaluation is improved.

Description

Method and device for evaluating network performance of terminal
Technical Field
The present application relates to the field of internet technologies, and in particular, to a method and an apparatus for evaluating performance of a terminal network.
Background
With the continuous development of internet technology, network applications are increasing, and it is also becoming more and more important to detect network performance indexes of a terminal to evaluate the network performance of the terminal.
Currently, when evaluating the network performance of a terminal, it is usually required to detect the network performance index of the terminal first. For example, the network performance index of the terminal may be detected by adopting an active test mode, that is, a detection tool is installed on the terminal, and the network performance index of the terminal is detected by the detection tool. However, the existing detection tool has a single function, and generally can only detect a single type of network performance index, which causes that when the network performance of the terminal is evaluated, only the single type of network performance index can be referred for evaluation, and further causes the problem of inaccurate network performance evaluation.
Therefore, a method for evaluating the network performance of the terminal is needed to solve the problem that in the prior art, the evaluation of the network performance is inaccurate due to a single function of the detection tool and a single index for evaluating the network performance.
Disclosure of Invention
The application provides an evaluation and device of terminal network performance, which can be used for solving the technical problem that in the prior art, the evaluation of network performance indexes is single due to the fact that the functions of detection tools are single, and further the evaluation of network performance is inaccurate.
In a first aspect, an embodiment of the present application provides a method for evaluating network performance of a terminal, where the method includes:
after a terminal to be tested is determined to be accessed to a preset test page, calling a preset js file of the test page to obtain a network performance index of the terminal to be tested; the network performance indexes comprise a connection success rate, a concurrency success rate, a bandwidth and CPU performance;
determining a first evaluation grade of the terminal to be tested according to the connection success rate of the terminal to be tested and the corresponding relation between the preset connection success rate and the evaluation grade;
determining a second evaluation grade of the terminal to be tested according to the concurrency success rate of the terminal to be tested and the corresponding relation between the preset concurrency success rate and the evaluation grade;
determining a third evaluation level of the terminal to be tested according to the bandwidth of the terminal to be tested and the corresponding relation between the preset bandwidth and the evaluation level;
determining a fourth evaluation grade of the terminal to be tested according to the CPU performance of the terminal to be tested and the corresponding relation between the preset CPU performance and the evaluation grade;
and if any one of the first evaluation level, the second evaluation level, the third evaluation level and the fourth evaluation level is lower than a preset level requirement, determining that the network performance of the terminal to be tested does not reach the standard.
With reference to the first aspect, in an implementation manner of the first aspect, the invoking a preset js file of the test page to obtain a network performance index of the terminal to be tested includes:
calling a preset js file of the test page, sending access requests to a preset website, and recording the number of the access requests;
receiving returned access responses and recording the number of the access responses;
and determining the connection power of the terminal to be tested according to the number of the access requests and the number of the access responses.
With reference to the first aspect, in an implementation manner of the first aspect, the invoking a preset js file of the test page to obtain a network performance index of the terminal to be tested includes:
calling a preset js file of the test page, sending connection requests to a preset website, and recording the number of the connection requests;
after determining that the connection with the preset website is successful, recording the number of successful connections;
and determining the concurrency success rate of the terminal to be tested according to the number of the connection requests and the number of the connection successes.
With reference to the first aspect, in an implementation manner of the first aspect, the invoking a preset js file of the test page to obtain a network performance index of the terminal to be tested includes:
calling a preset js file of the test page to acquire the flow between the terminal to be tested and a preset website;
and determining the bandwidth of the terminal to be tested according to the flow between the terminal to be tested and a preset website.
With reference to the first aspect, in an implementation manner of the first aspect, the invoking a preset js file of the test page to obtain a network performance index of the terminal to be tested includes:
calling a preset js file of the test page to acquire the calculation times per second of the terminal to be tested;
and determining the number of times of calculation per second of the terminal to be detected as the CPU performance of the terminal to be detected.
In a second aspect, an embodiment of the present application provides an apparatus for evaluating performance of a terminal network, where the apparatus includes:
the device comprises a calling unit and a processing unit, wherein the calling unit is used for calling a preset js file of a test page to acquire a network performance index of a terminal to be tested after the terminal to be tested is determined to be accessed to the preset test page; the network performance index comprises a connection success rate, a concurrency success rate, a bandwidth and CPU performance;
the evaluation unit is used for determining a first evaluation grade of the terminal to be tested according to the connection success rate of the terminal to be tested and the corresponding relation between the preset connection success rate and the evaluation grade; determining a second evaluation grade of the terminal to be tested according to the concurrency success rate of the terminal to be tested and the corresponding relation between the preset concurrency success rate and the evaluation grade; determining a third evaluation level of the terminal to be tested according to the bandwidth of the terminal to be tested and the corresponding relation between the preset bandwidth and the evaluation level; determining a fourth evaluation grade of the terminal to be tested according to the CPU performance of the terminal to be tested and the corresponding relation between the preset CPU performance and the evaluation grade; and if any one of the first evaluation level, the second evaluation level, the third evaluation level and the fourth evaluation level is lower than a preset level requirement, determining that the network performance of the terminal to be tested does not reach the standard.
With reference to the second aspect, in an implementation manner of the second aspect, the invoking unit is specifically configured to:
calling a preset js file of the test page, sending access requests to a preset website, and recording the number of the access requests;
receiving returned access responses and recording the number of the access responses;
and determining the connection power of the terminal to be tested according to the number of the access requests and the number of the access responses.
With reference to the second aspect, in an implementation manner of the second aspect, the invoking unit is specifically configured to:
calling a preset js file of the test page, sending connection requests to a preset website, and recording the number of the connection requests;
after determining that the connection with the preset website is successful, recording the number of successful connections;
and determining the concurrency success rate of the terminal to be tested according to the number of the connection requests and the number of the connection successes.
With reference to the second aspect, in an implementation manner of the second aspect, the invoking unit is specifically configured to:
calling a preset js file of the test page to acquire the flow between the terminal to be tested and a preset website;
and determining the bandwidth of the terminal to be tested according to the flow between the terminal to be tested and a preset website.
With reference to the second aspect, in an implementation manner of the second aspect, the invoking unit is specifically configured to:
calling a preset js file of the test page to acquire the calculation times per second of the terminal to be tested;
and determining the number of times of calculation per second of the terminal to be detected as the CPU performance of the terminal to be detected.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory for storing program instructions;
and the processor is used for calling and executing the program instructions in the memory so as to realize the evaluation method of the terminal network performance in the first aspect.
In a fourth aspect, an embodiment of the present application provides a storage medium, where a computer program is stored in the storage medium, and when at least one processor of an apparatus for evaluating terminal network performance executes the computer program, the apparatus for evaluating terminal network performance executes the method for evaluating terminal network performance according to the first aspect.
In the embodiment of the application, after the terminal to be tested is determined to be accessed to the preset test page, the network performance index of the terminal to be tested can be obtained by calling the preset js file of the test page, wherein the network performance index can comprise any combination of a connection success rate, a concurrency success rate, a bandwidth and a CPU performance, and further, the network performance of the terminal to be tested can be evaluated according to any combination of the connection success rate, the concurrency success rate, the bandwidth and the CPU performance. By adopting the method, various types of network performance indexes can be obtained by calling the preset js file of the test page, and then the obtained various types of network performance indexes can be referred to when the network performance of the terminal is evaluated, so that the network performance of the terminal can be evaluated more scientifically and reasonably, and the accuracy of network performance evaluation is improved.
Drawings
Fig. 1 is a schematic flowchart corresponding to a method for evaluating performance of a terminal network according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a corresponding method for accessing a preset test page according to an embodiment of the present disclosure;
fig. 3 is a schematic diagram of a method for evaluating network performance according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an apparatus for evaluating terminal network performance according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Please refer to fig. 1, which schematically illustrates a flow chart corresponding to an evaluation method for terminal network performance provided in an embodiment of the present application. As shown in fig. 1, the method specifically comprises the following steps:
step 101, after determining that the terminal to be tested is accessed to a preset test page, calling a preset js file of the test page to obtain a network performance index of the terminal to be tested.
And 102, determining a first evaluation grade of the terminal to be tested according to the connection success rate of the terminal to be tested and the corresponding relation between the preset connection success rate and the evaluation grade.
And 103, determining a second evaluation grade of the terminal to be tested according to the concurrency success rate of the terminal to be tested and the preset corresponding relation between the concurrency success rate and the evaluation grade.
And 104, determining a third evaluation grade of the terminal to be tested according to the bandwidth of the terminal to be tested and the corresponding relation between the preset bandwidth and the evaluation grade.
And 105, determining a fourth evaluation grade of the terminal to be tested according to the CPU performance of the terminal to be tested and the corresponding relation between the preset CPU performance and the evaluation grade.
And 106, if any one of the first evaluation level, the second evaluation level, the third evaluation level and the fourth evaluation level is lower than the preset level requirement, determining that the network performance of the terminal to be tested does not reach the standard.
In the embodiment of the application, after the terminal to be tested is determined to be accessed to the preset test page, the network performance index of the terminal to be tested can be obtained by calling the preset js file of the test page, wherein the network performance index can comprise any combination of a connection success rate, a concurrency success rate, a bandwidth and a CPU performance, and further, the network performance of the terminal to be tested can be evaluated according to any combination of the connection success rate, the concurrency success rate, the bandwidth and the CPU performance. By adopting the method, various types of network performance indexes can be obtained by calling the preset js file of the test page, and then the obtained various types of network performance indexes can be referred to when the network performance of the terminal is evaluated, so that the network performance of the terminal can be evaluated more scientifically and reasonably, and the accuracy of network performance evaluation is improved.
Specifically, before step 101 is executed, the terminal to be tested needs to be accessed to a preset test page. Fig. 2 is a flowchart schematically illustrating a process of accessing a terminal to be tested to a preset test page, where the process is illustrated in fig. 2, and the method for accessing a preset test page provided in an embodiment of the present application includes the following steps:
step 201, the terminal to be tested accesses a specific website.
Step 202, after monitoring that the specific website generates flow, the monitoring device generates a redirection message.
Step 203, the monitoring device sends the redirection message to the terminal to be tested.
And step 204, after receiving the redirection message, the terminal to be tested redirects to a preset test page.
Therefore, the terminal to be tested can realize the purpose of detecting the network performance index only by accessing the specific website and redirecting to the preset test page. The js file is pre-configured in the preset test page, so that the detection of network performance indexes of different types can be completed by calling the js file, the whole detection process does not need to download and install detection tools, the detection is convenient and quick, the multi-platform network performance detection can be supported, the applicable environment of functions is greatly expanded, the maintenance complexity of a network administrator is reduced, and the working efficiency is improved.
In step 101, the network performance index may include multiple types of performance indexes, for example, the network performance index may include a connection power and a concurrency success rate; as another example, the network performance indicators may include connection success rate and bandwidth; as another example, network performance metrics may include connection power and CPU performance; as another example, the network performance indicators may include concurrency success rate and bandwidth; as another example, the network performance indicators may include concurrency success rate and CPU performance; as another example, network performance metrics may include bandwidth and CPU performance; as another example, the network performance indicators may include a connection success rate, a concurrency success rate, and a bandwidth; for another example, the network performance indicators may include connection success rate, concurrency success rate, and CPU performance; as another example, the network performance indicators may include connection success rate, bandwidth, and CPU performance; as another example, the network performance indicators may include concurrency success rate, bandwidth, and CPU performance; as another example, network performance indicators may include connection success rate, concurrency success rate, bandwidth, and CPU performance.
In the embodiment of the application, the mode of obtaining the network performance index is different according to the difference of the network performance index,
if the network performance index is the connection power, a preset js file of the test page can be called, an access request is sent to a preset website, and the number of the access requests is recorded; receiving the returned access response, and recording the number of the access response; and determining the connection success rate of the terminal to be tested according to the number of the access requests and the number of the access responses. Where the concatenation power may be a ratio of the number of access responses to the number of access requests.
For example, 100 common DNS addresses may be preset in a preset js file of the test page, and by calling the preset js file, the control terminal sends access requests to the 100 common DNS addresses, and counts the number of requests that are returned successfully, so that the connection success rate of the terminal to be tested can be determined.
If the network performance index is the concurrency success rate, a preset js file of the test page can be called, a connection request is sent to a preset website, and the number of the connection requests is recorded; after the successful connection with the preset website is determined, recording the number of successful connections; and determining the concurrency success rate of the terminal to be tested according to the number of the connection requests and the number of successful connections. Wherein the concurrency rate may be a ratio of the number of connection successes to the number of connection requests.
For example, 100 common DNS addresses may be preset in a preset js file of a test page, a control terminal sends a connection request to the 100 common DNS addresses by calling the preset js file, a keep-alive field is provided at a header of the connection request, the keep-alive field is used for keeping connection with a corresponding DNS address for a period of time, if the terminal can successfully keep connection with the corresponding DNS address for a period of time, it is indicated that the connection is successful, the number of successful connections is counted, and thus the concurrence success rate of the terminal to be tested can be determined.
If the network performance index is the bandwidth, calling a preset js file of the test page to acquire the flow between the terminal to be tested and a preset website; and determining the bandwidth of the terminal to be tested according to the flow between the terminal to be tested and the preset website. The bandwidth of the terminal to be tested may be an average value of traffic between the terminal to be tested and a plurality of preset websites.
For example, a preset js file of a test page may be preset with 10 bandwidth test addresses, and by calling the preset js file, the control terminal initiates an http request with the 10 bandwidth test network, and counts traffic generated by a session between the terminal and the 10 bandwidth test website, so as to determine the bandwidth of the terminal to be tested.
If the network performance index is the CPU performance, the parameters of the CPU performance are many, such as the calculation times per second, the CPU utilization rate or the CPU temperature, etc. Taking the number of times of calculation per second as an example, a preset js file of the test page can be called to obtain the number of times of calculation per second of the terminal to be tested; and determining the number of times of calculation per second of the terminal to be measured as the CPU performance of the terminal to be measured.
In steps 102 to 106, the network performance is evaluated in different manners according to different types of performance indexes included in the network performance indexes. Taking the network performance indexes including the connection success rate, the concurrency success rate, the bandwidth and the CPU performance as examples, when evaluating the network performance of the terminal to be tested, the evaluation can be performed according to the connection success rate of the terminal to be tested, the concurrency success rate of the terminal to be tested, the bandwidth of the terminal to be tested and the CPU performance of the terminal to be tested.
In specific evaluation, referring to fig. 3, a schematic diagram of an evaluation method for network performance provided in an embodiment of the present application includes the following steps:
step 301, determining a first evaluation level of the terminal to be tested according to the connection success rate of the terminal to be tested and the corresponding relation between the preset connection success rate and the evaluation level.
As shown in table 1, this is an example of the correspondence relationship between the preset connection success rate and the evaluation level.
Table 1: example of correspondence between preset connection success rate and evaluation level
Connection success rate Rating of evaluation
≥80% Superior food
<80% Difference (D)
It should be noted that the contents shown in table 1 are only exemplary, and those skilled in the art may adjust the contents shown in table 1 according to experience and actual conditions, and do not limit the details.
And 302, determining a second evaluation grade of the terminal to be tested according to the concurrency success rate of the terminal to be tested and the preset corresponding relation between the concurrency success rate and the evaluation grade.
As shown in table 2, this is an example of the correspondence between the preset concurrency success rate and the evaluation level.
Table 2: example of correspondence between preset concurrency success rate and evaluation level
Concurrency success rate Rating of evaluation
≥80% Superior food
<80% Difference (D)
It should be noted that the contents shown in table 2 are only exemplary, and those skilled in the art may adjust the contents shown in table 2 according to experience and actual conditions, and do not limit the details.
Step 303, determining a third evaluation level of the terminal to be tested according to the bandwidth of the terminal to be tested and the corresponding relationship between the preset bandwidth and the evaluation level.
As shown in table 3, this is an example of the correspondence between the preset bandwidth and the evaluation level. Where bandwidth may be represented in terms of download rate.
Table 3: example of correspondence between preset bandwidth and evaluation level
Bandwidth of Rating of evaluation
≥5kb/s Superior food
<5kb/s Difference (D)
It should be noted that the contents shown in table 3 are only exemplary, and those skilled in the art may adjust the contents shown in table 3 according to experience and actual conditions, and the details are not limited.
And step 304, determining a fourth evaluation grade of the terminal to be tested according to the CPU performance of the terminal to be tested and the preset corresponding relation between the CPU performance and the evaluation grade.
As shown in table 4, this is an example of the correspondence relationship between the preset CPU performance and the evaluation level. Where CPU performance may be expressed in terms of counts per second.
Table 4: example of correspondence relationship between preset CPU performance and evaluation level
Number of counts per second Rating of evaluation
≥100/s Superior food
<100/s Difference (D)
It should be noted that the contents shown in table 4 are only exemplary, and those skilled in the art may adjust the contents shown in table 4 according to experience and actual conditions, and the details are not limited. For example, if the terminal is a mobile phone only, considering that the CPU performance of the mobile phone only is lower than that of the computer, the corresponding evaluation grade is good when the number of times of calculation per second is greater than or equal to 30, and the corresponding evaluation grade is good when the number of times of calculation per second is less than 30.
Step 305, judging whether any one of the first evaluation grade, the second evaluation grade, the third evaluation grade and the fourth evaluation grade is lower than a preset grade requirement, and if any one of the first evaluation grade, the second evaluation grade, the third evaluation grade and the fourth evaluation grade is lower than the preset grade requirement, executing step 306; otherwise, step 307 is executed.
The preset level requirement may be determined by a person skilled in the art according to experience and actual conditions, for example, the preset level requirement may be set to be superior, that is, as long as any one of the first evaluation level, the second evaluation level, the third evaluation level, and the fourth evaluation level is not superior, it may be determined that the network performance of the terminal to be tested does not reach the standard.
Step 306, determining that the network performance of the terminal to be tested does not reach the standard.
Step 307, determining that the network performance of the terminal to be tested reaches the standard.
It should be noted that: (1) the step number is only an exemplary representation of an execution flow, and the sequence of each step is not specifically limited in the present application, for example, in the step 301 and the step 302, the second evaluation level of the terminal to be tested may be determined according to the concurrency success rate of the terminal to be tested and the corresponding relationship between the preset concurrency success rate and the evaluation level, and then the first evaluation level of the terminal to be tested may be determined according to the connection success rate of the terminal to be tested and the corresponding relationship between the preset connection success rate and the evaluation level. (2) The step 305 is only one possible example, and in other possible evaluation methods, it may also be determined whether any two evaluation levels (or any three evaluation levels, or all evaluation levels) in the first evaluation level, the second evaluation level, the third evaluation level, and the fourth evaluation level are lower than the preset level requirement, and if so, the step 306 is executed; otherwise, step 307 is executed.
The following are embodiments of the apparatus of the present application that may be used to perform embodiments of the method of the present application. For details which are not disclosed in the embodiments of the apparatus of the present application, reference is made to the embodiments of the method of the present application.
Fig. 4 schematically shows a structural diagram of an apparatus for evaluating terminal network performance according to an embodiment of the present application. As shown in fig. 4, the apparatus has a function of implementing the above-mentioned evaluation method of terminal network performance, and the function may be implemented by hardware, or may be implemented by hardware executing corresponding software. The apparatus may include: a calling unit 401 and an evaluation unit 402.
The calling unit 401 is configured to, after it is determined that a terminal to be tested accesses a preset test page, call a preset js file of the test page to obtain a network performance index of the terminal to be tested; the network performance index comprises any combination of a connection success rate, a concurrency success rate, a bandwidth and CPU performance;
an evaluation unit 402, configured to evaluate the network performance of the terminal to be tested according to any combination of the connection success rate, the concurrency success rate, the bandwidth, and the CPU performance.
Optionally, the network performance index includes a connection success rate, a concurrency success rate, a bandwidth, and a CPU performance;
the evaluation unit 402 is specifically configured to:
and evaluating the network performance of the terminal to be tested according to the connection success rate of the terminal to be tested, the concurrency success rate of the terminal to be tested, the bandwidth of the terminal to be tested and the CPU performance of the terminal to be tested.
Optionally, the invoking unit 401 is specifically configured to:
calling a preset js file of the test page, sending access requests to a preset website, and recording the number of the access requests;
receiving returned access responses and recording the number of the access responses;
and determining the connection power of the terminal to be tested according to the number of the access requests and the number of the access responses.
Optionally, the invoking unit 401 is specifically configured to:
calling a preset js file of the test page, sending connection requests to a preset website, and recording the number of the connection requests;
after determining that the connection with the preset website is successful, recording the number of successful connections;
and determining the concurrency success rate of the terminal to be tested according to the number of the connection requests and the number of the connection successes.
Optionally, the invoking unit 401 is specifically configured to:
calling a preset js file of the test page to acquire the flow between the terminal to be tested and a preset website;
and determining the bandwidth of the terminal to be tested according to the flow between the terminal to be tested and a preset website.
Optionally, the invoking unit 401 is specifically configured to:
calling a preset js file of the test page to acquire the calculation times per second of the terminal to be tested;
and determining the number of times of calculation per second of the terminal to be detected as the CPU performance of the terminal to be detected.
Optionally, the evaluation unit 402 is specifically configured to:
determining a first evaluation grade of the terminal to be tested according to the connection success rate of the terminal to be tested and the corresponding relation between the preset connection success rate and the evaluation grade; determining a second evaluation grade of the terminal to be tested according to the concurrency success rate of the terminal to be tested and the corresponding relation between the preset concurrency success rate and the evaluation grade; determining a third evaluation level of the terminal to be tested according to the bandwidth of the terminal to be tested and the corresponding relation between the preset bandwidth and the evaluation level; determining a fourth evaluation grade of the terminal to be tested according to the CPU performance of the terminal to be tested and the corresponding relation between the preset CPU performance and the evaluation grade; and if any one of the first evaluation level, the second evaluation level, the third evaluation level and the fourth evaluation level is lower than a preset level requirement, determining that the network performance of the terminal to be tested does not reach the standard.
In the embodiment of the application, after the terminal to be tested is determined to be accessed to the preset test page, the network performance index of the terminal to be tested can be obtained by calling the preset js file of the test page, wherein the network performance index can comprise any combination of a connection success rate, a concurrency success rate, a bandwidth and a CPU performance, and further, the network performance of the terminal to be tested can be evaluated according to any combination of the connection success rate, the concurrency success rate, the bandwidth and the CPU performance. Therefore, the method and the device for evaluating the network performance can acquire various types of network performance indexes by calling the preset js file of the test page, and further refer to the acquired various types of network performance indexes when evaluating the network performance of the terminal, so that the network performance of the terminal can be evaluated more scientifically and reasonably, and the accuracy of network performance evaluation is improved.
Fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. As shown in fig. 5, an electronic device provided in an embodiment of the present application includes: a memory 501 for storing program instructions; the processor 502 is configured to call and execute the program instructions in the memory to implement the method for evaluating the performance of the terminal network according to the foregoing embodiment.
In this embodiment, the processor 502 and the memory 501 may be connected by a bus or other means. The processor may be a general-purpose processor, such as a central processing unit, a digital signal processor, an application specific integrated circuit, or one or more integrated circuits configured to implement embodiments of the present application. The memory may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk.
The embodiment of the present application further provides a storage medium, where a computer program is stored in the storage medium, and when at least one processor of the terminal network performance evaluation apparatus executes the computer program, the terminal network performance evaluation apparatus executes the terminal network performance evaluation method according to the foregoing embodiment.
The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM) or a Random Access Memory (RAM).
Those skilled in the art will clearly understand that the techniques in the embodiments of the present application may be implemented by way of software plus a required general hardware platform. Based on such understanding, the technical solutions in the embodiments of the present application may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the embodiments or some parts of the embodiments of the present application.
The same and similar parts in the various embodiments in this specification may be referred to each other. In particular, for the embodiments of the service construction apparatus and the service loading apparatus, since they are substantially similar to the embodiments of the method, the description is simple, and the relevant points can be referred to the description in the embodiments of the method.
The above-described embodiments of the present application do not limit the scope of the present application.

Claims (6)

1. A method for evaluating the performance of a terminal network is characterized by comprising the following steps:
after a terminal to be tested is determined to be accessed to a preset test page, calling a preset js file of the test page to obtain a network performance index of the terminal to be tested; the network performance indexes comprise a connection success rate, a concurrency success rate, a bandwidth and CPU performance;
determining a first evaluation grade of the terminal to be tested according to the connection success rate of the terminal to be tested and the corresponding relation between the preset connection success rate and the evaluation grade;
determining a second evaluation grade of the terminal to be tested according to the concurrency success rate of the terminal to be tested and the corresponding relation between the preset concurrency success rate and the evaluation grade;
determining a third evaluation level of the terminal to be tested according to the bandwidth of the terminal to be tested and the corresponding relation between the preset bandwidth and the evaluation level;
determining a fourth evaluation grade of the terminal to be tested according to the CPU performance of the terminal to be tested and the corresponding relation between the preset CPU performance and the evaluation grade;
and if any one of the first evaluation level, the second evaluation level, the third evaluation level and the fourth evaluation level is lower than a preset level requirement, determining that the network performance of the terminal to be tested does not reach the standard.
2. The method according to claim 1, wherein calling a preset js file of the test page to obtain the network performance index of the terminal to be tested comprises:
calling a preset js file of the test page, sending access requests to a preset website, and recording the number of the access requests;
receiving returned access responses and recording the number of the access responses;
and determining the connection power of the terminal to be tested according to the number of the access requests and the number of the access responses.
3. The method according to claim 1, wherein calling a preset js file of the test page to obtain the network performance index of the terminal to be tested comprises:
calling a preset js file of the test page, sending connection requests to a preset website, and recording the number of the connection requests;
after determining that the connection with the preset website is successful, recording the number of successful connections;
and determining the concurrency success rate of the terminal to be tested according to the number of the connection requests and the number of the connection successes.
4. The method according to claim 1, wherein calling a preset js file of the test page to obtain the network performance index of the terminal to be tested comprises:
calling a preset js file of the test page to acquire the flow between the terminal to be tested and a preset website;
and determining the bandwidth of the terminal to be tested according to the flow between the terminal to be tested and a preset website.
5. The method according to claim 1, wherein calling a preset js file of the test page to obtain the network performance index of the terminal to be tested comprises:
calling a preset js file of the test page to acquire the calculation times per second of the terminal to be tested;
and determining the number of times of calculation per second of the terminal to be detected as the CPU performance of the terminal to be detected.
6. An apparatus for evaluating performance of a terminal network, the apparatus comprising:
the device comprises a calling unit and a processing unit, wherein the calling unit is used for calling a preset js file of a test page to acquire a network performance index of a terminal to be tested after the terminal to be tested is determined to be accessed to the preset test page; the network performance indexes comprise a connection success rate, a concurrency success rate, a bandwidth and CPU performance;
the evaluation unit is used for determining a first evaluation grade of the terminal to be tested according to the connection success rate of the terminal to be tested and the corresponding relation between the preset connection success rate and the evaluation grade; determining a second evaluation grade of the terminal to be tested according to the concurrency success rate of the terminal to be tested and the corresponding relation between the preset concurrency success rate and the evaluation grade; determining a third evaluation level of the terminal to be tested according to the bandwidth of the terminal to be tested and the corresponding relation between the preset bandwidth and the evaluation level; determining a fourth evaluation grade of the terminal to be tested according to the CPU performance of the terminal to be tested and the corresponding relation between the preset CPU performance and the evaluation grade; and if any one of the first evaluation level, the second evaluation level, the third evaluation level and the fourth evaluation level is lower than a preset level requirement, determining that the network performance of the terminal to be tested does not reach the standard.
CN202010204959.2A 2020-03-23 2020-03-23 Method and device for evaluating network performance of terminal Pending CN111092792A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010204959.2A CN111092792A (en) 2020-03-23 2020-03-23 Method and device for evaluating network performance of terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010204959.2A CN111092792A (en) 2020-03-23 2020-03-23 Method and device for evaluating network performance of terminal

Publications (1)

Publication Number Publication Date
CN111092792A true CN111092792A (en) 2020-05-01

Family

ID=70400624

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010204959.2A Pending CN111092792A (en) 2020-03-23 2020-03-23 Method and device for evaluating network performance of terminal

Country Status (1)

Country Link
CN (1) CN111092792A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315986A (en) * 2011-08-31 2012-01-11 百度在线网络技术(北京)有限公司 Method for determining network rate of mobile terminal and equipment
CN102447593A (en) * 2011-11-21 2012-05-09 福建星网锐捷网络有限公司 Test method and device
CN103823754A (en) * 2014-02-11 2014-05-28 深圳市同洲电子股份有限公司 Method and device for realizing automatic testing
CN104468288A (en) * 2015-01-04 2015-03-25 中国联合网络通信集团有限公司 Terminal network data testing method and device
CN104750585A (en) * 2013-12-30 2015-07-01 腾讯科技(深圳)有限公司 Terminal detecting method and terminal detecting device
CN106685757A (en) * 2016-12-16 2017-05-17 烟台中科网络技术研究所 Method for assessing network performance and apparatus thereof
WO2017152880A1 (en) * 2016-03-11 2017-09-14 中兴通讯股份有限公司 Method for testing performance of mobile network, mobile terminal, server and testing system
CN107332712A (en) * 2017-08-02 2017-11-07 山西大学 Network performance dynamic evaluation, monitoring and optimization system
CN110768868A (en) * 2019-10-28 2020-02-07 中国联合网络通信集团有限公司 Terminal data network performance analysis method and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102315986A (en) * 2011-08-31 2012-01-11 百度在线网络技术(北京)有限公司 Method for determining network rate of mobile terminal and equipment
CN102447593A (en) * 2011-11-21 2012-05-09 福建星网锐捷网络有限公司 Test method and device
CN104750585A (en) * 2013-12-30 2015-07-01 腾讯科技(深圳)有限公司 Terminal detecting method and terminal detecting device
CN103823754A (en) * 2014-02-11 2014-05-28 深圳市同洲电子股份有限公司 Method and device for realizing automatic testing
CN104468288A (en) * 2015-01-04 2015-03-25 中国联合网络通信集团有限公司 Terminal network data testing method and device
WO2017152880A1 (en) * 2016-03-11 2017-09-14 中兴通讯股份有限公司 Method for testing performance of mobile network, mobile terminal, server and testing system
CN106685757A (en) * 2016-12-16 2017-05-17 烟台中科网络技术研究所 Method for assessing network performance and apparatus thereof
CN107332712A (en) * 2017-08-02 2017-11-07 山西大学 Network performance dynamic evaluation, monitoring and optimization system
CN110768868A (en) * 2019-10-28 2020-02-07 中国联合网络通信集团有限公司 Terminal data network performance analysis method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
亢娟等: "移动终端测试与质量评估体系的研究", 《电视技术》 *

Similar Documents

Publication Publication Date Title
CN108376112B (en) Pressure testing method, device and readable medium
CN107624233B (en) VPN transmission tunnel scheduling method and device and VPN client server
CN113472607B (en) Application program network environment detection method, device, equipment and storage medium
CN110297767B (en) Automatic execution method, device, equipment and storage medium for test cases
CN111562884B (en) Data storage method and device and electronic equipment
CN112866062B (en) Distributed pressure test system, method, device, equipment and storage medium
CN109510809A (en) Method for accessing domain name and device
CN111010303A (en) Server control method and device
CN111431772B (en) Network delay measuring method, system, readable storage medium and terminal equipment
CN110955544A (en) Method, device and system for detecting usability of web system
CN113207146B (en) Wireless communication network quality monitoring system and method
CN111092792A (en) Method and device for evaluating network performance of terminal
CN112232719A (en) Index quantitative scoring method, computer equipment and storage medium
JPWO2017159490A1 (en) Communication analysis device, communication analysis method, and computer program
CN111970262A (en) Method and device for detecting third-party service enabling state of website and electronic device
CN114710801B (en) Processing method and device of evaluation parameters of network performance, storage medium and equipment
CN108574610B (en) Pressure testing method and device, electronic equipment and medium
CN114641028A (en) User perception data determination method and device, electronic equipment and storage medium
CN110300034B (en) Web-based network speed measuring method and device
CN111131370B (en) Method, device and system for detecting whether service call is correct
CN111026622B (en) Method and device for testing maximum service request quantity of tested system
CN112416750A (en) Application program boundary testing method and system
CN112104765A (en) Illegal website detection method and device
CN116366452A (en) Broadband quality testing method and system
CN115514661B (en) Quality assessment method and device for mobile payment service and electronic equipment

Legal Events

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

Application publication date: 20200501

RJ01 Rejection of invention patent application after publication