CN117411813A - Terminal data throughput testing method and device, computer equipment and storage medium - Google Patents

Terminal data throughput testing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN117411813A
CN117411813A CN202311192520.2A CN202311192520A CN117411813A CN 117411813 A CN117411813 A CN 117411813A CN 202311192520 A CN202311192520 A CN 202311192520A CN 117411813 A CN117411813 A CN 117411813A
Authority
CN
China
Prior art keywords
test
network
data
terminal
parameters
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
CN202311192520.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.)
Huizhou TCL Cloud Internet Corp Technology Co Ltd
Original Assignee
Huizhou TCL Cloud Internet Corp Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huizhou TCL Cloud Internet Corp Technology Co Ltd filed Critical Huizhou TCL Cloud Internet Corp Technology Co Ltd
Priority to CN202311192520.2A priority Critical patent/CN117411813A/en
Publication of CN117411813A publication Critical patent/CN117411813A/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
    • H04L43/0888Throughput
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/06Testing, supervising or monitoring using simulated traffic

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the application provides a terminal data throughput test method, a device, computer equipment and a storage medium, which relate to the technical field of terminal test and can build a test network by acquiring network configuration parameters. The method and the device can automatically build the test network when the data throughput test is carried out on the tested terminal, and further ensure the effectiveness and stability of the test network. The data throughput test of the tested terminal can be completed only under the condition that the tested terminal is registered in the test network, and the test result is output, so that the implementation efficiency of the data throughput test of the terminal is improved.

Description

