METHOD AND APPARATUS FOR DETERMINING VIDEO QUALITY, AND METHOD AND APPARATUS FOR LOCATING NETWORK FAULT

Abstract
The present invention provides a method and an apparatus for determining video quality, and a method and an apparatus for locating a network fault. The method for determining video quality includes: obtaining a network key performance indicator KPI parameter on a first network device of a plurality of network devices, where the network KPI parameter includes a first round trip time RTT between a head-end device and the first network device; determining a Transmission Control Protocol TCP throughput of the first network device based on the network KPI parameter on the first network device; and determining video quality on the first network device based on the TCP throughput and a played video amount of the first network device. The present invention can accurately determine quality of a video transmitted by using the TCP protocol and accurately locate the network fault.
Description
TECHNICAL FIELD

The present invention relates to the communications field, and in particular, to a method and an apparatus for determining video quality, and a method and an apparatus for locating a network fault.


BACKGROUND

An over the top (OTT) video service means that a provider such as Youku and iQIYI provides a video head end and an application program that is installed in a terminal device such as a mobile phone, and a set-top box. The OTT video service transmits media data by using the standard Hypertext Transfer Protocol (HTTP)/Transmission Control Protocol (TCP), and can segment a large video file into videos of different sizes and quickly transmit the videos to a terminal used by a user, so that the user can download the videos when watching. A video mean opinion score (MOS-V) is a commonly-used evaluation criterion for measuring quality of a network video.


In an existing OTT video quality evaluation method, a video stream mirroring manner is used to export a video stream on each network device in a video network, detect data such as a TCP throughput and an actual played amount of the video stream, evaluate video quality of this node by calculating a MOS-V value on the network device, and may further locate a network fault based on MOS-V values on a plurality of network devices in the video network when the video network is faulty.


However, the TCP protocol has a natural packet loss retransmission mechanism. When detecting a packet loss, a TCP receive end notifies a TCP transmit end of a sequence number of a lost packet, and the TCP transmit end retransmits the lost packet, reduces a sending rate of the TCP transmit end by half, and then gradually increases the sending rate. When a packet loss occurs anywhere in the video network, the TCP sending rate on the entire video network drastically drops. As a result, the terminal device cannot receive sufficient packets to support video playing, MOS-V values on all network devices in the video network are extremely low, and the network fault of the video network cannot be located by using the MOS-V values on the plurality of network devices in the video network.


Therefore, the existing method for determining video quality is not applicable to TCP transmission.


SUMMARY

Embodiments of the present invention provide a method and an apparatus for determining video quality, so as to accurately determine quality of a video transmitted by using the TCP protocol.


Embodiments of the present invention further provide a method and an apparatus for locating a network fault, so as to accurately locate the network fault.


According to a first aspect, the present invention provides a method for determining video quality, and the method includes: obtaining a network key performance indicator KPI parameter on a first network device of a plurality of network devices, where the network KPI parameter includes a first round trip time RTT between a head-end device and the first network device; determining a Transmission Control Protocol TCP throughput of the first network device based on the network KPI parameter on the first network device; and determining video quality on the first network device based on the TCP throughput and a played video amount of the first network device.


In the method for determining video quality provided in the present invention, the video quality is determined by using a KPI parameter of a network layer, and video quality on an entire link is not reduced due to impact of a TCP packet loss retransmission mechanism. Therefore, quality of a video transmitted by using the TCP protocol can be accurately determined.


With reference to the first aspect, in a first possible implementation of the first aspect, the determining a Transmission Control Protocol TCP throughput of the first network device based on the network KPI parameter on the first network device includes: determining a first packet loss rate of the first network device based on the first RTT; and determining the TCP throughput of the first network device based on the first RTT and the first packet loss rate.


Because accuracy of an RTT measured in a live network is higher than that of a packet loss rate measured in the live network, the packet loss rate with higher accuracy can be obtained based on the measured RTT.


In the method for determining video quality provided in the present invention, higher accuracy of the video quality is determined based on the first RTT measured on the first network device and the packet loss rate with higher accuracy obtained based on the first RTT.


With reference to the first possible implementation of the first aspect, in a second possible implementation of the first aspect, the determining a first packet loss rate of the first network device based on the first RTT includes: determining a first corrected RTT of the first network device based on the first RTT, where the first corrected RTT is obtained after the first RTT is corrected; and searching a preset mapping table based on the first corrected RTT, to obtain a first mapping entry corresponding to the first corrected RTT, and determining a packet loss rate in the first mapping entry as the first packet loss rate of the first network device, where each entry in the mapping table includes a correspondence between an RTT and a packet loss rate.


Optionally, a video network system may obtain a mapping relationship between the RTT and the packet loss rate in advance based on RTTs collected in the live network in different time periods and packet loss rates corresponding to the RTTs, to generate the mapping table.


In the method for determining video quality provided in the present invention, the preset mapping table may be searched based on the first RTT measured on the first network device, to obtain the first packet loss rate with higher accuracy. The video quality with higher accuracy is determined based on the measured first RTT and the first packet loss rate with higher accuracy.


With reference to the second possible implementation of the first aspect, in a third possible implementation of the first aspect, the determining the TCP throughput of the first network device based on the first RTT and the first packet loss rate includes: determining the TCP throughput of the first network device based on the first corrected RTT and the first packet loss rate.


In the method for determining video quality provided in the present invention, accuracy of the video quality on the first network device can be further improved by using the first corrected RTT with higher accuracy and the first packet loss rate with higher accuracy.


With reference to the second or the third possible implementation of the first aspect, in a fourth possible implementation of the first aspect, the determining a first corrected RTT of the first network device based on the first RTT includes: obtaining a second RTT between the head-end device and a second network device, and a third RTT between the first network device and the second network device; and determining the first corrected RTT of the first network device based on the first RTT, the second RTT, and the third RTT.


In the method for determining video quality provided in the present invention, the first RTT is corrected by using relative accuracy of the first RTT, the second RTT, and the third RTT, so as to obtain the first corrected RTT with higher accuracy. The video quality is determined based on the first corrected RTT and the first packet loss rate, so as to further improve accuracy of the determined video quality.


With reference to the fourth possible implementation of the first aspect, in a fifth possible implementation of the first aspect, if a video stream successively passes through the second network device and the first network device after being sent from the head-end device, the first corrected RTT of the first network device meets one of the following formulas:





if RTTOB≥2*(RTTOA+RTTAB),RTT′OB=1.5*(RTTOA+RTTAB);





if RTTOB≥1.5*(RTTOA+RTTAB),RTT′OB=1.2*(RTTOA+RTTAB); and





if RTTOB≤0.5*(RTTOA+RTTAB),RTT′OB=0.75*(RTTOA+RTTAB), where


RTT′OB represents the first corrected RTT, RTTOB represents the first RTT, RTTOA represents the second RTT, and RTTAB represents the third RTT.


With reference to the fourth possible implementation of the first aspect, in a sixth possible implementation of the first aspect, if a video stream successively passes through the first network device and the second network device after being sent from the head-end device, and a plurality of network devices exist between the head-end device and the first network device, the determining the first corrected RTT of the first network device based on the first RTT, the second RTT, and the third RTT includes: determining a second corrected RTT of the second network device based on the first RTT, the second RTT, and the third RTT, where the second corrected RTT is obtained after the second RTT is corrected; and determining the first corrected RTT based on the second corrected RTT and the third RTT.


