CN114745303A - Method and device for determining network quality, terminal equipment, storage medium and product - Google Patents

Method and device for determining network quality, terminal equipment, storage medium and product Download PDF

Info

Publication number
CN114745303A
CN114745303A CN202210336948.9A CN202210336948A CN114745303A CN 114745303 A CN114745303 A CN 114745303A CN 202210336948 A CN202210336948 A CN 202210336948A CN 114745303 A CN114745303 A CN 114745303A
Authority
CN
China
Prior art keywords
uplink
downlink
score
quality
transmission
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.)
Granted
Application number
CN202210336948.9A
Other languages
Chinese (zh)
Other versions
CN114745303B (en
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202210336948.9A priority Critical patent/CN114745303B/en
Publication of CN114745303A publication Critical patent/CN114745303A/en
Application granted granted Critical
Publication of CN114745303B publication Critical patent/CN114745303B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition

Landscapes

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

Abstract

本申请实施例公开一种网络质量的确定方法、装置、终端设备、存储介质及产品,涉及通信技术领域。该方法包括:获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数;按照上行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述上行链路的上行质量评分;按照下行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述下行链路的下行质量评分;基于所述上行质量评分与所述下行质量评分,确定网络质量。本申请实施例提供的方法,可提高评估上行链路与下行链路实际数据传输质量的准确性,从而有助于提高确定网络质量的准确性。

Figure 202210336948

The embodiments of the present application disclose a method, an apparatus, a terminal device, a storage medium and a product for determining network quality, which relate to the technical field of communications. The method includes: acquiring uplink transmission parameters of data packet transmission in uplink and downlink transmission parameters of data packet transmission in downlink; and determining the uplink transmission parameters based on the uplink transmission parameters and the downlink transmission parameters according to an uplink scoring method The uplink quality score of the link; according to the downlink scoring method, the downlink quality score of the downlink is determined based on the uplink transmission parameter and the downlink transmission parameter; based on the uplink quality score and the downlink quality score, the network is determined quality. The method provided by the embodiments of the present application can improve the accuracy of evaluating the actual data transmission quality of the uplink and the downlink, thereby helping to improve the accuracy of determining the network quality.

Figure 202210336948

Description

网络质量的确定方法、装置、终端设备、存储介质及产品Network quality determination method, device, terminal device, storage medium and product

技术领域technical field

本申请实施例涉及通信技术领域,特别涉及一种网络质量的确定方法、装置、终端设备、存储介质及产品。The embodiments of the present application relate to the field of communication technologies, and in particular, to a method, apparatus, terminal device, storage medium, and product for determining network quality.

背景技术Background technique

目前,用户使用移动终端进行多种数据业务,在使用移动终端过程中,网络质量的优劣将对数据业务的使用产生影响。At present, users use mobile terminals to perform various data services. In the process of using mobile terminals, the quality of the network will affect the use of data services.

相关技术中,利用数据传输过程中传输速率、延时等确定网络质量。然而,仅基于传输速率、延时等无法准确反映数据传输情况,即确定网络质量的准确性较低。In the related art, the network quality is determined by using the transmission rate and delay in the data transmission process. However, the data transmission situation cannot be accurately reflected only based on the transmission rate, delay, etc., that is, the accuracy of determining the network quality is low.

发明内容SUMMARY OF THE INVENTION

本申请实施例提供了一种网络质量的确定方法、装置、终端设备、存储介质及产品。所述技术方案如下: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:

一方面,本申请实施例提供了一种网络质量的确定方法,所述方法包括:On the one hand, an embodiment of the present application provides a method for determining network quality, the method comprising:

获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数;Obtain 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;

按照上行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述上行链路的上行质量评分;According to the uplink scoring method, the uplink quality score of the uplink is determined based on the uplink transmission parameter and the downlink transmission parameter;

按照下行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述下行链路的下行质量评分;According to the downlink scoring method, the downlink quality score of the downlink is determined based on the uplink transmission parameter and the downlink transmission parameter;

基于所述上行质量评分与所述下行质量评分,确定网络质量。Network quality is determined based on the uplink quality score and the downlink quality score.

另一方面,本申请实施例提供了一种网络质量的确定装置,所述装置包括:On the other hand, an embodiment of the present application provides an apparatus for determining network quality, and the apparatus includes:

参数获取模块,用于获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数;A parameter acquisition module, used for acquiring uplink transmission parameters of data packet transmission in the uplink and downlink transmission parameters of data packet transmission in the downlink;

评分确定模块,用于按照上行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述上行链路的上行质量评分;A score determination module, configured to determine the uplink quality score of the uplink based on the uplink transmission parameter and the downlink transmission parameter in an uplink scoring manner;

所述评分确定模块,还用于按照下行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述下行链路的下行质量评分;The score determination module is further configured to determine the downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter in a downlink scoring manner;

质量确定模块,用于基于所述上行质量评分与所述下行质量评分,确定网络质量。A quality determination module, configured to determine network quality based on the uplink quality score and the downlink quality score.

另一方面,本申请实施例提供一种终端设备,所述终端设备包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如上述方面所述的网络质量的确定方法。On the other hand, an embodiment of the present application provides a terminal device, the terminal device includes a processor and a memory, and the memory stores at least one piece of program, and the at least one piece of program is loaded and executed by the processor to realize the The method for determining network quality described in the above aspects.

另一方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如上述方面所述的网络质量的确定方法。On the other hand, an embodiment of the present application provides a computer-readable storage medium, where at least one piece of program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to implement the above aspects. A method for determining network quality.

另一方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述方面的各种可选实现方式中提供的网络质量的确定方法。On the other hand, an embodiment of the present application provides a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are 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, so that the computer device performs the network quality determination method provided in various optional implementation manners of the foregoing aspects.

本申请实施例提供的技术方案可以的有益效果至少包括:The beneficial effects of the technical solutions provided in the embodiments of the present application include at least:

本申请实施例中,终端设备利用上行链路的上行传输参数以及下行链路的下行传输参数分别对上行链路的质量与下行链路的质量进行评估,得到上行质量评分以及下行质量评分,从而根据上行质量评分与下行质量评分确定最终的网络质量。由于在进行上行链路与下行链路质量评估的过程中,均是基于上行链路参数与下行链路参数共同评估,可提高评估上行链路与下行链路实际数据传输质量的准确性,从而有助于提高确定网络质量的准确性。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, to obtain the uplink quality score and the downlink quality score, thereby The final network quality is determined according to the uplink quality score and the downlink quality score. In the process of evaluating the uplink and downlink quality, both the uplink parameters and the downlink parameters are jointly evaluated, which can improve the accuracy of evaluating the actual data transmission quality of the uplink and downlink. Helps improve the accuracy of determining network quality.

附图说明Description of drawings

为了更清楚地说明本申请实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the technical solutions in the embodiments of the present application more clearly, the following briefly introduces the drawings that are used in the description of the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained from these drawings without creative effort.

图1示出了本申请一个示例性实施例提供的实施环境的示意图;FIG. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application;

图2示出了本申请一个示例性实施例提供的网络质量的确定方法的流程图;FIG. 2 shows a flowchart of a method for determining network quality provided by an exemplary embodiment of the present application;

图3示出了本申请另一个示例性实施例提供的网络质量的确定方法的流程图;FIG. 3 shows a flowchart of a method for determining network quality provided by another exemplary embodiment of the present application;

图4示出了本申请一个示例性实施例提供的上行评分方式的示意图;FIG. 4 shows a schematic diagram of an uplink scoring method provided by an exemplary embodiment of the present application;

图5示出了本申请一个示例性实施例提供的下行评分方式的示意图;FIG. 5 shows a schematic diagram of a downlink scoring method provided by an exemplary embodiment of the present application;

图6示出了本申请另一个示例性实施例提供的网络质量的确定方法的流程图;FIG. 6 shows a flowchart of a method for determining network quality provided by another exemplary embodiment of the present application;

图7示出了本申请一个示例性实施例提供的质量评分的架构示意图;FIG. 7 shows a schematic diagram of the architecture of the quality score provided by an exemplary embodiment of the present application;

图8示出了本申请一个实施例提供的网络质量的确定装置的结构框图;8 shows a structural block diagram of an apparatus for determining network quality provided by an embodiment of the present application;

图9示出了本申请一个示例性实施例提供的终端设备的结构方框图。FIG. 9 shows a structural block diagram of a terminal device provided by an exemplary embodiment of the present application.

具体实施方式Detailed ways

为使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请实施方式作进一步地详细描述。In order to make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

图1示出了本申请一个示例性实施例提供的实施环境的示意图,该实施环境可以包括:终端设备110和服务器120。终端设备110与服务器120之间通过通信网络进行数据通信,可选地,通信网络可以是有线网络也可以是无线网络,且该通信网络可以是局域网、城域网以及广域网中的至少一种。FIG. 1 shows a schematic diagram of an implementation environment provided by an exemplary embodiment of the present application. The implementation environment may include: a terminal device 110 and a server 120 . Data communication is performed between the terminal device 110 and the server 120 through a communication network. 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.

终端设备110可以包括各种具有数据传输功能的手持设备、车载设备、可穿戴设备、计算机设备或连接到无线调制解调器的其他处理设备,以及各种形式的用户设备,移动台(Mobile Station,MS),终端设备(terminal device)等等。The terminal device 110 may include various handheld devices, vehicle-mounted devices, wearable devices, computer devices, or other processing devices connected to wireless modems with data transmission functions, as well as various forms of user equipment, such as Mobile Station (MS) , terminal device (terminal device) and so on.

服务器120可以是独立的物理服务器,也可以是多个物理服务器构成的服务器集群或者分布式系统。服务器120可向终端设备110转发来自其他设备的数据。终端设备110可与服务器120之间进行数据的双向传输。The server 120 may be an independent physical server, or may be 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 and the server 120 can perform bidirectional transmission of data.

在一种可能的实施方式中,本申请实施例提供的网络质量的确定方法可应用于图1所示的终端设备110,终端设备110可获取终端设备110向服务器120发送数据过程中的上行传输参数,以及终端设备110接收服务器120所发送数据过程中的下行传输参数,从而终端设备110可根据上行传输参数与下行传输参数确定上行链路的上行质量评分以及下行链路的下行质量评分,并基于上行质量评分与下行质量评分进行网络质量的评估。In a possible implementation, the method for determining network quality provided by the embodiments of the present application may be applied to the terminal device 110 shown in FIG. parameters, and the downlink transmission parameters in the process of the terminal device 110 receiving 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 The network quality is evaluated based on the uplink quality score and the downlink quality score.

请参考图2,其示出了本申请一个示例性实施例提供的网络质量的确定方法的流程图,本实施例以该方法由终端设备执行为例进行说明,该方法包括如下步骤:Please refer to FIG. 2, which shows a flowchart of a method for determining network quality provided by an exemplary embodiment of the present application. This embodiment is described by taking the method being executed by a terminal device as an example, and the method includes the following steps:

步骤201,获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数。Step 201: Acquire uplink transmission parameters for data packet transmission in the uplink and downlink transmission parameters for data packet transmission in the downlink.

其中,上行链路即指终端设备发送数据的通道,下行链路即指终端设备接收数据的通道。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.

本申请实施例中,终端设备将获取在上行链路中传输数据时的上行传输参数以及下行链路中传输数据时的下行传输参数,从而根据上行传输参数与下行传输参数进行网络质量的评估。In the embodiment of the present application, the terminal device will acquire 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 according to the uplink transmission parameters and the downlink transmission parameters.

在一种可能的实施方式中,终端设备在用户使用数据业务的过程中,获取上行传输参数以及下行传输参数,及时对网络质量进行评估,从而根据评估的网络质量对网络进行调整,避免网络质量较差对数据业务的影响。可选的,终端设备可以目标时长为周期进行采样,即获取目标时长内的上行传输参数以及下行传输参数。示意性的,目标时长可为1s,终端设备可以1s为周期,获取历史1s内的上行传输参数以及下行传输参数,进行网络质量的评估。In a possible implementation manner, the terminal device obtains uplink transmission parameters and downlink transmission parameters during the process of the user using the data service, and evaluates the network quality in time, so as to adjust the network according to the evaluated network quality to avoid network quality Poor impact on data services. Optionally, the terminal device may perform sampling with a target duration as a period, that is, acquire uplink transmission parameters and downlink transmission parameters within the target duration. Illustratively, the target duration may be 1 s, and the terminal device may use 1 s as a period to obtain uplink transmission parameters and downlink transmission parameters in the history of 1 s to evaluate the network quality.

步骤202,按照上行评分方式,基于上行传输参数以及下行传输参数确定上行链路的上行质量评分。Step 202: Determine the uplink quality score of the uplink based on the uplink transmission parameter and the downlink transmission parameter according to the uplink scoring method.

在一种可能的实施方式中,终端设备分别对上行链路的质量以及下行链路的质量进行评估。其中,上行链路对应有上行评分方式,上行评分方式即用于指示利用传输参数评估上行链路质量的方式。当获取到传输参数时,终端设备即可根据上行评分方式确定上行链路对应的上行质量评分。In a possible implementation manner, the terminal device evaluates the quality of the uplink and the quality of the downlink respectively. The uplink corresponds to an uplink scoring method, and the uplink scoring method is used to indicate a method for evaluating the uplink quality by using a transmission parameter. When the transmission parameters are acquired, the terminal device can determine the uplink quality score corresponding to the uplink according to the uplink scoring method.

由于上行链路的传输过程中,下行链路的传输可能将对上行链路的传输产生影响,仅基于上行链路的上行传输参数确定上行质量评分,无法准确评估上行链路的质量,因此,终端设备在确定上行质量评分时,将利用上行传输参数以及下行传输参数共同确定。During the uplink transmission process, the downlink transmission may have an impact on the uplink transmission, and the uplink quality score is determined only based on the uplink transmission parameters of the uplink, and the quality of the uplink cannot be accurately evaluated. Therefore, When the terminal equipment determines the uplink quality score, it will use the uplink transmission parameters and the downlink transmission parameters to jointly determine.

步骤203,按照下行评分方式,基于上行传输参数以及下行传输参数确定下行链路的下行质量评分。Step 203: Determine the downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter according to the downlink scoring method.

相应的,下行评分方式用于指示利用传输参数评估下行链路质量的方式。当获取到传输参数时,终端设备可根据下行评分方式确定下行链路对应的下行质量评分。Correspondingly, the downlink scoring method is used to indicate a method for evaluating downlink quality by using 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.

且在进行下行链路质量评估过程中,同样基于上行传输参数以及下行传输参数共同确定下行质量评分,确保下行质量评分的准确性。And in the process of downlink quality assessment, the downlink quality score is also jointly determined based on the uplink transmission parameter and the downlink transmission parameter to ensure the accuracy of the downlink quality score.

步骤204,基于上行质量评分与下行质量评分,确定网络质量。Step 204: Determine the network quality based on the uplink quality score and the downlink quality score.

在一种可能的实施方式中,终端设备将利用上行质量评分与下行质量评分综合进行网络质量的评估。In a possible implementation manner, the terminal device will use the uplink quality score and the downlink quality score to comprehensively evaluate the network quality.

由于在确定上行质量评分与下行质量评分的过程中,均是基于上行传输参数与下行传输参数二者共同确定,可避免上行链路与下行链路之间的数据交互过程对传输影响而造成的网络质量评估不准确的情况,有助于提高评估上行链路质量与下行链路质量的准确性,且终端设备基于上行链路质量以及下行链路质量评估当前的网络质量,可提高确定网络质量的准确性。Since both the uplink transmission parameters and the downlink transmission parameters are jointly determined in the process of determining the uplink quality score and the downlink quality score, the impact of the data interaction process between the uplink and the downlink on the transmission can be avoided. It is helpful to improve the accuracy of evaluating the uplink quality and downlink quality, and the terminal device can evaluate the current network quality based on the uplink quality and downlink quality, which can improve the determination of network quality. Accuracy of quality.

综上所述,本申请实施例中,终端设备利用上行链路的上行传输参数以及下行链路的下行传输参数分别对上行链路的质量与下行链路的质量进行评估,得到上行质量评分以及下行质量评分,从而根据上行质量评分与下行质量评分确定最终的网络质量。由于在进行上行链路与下行链路质量评估的过程中,均是基于上行链路参数与下行链路参数共同评估,可提高评估上行链路与下行链路实际数据传输质量的准确性,从而有助于提高确定网络质量的准确性。To sum up, 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 obtain the uplink quality score and Downlink quality score, so as to determine the final network quality according to the uplink quality score and the downlink quality score. In the process of evaluating the uplink and downlink quality, both the uplink parameters and the downlink parameters are jointly evaluated, which can improve the accuracy of evaluating the actual data transmission quality of the uplink and downlink. Helps improve the accuracy of determining network quality.

可选的,终端设备按照上行评分方式对上行链路质量进行评估,且按照下行评分方式对下行链路质量进行评估。下述实施例中将对上行评分方式以及下行评分方式进行示意性说明。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 will be schematically described in the following embodiments.

请参考图3,其示出了本申请另一个示例性实施例提供的网络质量的确定方法的流程图。本实施例以该方法由终端设备执行为例进行说明。该方法包括如下步骤:Please refer to FIG. 3 , which shows a flowchart of a method for determining network quality provided by another exemplary embodiment of the present application. This embodiment is described by taking the method being executed by a terminal device as an example. The method includes the following steps:

步骤301,获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数。Step 301: Obtain uplink transmission parameters for data packet transmission in the uplink and downlink transmission parameters for data packet transmission in the downlink.

在数据传输过程中,通常情况下利用传输控制协议(Transmission ControlProtocol,TCP)进行传输。在一种可能的实施方式中,上行传输参数与下行传输参数即为传输TCP数据包过程中的传输参数。In the data transmission process, the transmission is usually performed by using a Transmission Control Protocol (Transmission Control Protocol, TCP). In a possible implementation manner, the uplink transmission parameters and the downlink transmission parameters are transmission parameters in the process of transmitting TCP data packets.

在获取上行传输参数与下行传输参数的过程中,终端设备可获取TCP数据包在上行链路的上行传输速率、上行重传率以及上行传输时延;相应的,终端设备可获取TCP数据包在下行链路的下行传输速率、下行重传率以及下行传输时延。其中,传输速率即为链路中每秒传输数据包的数量;重传率即为链路中传输的正常TCP数据包的数量/(正常TCP数据包的数量+重传TCP数据包的数量);传输时延即为TCP数据包的平均往返时间(Round TripTime,RTT)。In the process of acquiring uplink transmission parameters and downlink transmission parameters, the terminal device can acquire the uplink transmission rate, uplink retransmission rate and uplink transmission delay of the TCP data packet in the uplink; correspondingly, the terminal device can acquire the TCP data packet in the uplink Downlink downlink transmission rate, downlink retransmission rate, and downlink transmission delay. 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 TripTime, RTT) of the TCP data packet.