Terminal data throughput testing method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of terminal testing technologies, and in particular, to a method and apparatus for testing terminal data throughput, a computer device, and a storage medium.
Background
Data throughput refers to the rate at which data is transmitted or received over a network or communication channel. The data throughput of the terminal can be used as one of the measurement indexes of the data transmission performance of the terminal, and has important significance for optimizing the network performance, evaluating the performance of the terminal equipment, supporting network planning and the like.
However, currently, when data throughput testing is performed on a terminal, in order to meet testing requirements of different network types, a tester needs to build different testing networks through base station equipment respectively. The method is complex in implementation mode, and the situation that the test cannot be performed due to the fact that an established test network is wrong is easy to occur. It can be seen that the existing scheme for testing the data throughput of the terminal has the problem of low implementation efficiency.
Disclosure of Invention
The embodiment of the application provides a terminal data throughput test method, a terminal data throughput test device, computer equipment and a storage medium, which can improve the efficiency of terminal data throughput test.
The embodiment of the application provides a terminal data throughput testing method, which comprises the following steps:
acquiring network configuration parameters; wherein, the network configuration parameters are generated based on the network capability parameters of the tested terminal; the network capability parameter is used for describing the network type supported by the tested terminal;
Constructing a test network according to the network configuration parameters;
and under the condition that the tested terminal is registered to the test network, carrying out data throughput test on the tested terminal, and outputting a test result.
Correspondingly, the embodiment of the application also provides a terminal data throughput testing device, which comprises:
the first acquisition module is used for acquiring network configuration parameters; wherein, the network configuration parameters are generated based on the network capability parameters of the tested terminal; the network capability parameter is used for describing the network type supported by the tested terminal;
the first execution module is used for building a test network according to the network configuration parameters;
and the test module is used for carrying out data throughput test on the tested terminal under the condition that the tested terminal is registered to the test network and outputting a test result.
Correspondingly, the embodiment of the application also provides computer equipment, which comprises a memory and a processor; the memory stores a computer program, and the processor is configured to run the computer program in the memory, so as to execute any of the terminal data throughput testing methods provided in the embodiments of the present application.
Accordingly, embodiments of the present application also provide a storage medium for storing a computer program loaded by a processor to perform any of the terminal data throughput testing methods provided in the embodiments of the present application.
According to the terminal data throughput test method, the test network can be built by acquiring the network configuration parameters, and the network configuration parameters are generated based on the network capability parameters of the tested terminal and are used for describing the network types supported by the tested terminal, so that the test network built according to the network configuration parameters can be adapted to various network types supported by the tested terminal. The method and the device can automatically build the test network when the data throughput test is carried out on the tested terminal, and further ensure the effectiveness and stability of the test network. The data throughput test of the tested terminal can be completed only under the condition that the tested terminal is registered in the test network, and the test result is output, so that the implementation efficiency of the data throughput test of the terminal 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 introduced below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a terminal data throughput measurement method provided in an embodiment of the present application;
fig. 2 is a flowchart of an implementation of a terminal data throughput measurement method provided in an embodiment of the present application;
fig. 3 is a flowchart of another implementation of the terminal data throughput measurement method provided in the embodiment of the present application;
fig. 4 is a schematic diagram of a terminal data throughput measuring device according to an embodiment of the present application;
fig. 5 is another schematic diagram of a terminal data throughput testing apparatus provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal provided in an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The embodiment of the application provides a terminal data throughput test method, a terminal data throughput test device, computer equipment and a storage medium.
For example, referring to fig. 1, fig. 1 is a schematic application scenario of a terminal data throughput testing method provided in an embodiment of the present application, where the terminal data throughput testing method may be applied to a terminal data throughput testing apparatus, and the terminal data throughput testing apparatus may be integrated in a base station device, and the base station device may be an actual use base station that provides a network for a mobile terminal, or may be an analog base station device in a testing environment.
With the continual updating and iteration of cellular mobile communication technology, there are a wide variety of network types of communication networks currently in use. In order to test whether the terminal equipment can support different network types, when the data throughput test is performed on the terminal by using the base station equipment, a tester is required to operate the base station equipment, and then different test networks are built. The method is complex in implementation mode, configuration parameter errors are easy to occur, and the built test network is wrong and cannot be tested.
In order to solve the above-mentioned problems, the present embodiment provides a method for testing data throughput of a terminal, which may build a test network by obtaining a network configuration parameter, and since the network configuration parameter is generated based on a network capability parameter of a tested terminal, and the network capability parameter is used to describe a network type supported by the tested terminal, the test network built according to the network configuration parameter may adapt to multiple network types supported by the tested terminal. The method and the device can automatically build the test network when the data throughput test is carried out on the tested terminal, and further ensure the effectiveness and stability of the test network. The data throughput test of the tested terminal can be completed only under the condition that the tested terminal is registered in the test network, and the test result is output, so that the implementation efficiency of the data throughput test of the terminal is improved.
As shown in fig. 1, in a specific implementation, a target execution script may be configured to a base station device, and the implementation flow of a terminal data throughput testing method is described by using the target execution script, and when a tested terminal is tested, the base station device executes the target execution script to further implement a test operation on the terminal data throughput.
The specific implementation of each of the above operations may be referred to the following embodiments, and will not be described herein.
It should be noted that, the schematic view of the scenario of the application of the terminal data throughput test method shown in fig. 1 is only an example, and the application and the scenario of the application of the terminal data throughput test method described in the embodiment of the present application are for more clearly describing the technical solution of the embodiment of the present application, and do not constitute a limitation to the technical solution provided by the embodiment of the present application. Those skilled in the art can know that, in the case that other computer devices have the capability of building a terminal test network, the technical solution provided in the embodiments of the present application is also applicable to the computer device.
The following will describe in detail. The following description of the embodiments is not intended to limit the preferred embodiments.
The present embodiment will be described from the viewpoint of a terminal data throughput test device which can be integrated in a base station apparatus in particular. Fig. 2 shows a flowchart of an implementation of a terminal data throughput testing method according to an embodiment of the present application, and as shown in fig. 2, the flow of the terminal data throughput testing method is as follows:
101. and acquiring network configuration parameters.
The network configuration parameters are generated based on network capability parameters of the tested terminal. The network capability parameter is used to describe the network type supported by the terminal under test. Here, the terminal under test generally refers to a terminal device capable of mobile communication through a base station. Such as mobile terminals, e.g., cell phones, tablet computers, etc.
In a specific implementation, the network capability parameter may include information such as a communication frequency band and a communication bandwidth supported by the tested terminal. Unlike the network capability parameters, the network configuration parameters are parameters that can be directly identified by the application program becoming interface (Application Programming Interface, API) instructions.
As an example, the network configuration parameter may include a plurality of key-value pairs, i.e. each element in the network capability parameter is described in terms of a key-value pair, and the parameter content corresponding to that element. In each key-value pair, a key (key) is used as an index to an element in the network capability parameter, and a value (value) indicates the data that the element stores and can read, i.e., the parameter content, correspondingly. The base station equipment can read the parameter content from each key value pair by executing corresponding script statement by acquiring the network configuration parameters, and the construction operation of the test network is realized by utilizing each parameter content.
In this embodiment, since the network capability parameter is used to describe the network type supported by the tested terminal, the tested terminal can learn the network capability parameter according to the model or configuration parameter of the tested terminal before testing. Therefore, in specific implementation, the network capability parameters of the tested terminal can be preset according to different models of the tested terminal, or the network capability parameters of the tested terminal can be read from the tested terminal by configuring a network capability parameter reading script.
In particular, the network configuration parameters may be generated based on network capability parameters, such as a computer device capable of communicating with the base station device. Alternatively, it may be generated directly by the base station device based on the network capability parameters, without limitation. For example, a data processing module written in Python language may be configured in a computer device or a base station device, and the data processing module is used to obtain a network capability parameter of a tested terminal, and perform key value pair processing on the network capability parameter to obtain a plurality of key value pairs meeting API instruction specifications, so as to obtain a network configuration parameter.
102. And constructing a test network according to the network configuration parameters.
The network configuration parameters are parameters meeting the API instruction specification, and when the base station equipment builds a test network according to the network configuration parameters, various meters in the base station equipment can be called according to the API instruction to build the test network.
In combination with the above example, the network configuration parameters include a plurality of key value pairs, and when in specific implementation, the plurality of key value pairs can be classified according to different network types, so that the key value pairs describing the same network type are grouped into a whole, and then corresponding network configuration parameter slices are obtained. When the base station equipment tests the network according to the network configuration parameters, different network configuration parameter slices can be selected, and each key value pair in the network configuration parameter slices is used as the configuration parameter of the network type to carry out test network construction operation.
In specific implementation, an execution script for automatically setting up the test network can be configured in the base station equipment, and the base station equipment triggers corresponding API instructions to change corresponding configuration parameters by executing the script, namely, parameter configuration is performed according to the parameter content of the network configuration parameters, so that the automatic setting up of the test network is realized.
In practical application, in order to ensure the accuracy of the data throughput test result of the tested terminal, the time for constructing the test network can be distinguished according to the network type of the test network.
As an example, when the base station apparatus builds the test network according to the network configuration parameters, only one type of test network may be built. After the terminal data throughput test based on the test network is finished, other types of test networks are built for testing.
For example, different enb_test.cfg files may be configured for different test networks, i.e. network configuration parameters are described in the enb_test.cfg file.
When the base station equipment builds a test network according to the network configuration parameters, the enb.cfg file in the base station equipment can be modified according to the enb_test.cfg file, and the base station equipment builds the test network according to the modified enb.cfg file.
It can be appreciated that, since different test networks may correspond to different enb_test.cfg files, when switching test networks, the enb_test.cfg file in the base station device may be modified by using different enb_test.cfg files.
103. And under the condition that the tested terminal is registered to the test network, carrying out data throughput test on the tested terminal, and outputting a test result.
The tested terminal is registered to the test network, which means that the tested terminal can communicate or data transmission with the base station equipment through the test network.
In specific implementation, after the tested terminal registers the test network built by the base station equipment, the base station equipment stores attribute information and/or identification information of the tested terminal. Based on the above, the base station device can query the local database according to the attribute information and/or the identification information of the tested terminal, and can determine whether the corresponding tested terminal is successfully registered with the test network.
As an example, a registration information list corresponding to the test network may be configured in the base station device, and when the tested terminal is registered to the corresponding test network, the base station device stores the attribute information and/or the identification information of the tested terminal acquired in the registration process into the corresponding registration information list of the test network. The base station device can determine whether the tested terminal is registered to the test network by inquiring whether the attribute information and/or the identification information of the tested terminal exist in the registration information list.
For example, the tested terminal includes a first terminal and a second terminal, and if only the first terminal registers with the test network built by the base station device, the registration information list in the base station device stores attribute information and/or identification information of the first terminal. The base station device may determine that the first terminal is registered to the test network by querying the registration information list, and the second terminal is not registered to the test network.
In this embodiment, performing the data throughput test on the tested terminal may include: and the uplink data test and the downlink data test correspond to each other, and the test result comprises an uplink data test result and a downlink data test result. In specific implementation, corresponding iperf commands can be configured on the base station equipment and the tested terminal, and uplink data testing and downlink data testing can be realized by executing the iperf commands.
As an example, during the uplink data test, the tested terminal is made to execute the iperf command, that is, the tested terminal is used as the iperf client to send data to the base station device, and the base station device outputs the uplink data test result according to the received data. During downlink data testing, the base station equipment sends a self-iperf command, namely, the base station equipment is used as an iperf client to send data to a tested terminal, and the base station equipment outputs a downlink data testing result according to the data condition received by the tested terminal. And the base station equipment outputs the uplink data test result and the downlink data test result as test results.
According to the scheme provided by the embodiment, the test network is built by acquiring the network configuration parameters, and the network configuration parameters are generated based on the network capability parameters of the tested terminal, and the network capability parameters are used for describing the network types supported by the tested terminal, so that the test network built according to the network configuration parameters can be adapted to various network types supported by the tested terminal. The method and the device can automatically build the test network when the data throughput test is carried out on the tested terminal, and further ensure the effectiveness and stability of the test network. The data throughput test of the tested terminal can be completed only under the condition that the tested terminal is registered in the test network, and the test result is output, so that the implementation efficiency of the data throughput test of the terminal is improved.
In some embodiments, the network configuration parameters may be preconfigured in the base station device. Accordingly, step 101 in fig. 2 may specifically include:
acquiring network configuration parameters from a preset network configuration scheme file; the network configuration parameters are used for describing the corresponding relation between the test scene and the parameter content.
In a specific implementation, the network configuration parameters may be configured under a root directory of the base station device, and may specifically be in a network configuration scheme file under the root directory. When the base station equipment is used for testing the data throughput of the tested terminal, the base station equipment can acquire network configuration parameters from the network configuration scheme file under the root directory, and the construction operation of the test network is carried out according to the network configuration parameters.
It may be appreciated that, since the network types supported by the tested terminal may be plural, the test scenario described by the network configuration parameter may correspond to the network types supported by the tested terminal.
For example, the network types supported by the tested terminal include network type a, network type B, network type C, and network type D. Correspondingly, the test scenes described by the network configuration parameters can be a first test scene, a second test scene, a third test scene and a fourth test scene. The parameter content corresponding to each test scene corresponds to each network type.
That is, the base station device builds a test network according to the parameter content corresponding to the first test scene, so as to obtain a test network of the network type a. And the base station equipment builds a test network according to the parameter content corresponding to the second test scene, so that a test network of the network type B can be obtained. Similarly, when the data throughput test of different network types is required to be performed on the tested terminal, the test network of different network types can be built based on the parameter content corresponding to different test scenes in the network configuration parameters.
In some embodiments, the network configuration parameters may be generated directly by the base station device based on the network capability parameters. Accordingly, before the step of acquiring the network configuration parameter generated based on the network capability parameter, the method may further include:
acquiring data of a designated worksheet from a tested terminal as network capability parameters; network configuration parameters are generated based on the network capability parameters.
In this embodiment, the designated worksheet is a data table configured in advance in the tested terminal, and information in the designated worksheet may be used to indicate the network type supported by the tested terminal, that is, the content in the designated worksheet is a network capability parameter of the tested terminal.
When the base station device does not build the test network in specific implementation, the data of the designated worksheet can be obtained from the tested terminal as the network capability parameter through other communication modes, such as a near field communication mode or a wired communication mode.
It should be noted that, because the network capability parameter cannot be directly acted by the API instruction, that is, cannot be directly used by the base station device to test the network configuration, the network capability parameter needs to be processed and parsed to obtain the network configuration parameter that can be directly acted by the API instruction.
As an embodiment, in the foregoing solution, the step of generating the network configuration parameter based on the network capability parameter may specifically include:
according to a preset data processing strategy, extracting key value pairs from the data of the appointed worksheet to obtain initial dictionary type parameters; based on the initial dictionary type parameters, a corresponding configuration list is generated according to the test scene to serve as network configuration parameters.
In this embodiment, a preset data processing policy is used to describe a method of converting a specified worksheet into an initial dictionary type parameter. Here, the key value pair extraction may be performed on the data of the designated worksheet, specifically, a key (key) in which the name of each data item in the designated worksheet is regarded as each key value pair, that is, an item index, and a specific parameter content of each data item in the designated worksheet is regarded as a value (value) corresponding to the key (key), that is, a parameter content.
As an embodiment, in the foregoing solution, the step of generating, based on the initial dictionary type parameter, a corresponding configuration list as a network configuration parameter according to a test scenario may specifically include:
removing target key value pairs in the initial dictionary type parameters to obtain target dictionary type parameters; wherein the target key value pair is a key value pair with a key value of null; and according to the test scene, performing tabulation processing on the target dictionary type parameters, and generating a corresponding configuration list as a network configuration parameter.
It is easy to understand that, since the test scenario described by the network configuration parameters may correspond to the network types supported by the tested terminal, after the data of the designated worksheet is extracted by the key value pair to obtain the initial dictionary type parameters, the initial dictionary type parameters may be further classified according to the test scenario, so as to obtain a configuration list corresponding to each test scenario, or obtain a configuration list corresponding to each network type supported by the tested terminal. Therefore, the network configuration parameters are refined, and the method is beneficial for the base station equipment to build the appointed test network, because the base station equipment only needs to acquire the corresponding target configuration list according to the appointed test network when building the appointed test network, and does not need to acquire all the network configuration parameters, so that the building of the test network is more targeted, and meanwhile, the flexibility of building the test network by the base station equipment is improved.
As an embodiment, in the foregoing solution, after the step of performing the tabulation processing on the target dictionary type parameter according to the test scenario and generating the corresponding configuration list as the network configuration parameter, the method may further include:
displaying a configuration list corresponding to each test scene; and storing the configuration list corresponding to each test scene into a preset distribution network scheme file.
The contents In the configuration list include radio access technology (Radio Access Technology, RAT) type, quadrature amplitude debug (Quadrature Amplitude Modulation, QAM) data, signal band, in-band management state, bandwidth range, multiple-In Multiple-Out (MIMO) data, and cell switch state, among others.
It may not be understood that the test scenario corresponds to a network type, wherein the network type may be described in particular by a radio access technology (Radio Access Technology, RAT) type.
An example implementation of the network configuration parameters is shown in table 1 below.
TABLE 1
In table 1, test scenarios 1 to 4 are in one-to-one correspondence with four types of RATs, where LTE-CA (LTE-Carrier Aggregation) is a carrier aggregation test scenario, NSA (Non-standby) is a Non-independent networking test scenario, SA (Standalone) is an independent networking test scenario, and SACA is a static clustering scenario for coordinated multipoint transmission. The base station equipment acquires the configuration parameters of different test scenes divided as shown in the table 1, and can directly execute the API instruction to call the content in the network configuration parameters to realize the construction of the test network.
Fig. 3 shows another implementation flowchart of the terminal data throughput measurement method provided in the embodiment of the present application. As shown in fig. 3, the embodiment corresponding to fig. 2 is different in that the method provided in this embodiment may further include step 201 before step 103.
201: terminal configuration information of the tested terminal is obtained to register the tested terminal to the test network.
And in the process of registering the tested terminal to the test network, performing authentication encryption operation by using the terminal configuration information.
In this embodiment, in order to prevent an irrelevant device from registering in a test network set up by a base station in a process of testing a tested terminal, the base station device may also be configured to perform authentication encryption by acquiring terminal configuration information of the tested terminal when the tested terminal registers in the test network.
In a specific implementation, when the tested terminal is in a test network environment built by the base station equipment, after the tested terminal scans the test network, a Secure Shell (SSH) remote connection can be established to the base station equipment, and then terminal configuration information is uploaded to the base station equipment.
As an example, steps 201 to 202 may be implemented by the following steps.
Step 1: and the base station equipment responds to an SSH connection request initiated by the tested terminal and establishes SSH remote connection with the tested terminal.
In practical application, the base station connection module can be configured in the tested terminal, and is used for connecting the base station equipment and performing uplink data test and downlink data test in cooperation with the base station equipment.
Specifically, the tested terminal can initiate an SSH connection request to the base station device through a Paramiko library function according to the IP address, the user name and the password of the base station device, and the base station device establishes an SSH remote connection with the tested terminal by responding to the SSH connection request.
Step 2: the base station device deletes the existing configuration file.
In step 2, the existing configuration files may include an original ue_db_test.cfg file and a mme _test.cfg file in the base station device. Wherein ue_db_test.cfg is a database of stored registered terminal information, mme _test.cfg is used to configure the operator networks of different PLMNs.
It should be noted that, when a tested terminal is tested for a certain test scenario, a new ue_db_test cfg file is generated. Correspondingly, in the specific implementation, when the test scene, namely the network type, needs to be switched, the original ue_db_test.cfg file in the base station equipment needs to be deleted to realize configuration initialization.
Step 3: and the base station equipment receives the terminal configuration file uploaded by the tested terminal and performs authentication encryption operation by using the terminal configuration information.
Here, the terminal configuration file is a new ue_db_test.cfg file, and when the base station device receives the new ue_db_test.cfg file, the base station device can utilize the new ue_db_test.cfg file to perform authentication encryption operation, so that a test network built by a subsequent device can be prevented from registering to the test network built by the base station.
After the tested terminal is registered to the test network built by the base station equipment, the base station equipment can determine that the tested terminal is registered to the test network according to the terminal configuration information of the tested terminal, and then step 103 is started to execute data throughput test on the tested terminal, and a test result is output.
In one embodiment, step 103 specifically includes:
executing an uplink data test command, sending first test data to a tested terminal, and receiving response data returned by the tested terminal according to the first test data; receiving second test data sent by a tested terminal; the second test data are data sent by the tested terminal when the downlink data test command is executed; and outputting a test result based on the receiving condition of the response data and the receiving condition of the second test data.
In this embodiment, when the base station device executes the uplink data test command, the base station device actually performs the downlink data test on the tested terminal. And the base station equipment actively transmits first test data to the tested terminal as an iperf client. The first test data is data sent to the tested terminal by the base station equipment and is used for indicating the tested terminal to return corresponding response data. The response data is used for indicating that the tested terminal has received the first test data, and can also be used for representing the downlink data capacity of the tested terminal. And when the tested terminal executes the downlink data test command, the tested terminal is used as an iperf client to actively send second test data to the base station equipment. The base station device receives the second test data sent by the tested terminal, and in fact, performs uplink data test on the tested terminal. The second test data is data sent to the base station device by the tested terminal, and can be used for representing uplink data capacity of the tested terminal.
As an embodiment, the base station device outputs the test result based on the receiving condition of the response data and the receiving condition of the second test data, specifically may compare the data amount of the received response data with the data amount of the sent first test data, so as to obtain the test result of the downlink data test. And determining a test result of the uplink data test of the tested terminal according to the data quantity of the second test data. And integrating the test result of the downlink data test with the test result of the uplink data test to output the test result.
In specific implementation, different execution command strings can be configured by distinguishing between uplink data testing and downlink data testing. And modifying the corresponding data output catalog by using the execution command word string, outputting the test result of the uplink data test to the uplink test list, and outputting the test result of the downlink data test to the downlink test list. The base station equipment can output a data throughput test report for describing the test result by processing and analyzing the data in the uplink test list and the downlink test list.
As an example, in the data throughput test report, at least the peak rate of the uplink data and the peak rate of the downlink data of the tested terminal, and/or one of the average value of the uplink rate and the average value of the downlink rate are included.
As an embodiment, after the uplink data test and the downlink data test are completed on the tested terminal, the base station apparatus may further include: the SSH connection is closed.
In an embodiment, the step of outputting the test result based on the receiving condition of the response data and the receiving condition of the second test data may specifically include:
acquiring a first data total amount of received response data and a second data total amount of received second test data in a preset unit time; and outputting a test result according to the first data total amount and the second data total amount.
In the present embodiment, a preset unit time is used to describe a time interval for outputting a test result each time. I.e. the time interval during which a single data throughput test is performed on the terminal under test. Specifically, the downlink data average rate may be calculated by recording the first data total amount in the preset unit time and the preset response interval duration, and the uplink data average rate may be calculated by recording the second data total amount in the preset unit time.
As another embodiment, in the foregoing embodiment, the step of outputting the test result based on the receiving condition of the response data and the receiving condition of the second test data may specifically include:
acquiring a first rate of receiving response data and a second rate of receiving second test data; and outputting a test result according to the first rate and the second rate.
In this embodiment, the first rate may be a peak rate at which the response data is received, and the second rate may be a peak rate at which the second test data is received.
In the specific implementation, the first rate of receiving the response data is obtained, and in the process of sending multiple groups of first test data to the tested terminal, the base station equipment monitors the receiving condition of the response data corresponding to each group of first test data, so that the response data with the shortest time interval is determined to perform rate calculation, and the first rate is obtained. Similarly, the second rate of receiving the second test data is obtained, and the base station equipment monitors the receiving condition of response data corresponding to each group of second test data in the process of receiving the plurality of groups of second test data sent by the tested terminal, so that the second test data with the shortest time interval is determined to perform rate calculation, and the second rate is obtained.
In this embodiment, the base station device may also be configured to obtain terminal configuration information of the tested terminal, and be used to perform authentication encryption when the tested terminal is registered to the test network, so that it is possible to prevent that in the process of testing the tested terminal, an unrelated device is registered to the test network set up by the base station. In addition, when the test result is output, the content of the test result can be output according to the actual test requirement, and the method has important significance for optimizing the network performance, evaluating the terminal equipment performance, supporting the network planning and the like.
In order to facilitate better implementation of the terminal data throughput testing method provided by the embodiment of the application, in an embodiment, a terminal data throughput testing device is also provided. The meaning of the term is the same as that in the terminal data throughput testing method, and specific implementation details can be referred to the description in the method embodiment.
The terminal data throughput testing apparatus may be integrated in a base station device, as shown in fig. 4, and the terminal data throughput testing apparatus may include: a first acquisition module 301, a first execution module 302 and a test module 303. The method comprises the following steps:
a first obtaining module 301, configured to obtain a network configuration parameter generated based on a network capability parameter; the network capability parameter is used for describing the network type supported by the tested terminal;
A first execution module 302, configured to build a test network according to the network configuration parameters;
and the test module 303 is configured to perform a data throughput test on the tested terminal and output a test result when the tested terminal is registered in the test network.
As an embodiment, the first obtaining module 301 is specifically configured to obtain the network configuration parameter from a preset configuration network scheme file; the network configuration parameters are used for describing the corresponding relation between the test scene and the parameter content.
As shown in fig. 5, as an embodiment, the terminal data throughput testing apparatus may further include:
and the second obtaining module 304 is configured to obtain, from the tested terminal, data of a designated worksheet as the network capability parameter.
A parameter generation module 305, configured to generate the network configuration parameter based on the network capability parameter.
As an embodiment, the parameter generating module in the foregoing embodiment is specifically configured to extract, according to a preset data processing policy, key value pairs of the data of the specified worksheet, to obtain an initial dictionary type parameter; and generating a corresponding configuration list as the network configuration parameter according to the test scene based on the initial dictionary type parameter.
The parameter generation module 305 is specifically further configured to reject a target key value pair in the initial dictionary type parameter to obtain a target dictionary type parameter; wherein the target key value pair is a key value pair with a key value of null.
The parameter generation module specific 305 is further configured to perform a tabulation process on the target dictionary type parameter according to the test scenario, and generate a corresponding configuration list as the network configuration parameter.
As an embodiment, the parameter generating module in the foregoing embodiment is specifically further configured to display the configuration list corresponding to each test scenario.
The parameter generating module 305 in the foregoing embodiment is specifically further configured to store the configuration list corresponding to each test scenario in the preset configuration network scheme file.
As an embodiment, the test module 303 in the foregoing embodiment is specifically configured to execute an uplink data test command, send first test data to the tested terminal, and receive response data returned by the tested terminal according to the first test data; receiving second test data sent by the tested terminal; the second test data are data sent by the tested terminal when the downlink data test command is executed; and outputting a test result based on the receiving condition of the response data and the receiving condition of the second test data.
As an embodiment, the test module 303 in the foregoing embodiment is specifically configured to obtain a first total data amount of the received response data and a second total data amount of the received second test data within a preset unit time; and outputting a test result according to the first data total amount and the second data total amount.
As an embodiment, the test module 303 in the foregoing embodiment is specifically configured to obtain a first rate at which the response data is received, and a second rate at which the second test data is received; and outputting a test result according to the first rate and the second rate.
As an embodiment, the terminal data throughput testing apparatus may further include:
and a third obtaining module 306, configured to obtain terminal configuration information of the tested terminal, so as to register the tested terminal to the test network.
The embodiment of the present application further provides a computer device, which may be a base station device, as shown in fig. 6, which shows a schematic structural diagram of the base station device according to the embodiment of the present application, specifically:
the base station apparatus may include one or more processors 1001 of a processing core, one or more memories 1002 of a computer readable storage medium (which may also be referred to as a storage medium), a power supply 1003, and an input unit 1004, and the like.
It will be appreciated that the base station apparatus structure shown in fig. 6 is not limiting of the base station apparatus and may include more or fewer components than shown, or may combine certain components, or may be arranged in a different arrangement of components. Wherein:
the processor 1001 is a control center of the base station apparatus, connects respective parts of the entire base station apparatus using various interfaces and lines, and performs various functions of the base station apparatus and processes data by running or executing software programs and/or modules stored in the memory 1002 and calling data stored in the memory 1002, thereby performing overall monitoring of the base station apparatus. Optionally, the processor 1001 may include one or more processing cores; preferably, the processor 1001 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, a computer program, and the like, and the modem processor mainly processes wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 1001.
The memory 1002 may be used to store software programs and modules, and the processor 1001 executes various functional applications and data processing by executing the software programs and modules stored in the memory 1002. The memory 1002 may mainly include a stored program area that may store an operating system, computer programs required for at least one function (such as a sound playing function, an image playing function, etc.), and a stored data area; the storage data area may store data created according to the use of the base station apparatus, and the like. In addition, memory 1002 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 1002 may also include a memory controller to provide the processor 1001 with access to the memory 1002.
In particular, in this embodiment, the processor 1001 in the base station device loads executable files corresponding to the processes of one or more computer programs into the memory 1002 according to the following instructions, and the processor 1001 executes the computer programs stored in the memory 1002, so as to implement various functions, as follows:
acquiring network configuration parameters; wherein, the network configuration parameters are generated based on the network capability parameters of the tested terminal; the network capability parameter is used for describing the network type supported by the tested terminal.
And constructing a test network according to the network configuration parameters.
And under the condition that the tested terminal is registered to the test network, carrying out data throughput test on the tested terminal, and outputting a test result.
The specific implementation of each operation may be referred to the previous embodiments, and will not be described herein.
As can be seen from the foregoing, in the embodiment of the present application, the test network is built by acquiring the network configuration parameter generated based on the network capability parameter, and since the network capability parameter is used to describe the network type supported by the tested terminal, the test network built according to the network configuration parameter can adapt to multiple network types supported by the tested terminal. The method and the device can automatically build the test network when the data throughput test is carried out on the tested terminal, and further ensure the effectiveness and stability of the test network. The data throughput test of the tested terminal can be completed only under the condition that the tested terminal is registered in the test network, and the test result is output, so that the implementation efficiency of the data throughput test of the terminal is improved.
According to one aspect of the present application, there is provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to perform the methods provided in the various alternative implementations of the above embodiments.
It will be appreciated by those of ordinary skill in the art that all or part of the steps of the various methods of the above embodiments may be performed by a computer program, or by computer program control related hardware, which may be stored in a computer readable storage medium (i.e., a storage medium) and loaded and executed by a processor.
To this end, the embodiments of the present application provide a storage medium in which a computer program is stored, which can be loaded by a processor to perform any of the terminal data throughput test methods provided in the embodiments of the present application.
The specific implementation of each operation above may be referred to the previous embodiments, and will not be described herein.
Wherein the storage medium may include: read Only Memory (ROM), random access Memory (RAM, random Access Memory), magnetic or optical disk, and the like.
Because the computer program stored in the storage medium can execute any of the terminal data throughput testing methods provided in the embodiments of the present application, the beneficial effects that any of the terminal data throughput testing methods provided in the embodiments of the present application can be achieved, and detailed descriptions of the foregoing embodiments are omitted herein.
The foregoing has described in detail the methods, apparatuses, computer devices and storage medium for testing throughput of terminal data provided by the embodiments of the present application, and specific examples have been applied to illustrate the principles and embodiments of the present application, where the foregoing examples are provided to assist in understanding the methods and core ideas of the present application; meanwhile, those skilled in the art will have variations in the specific embodiments and application scope in light of the ideas of the present application, and the present description should not be construed as limiting the present application in view of the above.

