Network quality determination method, device, terminal equipment, storage medium and product
By obtaining the packet transmission parameters of the uplink and downlink of the terminal device and performing quality scoring, the problem of low network quality accuracy in the prior art is solved, and a more accurate network quality evaluation is achieved.
Patent Information
- Application Number
- CN202210336948.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-31
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2042-03-31
AI Technical Summary
When determining network quality, the prior art only relies on transmission rate and delay, and cannot accurately reflect the data transmission situation, resulting in low accuracy of network quality.
By obtaining the packet transmission parameters in the uplink and downlink, uplink and downlink quality scores are performed respectively, and network quality is determined based on these two scores.
The accuracy of the actual data transmission quality of the uplink and downlink is improved, thereby improving the accuracy of determining network quality.
Smart Images

Figure CN114745303B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of communication technology, and in particular, to a method, apparatus, terminal device, storage medium, and product for determining network quality. Background Art
[0002] Currently, users use mobile terminals for a variety of data services. During the use of mobile terminals, the quality of the network will have an impact on the use of data services.
[0003] In the related art, the network quality is determined by using the transmission rate, delay, etc. during the data transmission process. However, only based on the transmission rate, delay, etc., it is impossible to accurately reflect the data transmission situation, that is, the accuracy of determining the network quality is low. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, terminal device, storage medium and product for determining network quality. The technical solution is as follows:
[0005] On the one hand, an embodiment of the present application provides a method for determining network quality, the method comprising:
[0006] Acquiring uplink transmission parameters for data packet transmission in an uplink and downlink transmission parameters for data packet transmission in a downlink;
[0007] Determining an uplink quality score of the uplink based on the uplink transmission parameter and the downlink transmission parameter according to an uplink scoring method;
[0008] Determining a downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter according to a downlink scoring method;
[0009] Based on the uplink quality score and the downlink quality score, network quality is determined.
[0010] On the other hand, an embodiment of the present application provides a device for determining network quality, the device comprising:
[0011] A parameter acquisition module, used to acquire uplink transmission parameters for data packet transmission in the uplink and downlink transmission parameters for data packet transmission in the downlink;
[0012] A scoring determination module, configured to determine an uplink quality score of the uplink based on the uplink transmission parameter and the downlink transmission parameter according to an uplink scoring method;
[0013] The score determination module is further configured to determine a downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter in a downlink scoring manner;
[0014] The quality determination module is used to determine the network quality based on the uplink quality score and the downlink quality score.
[0015] On the other hand, an embodiment of the present application provides a terminal device, which includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for determining network quality as described in the above aspects.
[0016] On the other hand, an embodiment of the present application provides a computer-readable storage medium, in which at least one program code is stored, and the program code is loaded and executed by a processor to implement the method for determining network quality as described in the above aspects.
[0017] On the other hand, an embodiment of the present application provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. A processor of a computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes the network quality determination method provided in various optional implementations of the above aspects.
[0018] The technical solution provided in the embodiment of the present application may have at least the following beneficial effects:
[0019] In the embodiment of the present application, the terminal device uses the uplink transmission parameters of the uplink and the downlink transmission parameters of the downlink to evaluate the quality of the uplink and the quality of the downlink respectively, and obtains the uplink quality score and the downlink quality score, thereby determining the final network quality according to the uplink quality score and the downlink quality score. Since the uplink and downlink quality evaluation process is based on the joint evaluation of the uplink parameters and the downlink parameters, the accuracy of evaluating the actual data transmission quality of the uplink and downlink can be improved, thereby helping to improve the accuracy of determining the network quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0021] Figure 1 A schematic diagram showing an implementation environment provided by an exemplary embodiment of the present application is shown;
[0022] Figure 2A flowchart of a method for determining network quality provided by an exemplary embodiment of the present application is shown;
[0023] Figure 3 A flowchart of a method for determining network quality provided by another exemplary embodiment of the present application is shown;
[0024] Figure 4 A schematic diagram showing an upward scoring method provided by an exemplary embodiment of the present application is shown;
[0025] Figure 5 A schematic diagram showing a downlink scoring method provided by an exemplary embodiment of the present application is shown;
[0026] Figure 6 A flowchart of a method for determining network quality provided by another exemplary embodiment of the present application is shown;
[0027] Figure 7 A schematic diagram of the quality scoring architecture provided by an exemplary embodiment of the present application is shown;
[0028] Figure 8 A structural block diagram of a device for determining network quality provided by an embodiment of the present application is shown;
[0029] Fig. 9 A structural block diagram of a terminal device provided by an exemplary embodiment of the present application is shown. DETAILED DESCRIPTION
[0030] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0031] Figure 1 A schematic diagram of an implementation environment provided by an exemplary embodiment of the present application is shown, and the implementation environment may include: a terminal device 110 and a server 120. The terminal device 110 and the server 120 perform data communication via a communication network, and optionally, the communication network may be a wired network or a wireless network, and the communication network may be at least one of a local area network, a metropolitan area network, and a wide area network.
[0032] The terminal device 110 may include various handheld devices with data transmission functions, vehicle-mounted devices, wearable devices, computer devices or other processing devices connected to a wireless modem, as well as various forms of user equipment, mobile stations (MS), terminal devices, etc.
[0033] The server 120 may be an independent physical server, or a server cluster or a distributed system composed of multiple physical servers. The server 120 may forward data from other devices to the terminal device 110. The terminal device 110 may perform bidirectional data transmission with the server 120.
[0034] In a possible implementation manner, the method for determining network quality provided in the embodiment of the present application can be applied to Figure 1 The terminal device 110 shown in the figure can obtain the uplink transmission parameters when the terminal device 110 sends data to the server 120, and the downlink transmission parameters when the terminal device 110 receives the data sent by the server 120, so that the terminal device 110 can determine the uplink quality score of the uplink and the downlink quality score of the downlink according to the uplink transmission parameters and the downlink transmission parameters, and evaluate the network quality based on the uplink quality score and the downlink quality score.
[0035] Please refer to Figure 2 , which shows a flow chart of a method for determining network quality provided by an exemplary embodiment of the present application. This embodiment is described by taking the method executed by a terminal device as an example. The method includes the following steps:
[0036] Step 201: acquiring uplink transmission parameters for data packet transmission in an uplink and downlink transmission parameters for data packet transmission in a downlink.
[0037] Among them, the uplink refers to the channel through which the terminal device sends data, and the downlink refers to the channel through which the terminal device receives data.
[0038] In an embodiment of the present application, the terminal device will obtain uplink transmission parameters when transmitting data in the uplink and downlink transmission parameters when transmitting data in the downlink, so as to evaluate the network quality based on the uplink transmission parameters and the downlink transmission parameters.
[0039] In a possible implementation, the terminal device obtains uplink transmission parameters and downlink transmission parameters during the user's use of data services, and timely evaluates the network quality, thereby adjusting the network according to the evaluated network quality to avoid the impact of poor network quality on data services. Optionally, the terminal device can sample at a target duration as a period, that is, obtain the uplink transmission parameters and downlink transmission parameters within the target duration. Schematically, the target duration can be 1s, and the terminal device can use 1s as a period to obtain the uplink transmission parameters and downlink transmission parameters within the historical 1s to evaluate the network quality.
[0040] Step 202: determine the uplink quality score of the uplink based on the uplink transmission parameters and the downlink transmission parameters according to the uplink scoring method.
[0041] In a possible implementation, the terminal device evaluates the quality of the uplink and the quality of the downlink respectively. The uplink corresponds to an uplink scoring method, which is used to indicate a method for evaluating the uplink quality using transmission parameters. When the transmission parameters are obtained, the terminal device can determine the uplink quality score corresponding to the uplink according to the uplink scoring method.
[0042] Since the transmission of the downlink may affect the transmission of the uplink during the transmission of the uplink, determining the uplink quality score based only on the uplink transmission parameters of the uplink cannot accurately evaluate the quality of the uplink. Therefore, when determining the uplink quality score, the terminal device will use both the uplink transmission parameters and the downlink transmission parameters to jointly determine it.
[0043] Step 203: Determine the downlink quality score of the downlink based on the uplink transmission parameters and the downlink transmission parameters in a downlink scoring manner.
[0044] Correspondingly, the downlink scoring method is used to indicate a method for evaluating the downlink quality using the transmission parameters. When the transmission parameters are acquired, the terminal device may determine the downlink quality score corresponding to the downlink according to the downlink scoring method.
[0045] In the process of downlink quality evaluation, the downlink quality score is also determined based on the uplink transmission parameters and the downlink transmission parameters to ensure the accuracy of the downlink quality score.
[0046] Step 204: Determine the network quality based on the uplink quality score and the downlink quality score.
[0047] In a possible implementation, the terminal device will use the uplink quality score and the downlink quality score to comprehensively evaluate the network quality.
[0048] Since the uplink quality score and the downlink quality score are determined based on the uplink transmission parameters and the downlink transmission parameters, the inaccurate network quality assessment caused by the impact of the data interaction process between the uplink and the downlink on the transmission can be avoided, which helps to improve the accuracy of assessing the uplink quality and the downlink quality. The terminal device evaluates the current network quality based on the uplink quality and the downlink quality, which can improve the accuracy of determining the network quality.
[0049] In summary, in the embodiment of the present application, the terminal device uses the uplink transmission parameters of the uplink and the downlink transmission parameters of the downlink to evaluate the quality of the uplink and the quality of the downlink respectively, and obtains the uplink quality score and the downlink quality score, thereby determining the final network quality according to the uplink quality score and the downlink quality score. Since the uplink and downlink quality evaluation process is based on the joint evaluation of the uplink parameters and the downlink parameters, the accuracy of evaluating the actual data transmission quality of the uplink and downlink can be improved, thereby helping to improve the accuracy of determining the network quality.
[0050] Optionally, the terminal device evaluates the uplink quality according to the uplink scoring method, and evaluates the downlink quality according to the downlink scoring method. The uplink scoring method and the downlink scoring method are schematically described in the following embodiments.
[0051] Please refer to Figure 3 , which shows a flow chart of a method for determining network quality provided by another exemplary embodiment of the present application. This embodiment is described by taking the method executed by a terminal device as an example. The method comprises the following steps:
[0052] Step 301: acquiring uplink transmission parameters for data packet transmission in an uplink and downlink transmission parameters for data packet transmission in a downlink.
[0053] In the process of data transmission, the transmission control protocol (TCP) is usually used for transmission. In a possible implementation, the uplink transmission parameter and the downlink transmission parameter are transmission parameters in the process of transmitting TCP data packets.
[0054] In the process of obtaining uplink transmission parameters and downlink transmission parameters, the terminal device can obtain the uplink transmission rate, uplink retransmission rate and uplink transmission delay of the TCP data packet in the uplink; correspondingly, the terminal device can obtain the downlink transmission rate, downlink retransmission rate and downlink transmission delay of the TCP data packet in the downlink. Among them, the transmission rate is the number of data packets transmitted per second in the link; the retransmission rate is the number of normal TCP data packets transmitted in the link / (the number of normal TCP data packets + the number of retransmitted TCP data packets); the transmission delay is the average round trip time (Round Trip Time, RTT) of the TCP data packet.
[0055] Step 302: When the uplink transmission rate in the uplink transmission parameter is greater than the first rate threshold, determine an uplink quality score based on the uplink transmission parameter.
[0056] In the process of scoring according to the uplink scoring method, the terminal device will first evaluate the uplink quality with reference to the uplink transmission rate. Optionally, the uplink transmission parameter includes the uplink transmission rate of the TCP data packet. When the uplink transmission rate is large, it indicates that the uplink quality is good. The uplink quality score can be determined only by using the uplink transmission parameter without referring to other transmission parameters. In a possible implementation, this step may include steps 302a-302b:
[0057] Step 302a: When the uplink transmission rate is greater than the first rate threshold, determine the uplink benchmark score of the uplink as the highest score.
[0058] When the acquired uplink transmission rate is greater than the first rate threshold, it is determined to be a higher rate scenario and the uplink quality is good. Therefore, the uplink benchmark score of the uplink can be determined to be the highest score. The first rate threshold is a preset value. For example, the first rate threshold is 240 packets transmitted per second. In one possible implementation, the first rate threshold can be further determined using the influence of the transmission rate, i.e., the bandwidth, that is, the first rate threshold is the product of the threshold and the bandwidth influence factor. Schematically, the first rate threshold is 240*bandwidth influence factor. The bandwidth influence factor represents the weight ratio of the influence of the transmission rate on the quality, for example, it can be 1.2.
[0059] Indicatively, Figure 4 As shown, the number of uplink packets per second is the uplink transmission rate. When the number of uplink packets per second is greater than 240*bandwidth impact factor, it is determined to be a high-rate scenario, and the uplink benchmark score is 100.
[0060] Step 302b: determine the uplink quality score based on the uplink benchmark score and the uplink retransmission rate in the uplink transmission rate.
[0061] Since there may be a situation where the data packet transmission fails during the TCP data packet transmission process, the TCP data packet will be retransmitted in this case. When the TCP data packet retransmission rate is high, it indicates that the network quality is poor. Therefore, when performing quality assessment, the TCP retransmission rate needs to be considered. In one possible implementation, the terminal device is pre-equipped with a retransmission rate impact factor, which represents the impact weight on the quality assessment. Schematically, the retransmission rate impact factor may be 0.8. After the retransmission rate is obtained, the retransmission rate impact score can be determined based on the product of the baseline score, the retransmission rate and the retransmission rate impact factor, so that the final quality score can be determined based on the baseline score and the retransmission rate impact score.
[0062] That is, uplink quality score = uplink benchmark score - uplink benchmark score * uplink retransmission rate * retransmission rate impact factor. For example, Figure 4As shown, when the number of uplink packets per second is greater than 240*bandwidth impact factor, the uplink quality score = 100-100*retransmission rate*retransmission rate impact factor.
[0063] Step 303: When the uplink transmission rate is less than the first rate threshold, determine an uplink quality score based on the uplink transmission parameter and the downlink transmission parameter.
[0064] Optionally, when the uplink transmission rate is less than the first rate threshold, it is determined to be a lower rate scenario. In this case, it is necessary to further evaluate the uplink quality based on other transmission parameters. Optionally, when the uplink transmission rate is less than the first rate threshold, quality evaluation based on other transmission parameters may include the following situations:
[0065] 1. When the uplink transmission delay in the uplink transmission parameters is less than the first delay threshold or greater than the second delay threshold, the uplink benchmark score of the uplink is determined based on the uplink transmission delay, and the uplink transmission delay is negatively correlated with the uplink benchmark score.
[0066] When the uplink transmission rate is less than the first rate threshold, the terminal device further evaluates the quality based on the uplink transmission delay. The first delay threshold may be a pre-set threshold. Indicatively, the first delay threshold may be 400ms. When the uplink transmission delay is less than the first delay threshold, it indicates that the transmission delay is small, and the uplink benchmark score may be determined based only on the uplink transmission delay, wherein the smaller the uplink transmission delay, the higher the uplink benchmark score.
[0067] Further, when the uplink transmission delay is less than the first delay threshold, the transmission delay can be divided into intervals. When the uplink transmission delay is less than the fourth delay threshold, the uplink benchmark score can be determined to be the first level score, that is, the highest score. Schematically, the fourth delay threshold is 200ms, and when the uplink transmission delay is less than 200ms, the uplink benchmark score is determined to be 100. When the uplink transmission delay is greater than the fourth delay threshold and less than the fifth delay threshold, the uplink benchmark score is determined to be the second level score, which is lower than the first level score. Among them, the fourth delay threshold is less than the fifth delay threshold, and the fifth delay threshold is less than the first delay threshold. Schematically, the fifth delay threshold is 300ms, and when the uplink transmission delay is greater than 200ms and less than 300ms, the uplink benchmark score is determined to be 80. When the uplink transmission delay is greater than the fifth delay threshold and less than the first delay threshold, the uplink benchmark score is determined to be the third level score, which is less than the second level score. Illustratively, when the uplink transmission delay is greater than 300 ms and less than 400 ms, the uplink benchmark score is determined to be 70.
[0068] In addition, when the uplink transmission delay is greater than the second delay threshold, it is determined that the delay is too large, indicating that the network quality is poor. Therefore, the uplink benchmark score can also be determined directly based on the uplink transmission delay. When the uplink transmission delay is greater than the second delay threshold, the terminal device determines the uplink benchmark score as the fourth level score, that is, the lowest score. Schematically, the second delay threshold can be 1000ms. When the uplink transmission delay is greater than 1000ms, the uplink benchmark score is determined to be 59.
[0069] 2. When the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, the uplink benchmark score is determined based on the downlink transmission rate in the downlink transmission parameters, and the downlink transmission rate is positively correlated with the uplink benchmark score.
[0070] When the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, it indicates that the transmission delay is large. In this case, on the one hand, the delay may be large due to network reasons, and on the other hand, the transmission delay is the RTT of the TCP packet, where RTT is the time from when the data packet is sent to when the acknowledgment character (ACK) is received. ACK data is sent by the receiving device to the terminal device. When there are more data packets transmitted in the downlink, the ACK data is transmitted slowly, and accordingly, the RTT is larger. Therefore, when a large number of data packets are transmitted in the downlink, the uplink transmission delay may be large, and it is not due to network reasons.
[0071] Therefore, in a possible implementation, when the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, the terminal device needs to continue to use the downlink transmission delay, that is, the number of data packets transmitted per second in the downlink, as a reference to evaluate the uplink quality and determine whether the uplink transmission delay is large due to network reasons. Among them, the downlink transmission rate is positively correlated with the uplink benchmark score. The higher the downlink transmission rate, the more data packets are transmitted in the downlink, indicating that the transmission delay may not be caused by network reasons, and the higher the uplink benchmark score corresponding to the corresponding uplink.
[0072] Optionally, when the downlink transmission rate is greater than a third rate threshold, the uplink benchmark score is determined to be a first-level score. The third rate threshold is greater than the first rate threshold, for example, the third rate threshold is 400 packets transmitted per second. When the number of packets per second corresponding to the downlink, i.e., the number of downlink packets per second, is greater than 400, the uplink benchmark score is determined to be 100.
[0073] Optionally, when the downlink transmission rate is greater than the first rate threshold and less than the third rate threshold, the uplink benchmark score is determined to be the second level score. For example, when the number of downlink packets per second is greater than 240 and less than 400, the uplink benchmark score is determined to be 80.
[0074] Optionally, when the downlink transmission rate is less than the first rate threshold, the uplink benchmark score is determined to be the fourth level score. For example, when the number of downlink packets per second is less than 240, the uplink benchmark score is determined to be 59.
[0075] In a possible implementation manner, the uplink quality score is determined based on the uplink reference score and the uplink retransmission rate in the uplink transmission parameters.
[0076] When the uplink transmission rate is less than the first rate threshold, the terminal device determines the uplink benchmark score based on the uplink transmission delay and the downlink transmission rate, and then determines the final uplink quality score based on the uplink retransmission rate. This method can refer to the above step 302b and will not be repeated here.
[0077] Indicatively, Figure 4 As shown, when the uplink transmission rate, i.e., the number of uplink packets per second, is ≤ 240*bandwidth impact factor, a second judgment is made based on the uplink transmission delay, i.e., the uplink RTT. When the uplink RTT is less than 200ms, the uplink quality score is determined to be 100-100*retransmission rate*retransmission rate impact factor; when the uplink is 200ms<uplink RTT<300ms, the uplink quality score is determined to be 80-80*retransmission rate*retransmission rate impact factor; when the uplink is 300ms<uplink RTT<400ms, the uplink quality score is determined to be 70-70*retransmission rate*retransmission rate impact factor; when the uplink RTT is greater than 1000ms, the uplink quality score is determined to be 59-59*retransmission rate*retransmission rate impact factor. When the uplink is 400ms<uplink RTT<1000ms, further judgment is required based on the downlink transmission rate, i.e., the number of downlink packets per second. When the number of downlink packets per second is greater than 400, the uplink quality score is determined to be 100-100*retransmission rate*retransmission rate impact factor; when 240<the number of downlink packets per second<400, the uplink quality score is determined to be 80-80*retransmission rate*retransmission rate impact factor; when the number of downlink packets per second is less than 240, the uplink quality score is determined to be 59-59*retransmission rate*retransmission rate impact factor.
[0078] When the uplink transmission rate is less than the first rate threshold, the uplink transmission rate may be very small. In this case, it is necessary to further obtain other transmission parameters for quality evaluation. In this case, determining the uplink quality score may include the following steps:
[0079] Step 1: When the uplink transmission rate and the downlink transmission rate in the downlink transmission parameters are less than the second rate threshold, and the uplink transmission delay in the uplink transmission parameters is greater than the third delay threshold, determine that the uplink benchmark score of the uplink is the lowest score, wherein the second rate threshold is less than the first rate threshold.
[0080] In a possible implementation, when the uplink transmission rate is less than the second rate threshold, it is determined that the number of data packets transmitted in the uplink is small. Therefore, the second rate threshold is much smaller than the first rate threshold, and the second rate threshold may be 10 data packets transmitted per second. When it is determined that the uplink transmission rate is less than the second rate threshold, the downlink transmission rate needs to be further determined. When the downlink transmission rate is also less than the second rate threshold, it indicates that the current number of data packets transmitted is small, and there is no need to transmit more data packets in the current business scenario, such as a gaming business scenario. In this scenario, the transmission delay is usually low, for example, around 100ms. If the transmission delay is high, it indicates that the network quality is poor. Therefore, after determining that the uplink transmission rate and the downlink transmission rate are both less than the second rate threshold, the uplink benchmark score is further determined based on the uplink transmission delay. When the uplink transmission delay is greater than the third delay threshold, it is determined that the current transmission rate is low, and the uplink benchmark score is the fourth level score, i.e., the lowest score. For example, the third delay threshold is 170ms.
[0081] Step 2: Determine the uplink quality score based on the uplink benchmark score and the uplink retransmission rate in the uplink transmission parameters.
[0082] After obtaining the uplink benchmark score, the uplink retransmission rate is also used to determine the uplink quality score. This method can refer to the above steps and will not be described in detail here.
[0083] Indicatively, Figure 4 As shown, when the number of uplink packets per second is less than 10&&the number of downlink packets per second is less than 10&&uplink RTT is greater than 170ms, the uplink quality score is determined to be 59-59*retransmission rate*retransmission rate impact factor.
[0084] Step 304: When the downlink transmission rate in the downlink transmission parameter is greater than the first rate threshold, determine a downlink quality score based on the downlink transmission parameter.
[0085] The above steps illustrate the uplink scoring method by way of example. The following will illustrate the downlink scoring method by way of example. Similar to the uplink scoring method, the terminal device first evaluates the downlink quality with reference to the downlink transmission rate. When the acquired downlink transmission rate is greater than the first rate threshold, the terminal device determines that it is a higher rate scenario and the downlink quality is better. Therefore, the downlink benchmark score of the downlink can be determined to be the highest score.
[0086] After determining the downlink benchmark score, the downlink quality score is further determined according to the downlink retransmission rate. Downlink quality score = downlink benchmark score - downlink benchmark score * downlink retransmission rate * retransmission rate impact factor.
[0087] Indicatively, Figure 5 As shown, when the number of downlink packets per second is greater than 240*bandwidth impact factor, it is determined to be a high-rate scenario, the downlink benchmark score is 100, and the downlink quality score is 100-100*retransmission rate*retransmission rate impact factor.
[0088] Step 305: When the downlink transmission rate is less than the first rate threshold, determine a downlink quality score based on the uplink transmission parameter and the downlink transmission parameter.
[0089] When the downlink transmission rate is less than the first rate threshold, it is determined to be a lower rate scenario, and the terminal device needs to further use the uplink transmission parameters and the downlink transmission parameters to determine the downlink quality score. This method may include the following steps:
[0090] Step 305a: determine a downlink benchmark score for the downlink based on the uplink transmission delay in the uplink transmission parameters, and the uplink transmission delay is negatively correlated with the downlink benchmark score.
[0091] When the downlink transmission rate is less than the first rate threshold, further judgment is required based on the transmission delay. However, during the data transmission process of the downlink, the terminal device is the receiving end and cannot confirm the actual sending time, that is, it is impossible to determine the accurate downlink transmission delay (downlink RTT). Therefore, in a possible implementation, when the downlink transmission rate is less than the first rate threshold, the terminal device further performs a downlink quality assessment based on the uplink transmission delay. The greater the uplink transmission delay, the lower the downlink benchmark score.
[0092] Optionally, when the uplink transmission delay is greater than the first delay threshold, the downlink benchmark score is determined to be the fourth level score; when the uplink transmission delay is less than the first delay threshold, the downlink benchmark score is determined to be the first level score.
[0093] Step 305b: Determine a downlink quality score based on the downlink reference score and the downlink retransmission rate in the downlink transmission parameters.
[0094] After the downlink benchmark score is determined, the downlink quality score is further determined based on the downlink retransmission rate.
[0095] Indicatively, Figure 5As shown, when the number of downlink packets per second is ≤240*bandwidth impact factor, if the uplink RTT is greater than 400ms, the downlink quality score is determined to be 59-59*retransmission rate*retransmission rate impact factor; if the uplink RTT is ≤400ms, the downlink quality score is determined to be 100-100*retransmission rate*retransmission rate impact factor (not shown in the figure).
[0096] During the data transmission process, there is packet loss. Whenever packet loss occurs, the data packet needs to be retransmitted, which will increase the transmission delay. In another possible implementation, the quality evaluation can be further performed based on the number of packet losses. In this method, the downlink quality score = downlink benchmark score - 2 * number of packet losses * RTT / 1000.
[0097] like Figure 5 As shown in the figure, when the uplink RTT is ≤ 400ms, the downlink quality score is 100-2*number of packet losses*RTT / 1000.
[0098] Step 306: Determine the quality level of the network quality based on the lowest score between the uplink quality score and the downlink quality score.
[0099] After obtaining the uplink quality score and the downlink quality score, the network quality level can be determined according to the lowest score of the uplink quality score and the downlink quality score. The terminal device pre-stores the correspondence between different scores and quality levels. When the lowest score is determined, the quality level corresponding to the lowest score can be determined as the quality level of the current network quality.
[0100] Indicatively, the correspondence between the score and the quality level is shown in Table 1:
[0101] Table 1
[0102] score Quality Grade 80-100 excellent 60-80 medium 40-60 Poor <40 Difference
[0103] In conjunction with the example in Table 1, when the uplink quality score is determined to be 90 and the downlink quality score is 70, the quality level of the network quality is determined according to the downlink quality score 70, and the quality level is medium.
[0104] In this embodiment, the link quality is evaluated based on the transmission rate. When the transmission rate is high, there is no need to evaluate based on other parameters. When the transmission rate is low, the accuracy of the quality evaluation can be improved by further judging based on the transmission delay. The accuracy of the quality evaluation can be further improved by first determining the benchmark score and then considering the impact of the retransmission rate on the score to obtain the final quality score.
[0105] In this embodiment, in the uplink quality assessment process, when the uplink transmission delay is large, the uplink is further assessed according to the downlink transmission rate, so as to avoid directly assessing the quality as poor when the delay is large, thereby improving the accuracy of the quality assessment. In the downlink quality assessment process, the uplink transmission delay is used for assessment, so as to avoid using the inaccurate downlink transmission delay for quality assessment, thereby improving the accuracy of the quality assessment.
[0106] In one possible case, the transmission parameter obtained by the terminal device indicates that no data packet is transmitted in the current sampling period, in which case, no quality evaluation will be performed. This will be described below with an exemplary embodiment.
[0107] Please refer to Figure 6 , which shows a flow chart of a method for determining network quality provided by another exemplary embodiment of the present application. This embodiment is described by taking the method executed by a terminal device as an example. The method comprises the following steps:
[0108] Step 601: acquiring uplink transmission parameters for data packet transmission in an uplink and downlink transmission parameters for data packet transmission in a downlink.
[0109] Optionally, the terminal device is provided with a network control module, a TCP scoring processing module, a TCP scoring control module and a TCP statistical scoring module. Among them, the network control module is used to control the network quality, and it can adjust the network to change the network quality. The TCP scoring processing module can interact with the network control module, and can determine the network quality according to the evaluated uplink quality score and downlink quality score. The TCP control module is used to control whether to enable or disable the TCP scoring function. The TCP statistical scoring module is used to determine the uplink quality score and the downlink quality score according to the transmission parameters.
[0110] In a possible implementation, when the TCP statistical scoring module receives the scoring start notification sent by the TCP scoring control module, the uplink transmission parameter and the downlink transmission parameter are acquired every target period.
[0111] Step 602: When the uplink transmission parameter indicates that there is no data packet transmission in the uplink, determine the uplink quality score as a historical uplink quality score.
[0112] In one possible implementation, when the uplink transmission rate in the uplink transmission parameters is 0, that is, the number of uplink packets per second is 0, it is determined that there is no data packet transmission in the current uplink. At this time, the TCP statistical scoring module does not perform uplink quality evaluation, but determines the historical uplink quality score determined in the previous period as the uplink quality score.
[0113] like Figure 4As shown, when the number of uplink packets per second = 0, the historical uplink quality score is kept.
[0114] If there is data packet transmission, the TCP statistical scoring module determines the uplink quality score according to the uplink scoring method and stores it.
[0115] Step 603: When the downlink transmission parameter indicates that there is no data packet transmission in the downlink, determine the downlink quality score as a historical downlink quality score.
[0116] Correspondingly, when the downlink transmission rate is 0, that is, the number of downlink packets per second is 0, it is determined that there is no data packet transmission in the current downlink. At this time, the TCP statistical scoring module determines the historical downlink quality score determined in the previous cycle as the downlink quality score.
[0117] like Figure 5 As shown, when the number of downlink packets per second = 0, the historical downlink quality score is kept.
[0118] If there is data packet transmission, the TCP statistical scoring module determines the downlink quality score according to the downlink scoring method and stores it.
[0119] Step 604: Determine the network quality based on the uplink quality score and the downlink quality score.
[0120] After the TCP statistical scoring module determines the uplink quality score and the downlink quality score, it will report the score to the TCP scoring control module. The TCP scoring control module forwards the score to the TCP scoring processing module. The TCP scoring processing module determines the network quality based on the uplink quality score and the downlink quality score.
[0121] Step 605: When the network quality changes, call the network adjustment strategy, which is used to adjust the network quality.
[0122] In a possible implementation, when the TCP score processing module determines that the network quality has changed compared to the historical network quality, the current network quality is reported to the network control module, and the network control module calls the network adjustment strategy to adjust the network quality according to the change in network quality. For example, when the network control module determines that the network quality has deteriorated, the current network can be adjusted.
[0123] Optionally, when the TCP score processing module determines that the score has changed compared to the score of the previous cycle, the network quality is reported. Alternatively, in another possible implementation, in order to avoid frequent reporting, when the network quality level changes compared to the network quality level of the previous cycle, the network quality is reported again, so that the network control module calls the network adjustment strategy.
[0124] like Figure 7 As shown, it shows a schematic diagram of the quality scoring architecture. When the network control module 701 needs to evaluate the network quality, it will register the network quality evaluation strategy. After receiving the registration information, the TCP scoring processing module 702 will subscribe to the TCP score, that is, notify the TCP scoring control module 703 to turn on the TCP scoring function. The TCP scoring control module 703 sends a TCP scoring start notification to the TCP statistical scoring module 704. After the TCP statistical scoring module 704 determines the uplink quality score and the downlink quality score, it will report the TCP score. After receiving the reported score, the TCP scoring control module 703 notifies the score to the TCP scoring processing module 702. The TCP scoring processing module 702 determines the network quality according to the score, and reports the network quality to the network control module 701 when the network quality changes. The network control module 701 calls the network adjustment strategy to adjust the network quality according to the changes in the network quality.
[0125] In this embodiment, after determining that the network quality has changed, the network quality can be adjusted in a timely manner according to the change in the network quality, thereby maintaining good network quality and helping to ensure smooth service use.
[0126] Please refer to Figure 8 , which shows a structural block diagram of a device for determining network quality provided by an embodiment of the present application. Figure 8 As shown, the device may include:
[0127] The parameter acquisition module 801 is used to acquire uplink transmission parameters of data packets transmitted in the uplink and downlink transmission parameters of data packets transmitted in the downlink;
[0128] A score determination module 802, configured to determine an uplink quality score of the uplink based on the uplink transmission parameter and the downlink transmission parameter according to an uplink scoring method;
[0129] The score determination module 802 is further configured to determine the downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter according to a downlink scoring method;
[0130] The quality determination module 803 is configured to determine the network quality based on the uplink quality score and the downlink quality score.
[0131] Optionally, the score determination module 802 is further configured to:
[0132] In a case where the uplink transmission rate in the uplink transmission parameter is greater than a first rate threshold, determining the uplink quality score based on the uplink transmission parameter;
[0133] When the uplink transmission rate is less than the first rate threshold, the uplink quality score is determined based on the uplink transmission parameter and the downlink transmission parameter.
[0134] Optionally, the score determination module 802 is further configured to:
[0135] In a case where the uplink transmission delay in the uplink transmission parameter is less than a first delay threshold or greater than a second delay threshold, determining an uplink benchmark score of the uplink based on the uplink transmission delay, wherein the uplink transmission delay is negatively correlated with the uplink benchmark score;
[0136] When the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, determining the uplink benchmark score based on the downlink transmission rate in the downlink transmission parameter, and the downlink transmission rate is positively correlated with the uplink benchmark score;
[0137] The uplink quality score is determined based on the uplink benchmark score and an uplink retransmission rate in the uplink transmission parameter.
[0138] Optionally, the score determination module 802 is further configured to:
[0139] In a case where the uplink transmission rate is greater than the first rate threshold, determining the uplink benchmark score of the uplink to be the highest score;
[0140] The uplink quality score is determined based on the uplink benchmark score and an uplink retransmission rate in the uplink transmission rate.
[0141] Optionally, the score determination module 802 is further configured to:
[0142] In a case where a downlink transmission rate in the downlink transmission parameter is greater than a first rate threshold, determining the downlink quality score based on the downlink transmission parameter;
[0143] When the downlink transmission rate is less than the first rate threshold, the downlink quality score is determined based on the uplink transmission parameter and the downlink transmission parameter.
[0144] Optionally, the score determination module 802 is further configured to:
[0145] Determine a downlink benchmark score of the downlink based on an uplink transmission delay in the uplink transmission parameter, wherein the uplink transmission delay is negatively correlated with the downlink benchmark score;
[0146] The downlink quality score is determined based on the downlink benchmark score and a downlink retransmission rate in the downlink transmission parameter.
[0147] Optionally, the score determination module 802 is further configured to:
[0148] In a case where the uplink transmission rate and the downlink transmission rate in the downlink transmission parameter are less than a second rate threshold, and the uplink transmission delay in the uplink transmission parameter is greater than a third delay threshold, determining that the uplink benchmark score of the uplink is the lowest score, wherein the second rate threshold is less than the first rate threshold;
[0149] The uplink quality score is determined based on the uplink benchmark score and an uplink retransmission rate in the uplink transmission parameter.
[0150] Optionally, the score determination module 802 is further configured to:
[0151] In a case where the uplink transmission parameter indicates that there is no data packet transmission in the uplink, determining the uplink quality score to be a historical uplink quality score;
[0152] In a case where the downlink transmission parameter indicates that there is no data packet transmission in the downlink, the downlink quality score is determined to be a historical downlink quality score.
[0153] Optionally, the quality determination module 803 is further used to:
[0154] The quality level of the network quality is determined based on a lowest score between the uplink quality score and the downlink quality score.
[0155] Optionally, the device further comprises:
[0156] The calling module is used to call a network adjustment strategy when the network quality changes, and the network adjustment strategy is used to adjust the network quality.
[0157] In the embodiment of the present application, the terminal device uses the uplink transmission parameters of the uplink and the downlink transmission parameters of the downlink to evaluate the quality of the uplink and the quality of the downlink respectively, and obtains the uplink quality score and the downlink quality score, thereby determining the final network quality according to the uplink quality score and the downlink quality score. Since the uplink and downlink quality evaluation process is based on the joint evaluation of the uplink parameters and the downlink parameters, the accuracy of evaluating the actual data transmission quality of the uplink and downlink can be improved, thereby helping to improve the accuracy of determining the network quality.
[0158] It should be noted that: when the device provided in the above embodiment realizes its function, only the division of the above functional modules is used as an example. In actual application, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0159] Please refer to Fig. 9 , which shows a structural block diagram of a terminal device 900 provided by an exemplary embodiment of the present application. The terminal device 900 in the present application may include one or more of the following components: a memory 920 and a processor 910.
[0160] The processor 910 may include one or more processing cores. The processor 910 uses various interfaces and lines to connect various parts of the entire terminal device 900, and executes various functions and processes data of the terminal device 900 by running or executing instructions, programs, code sets or instruction sets stored in the memory 920, and calling data stored in the memory 920. Optionally, the processor 910 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), and programmable logic array (PLA). The processor 910 can integrate one or a combination of a central processing unit (CPU), a graphics processing unit (GPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen 930; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the processor 910, but may be implemented separately through a communication chip.
[0161] The memory 920 may include a random access memory (RAM) or a read-only memory (ROM). Optionally, the memory 920 includes a non-transitory computer-readable storage medium. The memory 920 may be used to store instructions, programs, codes, code sets or instruction sets. The memory 920 may include a storage program area and a storage data area, wherein the storage program area may store instructions for implementing an operating system, instructions for implementing at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc. The operating system may be an Android system (including a system deeply developed based on the Android system), an IOS system developed by Apple (including a system deeply developed based on the IOS system) or other systems. The storage data area may also store data (such as a phone book, audio and video data, chat record data) created by the terminal device 900 during use.
[0162] In addition, those skilled in the art can understand that the structure of the terminal device 900 shown in the above drawings does not constitute a limitation on the terminal device 900, and the terminal device may include more or fewer components than shown, or combine certain components, or arrange the components differently. For example, the terminal device 900 also includes a radio frequency circuit, a shooting component, a sensor, an audio circuit, a wireless fidelity (WiFi) component, a power supply, a Bluetooth component, and other components, which will not be described in detail here.
[0163] The present application also provides a computer-readable storage medium, in which at least one instruction, at least one program, a code set or an instruction set is stored. The at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to implement the method for determining network quality provided by any of the above exemplary embodiments.
[0164] The embodiment of the present application provides a computer program product or a computer program, which includes computer instructions stored in a computer-readable storage medium. The processor of the printing device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the method for determining network quality provided in the above optional implementation.
[0165] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.
[0166] The above description is only an optional embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for determining network quality, characterized in that: The method comprises: Acquiring uplink transmission parameters for data packet transmission in an uplink and downlink transmission parameters for data packet transmission in a downlink; When the uplink transmission rate in the uplink transmission parameter is greater than a first rate threshold, determining an uplink quality score based on the uplink transmission parameter; When the uplink transmission rate is less than the first rate threshold, and the uplink transmission delay in the uplink transmission parameter is less than the first delay threshold or greater than the second delay threshold, determining the uplink benchmark score of the uplink based on the uplink transmission delay, and the uplink transmission delay is negatively correlated with the uplink benchmark score; When the uplink transmission rate is less than the first rate threshold, and the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, the uplink benchmark score is determined based on the downlink transmission rate in the downlink transmission parameter, and the downlink transmission rate is positively correlated with the uplink benchmark score; Determining the uplink quality score based on the uplink benchmark score and the uplink retransmission rate in the uplink transmission parameter; Determining a downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter according to a downlink scoring method; Based on the uplink quality score and the downlink quality score, network quality is determined.
2. The method according to claim 1, characterized in that When the uplink transmission rate in the uplink transmission parameter is greater than the first rate threshold, determining the uplink quality score based on the uplink transmission parameter includes: In a case where the uplink transmission rate is greater than the first rate threshold, determining the uplink benchmark score of the uplink to be a highest score; The uplink quality score is determined based on the uplink benchmark score and the uplink retransmission rate in the uplink transmission parameter.
3. The method according to claim 1, characterized in that The determining the downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter in a downlink scoring manner includes: In a case where the downlink transmission rate in the downlink transmission parameter is greater than the first rate threshold, determining the downlink quality score based on the downlink transmission parameter; When the downlink transmission rate is less than the first rate threshold, the downlink quality score is determined based on the uplink transmission parameter and the downlink transmission parameter.
4. The method according to claim 3, characterized in that The determining the downlink quality score based on the uplink transmission parameter and the downlink transmission parameter includes: Determining a downlink benchmark score of the downlink based on the uplink transmission delay in the uplink transmission parameter, wherein the uplink transmission delay is negatively correlated with the downlink benchmark score; The downlink quality score is determined based on the downlink benchmark score and a downlink retransmission rate in the downlink transmission parameter.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: In a case where the uplink transmission rate and the downlink transmission rate in the downlink transmission parameter are less than a second rate threshold, and the uplink transmission delay in the uplink transmission parameter is greater than a third delay threshold, determining that the uplink benchmark score of the uplink is the lowest score, wherein the second rate threshold is less than the first rate threshold; The uplink quality score is determined based on the uplink benchmark score and the uplink retransmission rate in the uplink transmission parameter.
6. The method according to any one of claims 1 to 4, characterized in that: After acquiring the uplink transmission parameters of the data packet transmission in the uplink and the downlink transmission parameters of the data packet transmission in the downlink, the method further includes: In a case where the uplink transmission parameter indicates that there is no data packet transmission in the uplink, determining the uplink quality score to be a historical uplink quality score; In a case where the downlink transmission parameter indicates that there is no data packet transmission in the downlink, the downlink quality score is determined to be a historical downlink quality score.
7. The method according to any one of claims 1 to 4, characterized in that: The determining the network quality based on the uplink quality score and the downlink quality score includes: The quality level of the network quality is determined based on a lowest score between the uplink quality score and the downlink quality score.
8. The method according to any one of claims 1 to 4, characterized in that: After determining the network quality, the method further includes: When the network quality changes, a network adjustment strategy is called, where the network adjustment strategy is used to adjust the network quality.
9. A device for determining network quality, characterized in that: The device comprises: A parameter acquisition module, used to acquire uplink transmission parameters for data packet transmission in the uplink and downlink transmission parameters for data packet transmission in the downlink; A score determination module, configured to determine an uplink quality score based on the uplink transmission parameter when the uplink transmission rate in the uplink transmission parameter is greater than a first rate threshold; The score determination module is further used to determine the uplink benchmark score of the uplink based on the uplink transmission delay when the uplink transmission rate is less than the first rate threshold and the uplink transmission delay in the uplink transmission parameters is less than the first delay threshold or greater than the second delay threshold, and the uplink transmission delay is negatively correlated with the uplink benchmark score; determine the uplink benchmark score based on the downlink transmission rate in the downlink transmission parameters when the uplink transmission rate is less than the first rate threshold and the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, and the downlink transmission rate is positively correlated with the uplink benchmark score; determine the uplink quality score based on the uplink benchmark score and the uplink retransmission rate in the uplink transmission parameters; The score determination module is further configured to determine a downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter in a downlink scoring manner; The quality determination module is used to determine the network quality based on the uplink quality score and the downlink quality score.
10. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein the memory stores at least one program, and the at least one program is loaded and executed by the processor to implement the method for determining network quality as described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores at least one program code, and the program code is loaded and executed by a processor to implement the method for determining network quality according to any one of claims 1 to 8.
12. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the method for determining network quality according to any one of claims 1 to 8.
Citation Information
Patent Citations
Network quality monitoring method and device and computing equipment
CN113542044A