步骤302,在上行传输参数中的上行传输速率大于第一速率阈值的情况下,基于上行传输参数确定上行质量评分。Step 302, in the case that the uplink transmission rate in the uplink transmission parameter is greater than the first rate threshold, determine the uplink quality score based on the uplink transmission parameter.

按照上行评分方式进行评分的过程中,终端设备将首先以上行传输速率为参考,进行上行链路质量的评估。可选的,上行传输参数中包含TCP数据包的上行传输速率,在上行传输速率较大的情况下,表明上行链路质量较好,可仅利用上行传输参数确定上行质量评分,而无需参考其他传输参数。在一种可能的实施方式中,该步骤可包括步骤302a-302b:In the process of scoring according to the uplink scoring method, the terminal device will firstly 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. If the uplink transmission rate is high, it indicates that the uplink quality is good, and only the uplink transmission parameter can be used to determine the uplink quality score without referring to other parameters. transfer parameters. In one possible implementation, this step may include steps 302a-302b:

步骤302a,在上行传输速率大于第一速率阈值的情况下,确定上行链路的上行基准评分为最高评分。Step 302a, when the uplink transmission rate is greater than the first rate threshold, determine that the uplink reference score of the uplink is the highest score.

在获取的上行传输速率大于第一速率阈值的情况下,确定其为较高速率场景,上行链路质量较好,因此,可确定上行链路的上行基准评分为最高评分。其中,第一速率阈值为预设值,比如,第一速率阈值为每秒传输数据包的数量为240个。在一种可能的实施方式中,可进一步利用传输速率即带宽的影响确定第一速率阈值,即第一速率阈值为阈值与带宽影响因子的乘积。示意性的,第一速率阈值为240*带宽影响因子。其中,带宽影响因子即表示传输速率对质量影响的权重占比,比如,可为1.2。When the acquired uplink transmission rate is greater than the first rate threshold, it is determined that it is a higher rate scenario, and the uplink quality is good. Therefore, it can be determined that the uplink reference score of the uplink is the highest score. The first rate threshold is a preset value, for example, the first rate threshold is 240 data packets transmitted per second. In a possible implementation manner, the influence of the transmission rate, that is, the bandwidth, may be further used to determine the first rate threshold, that is, the first rate threshold is the product of the threshold and the bandwidth influence factor. Illustratively, the first rate threshold is 240*bandwidth impact factor. Wherein, the bandwidth impact factor represents the weight ratio of the impact of the transmission rate on the quality, for example, it may be 1.2.