Claims (12)

1. A method for testing data throughput of a terminal, the method comprising:
Acquiring network configuration parameters; wherein, the network configuration parameters are generated based on the network capability parameters of the tested terminal; the network capability parameter is used for describing the network type supported by the tested terminal;
constructing a test network according to the network configuration parameters;
and under the condition that the tested terminal is registered to the test network, carrying out data throughput test on the tested terminal, and outputting a test result.
2. The method for testing data throughput of a terminal according to claim 1, wherein the acquiring network configuration parameters generated based on network capability parameters comprises:
acquiring the network configuration parameters from a preset network configuration scheme file; the network configuration parameters are used for describing the corresponding relation between the test scene and the parameter content.
3. The terminal data throughput testing method of claim 2, further comprising, prior to said step of obtaining network configuration parameters generated based on network capability parameters:
acquiring data of a designated worksheet from the tested terminal as the network capacity parameter;
generating the network configuration parameters based on the network capability parameters.
4. A terminal data throughput testing method according to claim 3, characterized in that said generating network configuration parameters based on said network capability parameters comprises:
according to a preset data processing strategy, extracting key value pairs from the data of the appointed worksheet to obtain initial dictionary type parameters;
and generating a corresponding configuration list as the network configuration parameter according to the test scene based on the initial dictionary type parameter.
5. The method for testing data throughput of terminal according to claim 4, wherein said generating a corresponding configuration list as said network configuration parameter according to said test scenario based on said initial dictionary type parameter comprises:
removing target key value pairs in the initial dictionary type parameters to obtain target dictionary type parameters; wherein the target key value pair is a key value pair with a key value of null;
and according to the test scene, carrying out tabulation processing on the target dictionary type parameters, and generating a corresponding configuration list as the network configuration parameters.
6. The method for testing data throughput of terminal according to claim 5, wherein after said step of tabulating said target dictionary type parameters according to said test scenario and generating a corresponding configuration list as said network configuration parameters, further comprising:
Displaying the configuration list corresponding to each test scene;
and storing the configuration list corresponding to each test scene into the preset distribution network scheme file.
7. The method for testing data throughput of terminal according to claim 1, wherein, in the case that the terminal under test is registered with the test network, performing data throughput test on the terminal under test, outputting test results, comprises:
executing an uplink data test command, sending first test data to the tested terminal, and receiving response data returned by the tested terminal according to the first test data;
receiving second test data sent by the tested terminal; the second test data are data sent by the tested terminal when the downlink data test command is executed;
and outputting a test result based on the receiving condition of the response data and the receiving condition of the second test data.
8. The terminal data throughput testing method of claim 7, wherein the outputting the test result based on the receiving condition of the response data and the receiving condition of the second test data comprises:
Acquiring a first data total amount of the received response data and a second data total amount of the received second test data within a preset unit time;
and outputting a test result according to the first data total amount and the second data total amount.
9. The terminal data throughput testing method of claim 7, wherein the outputting the test result based on the receiving condition of the response data and the receiving condition of the second test data comprises:
acquiring a first rate at which the response data is received and a second rate at which the second test data is received;
and outputting a test result according to the first rate and the second rate.
10. A terminal data throughput testing apparatus, comprising:
the first acquisition module is used for acquiring network configuration parameters; wherein, the network configuration parameters are generated based on the network capability parameters of the tested terminal; the network capability parameter is used for describing the network type supported by the tested terminal;
the first execution module is used for building a test network according to the network configuration parameters;
and the test module is used for carrying out data throughput test on the tested terminal under the condition that the tested terminal is registered to the test network and outputting a test result.
11. A computer device comprising a processor and a memory, the memory having stored therein a computer program, the processor executing the terminal data throughput test method according to any of claims 1 to 9 when invoking the computer program in the memory.
12. A storage medium storing a computer program to be loaded by a processor to perform the terminal data throughput testing method of any one of claims 1 to 9.
CN202311192520.2A 2023-09-14 2023-09-14 Terminal data throughput testing method and device, computer equipment and storage medium Pending CN117411813A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311192520.2A CN117411813A (en) 2023-09-14 2023-09-14 Terminal data throughput testing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311192520.2A CN117411813A (en) 2023-09-14 2023-09-14 Terminal data throughput testing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117411813A true CN117411813A (en) 2024-01-16