With reference to the sixth possible implementation of the first aspect, in a seventh possible implementation of the first aspect, the first corrected RTT is determined according to the following formula:






RTT′
OA
=RTT′
OB
−RTT
AB, where


RTT′OA represents the first corrected RTT, RTT′OB represents the second corrected RTT, and RTTAB represents the third RTT.


With reference to any one of the second to the seventh possible implementations of the first aspect, in an eighth possible implementation of the first aspect, the network KPI parameter further includes a maximum bandwidth MaxBW of the first network device; and the TCP throughput of the first network device is determined according to the following formula:







Throughput


Min


(


WS

RTT



,


MSS

RTT



*

1


p





,
MaxBW

)



,




where


Throughput represents the TCP throughput, RTT′ represents the first corrected RTT, p′ represents the first packet loss rate, WS represents a congestion window, and MSS represents a maximum packet length.


With reference to any one of the first aspect, or the first to the eighth possible implementations of the first aspect, in a ninth possible implementation of the first aspect, the determining video quality on the first network device based on the TCP throughput and a played video amount of the first network device includes: determining a video mean opinion score MOS-V value on the first network device based on the TCP throughput and the played video amount of the first network device.


With reference to the ninth possible implementation of the first aspect, in a tenth possible implementation of the first aspect, the method further includes: sending a notification message to a control center, where the notification message is used to notify the MOS-V value on the first network device, so that the control center determines a location of a video network fault based on a MOS-V value on each of the plurality of the network devices.


Optionally, the apparatus for determining video quality may be deployed on each network device. After determining video quality on the network device in which each apparatus for determining video quality is located, each apparatus for determining video quality may report the video quality to the control center of the video network system, so that the control center monitors and manages video quality of an entire network. In addition, when a network link is faulty, the control center may further determine a location of the network fault based on the MOS-V value on each network device.


With reference to the ninth possible implementation of the first aspect, in an eleventh possible implementation of the first aspect, the method further includes: determining a location of a video network fault based on a MOS-V value on each of the plurality of the network devices.


Optionally, the apparatus for determining video quality may be the control center. After obtaining the MOS-V value on each network device in the video network system, the control center may determine the location of the network fault based on the MOS-V value on each network device.


According to a second aspect, the present invention provides a method for locating a network fault, and the method includes: obtaining a first Transmission Control Protocol TCP throughput, on a first network device, of a first video stream sent by a head-end device, and a second TCP throughput, on a second network device, of a second video stream sent by the head-end device, where content of the first video stream is the same as that of the second video stream, a destination Internet Protocol IP address of the first video stream is an IP address of the first network device, a destination IP address of the second video stream is an IP address of the second network device, and the second video stream is sent to the second network device through the first network device; and determining a location of the video network fault based on the first TCP throughput and the second TCP throughput.


In the method for locating a network fault provided in the present invention, the first Transmission Control Protocol TCP throughput, on the first network device, of the first video stream whose destination IP address is the IP address of the first network device, and the second TCP throughput, on the second network device, of the second video stream whose destination IP address is the IP address of the second network device are obtained. The content of the first video stream is the same as that of the second video stream, the second video stream is sent to the second network device through the first network device, and the location of the video network fault is determined based on the first TCP throughput and the second TCP throughput. The location of the video network fault is accurately determined.


With reference to the second aspect, in a first possible implementation of the second aspect, the determining a location of the video network fault based on the first TCP throughput and the second TCP throughput includes: determining a first MOS-V value of the first video stream on the first network device, and a second MOS-V value of the second video stream on the second network device based on the first TCP throughput and the second TCP throughput; and determining the location of the video network fault based on the first MOS-V value and the second MOS-V value.


It should be understood that because videos of different types have different requirements for a TCP throughput, for example, a high-definition video and a standard-definition video bring greatly different user experience effects in the case of a same TCP throughput. Therefore, video quality of the first video stream on the first network device and video quality of the second video stream on the second network device can be further evaluated by using a MOS-V value.


In the method for locating a network fault provided in the present invention, the location of the network fault can be more accurately determined by using the MOS-V value of the first video stream on the first network device and the MOS-V value of the second video stream on the second network device.


With reference to the first possible implementation of the second aspect, in a second possible implementation of the second aspect, the determining the location of the video network fault based on the first MOS-V value and the second MOS-V value includes: if both the first MOS-V value and the second MOS-V value are less than a first threshold, determining that the video network fault occurs between the head-end device and the first network device; or if the second MOS-V value is far less than the first MOS-V value, and the second MOS-V value is less than the first threshold, determining that the video network fault occurs between the first network device and the second network device.


According to a third aspect, the present invention provides an apparatus for determining video quality, configured to perform the method in the first aspect or any possible implementation of the first aspect. Specifically, the apparatus includes units configured to perform the method in the first aspect or any possible implementation of the first aspect.


According to a fourth aspect, the present invention provides an apparatus for locating a network fault, configured to perform the method in the second aspect or any possible implementation of the second aspect. Specifically, the apparatus includes units configured to perform the method in the second aspect or any possible implementation of the second aspect.


According to a fifth aspect, the present invention provides an apparatus for determining video quality, where the apparatus includes a receiver, a transmitter, a memory, a processor, and a bus system. The receiver, the transmitter, the memory, and the processor are connected by using the bus system. The memory is configured to store an instruction. The processor is configured to execute the instruction stored in the memory, and control the transmitter to transmit a signal. When executing the instruction stored in the memory, the processor can implement the method in the first aspect or any possible implementation of the first aspect.


According to a sixth aspect, the present invention provides an apparatus for locating a network fault, where the apparatus includes a receiver, a transmitter, a memory, a processor, and a bus system. The receiver, the transmitter, the memory, and the processor are connected by using the bus system. The memory is configured to store an instruction. The processor is configured to execute the instruction stored in the memory, and control the transmitter to transmit a signal. When executing the instruction stored in the memory, the processor can implement the method in the second aspect or any possible implementation of the second aspect.


According to a seventh aspect, the present invention provides a computer-readable medium, configured to store a computer program, where the computer program includes an instruction that is used to perform the method in the first aspect or any possible implementation of the first aspect.


According to an eighth aspect, the present invention provides a computer-readable medium, configured to store a computer program, where the computer program includes an instruction that is used to perform the method in the second aspect or any possible implementation of the second aspect.





BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the present invention more clearly, the following briefly describes the accompanying drawings required for describing the embodiments.



FIG. 1 is a schematic block diagram of a video network system according to an embodiment of the present invention;



FIG. 2 is another schematic block diagram of a video network system according to an embodiment of the present invention;



FIG. 3 is a schematic flowchart of a method for determining video quality according to an embodiment of the present invention;



FIG. 4 is a schematic scenario diagram of another method for determining video quality according to an embodiment of the present invention;



FIG. 5 is a schematic flowchart of a method for locating a network fault according to an embodiment of the present invention;



FIG. 6 is a schematic scenario diagram of another method for locating a network fault according to an embodiment of the present invention;



FIG. 7 is a schematic block diagram of an apparatus for determining video quality according to an embodiment of the present invention;



FIG. 8 is a schematic block diagram of an apparatus for locating a network fault according to an embodiment of the present invention;