示意性的,如图4所示,每秒上行包数即为上行传输速率,在每秒上行包数>240*带宽影响因子的情况下,确定为高速率场景,上行基准评分为100。Illustratively, as shown in Figure 4, the number of uplink packets per second is the uplink transmission rate. When the number of uplink packets per second > 240*bandwidth impact factor, it is determined as a high-rate scenario, and the uplink benchmark score is 100.

步骤302b,基于上行基准评分与上行传输速率中的上行重传率确定上行质量评分。Step 302b: Determine the uplink quality score based on the uplink reference score and the uplink retransmission rate in the uplink transmission rate.

由于在TCP数据包传输过程中,可能存在数据包传输失败的情况,该种情况下将进行TCP数据包的重传,而当TCP数据包重传率较高时,表明网络质量较差,因此,在进行质量评估时,需考虑TCP重传率。在一种可能的实施方式中,终端设备中预先设备有重传率影响因子,其表示对质量评估的影响权重。示意性的,重传率影响因子可为0.8。当获取到重传率后,可基于基准评分、重传率与重传率影响因子三者的乘积确定重传率影响评分,从而可根据基准评分与重传率影响评分确定最终的质量评分。In the process of TCP data packet transmission, there may be a situation that the data packet transmission fails, in this case, the TCP data packet will be retransmitted, and when the TCP data packet retransmission rate is high, it indicates that the network quality is poor, so , the TCP retransmission rate needs to be considered when evaluating the quality. In a possible implementation manner, a retransmission rate influencing factor is pre-installed in the terminal device, which represents the influence weight on the quality evaluation. Illustratively, the retransmission rate influencing 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 benchmark score, the retransmission rate, and the retransmission rate impact factor, so that the final quality score can be determined according to the benchmark score and the retransmission rate impact score.

即上行质量评分=上行基准评分-上行基准评分*上行重传率*重传率影响因子。示意性的,如图4所示,在每秒上行包数>240*带宽影响因子的情况下,上行质量评分=100-100*重传率*重传率影响因子。That is, uplink quality score = uplink benchmark score - uplink benchmark score * uplink retransmission rate * retransmission rate impact factor. Illustratively, as shown in FIG. 4 , when the number of uplink packets per second>240*bandwidth impact factor, the uplink quality score=100-100*retransmission rate*retransmission rate impact factor.

步骤303,在上行传输速率小于第一速率阈值的情况下,基于上行传输参数以及下行传输参数确定上行质量评分。Step 303, in the case that the uplink transmission rate is less than the first rate threshold, determine the uplink quality score based on the uplink transmission parameter and the downlink transmission parameter.

可选的,在上行传输速率小于第一速率阈值的情况下,确定为较低速率场景。该种情况下,需进一步基于其他传输参数进行上行链路质量的评估。可选的,在上行传输速率小于第一速率阈值的情况下,根据其他传输参数进行质量评估可包括如下情况:Optionally, in the case that the uplink transmission rate is less than the first rate threshold, it is determined as a lower rate scenario. In this case, it is necessary to further evaluate the uplink quality based on other transmission parameters. Optionally, in the case that the uplink transmission rate is less than the first rate threshold, performing quality assessment according to other transmission parameters may include the following situations:

一、在上行传输参数中上行传输时延小于第一时延阈值或大于第二时延阈值的情况下,基于上行传输时延确定上行链路的上行基准评分,上行传输时延与上行基准评分呈负相关关系。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, determine the uplink benchmark score of the uplink based on the uplink transmission delay, the uplink transmission delay and the uplink benchmark score negatively correlated.

当上行传输速率小于第一速率阈值时,终端设备进一步根据上行传输时延进行质量的评估。其中,第一时延阈值可为预先设定的阈值。示意性的,第一时延阈值可为400ms。在上行传输时延小于第一时延阈值的情况下,表明传输时延较小,可仅基于上行传输时延确定上行基准评分,其中,在上行传输时延越小的情况下,上行基准评分越高。When the uplink transmission rate is less than the first rate threshold, the terminal device further evaluates the quality according to the uplink transmission delay. The first delay threshold may be a preset threshold. Illustratively, 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 can be determined only based on the uplink transmission delay. In the case where the uplink transmission delay is smaller, the uplink benchmark score higher.

进一步的,在上行传输时延小于第一时延阈值的情况下,可对传输时延进行区间划分。在上行传输时延小于第四时延阈值的情况下,可确定上行基准评分为第一等级评分即最高评分。示意性的,第四时延阈值为200ms,在上行传输时延小于200ms的情况下,确定上行基准评分为100。而在上行传输时延大于第四时延阈值且小于第五时延阈值的情况下,确定上行基准评分为第二等级评分,其低于第一等级评分。其中,第四时延阈值小于第五时延阈值,而第五时延阈值小于第一时延阈值。示意性的,第五时延阈值为300ms,在上行传输时延大于200ms且小于300ms的情况下,确定上行基准评分为80。当上行传输时延大于第五时延阈值且小于第一时延阈值的情况下,确定上行基准评分为第三等级评分,其小于第二等级评分。示意性的,在上行传输时延大于300ms且小于400ms的情况下,确定上行基准评分为70。Further, in the case that the uplink transmission delay is less than the first delay threshold, the transmission delay may be divided into intervals. In the case that the uplink transmission delay is less than the fourth delay threshold, the uplink reference score may be determined as the first-level score, that is, the highest score. Illustratively, 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 reference score is determined to be the second-level score, which is lower than the first-level score. Wherein, the fourth delay threshold is smaller than the fifth delay threshold, and the fifth delay threshold is smaller than the first delay threshold. Illustratively, 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 reference score is determined to be a third-level score, which is smaller than the second-level score. Illustratively, when the uplink transmission delay is greater than 300ms and less than 400ms, the uplink benchmark score is determined to be 70.

除此之外,在上行传输时延大于第二时延阈值的情况下,确定时延过大,表明网络质量较差,因此,也可直接基于上行传输时延确定上行基准评分。在上行传输时延大于第二时延阈值的情况下,终端设备确定上行基准评分为第四等级评分,即最低评分。示意性的,第二时延阈值可为1000ms,在上行传输时延大于1000ms时,确定上行基准评分为59。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 directly determined based on the uplink transmission delay. In the case that the uplink transmission delay is greater than the second delay threshold, the terminal device determines that the uplink benchmark score is the fourth-level score, that is, the lowest score. Illustratively, the second delay threshold may be 1000ms, and when the uplink transmission delay is greater than 1000ms, the uplink benchmark score is determined to be 59.

二、在上行传输时延大于第一时延阈值且小于第二时延阈值的情况下,基于下行传输参数中下行传输速率确定上行基准评分,下行传输速率与上行基准评分呈正相关关系。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 parameter, and the downlink transmission rate is positively correlated with the uplink benchmark score.

在上行传输时延大于第一时延阈值且小于第二时延阈值的情况下,表明传输时延较大。该种情况下,一方面可能由于网络原因造成时延较大,而另一方面,传输时延即为TCP包的RTT,其中,RTT即为数据包发送至接收到确认字符(Acknowledge character,ACK)的时间。ACK数据即由接收端设备向终端设备发送。当下行链路中传输数据包较多时,ACK数据传输较慢,相应的,RTT较大。因此,在下行链路中传输数据包数量较多时,可能造成上行传输时延较大,而并未网络原因。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 relatively 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 the RTT is the acknowledgement character (Acknowledge character, ACK) when the data packet is sent to the reception. )time. The ACK data is sent by the receiving end device to the terminal device. When more data packets are transmitted in the downlink, the ACK data transmission is slower, 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 relatively large, which is not caused by the network.

因此,在一种可能的实施方式中,在上行传输时延大于第一时延阈值且小于第二时延阈值的情况下,终端设备还需继续以下行传输时延即下行链路中每秒传输数据包的数量为参考,进行上行链路质量的评估,确定是否由于网络原因造成的上行传输时延较大。其中,下行传输速率与上行基准评分呈正相关关系。在下行传输速率越大的情况下,表明下行链路中传输数据包数量较多,表明可能并非由网络原因造成的传输时延较大,相应上行链路对应的上行基准评分越高。Therefore, in a possible implementation manner, when the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, the terminal device still needs to continue the downlink transmission delay, that is, every second in the downlink The number of transmitted data packets is used as a reference, and the uplink quality is evaluated to 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. In the case of a larger downlink transmission rate, it indicates that there are more data packets transmitted in the downlink, indicating that the transmission delay may not be caused by network reasons, and the corresponding uplink benchmark score corresponding to the uplink is higher.

可选的,在下行传输速率大于第三速率阈值的情况下,确定上行基准评分为第一等级评分。其中,第三速率阈值大于第一速率阈值,比如,第三速率阈值为每秒传输数据包的数量为400个。在下行链路对应的每秒数据包数量即每秒下行包数大于400的情况下,确定上行基准评分为100。Optionally, in the case that the downlink transmission rate is greater than the third rate threshold, the uplink reference score is determined as the first grade score. The third rate threshold is greater than the first rate threshold, for example, the third rate threshold is 400 data packets transmitted per second. When the number of data packets per second corresponding to the downlink, that is, the number of downlink packets per second is greater than 400, the uplink benchmark score is determined to be 100.

