CN115002819A - Network quality evaluation method and device - Google Patents

Network quality evaluation method and device Download PDF

Info

Publication number
CN115002819A
CN115002819A CN202111220807.2A CN202111220807A CN115002819A CN 115002819 A CN115002819 A CN 115002819A CN 202111220807 A CN202111220807 A CN 202111220807A CN 115002819 A CN115002819 A CN 115002819A
Authority
CN
China
Prior art keywords
traffic
acquisition period
wireless network
network
video
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
CN202111220807.2A
Other languages
Chinese (zh)
Other versions
CN115002819B (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.)
Honor Device Co Ltd
Original Assignee
Honor Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Honor Device Co Ltd filed Critical Honor Device Co Ltd
Priority to CN202111220807.2A priority Critical patent/CN115002819B/en
Publication of CN115002819A publication Critical patent/CN115002819A/en
Application granted granted Critical
Publication of CN115002819B publication Critical patent/CN115002819B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5003Managing SLA; Interaction between SLA and QoS
    • H04L41/5009Determining service level performance parameters or violations of service level contracts, e.g. violations of agreed response time or mean time between failures [MTBF]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

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

Abstract

The application provides a network quality evaluation method and device, which are used for identifying video traffic from wireless network data traffic. And for the acquisition period with the video flow larger than zero, analyzing the data packet in the video flow to obtain the round-trip delay corresponding to the acquisition period of the wireless network for transmitting the video flow, identifying the information of the retransmission data packet, and further obtaining the retransmission rate according to the information of the retransmission data packet. And for an acquisition period with zero video flow, determining that the round-trip delay and the retransmission rate corresponding to the period are invalid values. And finally, obtaining a quality evaluation result of the wireless network based on the round trip delay or the retransmission rate corresponding to the continuous preset number of periods. According to the scheme, the video flow can be identified, the round-trip delay or the retransmission rate is obtained by analyzing the message of the video flow, and the QoE of the wireless network for transmitting the video flow is evaluated by combining the round-trip delay or the retransmission rate, so that the phenomenon that the QoE of the network is misjudged to be poor due to the fact that the QoE of the network is evaluated by adopting the downloading rate is avoided, and therefore the accuracy of the evaluation result of the QoE of the network is improved.

Description