FIG. 9 is a schematic block diagram of another apparatus for determining video quality according to an embodiment of the present invention; and



FIG. 10 is a schematic block diagram of another apparatus for locating a network fault according to an embodiment of the present invention.





DESCRIPTION OF EMBODIMENTS

The following describes the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention.



FIG. 1 shows a schematic block diagram of a video network system 100 applied to an embodiment of the present invention. As shown in FIG. 1, the video network system 100 includes a head-end device 110, at least one network device (the figure shows a network device 120 and a network device 130), at least one terminal device 140, and at least one apparatus for determining video quality (the figure shows an apparatus 150 for determining video quality and an apparatus 160 for determining video quality). A video stream sent by the head-end device 110 is transmitted to the terminal device 140 by successively passing through the network device 120 and the network device 130, the apparatus 150 for determining video quality is configured to determine video quality on the network device 120, and the apparatus 160 for determining video quality is configured to determine video quality on the network device 130.


Optionally, the video network system may further include a control center. The control center may receive video quality reported by each of a plurality of apparatuses for determining video quality, uniformly manage and monitor quality of a video service of an entire network, and in addition, may locate a video network fault when detecting an exception of a video network. However, this embodiment of the present invention is not limited thereto.


Optionally, the terminal device in this embodiment of the present invention may be a device that can decode the video stream, such as a set-top box, a television, a mobile phone, a computer, or a tablet computer.


Optionally, the network device in this embodiment of the present invention may be a core router (CR), a broadband remote access server (BRAS), a LAN switch (LSW), an optical line terminal (OLT), a home gateway (HGW), or the like, and this is not limited in this embodiment of the present invention.


Optionally, the apparatus for determining video quality in this embodiment of the present invention may be mounted as a standalone device near the network device or the terminal device, or may be integrated into the network device or the terminal device, so as to determine the video quality on the network device or the terminal device.



FIG. 2 shows a schematic block diagram of another video network system 200 applied to an embodiment of the present invention. As shown in FIG. 2, the video network system 200 includes a head-end device 210, at least one network device (the figure shows a network device 220 and a network device 230), at least one terminal device 240, and an apparatus 250 for determining video quality. A video stream sent by the head-end device 210 is transmitted to the terminal device 240 by successively passing through the network device 220 and the network device 230, the apparatus 250 for determining video quality is configured to determine video quality on the network device 220 and the network device 230. It can be seen that, different from FIG. 1, video quality on all network devices is determined by a same apparatus 250 for determining video quality in FIG. 2.


Optionally, the apparatus for determining video quality may be a control center of the video network system. The control center uniformly manages and monitors quality of a video service of an entire network, and in addition, may further locate a video network fault based on the video quality on each of a plurality of network devices when detecting an exception of a video network. However, this embodiment of the present invention is not limited thereto.



FIG. 3 shows a schematic flowchart of a method 300 for determining video quality according to an embodiment of the present invention. The method 300 is applied to the video network system in the embodiment of the present invention shown in FIG. 1 or FIG. 2. For example, the method may be performed by the apparatus for determining video quality in FIG. 1 or FIG. 2. However, this embodiment of the present invention is not limited thereto.


S310. Obtain a network key performance indicator KPI parameter on a first network device of a plurality of network devices, where the network KPI parameter includes a first round trip time RTT between a head-end device and the first network device.


S320. Determine a Transmission Control Protocol TCP throughput of the first network device based on the network KPI parameter on the first network device.


S330. Determine video quality on the first network device based on the TCP throughput and a played video amount of the first network device.


In the method for determining video quality provided in the present invention, the video quality is determined by using a KPI parameter of a network layer, and video quality on an entire link is not reduced due to impact of a TCP packet loss retransmission mechanism. Therefore, quality of a video transmitted by using the TCP protocol can be accurately determined.


It should be understood that the network KPI parameter includes an RTT, a packet loss rate, and a physical bandwidth. The physical bandwidth is a static indicator and can be obtained in an out-of-band or a static manner. The RTT and the packet loss rate are dynamic indicators, and vary according to a network condition. Therefore, the RTT and the packet loss rate need to be monitored and obtained in real time.


Optionally, the apparatus for determining video quality may obtain the RTT and the packet loss rate on the network device by using the Two-Way Active Measurement Protocol (TWAMP) deployed in a live network, or may obtain the RTT and the packet loss rate on the network device by coloring a packet, and this embodiment of the present invention is not limited thereto.


Specifically, in S310, the video stream sent by the head-end device successively passes through the first network device and the second network device, and finally is transmitted to the terminal device for being decoded and played. The apparatus for determining video quality may obtain a first RTT between the head-end device and the first network device.


Specifically, in S320, the apparatus for determining video quality may determine a first packet loss rate of the first network device based on the first RTT, and determine the TCP throughput of the first network device based on the first RTT and the first packet loss rate.


It should be understood that due to instantaneity and uncertainty of a network change, the RTT and the packet loss rate only can generally be obtained in a single measurement or a plurality of measurements in a short time. Therefore, there is a particular degree of error rate in measurement accuracy. For example, measurement accuracy of the RTT is higher than that of the packet loss rate. Therefore, a packet loss rate with higher accuracy corresponding to an RTT with higher accuracy can be obtained based on the RTT.


It should further be understood that there is a particular mapping relationship between the RTT and the packet loss rate. For example, in a case of no traffic or light load in a network, when the round trip time in the network is RTT0, the packet loss rate is approximately 0 or close to 0. When the round trip time continues to increase and reaches RTT1, packet loss starts to occur in the network, and the packet loss rate is greater than 0. When network traffic continues to increase and reaches heavy load, the round trip time in the network is RTT2. In this case, the packet loss rate is approximately 1. Under a fixed network condition, the packet loss rate is generally caused by heavy load of the network. Therefore, the packet loss rate with higher accuracy can be obtained by using the RTT and a preset mapping table, and each entry in the mapping table includes the mapping relationship between the RTT and the packet loss rate.


Optionally, before S320, the video network system may obtain the mapping relationship between the RTT and the packet loss rate in advance based on RTTs collected in the live network in different time periods and the packet loss rates corresponding to the RTTs, to generate the mapping table, and send the mapping table to the apparatus for determining video quality, so that the apparatus for determining video quality obtains a corrected RTT based on the mapping table and the first RTT on the first network device. However, this embodiment of the present invention is not limited thereto.


Optionally, the mapping relationship between the RTT and the packet loss rate may be represented in a form such as a mapping table, a line graph, a histogram, and this is not limited in this embodiment of the present invention.


It should be understood that, because accuracy of the RTT measured in the live network is higher than that of the packet loss rate measured in the live network, the packet loss rate with higher accuracy can be obtained based on the measured RTT.


Specifically, the apparatus for determining video quality may correct the first RTT of the first network device to obtain a first corrected RTT of the first network device, search the preset mapping table based on the first corrected RTT, to obtain a first mapping entry corresponding to the first corrected RTT, and determine a packet loss rate in the first mapping entry as the first packet loss rate of the first network device. Each entry in the mapping table includes a correspondence between the RTT and the packet loss rate.


Optionally, the apparatus for determining video quality may determine the video quality based on the first RTT measured on the first network device and the first packet loss rate with higher accuracy obtained based on the first RTT.