可选的,在下行传输速率大于第一速率阈值小于第三速率阈值的情况下,确定上行基准评分为第二等级评分。比如,在每秒下行包数大于240且小于400的情况下,确定上行基准评分为80。Optionally, when the downlink transmission rate is greater than the first rate threshold and less than the third rate threshold, the uplink reference score is determined to be the second grade 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.

可选的,在下行传输速率小于第一速率阈值的情况下,确定上行基准评分为第四等级评分。比如,在每秒下行包数小于240的情况下,确定上行基准评分为59。Optionally, in the case that the downlink transmission rate is less than the first rate threshold, the uplink reference score is determined to be the fourth grade score. For example, when the number of downlink packets per second is less than 240, the uplink benchmark score is determined to be 59.

在一种可能的实施方式中,基于上行基准评分与上行传输参数中上行重传率,确定上行质量评分。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 parameter.

当上行传输速率小于第一速率阈值时,终端设备根据上行传输时延与下行传输速率确定得到上行基准评分,之后,再基于上行重传率,确定最终的上行质量评分。该方式可参考上述步骤302b,在此不再赘述。When the uplink transmission rate is less than the first rate threshold, the terminal device determines and obtains the uplink reference score according to the uplink transmission delay and the downlink transmission rate, and then determines the final uplink quality score based on the uplink retransmission rate. For this method, reference may be made to the above-mentioned step 302b, which will not be repeated here.

示意性的,如图4所示,在上行传输速率即每秒上行包数≤240*带宽影响因子的情况下,再基于上行传输时延即上行RTT进行二次判断。在上行RTT<200ms的情况下,确定上行质量评分为100-100*重传率*重传率影响因子;在上行200ms<上行RTT<300ms的情况下,确定上行质量评分为80-80*重传率*重传率影响因子;在300ms<上行RTT<400ms的情况下,确定上行质量评分为70-70*重传率*重传率影响因子;在上行RTT>1000ms的情况下,确定上行质量评分为59-59*重传率*重传率影响因子。而在400ms<上行RTT<1000ms的情况下,需进一步根据下行传输速率即每秒下行包数进行判断。当每秒下行包数>400的情况下,确定上行质量评分为100-100*重传率*重传率影响因子;在240<每秒下行包数<400的情况下,确定上行质量评分为80-80*重传率*重传率影响因子;在每秒下行包数<240的情况下,确定上行质量评分为59-59*重传率*重传率影响因子。Illustratively, as shown in FIG. 4 , when the uplink transmission rate, that is, the number of uplink packets per second is less than or equal to 240* the bandwidth impact factor, a second judgment is made based on the uplink transmission delay, that is, the uplink RTT. In the case of uplink RTT<200ms, determine the uplink quality score as 100-100*retransmission rate*retransmission rate impact factor; in the case of uplink 200ms<uplink RTT<300ms, determine the uplink quality score as 80-80*retransmission rate Transmission rate*retransmission rate impact factor; in the case of 300ms<uplink RTT<400ms, determine the uplink quality score as 70-70*retransmission rate*retransmission rate impact factor; in the case of uplink RTT>1000ms, determine the uplink quality score The quality score is 59-59*retransmission rate*retransmission rate impact factor. In the case of 400ms<uplink RTT<1000ms, it is necessary to further judge according to the downlink transmission rate, that is, the number of downlink packets per second. When the number of downlink packets per second > 400, determine the uplink quality score as 100-100 * retransmission rate * retransmission rate impact factor; in the case of 240 < number of downlink packets per second < 400, determine the uplink quality score as 80-80*retransmission rate*retransmission rate impact factor; when the number of downlink packets per second is less than 240, determine the uplink quality score as 59-59*retransmission rate*retransmission rate impact factor.

在上行传输速率小于第一速率阈值的情况下,可能存在上行传输速率很小的情况,该种情况下,需进一步获取其他传输参数进行质量评估,该种情况下,确定上行质量评分可包括如下步骤:When the uplink transmission rate is less than the first rate threshold, there may be a situation where the uplink transmission rate is 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: step:

步骤一、在上行传输速率以及下行传输参数中下行传输速率小于第二速率阈值,且上行传输参数中上行传输时延大于第三时延阈值的情况下,确定上行链路的上行基准评分为最低评分,其中,第二速率阈值小于第一速率阈值。Step 1. When the uplink transmission rate and the downlink transmission parameter are less than the second rate threshold, and the uplink transmission delay in the uplink transmission parameter is greater than the third delay threshold, determine that the uplink benchmark score of the uplink is the lowest score, where the second rate threshold is less than the first rate threshold.

在一种可能的实施方式中,当上行传输速率小于第二速率阈值的情况下,确定上行链路中传输数据包数量较少。因此,第二速率阈值远小于第一速率阈值,第二速率阈值可为每秒传输数据包数量为10。当确定上行传输速率小于第二速率阈值的情况下,需进一步确定下行传输速率,在下行传输速率同样小于第二速率阈值的情况下,表明当前数据包数量传输较少,在当前业务场景下无需传输较多数据包,比如,游戏业务场景。该种场景下,通常传输时延较低,比如,在100ms左右。若传输时延较高,则表明网络质量较差,因此,确定上行传输速率以及下行传输速率均小于第二速率阈值后,进一步根据上行传输时延确定上行基准评分。在上行传输时延大于第三时延阈值的情况下,确定当前传输速率低,上行基准评分为第四等级评分,即最低评分。比如,第三时延阈值为170ms。In a possible implementation manner, 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 less. Therefore, the second rate threshold is much smaller than the first rate threshold, and the second rate threshold may be 10 packets 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. In the case that 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 no need for the current business scenario. Transmit more data packets, for example, in game business scenarios. In this scenario, the transmission delay is usually low, for example, about 100ms. If the transmission delay is high, it indicates that the network quality is poor. Therefore, after it is determined that both the uplink transmission rate and the downlink transmission rate are less than the second rate threshold, the uplink benchmark score is further determined according to the uplink transmission delay. In the case that 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, that is, the lowest score. For example, the third delay threshold is 170ms.

步骤二、基于上行基准评分与上行传输参数中上行重传率,确定上行质量评分。Step 2: Determine the uplink quality score based on the uplink benchmark score and the uplink retransmission rate in the uplink transmission parameter.

在得到上行基准评分后,同样利用上行重传率,确定上行质量评分。该方式可参考上述步骤,在此不再赘述。After the uplink benchmark score is obtained, the uplink retransmission rate is also used to determine the uplink quality score. For this method, reference may be made to the above steps, which will not be repeated here.

示意性的,如图4所示,在每秒上行包数<10&&每秒下行包数<10&&上行RTT>170ms的情况下,确定上行质量评分为59-59*重传率*重传率影响因子。Schematically, as shown in Figure 4, in the case that the number of uplink packets per second<10&&the number of downlink packets per second<10&&uplink RTT>170ms, determine the uplink quality score as 59-59*retransmission rate*retransmission rate impact factor.

步骤304,在下行传输参数中下行传输速率大于第一速率阈值的情况下,基于下行传输参数确定下行质量评分。Step 304, in the case that the downlink transmission rate in the downlink transmission parameter is greater than the first rate threshold, determine the downlink quality score based on the downlink transmission parameter.

上述步骤中对上行评分方式进行示例性说明。下面将对下行评分方式进行示例性说明。与上行评分方式相同的是,终端设备首先以下行传输速率为参考,进行下行链路质量的评估。在获取的下行传输速率大于第一速率阈值的情况下,终端设备确定其为较高速率场景,下行链路质量较好,因此,可确定下行链路的下行基准评分为最高评分。In the above steps, the uplink scoring method is exemplarily described. The downlink scoring method will be exemplarily described below. Similar to the uplink scoring method, the terminal device firstly 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 good, so the downlink reference score of the downlink can be determined to be the highest score.

在确定下行基准评分后,进一步根据下行重传率确定得到下行质量评分。下行质量评分=下行基准评分-下行基准评分*下行重传率*重传率影响因子。After the downlink benchmark score is determined, 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.

示意性的,如图5所示,在每秒下行包数>240*带宽影响因子的情况下,确定为高速率场景,下行基准评分为100,下行质量评分为100-100*重传率*重传率影响因子。Illustratively, as shown in Figure 5, when the number of downlink packets per second > 240*bandwidth impact factor, it is determined as a high-rate scenario, the downlink benchmark score is 100, and the downlink quality score is 100-100*retransmission rate* Retransmission rate impact factor.

步骤305,在下行传输速率小于第一速率阈值的情况下,基于上行传输参数以及下行传输参数确定下行质量评分。Step 305: In the case that the downlink transmission rate is less than the first rate threshold, determine the downlink quality score based on the uplink transmission parameter and the downlink transmission parameter.

而在下行传输速率小于第一速率阈值的情况下,确定为较低速率场景,终端设备需进一步利用上行传输参数与下行传输参数确定下行质量评分。该方式可包括如下步骤:In the case where the downlink transmission rate is less than the first rate threshold, it is determined as a lower rate scenario, and the terminal device needs to further use the uplink transmission parameter and the downlink transmission parameter to determine the downlink quality score. This approach may include the following steps:

步骤305a,基于上行传输参数中上行传输时延确定下行链路的下行基准评分,上行传输时延与下行基准评分呈负相关关系。Step 305a: Determine the downlink reference score of the downlink based on the uplink transmission delay in the uplink transmission parameter, and the uplink transmission delay and the downlink reference score have a negative correlation.

在下行传输速率小于第一速率阈值的情况下,需进一步根据传输时延进行判断。然而,下行链路的数据传输过程中,终端设备为接收端,无法确认实际发送时间,即无法确定准确的下行传输时延(下行RTT),因此,在一种可能的实施方式中,在下行传输速率小于第一速率阈值的情况下,终端设备根据上行传输时延进一步进行下行链路的质量评估。在上行传输时延越大的情况下,下行基准评分越低。When the downlink transmission rate is less than the first rate threshold, it is necessary to further judge according to the transmission delay. However, in the process of downlink data transmission, the terminal device is the receiver and cannot confirm the actual sending time, that is, the exact downlink transmission delay (downlink RTT) cannot be determined. Therefore, in a possible implementation, in the downlink When the transmission rate is less than the first rate threshold, the terminal device further performs downlink quality assessment according to the uplink transmission delay. In the case of the longer uplink transmission delay, the lower the downlink benchmark score is.