Network quality evaluation method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for evaluating network quality.
Background
Electronic devices, such as mobile phones, tablet computers, wearable devices, and the like, have become indispensable in daily life of people, and users use the electronic devices to watch data traffic such as online videos, articles, and pictures. In order to improve user Experience, the electronic device evaluates Quality of a wireless network carrying data streams to obtain Quality of Experience (QoE) of the network, so as to guide a decision center to switch to a network with better QoE. However, the evaluation result obtained by the existing network QoE evaluation method is not accurate.
Disclosure of Invention
In view of the above, the present application provides a method and an apparatus for evaluating network quality to solve the above technical problems, and the disclosed technical solution is as follows:
in a first aspect, the present application provides a network quality assessment method applied to an electronic device, where the method includes: identifying video traffic from wireless network data traffic; analyzing the data packet of the video flow for the acquisition period with the video flow larger than zero to obtain the round-trip delay corresponding to the acquisition period of the wireless network for transmitting the video flow and the information of the retransmission data packet; acquiring a retransmission rate corresponding to the acquisition period of the wireless network according to the information of the retransmission data packet; for an acquisition period with zero video flow, determining that the round trip delay and the retransmission rate corresponding to the wireless network are invalid values; and obtaining a quality evaluation result corresponding to the wireless network based on the round-trip delay or the retransmission rate corresponding to the continuous preset number of acquisition periods.
According to the scheme, the video traffic can be identified, the data packet of the video traffic is analyzed to obtain the round-trip delay or the retransmission rate corresponding to the network for transmitting the video traffic, and the QoE of the wireless network for transmitting the video traffic is further evaluated by combining the round-trip delay or the retransmission rate, so that the phenomenon that the QoE of the network is misjudged to be poor due to the fact that the QoE of the network is evaluated by adopting a downloading rate is avoided, and therefore the accuracy of the evaluation result of the QoE of the network is improved. In addition, in the period of zero video flow, the round-trip delay and the retransmission rate of the period are determined to be invalid values, and the data in the period are not used for evaluating the QoE of the network, so that the phenomenon that the network QoE is misjudged to be poor in a scene that the network fluctuates accidentally or the normal buffering is suspended is avoided, and the accuracy of the QoE evaluation result of the network is improved.
In a possible implementation manner of the first aspect, obtaining a quality evaluation result corresponding to a wireless network based on a round trip delay or a retransmission rate corresponding to a continuous preset number of acquisition cycles includes: if the number of the continuous acquisition cycles with the round-trip delay value as the effective value and the delay threshold value or more reaches the preset proportion in the continuous preset number of acquisition cycles, determining that the network quality of the wireless network is poor; or if the number of the continuous acquisition cycles of which the numerical value of the retransmission rate is an effective value and is greater than or equal to the threshold value of the retransmission rate reaches a preset proportion in the continuous preset number of acquisition cycles, determining that the network quality of the wireless network is poor. In the scheme, if the number of the continuous periods with poor network QoE in a plurality of continuous periods reaches a preset proportion, the final QoE of the network is determined to be poor, so that the phenomenon that the network QoE is misjudged to be poor due to the scene that the network fluctuates occasionally and the buffering is suspended normally can be avoided, and the accuracy of the network QoE evaluation is improved.
In another possible implementation manner of the first aspect, the delay threshold is any one of 350ms to 450ms, the retransmission rate threshold is any one of greater than or equal to 60% and less than 100%, and the preset ratio is any one of greater than or equal to 60% and less than 100%.
In another possible implementation manner of the first aspect, for an acquisition period in which video traffic is greater than zero, parsing a data packet of the video traffic to obtain a round trip delay corresponding to the acquisition period of a wireless network that transmits the video traffic includes: acquiring the sending time corresponding to the sent data packet and the receiving time in the receiving confirmation packet corresponding to the received data packet from the video flow corresponding to the same acquisition period; the round trip delay is obtained based on the time interval between the acknowledgment receipt time and the transmission time.
In yet another possible implementation manner of the first aspect, for an acquisition period in which video traffic is greater than zero, analyzing a data packet of the video traffic to obtain a round-trip delay corresponding to the acquisition period of a wireless network that transmits the video traffic, includes: and if the video traffic corresponding to the same acquisition period only comprises the transmitted data packet, determining the round trip delay corresponding to the previous acquisition period of the acquisition period as the round trip delay corresponding to the acquisition period.
In another possible implementation manner of the first aspect, obtaining a retransmission rate corresponding to an acquisition period of the wireless network according to information of the retransmission data packet includes: acquiring the uplink retransmission rate of the acquisition period according to the number of retransmission data packets in the uplink data packets in the same acquisition period and the total number of the uplink data packets; acquiring the downlink retransmission rate of the acquisition period according to the number of retransmission data packets in the downlink data packets in the same acquisition period and the total number of the downlink data packets; and determining the retransmission rate with a large value in the uplink retransmission rate and the downlink retransmission rate, wherein the retransmission rate is the retransmission rate corresponding to the acquisition period of the wireless network.
In yet another possible implementation manner of the first aspect, the method further includes: after determining that the network quality of the wireless network is poor, requesting a standby path and carrying out time delay detection on the standby path; if the time delay detection meets the preset time delay requirement, determining that the standby path is available; and if the network quality of the wireless network is determined to be poor again within the preset time after the standby path is available, switching the video flow to the standby path. According to the scheme, after the QoE variation of the network for transmitting the video stream is determined, the available standby path is detected, and if the evaluation result of the QoE variation of the data stream is received again, the video stream is switched to the standby path, so that the pause phenomenon of the video stream in a weak network environment is avoided, and the fluency of the video stream is improved.
In yet another possible implementation manner of the first aspect, an operating system of the electronic device adopts an Android system, where the Android system includes a traffic reporting module arranged in an kernel layer; identifying video traffic from wireless network data traffic, comprising: and the flow reporting module filters the data packet transmitted by the wireless network according to the preset filtering characteristics to identify the video flow. According to the scheme, the video traffic is acquired through a traffic reporting module arranged on a kernel layer, so that the QoE (quality of experience) transmission of the traffic of a specific type is evaluated independently.
In another possible implementation manner of the first aspect, for an acquisition period in which video traffic is greater than zero, analyzing a data packet of the video traffic to obtain a round-trip delay corresponding to the acquisition period of a wireless network that transmits the video traffic, includes: and for the acquisition period that the video flow is larger than zero, the flow reporting module analyzes the data packet of the video flow to obtain the round-trip delay corresponding to the acquisition period of the wireless network for transmitting the video flow and the information of the retransmission data packet. In the scheme, a traffic reporting module of a kernel layer acquires round-trip delay of video traffic and information of a retransmission data packet, and reports the information to a traffic sensing module so as to realize that the traffic sensing module evaluates QoE of a network for transmitting the video traffic.
In another possible implementation manner of the first aspect, for an acquisition period in which video traffic is greater than zero, the traffic reporting module analyzes a data packet of the video traffic to obtain a round-trip delay corresponding to the acquisition period of a wireless network that transmits the video traffic, including: for the acquisition period with the video flow larger than zero, the flow reporting module acquires the sending time for sending the data packet and the receiving time for receiving the acknowledgement in the acknowledgement receiving packet corresponding to the data packet from the video flow transmitted in the acquisition period; and the traffic reporting module acquires the round-trip delay corresponding to any acquisition period based on the time interval between the receiving confirmation time and the sending time.
In another possible implementation manner of the first aspect, for an acquisition period in which video traffic is greater than zero, the analyzing, by the traffic reporting module, a data packet of the video traffic to obtain a round-trip delay corresponding to the acquisition period of a wireless network that transmits the video traffic includes: and if the traffic reporting module determines that the video traffic corresponding to the same acquisition period only comprises the transmitted data packet, determining the round-trip delay corresponding to the previous acquisition period of the acquisition period as the round-trip delay corresponding to the acquisition period.
In another possible implementation manner of the first aspect, the Android system further includes a traffic sensing module disposed in the native C/C + + library, and the obtaining, according to information of the retransmission data packet, a retransmission rate corresponding to the acquisition cycle of the wireless network includes: and the traffic sensing module receives the information of the retransmission data packet sent by the traffic reporting module and obtains the retransmission rate corresponding to the acquisition period of the wireless network based on the information of the retransmission data packet.
In yet another possible implementation manner of the first aspect, the traffic sensing module further receives a round trip delay corresponding to an acquisition period sent by the traffic reporting module; obtaining a quality evaluation result corresponding to the wireless network based on the round trip delay or the retransmission rate corresponding to the continuous preset number of acquisition cycles, wherein the quality evaluation result comprises the following steps: if the flow sensing module determines that the number of the continuous acquisition cycles with the round-trip delay value being an effective value and being greater than or equal to the delay threshold value reaches a preset proportion in the continuous preset number of acquisition cycles, judging that the network quality of the wireless network is poor; or, if the traffic sensing module determines that the number of the continuous acquisition cycles of which the retransmission rate value is an effective value and is greater than or equal to the retransmission rate threshold value reaches a preset ratio in a continuous preset number of acquisition cycles, determining that the network quality of the wireless network is poor.
In a second aspect, the present application further provides an electronic device, including: one or more processors, memory, and a touch screen; the memory is used for storing program codes; the processor is configured to execute the program code, so that the electronic device implements the network quality assessment method according to any one of the possible implementations of the first aspect.
In a third aspect, the present application further provides a computer-readable storage medium, on which instructions are stored, and when the instructions are executed on an electronic device, the instructions cause the electronic device to perform the network quality assessment method described in any one of the possible implementation manners of the first aspect.
In a fourth aspect, the present application further provides a computer program product, which when run on an electronic device, causes the electronic device to implement the network quality assessment method according to any one of the possible implementation manners of the first aspect.
It should be appreciated that the description of technical features, solutions, benefits, or similar language in this application does not imply that all of the features and advantages may be realized in any single embodiment. Rather, it is to be understood that the description of a feature or advantage is intended to include the specific features, aspects or advantages in at least one embodiment. Therefore, descriptions of technical features, technical solutions or advantages in this specification do not necessarily refer to the same embodiment. Furthermore, the technical features, technical solutions and advantages described in the present embodiments may also be combined in any suitable manner. One skilled in the relevant art will recognize that an embodiment may be practiced without one or more of the specific features, aspects, or advantages of a particular embodiment. In other instances, additional features and advantages may be recognized in certain embodiments that may not be present in all embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a schematic illustration of a video download rate;
fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 3 is a schematic diagram of a software architecture of an electronic device according to an embodiment of the present application;
fig. 4 is a schematic flowchart of a network quality evaluation method according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another network quality evaluation method provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of a network quality evaluation apparatus according to an embodiment of the present application.
Detailed Description
The terms "first", "second" and "third", etc. in the description and claims of this application and the description of the drawings are used for distinguishing between different objects and not for limiting a particular order.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present relevant concepts in a concrete fashion.
For clarity and conciseness of the following descriptions of the various embodiments, a brief introduction to the related art is first given:
in a scenario where a user views multimedia data traffic (e.g., video traffic, video call, and image-text data stream) by using an electronic device and the like that a large number of data packets need to be transmitted, if quality of a currently connected wireless network is poor, a pause phenomenon may occur in the multimedia data traffic, for example, a user views a video in a process from an area covered by WiFi to an area without WiFi, and if quality of the WiFi network cannot be accurately evaluated to be poor, a pause may occur in a process of the user viewing the data traffic due to gradual attenuation of WiFi signals.
Taking video traffic as an example, an existing method for evaluating the QoE of a network for transmitting video traffic uses a download rate of the video traffic to evaluate the QoE of the network. However, as shown in fig. 1, the video buffering process has peaks and valleys, i.e., the buffering stops after the video buffering reaches a certain threshold. Therefore, the way of evaluating QoE of the video streaming network by using the download rate cannot distinguish whether the video buffering is stopped normally or the video download rate is reduced due to poor network quality, which may result in erroneous judgment.
For example, when the buffering is stopped normally, the downloading rate of the data stream is reduced, and it may be misjudged that the network quality is poor, which may cause the downloading rate of the data stream to be reduced, and the data stream may be jammed, and then the wireless network carrying the data stream is switched, the network switching itself may cause traffic transmission jam, and furthermore, if the WiFi network quality is misjudged to be poor and switched to the cellular network, traffic of the mobile communication network of the user may be wasted.
In order to solve the above technical problem, the present application provides a network quality assessment method for identifying video traffic from wireless network data traffic. Analyzing the data packet in the video flow for the acquisition period with the video flow larger than zero to obtain the round-trip delay and the information of the retransmission data packet corresponding to the acquisition period of the wireless network for transmitting the video flow; and further, acquiring the retransmission rate corresponding to the acquisition period of the wireless network according to the information of the retransmission data packet. And for an acquisition period with zero video flow, determining that the round-trip delay and the retransmission rate corresponding to the acquisition period of the wireless network are invalid values. And finally, obtaining a quality evaluation result of the wireless network based on the round-trip delay or the retransmission rate corresponding to the continuous preset number of acquisition periods. The scheme can identify video traffic, analyze a data packet of the video traffic to obtain round-trip delay or retransmission rate corresponding to a network for transmitting the video traffic, further evaluate QoE of a wireless network for transmitting the video traffic by combining the round-trip delay or the retransmission rate, respectively evaluate QoE corresponding to the wireless network in different states by using the round-trip delay and the retransmission rate, and when the wireless network for bearing the video traffic is not completely blocked, can evaluate the quality of the network only through the round-trip delay; when the wireless network has a packet loss phenomenon, the wireless network triggers the retransmission of the data packet, and in this case, the quality of the data stream can be evaluated by using the retransmission rate of the data packet, so that the scheme expands the application scene. Moreover, the scheme avoids misjudgment of the network QoE caused by adopting the download rate to evaluate the network QoE, thereby improving the accuracy of the evaluation result of the network QoE and further improving the accuracy of the stuck evaluation result of the data flow.
The electronic device applying the network quality evaluation method provided by the application can be a mobile phone, a tablet Personal computer, a handheld computer, a netbook, a Personal Digital Assistant (PDA), a wearable electronic device and other devices, and the application does not specially limit the specific form of the handheld electronic device applying the method.
Fig. 2 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
As shown in fig. 2, the electronic device may include a processor 110, a display 120, a memory 130, a mobile communication module 140, a wireless communication module 150, an antenna 1, an antenna 2, and an audio module 160, wherein the audio module 160 includes a speaker 161, an earphone interface 162, a receiver 163, and a microphone 164.
It is to be understood that the illustrated structure of the present embodiment does not constitute a specific limitation to the electronic device. In other embodiments, an electronic device may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 110 is a neural center and a command center of the electronic device, and the controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
The display screen 120 is used to display images, videos, a series of Graphical User Interfaces (GUIs), and the like. The memory 130 may be used to store computer executable program code, which may include an operating system, application programs required for at least one function (such as a sound playing function, an image playing function, etc.), and the like. The executable program code includes instructions that the processor 110 causes the electronic device to perform various functional applications and data processing by executing instructions stored in the memory 130.
The operating system of the electronic device may employ a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the application takes an Android system with a layered architecture as an example, and illustrates a software structure of an electronic device.
Fig. 3 is a block diagram of a software structure of an electronic device according to an embodiment of the present application.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. Taking the Android system as an example, in some embodiments, the Android system is divided into four layers, which are an application layer (APP), an application Framework layer (Framework), a native C/C + + library, and a Kernel layer (Kernel) from top to bottom.
Fig. 3 only shows software layers and modules included in the software layers related to the network quality evaluation method of the present application.
The application layer may include a series of application packages. In some embodiments, the application packages may include video APPs, instant messaging APPs, browsers, and the like.
The application Framework layer (Framework) provides an Application Programming Interface (API) and a programming Framework for an application program of the application layer, which may also be referred to as a Service layer. The application framework layer includes a number of predefined functions. In the embodiment of the present application, as shown in fig. 3, the application framework layer may include a system environment awareness module, a first path management module, a first policy management module, a channel QoE evaluation module, and a network connection management module.
And the system environment sensing module is used for sensing events such as exit/opening, foreground and background switching, installation/uninstallation and the like of the application.
And the first path management module is used for managing the state of the link and starting/stopping the path.
And the first policy management module is used for generating a policy template based on the information input by the perception system and applying a specific engine.
The first path management module and the first strategy management module form a decision center of a Service layer.
The native C/C + + library comprises a daemon (Deamon), the daemon comprises a second policy management module, a second path management module and a flow sensing module, and the second policy management module and the second path management module form a decision center of a daemon layer.
The second policy management module is for multi-path HTTP acceleration.
The second path management module is used for link quality information statistics and summarization.
In an embodiment of the present application, the traffic sensing module is used for sensing, identifying and counting intelligent traffic (e.g., traffic of a certain preset data type).
The Kernel layer is a layer between hardware and software, and in the embodiment of the application, the Kernel layer is provided with a flow reporting module and a strategy execution module.
The traffic reporting module is configured to collect message information required for network quality evaluation, for example, identify data traffic of a preset data type, analyze the data traffic to obtain information of round-trip delay and retransmission data packets, and send the information to the traffic sensing module.
The strategy execution module is used for executing the data stream switching processing based on the network switching strategy.
In the embodiment of the present application, the hardware layer may include a display screen, a mobile communication module, a wireless communication module, an audio module, a memory, and the like.
Although the Android system is taken as an example in the embodiment of the present application for description, the basic principle is also applicable to electronic devices based on operating systems such as the hong meng system (Harmony OS), iOS, or Windows.
The network quality evaluation method provided by the embodiment of the present application will be described below with reference to fig. 3 and 4, where the embodiment takes an electronic device based on an Android system as an example for description.
The network quality evaluation method expands the network QoE evaluation mode of network acceleration service. Under the scene that a user watches video or carries out video call and the like by using electronic equipment and needs to transmit video streams, the network acceleration service evaluates QoE corresponding to a transmission network of the currently monitored video streams by using the network quality evaluation method provided by the application, and switches the video streams to a network with better QoE when the QoE becomes worse, so that the phenomenon that the downloading rate of the video streams is reduced and the video is blocked due to the reduction of the QoE of the network currently transmitting the video streams is avoided, and the user experience is improved.
As shown in fig. 4, the network quality evaluation method may include the steps of:
s110, the system environment sensing module senses that the preset application is in a foreground running state, and initializes the network acceleration service.
The preset application refers to an application that may transmit a large number of data packets, for example, an APP for playing a video, an instant messaging APP (e.g., a telephone APP, a WeChat APP, etc.), a browser, and other application programs that may transmit a large number of data streams, and when the system environment sensing module senses that such an APP is started or switches from a background to a foreground, the system environment sensing module initializes a network acceleration service.
In some embodiments, the initialization process of the network acceleration traffic comprises: the system environment perception module sends an enabling signal to the first strategy management module, the first strategy management module is started after receiving the enabling signal, sends the enabling signal to the second strategy management module, starts the second strategy management module, and sends the network switching strategy corresponding to the application to the strategy execution module of the kernel layer through the second strategy management module.
In some embodiments, a network switching policy corresponding to a certain application is written into a configuration file in advance, and the corresponding network switching policy is read from the configuration file during initialization.
The network switching policy includes a traffic type and a switching action, for example, the traffic type may be a multimedia data stream, such as a video stream, a teletext data stream, and the like, and the switching action includes "Reset" and "IP change", where "Reset" indicates switching to the standby network by resetting a socket and "IP change" indicates switching to the standby network by changing an IP address.
The second strategy management module sends an enabling signal to the flow sensing module, namely, the flow sensing module is started. And after the flow sensing module is started, the flow sensing module sends the flow sensing model to the flow reporting module.
The traffic perception model describes the characteristics of data traffic of a preset data type, a method for determining round trip delay and a method for identifying retransmission data packets.
And S120, identifying the video traffic from the wireless network data traffic by the traffic reporting module.
In other embodiments of the present application, the data type of the data traffic may be determined according to actual requirements, such as video traffic, and other multimedia type data traffic, and will not be described in detail herein.
The traffic reporting module filters all data messages transmitted by the wireless network based on the filtering characteristics in the traffic sensing model to obtain the traffic of a video type, namely video traffic.
For example, taking the video traffic transmitted based on the TCP protocol as an example, the filtering feature may include a port, a URL suffix, a content type, and the like, for example, if the port is 80(80 is a port number of HTTP), the URL suffix includes "f 4 v", and the content type is MP4, the data traffic is determined to be the video traffic based on the TCP protocol.
Based on the data stream of the other protocol, the filtering characteristics can be obtained according to the characteristics of the data stream of the other protocol.
And S130, for the acquisition period of the video traffic larger than zero, the traffic reporting module analyzes the video traffic acquired in the period, obtains the round-trip delay corresponding to the period of the wireless network for transmitting the data traffic to be evaluated, and sends the round-trip delay to the traffic sensing module.
The video flow rate greater than zero means that at least one of the uplink video flow rate and the downlink video flow rate transmitted by the wireless network in a certain acquisition period is not zero. The acquisition period is a period in which the traffic reporting module monitors the video traffic and reports the video traffic to the traffic sensing module, and the period may be set according to the actual application requirement, for example, 500 ms. Further, the period in this context is the acquisition period.
The round-trip delay represents the time interval between the time when the sending end finishes sending data and the time when the sending end receives the message confirmed to be received from the receiving end, and if the round-trip delay value is larger, the situation that the network is not completely blocked but the delay exists is shown.
In some embodiments, the traffic reporting module analyzes a data packet of video traffic in an acquisition period based on a round trip delay determination method in a traffic sensing model, obtains a sending time of any uplink data packet and an acknowledgement receiving time of the uplink data packet, and obtains a round trip delay according to a time difference between the acknowledgement receiving time and the sending time.
Taking the TCP protocol as an example, a TCP packet sent by a sender includes a field of sending time, and the field is analyzed to obtain the sending time of the packet. After the receiving party successfully receives the data, the receiving party replies an ACK data packet to the sending party, which indicates that the data reception is confirmed. The sender receives the ACK packet and confirms that the receiver has received the data. The ACK packet includes a time field for the receiver to receive the data, and the content of the field is analyzed to obtain the time for the receiver to receive the data, i.e., the reception confirmation time.
In a possible implementation manner, the round-trip delay of the period is directly obtained according to the acknowledgement receiving time and the sending time corresponding to the same acquisition period. For example, if the time interval between the acknowledgment reception time and the transmission time is 200ms, the round trip delay corresponding to the period is determined to be 200 ms.
In one possible implementation, the round trip delay of the current period may be calculated by using a protocol stack delay smoothing algorithm based on the confirmed receiving time and the sending time of the current acquisition period (i.e., the current period) and the round trip delay of the historical acquisition period.
In some embodiments, the delay smoothing algorithm is expressed as SRTT (t) ═ α SRTT (t-1) + (1- α) × RTT, where SRTT (t) is a smoothly calculated round trip delay corresponding to a current period, SRTT (t-1) is a smoothly calculated round trip delay corresponding to a previous acquisition period (i.e., a previous period) of the current period, RTT is a time interval between an acknowledgment receiving time and a sending time of the current period, i.e., a round trip delay before smooth calculation, α is a weighted moving average, and may be set according to actual requirements, and is usually set to 0.8 to 0.9.
For example, the time interval between the acknowledgment reception time and the transmission time of the current period is 200ms, the time interval between the acknowledgment reception time and the transmission time of the previous period is 150ms, the round-trip delay corresponding to the current period is based on 200ms and 150ms, and the round-trip delay of the current period is calculated to be 0.8 x 150+0.2 x 200 — 160ms by using the protocol stack delay smoothing algorithm.
For example, in a scenario, a certain period suspends downloading of video (i.e., video buffering is stopped normally), in this case, the uplink and downlink video streams collected in the period are all zero, and the round-trip delay of the previous period is 450ms, if the delay data of the period uses the delay data of the previous period, the round-trip delay of the period is considered to be 450ms, and this case may be misjudged that the QoE of the current network is poor. By adopting the scheme of the application, if the video data packet is not transmitted in a certain period, the QoE of the network is not evaluated by using the historical time delay data, and under the condition, the round-trip time delay value of the period is an invalid value, so that the condition that the QoE evaluation result is inaccurate by using the historical time delay data to evaluate the network in a pause downloading scene or a scene with occasional fluctuation of the network is avoided.
In addition, the data flow quality evaluation method provided by the present application is not only applicable to data flows based on a TCP transmission protocol, but also applicable to data flows based on other transmission protocols, and the present application is not limited thereto. And for data traffic based on other transmission protocols, obtaining a corresponding time delay determination method according to the transmission characteristics of the transmission protocol, and further determining time delay data corresponding to the data traffic of the transmission protocol based on the time delay determination method.
S140, the flow reporting module analyzes the video flow, identifies the information of the retransmission data packet and sends the information to the flow sensing module.
And the traffic reporting module identifies the retransmission data packet from the data traffic to be evaluated based on a method for identifying the retransmission data packet in the traffic perception model. The method for identifying the retransmitted data packet corresponding to different transmission protocols is different, and the following process for identifying the retransmitted data packet is described by taking a TCP transmission protocol as an example:
in the TCP protocol, after a sender sends data for a period of time, it is determined that a receiver does not receive the sent data if no response (i.e. an ACK packet) is received, and at this time, the data that has not received the response is sent again, i.e. retransmitted.
The traffic reporting module identifies retransmission data packets in uplink data packets (i.e., data packets sent by the electronic device to the server) based on an uplink retransmission packet determination method in the traffic sensing model, and further counts the number of uplink retransmission data packets within a period of time, for example, a period of time may be set according to actual requirements, such as 500 ms.
Similarly, the retransmission data packet in the downlink data packet (i.e. the data packet received by the electronic device and sent by the server) is identified based on the downlink retransmission packet determining method, and the number of the downlink retransmission data packets in a period of time is further counted.
In some embodiments, the traffic reporting module may obtain an uplink data packet sequence number and an expected transmission sequence number that are sent by the electronic device this time, where the uplink data packet sequence number refers to a sequence number of last data in a data packet sent by the electronic device this time; the expected transmission sequence number is the sequence number of the next data packet to be transmitted by the electronic device.
The uplink retransmission packet determination method may be: the uplink data packet sequence number is less than the expected sending sequence number. That is, if the sequence number of the data packet sent this time is smaller than the expected sending sequence number, it is determined that the data packet sent this time is an uplink retransmission data packet.
Similarly, the flow reporting module can obtain the sequence number of the downlink data packet received this time by the electronic device, the packet length of the data packet, and the expected receiving sequence number.
The sequence number of the downlink data packet is the sequence number of the first data in the downlink data packet received by the electronic device this time, the packet length is the length of all data in the whole data packet, and the sequence number obtained by calculation according to (the sequence number of the downlink data packet + the packet length-1) is the sequence number of the last data in the data packet received this time.
The expected reception sequence number is the sequence number of the first data in the data packet to be received next time by the electronic device.
The downlink retransmission packet determination method may be: the downlink data packet sequence number + packet length-1 < the expected receiving sequence number. That is, if the sequence number of the last data of the data packet received this time is smaller than the expected reception sequence number, it is determined that the data packet received this time is a downlink retransmission data packet.
And the traffic reporting module also counts the total traffic of the data traffic to be evaluated, including the uplink data traffic and the downlink data traffic. The uplink traffic may be the total number of uplink data packets within a period of time (consistent with the time period for identifying the uplink retransmission data packet), and the downlink traffic may be the total number of downlink data packets within a period of time (consistent with the time period for identifying the downlink retransmission data packet).
And finally, the traffic reporting module reports the round-trip delay, the number of uplink retransmission data packets, the number of downlink retransmission data packets, the uplink data traffic and the downlink data traffic to the traffic sensing module. The traffic reporting module collects video traffic information in a period of 500ms and reports the video traffic information to the traffic sensing module.
S150, the traffic sensing module retransmits the information of the data packet according to the same acquisition period to obtain the retransmission rate of the wireless network corresponding to the period.
In this embodiment, the traffic sensing module calculates, according to the number of uplink retransmission data packets and the total number of uplink data packets corresponding to the same period reported by the traffic reporting module, an uplink retransmission rate corresponding to the period, and similarly, the downlink retransmission rate can be calculated.
For example, if the number of uplink retransmission data packets in a certain period is 50 and the total data amount of the uplink data packets is 100, the uplink retransmission rate in the period is 50%. For another example, if the number of the downlink retransmission packets is 60 and the total number of the downlink retransmission packets is 150, the downlink retransmission rate of the period is 40%.
In some embodiments, the uplink retransmission rate and the downlink retransmission rate corresponding to the same period are different, in this case, a value with a larger value is taken as the retransmission rate corresponding to the period, for example, if the uplink retransmission rate corresponding to a certain period is 40%, and the downlink retransmission rate is 60%, the retransmission rate corresponding to the period is determined to be 60%.
If no video data packet is transmitted in a certain period, under the scene, the QoE of the network is evaluated without using the historical retransmission rate data, and under the condition, the numerical value of the retransmission rate of the period is an invalid value, so that the condition that the QoE evaluation result is inaccurate due to the fact that the network is evaluated by using the historical retransmission rate data in a scene where downloading is suspended or the network fluctuates occasionally can be avoided.
In other embodiments of the present application, the traffic reporting module may directly calculate the retransmission rate corresponding to each period according to the information of the retransmission data packet, and then directly report the retransmission rate to the traffic sensing module.
And S160, the traffic sensing module obtains a quality evaluation result corresponding to the wireless network according to the round trip delay or the retransmission rate corresponding to the continuous preset number of periods.
The delay threshold and the retransmission rate threshold can be set according to actual requirements, for example, the delay threshold is any value in 350-450 ms, and the retransmission rate threshold is any value between 60% and 100%.
In some embodiments, if the traffic awareness module determines that the round trip delay of a certain period is greater than or equal to the delay threshold, it determines that the network QoE of the period is poor. And if the retransmission rate threshold value of a certain period is greater than or equal to the retransmission rate threshold value, determining that the network QoE of the period is poor.
The same network adopts different parameters to evaluate the network in different states, for example, the QoE of the network is evaluated by using the round-trip delay in the state that the network is not completely blocked but only delayed; and if packet loss occurs, triggering a TCP protocol stack to retransmit a message, indicating that the network is blocked, and evaluating the QoE of the network by using a packet loss rate (namely, a retransmission rate) in the scene.
If the retransmission rate corresponding to a certain period is 0, which indicates that the network is not blocked, evaluating the QoE of the network by using the round trip delay of the period; and if the round-trip delay corresponding to a certain period is not obtained, evaluating the QoE of the network by using the retransmission rate of the period.
In some embodiments, to avoid the influence of network sporadic fluctuation on the network QoE evaluation result, when the network qoes of a preset number of consecutive cycles are all poor, the QoE of the wireless network is determined to be poor.
The preset number may be set according to an actual requirement, for example, in a plurality of consecutive periods, the number of consecutive periods in which the QoE of the network is poor reaches a preset ratio (for example, any value between 60% and 100%), for example, the preset ratio is 60%, and if the QoE of the network in 3 consecutive periods in 5 consecutive periods is poor, the QoE of the wireless network is considered to be poor.
The network QoE assessment process is illustrated below with two examples:
for example, in one example, when the delay threshold is 400ms, the retransmission rate threshold is 60%, and the preset proportion of the continuous period with the QoE of "bad" is 60%, it is determined that the QoE of the wireless network is "bad".
The round trip delay, retransmission rate, QoE of each period, and data of the stream QoE (i.e., QoE of the data stream) corresponding to each period are shown in table 1.
In table 1, "invalid" indicates an invalid value, "good" indicates that QoE is good, "bad" indicates that QoE is bad, and "N/a" indicates that it cannot be determined that QoE is good or bad in this cycle.
TABLE 1
Figure BDA0003312520570000091
As shown in table 1, for round-trip delay, corresponding delay data exists in periods 1 to 3 and periods 5 to 7, and the delay data in period 4 is an invalid value; for the retransmission rate, the retransmission rate of the 1 st cycle is 20%, and all other cycles are 0, so that it can be known that, in the period of the 2 nd to 7 th cycles, the wireless network is not completely blocked but has a delay phenomenon, and in this scenario, the QoE of the network in the current cycle is evaluated based on the round-trip delay of each cycle.
As shown in table 1, the round trip delays of the 5 th to 7 th periods in the 5 rd to 7 th periods all exceed the delay threshold 400ms, that is, QoE of the 3 th periods 5 to 7 are all "bad", it can be seen that QoE of 3 consecutive periods in the 5 th periods are all "bad", that is, the proportion of the number of consecutive periods with QoE of "bad" reaches 60%, and therefore, the QoE of the wireless network is determined to be "bad" in the 7 th period.
For another example, in another example, the round trip delay, the retransmission rate, the QoE of each period, and the data of the streaming QoE of the wireless network corresponding to each period are shown in table 2:
TABLE 2
Figure BDA0003312520570000092
Figure BDA0003312520570000101
In this example, the delay threshold is 400ms, the retransmission rate threshold is 60%, and the number of consecutive cycles with a QoE of "bad" is greater than or equal to 60%, the QoE of the wireless network is determined to be "bad", which is used as a determination condition.
As shown in table 2, for the round trip delay, the delay data of both the 1 st and the 2 nd periods do not exceed the delay threshold, the delay data of the 3 rd period is 450ms greater than 400ms, and the values of the delay data of the 4 th to 7 th periods are invalid values. Meanwhile, as for the retransmission rate, the retransmission rate of the first 3 periods in the 7 periods is 0, the retransmission rate of the 4 th period is 50%, and the retransmission rate of the 5 th to 7 th periods is up to 100%, so that it is determined that the wireless network has a packet loss phenomenon and is completely blocked in the period from the 4 th period to the 7 th period, and in this application scenario, the QoE of the wireless network is evaluated based on the retransmission rate.
As shown in table 2, the retransmission rates of the 5 th to 7 th periods in the 3 rd to 7 th periods all exceed the retransmission rate threshold value by 60%, that is, the QoE of 3 consecutive periods in the 5 th periods are all "bad", and therefore, the QoE of the wireless network is determined to be "bad" in the 7 th period.
As can be seen from the examples shown in tables 1 and 2, when the wireless network is in different states, the QoE of the network is evaluated based on the network parameters matched with the state scenarios, for example, in a scenario where the network is not blocked but is delayed, the QoE of the network is evaluated based on round-trip delay, and in a scenario where packet loss occurs due to network blocking, the QoE of the network is evaluated based on the retransmission rate.
Moreover, as can be seen from the examples shown in table 1 and table 2, when QoE of 3 consecutive cycles is detected to be poor, it is determined that QoE of the network is poor, and therefore, it is avoided that the QoE of the network is misjudged to be poor due to accidental fluctuation of the wireless network, so that the false alarm rate of QoE of the network is reduced, the accuracy of QoE evaluation result of the network is improved, and further, the stability of transmitting the data traffic to be evaluated is improved.
In the network quality evaluation method provided in this embodiment, the video traffic is identified from the wireless network data traffic, and for a period in which the video traffic is greater than zero, the data packet in the video traffic is analyzed to obtain the round trip delay corresponding to the period and information of the retransmitted data packet. Further, the retransmission rate of the period is obtained according to the information of the retransmission data packet. And finally, evaluating the QoE of the wireless network based on the round trip delay or the retransmission rate corresponding to a preset number of periods. The method and the device evaluate the QoE of the network by combining the round-trip delay or the retransmission rate of the network, and avoid misjudgment of the QoE of the network caused by evaluating the QoE of the network by adopting the data flow downloading speed, so that the accuracy of the QoE of the network is improved. In addition, in the period of zero video flow, the round-trip delay and the retransmission rate of the period are determined to be invalid values, historical data are not used, and the final QoE of the network is determined by utilizing the network QoE of a plurality of periods, so that the phenomenon that the misjudgment of the network QoE is poor in a scene that the network fluctuates occasionally or the normal buffering is suspended is avoided, and the accuracy of the QoE evaluation result of the network is further improved.
And if the round-trip delay of the wireless network exceeds the delay threshold and the retransmission rate is less than the retransmission rate threshold, determining that the wireless network only has a delay phenomenon, and under the scene, evaluating the QoE of the network based on the round-trip delay. If the retransmission rate of the wireless network is greater than the retransmission rate threshold, the wireless network is determined to be blocked, and in the scene, the QoE of the network is evaluated based on the retransmission rate, so that the application range of the scheme is expanded.
The purpose of evaluating the QoE of the network is to switch the video traffic to the network bearing with better QoE after monitoring that the QoE of the current wireless network is degraded, so as to avoid the video traffic from being blocked due to the degradation of the QoE of the wireless network. Therefore, as shown in fig. 5, the present application provides another embodiment of a network quality evaluation method, which further includes the following steps based on the embodiment shown in fig. 4:
and S210, after receiving the network QoE evaluation result reported by the flow sensing module as a variance, the second path management module sends a standby path request to the first path management module.
The traffic sensing module reports a QoE evaluation result of the data flow to the second path management module, if the second path management module determines that the QoE evaluation result is 'bad', the QoE of the data flow is determined to be deteriorated, and a standby path is requested to the first path management module, namely, a standby network is requested to be connected, wherein the standby path refers to a network path capable of being connected with the standby network.
The standby network refers to other wireless networks that the electronic device can connect to, for example, other connectable WiFi networks (WiFi networks other than the WiFi network currently connected to "123") or a mobile data network, i.e., the standby network, when the QoE of the WiFi network "123" carrying video traffic is monitored to be degraded.
S220, the first path management module sends a standby network connection request to the network connection management module.
S230, the network connection management module responds to the backup network connection request, establishes a path (i.e., a backup path) of the backup network, and returns a path establishment success notification to the first path management module after the backup path is successfully established.
And S240, after receiving the notification of successful path establishment, the first path management module sends a standby path detection request to the channel QoE evaluation module.
And S250, the channel QoE evaluation module responds to the standby path detection request and detects the availability of the standby path.
In some embodiments, the latency of the backup path is detected, and if the latency is less than a preset threshold (e.g., 1000ms), the backup path is determined to be available; and if the time delay is larger than or equal to the preset threshold value, determining that the standby path is unavailable.
And S250, if the standby path is determined to be available, the channel QoE evaluation module returns a standby path available notice to the first path management module.
S260, the first path management module sends a standby path available notice to the second path management module, and the second path management module records that the standby path is available.
And S270, when the second path management module receives the QoE evaluation result variation of the data stream reported by the traffic sensing module again, the second policy management module is informed to switch to the standby path.
And within the preset duration after the second path management module receives the standby path available notification, if a QoE evaluation result of the QoE variation of the data stream is received again, the second path management module requests the second policy management module to switch to the standby path. The preset time period may be set according to an actual requirement, for example, 1000 ms.
S280, the second strategy management module responds to the network switching request and sends a network switching strategy to the strategy execution module.
And after receiving the network switching request sent by the second path management module, the second policy management module sends a network switching policy to the network connection management module, and the network connection management module switches to the standby network based on the network switching policy.
And S290, the strategy execution module analyzes the network switching strategy and switches the data flow of the preset data type to the standby path.
After receiving the network switching policy, the policy execution module analyzes the type of traffic (such as video stream) and the switching action of the network to be switched, and switches the type of traffic to the standby path based on the switching action.
In the network quality evaluation method provided in this embodiment, after determining that the QoE of the network transmitting the video stream is degraded, it is detected that the video stream is an available backup path, and if the evaluation result of the QoE degradation of the data stream is received again, the video stream is switched to the backup path, so that a pause phenomenon occurring in the video stream in a weak network environment is avoided, and therefore, the fluency of the video stream is improved.
According to the network quality evaluation method, the video flow is sensed from the data flow of the wireless network, and the data packet of the video flow is further analyzed to obtain information such as time delay and retransmission rate of the wireless network for transmitting the video flow. And further obtaining a quality evaluation result of the wireless network based on the time delay or retransmission rate of a preset number of periods. Although the embodiments of the network quality evaluation method are described by taking an Android system as an example, the network quality evaluation method provided by the present application cannot be limited. The scheme is also applicable to a Hongmon-based system (Harmony OS),
Figure BDA0003312520570000111
Or other operating systems such as Windows. Those skilled in the art can adapt the process of the network quality evaluation method provided by the present application according to the application requirements of different operating systemsShould be modified to achieve the same technical effect as the scheme of the application.
In the embodiment of the present application, the electronic device may be divided into the functional modules according to the method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. It should be noted that, in the embodiment of the present application, the division of the module is schematic, and is only one logic function division, and there may be another division manner in actual implementation.
In the case of dividing each function module according to each function, fig. 6 shows a schematic diagram of a possible composition of the network quality evaluation apparatus related to the above embodiment, which is capable of executing the steps of any one of the method embodiments of the present application. The network quality evaluation device is an electronic device or a communication device supporting the electronic device to implement the method provided in the embodiments, and the communication device may be a system on a chip, for example.
As shown in fig. 6, the network quality evaluation apparatus may include:
a traffic identification module 210, configured to identify video traffic from wireless network data traffic;
the traffic analyzing module 220 is configured to analyze the video traffic for a sampling period in which the video traffic is greater than zero, to obtain round-trip delay and retransmission packet information corresponding to the period of a wireless network that transmits the video traffic, and to determine that the round-trip delay and the retransmission rate corresponding to the wireless network are invalid values for an acquisition period in which the video traffic is zero;
a retransmission rate obtaining module 230, configured to obtain, according to the information of the retransmission data packet, a retransmission rate corresponding to each period of the wireless network;
the network quality evaluation module 240 is configured to obtain a quality evaluation result corresponding to the wireless network based on the round trip delay or the retransmission rate corresponding to the consecutive preset number of periods.
It should be noted that all relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
The network quality evaluation device provided by the embodiment of the application is used for executing the network quality evaluation method of any embodiment, so that the same effect as the network quality evaluation method of the embodiment can be achieved.
The embodiment also provides a computer-readable storage medium, where the computer-readable storage medium includes instructions, and when the instructions are run on an electronic device, the electronic device is enabled to implement the network quality assessment method provided in any of the above embodiments.
The present embodiment also provides a computer program product containing instructions, which, when run on an electronic device, causes the electronic device to implement the network quality assessment method provided in any of the above embodiments.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
In the several embodiments provided in this embodiment, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, each functional unit in each embodiment of the present embodiment may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present embodiment essentially or partially contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the method described in the embodiments. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only an embodiment of the present application, but the scope of the present application is not limited thereto, and any changes or substitutions within the technical scope of the present disclosure should be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (15)