Optionally, the apparatus for determining video quality may further determine the video quality based on the first corrected RTT after the first RTT on the first network device is corrected and the first packet loss rate.


In the method for determining video quality in this embodiment of the present invention, accuracy of the video quality on the first network device can be further improved by using the first corrected RTT with higher accuracy and the first packet loss rate with higher accuracy.


Specifically, the apparatus for determining video quality may obtain the first RTT between the head-end device and the first network device, a second RTT between the head-end device and the second network device, and a third RTT between the first network device and the second network device, and correct the first RTT based on the first RTT, the second RTT, and the third RTT, to obtain the first corrected RTT of the first network device.


In an optional embodiment, it is assumed that the video stream sent by the head-end device successively passes through the second network device and the first network device. The second network device is closer to the head-end device, stability of the network KPI parameter is better, accuracy of the second RTT, the third RTT, and the first RTT obtained by the apparatus for determining video quality successively decreases. Therefore, the first RTT may be corrected according to one of formulas (1) to (3), to obtain the first corrected RTT.





if RTTOB≥2*(RTTOA+RTTAB),RTT′OB=1.5*(RTTOA+RTTAB)  (1);





if RTTOB≥1.5*(RTTOA+RTTAB),RTT′OB=1.2*(RTTOA+RTTAB)  (2); or





if RTTOB≤0.5*(RTTOA+RTTAB),RTT′OB=0.75*(RTTOA+RTTAB)  (3), where


RTT′OB represents the first corrected RTT, RTTOB represents the first RTT, RTTOA represents the second RTT, and RTTAB represents the third RTT.


In the method for determining video quality provided in the present invention, the first RTT is corrected by using relative accuracy of the first RTT, the second RTT, and the third RTT, so as to obtain the first corrected RTT with higher accuracy. The video quality is determined based on the first corrected RTT and the first packet loss rate, so as to further improve accuracy of the determined video quality.


In another optional embodiment, it is assumed that the video stream sent by the head-end device successively passes through the first network device and the second network device, there are more other network devices between the head-end device and the first network device, and there is no or fewer other network devices between the first network device and the second network device. Therefore, due to accumulation of RTTs by a plurality of other network devices in a video stream transmission process and a loss on a video link, accuracy of the first RTT, the third RTT, and the second RTT successively decreases. Therefore, the first RTT may be corrected based on the second corrected RTT and the third RTT by using a formula (4), to obtain the first corrected RTT.






RTT′
OA
=RTT′
OB
−RTT
AB  (4), where


RTT′OA represents the first corrected RTT, RTT′OB represents the second corrected RTT, and RTTAB represents the third RTT.


Optionally, the second corrected RTT may be obtained according to the method in the foregoing embodiment. Alternatively, another method may be used to correct the second RTT based on the first RTT, the second RTT, and the third RTT, so as to obtain the second corrected RTT. This is not limited in this embodiment of the present invention.


Specifically, in S320, after obtaining the first corrected RTT and the first packet loss rate, the apparatus for determining video quality may determine the TCP throughput of the first network device according to a formula (5).










Throughput


Min


(


WS

RTT



,


MSS

RTT



*

1


p





,
MaxBW

)



,




(
5
)







where


Throughput represents the TCP throughput, RTT′ represents the first corrected RTT, p′ represents the first packet loss rate, WS represents a congestion window, and MSS represents a maximum packet length.


Optionally, in a video network system shown in FIG. 1, the apparatus for determining video quality may be deployed on each network device, and report video quality on the network device to a control center by using a notification message after obtaining the video quality on the network device, so that the control center uniformly monitors video quality of all network devices in the video network system, and can immediately locate a network fault based on video quality on each network device when the video network is faulty.


Optionally, in a video network system shown in FIG. 2, the apparatus for determining video quality may be a control center in the video network system, and the apparatus for determining video quality may obtain video quality on each network device in the video network system, and locate a network fault based on the video quality on each network device.


Specifically, in S330, the apparatus for determining video quality may receive a video description file sent by a video head end, and the video description file includes playing information such as a video file size, playing duration, and a bit rate. The apparatus for determining video quality may estimate, according to the video description file, a currently played video amount of the terminal device under normal playing, and determine the video quality on the first network device based on the TCP throughput and the played video amount of the first network device.


Optionally, the apparatus for determining video quality may calculate, based on the TCP throughput and the played video amount of the first network device, a MOS-V value on the first network device for evaluating the video quality, or may use another video quality evaluation method to evaluate the video quality, and this is not limited in this embodiment of the present invention.


It should be understood that the MOS-V value is usually a value within a range of 1 to 5. A larger value indicates better user experience. Generally, a user considers that video quality with the MOS-V value of at least 3.6 is acceptable.



FIG. 4 shows a schematic scenario diagram of a method for determining video quality according to an embodiment of the present invention. As shown in FIG. 4, a video stream that is sent by an OTT video platform to a terminal device successively passes through a CR, a BRAS, an LSW, an OLT, and an HGW.


In an optional embodiment, the video network system may deploy a first apparatus for determining video quality on the OLT, deploy a second apparatus for determining video quality on the CR, separately detect video quality on the CR and the OLT, and report, to a control center, the video quality detected by the foregoing two apparatuses for determining video quality, so that the control center determines, based on the video quality on the CR and the OLT, whether there is a network fault on a transmission link that is passed through by the video stream transmitted from a head-end device to the OLT. If there is a network fault, the network fault can be further located.


Specifically, the first apparatus for determining video quality deployed on the OLT may obtain a first RTT between the OTT video platform and the OLT, obtain a first packet loss rate of the OLT based on the first RTT and a preset mapping table, and determine the video quality on the OLT based on the first RTT and the first packet loss rate.


Optionally, the second apparatus for determining video quality deployed on the CR may obtain a second RTT between the OTT video platform and the CR. Because the CR is closer to the OTT video platform than the OLT, accuracy of the second RTT is higher than that of the first RTT. Therefore, the first apparatus for determining video quality may correct the first RTT on the OLT based on the second RTT of the CR, to obtain a first corrected RTT, and determine video quality on the OLT based on the first corrected RTT and the first packet loss rate.


Optionally, the first apparatus for determining video quality may further obtain a third RTT between the CR and the OLT, determine the first corrected RTT of the OLT according to one of the formulas (1) to (3) described above, determine the first packet loss rate of the OLT based on the first corrected RTT and the preset mapping table, and determine a TCP throughput of the OLT based on the first corrected RTT and the first packet loss rate of the OLT.


Optionally, the first apparatus for determining video quality may determine a MOS-V value on the OLT based on the throughput and a played video amount of the OLT, or determine the video quality on the OLT by using another video quality evaluation method, and this is not limited in this embodiment of the present invention.


Optionally, the first apparatus for determining video quality and the second apparatus for determining video quality may separately send a notification message to the control center, to notify the video quality on the CR and the OLT, so that the control center may determine, based on the video quality on the CR and the OLT, whether there is a network fault on the transmission link between the head-end device of the OTT video platform and the OLT. If there is a network fault, the network fault can be further located.


Specifically, as shown in FIG. 4, it is assumed that a second MOS-V value on the CR obtained by the control center is 4.5, a first MOS-V value on the OLT is 4.2, and the two MOS-V values are both greater than a first threshold, it may be considered that there is no fault on a video link between the CR and the OLT.