可选的,在上行传输时延大于第一时延阈值的情况下,确定下行基准评分为第四等级评分;在上行传输时延小于第一时延阈值的情况下,确定下行基准评分为第一等级评分。Optionally, in the case that the uplink transmission delay is greater than the first delay threshold, the downlink benchmark score is determined to be the fourth-level score; in the case that the uplink transmission delay is less than the first delay threshold, the downlink benchmark score is determined to be the fourth-level score. One grade rating.

步骤305b,基于下行基准评分与下行传输参数中的下行重传率,确定下行质量评分。Step 305b: Determine the downlink quality score based on the downlink reference score and the downlink retransmission rate in the downlink transmission parameter.

当确定下行基准评分后,进一步根据下行重传率确定下行质量评分。After the downlink benchmark score is determined, the downlink quality score is further determined according to the downlink retransmission rate.

示意性的,如图5所示,在每秒下行包数≤240*带宽影响因子的情况下,若上行RTT>400ms,则确定下行质量评分为59-59*重传率*重传率影响因子;若上行RTT≤400ms,则确定下行质量评分为100-100*重传率*重传率影响因子(图中未示出)。Illustratively, as shown in Figure 5, in the case that the number of downlink packets per second is less than or equal to 240*bandwidth impact factor, if the uplink RTT>400ms, the downlink quality score is determined to be 59-59*retransmission rate*retransmission rate impact factor; if the uplink RTT≤400ms, the downlink quality score is determined to be 100-100*retransmission rate*retransmission rate impact factor (not shown in the figure).

在数据传输过程中,存在丢包情况,每当出现丢包情况时,需进行数据包的重传,将增加传输时延,在另一种可能的实施方式中,即可根据丢包数进一步进行质量评估。该种方式下,下行质量评分=下行基准评分-2*丢包数*RTT/1000。In the process of data transmission, there is a packet loss situation. Whenever a packet loss situation occurs, the data packet needs to be retransmitted, which will increase the transmission delay. Conduct quality assessments. In this way, the downlink quality score=downlink benchmark score-2*packet loss*RTT/1000.

如图5所示,在上行RTT≤400ms的情况下,下行质量评分为100-2*丢包数*RTT/1000。As shown in Figure 5, when the uplink RTT≤400ms, the downlink quality score is 100-2*packet loss*RTT/1000.

步骤306,基于上行质量评分与下行质量评分中最低评分,确定网络质量的质量等级。Step 306: Determine the quality level of the network quality based on the lowest score among the uplink quality score and the downlink quality score.

在得到上行质量评分与下行质量评分后,可根据上行质量评分与下行质量评分中最低评分,确定网络质量等级。其中,终端设备中预先存储有不同评分与质量等级的对应关系,当确定最低评分后,可将最低评分对应的质量等级确定为当前网络质量的质量等级。After the uplink quality score and the downlink quality score are obtained, the network quality level can be determined according to the lowest score among the uplink quality score and the downlink quality score. Wherein, the corresponding relationship between different scores and quality levels is pre-stored in the terminal device, and after the lowest score is determined, the quality level corresponding to the lowest score may be determined as the quality level of the current network quality.

示意性的,评分与质量等级的对应关系如表1所示:Illustratively, the corresponding relationship between scores and quality levels is shown in Table 1:

表1Table 1

评分score 质量等级quality level 80-10080-100 excellent 60-8060-80 中等medium 40-6040-60 较差poor <40<40 Difference

结合表1示例,当确定上行质量评分为90,而下行质量评分为70时,则根据下行质量评分70确定网络质量的质量等级,质量等级为中等。With reference to the example in Table 1, when it is determined that the uplink quality score is 90 and the downlink quality score is 70, the quality level of the network quality is determined according to the downlink quality score of 70, and the quality level is medium.

本实施例中,首先以传输速率为基准,进行链路质量的评估,在传输速率较大的情况下,则无需基于其他参数进行评估,而在传输速率较小的情况下,进一步基于传输时延进行判断,可提高质量评估的准确性。且首先确定基准评分,再考虑重传率对评分的影响,得到最终的质量评分,可进一步提高质量评估的准确性。In this embodiment, the link quality is first evaluated based on the transmission rate. When the transmission rate is high, it is not necessary to perform the evaluation based on other parameters. Delaying judgment can improve the accuracy of quality assessment. And first determine the benchmark score, and then consider the impact of the retransmission rate on the score to obtain the final quality score, which can further improve the accuracy of the quality evaluation.

且本实施例中,在上行链路质量评估过程中,在上行传输时延较大的情况下,进一步根据下行传输速率进行上行链路的评估,避免在时延较大的情况下,直接评估质量较差,可提高质量评估的准确性。且在下行链路质量评估过程中,采用上行传输时延进行评估,避免使用不准确的下行传输时延进行质量评估,可提高质量评估的准确性。And in this embodiment, in the uplink quality evaluation process, in the case of a large uplink transmission delay, the uplink evaluation is further carried out according to the downlink transmission rate, so as to avoid direct evaluation in the case of a large delay. Poor quality, which improves the accuracy of quality assessment. In addition, in the process of downlink quality evaluation, the uplink transmission delay is used for evaluation, so as to avoid using inaccurate downlink transmission delay for quality evaluation, which can improve the accuracy of quality evaluation.

在一种可能的情况下,终端设备获取的传输参数指示在当前采样期内无数据包传输,该种情况下,将不进行质量评估。下面将以示例性实施例进行说明。In a possible case, the transmission parameter acquired by the terminal device indicates that there is no data packet transmission within the current sampling period, and in this case, no quality evaluation will be performed. Exemplary embodiments will be described below.

请参考图6,其示出了本申请另一个示例性实施例提供的网络质量的确定方法的流程图。本实施例以该方法由终端设备执行为例进行说明。该方法包括如下步骤:Please refer to FIG. 6 , which shows a flowchart of a method for determining network quality provided by another exemplary embodiment of the present application. This embodiment is described by taking the method being executed by a terminal device as an example. The method includes the following steps:

步骤601,获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数。Step 601: Obtain uplink transmission parameters for data packet transmission in the uplink and downlink transmission parameters for data packet transmission in the downlink.

可选的,终端设备中设置有网络控制模块、TCP评分处理模块、TCP评分控制模块以及TCP统计评分模块。其中,网络控制模块用于进行网络质量的控制,其可对网络进行调整,从而改变网络质量。TCP评分处理模块则可与网络控制模块进行交互,且可根据评估得到的上行质量评分与下行质量评分确定网络质量。TCP控制模块用于控制是否启用或关闭TCP评分功能。TCP统计评分模块则用于根据传输参数确定上行质量评分以及下行质量评分。Optionally, the terminal device is provided with a network control module, a TCP scoring processing module, a TCP scoring control module, and a TCP statistics scoring module. Among them, the network control module is used to control the network quality, which can adjust the network to change the network quality. The TCP score processing module can interact with the network control module, and can determine the network quality according to the uplink quality score and the downlink quality score obtained by the evaluation. 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.

在一种可能的实施方式中,在TCP统计评分模块接收到TCP评分控制模块发送的评分开启通知时,则每隔目标周期获取上行传输参数与下行传输参数。In a possible implementation manner, when the TCP statistics scoring module receives the scoring opening notification sent by the TCP scoring control module, it acquires the uplink transmission parameters and the downlink transmission parameters every target period.

步骤602,在上行传输参数指示上行链路中不存在数据包传输的情况下,确定上行质量评分为历史上行质量评分。Step 602, in the case that the uplink transmission parameter indicates that there is no data packet transmission in the uplink, determine the uplink quality score as the historical uplink quality score.

在一种可能的实施方式中,在上行传输参数中上行传输速率为0,即每秒上行包数为0的情况下,确定当前上行链路中不存在数据包传输的情况,此时,TCP统计评分模块不进行上行链路的质量评估,而将上一周期确定的历史上行质量评分确定为上行质量评分。In a possible implementation, when the uplink transmission rate in the uplink transmission parameter is 0, that is, when 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 The statistical scoring module does not perform uplink quality evaluation, but determines the historical uplink quality score determined in the previous cycle as the uplink quality score.

如图4所示,在每秒上行包数=0的情况下,保持历史上行质量评分。As shown in FIG. 4 , in the case that the number of uplink packets per second = 0, the historical uplink quality score is maintained.

而若存在数据包传输,TCP统计评分模块则按照上行评分方式确定上行质量评分并进行存储。If there is data packet transmission, the TCP statistics scoring module determines the upstream quality score according to the upstream scoring method and stores it.

步骤603,在下行传输参数指示下行链路中不存在数据包传输的情况下,确定下行质量评分为历史下行质量评分。Step 603, in the case that the downlink transmission parameter indicates that there is no data packet transmission in the downlink, determine the downlink quality score as the historical downlink quality score.

相应的,在下行传输速率为0,即每秒下行包数为0的情况下,确定当前下行链路中不存在数据包传输的情况,此时,TCP统计评分模块将上一周期确定的历史下行质量评分确定为下行质量评分。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. The downlink quality score is determined as the downlink quality score.

如图5所示,在每秒下行包数=0的情况下,保持历史下行质量评分。As shown in FIG. 5 , in the case that the number of downlink packets per second = 0, the historical downlink quality score is maintained.

而若存在数据包传输,TCP统计评分模块则按照下行评分方式确定下行质量评分并进行存储。If there is data packet transmission, the TCP statistical scoring module determines the downstream quality score according to the downstream scoring method and stores it.

步骤604,基于上行质量评分与下行质量评分,确定网络质量。Step 604: Determine the network quality based on the uplink quality score and the downlink quality score.