1. A network quality evaluation method is applied to electronic equipment, and the method comprises the following steps:
identifying video traffic from wireless network data traffic;
analyzing the data packet of the video flow for the acquisition period with the video flow larger than zero to obtain the round-trip delay and the information of the retransmission data packet corresponding to the acquisition period of the wireless network for transmitting the video flow;
acquiring the retransmission rate corresponding to the acquisition period of the wireless network according to the information of the retransmission data packet;
for an acquisition period in which the video flow is zero, determining that the round trip delay and the retransmission rate corresponding to the wireless network are invalid values;
and obtaining a quality evaluation result corresponding to the wireless network based on the round trip delay or the retransmission rate corresponding to the continuous preset number of acquisition cycles.
2. The method according to claim 1, wherein the obtaining a quality evaluation result corresponding to the wireless network based on the round trip delay or the retransmission rate corresponding to the consecutive preset number of acquisition cycles comprises:
if the number of the continuous acquisition cycles of which the round-trip delay value is an effective value and is greater than or equal to the delay threshold value reaches a preset proportion in the continuous preset number of acquisition cycles, determining that the network quality of the wireless network is poor;
or,
and if the number of the continuous acquisition cycles of which the numerical value of the retransmission rate is an effective value and is greater than or equal to the threshold value of the retransmission rate reaches the preset proportion in the continuous preset number of acquisition cycles, determining that the network quality of the wireless network is poor.
3. The method of claim 2, wherein the latency threshold is any value from 350ms to 450ms, the retransmission rate threshold is any value from 60% to 100%, and the predetermined ratio is any value from 60% to 100%.
4. The method according to any one of claims 1 to 3, wherein the parsing, for an acquisition period in which video traffic is greater than zero, data packets of the video traffic to obtain a round trip delay corresponding to the acquisition period of a wireless network transmitting the video traffic comprises:
acquiring the sending time corresponding to the sent data packet and the receiving time in the receiving confirmation packet corresponding to the received data packet from the video flow corresponding to the same acquisition period;
obtaining the round trip delay based on a time interval between the acknowledgment receipt time and the transmission time.
5. The method according to any one of claims 1 to 4, wherein the parsing, for an acquisition period in which video traffic is greater than zero, data packets of the video traffic to obtain a round trip delay corresponding to the acquisition period of a wireless network that transmits the video traffic includes:
and if the video traffic corresponding to the same acquisition period only comprises the sent data packet, determining that the round trip delay corresponding to the previous acquisition period of the acquisition period is the round trip delay corresponding to the acquisition period.
6. The method according to any one of claims 1 to 5, wherein the obtaining the retransmission rate corresponding to the acquisition period of the wireless network according to the information of the retransmission data packet comprises:
acquiring the uplink retransmission rate of the acquisition period according to the number of retransmission data packets in the uplink data packets in the same acquisition period and the total number of the uplink data packets;
acquiring the downlink retransmission rate of the acquisition period according to the number of retransmission data packets in the downlink data packets in the same acquisition period and the total number of the downlink data packets;
and determining the retransmission rate with a large value in the uplink retransmission rate and the downlink retransmission rate, and the retransmission rate is the retransmission rate corresponding to the acquisition period of the wireless network.
7. The method of any of claims 2 to 6, further comprising:
when the network quality of the wireless network is determined to be poor, requesting a standby path, and performing time delay detection on the standby path;
if the time delay detection meets the preset time delay requirement, determining that the standby path is available;
and if the network quality of the wireless network is determined to be poor again within the preset time after the standby path is available, switching the video flow to the standby path.
8. The method according to claim 1, wherein an operating system of the electronic device adopts an Android system, and the Android system comprises a traffic reporting module arranged in a kernel layer;
the identifying video traffic from wireless network data traffic comprises:
and the flow reporting module filters the data packet transmitted by the wireless network according to preset filtering characteristics to identify the video flow.
9. The method of claim 8, wherein for an acquisition period in which video traffic is greater than zero, parsing the data packet of the video traffic to obtain a round trip delay corresponding to the acquisition period of a wireless network transmitting the video traffic comprises:
for the acquisition period that the video flow is larger than zero, the flow reporting module analyzes the data packet of the video flow to obtain the round-trip delay corresponding to the acquisition period of the wireless network for transmitting the video flow and the information of the retransmission data packet.
10. The method according to claim 9, wherein for the acquisition period in which the video traffic is greater than zero, the traffic reporting module analyzes a data packet of the video traffic to obtain a round trip delay corresponding to the acquisition period of a wireless network that transmits the video traffic, and the method includes:
for an acquisition period in which video traffic is greater than zero, the traffic reporting module acquires sending time for sending a data packet from the video traffic transmitted in the acquisition period and receives acknowledgement receiving time in an acknowledgement receiving packet corresponding to the data packet;
and the traffic reporting module obtains the round trip delay corresponding to any acquisition period based on the time interval between the receiving confirmation time and the sending time.
11. The method according to claim 9 or 10, wherein for an acquisition period in which the video traffic is greater than zero, the traffic reporting module analyzes a data packet of the video traffic to obtain a round-trip delay corresponding to the acquisition period of a wireless network that transmits the video traffic, and the method includes:
and if the traffic reporting module determines that the video traffic corresponding to the same acquisition period only includes the transmitted data packet, determining that the round-trip delay corresponding to the previous acquisition period of the acquisition period is the round-trip delay corresponding to the acquisition period.
12. The method according to any one of claims 9 to 11, wherein the Android system further comprises a traffic awareness module provided in a native C/C + + library,
the obtaining of the retransmission rate corresponding to the acquisition period of the wireless network according to the information of the retransmission data packet includes:
and the traffic sensing module receives the information of the retransmission data packet sent by the traffic reporting module, and obtains the retransmission rate corresponding to the acquisition period of the wireless network based on the information of the retransmission data packet.
13. The method according to claim 12, wherein the traffic sensing module further receives the round trip delay corresponding to the acquisition period sent by the traffic reporting module;
the obtaining of the quality evaluation result corresponding to the wireless network based on the round trip delay or the retransmission rate corresponding to the continuous preset number of acquisition cycles includes:
if the flow sensing module determines that the number of the continuous acquisition cycles of which the round-trip delay value is an effective value and is greater than or equal to the delay threshold value reaches a preset proportion in a continuous preset number of acquisition cycles, judging that the network quality of the wireless network is poor;
or,
and if the flow sensing module determines that the number of the continuous acquisition cycles of which the numerical value of the retransmission rate is an effective value and is greater than or equal to the threshold value of the retransmission rate reaches the preset proportion in the continuous preset number of acquisition cycles, judging that the network quality of the wireless network is poor.
14. An electronic device, characterized in that the electronic device comprises: one or more processors, memory, and a touch screen; the memory is used for storing program codes; the processor is configured to execute the program code, so that the electronic device implements the network quality assessment method according to any one of claims 1 to 13.
15. A computer-readable storage medium having stored thereon instructions that, when executed on an electronic device, cause the electronic device to perform the network quality assessment method of any one of claims 1 to 13.
CN202111220807.2A 2021-10-20 2021-10-20 Network quality assessment method and device Active CN115002819B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111220807.2A CN115002819B (en) 2021-10-20 2021-10-20 Network quality assessment method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111220807.2A CN115002819B (en) 2021-10-20 2021-10-20 Network quality assessment method and device