Optionally, the control center may obtain the first threshold or configure the first threshold in the control center, the first threshold may be a MOS-V value of video quality acceptable to a user, and this is not limited in this embodiment of the present invention.


In another optional embodiment, the video network system may deploy a first apparatus for determining video quality on the OLT, deploy a second apparatus for determining video quality on the HGW, separately detect video quality on the HGW and the OLT, and report, to the control center, the video quality detected by the foregoing two apparatuses for determining video quality, so that the control center determines, based on the video quality on the HGW and the OLT, whether there is a network fault on a transmission link that is passed through by the video stream transmitted from the head-end device to the HGW. If there is a network fault, the network fault can be further located.


Specifically, the first apparatus for determining video quality deployed on the OLT may obtain the first RTT between the OTT video platform and the OLT, obtain the first packet loss rate of the OLT based on the first RTT and the preset mapping table, and determine the video quality on the OLT based on the first RTT and the first packet loss rate.


Optionally, the second apparatus for determining video quality deployed on the HGW may obtain a second RTT between the OTT video platform and the HGW, and the first apparatus for determining video quality may further obtain a third RTT between the OLT and the HGW. Because there are a plurality of network devices between the OLT and the OTT video platform, and accuracy of the RTT decreases after each network device is passed through, accuracy of the third RTT, the first RTT, and the second RTT successively decreases. The first apparatus for determining video quality may correct the first RTT on the OLT based on the second RTT of the HGW, to obtain a first corrected RTT, and determine the video quality on the OLT based on the first corrected RTT and the first packet loss rate.


Optionally, the first apparatus for determining video quality may obtain a second corrected RTT on the HGW, determine the first corrected RTT on the OLT according to the foregoing formula (4), determine the first packet loss rate based on the first corrected RTT and the preset mapping table, and determine the TCP throughput of the OLT based on the first corrected RTT and the first packet loss rate.


Optionally, the second corrected RTT may be obtained according to the method in the foregoing embodiment. Alternatively, another method may be used to correct the second RTT based on the first RTT, the second RTT, and the third RTT, so as to obtain the second corrected RTT. This is not limited in this embodiment of the present invention.


Optionally, the first apparatus for determining video quality may determine the MOS-V value on the OLT based on the throughput and the played video amount of the OLT, or determine the video quality on the OLT by using another video quality evaluation method, and this is not limited in this embodiment of the present invention.


Optionally, the first apparatus for determining video quality and the second apparatus for determining video quality may separately send a notification message to the control center, to notify the video quality on the OLT and the HGW, so that the control center may determine, based on the video quality on the OLT and the HGW, whether there is a network fault on the transmission link between the head-end device of the OTT video platform and the HGW. If there is a network fault, the network fault can be further located.


Specifically, as shown in FIG. 4, it is assumed that a first MOS-V value on the OLT obtained by the control center is 4.2, a second MOS-V value on the HGW is 2, and the second MOS-V value on the HGW is less than the first threshold, it may be considered that there is a network fault on a video link between the OLT and the HGW.


Optionally, the control center may obtain the first threshold or configure the first threshold in the control center, the first threshold may be the MOS-V value of the video quality acceptable to the user, and this is not limited in this embodiment of the present invention.



FIG. 5 shows a schematic flowchart of a method 500 for locating a network fault according to an embodiment of the present invention. The method 500 is applied to the video network system in the embodiment of the present invention shown in FIG. 2. For example, the method may be performed by an apparatus for locating a network fault, and the apparatus for locating a network fault may be, for example, the apparatus for determining video quality in FIG. 2. However, this embodiment of the present invention is not limited thereto.


S510. Obtain a first Transmission Control Protocol TCP throughput, on a first network device, of a first video stream sent by a head-end device, and a second TCP throughput, on a second network device, of a second video stream sent by the head-end device, where content of the first video stream is the same as that of the second video stream, a destination Internet Protocol IP address of the first video stream is an IP address of the first network device, a destination IP address of the second video stream is an IP address of the second network device, and the second video stream is sent to the second network device through the first network device.


S520. Determine a location of the video network fault based on the first TCP throughput and the second TCP throughput.


Specifically, the apparatus for locating a network fault may obtain the first Transmission Control Protocol TCP throughput, on the first network device, of the first video stream whose destination IP address is the IP address of the first network device, and the second TCP throughput, on the second network device, of the second video stream whose destination IP address is the IP address of the second network device. The content of the first video stream is the same as that of the second video stream, the second video stream is sent to the second network device through the first network device, and the location of the video network fault is determined based on the first TCP throughput and the second TCP throughput. The location of the video network fault can be accurately determined.


It should be understood that some parameters of the first video stream sent by the head-end device and some parameters of the second video stream sent by the head-end device need to be consistent, for example, a video server address, a stream bit rate, and a stream resolution.


Optionally, if load of a video server is relatively light, a same video (segment) may be used for the first video stream and the second video stream. However, in consideration of hardware performance, a similar video stream may also be used.


Specifically, the apparatus for locating a network fault may obtain the first TCP throughput of the first video stream on the first network device and the second TCP throughput of the second video stream on the second network device, and locate the network fault in the video network system based on the first TCP throughput and the second TCP throughput.


Optionally, the apparatus for locating a network fault may determine a first MOS-V value on the first network device based on the first TCP throughput and a first played video amount on the first network device, determine a second MOS-V value on the second network device based on the second TCP throughput and a second played video amount on the second network device, and locate the network fault based on the first MOS-V value and the second MOS-V value. This is not limited in this embodiment of the present invention.


It should be understood that because videos of different types have different requirements for a TCP throughput, for example, a high-definition video and a standard-definition video bring greatly different user experience effects in the case of a same TCP throughput. Therefore, determining video quality of a video stream by using a MOS-V can further improve accuracy of locating the network fault.


It should be understood that the NOS-V value is usually a value within a range of 1 to 5. A larger value indicates better user experience. Generally, a user considers that video quality with the MOS-V value of at least 3.6 is acceptable.


It should further be understood that a video head end may send a video description file of the first video stream and a video description file of the second video stream respectively to the first network device and the second network device. A video description file includes playing information such as a video file size, playing duration, and a bit rate, so that the apparatus for locating a network fault may estimate a currently played video amount on the first network device and a currently played video amount on the second network device according to the video description file.


In an optional embodiment, if both the first MOS-V value of the first video stream on the first network device and the second MOS-V value of the second video stream on the second network device are less than a first threshold, the apparatus for locating a network fault determines that the video network fault occurs on a video link between the head-end device and the first network device. If the second MOS-V value of the second video stream on the second network device is far less than the first MOS-V value of the first video stream on the first network device, and the second MOS-V value of the second video stream on the second network device is less than the first threshold, the apparatus for locating a network fault determines that the video network fault occurs on the video link between the first network device and the second network device.


Optionally, the apparatus for locating a network fault may obtain the first threshold or configure the first threshold in the apparatus for locating a network fault, the first threshold may be the MOS-V value of the video quality acceptable to the user, and this is not limited in this embodiment of the present invention.


In an optional embodiment, FIG. 6 shows a schematic scenario diagram of a method for locating a network fault according to an embodiment of the present invention.