当TCP统计评分模块确定上行质量评分与下行质量评分后,将进行评分上报,上报至TCP评分控制模块,TCP评分控制模块将评分转发至TCP评分处理模块,TCP评分处理模块根据上行质量评分与下行质量评分,确定网络质量。After the TCP statistic and scoring module determines the uplink quality score and the downlink quality score, it will report the score to the TCP score control module. The TCP score control module forwards the score to the TCP score processing module. Quality Score, which determines network quality.

步骤605,在网络质量发生变化的情况下,调用网络调整策略,网络调整策略用于调整网络质量。Step 605 , in the case that the network quality changes, the network adjustment policy is invoked, and the network adjustment policy is used to adjust the network quality.

在一种可能的实施方式中,当TCP评分处理模块确定网络质量相较于历史网络质量发生变化后,即将当前网络质量上报至网络控制模块,网络控制模块调用网络调整策略,根据网络质量的变化情况进行网络质量的调整。比如,当网络控制模块确定网络质量变差时,可对当前网络进行调整。In a possible implementation, when the TCP scoring processing module determines that the network quality has changed compared with the historical network quality, the current network quality is reported to the network control module, and the network control module invokes the network adjustment strategy, according to the change of the network quality. Adjust the network quality according to the situation. For example, when the network control module determines that the network quality is deteriorated, the current network can be adjusted.

可选的,当TCP评分处理模块确定评分相较于上一周期的评分发生变化时,则进行网络质量的上报。或者,在另一种可能的实施方式下,为避免频繁上报,网络质量等级相较于上一周期的网络质量等级发生变化时,再进行网络质量的上报,使网络控制模块调用网络调整策略。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. Or, 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 invokes the network adjustment policy.

如图7所示,其示出了质量评分的架构示意图。在网络控制模块701需进行网络质量的评估时,将注册网络质量评估策略,TCP评分处理模块702接收到注册信息后,进行TCP评分订阅,即通知TCP评分控制模块703开启TCP评分功能,TCP评分控制模块703向TCP统计评分模块704发送TCP评分启动通知,在TCP统计评分模块704确定上行质量评分以及下行质量评分后,将进行TCP评分上报,TCP评分控制模块703接收到上报的评分后,将评分通知至TCP评分处理模块702,TCP评分处理模块702根据评分确定网络质量,在网络质量发生变化的情况下,向网络控制模块701上报网络质量。网络控制模块701根据网络质量变化情况,调用网络调整策略进行网络质量的调整。As shown in Figure 7, it shows a schematic diagram of the architecture of quality scoring. When the network control module 701 needs to evaluate the network quality, it will register the network quality evaluation policy. After receiving the registration information, the TCP scoring processing module 702 performs a TCP scoring subscription, that is, notifies the TCP scoring control module 703 to enable the TCP scoring function, and the TCP scoring The control module 703 sends a TCP score start notification to the TCP statistics scoring module 704. After the TCP statistics 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 score control module 703 will The score is notified to the TCP score processing module 702, and the TCP score 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 invokes a network adjustment policy to adjust the network quality according to the change of the network quality.

本实施例中,在确定网络质量发生变化后,可及时根据网络质量的变化情况进行网络质量的调整,从而保持良好的网络质量,有助于确保业务使用流畅性。In this embodiment, after it is determined that the network quality changes, the network quality can be adjusted according to the change of the network quality in time, so as to maintain a good network quality and help ensure the smoothness of service use.

请参考图8,其示出了本申请一个实施例提供的网络质量的确定装置的结构框图。如图8所示,该装置可以包括:Please refer to FIG. 8 , which shows a structural block diagram of an apparatus for determining network quality provided by an embodiment of the present application. As shown in Figure 8, the apparatus may include:

参数获取模块801,用于获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数;A parameter acquisition module 801, configured to acquire uplink transmission parameters of data packet transmission in uplink and downlink transmission parameters of data packet transmission in downlink;

评分确定模块802,用于按照上行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述上行链路的上行质量评分;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 in an uplink scoring manner;

所述评分确定模块802,还用于按照下行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述下行链路的下行质量评分;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 in a downlink scoring manner;

质量确定模块803,用于基于所述上行质量评分与所述下行质量评分,确定网络质量。A quality determination module 803, configured to determine network quality based on the uplink quality score and the downlink quality score.

可选的,所述评分确定模块802,还用于:Optionally, the score determination module 802 is further configured to:

在所述上行传输参数中的上行传输速率大于第一速率阈值的情况下,基于所述上行传输参数确定所述上行质量评分;In the case that 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;

在所述上行传输速率小于所述第一速率阈值的情况下,基于所述上行传输参数以及所述下行传输参数确定所述上行质量评分。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.

可选的,所述评分确定模块802,还用于:Optionally, the score determination module 802 is further configured to:

在所述上行传输参数中上行传输时延小于第一时延阈值或大于第二时延阈值的情况下,基于所述上行传输时延确定所述上行链路的上行基准评分,所述上行传输时延与所述上行基准评分呈负相关关系;In the case that the uplink transmission delay in the uplink transmission parameter is less than the first delay threshold or greater than the second delay threshold, the uplink reference score of the uplink is determined based on the uplink transmission delay, and the uplink transmission The delay is negatively correlated with the uplink benchmark score;

在所述上行传输时延大于所述第一时延阈值且小于所述第二时延阈值的情况下,基于所述下行传输参数中下行传输速率确定所述上行基准评分,所述下行传输速率与所述上行基准评分呈正相关关系;When the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, the uplink reference score is determined based on the downlink transmission rate in the downlink transmission parameter, and the downlink transmission rate is positively correlated with the upward benchmark score;

基于所述上行基准评分与所述上行传输参数中上行重传率,确定所述上行质量评分。The uplink quality score is determined based on the uplink reference score and the uplink retransmission rate in the uplink transmission parameter.

可选的,所述评分确定模块802,还用于:Optionally, the score determination module 802 is further configured to:

在所述上行传输速率大于所述第一速率阈值的情况下,确定所述上行链路的上行基准评分为最高评分;In the case that the uplink transmission rate is greater than the first rate threshold, determining that the uplink reference score of the uplink is the highest score;

基于所述上行基准评分与所述上行传输速率中的上行重传率确定所述上行质量评分。The uplink quality score is determined based on the uplink reference score and the uplink retransmission rate in the uplink transmission rate.

可选的,所述评分确定模块802,还用于:Optionally, the score determination module 802 is further configured to:

在所述下行传输参数中下行传输速率大于第一速率阈值的情况下,基于所述下行传输参数确定所述下行质量评分;In the case that the downlink transmission rate in the downlink transmission parameter is greater than the first rate threshold, determine 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.

可选的,所述评分确定模块802,还用于:Optionally, the score determination module 802 is further configured to:

基于所述上行传输参数中上行传输时延确定所述下行链路的下行基准评分,所述上行传输时延与所述下行基准评分呈负相关关系;The downlink reference score of the downlink is determined based on the uplink transmission delay in the uplink transmission parameter, and the uplink transmission delay is negatively correlated with the downlink reference score;

基于所述下行基准评分与所述下行传输参数中的下行重传率,确定所述下行质量评分。The downlink quality score is determined based on the downlink reference score and the downlink retransmission rate in the downlink transmission parameter.

可选的,所述评分确定模块802,还用于:Optionally, the score determination module 802 is further configured to:

在所述上行传输速率以及所述下行传输参数中下行传输速率小于第二速率阈值,且所述上行传输参数中上行传输时延大于第三时延阈值的情况下,确定所述上行链路的上行基准评分为最低评分,其中,所述第二速率阈值小于所述第一速率阈值;In the case that the uplink transmission rate and the downlink transmission rate in the downlink transmission parameter are less than the second rate threshold, and the uplink transmission delay in the uplink transmission parameter is greater than the third delay threshold, determine the uplink transmission rate The uplink benchmark score is the lowest score, wherein the second rate threshold is smaller than the first rate threshold;

基于所述上行基准评分与所述上行传输参数中上行重传率,确定所述上行质量评分。The uplink quality score is determined based on the uplink reference score and the uplink retransmission rate in the uplink transmission parameter.

可选的,所述评分确定模块802,还用于:Optionally, the score determination module 802 is further configured to:

在所述上行传输参数指示所述上行链路中不存在数据包传输的情况下,确定所述上行质量评分为历史上行质量评分;In the case that the uplink transmission parameter indicates that there is no data packet transmission in the uplink, determining the uplink quality score as a historical uplink quality score;

在所述下行传输参数指示所述下行链路中不存在数据包传输的情况下,确定所述下行质量评分为历史下行质量评分。When the downlink transmission parameter indicates that there is no data packet transmission in the downlink, the downlink quality score is determined as a historical downlink quality score.

可选的,所述质量确定模块803,还用于:Optionally, the quality determination module 803 is further configured to:

基于所述上行质量评分与所述下行质量评分中最低评分,确定所述网络质量的质量等级。A quality level of the network quality is determined based on the lowest score among the uplink quality score and the downlink quality score.

可选的,所述装置还包括:Optionally, the device further includes:

调用模块,用于在所述网络质量发生变化的情况下,调用网络调整策略,所述网络调整策略用于调整所述网络质量。and a calling module, configured to call a network adjustment policy when the network quality changes, where the network adjustment policy is used to adjust the network quality.

本申请实施例中,终端设备利用上行链路的上行传输参数以及下行链路的下行传输参数分别对上行链路的质量与下行链路的质量进行评估,得到上行质量评分以及下行质量评分,从而根据上行质量评分与下行质量评分确定最终的网络质量。由于在进行上行链路与下行链路质量评估的过程中,均是基于上行链路参数与下行链路参数共同评估,可提高评估上行链路与下行链路实际数据传输质量的准确性,从而有助于提高确定网络质量的准确性。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, to obtain the uplink quality score and the downlink quality score, thereby The final network quality is determined according to the uplink quality score and the downlink quality score. In the process of evaluating the uplink and downlink quality, both the uplink parameters and the downlink parameters are jointly evaluated, which can improve the accuracy of evaluating the actual data transmission quality of the uplink and downlink. Helps improve the accuracy of determining network quality.