Publications (2)

Publication Number Publication Date
CN115002819A true CN115002819A (en) 2022-09-02
CN115002819B CN115002819B (en) 2023-05-23

Family

ID=83018295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111220807.2A Active CN115002819B (en) 2021-10-20 2021-10-20 Network quality assessment method and device

Country Status (1)

Country Link
CN (1) CN115002819B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709442A (en) * 2022-10-17 2023-09-05 荣耀终端有限公司 Wireless network switching method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811370A (en) * 2011-05-31 2012-12-05 美国博通公司 Dynamic wireless channel selection and protocol control for streaming media
CN103888846A (en) * 2014-03-04 2014-06-25 浙江大学 Wireless video streaming service self-adaption rate control method based on QoE
CN105827473A (en) * 2015-01-06 2016-08-03 ***通信集团江苏有限公司 Method and device for network quality evaluation
CN107360586A (en) * 2016-05-10 2017-11-17 ***通信集团黑龙江有限公司 The appraisal procedure and device of a kind of network quality
CN108696403A (en) * 2018-03-23 2018-10-23 中国科学技术大学 A kind of encrypted video QoE evaluating methods based on the study of network flow latent structure
CN111385616A (en) * 2018-12-28 2020-07-07 华为技术有限公司 Method and device for determining video transmission quality

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102811370A (en) * 2011-05-31 2012-12-05 美国博通公司 Dynamic wireless channel selection and protocol control for streaming media
CN103888846A (en) * 2014-03-04 2014-06-25 浙江大学 Wireless video streaming service self-adaption rate control method based on QoE
CN105827473A (en) * 2015-01-06 2016-08-03 ***通信集团江苏有限公司 Method and device for network quality evaluation
CN107360586A (en) * 2016-05-10 2017-11-17 ***通信集团黑龙江有限公司 The appraisal procedure and device of a kind of network quality
CN108696403A (en) * 2018-03-23 2018-10-23 中国科学技术大学 A kind of encrypted video QoE evaluating methods based on the study of network flow latent structure
CN111385616A (en) * 2018-12-28 2020-07-07 华为技术有限公司 Method and device for determining video transmission quality

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116709442A (en) * 2022-10-17 2023-09-05 荣耀终端有限公司 Wireless network switching method and electronic equipment