As shown in FIG. 6, an OTT video platform may send a first video stream to an OLT and send a second video stream to an HGW. Content of the first video stream is the same as that of the second video stream, the first video stream is sent to the OLT through a CR, a BRAS, and an LSW, and the second video stream is sent to the HGW through the CR, the BRAS, the LSW, and the OLT.


Specifically, the apparatus for locating a network fault may obtain video quality on the OLT and video quality on the HGW, and determine a location of the network fault based on the video quality on the OLT and the video quality on the HGW.


Optionally, the apparatus for locating a network fault may obtain a first TCP throughput of the first video stream on the OLT and a second TCP throughput of the second video stream on the HGW, and locate the network fault based on the first TCP throughput and the second TCP throughput.


Optionally, the apparatus for locating a network fault may obtain the first TCP throughput of the first video stream on the OLT and the second TCP throughput of the second video stream on the HGW, determine a first MOS-V value on the OLT based on the first TCP throughput and a played video amount, determine a second MOS-V value on the HGW based on the second TCP throughput and a played video amount, and locate the network fault based on the first MOS-V value and the second MOS-V value. This is not limited in this embodiment of the present invention.


In an optional embodiment, as shown in FIG. 6, the first MOS-V value of the first video stream on the OLT is 4.2, the second MOS-V value of the second video stream on the HGW is 2, and the apparatus for locating a network fault may determine, based on the two MOS-V values, that the video network fault occurs between the OLT and the HGW. However, this embodiment of the present invention is not limited thereto.


A method for determining video quality and a method for locating a network fault according to embodiments of the present invention are described above in detail with reference to FIG. 3 to FIG. 6, and an apparatus for determining video quality and an apparatus for locating a network fault according to embodiments of the present invention are described below with reference to FIG. 7 to FIG. 10.



FIG. 7 shows an apparatus 700 for determining video quality according to an embodiment of the present invention, and the apparatus 700 for determining video quality includes:


an obtaining unit 710, configured to obtain a network key performance indicator KPI parameter on a first network device of a plurality of network devices, where the network KPI parameter includes a first round trip time RTT between a head-end device and the first network device;


a first determining unit 720, configured to determine a Transmission Control Protocol TCP throughput of the first network device based on the network KPI parameter on the first network device obtained by the obtaining unit; and


a second determining unit 730, configured to determine video quality on the first network device based on the TCP throughput and a played video amount of the first network device determined by the first determining unit.


Optionally, the first determining unit is specifically configured to: determine a first packet loss rate of the first network device based on the first RTT, and determine the TCP throughput of the first network device based on the first RTT and the first packet loss rate.


Optionally, the first determining unit is specifically configured to: determine a first corrected RTT of the first network device based on the first RTT, where the first corrected RTT is obtained after the first RTT is corrected; and search a preset mapping table based on the first corrected RTT, to obtain a first mapping entry corresponding to the first corrected RTT, and determine a packet loss rate in the first mapping entry as the first packet loss rate of the first network device, where each entry in the mapping table includes a correspondence between an RTT and a packet loss rate.


Optionally, the first determining unit is specifically configured to determine the TCP throughput of the first network device based on the first corrected RTT and the first packet loss rate.


Optionally, the obtaining module is further configured to obtain a second RTT between the head-end device and a second network device, and a third RTT between the first network device and the second network device. The first determining unit is specifically configured to determine the first corrected RTT of the first network device based on the first RTT, the second RTT, and the third RTT.


Optionally, if a video stream successively passes through the second network device and the first network device after being sent from the head-end device, the first corrected RTT of the first network device meets one of the following formulas:





if RTTOB≥2*(RTTOA+RTTAB),RTT′OB=1.5*(RTTOA+RTTAB);





if RTTOB≥1.5*(RTTOA+RTTAB),RTT′OB=1.2*(RTTOA+RTTAB); and





if RTTOB≤0.5*(RTTOA+RTTAB),RTT′OB=0.75*(RTTOA+RTTAB), where


RTT′OB represents the first corrected RTT, RTTOB represents the first RTT, RTTOA represents the second RTT, and AB represents the third RTT.


Optionally, if the video stream successively passes through the first network device and the second network device after being sent from the head-end device, and a plurality of network devices exist between the head-end device and the first network device, the first determining unit is specifically configured to: determine a second corrected RTT of the second network device based on the first RTT, the second RTT, and the third RTT, where the second corrected RTT is obtained after the second RTT is corrected; and determine the first corrected RTT based on the second corrected RTT and the third RTT.


Optionally, the first determining unit is specifically configured to determine the first corrected RTT according to the following formula:






RTT′
OA
=RTT′
OB
−RTT
AB, where


RTTOA represents the first corrected RTT, RTT′OB represents the second corrected RTT, and RTTAB represents the third RTT.


Optionally, the network KPI parameter further includes a maximum bandwidth MaxBW of the first network device; and the first determining unit is specifically configured to determine the TCP throughput of the first network device according to the following formula:







Throughput


Min


(


WS

RTT



,


MSS

RTT



*

1


p





,
MaxBW

)



,




where


Throughput represents the TCP throughput, RTT′ represents the first corrected RTT, p′ represents the first packet loss rate, WS represents a congestion window, and MSS represents a maximum packet length.


Optionally, the second determining unit is specifically configured to determine a video mean opinion score MOS-V value on the first network device based on the TCP throughput and the played video amount of the first network device.


Optionally, the apparatus further includes a sending unit, and the sending unit is configured to send a notification message to a control center, where the notification message is used to notify the MOS-V value on the first network device, so that the control center determines a location of a video network fault based on a MOS-V value on each of the plurality of the network devices.


Optionally, the second determining unit is further configured to determine the location of the video network fault based on the MOS-V value on each of the plurality of the network devices.


It should be understood that the apparatus 700 for determining video quality herein is presented in a form of a functional unit. The term “unit” herein may refer to an application-specific integrated circuit (ASIC), an electronic circuit, a processor (for example, a shared processor, a dedicated processor, or a group of processors) configured to execute one or more software or firmware programs, a memory, a combinational logic circuit, and/or another proper component that supports the described functions. In an optional example, a person skilled in the art may understand that, the apparatus 700 for determining video quality may be specifically the apparatus for determining video quality in the foregoing embodiments, and the apparatus 700 for determining video quality may be configured to perform procedures and/or steps corresponding to the apparatus for determining video quality in the foregoing method embodiment. To avoid repetition, details are not described herein again.



FIG. 8 shows an apparatus 800 for locating a network fault according to an embodiment of the present invention, and the apparatus 800 includes:


an obtaining unit 810, configured to obtain a first Transmission Control Protocol TCP throughput, on a first network device, of a first video stream sent by a head-end device, and a second TCP throughput, on a second network device, of a second video stream sent by the head-end device, where content of the first video stream is the same as that of the second video stream, a destination Internet Protocol IP address of the first video stream is an IP address of the first network device, a destination IP address of the second video stream is an IP address of the second network device, and the second video stream is sent to the second network device through the first network device; and


a determining unit 820, configured to determine a location of the video network fault based on the first TCP throughput and the second TCP throughput that are obtained by the obtaining unit.


Optionally, the determining unit is specifically configured to: determine a first MOS-V value of the first video stream on the first network device, and a second MOS-V value of the second video stream on the second network device based on the first TCP throughput and the second TCP throughput, and determine the location of the video network fault based on the first MOS-V value and the second MOS-V value.