需要说明的是:上述实施例提供的装置在实现其功能时,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将设备的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。另外,上述实施例提供的装置与方法实施例属于同一构思,其具体实现过程详见方法实施例,这里不再赘述。It should be noted that: when the device provided in the above embodiment realizes its functions, only the division of the above functional modules is used as an example for illustration. The internal structure is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus and method embodiments provided in the above embodiments belong to the same concept, and the specific implementation process thereof is detailed in the method embodiments, which will not be repeated here.

请参考图9,其示出了本申请一个示例性实施例提供的终端设备900的结构方框图。本申请中的终端设备900可以包括一个或多个如下部件:存储器920、处理器910。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 this application may include one or more of the following components: a memory 920 and a processor 910 .

处理器910可以包括一个或者多个处理核心。处理器910利用各种接口和线路连接整个终端设备900内的各个部分,通过运行或执行存储在存储器920内的指令、程序、代码集或指令集,以及调用存储在存储器920内的数据,执行终端设备900的各种功能和处理数据。可选地,处理器910可以采用数字信号处理(Digital Signal Processing,DSP)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、可编程逻辑阵列(ProgrammableLogic Array,PLA)中的至少一种硬件形式来实现。处理器910可集成中央处理器(CentralProcessing Unit,CPU)、图像处理器(Graphics Processing Unit,GPU)和调制解调器等中的一种或几种的组合。其中,CPU主要处理操作系统、用户界面和应用程序等;GPU用于负责显示屏930所需要显示的内容的渲染和绘制;调制解调器用于处理无线通信。可以理解的是,上述调制解调器也可以不集成到处理器910中,单独通过一块通信芯片进行实现。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 by running or executing the instructions, programs, code sets or instruction sets stored in the memory 920, and calling the data stored in the memory 920. Various functions of the terminal device 900 and processing data. Optionally, the processor 910 may adopt at least one of digital signal processing (Digital Signal Processing, DSP), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA), and Programmable Logic Array (Programmable Logic Array, PLA). implemented in hardware. The processor 910 may integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU), a modem, and the like. Among them, the CPU mainly processes the operating system, user interface and application programs, etc.; the GPU is used for rendering and drawing the content that needs to be displayed on the display screen 930; the modem is used for processing wireless communication. It can be understood that, the above-mentioned modem may not be integrated into the processor 910, and is implemented by a communication chip alone.

存储器920可以包括随机存储器(Random Access Memory,RAM),也可以包括只读存储器(Read-Only Memory,ROM)。可选地,该存储器920包括非瞬时性计算机可读介质(non-transitory computer-readable storage medium)。存储器920可用于存储指令、程序、代码、代码集或指令集。存储器920可包括存储程序区和存储数据区,其中,存储程序区可存储用于实现操作系统的指令、用于实现至少一个功能的指令(比如触控功能、声音播放功能、图像播放功能等)、用于实现上述各个方法实施例的指令等,该操作系统可以是安卓(Android)系统(包括基于Android系统深度开发的系统)、苹果公司开发的IOS系统(包括基于IOS系统深度开发的系统)或其它系统。存储数据区还可以存储终端设备900在使用中所创建的数据(比如电话本、音视频数据、聊天记录数据)等。The memory 920 may include random access memory (Random Access Memory, RAM), or may include read-only memory (Read-Only Memory, ROM). Optionally, the memory 920 includes a non-transitory computer-readable storage medium. Memory 920 may be used to store instructions, programs, codes, sets of codes, or sets of instructions. The memory 920 may include a stored program area and a stored data area, wherein the stored 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 method embodiments, etc., the operating system can be an Android (Android) system (including a system based on the deep development of the Android system), an IOS system developed by Apple (including a system based on the deep development of the IOS system) or other systems. The storage data area may also store data (such as phone book, audio and video data, chat record data) created by the terminal device 900 during use.

除此之外,本领域技术人员可以理解,上述附图所示出的终端设备900的结构并不构成对终端设备900的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。比如,终端设备900中还包括射频电路、拍摄组件、传感器、音频电路、无线保真(Wireless Fidelity,WiFi)组件、电源、蓝牙组件等部件,在此不再赘述。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 less components than those shown in the drawings, or Combining certain components, or different component arrangements. For example, the terminal device 900 further includes components such as a radio frequency circuit, a photographing component, a sensor, an audio circuit, a wireless fidelity (Wireless Fidelity, WiFi) component, a power supply, and a Bluetooth component, which will not be repeated here.

本申请还提供了一种计算机可读存储介质,所述可读存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现上述任意示例性实施例所提供的网络质量的确定方法。The present application also provides a computer-readable storage medium, where at least one instruction, at least one piece of program, code set or instruction set is stored in the readable storage medium, the at least one instruction, the at least one piece of program, the at least one piece of program, the The code set or instruction set is loaded and executed by the processor to implement the network quality determination method provided by any of the above-mentioned exemplary embodiments.

本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。打印设备的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机设备执行上述可选实现方式中提供的网络质量的确定方法。Embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are 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 network quality determination method provided in the foregoing optional implementation manner.

应当理解的是,在本文中提及的“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。另外,本文中描述的步骤编号,仅示例性示出了步骤间的一种可能的执行先后顺序,在一些其它实施例中,上述步骤也可以不按照编号顺序来执行,如两个不同编号的步骤同时执行,或者两个不同编号的步骤按照与图示相反的顺序执行,本申请实施例对此不作限定。It should be understood that references herein to "a plurality" means two or more. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship. In addition, the numbering of the steps described in this document only exemplarily shows a possible execution sequence between the steps. In some other embodiments, the above steps may also be executed in different order, such as two different numbers. The steps are performed at the same time, or two steps with different numbers are performed in a reverse order to that shown in the figure, which is not limited in this embodiment of the present application.

以上所述仅为本申请的可选实施例,并不用以限制本申请,凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。The above descriptions are only optional embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.

Claims (14)