Also Published As

Publication number Publication date
CN115002819B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN108777666B (en) Shunting method for link aggregation and related equipment
US10652776B2 (en) Contextual quality of user experience analysis using equipment dynamics
EP3322145A1 (en) Method, server side and system for computing bandwidth of network transmission of streaming media
JP7358637B2 (en) Resource selection method and terminal
CN107342848B (en) Self-adaptive code stream transmission method, device and equipment
CN110943998B (en) Signal transmission method, device, equipment and medium
CN106331717B (en) Video code rate self-adapting regulation method and sending ending equipment
CN113747489B (en) UDP communication quality evaluation method and device and electronic equipment
CN106452840B (en) Network terminal event reporting method and device
KR20230008122A (en) Video data processing method, device and electronic device
CN115002819B (en) Network quality assessment method and device
CN104601521A (en) Method, device and system for dynamically selecting communication transmission protocol
EP3398368A1 (en) Contextual quality of user experience analysis using equipment dynamics
US10681400B2 (en) Method and device for transmitting video
CN114466177B (en) Quality evaluation method based on HTTP transmission video stream and electronic equipment
CN110709801B (en) Method and equipment for reducing power consumption
EP3264851B1 (en) Data transmission method and device for data service
CN108462590A (en) The monitoring method and device of network flow, terminal
CN111131210B (en) Data processing method and electronic equipment
CN114039702B (en) Data transmission method, device, equipment and medium
EP4054242A1 (en) Method, apparatus and storage medium for controlling network connection
CN114465932A (en) TCP communication quality evaluation method and device and electronic equipment
CN110113641B (en) Video data transmission method, device, edge service node and medium
CN109922307B (en) Multimedia data transmission method and camera
CN114124755A (en) Network data cut-off detection method and device, terminal equipment 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