Family

ID=89491603

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311192520.2A Pending CN117411813A (en) 2023-09-14 2023-09-14 Terminal data throughput testing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117411813A (en)

Similar Documents

Publication Publication Date Title
CN108174405B (en) Product testing method and device
WO2018006789A1 (en) Parameter checking method and apparatus, and network management server and computer storage medium
CN103746879A (en) Testing system and method for consistency of IPv6 (Internet Protocol Version 6) protocol
CN106339273A (en) Application program restoration method, terminal and server
CN106776346B (en) Test method and device of CCMTS (China center testing System) equipment
CN111597083B (en) Testing system of intelligent terminal
CN113038499B (en) Terminal Wi-Fi compatibility testing method, device, system, equipment and medium
US11985029B2 (en) Pico-base station configuration method and apparatus, storage medium and electronic apparatus
CN112954725B (en) Test method, communication system and NB-IoT device
US9743297B1 (en) Methods, systems, and computer readable media for testing wireless devices in wireless environments
CN108009086B (en) System automation test method based on case decomposition and function learning
CN111832273A (en) Method and device for determining destination message, storage medium and electronic device
CN112735406A (en) Device control method and apparatus, storage medium, and electronic apparatus
CN111541589B (en) Method, device and equipment for testing expansion module interface of intelligent terminal
CN117411813A (en) Terminal data throughput testing method and device, computer equipment and storage medium
CN115833964A (en) Performance test method and performance test system of dual-mode communication module
CN112420019B (en) Equipment testing method and device
CN115442266A (en) Gateway performance testing method and device, storage medium and electronic device
CN114385493A (en) Performance test method and device, electronic equipment and storage medium
CN110837476A (en) Application program testing method and device
CN110737598A (en) Method and device for testing page content based on page component characteristics
Díaz-Zayas et al. Remote control and instrumentation of Android devices
CN109673017B (en) RRU automatic testing method and device
CN116915583B (en) Communication abnormality diagnosis method, device and electronic equipment
CN111901185B (en) Account number management method and device for VoIP phone automatic test system

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