Optionally, the determining unit is specifically configured to: if both the first MOS-V value and the second MOS-V value are less than a first threshold, determine that the video network fault occurs between the head-end device and the first network device.


Optionally, the determining unit is specifically configured to: if the second MOS-V value is far less than the first MOS-V value, and the second MOS-V value is less than the first threshold, determine that the video network fault occurs between the first network device and the second network device.


It should be understood that the apparatus 800 for locating a network fault herein is presented in a form of a functional unit. The term “unit” herein may refer to an ASIC, an electronic circuit, a processor (for example, a shared processor, a dedicated processor, or a group of processors) configured to execute one or more software or firmware programs, a memory, a combinational logic circuit, and/or another proper component that supports the described functions. In an optional example, a person skilled in the art may understand that, the apparatus 800 for locating a network fault may be specifically the apparatus for locating a network fault in the foregoing embodiments, and the apparatus 800 for locating a network fault may be configured to perform procedures and/or steps corresponding to the apparatus for locating a network fault in the foregoing method embodiment. To avoid repetition, details are not described herein again.



FIG. 9 shows another apparatus 900 for determining video quality according to an embodiment of the present invention, and the apparatus 900 includes a processor 910, a transmitter 920, a receiver 930, a memory 940, and a bus system 950. The processor 910, the transmitter 920, the receiver 930, and the memory 940 are connected by using the bus system 950. The memory 940 is configured to store an instruction. The processor 910 is configured to execute the instruction stored in the memory 940, so as to control the transmitter 920 to transmit a signal or control the receiver 930 to receive a signal. The transmitter 920 and the receiver 930 may be communications interfaces. Specifically, the transmitter 920 may be an interface configured to receive data and/or the instruction, the receiver 930 may be an interface configured to transmit the data and/or the instruction, and specific forms of the transmitter 920 and the receiver 930 are no longer described by using an example.


It should be understood that a head-end device 900 may be configured to perform steps and/or procedures corresponding to the apparatus for determining video quality in the foregoing method embodiment. Optionally, the memory 940 may include a read-only memory and a random access memory, and provide the instruction and the data to the processor. A part of the memory may further include a nonvolatile random access memory. For example, the memory may further store information about a device type. The processor 910 may be configured to execute the instruction stored in the memory, and when the processor executes the instruction, the processor can perform the steps corresponding to the apparatus for determining video quality in the foregoing method embodiment.


It should be understood that in this embodiment of the present invention, the processor may be a central processing unit (CPU), or the processor may be another general purpose processor, a digital signal processor (DSP), an application-specific integrated circuit ASIC, a field programmable gate array (FPGA) or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor, or the processor may be any conventional processor or the like.



FIG. 10 shows another apparatus 1000 for locating a network fault according to an embodiment of the present invention, and the apparatus 1000 includes a processor 1010, a transmitter 1020, a receiver 1030, a memory 1040, and a bus system 1050. The processor 1010, the transmitter 1020, the receiver 1030, and the memory 1040 are connected by using the bus system 1050. The memory 1040 is configured to store an instruction. The processor 1010 is configured to execute the instruction stored in the memory 1040, so as to control the transmitter 1020 to transmit a signal or control the receiver 1030 to receive a signal. The transmitter 1020 and the receiver 1030 may be communications interfaces. Specifically, the transmitter 1020 may be an interface configured to receive data and/or the instruction, the receiver 1030 may be an interface configured to transmit the data and/or the instruction, and specific forms of the transmitter 1020 and the receiver 1030 are no longer described by using an example.


It should be understood that the apparatus 1000 may be specifically the apparatus for locating a network fault in the foregoing embodiments, and may be configured to execute steps and/or procedures corresponding to the apparatus for locating a network fault in the foregoing method embodiment. Optionally, the memory 1040 may include a read-only memory and a random access memory, and provide the instruction and the data to the processor. A part of the memory may further include a nonvolatile random access memory. For example, the memory may further store information about a device type. The processor 1010 may be configured to execute the instruction stored in the memory, and when the processor executes the instruction, the processor may perform the steps corresponding to the apparatus for locating a network fault in the foregoing method embodiment.


It should be understood that in this embodiment of the present invention, the processor may be a CPU, or the processor may be another general purpose processor, a DSP, an ASIC, an FPGA or another programmable logic device, a discrete gate or a transistor logic device, a discrete hardware component, or the like. The general purpose processor may be a microprocessor, or the processor may be any conventional processor or the like.


In an implementation process, steps in the foregoing methods can be implemented by using a hardware integrated logical circuit in the processor, or by using instructions in a form of software. The steps of the method disclosed with reference to the embodiments of the present invention may be directly performed by a hardware processor, or may be performed by using a combination of hardware in the processor and a software module. A software module may be located in a mature storage medium in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, or the like. The storage medium is located in the memory, and a processor executes instructions in the memory and completes the steps in the foregoing methods in combination with hardware of the processor. To avoid repetition, details are not described herein again.


In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus, and method may be implemented in other manners. For example, the described apparatus embodiment is merely an example. For example, the unit division is merely logical function division and may be other division in actual implementation. For example, a plurality of units or components may be combined or integrated into another system, or some features may be ignored or not performed. In addition, the displayed or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces, indirect couplings or communication connections between the apparatuses or units, or electrical connections, mechanical connections, or connections in other forms.


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 position, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments of the present invention.


When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a computer-readable storage medium. Based on such an understanding, the technical solutions of the present invention essentially, or the part contributing to the prior art, or all or some of the technical solutions may be implemented in the form of a software product. The software product is stored in a storage medium and includes several instructions for instructing a computer device (which may be a personal computer, a server, or a network device) to perform all or some of the steps of the methods described in the embodiments of the present invention. The foregoing storage medium includes: any medium that can store program code, such as a USB flash drive, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disc.