1.一种网络质量的确定方法,其特征在于,所述方法包括:1. A method for determining network quality, wherein the method comprises: 获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数;Obtain 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; 按照上行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述上行链路的上行质量评分;According to the uplink scoring method, the uplink quality score of the uplink is determined based on the uplink transmission parameter and the downlink transmission parameter; 按照下行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述下行链路的下行质量评分;According to the downlink scoring method, the downlink quality score of the downlink is determined based on the uplink transmission parameter and the downlink transmission parameter; 基于所述上行质量评分与所述下行质量评分,确定网络质量。Network quality is determined based on the uplink quality score and the downlink quality score. 2.根据权利要求1所述的方法,其特征在于,所述按照上行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述上行链路的上行质量评分,包括:2. The method according to claim 1, wherein determining the uplink quality score of the uplink based on the uplink transmission parameter and the downlink transmission parameter according to an uplink scoring method, comprising: 在所述上行传输参数中的上行传输速率大于第一速率阈值的情况下,基于所述上行传输参数确定所述上行质量评分;In the case that 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; 在所述上行传输速率小于所述第一速率阈值的情况下,基于所述上行传输参数以及所述下行传输参数确定所述上行质量评分。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. 3.根据权利要求2所述的方法,其特征在于,所述基于所述上行传输参数以及所述下行传输参数确定所述上行质量评分,包括:3. The method according to claim 2, wherein the determining the uplink quality score based on the uplink transmission parameter and the downlink transmission parameter comprises: 在所述上行传输参数中上行传输时延小于第一时延阈值或大于第二时延阈值的情况下,基于所述上行传输时延确定所述上行链路的上行基准评分,所述上行传输时延与所述上行基准评分呈负相关关系;In the case that the uplink transmission delay in the uplink transmission parameter is less than the first delay threshold or greater than the second delay threshold, the uplink reference score of the uplink is determined based on the uplink transmission delay, and the uplink transmission The delay is negatively correlated with the uplink benchmark score; 在所述上行传输时延大于所述第一时延阈值且小于所述第二时延阈值的情况下,基于所述下行传输参数中下行传输速率确定所述上行基准评分,所述下行传输速率与所述上行基准评分呈正相关关系;When the uplink transmission delay is greater than the first delay threshold and less than the second delay threshold, the uplink reference score is determined based on the downlink transmission rate in the downlink transmission parameter, and the downlink transmission rate is positively correlated with the upward benchmark score; 基于所述上行基准评分与所述上行传输参数中上行重传率,确定所述上行质量评分。The uplink quality score is determined based on the uplink reference score and the uplink retransmission rate in the uplink transmission parameter. 4.根据权利要求2所述的方法,其特征在于,所述在所述上行传输参数中的上行传输速率大于第一速率阈值的情况下,基于所述上行传输参数确定所述上行质量评分,包括:4. The method according to claim 2, wherein, in the case that the uplink transmission rate in the uplink transmission parameter is greater than a first rate threshold, the uplink quality score is determined based on the uplink transmission parameter, include: 在所述上行传输速率大于所述第一速率阈值的情况下,确定所述上行链路的上行基准评分为最高评分;In the case that the uplink transmission rate is greater than the first rate threshold, determining that the uplink reference score of the uplink is the highest score; 基于所述上行基准评分与所述上行传输速率中的上行重传率确定所述上行质量评分。The uplink quality score is determined based on the uplink reference score and the uplink retransmission rate in the uplink transmission rate. 5.根据权利要求1所述的方法,其特征在于,所述按照下行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述下行链路的下行质量评分,包括:5 . The method according to claim 1 , wherein determining the downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter according to a downlink scoring method, comprising: 6 . 在所述下行传输参数中下行传输速率大于第一速率阈值的情况下,基于所述下行传输参数确定所述下行质量评分;In the case that the downlink transmission rate in the downlink transmission parameter is greater than the first rate threshold, determine 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. 6.根据权利要求5所述的方法,其特征在于,所述基于所述上行传输参数以及所述下行传输参数确定所述下行质量评分,包括:6. The method according to claim 5, wherein the determining the downlink quality score based on the uplink transmission parameter and the downlink transmission parameter comprises: 基于所述上行传输参数中上行传输时延确定所述下行链路的下行基准评分,所述上行传输时延与所述下行基准评分呈负相关关系;The downlink reference score of the downlink is determined based on the uplink transmission delay in the uplink transmission parameter, and the uplink transmission delay is negatively correlated with the downlink reference score; 基于所述下行基准评分与所述下行传输参数中的下行重传率,确定所述下行质量评分。The downlink quality score is determined based on the downlink reference score and the downlink retransmission rate in the downlink transmission parameter. 7.根据权利要求2至6任一所述的方法,其特征在于,所述基于所述上行传输参数以及所述下行传输参数确定所述上行质量评分,还包括:7. The method according to any one of claims 2 to 6, wherein the determining the uplink quality score based on the uplink transmission parameter and the downlink transmission parameter further comprises: 在所述上行传输速率以及所述下行传输参数中下行传输速率小于第二速率阈值,且所述上行传输参数中上行传输时延大于第三时延阈值的情况下,确定所述上行链路的上行基准评分为最低评分,其中,所述第二速率阈值小于所述第一速率阈值;In the case that the uplink transmission rate and the downlink transmission rate in the downlink transmission parameter are less than the second rate threshold, and the uplink transmission delay in the uplink transmission parameter is greater than the third delay threshold, determine the uplink transmission rate The uplink benchmark score is the lowest score, wherein the second rate threshold is smaller than the first rate threshold; 基于所述上行基准评分与所述上行传输参数中上行重传率,确定所述上行质量评分。The uplink quality score is determined based on the uplink reference score and the uplink retransmission rate in the uplink transmission parameter. 8.根据权利要求1至6任一所述的方法,其特征在于,所述获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数之后,所述方法还包括:8. The method according to any one of claims 1 to 6, wherein 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 Also includes: 在所述上行传输参数指示所述上行链路中不存在数据包传输的情况下,确定所述上行质量评分为历史上行质量评分;In the case that the uplink transmission parameter indicates that there is no data packet transmission in the uplink, determining the uplink quality score as a historical uplink quality score; 在所述下行传输参数指示所述下行链路中不存在数据包传输的情况下,确定所述下行质量评分为历史下行质量评分。When the downlink transmission parameter indicates that there is no data packet transmission in the downlink, the downlink quality score is determined as a historical downlink quality score. 9.根据权利要求1至6任一所述的方法,其特征在于,所述基于所述上行质量评分与所述下行质量评分,确定网络质量,包括:9. The method according to any one of claims 1 to 6, wherein the determining the network quality based on the uplink quality score and the downlink quality score comprises: 基于所述上行质量评分与所述下行质量评分中最低评分,确定所述网络质量的质量等级。A quality level of the network quality is determined based on the lowest score among the uplink quality score and the downlink quality score. 10.根据权利要求1至6任一所述的方法,其特征在于,所述确定网络质量之后,所述方法还包括:10. The method according to any one of claims 1 to 6, wherein after the network quality is determined, the method further comprises: 在所述网络质量发生变化的情况下,调用网络调整策略,所述网络调整策略用于调整所述网络质量。When the network quality changes, a network adjustment policy is invoked, and the network adjustment policy is used to adjust the network quality. 11.一种网络质量的确定装置,其特征在于,所述装置包括:11. An apparatus for determining network quality, wherein the apparatus comprises: 参数获取模块,用于获取上行链路中数据包传输的上行传输参数以及下行链路中数据包传输的下行传输参数;A parameter acquisition module, used for acquiring uplink transmission parameters of data packet transmission in the uplink and downlink transmission parameters of data packet transmission in the downlink; 评分确定模块,用于按照上行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述上行链路的上行质量评分;A score determination module, configured to determine the uplink quality score of the uplink based on the uplink transmission parameter and the downlink transmission parameter in an uplink scoring manner; 所述评分确定模块,还用于按照下行评分方式,基于所述上行传输参数以及所述下行传输参数确定所述下行链路的下行质量评分;The score determination module is further configured to determine the downlink quality score of the downlink based on the uplink transmission parameter and the downlink transmission parameter in a downlink scoring manner; 质量确定模块,用于基于所述上行质量评分与所述下行质量评分,确定网络质量。A quality determination module, configured to determine network quality based on the uplink quality score and the downlink quality score. 12.一种终端设备,其特征在于,所述终端设备包括处理器和存储器,所述存储器中存储有至少一段程序,所述至少一段程序由所述处理器加载并执行以实现如权利要求1至10任一所述的网络质量的确定方法。12. A terminal device, characterized in that the terminal device comprises a processor and a memory, and the memory stores at least one segment of program, and the at least one segment of program is loaded and executed by the processor to realize the method as claimed in claim 1 . The method for determining network quality described in any one of to 10. 13.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有至少一条程序代码,所述程序代码由处理器加载并执行以实现如权利要求1至10任一所述的网络质量的确定方法。13. A computer-readable storage medium, characterized in that, at least one piece of program code is stored in the computer-readable storage medium, and the program code is loaded and executed by a processor to realize any one of claims 1 to 10. The method for determining the quality of the network described above. 14.一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,所述计算机指令存储在计算机可读存储介质中,处理器从所述计算机可读存储介质读取并执行所述计算机指令,以实现如权利要求1至10任一所述的网络质量的确定方法。14. A computer program product, characterized in that the computer program product comprises computer instructions, the computer instructions are stored in a computer-readable storage medium, and a processor reads and executes the computer-readable storage medium from the computer-readable storage medium. Computer instructions to implement the network quality determination method according to any one of claims 1 to 10.
CN202210336948.9A 2022-03-31 2022-03-31 Network quality determination method, device, terminal equipment, storage medium and product Active CN114745303B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210336948.9A CN114745303B (en) 2022-03-31 2022-03-31 Network quality determination method, device, terminal equipment, storage medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210336948.9A CN114745303B (en) 2022-03-31 2022-03-31 Network quality determination method, device, terminal equipment, storage medium and product

Publications (2)

Publication Number Publication Date
CN114745303A true CN114745303A (en) 2022-07-12
CN114745303B CN114745303B (en) 2025-03-25

Family

ID=82279967

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210336948.9A Active CN114745303B (en) 2022-03-31 2022-03-31 Network quality determination method, device, terminal equipment, storage medium and product

Country Status (1)

Country Link
CN (1) CN114745303B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119729062A (en) * 2025-02-27 2025-03-28 河北远东通信系统工程有限公司 Full-link state-aware weak network audio and video transmission method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098719A (en) * 2011-01-11 2011-06-15 大唐移动通信设备有限公司 Method and device for determining network quality
CN109428759A (en) * 2017-09-01 2019-03-05 中国移动通信集团广西有限公司 A kind of network quality appraisal procedure and device
WO2019129163A1 (en) * 2017-12-28 2019-07-04 华为技术有限公司 Network quality measurement method and apparatus thereof
CN110046794A (en) * 2019-03-01 2019-07-23 深圳和而泰数据资源与云技术有限公司 Appraisal procedure, device, computer equipment and the storage medium of network quality
CN111327471A (en) * 2020-02-24 2020-06-23 中移(杭州)信息技术有限公司 Network quality analysis method and device, computer equipment and storage medium
CN111447107A (en) * 2020-03-20 2020-07-24 Oppo广东移动通信有限公司 Network state determination method and device, storage medium and electronic equipment
CN113542044A (en) * 2020-04-15 2021-10-22 中国移动通信集团河北有限公司 Network quality monitoring method and device and computing equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098719A (en) * 2011-01-11 2011-06-15 大唐移动通信设备有限公司 Method and device for determining network quality
CN109428759A (en) * 2017-09-01 2019-03-05 中国移动通信集团广西有限公司 A kind of network quality appraisal procedure and device
WO2019129163A1 (en) * 2017-12-28 2019-07-04 华为技术有限公司 Network quality measurement method and apparatus thereof
CN110046794A (en) * 2019-03-01 2019-07-23 深圳和而泰数据资源与云技术有限公司 Appraisal procedure, device, computer equipment and the storage medium of network quality
CN111327471A (en) * 2020-02-24 2020-06-23 中移(杭州)信息技术有限公司 Network quality analysis method and device, computer equipment and storage medium
CN111447107A (en) * 2020-03-20 2020-07-24 Oppo广东移动通信有限公司 Network state determination method and device, storage medium and electronic equipment
CN113542044A (en) * 2020-04-15 2021-10-22 中国移动通信集团河北有限公司 Network quality monitoring method and device and computing equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN119729062A (en) * 2025-02-27 2025-03-28 河北远东通信系统工程有限公司 Full-link state-aware weak network audio and video transmission method

Also Published As

Publication number Publication date
CN114745303B (en) 2025-03-25

Similar Documents

Publication Publication Date Title
CN110351201B (en) Data processing method and device
WO2020207229A1 (en) Data transmission method and related apparatus
CN101094048A (en) Method for Detecting and Replying to Non-reported Misunderstanding Not Received Error and Related Devices
CN108430094B (en) Method, device and terminal for reducing mutual interference of WIFI and LTE
CN114339808A (en) A data transmission method and device
US10021653B2 (en) Transmit power determining method and apparatus
CN108901079B (en) Timeout time determination method, device, equipment and storage medium
CN110234124B (en) Information transmission method and terminal equipment
WO2023284501A1 (en) Bluetooth data transmission method and apparatus, device, and storage medium
WO2021170023A1 (en) Method and device for transmitting wireless data, storage medium, and terminal
CN108462970B (en) A kind of packet loss judgment method and device
CN108055348A (en) Method for adjusting data transmission priority and related equipment
CN110784932A (en) Random access method, terminal device and network device
US20230337294A1 (en) Call method and apparatus
US11974162B2 (en) Communication method and device
EP3537781B1 (en) Method and device for controlling data transfer rate
CN114745303A (en) Method and device for determining network quality, terminal equipment, storage medium and product
RU2759861C1 (en) Method for monitoring quality of communication channel and subscriber equipment
CN112564872B (en) PUSCH (physical uplink shared channel) resource selection method and related equipment
CN105519025B (en) A CQI reporting method, triggering method, device and wireless communication system
WO2017147743A1 (en) Video optimization method, user equipment unit and network equipment unit
CN111130706B (en) Feedback information transmission method and equipment
CN109413669B (en) Valid value determination method of network configuration parameter, related equipment and system
CN113692717B (en) Data transmission method, device, communication equipment and storage medium
CN115474264A (en) Transmission power adjustment method, device, terminal and storage medium

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
GR01 Patent grant
GR01 Patent grant