The foregoing descriptions are merely specific embodiments of the present invention, but are not intended to limit the protection scope of the present invention. Any modification or replacement readily figured out by a person skilled in the art within the technical scope disclosed in the present invention shall fall within the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims
  • 1. A apparatus for determining video quality comprising: a processor; anda non-transitory computer readable medium which contains computer-executable instructions;the processor is configured to execute the computer-executable instructions to perform operations comprising:obtaining a network key performance indicator (KPI) parameter on a first network device of a plurality of network devices, wherein the network KPI parameter comprises a first round trip time (RTT) between a head-end device and the first network device;determining a Transmission Control Protocol (TCP) throughput of the first network device based on the network KPI parameter on the first network device; anddetermining video quality on the first network device based on the TCP throughput and a played video amount of the first network device.
  • 2. The apparatus according to claim 1, wherein the determining a Transmission Control Protocol (TCP) throughput of the first network device based on the network KPI parameter on the first network device comprises: determining a first packet loss rate of the first network device based on the first RTT; anddetermining the TCP throughput of the first network device based on the first RTT and the first packet loss rate.
  • 3. The apparatus according to claim 2, wherein the determining a first packet loss rate of the first network device based on the first RTT comprises: determining a first corrected RTT of the first network device based on the first RTT, wherein the first corrected RTT is obtained after the first RTT is corrected; andsearching a preset mapping table based on the first corrected RTT, to obtain a first mapping entry corresponding to the first corrected RTT, and determining a packet loss rate in the first mapping entry as the first packet loss rate of the first network device, wherein each entry in the mapping table comprises a correspondence between an RTT and a packet loss rate;wherein the determining the TCP throughput of the first network device based on the first RTT and the first packet loss rate comprises:determining the TCP throughput of the first network device based on the first corrected RTT and the first packet loss rate.
  • 4. The apparatus according to claim 3, wherein the determining a first corrected RTT of the first network device based on the first RTT comprises: obtaining a second RTT between the head-end device and a second network device, and a third RTT between the first network device and the second network device; anddetermining the first corrected RTT of the first network device based on the first RTT, the second RTT, and the third RTT.
  • 5. The apparatus according to claim 4, wherein if a video stream successively passes through the second network device and the first network device after being sent from the head-end device, the first corrected RTT of the first network device meets one of the following formulas: if RTTOB≥2*(RTTOA+RTTAB),RTT′OB=1.5*(RTTOA+RTTAB);if RTTOB≥1.5*(RTTOA+RTTAB),RTT′OB=1.2*(RTTOA+RTTAB); andif RTTOB≤0.5*(RTTOA+RTTAB),RTT′OB=0.75*(RTTOA+RTTAB), whereRTT′OB represents the first corrected RTT, RTTOB represents the first RTT, RTTOA represents the second RTT, and RTTAB represents the third RTT.
  • 6. The apparatus according to claim 4, wherein if a video stream successively passes through the first network device and the second network device after being sent from the head-end device, and a plurality of network devices exist between the head-end device and the first network device, the determining the first corrected RTT of the first network device based on the first RTT, the second RTT, and the third RTT comprises: determining a second corrected RTT of the second network device based on the first RTT, the second RTT, and the third RTT, wherein the second corrected RTT is obtained after the second RTT is corrected; anddetermining the first corrected RTT based on the second corrected RTT and the third RTT.
  • 7. The apparatus according to claim 6, wherein the first corrected RTT is determined according to the following formula: RTT′OA=RTT′OB−RTTAB, whereRTT′OA represents the first corrected RTT, RTT′OB represents the second corrected RTT, and RTTAB represents the third RTT.
  • 8. The apparatus according to claim 3, wherein the network KPI parameter further comprises a maximum bandwidth MaxBW of the first network device; and the TCP throughput of the first network device is determined according to the following formula:
  • 9. The apparatus according to claim 1, wherein the determining video quality on the first network device based on the TCP throughput and a played video amount of the first network device comprises: determining a video mean opinion score MOS-V value on the first network device based on the TCP throughput and the played video amount of the first network device.
  • 10. The apparatus according to claim 9, wherein the processor is further configured to execute the computer-executable instructions to perform an operation comprising: sending a notification message to a control center, wherein the notification message is used to notify the MOS-V value on the first network device, so that the control center determines a location of a video network fault based on a MOS-V value on each of the plurality of the network devices.
  • 11. The apparatus according to claim 9, wherein the processor is further configured to execute the computer-executable instructions to perform an operation comprising: determining a location of a video network fault based on a MOS-V value on each of the plurality of the network devices.
  • 12. A apparatus for locating a network fault comprising: obtaining a first Transmission Control Protocol (TCP) throughput, on a first network device, of a first video stream sent by a head-end device, and a second TCP throughput, on a second network device, of a second video stream sent by the head-end device, wherein content of the first video stream is the same as that of the second video stream, a destination Internet Protocol IP address of the first video stream is an IP address of the first network device, a destination IP address of the second video stream is an IP address of the second network device, and the second video stream is sent to the second network device through the first network device; anddetermining a location of the video network fault based on the first TCP throughput and the second TCP throughput.
  • 13. The apparatus according to claim 12, wherein the determining a location of the video network fault based on the first TCP throughput and the second TCP throughput comprises: determining a first MOS-V value of the first video stream on the first network device, and a second MOS-V value of the second video stream on the second network device based on the first TCP throughput and the second TCP throughput; anddetermining the location of the video network fault based on the first MOS-V value and the second MOS-V value.
  • 14. The apparatus according to claim 13, wherein the determining the location of the video network fault based on the first MOS-V value and the second MOS-V value comprises: if both the first MOS-V value and the second MOS-V value are less than a first threshold, determining that the video network fault occurs between the head-end device and the first network device.
  • 15. The apparatus according to claim 13, wherein the determining the location of the video network fault based on the first MOS-V value and the second MOS-V value comprises: if the second MOS-V value is far less than the first MOS-V value, and the second MOS-V value is less than the first threshold, determining that the video network fault occurs between the first network device and the second network device.
  • 16. A apparatus for determining video quality comprising: obtaining a network key performance indicator (KPI) parameter on a first network device of a plurality of network devices, wherein the network KPI parameter comprises a first round trip time (RTT) between a head-end device and the first network device;determining a Transmission Control Protocol (TCP) throughput of the first network device based on the network KPI parameter on the first network device; anddetermining video quality on the first network device based on the TCP throughput and a played video amount of the first network device.
  • 17. The apparatus according to claim 16, wherein the determining a Transmission Control Protocol (TCP) throughput of the first network device based on the network KPI parameter on the first network device comprises: determining a first packet loss rate of the first network device based on the first RTT; anddetermining the TCP throughput of the first network device based on the first RTT and the first packet loss rate.
  • 18. The apparatus according to claim 17, wherein the determining a first packet loss rate of the first network device based on the first RTT comprises: determining a first corrected RTT of the first network device based on the first RTT, wherein the first corrected RTT is obtained after the first RTT is corrected; andsearching a preset mapping table based on the first corrected RTT, to obtain a first mapping entry corresponding to the first corrected RTT, and determining a packet loss rate in the first mapping entry as the first packet loss rate of the first network device, wherein each entry in the mapping table comprises a correspondence between an RTT and a packet loss rate;wherein the determining the TCP throughput of the first network device based on the first RTT and the first packet loss rate comprises:determining the TCP throughput of the first network device based on the first corrected RTT and the first packet loss rate.
  • 19. A method for locating a network fault, wherein the method comprises: obtaining a first Transmission Control Protocol (TCP) throughput, on a first network device, of a first video stream sent by a head-end device, and a second TCP throughput, on a second network device, of a second video stream sent by the head-end device, wherein content of the first video stream is the same as that of the second video stream, a destination Internet Protocol IP address of the first video stream is an IP address of the first network device, a destination IP address of the second video stream is an IP address of the second network device, and the second video stream is sent to the second network device through the first network device; anddetermining a location of the video network fault based on the first TCP throughput and the second TCP throughput.
  • 20. The method according to claim 19, wherein the determining a location of the video network fault based on the first TCP throughput and the second TCP throughput comprises: determining a first MOS-V value of the first video stream on the first network device, and a second MOS-V value of the second video stream on the second network device based on the first TCP throughput and the second TCP throughput; anddetermining the location of the video network fault based on the first MOS-V value and the second MOS-V value.
Priority Claims (1)
Number Date Country Kind
201610422907.6 Jun 2016 CN national
CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No. PCT/CN2017/087097, filed on Jun. 2, 2017, which claims priority to Chinese Patent Application No. 201610422907.6, filed on Jun. 14, 2016. The disclosures of the aforementioned applications are hereby incorporated by reference in their entireties.

Continuations (1)
Number Date Country
Parent PCT/CN2017/087097 Jun 2017 US
Child 16219434 US