[go: up one dir, main page]

WO2010063202A1 - Method and apparatus applied for media delivery quality measurement - Google Patents

Method and apparatus applied for media delivery quality measurement Download PDF

Info

Publication number
WO2010063202A1
WO2010063202A1 PCT/CN2009/074472 CN2009074472W WO2010063202A1 WO 2010063202 A1 WO2010063202 A1 WO 2010063202A1 CN 2009074472 W CN2009074472 W CN 2009074472W WO 2010063202 A1 WO2010063202 A1 WO 2010063202A1
Authority
WO
WIPO (PCT)
Prior art keywords
rate
value
media
rate value
packet
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.)
Ceased
Application number
PCT/CN2009/074472
Other languages
French (fr)
Chinese (zh)
Inventor
陈齐标
盛金文
李德旭
李四浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of WO2010063202A1 publication Critical patent/WO2010063202A1/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/60Network structure or processes for video distribution between server and client or between remote clients; Control signalling between clients, server and network components; Transmission of management data between server and client, e.g. sending from server to client commands for recording incoming content stream; Communication details between server and client 
    • H04N21/63Control signaling related to video distribution between client, server and network components; Network processes for video distribution between server and clients or between remote clients, e.g. transmitting basic layer and enhancement layers over different transmission paths, setting up a peer-to-peer communication via Internet between remote STB's; Communication protocols; Addressing
    • H04N21/643Communication protocols
    • H04N21/64322IP
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/25Flow control; Congestion control with rate being modified by the source upon detecting a change of network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details
    • H04N17/004Diagnosis, testing or measuring for television systems or their details for digital television systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/4302Content synchronisation processes, e.g. decoder synchronisation
    • H04N21/4305Synchronising client clock from received content stream, e.g. locking decoder clock with encoder clock, extraction of the PCR packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/438Interfacing the downstream path of the transmission network originating from a server, e.g. retrieving encoded video stream packets from an IP network
    • H04N21/4385Multiplex stream processing, e.g. multiplex stream decrypting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/442Monitoring of processes or resources, e.g. detecting the failure of a recording device, monitoring the downstream bandwidth, the number of times a movie has been viewed, the storage space available from the internal hard disk
    • H04N21/44209Monitoring of downstream path of the transmission network originating from a server, e.g. bandwidth variations of a wireless network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/80Responding to QoS

Definitions

  • the present invention relates to the field of IPTV (Interactive Personal Television, Personalized Interactive Television), and in particular, to a method and apparatus for measuring media transmission quality.
  • IPTV Interactive Personal Television, Personalized Interactive Television
  • the current multimedia transmission quality measurement implementation method is: first calculating PCR ra te between all TS packets with PCR (program clock reference) information in one calculation period (TS flow between TS packets containing PCR information) Rate), then calculate the average of all PCR rates, and participate in the calculation of the parameter DF as the media ideal rate; the parameter MLR is calculated using Cont in y-tyr (continuous counter) to count whether it is received.
  • the data packet, the continuous counter has a certain counting interval, and the number of received data packets is counted every other counting interval, and the value of one parameter MLR is calculated according to the number of the data packets.
  • the calculated PCR ra te will be small. If the packet loss phenomenon is frequent, there will be multiple 4 small PCR rates. If the media ideal rate is all PCR ra The average value of te, then the calculated media ideal rate will be small and there will be errors. When the media ideal rate is involved in the calculation of the parameter DF, the calculated parameter DF error will be quite large, losing the sense of measurement.
  • Receiving a data stream calculating at least one rate value according to the feature information of the TS packet in the data stream; acquiring a maximum rate value among the calculated rate values;
  • the rate value between the rate values determines the media ideal rate.
  • a device for measuring media transmission quality comprising:
  • a prediction quantity unit configured to receive a data stream, and calculate at least one rate value according to characteristic information of the TS packet in the data stream;
  • An obtaining unit configured to obtain a maximum rate value among the calculated rate values
  • a calculating unit configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value;
  • a determining unit configured to obtain the calculated rate value between the maximum rate value and the critical rate value, and determine a media ideal rate according to the rate value between the maximum rate value and the critical rate value.
  • the method and device for measuring media transmission quality provided by the embodiment of the present invention first selects the maximum value of all the transmitted data streams when calculating the ideal rate of the media, because the maximum rate value corresponds to the largest number of data packets, The number of lost packets is minimal or there is no loss of packets; then a critical rate value is calculated based on the maximum rate value, taking into account some errors introduced by the sender when generating the data stream.
  • the media ideal rate error calculated from the maximum rate value and the critical rate value is small, and the static error existing in the device is also considered, and the calculated value is more reasonable and accurate. Avoid large errors caused by the average of all calculated transport streams when a packet loss occurs.
  • the media ideal rate calculated according to the manner provided by the embodiment of the present invention is applied to the measurement of the DF and the MLR. Since the ideal rate of the media calculated by the embodiment of the present invention is relatively accurate, the final measured DF and MLR are also relatively relatively high. Accurate, the purpose of calculating the parameters of the transmission quality measurement index MDI more accurately is realized.
  • This embodiment provides a method for measuring media transmission quality, which is mainly used to obtain an ideal media rate for calculating a transmission quality measurement indicator MDI. After obtaining the media ideal rate by using the method, The media ideal rate is applied to the calculation of the parameter DF and the parameter MLR. The following describes the calculation process of the ideal rate of the media. As shown in Figure 1, the calculation of the ideal rate of the media includes the following steps:
  • the foregoing feature information mainly refers to: the number of TS packets between two TS packets carrying PCR information, and the PCR information of the two TS packets.
  • Data stream rate [ ( i + i i ) * system clock frequency ] / [PCR ( i ) -PCR ( i i ) ].
  • a plurality of the plurality of data stream rate values described above refer to a number greater than 1, and may be adjusted as needed, for example, a positive integer greater than one. Multiples can also refer to the rate values calculated over a period of time before a point in time, which can be adjusted as needed, for example: 1 second, 2 seconds, etc.
  • the number of data packets corresponding to the maximum rate value is decremented by one, and the corresponding number of bytes is calculated; and the time between the two packets with PCR information corresponding to the maximum rate value is determined; The number of bytes obtained is divided by the time to obtain a critical rate value.
  • the DF or MLR may be calculated according to the above-mentioned media ideal rate, and the received data stream used in calculating the DF or MLR may be the data stream received when calculating the ideal rate of the medium, or may be in the calculation The data stream received again after the media ideal rate is completed.
  • the predicting unit 21 is configured to receive the data stream, and calculate at least one rate value according to the feature information of the TS packet in the data stream.
  • the specific calculation method is shown in the description of the process in FIG. 1; the obtaining unit 22 is configured to obtain the calculation. a maximum rate value out of the rate value; the calculating unit 23 is configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; the determining unit 24 is configured to obtain the calculated maximum rate A rate value between the value and the critical rate value, the media ideal rate being determined based on the rate value between the maximum rate value and the critical rate value.
  • the above feature information mainly refers to the number of TS packets between two TS packets carrying PCR information and the PCR information of the two TS packets.
  • the method and device for measuring media transmission quality provided by the embodiment of the present invention first selects the maximum value of all the transmitted data streams when calculating the ideal rate of the media, because the maximum rate value corresponds to the largest number of data packets, The minimum number of lost packets or no loss of packets; then a critical rate value is calculated based on the maximum rate value, taking into account the sender Some errors are introduced into the data stream.
  • the media ideal rate error calculated from the maximum rate value and the critical rate value is small, and the static error existing in the device is also considered, and the calculated value is more reasonable and accurate. Avoid large errors caused by the average of all calculated transport streams when a packet loss occurs.
  • the method for calculating the quality of the media transmission is described by taking the calculation of the delay parameter (DF) as an example.
  • the delay parameter is calculated according to the calculated ideal rate of the medium, as shown in the figure.
  • the method includes the following steps:
  • Rate value is a data stream rate between two packets with PCR information.
  • a plurality of the plurality of data stream rate values described above refer to a number greater than 1, and may be adjusted as needed, for example, a positive integer greater than one. Multiples can also refer to the rate values calculated over a period of time before a point in time, which can be adjusted as needed, for example: 1 second, 2 seconds, etc.
  • the method for calculating the ideal rate of the medium may be, but not limited to, the following two methods: First, the data stream rate value with the highest frequency occurring in the statistical critical rate value and the rate maximum interval is used as the media ideal rate.
  • the value of the parameter DF is calculated every other cycle. After one calculation cycle period, the DF restarts the calculation.
  • the received data stream referred to in this process refers to: the data stream received when calculating the ideal rate of the medium, or the data stream received again after calculating the ideal rate of completion of the medium.
  • step 308. Determine whether the calculation period is over. The calculation period is usually 1 second, and can also be adjusted as needed. If the calculation period is exceeded, step 312 is performed; when the calculation period is not exceeded, step 309 is performed.
  • the above processes 308 to 311 perform the preprocessing process in the DF calculation, that is, calculate the two packet virtual cache height values each time a data is received in the calculation period.
  • DF (maximum value in virtual cache height value - minimum value in virtual cache height value) / media ideal rate.
  • step 314 is performed.
  • the prediction unit 41 is configured to receive the data stream, and calculate at least one rate value according to the feature information of the TS packet in the data stream.
  • the specific calculation method is shown in the description of the 301 process in FIG. 3; the obtaining unit 42 is configured to obtain the calculation. a maximum rate value out of the rate value; the calculating unit 43 is configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; the determining unit 44 is configured to obtain the calculated maximum rate And a rate value between the value and the critical rate value, determining a media ideal rate according to the rate value between the maximum rate value and the critical rate value; the delay parameter calculating unit 45 is configured to calculate the delay parameter according to the media ideal rate.
  • the unit 43 specifically includes: a pre-processing module 431 and a dividing module 432.
  • the determining unit 44 includes a calculating module 443 and a processing module 444 (see the dotted line portion in FIG. 4), wherein the calculating module 443 is configured to calculate an average of all data stream rate values in the maximum rate value and the critical rate value interval. Value; processing module 444 is configured to use the average as the media ideal rate.
  • the delay parameter calculation unit 45 includes: a delay parameter pre- The processing module 451 and the delay parameter calculation module 452; the delay parameter pre-processing module 451 is configured to calculate two packet virtual cache height values each time one data is received in the calculation period; the delay parameter calculation module 452 is configured to calculate the calculation period The difference between the maximum and minimum values of all virtual cache height values is divided by the media ideal rate to obtain the delay parameter.
  • the delay parameter pre-processing module 451 may include: a search sub-module 451 1, a statistical sub-module 4512, a recording sub-module 451 3, a first computing sub-module 4514, and a second computing sub-module 4515.
  • the method and device for measuring media transmission quality provided by the embodiment of the present invention first selects the maximum value of all the transmitted data streams when calculating the ideal rate of the media, because the maximum rate value corresponds to the largest number of data packets, The number of lost packets is minimal or there is no loss of packets; then a critical rate value is calculated based on the maximum rate value, taking into account some errors introduced by the sender when generating the data stream.
  • the media ideal rate error calculated from the maximum rate value and the critical rate value is small, and the static error existing in the device is also considered, and the calculated value is more reasonable and accurate. Avoid large errors caused by the average of all calculated transport streams when a packet loss occurs.
  • the calculated value of the parameter DF is also relatively accurate.
  • a method for calculating media transmission quality measurement is described by using a computing media packet loss ratio (MLR) as an example.
  • MLR computing media packet loss ratio
  • the method includes the following steps: 501. Calculate a plurality of data stream rate values, where the rate value is a data stream rate between two packets with PCR information.
  • Data stream rate [ ( i + i i ) * system clock frequency ] / [PCR ( i ) -PCR ( i i ) ].
  • a plurality of the plurality of data stream rate values described above refer to a number greater than 1, and may be adjusted as needed, for example, a positive integer greater than one. Multiples can also refer to rate values calculated over a period of time before a point in time, which can be adjusted as needed, for example, 1 second, 2 seconds, and so on.
  • the critical rate is proposed here, considering that the source device generates a data stream, which introduces some errors.
  • the byte error caused by this type of situation is less than the number of bytes of a packet.
  • the rate maximum corresponds to the number of packets minus one and then calculates the critical rate.
  • the method for calculating the ideal rate of the medium may be, but not limited to, the following two methods: First, the data stream rate value with the highest frequency occurring in the statistical critical rate value and the rate maximum interval is used as the media ideal rate. Second, calculate the average of all data stream rate values in the critical rate value and the rate maximum interval as the media ideal rate.
  • the value of the parameter DF is calculated every other cycle. After one calculation cycle period, the DF restarts the calculation.
  • the media packet loss rate In order to calculate the media packet loss rate, it is necessary to count the number of bytes actually received by the TS packet in the current calculation period, and calculate the number of bytes that should be received in the current calculation period according to the media ideal rate, and finally according to the The number of TS packets received and the number of TS packets actually received are calculated.
  • the media packet loss rate is calculated. For details, see the following process:
  • Obtain a PCR value of a TS packet with PCR information in the received data stream and generally, when receiving the data stream, first determine whether the data packet in the data stream contains PCR information, if the data in the data stream includes PCR information. , go to step 508; otherwise, go to 507.
  • PCR (i) PCR_ba se (i) * 300 + PCR_ext (i); the other case is the system clock frequency
  • the calculation period is 1 second, and 10 packets are received within 1 second, but only the 2nd, 3rd, 5th, 6th, 7th, and 9th contain clock reference information, and the computer calculates the corresponding data in order.
  • PCR value then the earliest calculated PCR value in this cycle is the PCR value of the second packet, and the last calculated PCR value is the PCR value of the ninth packet.
  • T [PCR (i) - PCR ( ii ) ] eight system clock frequency.
  • 512. Multiply the time span T by the media ideal rate to obtain the number of bytes that should be received, that is, the number of bytes receivable ⁇ * media ideal rate.
  • step 507 Determine whether there is an end measurement message. If there is an end measurement message, the process ends; otherwise, step 507 is performed.
  • the embodiment of the present invention further provides a device for media transmission quality measurement, which is used to calculate a media packet loss rate.
  • the device includes: The prediction amount unit 61, the acquisition unit 62, the calculation unit 63, the determination unit 64, and the media packet loss rate calculation unit 65.
  • the prediction unit 61 is configured to receive the data stream, and calculate at least one rate value according to the feature information of the TS packet in the data stream.
  • the specific calculation method is as described in the 501 process in FIG. 5; the obtaining unit 62 is configured to obtain the calculation.
  • the maximum rate value of the output rate value; the calculating unit 63 is configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; and the determining unit 64 is configured to obtain the calculated maximum value a rate value between the rate value and the critical rate value, determining a media ideal rate according to the rate value between the maximum rate value and the critical rate value;
  • the media packet loss rate calculating unit 65 is configured to calculate the media loss according to the media ideal rate Package rate.
  • the determining unit 64 includes a statistic module 641 and a processing module 642, where the statistic module 441 is configured to count the frequency at which all rate values occur in the maximum rate value and the critical rate value interval; the processing module 442 is configured to use the highest frequency.
  • the rate value is used as the media ideal rate.
  • the determining unit 64 includes a calculating module 643 and a processing module 644 (see the dotted line portion in FIG. 6), wherein the calculating module 643 is configured to calculate an average of all data stream rate values in the maximum rate value and the critical rate value interval. Value; processing module 644 is configured to use the average as the media ideal rate.
  • the media packet loss rate calculation unit 65 includes: a byte statistics module 651, a byte calculation module 652, and a media packet loss rate calculation module 653.
  • the byte statistics module 651 is configured to count the number of bytes of the TS packet actually received in the current calculation period.
  • the byte calculation module 652 is configured to calculate, according to the media ideal rate, the TS packet that should be received in the current calculation period.
  • the media packet loss rate calculation module 653 is configured to calculate a media packet loss rate according to the number of TS packets that should be received and the number of actually received TS packets, that is, the number of bytes that should be received.
  • the byte calculation module 652 includes: an acquisition submodule 6521, a determination submodule 6522, a determination submodule 6523, a first calculation submodule 6524, and a second calculation submodule 6525.
  • the obtaining sub-module 6521 is configured to acquire a PCR value of a TS packet having PCR information in the received data stream;
  • the determining sub-module 6522 is configured to determine whether the calculation period is ended;
  • the determining sub-module 6523 is configured to At the end of the calculation period, the earliest acquired PCR value and the last acquired PCR value are determined in the calculation period;
  • the first calculation sub-module 6524 is configured to calculate a time span between the earliest acquired PCR value and the last acquired PCR value.
  • the second calculation sub-module 6525 is configured to calculate the number of bytes that should be received according to the time span and the media ideal rate.
  • the method and device for applying the media transmission quality measurement index provided by the embodiment of the present invention, when calculating the ideal rate of the medium, first selecting the maximum value of all the calculated data streams, because the most The large rate value corresponds to the largest number of data packets. At this time, the number of lost data packets is the least or no data packets are lost. Then, a critical rate value is calculated according to the maximum rate value, which is introduced when the data stream is generated by the transmitting end. error. In this way, the media ideal rate error calculated according to the maximum rate value and the critical rate value is small, and the statistical method may be, but not limited to, selecting the highest frequency of the transmission stream rate value or the selection interval from the critical rate value to the maximum rate value interval. The average of all the velocity values in the internal value is more reasonable and accurate. Avoid large errors caused by the average of all calculated transport streams when a packet loss occurs.
  • the parameter MLR is calculated by using the above calculated accurate media ideal rate, and also using the difference between the number of bytes that should be received and the number of bytes actually received.
  • the actual number of bytes received is Measured by the device, their difference represents the number of bytes lost in the transmission, which in turn can calculate the number of lost packets in the transmission.
  • the calculated value of the more accurate parameter MLR can also be obtained when there is a continuous loss of a large number of packets. Avoid the problem that the continuous counter does not count the data packets when a large number of packets are lost, and cannot be calculated.
  • Embodiment 2 The method and apparatus for calculating DF in Embodiment 2 above, and the method and apparatus for calculating MLR in Embodiment 3 can be simultaneously implemented in the same embodiment.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. .
  • the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • a hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Databases & Information Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention discloses a method and apparatus applied for media delivery quality measurement and belongs to Interactive Personality Television (IPTV) field. The method comprises the following steps: receiving data stream, computing rate values according to the feature information of Transport Stream (TS) packets in the data stream, obtaining the maximum one of the computed rate values, based on the feature information of the TS packet with the computed maximum rate value, computing a critical rate value, and computing an ideal media rate according to the maximum rate value and critical rate value. The solution applies the ideal media rate to compute Delay Factor (DF) and Media Loss Rate (MLR), thus enables MLR to be computed accurately even if the situation that data packets are lost continuously and in large quantity happens.

Description

应用于媒体传输质量测量的方法及装置 本申请要求于 2008 年 12 月 2 日提交中国知识产权局、 申请号为 200810179371.5、 发明名称为 "应用于媒体传输质量测量的方法及装置" 的中 国专利申请的优先权, 在此并入其全部内容作为参考。  METHOD AND APPARATUS FOR MEASUREMENT OF MEDIA TRANSMISSION QUALITY MEASUREMENT This application claims to be Chinese patent application filed on Dec. 2, 2008, the Chinese Intellectual Property Office, Application No. 200810179371.5, entitled "Method and Apparatus for Media Transmission Quality Measurement" The priority is hereby incorporated by reference in its entirety.

技术领域 Technical field

本发明涉及 IPTV (Interact ive Persona l i ty TV, 个性化互动电视)领域, 尤其涉及对媒体传输质量进行测量的方法及装置。  The present invention relates to the field of IPTV (Interactive Personal Television, Personalized Interactive Television), and in particular, to a method and apparatus for measuring media transmission quality.

背景技术 Background technique

在 IPTV业务中, 多媒体内容通过 IP网络传送到目的地, 由于 IP网络存 在延时、 抖动和丟包等问题, 所以需要测量多媒体内容的传输质量。 在多媒 体内容传输质量测量方面,通过 RFC 4445文档中定义媒体传输质量指标(MDI , Media Del ivery Index)对视频流在 IP网络传输质量进行评估。 MDI包括两个 参数: Delay Factor (延迟参数, 简称 DF ) Media Los s Ra te (媒体丟包率, 简称 MLR )和, DF参数值表明被测试视频流的延迟和抖动状况; Media Los s Ra te (媒体丟包率, 简称 MLR ) , MLR参数值表明被测试视频流的传输丟包率。 在 RFC 4445文档中对 MDI的定义和测试原理有清晰的描述, 但是并没有指出 DF 和 MLR两个测量参数的具体计算方法, 需要用户自己去实现。  In the IPTV service, multimedia content is transmitted to the destination through the IP network. Since the IP network has problems such as delay, jitter, and packet loss, it is necessary to measure the transmission quality of the multimedia content. In the measurement of multimedia content transmission quality, the transmission quality of the video stream in the IP network is evaluated by the Media Delivery Index (MDI) defined in the RFC 4445 document. The MDI consists of two parameters: Delay Factor (DF) Media Loss s Ra te (Media Loss Rate, MLR for short) and DF parameter values indicate the delay and jitter of the video stream being tested; Media Los s Ra te (Media Packet Loss Rate, MLR for short), the MLR parameter value indicates the transmission loss rate of the tested video stream. The definition and test principle of MDI are clearly described in the RFC 4445 document, but the specific calculation methods of the two measurement parameters of DF and MLR are not pointed out and need to be implemented by the user.

目前的多媒体传输质量测量实现方法为: 首先计算一个计算周期内所有 带有 PCR (节目时钟参考)信息的相邻 TS包之间的 PCR ra te (含有 PCR信息 的 TS包之间的 TS流的速率), 然后计算出所有 PCR ra te的平均值, 将该平 均值作为媒体理想速率参与到参数 DF 的计算当中; 参数 MLR 的计算是利用 Cont inui ty-counter (连续计数器) 来统计是否接收到数据包, 连续计数器 有一定的计数区间, 每隔一个计数区间统计出接收到的数据包个数, 并依据 该数据包个数计算出一个参数 MLR的值。  The current multimedia transmission quality measurement implementation method is: first calculating PCR ra te between all TS packets with PCR (program clock reference) information in one calculation period (TS flow between TS packets containing PCR information) Rate), then calculate the average of all PCR rates, and participate in the calculation of the parameter DF as the media ideal rate; the parameter MLR is calculated using Cont in y-tyr (continuous counter) to count whether it is received. The data packet, the continuous counter has a certain counting interval, and the number of received data packets is counted every other counting interval, and the value of one parameter MLR is calculated according to the number of the data packets.

在实现上述多媒体传输质量测量实现方法的过程中, 发明人发现现有技 术中至少存在如下问题: In the process of implementing the above-described multimedia transmission quality measurement implementation method, the inventors found that the prior art At least the following problems exist during surgery:

第一、 当 IP网络出现丟失数据包现象时, 计算出的 PCR ra te会 ^艮小, 如果丟包现象频繁, 会有多个 4艮小的 PCR ra te, 若媒体理想速率取所有 PCR ra te的平均值, 那么计算出的媒体理想速率会偏小, 存在误差。 当媒体理想 速率参与到参数 DF的计算当中时, 计算出的参数 DF误差会相当大, 失去测 量意义。  First, when there is a packet loss phenomenon in the IP network, the calculated PCR ra te will be small. If the packet loss phenomenon is frequent, there will be multiple 4 small PCR rates. If the media ideal rate is all PCR ra The average value of te, then the calculated media ideal rate will be small and there will be errors. When the media ideal rate is involved in the calculation of the parameter DF, the calculated parameter DF error will be quite large, losing the sense of measurement.

第二、 当 IP网络连续丟失数据包过多时, 假设 IP网络连续丟失 17个数 据包, 而连续计数器的计数区间是 [0, 15] , 那么在连续丟失 17个数据包时, 连续计数器会有一个计数区间是统计不到数据包的, 也就不能计算出参数 MLR, 没有测量结果。 发明内容  Second, when the IP network continuously loses too many packets, it is assumed that the IP network continuously loses 17 packets, and the continuous counter has a count interval of [0, 15]. Then, when 17 packets are continuously lost, the continuous counter will have A counting interval is that the data packet is not counted, and the parameter MLR cannot be calculated. There is no measurement result. Summary of the invention

本发明的实施例提供一种应用于媒体传输质量测量的方法及装置, 以实 现较为准确地计算出传输质量测量指标 MD I中的参数。  Embodiments of the present invention provide a method and apparatus for applying media transmission quality measurement to accurately calculate parameters in a transmission quality measurement index MD I .

为达到上述目的, 本发明的实施例采用如下技术方案:  In order to achieve the above object, the embodiment of the present invention adopts the following technical solutions:

一种应用于媒体传输质量测量的方法, 包括:  A method for measuring media transmission quality, comprising:

接收数据流, 根据所述数据流中 TS包的特征信息计算至少一个速率值; 获取计算出的速率值中的最大速率值;  Receiving a data stream, calculating at least one rate value according to the feature information of the TS packet in the data stream; acquiring a maximum rate value among the calculated rate values;

以计算出所述最大速率值的 TS包的特征信息为基石出计算临界速率值; 获取计算出的在所述最大速率值和临界速率值之间的速率值, 根据所述 最大速率值和临界速率值之间的速率值确定媒体理想速率。  Calculating a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; obtaining the calculated rate value between the maximum rate value and the critical rate value, according to the maximum rate value and the critical value The rate value between the rate values determines the media ideal rate.

一种应用于媒体传输质量测量的装置, 包括:  A device for measuring media transmission quality, comprising:

预测量单元, 用于接收数据流, 并根据所述数据流中 TS包的特征信息计 算至少一个速率值;  a prediction quantity unit, configured to receive a data stream, and calculate at least one rate value according to characteristic information of the TS packet in the data stream;

获取单元, 用于获取计算出的速率值中的最大速率值;  An obtaining unit, configured to obtain a maximum rate value among the calculated rate values;

计算单元, 用于以计算出所述最大速率值的 TS包的特征信息为基础计算 临界速率值; 确定单元, 用于获取计算出的在所述最大速率值和临界速率值之间的速 率值, 根据所述最大速率值和临界速率值之间的速率值确定媒体理想速率。 a calculating unit, configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; And a determining unit, configured to obtain the calculated rate value between the maximum rate value and the critical rate value, and determine a media ideal rate according to the rate value between the maximum rate value and the critical rate value.

本发明实施例提供的应用于媒体传输质量测量的方法及装置, 在计算媒 体理想速率时, 首先选择计算出的所有传送数据流中的最大值, 因为最大速 率值对应的数据包数量最多, 此时的丟失数据包数量最少或者没有丟失数据 包的现象; 然后根据最大速率值计算出一个临界速率值, 是考虑到发送端生 成数据流时会引入一些误差。 这样, 根据最大速率值和临界速率值计算出的 媒体理想速率误差较小, 并且也考虑到设备中存在的静态误差, 计算值更为 合理、 准确。 避免当出现丟失数据包现象时, 取计算出的所有传送数据流中 的平均值所带来的较大误差。  The method and device for measuring media transmission quality provided by the embodiment of the present invention first selects the maximum value of all the transmitted data streams when calculating the ideal rate of the media, because the maximum rate value corresponds to the largest number of data packets, The number of lost packets is minimal or there is no loss of packets; then a critical rate value is calculated based on the maximum rate value, taking into account some errors introduced by the sender when generating the data stream. Thus, the media ideal rate error calculated from the maximum rate value and the critical rate value is small, and the static error existing in the device is also considered, and the calculated value is more reasonable and accurate. Avoid large errors caused by the average of all calculated transport streams when a packet loss occurs.

将依据本发明实施例提供的方式计算出的媒体理想速率运用到 DF和 MLR 的测量中, 由于本发明实施例计算出的媒体理想速率较为准确, 所以, 最后 测量出的 DF和 MLR也相对较准确, 实现了较为准确地计算传输质量测量指标 MDI中参数的目的。  The media ideal rate calculated according to the manner provided by the embodiment of the present invention is applied to the measurement of the DF and the MLR. Since the ideal rate of the media calculated by the embodiment of the present invention is relatively accurate, the final measured DF and MLR are also relatively relatively high. Accurate, the purpose of calculating the parameters of the transmission quality measurement index MDI more accurately is realized.

附图说明 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。 BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are set forth in the description of the claims Other drawings may also be obtained from these drawings without the use of creative labor.

图 1为本发明实施例 1中应用于媒体传输质量测量的方法流程图; 图 2为本发明实施例 1中应用于媒体传输质量测量的装置框图; 图 3为本发明实施例 1中应用于媒体传输质量测量的方法流程图; 图 4为本发明实施例 2中应用于媒体传输质量测量的装置框图; 图 5为本发明实施例 3中应用于媒体传输质量测量的方法流程图; 图 6为本发明实施例 3中应用于媒体传输质量测量的装置框图。  1 is a flowchart of a method for measuring media transmission quality in Embodiment 1 of the present invention; FIG. 2 is a block diagram of an apparatus for mass media quality measurement according to Embodiment 1 of the present invention; FIG. 3 is applied to Embodiment 1 of the present invention; FIG. 4 is a block diagram of a device for mass media quality measurement according to Embodiment 2 of the present invention; FIG. 5 is a flowchart of a method for media media quality measurement according to Embodiment 3 of the present invention; It is a block diagram of a device applied to media transmission quality measurement in Embodiment 3 of the present invention.

具体实施方式 下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。 detailed description The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, but not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.

实施例 1:  Example 1:

本实施例提供了一种应用于媒体传输质量测量的方法, 该方法主要是获 得计算传输质量测量指标 MDI 时都要用到的媒体理想速率, 在利用该方法获 得了媒体理想速率之后, 可以将媒体理想速率应用到参数 DF和参数 MLR的计 算当中。 下面具体介绍媒体理想速率的计算过程, 如图 1 所示, 媒体理想速 率的计算包括如下步骤:  This embodiment provides a method for measuring media transmission quality, which is mainly used to obtain an ideal media rate for calculating a transmission quality measurement indicator MDI. After obtaining the media ideal rate by using the method, The media ideal rate is applied to the calculation of the parameter DF and the parameter MLR. The following describes the calculation process of the ideal rate of the media. As shown in Figure 1, the calculation of the ideal rate of the media includes the following steps:

101、 接收数据流, 根据所述数据流中 TS 包的特征信息计算至少一个速 率值, 所述速率值为两个带有 PCR信息的数据包之间的数据流速率。  101. Receive a data stream, and calculate at least one rate value according to the feature information of the TS packet in the data stream, where the rate value is a data flow rate between two data packets with PCR information.

一般来讲, 上述的特征信息主要是指: 两个携带有 PCR信息的 TS包之间 的 TS包数量、 以及所述两个 TS包的 PCR信息, 具体计算多个数据流速率的 方法为: 设两个带有 PCR信息的数据包所包含的字节数分别为 i和 i i , 两个 包对应的 PCR值为 PCR ( i )和 PCR ( i i ),其中 PCR值的计算情况分为两种: 一 种 情 况 为 系 统 时 钟 频 率 是 27MHZ 时 的 计 算 方 法 : PCR (i) =PCR_base (i) * 300+PCR_ext (i);另一种情况为系统时钟频率是 90KHZ 时的计算方法: PCR (i) =PCR_base (i) * 300。  Generally, the foregoing feature information mainly refers to: the number of TS packets between two TS packets carrying PCR information, and the PCR information of the two TS packets. The method for calculating multiple data stream rates is as follows: Let the two packets with PCR information contain the number of bytes i and ii respectively, and the PCR values of the two packets are PCR (i) and PCR (ii), and the calculation of the PCR value is divided into two types. : One case is when the system clock frequency is 27MHZ: PCR (i) = PCR_base (i) * 300 + PCR_ext (i); another case is when the system clock frequency is 90KHZ: PCR (i ) =PCR_base (i) * 300.

数据流速率 = [ ( i + i i ) *系统时钟频率 ] / [PCR ( i ) -PCR ( i i ) ]。  Data stream rate = [ ( i + i i ) * system clock frequency ] / [PCR ( i ) -PCR ( i i ) ].

上述的多个数据流速率值中的多个指大于 1的数字, 可以根据需要调整, 例如, 表示大于 1 的正整数。 多个还可以指一个时间点之前一段时间内计算 出来的速率值, 可以根据需要调整, 例如: 1秒、 2秒等。  A plurality of the plurality of data stream rate values described above refer to a number greater than 1, and may be adjusted as needed, for example, a positive integer greater than one. Multiples can also refer to the rate values calculated over a period of time before a point in time, which can be adjusted as needed, for example: 1 second, 2 seconds, etc.

102、 获取计算出的速率值中的最大速率值, 即: 从计算出的多个传送数 据流速率值中找出最大的一个速率值。  102. Obtain a maximum rate value among the calculated rate values, that is, find the largest one of the plurality of calculated data stream rate values.

103、 以计算出所述最大速率值的 TS 包的特征信息为基 计算临界速率 值, 该临界速率值是一个比最大速率值稍小的值, 具体的计算方法包括但不 限于如下方式: 103. Calculate a critical rate based on the feature information of the TS packet that calculates the maximum rate value. The value, the critical rate value is a value slightly smaller than the maximum rate value, and the specific calculation method includes but is not limited to the following manner:

先将最大速率值所对应的数据包数量减一, 并计算得到相应的字节数; 并确定得到上述最大速率值时对应的两个带有 PCR信息的数据包之间的时间; 然后将所述得到的字节数除以所述时间得出临界速率值。  First, the number of data packets corresponding to the maximum rate value is decremented by one, and the corresponding number of bytes is calculated; and the time between the two packets with PCR information corresponding to the maximum rate value is determined; The number of bytes obtained is divided by the time to obtain a critical rate value.

1 04、 获取计算出的在所述最大速率值和临界速率值之间的速率值, 根据 所述最大速率值和临界速率值之间的速率值确定媒体理想速率, 所述媒体理 想速率可以应用到参数 DF和参数 MLR的计算当中。  1 04. Obtain a calculated rate value between the maximum rate value and a critical rate value, and determine a media ideal rate according to a rate value between the maximum rate value and a critical rate value, where the media ideal rate may be applied. Go to the calculation of the parameter DF and the parameter MLR.

在具体应用时, 可以根据上述媒体理想速率计算 DF或者 MLR , 并且计算 DF或 MLR时所采用的接收到的数据流, 可能是在计算媒体理想速率时接收到 的数据流, 也可能是在计算完成媒体理想速率之后再次接收到的数据流。  In a specific application, the DF or MLR may be calculated according to the above-mentioned media ideal rate, and the received data stream used in calculating the DF or MLR may be the data stream received when calculating the ideal rate of the medium, or may be in the calculation The data stream received again after the media ideal rate is completed.

对应于图 1 描述的应用于媒体传输质量测量的方法, 本发明实施例还提 供一种应用于媒体传输质量测量的装置, 如图 2 所示, 该装置包括: 预测量 单元 21、 获取单元 22、 计算单元 23和确定单元 24。  Corresponding to the method for the media transmission quality measurement described in FIG. 1, the embodiment of the present invention further provides an apparatus for measuring media transmission quality. As shown in FIG. 2, the apparatus includes: a prediction quantity unit 21, an acquisition unit 22 , a calculation unit 23 and a determination unit 24.

其中预测量单元 21用于接收数据流, 并根据所述数据流中 TS 包的特征 信息计算至少一个速率值, 具体的计算方法见图 1 中 1 01过程的描述; 获取 单元 22用于获取计算出的速率值中的最大速率值; 计算单元 23用于以计算 出所述最大速率值的 TS 包的特征信息为基 计算临界速率值; 确定单元 24 用于获取计算出的在所述最大速率值和临界速率值之间的速率值, 根据所述 最大速率值和临界速率值之间的速率值确定媒体理想速率。  The predicting unit 21 is configured to receive the data stream, and calculate at least one rate value according to the feature information of the TS packet in the data stream. The specific calculation method is shown in the description of the process in FIG. 1; the obtaining unit 22 is configured to obtain the calculation. a maximum rate value out of the rate value; the calculating unit 23 is configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; the determining unit 24 is configured to obtain the calculated maximum rate A rate value between the value and the critical rate value, the media ideal rate being determined based on the rate value between the maximum rate value and the critical rate value.

上述特征信息主要是指两个携带有 PCR信息的 TS包之间的 TS包数量、 以及所述两个 TS包的 PCR信息。  The above feature information mainly refers to the number of TS packets between two TS packets carrying PCR information and the PCR information of the two TS packets.

本发明实施例提供的应用于媒体传输质量测量的方法及装置, 在计算媒 体理想速率时, 首先选择计算出的所有传送数据流中的最大值, 因为最大速 率值对应的数据包数量最多, 此时的丟失数据包数量最少或者没有丟失数据 包的现象; 然后根据最大速率值计算出一个临界速率值, 是考虑到发送端生 成数据流时会引入一些误差。 这样, 根据最大速率值和临界速率值计算出的 媒体理想速率误差较小, 并且也考虑到设备中存在的静态误差, 计算值更为 合理、 准确。 避免当出现丟失数据包现象时, 取计算出的所有传送数据流中 的平均值所带来的较大误差。 The method and device for measuring media transmission quality provided by the embodiment of the present invention first selects the maximum value of all the transmitted data streams when calculating the ideal rate of the media, because the maximum rate value corresponds to the largest number of data packets, The minimum number of lost packets or no loss of packets; then a critical rate value is calculated based on the maximum rate value, taking into account the sender Some errors are introduced into the data stream. Thus, the media ideal rate error calculated from the maximum rate value and the critical rate value is small, and the static error existing in the device is also considered, and the calculated value is more reasonable and accurate. Avoid large errors caused by the average of all calculated transport streams when a packet loss occurs.

将依据本发明实施例提供的方式计算出的媒体理想速率运用到 DF和 MLR 的测量中, 由于本发明实施例计算出的较为准确的媒体理想速率, 所以, 最 后测量出的 DF和 MLR也相对较准确。  The media ideal rate calculated according to the manner provided by the embodiment of the present invention is applied to the measurement of the DF and the MLR. Because the accurate media ideal rate calculated by the embodiment of the present invention, the final measured DF and MLR are also relative. More accurate.

实施例 2:  Example 2:

本实施例以计算延迟参数(DF ) 为例说明应用于媒体传输质量测量的方 法, 在按照图 1 的方法计算出媒体理想速率后, 根据所计算出来的媒体理想 速率计算延迟参数, 具体如图 3所示, 该方法包括如下步骤:  In this embodiment, the method for calculating the quality of the media transmission is described by taking the calculation of the delay parameter (DF) as an example. After calculating the ideal rate of the medium according to the method of FIG. 1, the delay parameter is calculated according to the calculated ideal rate of the medium, as shown in the figure. As shown in 3, the method includes the following steps:

301、 计算出多个数据流速率值, 所述速率值为两个带有 PCR信息的数据 包之间的数据流速率。  301. Calculate a plurality of data stream rate values, where the rate value is a data stream rate between two packets with PCR information.

其中计算多个数据流速率的方法为: 设两个带有 PCR信息的数据包所包 含的字节数分别为 i和 i i , 两个包对应的 PCR值为 PCR ( i )和 PCR ( i i ) , 其中 PCR值的计算情况分为两种: 一种情况为系统时钟频率是 27MHZ时的计 算方法: PCR (i) =PCR_ba se (i) * 300+PCR_ext (i);另一种情况为系统时钟频率 是 90KHZ时的计算方法: PCR (i) =PCR_base (i) * 300。  The method for calculating multiple data stream rates is as follows: Let two packets with PCR information contain i and ii respectively, and the PCR values of the two packets are PCR (i) and PCR (ii) , The calculation of the PCR value is divided into two types: One case is the calculation method when the system clock frequency is 27 MHz: PCR (i) = PCR_ba se (i) * 300 + PCR_ext (i); the other case is the system The calculation method when the clock frequency is 90KHZ: PCR (i) = PCR_base (i) * 300.

数据流速率 = [ ( i + i i ) *系统时钟频率 ] / [PCR ( i ) -PCR ( i i ) ]。  Data stream rate = [ ( i + i i ) * system clock frequency ] / [PCR ( i ) -PCR ( i i ) ].

上述的多个数据流速率值中的多个指大于 1的数字, 可以根据需要调整, 例如, 表示大于 1 的正整数。 多个还可以指一个时间点之前一段时间内计算 出来的速率值, 可以根据需要调整, 例如: 1秒、 2秒等。  A plurality of the plurality of data stream rate values described above refer to a number greater than 1, and may be adjusted as needed, for example, a positive integer greater than one. Multiples can also refer to the rate values calculated over a period of time before a point in time, which can be adjusted as needed, for example: 1 second, 2 seconds, etc.

302、 根据计算出的多个数据流速率值, 选取其中最大的值作为最大速率 值。  302. Select, according to the calculated multiple data stream rate values, a maximum value as the maximum rate value.

303、 将最大速率值所对应的数据包数量减一, 并得到相应的字节数。  303. Decrement the number of data packets corresponding to the maximum rate value by one, and obtain a corresponding number of bytes.

304、 确定计算出最大速率值时所用的时间, 即得到上述最大速率值时对 应的两个带有 PCR信息的数据包之间的时间。 304. Determine a time taken when the maximum rate value is calculated, that is, when the maximum rate value is obtained. The time between two packets with PCR information.

305、 将所述字节数除以所述时间得出临界速率值。  305. Divide the number of bytes by the time to obtain a critical rate value.

这里提出临界速率, 是考虑到源设备生成数据流是会引入一些误差, 这 类情况导致的字节误差小于一个数据包的字节数, 而当出现丟失数据包现象 时, 丟失字节数必然不小于一个数据包的字节数, 所以将速率最大值对应数 据包数量减一后来计算临界速率。  The critical rate is proposed here, considering that the source device generates a data stream, which introduces some errors. The byte error caused by this type of situation is less than the number of bytes of a packet. When a packet loss occurs, the number of bytes lost is inevitable. Not less than the number of bytes of a packet, so the rate maximum corresponds to the number of packets minus one and then calculates the critical rate.

306、 统计临界速率值到最大速率值区间内的一个数据流速率值作为媒体 理想速率。  306. Count a data stream rate value in a range from a critical rate value to a maximum rate value as a media ideal rate.

所述统计出媒体理想速率的方法可以为但不限于如下两种方法: 第一、 统计临界速率值和速率最大值区间内出现频率最高的数据流速率 值作为媒体理想速率。  The method for calculating the ideal rate of the medium may be, but not limited to, the following two methods: First, the data stream rate value with the highest frequency occurring in the statistical critical rate value and the rate maximum interval is used as the media ideal rate.

第二、 计算临界速率值和速率最大值区间内所有数据流速率值的平均值 作为媒体理想速率。  Second, calculate the average of all data stream rate values in the critical rate value and rate maximum interval as the media ideal rate.

参数 DF的值是每隔一个周期计算一次, 一个计算周周期过后, DF重新开 始计算。  The value of the parameter DF is calculated every other cycle. After one calculation cycle period, the DF restarts the calculation.

307、 在接收的数据流中查找当前接收数据包之前已保存的数据包字节数 (设为变量 a) , 并统计当前接收数据包字节数并保存(设为变量 b) , 同时记录 从开始测量到当前接收数据包所用的时间 (设为变量 t )。  307. Find the number of bytes of the data packet saved before the current received data packet in the received data stream (set to variable a), and count the number of bytes of the current received data packet and save (set to variable b), and record from Start measuring the time taken to receive the current packet (set to variable t).

本过程中所提到的接收的数据流是指: 在计算媒体理想速率时接收到的 数据流, 或者在计算完成媒体理想速率之后再次接收到的数据流。  The received data stream referred to in this process refers to: the data stream received when calculating the ideal rate of the medium, or the data stream received again after calculating the ideal rate of completion of the medium.

308、 判断计算周期是否结束, 计算周期通常情况下为 1秒, 也可以根据 需要调整。 若超过计算周期时, 执行步骤 312 ; 没有超过计算周期时, 执行步 骤 309。  308. Determine whether the calculation period is over. The calculation period is usually 1 second, and can also be adjusted as needed. If the calculation period is exceeded, step 312 is performed; when the calculation period is not exceeded, step 309 is performed.

309、 将所述已保存的数据包字节数 a减去媒体理想速率与所记录时间 t 的积得到一个虚拟緩存高度值, 并保存。 即: 虚拟緩存高度值 l=a-媒体理想 速率 * t。 31 0、 将所述已保存的数据包字节数 a与当前接收数据包字节数 b的和减 去媒体理想速率与所记录时间 t 的积得到另一个虚拟緩存高度值, 并保存。 即: 虚拟緩存高度值 2= ( a+b ) -媒体理想速率 * t。 309. Subtract the saved data packet number a from the product of the media ideal rate and the recorded time t to obtain a virtual cache height value, and save. That is: virtual cache height value l = a - media ideal rate * t. 31 0. Subtract the sum of the saved packet byte number a and the current received packet byte number b minus the media ideal rate and the recorded time t to obtain another virtual cache height value, and save. That is: virtual cache height value 2 = ( a + b ) - media ideal rate * t.

31 1、 将当前接收的数据包字节数 b加入到已保存的数据包字节数 a中更 新 a的值, 然后执行步骤 307。 即: a+b更新替换&。  31 1. Add the number of bytes of the currently received packet b to the number of bytes of the saved packet a to update the value of a, and then go to step 307. That is: a+b update replaces &.

上述过程 308至 311在进行 DF计算时的预处理过程, 即在计算周期内计 算每接收到一个数据时的两个包虚拟緩存高度值。  The above processes 308 to 311 perform the preprocessing process in the DF calculation, that is, calculate the two packet virtual cache height values each time a data is received in the calculation period.

312、 将计算出的所有虚拟緩存高度值中最大值和最小值的差值除以媒体 理想速率得到延迟参数。 即: DF= (虚拟緩存高度值中最大值-虚拟緩存高度 值中最小值) /媒体理想速率。  312. Divide the difference between the maximum value and the minimum value of all the calculated virtual cache height values by the media ideal rate to obtain a delay parameter. That is: DF= (maximum value in virtual cache height value - minimum value in virtual cache height value) / media ideal rate.

31 3、 判断是否有结束测量消息。 如果有结束测量消息, 则结束流程; 否 则执行步骤 314。  31 3. Determine if there is an end measurement message. If there is an end measurement message, the process ends; otherwise, step 314 is performed.

314、 将刚刚收到的但是已超过一个计算周期的网络协议数据包所用的时 间 t 减去计算周期得到的时间, 作为这个超过本次计算周期的数据包的接收 时间 t,, 以便重新开始下一周期的参数 DF的计算, 已保存的字节数 a清零, 并返回执行步骤 308。  314. Subtract the time t obtained by the network protocol packet that has just been received but has exceeded one calculation period by the time obtained by the calculation period, as the receiving time t of the data packet exceeding the current calculation period, so as to restart The calculation of the parameter DF for one cycle, the saved number of bytes a is cleared, and returns to step 308.

因为计算参数 DF的过程是先接收数据包, 统计本次接收数据包字节数然 后再判断是否超过周期, 在步骤 308 判断后, 如果超过周期就直接执行步骤 312计算参数 DF了, 并没有计算此时收到的超过周期的数据包的虚拟緩存高 度值, 更没有保存。  Because the process of calculating the parameter DF is to receive the data packet first, the number of bytes of the received data packet is counted and then it is judged whether the period exceeds the period. After the step 308 is judged, if the period is exceeded, the step 312 is directly executed to calculate the parameter DF, and the calculation is not performed. The virtual cache height value of the packet that exceeds the period received at this time is not saved.

举例说明: 假设周期为 1秒, 每隔 80毫秒收到一个数据包, 那么接收到 第 1 3个数据包用时 t=l. 04秒, 超过一个周期, 针对前 12个包计算一个 DF 值, 但是针对第 1 3个数据包并没有计算对应的两个虚拟緩存高度值, 因为超 过周期, 所以这个周期要重新计算参数 DF , 就需要更新收到此数据包的时间, t ' =1. 04-1=0. 04秒,用 t ' 来计算第 1 3个数据包的两个虚拟緩存高度值。 For example: If the period is 1 second, a packet is received every 80 milliseconds, then the first 13 packets are received t=l. 04 seconds, more than one cycle, and a DF value is calculated for the first 12 packets. However, for the 13th data packet, the corresponding two virtual cache height values are not calculated. Because the period is exceeded, the period DF needs to be recalculated, and the time of receiving the data packet needs to be updated, t ' =1. 04 -1 = 0.04 seconds, using t ' to calculate the two virtual cache height values of the 13th packet.

对应于图 3所描述的计算 DF值的方法, 本发明实施例还提供一种用于媒 体传输质量测量的装置, 用于计算 DF值, 如图 4所示, 该装置包括: 预测量 单元 41、 获取单元 42、 计算单元 43、 确定单元 44和延迟参数计算单元 45。 Corresponding to the method for calculating the DF value described in FIG. 3, the embodiment of the present invention further provides a medium for media. The apparatus for measuring the body transmission quality is used to calculate the DF value. As shown in FIG. 4, the apparatus includes: a prediction amount unit 41, an acquisition unit 42, a calculation unit 43, a determination unit 44, and a delay parameter calculation unit 45.

其中, 预测量单元 41用于接收数据流, 并根据所述数据流中 TS包的特 征信息计算至少一个速率值, 具体的计算方法见图 3 中 301过程的描述; 获 取单元 42用于获取计算出的速率值中的最大速率值; 计算单元 43用于以计 算出所述最大速率值的 TS包的特征信息为基 计算临界速率值;确定单元 44 用于获取计算出的在所述最大速率值和临界速率值之间的速率值, 根据所述 最大速率值和临界速率值之间的速率值确定媒体理想速率; 延迟参数计算单 元 45用于根据所述媒体理想速率计算延迟参数。  The prediction unit 41 is configured to receive the data stream, and calculate at least one rate value according to the feature information of the TS packet in the data stream. The specific calculation method is shown in the description of the 301 process in FIG. 3; the obtaining unit 42 is configured to obtain the calculation. a maximum rate value out of the rate value; the calculating unit 43 is configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; the determining unit 44 is configured to obtain the calculated maximum rate And a rate value between the value and the critical rate value, determining a media ideal rate according to the rate value between the maximum rate value and the critical rate value; the delay parameter calculating unit 45 is configured to calculate the delay parameter according to the media ideal rate.

为了能够防止得出的媒体理想速率出现误差, 本实施例采用临界速率值 和最大速率值对媒体理想速率的范围进行了限定, 为了得到较为合理的临界 速率值, 在本实施例中所述计算单元 43具体包括: 预处理模块 431和除法模 块 432。  In order to prevent the error of the obtained media ideal rate, the present embodiment uses the critical rate value and the maximum rate value to define the range of the media ideal rate. In order to obtain a reasonable critical rate value, the calculation is performed in this embodiment. The unit 43 specifically includes: a pre-processing module 431 and a dividing module 432.

其中, 预处理模块 431用于将计算出所述最大速率值的 TS包数量减一, 并得到相应的字节数; 并根据所述 PCR信息确定计算最大速率值时所用的时 间; 除法模块 432用于将所述字节数除以所述时间得出临界速率值。  The pre-processing module 431 is configured to reduce the number of TS packets for which the maximum rate value is calculated by one, and obtain a corresponding number of bytes; and determine, according to the PCR information, a time used for calculating the maximum rate value; the dividing module 432 A method for dividing the number of bytes by the time to derive a critical rate value.

为了保证最后确定出的媒体理想速率是一个较接近真实情况的数据, 本 发明实施例中提供了如下两种确定单元 44的实现方式:  In order to ensure that the finally determined media ideal rate is a data that is closer to the real situation, the implementation of the following two determining units 44 is provided in the embodiment of the present invention:

第一、 所述确定单元 44包括统计模块 441和处理模块 442 , 其中, 统计 模块 441 用于统计最大速率值和临界速率值区间内所有速率值出现的频率; 处理模块 442用于将出现频率最高的速率值作为媒体理想速率。  First, the determining unit 44 includes a statistic module 441 and a processing module 442, where the statistic module 441 is configured to count the frequencies at which all rate values occur in the maximum rate value and the critical rate value interval; the processing module 442 is configured to use the highest frequency. The rate value is used as the media ideal rate.

第二、 所述确定单元 44包括计算模块 443和处理模块 444 (见图 4中的 虚线部分), 其中, 计算模块 443用于计算最大速率值和临界速率值区间内所 有数据流速率值的平均值; 处理模块 444 用于将所述平均值作为媒体理想速 率。  Second, the determining unit 44 includes a calculating module 443 and a processing module 444 (see the dotted line portion in FIG. 4), wherein the calculating module 443 is configured to calculate an average of all data stream rate values in the maximum rate value and the critical rate value interval. Value; processing module 444 is configured to use the average as the media ideal rate.

如图 4所示, 具体实现时, 所述延迟参数计算单元 45包括: 延迟参数预 处理模块 451和延迟参数计算模块 452 ;延迟参数预处理模块 451用于在计算 周期内计算每接收到一个数据时的两个包虚拟緩存高度值; 延迟参数计算模 块 452 用于将计算周期内计算出的所有虚拟緩存高度值中最大值和最小值的 差值除以媒体理想速率得到延迟参数。 As shown in FIG. 4, in specific implementation, the delay parameter calculation unit 45 includes: a delay parameter pre- The processing module 451 and the delay parameter calculation module 452; the delay parameter pre-processing module 451 is configured to calculate two packet virtual cache height values each time one data is received in the calculation period; the delay parameter calculation module 452 is configured to calculate the calculation period The difference between the maximum and minimum values of all virtual cache height values is divided by the media ideal rate to obtain the delay parameter.

上述延迟参数预处理模块 451可以包括: 查找子模块 451 1、 统计子模块 4512、 记录子模块 451 3、 第一计算子模块 4514、 第二计算子模块 4515。  The delay parameter pre-processing module 451 may include: a search sub-module 451 1, a statistical sub-module 4512, a recording sub-module 451 3, a first computing sub-module 4514, and a second computing sub-module 4515.

其中, 查找子模块 451 1用于在接收的数据流中查找当前接收数据包之前 已保存的数据包字节数; 统计子模块 4512用于统计当前接收数据包字节数; 记录子模块 451 3用于记录从开始测量到当前接收数据包所用的时间; 第一计 算子模块 4514用于将已保存字节数减去媒体理想速率与所记录时间的积得到 一个虚拟緩存高度值; 第二计算子模块 451 5用于将已保存字节数与本次接收 数据包字节数的和减去媒体理想速率与所记录时间的积得到另一个虚拟緩存 高度值。  The locating sub-module 451 1 is configured to search, in the received data stream, the number of data packets that have been saved before the current data packet is received; the statistic sub-module 4512 is configured to count the number of bytes of the current received data packet; and the recording sub-module 451 3 For recording the time taken from the start of the measurement to the current reception of the data packet; the first calculation sub-module 4514 is configured to subtract the product of the saved number of bytes from the media ideal rate and the recorded time to obtain a virtual cache height value; The sub-module 451 5 is configured to subtract the sum of the media ideal rate and the recorded time from the sum of the saved number of bytes and the number of bytes of the received packet to obtain another virtual cache height value.

本发明实施例提供的应用于媒体传输质量测量的方法及装置, 在计算媒 体理想速率时, 首先选择计算出的所有传送数据流中的最大值, 因为最大速 率值对应的数据包数量最多, 此时的丟失数据包数量最少或者没有丟失数据 包的现象; 然后根据最大速率值计算出一个临界速率值, 是考虑到发送端生 成数据流时会引入一些误差。 这样, 根据最大速率值和临界速率值计算出的 媒体理想速率误差较小, 并且也考虑到设备中存在的静态误差, 计算值更为 合理、 准确。 避免当出现丟失数据包现象时, 取计算出的所有传送数据流中 的平均值所带来的较大误差。 计算两个虚拟緩冲高度值时利用到上述已计算 出的较为准确的媒体理想速率, 那么参数 DF的计算值也较为准确。  The method and device for measuring media transmission quality provided by the embodiment of the present invention first selects the maximum value of all the transmitted data streams when calculating the ideal rate of the media, because the maximum rate value corresponds to the largest number of data packets, The number of lost packets is minimal or there is no loss of packets; then a critical rate value is calculated based on the maximum rate value, taking into account some errors introduced by the sender when generating the data stream. Thus, the media ideal rate error calculated from the maximum rate value and the critical rate value is small, and the static error existing in the device is also considered, and the calculated value is more reasonable and accurate. Avoid large errors caused by the average of all calculated transport streams when a packet loss occurs. When calculating the two virtual buffer height values and using the above calculated accurate media ideal rate, the calculated value of the parameter DF is also relatively accurate.

实施例 3:  Example 3:

本实施例以计算媒体丟包率(MLR )为例说明应用于媒体传输质量测量的 方法, 在按照图 1 的方法计算出媒体理想速率后, 根据所计算出来的媒体理 想速率计算媒体丟包率, 具体如图 5所示, 该方法包括如下步骤: 501、 计算出多个数据流速率值, 所述速率值为两个带有 PCR信息的数据 包之间的数据流速率。 In this embodiment, a method for calculating media transmission quality measurement is described by using a computing media packet loss ratio (MLR) as an example. After calculating an ideal media rate according to the method of FIG. 1, calculating a media packet loss rate according to the calculated media ideal rate. As shown in FIG. 5, the method includes the following steps: 501. Calculate a plurality of data stream rate values, where the rate value is a data stream rate between two packets with PCR information.

其中计算多个数据流速率的方法为: 设两个带有 PCR信息的数据包所包 含的字节数分别为 i和 i i , 两个包对应的 PCR值为 PCR ( i )和 PCR ( i i ) , 其中 PCR值的计算情况分为两种: 一种情况为系统时钟频率是 27MHZ时的计 算方法: PCR (i) =PCR_ba se (i) * 300+PCR_ext (i);另一种情况为系统时钟频率 是 90KHZ时的计算方法: PCR (i) =PCR_base (i) * 300。  The method for calculating multiple data stream rates is as follows: Let two packets with PCR information contain i and ii respectively, and the PCR values of the two packets are PCR (i) and PCR (ii) , The calculation of the PCR value is divided into two types: One case is the calculation method when the system clock frequency is 27 MHz: PCR (i) = PCR_ba se (i) * 300 + PCR_ext (i); the other case is the system The calculation method when the clock frequency is 90KHZ: PCR (i) = PCR_base (i) * 300.

数据流速率 = [ ( i + i i ) *系统时钟频率 ] / [PCR ( i ) -PCR ( i i ) ]。  Data stream rate = [ ( i + i i ) * system clock frequency ] / [PCR ( i ) -PCR ( i i ) ].

上述的多个数据流速率值中的多个指大于 1的数字, 可以根据需要调整, 例如, 表示大于 1 的正整数。 多个还可以指一个时间点之前一段时间内计算 出来的速率值, 可以根据需要调整, 例如, 1秒、 2秒等。  A plurality of the plurality of data stream rate values described above refer to a number greater than 1, and may be adjusted as needed, for example, a positive integer greater than one. Multiples can also refer to rate values calculated over a period of time before a point in time, which can be adjusted as needed, for example, 1 second, 2 seconds, and so on.

502、 根据计算出的多个数据流速率值, 选取其中最大的值作为最大速率 值。  502. Select, according to the calculated multiple data stream rate values, a maximum value as the maximum rate value.

503、 将最大速率值所对应的数据包数量减一, 并得到相应的字节数。  503. Decrement the number of data packets corresponding to the maximum rate value by one, and obtain a corresponding number of bytes.

504、 确定计算出最大速率值时所用的时间, 即得到上述最大速率值时对 应的两个带有 PCR信息的数据包之间的时间。  504. Determine a time taken when the maximum rate value is calculated, that is, a time between two packets with PCR information corresponding to the maximum rate value.

505、 将所述字节数除以所述时间得出临界速率值。  505. Divide the number of bytes by the time to obtain a critical rate value.

这里提出临界速率, 是考虑到源设备生成数据流是会引入一些误差, 这 类情况导致的字节误差小于一个数据包的字节数, 而当出现丟失数据包现象 时, 丟失字节数必然不小于一个数据包的字节数, 所以将速率最大值对应数 据包数量减一后来计算临界速率。  The critical rate is proposed here, considering that the source device generates a data stream, which introduces some errors. The byte error caused by this type of situation is less than the number of bytes of a packet. When a packet loss occurs, the number of bytes lost is inevitable. Not less than the number of bytes of a packet, so the rate maximum corresponds to the number of packets minus one and then calculates the critical rate.

506、 统计临界速率值到最大速率值区间内的一个数据流速率值作为媒体 理想速率。  506. Calculate a data stream rate value in a range from a critical rate value to a maximum rate value as a media ideal rate.

所述统计出媒体理想速率的方法可以为但不限于如下两种方法: 第一、 统计临界速率值和速率最大值区间内出现频率最高的数据流速率 值作为媒体理想速率。 第二、 计算临界速率值和速率最大值区间内所有数据流速率值的平均值 作为媒体理想速率。 The method for calculating the ideal rate of the medium may be, but not limited to, the following two methods: First, the data stream rate value with the highest frequency occurring in the statistical critical rate value and the rate maximum interval is used as the media ideal rate. Second, calculate the average of all data stream rate values in the critical rate value and the rate maximum interval as the media ideal rate.

参数 DF的值是每隔一个周期计算一次, 一个计算周周期过后, DF重新开 始计算。  The value of the parameter DF is calculated every other cycle. After one calculation cycle period, the DF restarts the calculation.

为了计算媒体丟包率, 需要统计在当前计算周期内实际收到 TS包的字节 数, 并且根据媒体理想速率计算在当前计算周期内应该收到 TS包的字节数, 最后根据所述应该收到 TS包字节数和实际收到 TS包字节数计算媒体丟包率; 具体见下面后续的流程:  In order to calculate the media packet loss rate, it is necessary to count the number of bytes actually received by the TS packet in the current calculation period, and calculate the number of bytes that should be received in the current calculation period according to the media ideal rate, and finally according to the The number of TS packets received and the number of TS packets actually received are calculated. The media packet loss rate is calculated. For details, see the following process:

507、 获取接收到的数据流中具有 PCR信息的 TS包的 PCR值, 一般在接 收到数据流时, 先判断数据流中的数据包是否含有 PCR信息, 如果数据流中 的数据包含有 PCR信息, 执行步骤 508 ; 否则执行 507。  507. Obtain a PCR value of a TS packet with PCR information in the received data stream, and generally, when receiving the data stream, first determine whether the data packet in the data stream contains PCR information, if the data in the data stream includes PCR information. , go to step 508; otherwise, go to 507.

508、 计算含有 PCR信息的数据包中的 PCR值, 并保存。  508. Calculate the PCR value in the data packet containing the PCR information, and save it.

PCR值的计算情况分为两种:一种情况为系统时钟频率是 27MHZ时的计算 方法: PCR (i) =PCR_ba se (i) * 300+PCR_ext (i) ;另一种情况为系统时钟频率是 90KHZ时的计算方法: PCR (i) =PCR_ba se (i) * 300。  There are two kinds of calculations for PCR values: one is the calculation method when the system clock frequency is 27 MHz: PCR (i) = PCR_ba se (i) * 300 + PCR_ext (i); the other case is the system clock frequency The calculation method is 90KHZ: PCR (i) = PCR_ba se (i) * 300.

509、 判断是否完成一个计算周期。 计算周期通常为 1秒。 如果完成一个 计算周期, 则执行步骤 810; 否则执行步骤 507。  509. Determine whether a calculation cycle is completed. The calculation period is usually 1 second. If a calculation cycle is completed, then step 810 is performed; otherwise, step 507 is performed.

51 0、 找到该周期内最早计算出的 PCR值, 设为变量 PCR ( i ) ,并找到最 后计算出的 PCR值,设为变量 PCR ( i i )。  51 0. Find the earliest calculated PCR value in the period, set it as variable PCR ( i ), and find the last calculated PCR value, set to variable PCR ( i i ).

举例说明: 假设计算周期为 1秒, 这 1秒内接收到 1 0个数据包, 但是只 有第 2、 3、 5、 6、 7、 9个包含有时钟参考信息, 计算机按顺序计算出对应的 PCR值, 那么这一周期内最早计算出的 PCR值是第 2个包的 PCR值, 最后计算 出的 PCR值是第 9个包的 PCR值。  For example: Suppose the calculation period is 1 second, and 10 packets are received within 1 second, but only the 2nd, 3rd, 5th, 6th, 7th, and 9th contain clock reference information, and the computer calculates the corresponding data in order. PCR value, then the earliest calculated PCR value in this cycle is the PCR value of the second packet, and the last calculated PCR value is the PCR value of the ninth packet.

51 1、 计算出上述的最早计算得到的 PCR值和最后计算得到的 PCR值之间 所对应的时间跨度, 用上述两个 PCR值得差值除以系统时钟频率得到所述时 间跨度,设为变量 T,即: T= [PCR ( i ) - PCR ( i i ) ]八系统时钟频率。 512、用上述时间跨度 T与媒体理想速率相乘得到应该收到的字节数,即: 应收字节数 =Τ*媒体理想速率。 51 1. Calculate a time span corresponding to the first calculated PCR value and the last calculated PCR value, and divide the difference between the two PCR value by the system clock frequency to obtain the time span, and set the variable as a variable. T, ie: T = [PCR (i) - PCR ( ii ) ] eight system clock frequency. 512. Multiply the time span T by the media ideal rate to obtain the number of bytes that should be received, that is, the number of bytes receivable = Τ * media ideal rate.

513、将应该收到字节数和实际收到的字节数的差值除以 188得到丟包数, 再除以计算周期得到参数 MLR的值,即: MLR= (应收字节数 -实收字节数)/ (188* 计算周期)。  513. Divide the difference between the number of bytes that should be received and the number of bytes actually received by 188 to obtain the number of lost packets, and divide by the calculation period to obtain the value of the parameter MLR, namely: MLR= (the number of bytes receivable - The number of received bytes) / (188 * calculation cycle).

514、 判断是否有结束测量消息。 如果有结束测量消息, 则结束流程; 否 则执行步骤 507。  514. Determine whether there is an end measurement message. If there is an end measurement message, the process ends; otherwise, step 507 is performed.

对应于图 3 所描述的计算媒体丟包率的方法, 本发明实施例还提供一种 用于媒体传输质量测量的装置, 用于计算媒体丟包率, 如图 6 所示, 该装置 包括: 预测量单元 61、 获取单元 62、 计算单元 63、 确定单元 64和媒体丟包 率计算单元 65。  Corresponding to the method for calculating the media packet loss rate described in FIG. 3, the embodiment of the present invention further provides a device for media transmission quality measurement, which is used to calculate a media packet loss rate. As shown in FIG. 6, the device includes: The prediction amount unit 61, the acquisition unit 62, the calculation unit 63, the determination unit 64, and the media packet loss rate calculation unit 65.

其中, 预测量单元 61用于接收数据流, 并根据所述数据流中 TS包的特 征信息计算至少一个速率值, 具体的计算方法见图 5 中 501过程的描述; 获 取单元 62用于获取计算出的速率值中的最大速率值; 计算单元 63用于以计 算出所述最大速率值的 TS包的特征信息为基石出计算临界速率值;确定单元 64 用于获取计算出的在所述最大速率值和临界速率值之间的速率值, 根据所述 最大速率值和临界速率值之间的速率值确定媒体理想速率; 媒体丟包率计算 单元 65用于根据所述媒体理想速率计算媒体丟包率。  The prediction unit 61 is configured to receive the data stream, and calculate at least one rate value according to the feature information of the TS packet in the data stream. The specific calculation method is as described in the 501 process in FIG. 5; the obtaining unit 62 is configured to obtain the calculation. The maximum rate value of the output rate value; the calculating unit 63 is configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; and the determining unit 64 is configured to obtain the calculated maximum value a rate value between the rate value and the critical rate value, determining a media ideal rate according to the rate value between the maximum rate value and the critical rate value; the media packet loss rate calculating unit 65 is configured to calculate the media loss according to the media ideal rate Package rate.

为了能够防止得出的媒体理想速率出现误差, 本实施例采用临界速率值 和最大速率值对媒体理想速率的范围进行了限定, 为了得到较为合理的临界 速率值, 在本实施例中所述计算单元 63具体包括: 预处理模块 631和除法模 块 632。  In order to prevent the error of the obtained media ideal rate, the present embodiment uses the critical rate value and the maximum rate value to define the range of the media ideal rate. In order to obtain a reasonable critical rate value, the calculation is performed in this embodiment. The unit 63 specifically includes: a pre-processing module 631 and a division module 632.

其中, 预处理模块 631用于将计算出所述最大速率值的 TS包数量减一, 并得到相应的字节数; 并根据所述 PCR信息确定计算最大速率值时所用的时 间; 除法模块 632用于将所述字节数除以所述时间得出临界速率值。  The pre-processing module 631 is configured to reduce the number of TS packets for which the maximum rate value is calculated by one, and obtain a corresponding number of bytes; and determine, according to the PCR information, a time used for calculating the maximum rate value; the dividing module 632 A method for dividing the number of bytes by the time to derive a critical rate value.

为了保证最后确定出的媒体理想速率是一个较接近真实情况的数据, 本 发明实施例中提供了如下两种确定单元 64的实现方式: In order to ensure that the final determined media rate is a data that is closer to the real situation, Ben The implementation of the following two determining units 64 is provided in the embodiment of the invention:

第一、 所述确定单元 64包括统计模块 641和处理模块 642 , 其中, 统计 模块 441 用于统计最大速率值和临界速率值区间内所有速率值出现的频率; 处理模块 442用于将出现频率最高的速率值作为媒体理想速率。  First, the determining unit 64 includes a statistic module 641 and a processing module 642, where the statistic module 441 is configured to count the frequency at which all rate values occur in the maximum rate value and the critical rate value interval; the processing module 442 is configured to use the highest frequency. The rate value is used as the media ideal rate.

第二、 所述确定单元 64包括计算模块 643和处理模块 644 (见图 6中的 虚线部分), 其中, 计算模块 643用于计算最大速率值和临界速率值区间内所 有数据流速率值的平均值; 处理模块 644 用于将所述平均值作为媒体理想速 率。  Second, the determining unit 64 includes a calculating module 643 and a processing module 644 (see the dotted line portion in FIG. 6), wherein the calculating module 643 is configured to calculate an average of all data stream rate values in the maximum rate value and the critical rate value interval. Value; processing module 644 is configured to use the average as the media ideal rate.

在具体实现时, 所述媒体丟包率计算单元 65包括: 字节统计模块 651、 字节计算模块 652和媒体丟包率计算模块 653。所述字节统计模块 651用于统 计在当前计算周期内实际收到 TS包的字节数; 所述字节计算模块 652用于根 据媒体理想速率计算在当前计算周期内应该收到 TS包的字节数; 所述媒体丟 包率计算模块 653用于根据所述应该收到 TS包字节数和实际收到 TS包字节 数计算媒体丟包率, 即: 将应该收到字节数和实际收到的字节数的差值除以 188得到丟包数,再除以计算周期得到参数 MLR的值,相当于计算公式为: MLR= (应收字节数-实收字节数) / (188*计算周期)。  In a specific implementation, the media packet loss rate calculation unit 65 includes: a byte statistics module 651, a byte calculation module 652, and a media packet loss rate calculation module 653. The byte statistics module 651 is configured to count the number of bytes of the TS packet actually received in the current calculation period. The byte calculation module 652 is configured to calculate, according to the media ideal rate, the TS packet that should be received in the current calculation period. The media packet loss rate calculation module 653 is configured to calculate a media packet loss rate according to the number of TS packets that should be received and the number of actually received TS packets, that is, the number of bytes that should be received. Dividing the difference between the number of bytes actually received and 188 to obtain the number of lost packets, and dividing by the calculation period to obtain the value of the parameter MLR, the equivalent of the calculation formula is: MLR= (the number of bytes receivable - the number of bytes received) ) / (188* calculation cycle).

其中, 所述字节计算模块 652包括: 获取子模块 6521、判断子模块 6522、 确定子模块 6523、 第一计算子模块 6524和第二计算子模块 6525。 所述获取 子模块 6521用于获取接收到的数据流中具有 PCR信息的 TS包的 PCR值; 所 述判断子模块 6522用于判断计算周期是否结束; 所述确定子模块 6523用于 在所述计算周期结束时, 确定该计算周期内最早获取的 PCR值和最后获取的 PCR值; 所述第一计算子模块 6524用于计算出最早获取的 PCR值和最后获取 的 PCR值之间的时间跨度; 所述第二计算子模块 6525用于根据时间跨度和媒 体理想速率计算应该收到的字节数。  The byte calculation module 652 includes: an acquisition submodule 6521, a determination submodule 6522, a determination submodule 6523, a first calculation submodule 6524, and a second calculation submodule 6525. The obtaining sub-module 6521 is configured to acquire a PCR value of a TS packet having PCR information in the received data stream; the determining sub-module 6522 is configured to determine whether the calculation period is ended; the determining sub-module 6523 is configured to At the end of the calculation period, the earliest acquired PCR value and the last acquired PCR value are determined in the calculation period; the first calculation sub-module 6524 is configured to calculate a time span between the earliest acquired PCR value and the last acquired PCR value. The second calculation sub-module 6525 is configured to calculate the number of bytes that should be received according to the time span and the media ideal rate.

本发明实施例提供的应用于媒体传输质量测量指标的方法及装置, 在计 算媒体理想速率时, 首先选择计算出的所有传送数据流中的最大值, 因为最 大速率值对应的数据包数量最多, 此时的丟失数据包数量最少或者没有丟失 数据包的现象; 然后根据最大速率值计算出一个临界速率值, 是考虑到发送 端生成数据流时会引入一些误差。 这样, 根据最大速率值和临界速率值统计 出的媒体理想速率误差较小, 统计的方法可以为但不限于选取临界速率值到 最大速率值区间内的出现频率最高的传送流速率值或者选取区间内所有速率 值的平均值, 得到的计算值更为合理、 准确。 避免当出现丟失数据包现象时, 取计算出的所有传送数据流中的平均值所带来的较大误差。 The method and device for applying the media transmission quality measurement index provided by the embodiment of the present invention, when calculating the ideal rate of the medium, first selecting the maximum value of all the calculated data streams, because the most The large rate value corresponds to the largest number of data packets. At this time, the number of lost data packets is the least or no data packets are lost. Then, a critical rate value is calculated according to the maximum rate value, which is introduced when the data stream is generated by the transmitting end. error. In this way, the media ideal rate error calculated according to the maximum rate value and the critical rate value is small, and the statistical method may be, but not limited to, selecting the highest frequency of the transmission stream rate value or the selection interval from the critical rate value to the maximum rate value interval. The average of all the velocity values in the internal value is more reasonable and accurate. Avoid large errors caused by the average of all calculated transport streams when a packet loss occurs.

参数 MLR 的计算用到上述已计算出的较为准确的媒体理想速率, 还利用 到理想应该收到的字节数和实际收到的字节数的差值, 实际收到的字节数是 可以用设备测量的, 它们的差值代表传送中丟失的字节数, 进而可以计算出 传送中丟失的数据包数量。 当出现连续丟失大量数据包现象时也能够得到较 为准确的参数 MLR 的计算值。 避免大量丟包时连续计数器统计不到数据包, 不能计算的问题。  The parameter MLR is calculated by using the above calculated accurate media ideal rate, and also using the difference between the number of bytes that should be received and the number of bytes actually received. The actual number of bytes received is Measured by the device, their difference represents the number of bytes lost in the transmission, which in turn can calculate the number of lost packets in the transmission. The calculated value of the more accurate parameter MLR can also be obtained when there is a continuous loss of a large number of packets. Avoid the problem that the continuous counter does not count the data packets when a large number of packets are lost, and cannot be calculated.

上述实施例 2中计算 DF的方法和装置、 实施例 3中计算 MLR的方法和装 置可以在同一个实施例中同时实现。  The method and apparatus for calculating DF in Embodiment 2 above, and the method and apparatus for calculating MLR in Embodiment 3 can be simultaneously implemented in the same embodiment.

通过以上的实施方式的描述, 所属领域的技术人员可以清楚地了解到本 发明可借助软件加必需的通用硬件的方式来实现, 当然也可以通过硬件, 但 很多情况下前者是更佳的实施方式。 基于这样的理解, 本发明的技术方案本 质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来, 该 计算机软件产品存储在可读取的存储介质中, 如计算机的软盘, 硬盘或光盘 等, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述的方法。  Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, by hardware, but in many cases, the former is a better implementation. . Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. A hard disk or optical disk or the like includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保 护范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any change or replacement that can be easily conceived by those skilled in the art within the technical scope of the present invention is All should be covered by the scope of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

权利 要求 书 Claim 1、 一种应用于媒体传输质量测量的方法, 其特征在于, 包括:  A method for measuring quality of media transmission, characterized in that it comprises: 接收数据流, 根据所述数据流中 TS包的特征信息计算至少一个速率值; 获取计算出的速率值中的最大速率值;  Receiving a data stream, calculating at least one rate value according to the feature information of the TS packet in the data stream; acquiring a maximum rate value among the calculated rate values; 以计算出所述最大速率值的 TS包的特征信息为基石出计算临界速率值; 获取计算出的在所述最大速率值和临界速率值之间的速率值, 根据所述最 大速率值和临界速率值之间的速率值确定媒体理想速率。  Calculating a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; obtaining the calculated rate value between the maximum rate value and the critical rate value, according to the maximum rate value and the critical value The rate value between the rate values determines the media ideal rate. 2、 根据权利要求 1所述的应用于媒体传输质量测量的方法, 其特征在于, 所述 TS包的特征信息包括: 两个携带有 PCR信息的 TS包之间的 TS包数量、 以 及所述两个 TS包的 PCR信息。  The method for applying media transmission quality measurement according to claim 1, wherein the feature information of the TS packet includes: a number of TS packets between two TS packets carrying PCR information, and the PCR information for two TS packets. 3、 根据权利要求 2所述的应用于媒体传输质量测量的方法, 其特征在于, 所述以计算出所述最大速率值的 TS包的特征信息为基础计算临界速率值包括: 将计算出所述最大速率值的 TS包数量减一, 并得到相应的字节数; 根据所述 PCR信息确定计算最大速率值时所用的时间;  The method for applying the media transmission quality measurement according to claim 2, wherein the calculating the critical rate value based on the feature information of the TS packet that calculates the maximum rate value comprises: calculating the Determining the number of TS packets of the maximum rate value by one, and obtaining a corresponding number of bytes; determining, according to the PCR information, a time used for calculating the maximum rate value; 将所述字节数除以所述时间得出临界速率值。  Dividing the number of bytes by the time yields a critical rate value. 4、 根据权利要求 1所述的应用于媒体传输质量测量的方法, 其特征在于, 所述根据所述最大速率值和临界速率值之间的速率值确定媒体理想速率包括: 统计最大速率值和临界速率值区间内所有速率值出现的频率;  The method for applying media transmission quality measurement according to claim 1, wherein the determining the media ideal rate according to the rate value between the maximum rate value and the critical rate value comprises: calculating a maximum rate value and The frequency at which all rate values occur within the critical rate value interval; 将出现频率最高的速率值作为媒体理想速率。  The highest frequency rate value will appear as the media ideal rate. 5、 根据权利要求 1所述的应用于媒体传输质量测量的方法, 其特征在于, 所述根据所述最大速率值和临界速率值之间的速率值确定媒体理想速率包括: 计算最大速率值和临界速率值区间内所有数据流速率值的平均值; 将所述平均值作为媒体理想速率。  The method for applying media transmission quality measurement according to claim 1, wherein the determining the media ideal rate according to the rate value between the maximum rate value and the critical rate value comprises: calculating a maximum rate value and The average of all data flow rate values within the critical rate value interval; the average is taken as the media ideal rate. 6、根据权利要求 1至 5中任意一项所述的应用于媒体传输质量测量的方法, 其特征在于, 该方法还包括: 根据所述媒体理想速率计算延迟参数, 和 /或根据 所述媒体理想速率计算媒体丟包率。 The method for applying media transmission quality measurement according to any one of claims 1 to 5, characterized in that the method further comprises: calculating a delay parameter according to the media ideal rate, and/or according to the medium The ideal rate calculates the media packet loss rate. 7、 根据权利要求 6所述的应用于媒体传输质量测量的方法, 其特征在于, 所述根据所述媒体理想速率计算延迟参数包括: The method for applying the media transmission quality measurement according to claim 6, wherein the calculating the delay parameter according to the media ideal rate comprises: 在计算周期内计算每接收到一个数据时的两个包虚拟緩存高度值; 将计算周期内计算出的所有虚拟緩存高度值中最大值和最小值的差值除以 媒体理想速率得到延迟参数。  The two packet virtual cache height values are calculated each time a data is received in the calculation period; the difference between the maximum and minimum values of all the virtual cache height values calculated in the calculation period is divided by the media ideal rate to obtain a delay parameter. 8、 根据权利要求 7所述的应用于媒体传输质量测量的方法, 其特征在于, 所述在计算周期内计算每接收到一个数据时的两个包虚拟緩存高度值包括: 在接收的数据流中查找当前接收数据包之前已接收的数据包字节数; 统计当前接收数据包字节数;  8. The method for applying media transmission quality measurement according to claim 7, wherein the calculating two virtual cache height values each time a data is received in the calculation period comprises: receiving the data stream Find the number of bytes of the packet that was received before the current received packet; count the number of bytes of the currently received packet; 记录从开始测量到当前接收数据包所用的时间;  Record the time taken from the start of the measurement to the current reception of the data packet; 将接收存字节数减去媒体理想速率与所记录时间的积得到一个虚拟緩存高 度值;  Substituting the number of received bytes minus the product of the ideal rate of the medium and the recorded time to obtain a virtual cache height value; 将已接收字节数与本次接收数据包字节数的和减去媒体理想速率与所记录 时间的积得到另一个虚拟緩存高度值。  The sum of the number of received bytes and the number of bytes of the received packet minus the sum of the media ideal rate and the recorded time yields another virtual cache height value. 9、 根据权利要求 6所述的应用于媒体传输质量测量的方法, 其特征在于, 所述根据所述媒体理想速率计算媒体丟包率包括:  The method for applying media transmission quality measurement according to claim 6, wherein the calculating the media packet loss rate according to the media ideal rate comprises: 统计在当前计算周期内实际收到 TS包的字节数;  Count the number of bytes actually received by the TS packet during the current calculation period; 根据媒体理想速率计算在当前计算周期内应该收到 TS包的字节数; 根据所述应该收到 TS包字节数和实际收到 TS包字节数计算媒体丟包率。 Calculating the number of bytes of the TS packet that should be received in the current calculation period according to the ideal rate of the medium; calculating the media packet loss rate according to the number of TS packets that should be received and the number of TS packets actually received. 10、 根据权利要求 9所述的应用于媒体传输质量测量的方法, 其特征在于, 所述根据媒体理想速率计算在当前计算周期内应该收到 TS包的字节数包括: 获取接收到的数据流中具有 PCR信息的 TS包的 PCR值; The method for applying media transmission quality measurement according to claim 9, wherein the calculating the number of bytes that should receive the TS packet in the current calculation period according to the media ideal rate comprises: acquiring the received data PCR value of the TS packet with PCR information in the stream; 判断计算周期是否结束;  Determine whether the calculation cycle is over; 在所述计算周期结束时, 确定该计算周期内最早获取的 PCR值和最后获取 的 PCR值;  At the end of the calculation period, determining the earliest acquired PCR value and the last acquired PCR value in the calculation period; 计算出最早获取的 PCR值和最后获取的 PCR值之间的时间跨度; 根据时间跨度和媒体理想速率计算应该收到的字节数。 Calculating the time span between the earliest acquired PCR value and the last acquired PCR value; Calculates the number of bytes that should be received based on the time span and the media ideal rate. 11、 一种应用于媒体传输质量测量的装置, 其特征在于, 包括:  11. A device for measuring media transmission quality, characterized in that it comprises: 预测量单元, 用于接收数据流, 并根据所述数据流中 TS包的特征信息计算 至少一个速率值;  a prediction unit, configured to receive a data stream, and calculate at least one rate value according to the feature information of the TS packet in the data stream; 获取单元, 用于获取计算出的速率值中的最大速率值;  An obtaining unit, configured to obtain a maximum rate value among the calculated rate values; 计算单元, 用于以计算出所述最大速率值的 TS包的特征信息为基础计算临 界速率值;  a calculating unit, configured to calculate a critical rate value based on the feature information of the TS packet that calculates the maximum rate value; 确定单元, 用于获取计算出的在所述最大速率值和临界速率值之间的速率 值, 根据所述最大速率值和临界速率值之间的速率值确定媒体理想速率。  And a determining unit, configured to obtain the calculated rate value between the maximum rate value and the critical rate value, and determine a media ideal rate according to the rate value between the maximum rate value and the critical rate value. 12、根据权利要求 1 1所述的应用于媒体传输质量测量的装置,其特征在于, 所述 TS包的特征信息包括: 两个携带有 PCR信息的 TS包之间的 TS包数量、 以 及所述两个 TS包的 PCR信息。  The device for applying the quality measurement of the media transmission according to claim 11, wherein the feature information of the TS packet includes: the number of TS packets between two TS packets carrying PCR information, and The PCR information of the two TS packets is described. 1 3、根据权利要求 12所述的应用于媒体传输质量测量的装置,其特征在于, 所述计算单元包括:  The apparatus for measuring media transmission quality according to claim 12, wherein the calculating unit comprises: 预处理模块, 用于将计算出所述最大速率值的 TS包数量减一, 并得到相应 的字节数; 并根据所述 PCR信息确定计算最大速率值时所用的时间;  a pre-processing module, configured to reduce the number of TS packets that calculate the maximum rate value by one, and obtain a corresponding number of bytes; and determine, according to the PCR information, a time used to calculate a maximum rate value; 除法模块, 用于将所述字节数除以所述时间得出临界速率值。  A divide module is configured to divide the number of bytes by the time to derive a critical rate value. 14、根据权利要求 1 1所述的应用于媒体传输质量测量的装置,其特征在于, 所述确定单元包括:  The device for measuring media transmission quality according to claim 1, wherein the determining unit comprises: 统计模块, 用于统计最大速率值和临界速率值区间内所有速率值出现的频 率;  a statistics module, configured to count the frequency of occurrence of all rate values in the interval between the maximum rate value and the critical rate value; 处理模块, 用于将出现频率最高的速率值作为媒体理想速率。  The processing module is configured to use the highest frequency rate value as the media ideal rate. 15、根据权利要求 1 1所述的应用于媒体传输质量测量的装置,其特征在于, 所述确定单元包括:  The device for measuring media transmission quality according to claim 1, wherein the determining unit comprises: 计算模块, 用于计算最大速率值和临界速率值区间内所有数据流速率值的 平均值; 处理模块, 用于将所述平均值作为媒体理想速率。 a calculation module, configured to calculate an average value of all data flow rate values in the interval between the maximum rate value and the critical rate value; And a processing module, configured to use the average value as a media ideal rate. 16、 根据权利要求 1 1至 15 中任意一项所述的应用于媒体传输质量测量的 装置, 其特征在于, 该装置还包括:  The device for measuring media transmission quality according to any one of claims 1 to 15, wherein the device further comprises: 延迟参数计算单元, 用于根据所述媒体理想速率计算延迟参数, 和 /或 媒体丟包率计算单元, 用于根据所述媒体理想速率计算媒体丟包率。  The delay parameter calculation unit is configured to calculate a delay parameter according to the media ideal rate, and/or a media packet loss rate calculation unit, configured to calculate a media packet loss rate according to the media ideal rate. 17、根据权利要求 16所述的应用于媒体传输质量测量的装置,其特征在于, 所述延迟参数计算单元包括:  The device for measuring media transmission quality according to claim 16, wherein the delay parameter calculation unit comprises: 延迟参数预处理模块, 用于在计算周期内计算每接收到一个数据时的两个 包虚拟緩存高度值;  a delay parameter pre-processing module, configured to calculate two packet virtual cache height values each time a data is received in a calculation period; 延迟参数计算模块, 用于将计算周期内计算出的所有虚拟緩存高度值中最 大值和最小值的差值除以媒体理想速率得到延迟参数。  The delay parameter calculation module is configured to obtain a delay parameter by dividing the difference between the maximum value and the minimum value of all the virtual cache height values calculated in the calculation period by the media ideal rate. 18、根据权利要求 17所述的应用于媒体传输质量测量的装置,其特征在于, 所述延迟参数预处理模块包括:  The device for applying the quality measurement of the media transmission according to claim 17, wherein the delay parameter pre-processing module comprises: 查找子模块, 用于在接收的数据流中查找当前接收数据包之前已接收的数 据包字节数;  a lookup submodule, configured to find, in the received data stream, the number of data packets received before the current received data packet; 统计子模块, 用于统计当前接收数据包字节数;  a statistics submodule, configured to count the number of bytes of the currently received data packet; 记录子模块, 用于记录从开始测量到当前接收数据包所用的时间; 第一计算子模块, 用于将已接收字节数减去媒体理想速率与所记录时间的 积得到一个虚拟緩存高度值;  a recording submodule, configured to record a time taken from the start of the measurement to the current reception of the data packet; the first calculation submodule, configured to subtract the product of the received number of bytes from the media ideal rate and the recorded time to obtain a virtual cache height value ; 第二计算子模块, 用于将已接收字节数与本次接收数据包字节数的和减去 媒体理想速率与所记录时间的积得到另一个虚拟緩存高度值。  And a second calculation submodule, configured to subtract the sum of the media ideal rate and the recorded time from the sum of the number of received bytes and the number of bytes of the received packet to obtain another virtual cache height value. 19、根据权利要求 16所述的应用于媒体传输质量测量的装置,其特征在于, 所述媒体丟包率计算单元包括:  The device for measuring media transmission quality according to claim 16, wherein the media packet loss rate calculation unit comprises: 字节统计模块, 用于统计在当前计算周期内实际收到 TS包的字节数; 字节计算模块, 用于根据媒体理想速率计算在当前计算周期内应该收到 TS 包的字节数; 媒体丟包率计算模块, 用于根据所述应该收到 TS 包字节数和实际收到 TS 包字节数计算媒体丟包率。 a byte statistics module, configured to count the number of bytes of the TS packet actually received in the current calculation period; and a byte calculation module, configured to calculate, according to the media ideal rate, the number of bytes that should receive the TS packet in the current calculation period; The media packet loss rate calculation module is configured to calculate a media packet loss rate according to the number of TS packets that should be received and the number of actually received TS packets. 20、根据权利要求 19所述的应用于媒体传输质量测量的装置,其特征在于, 所述字节计算模块包括:  The apparatus for measuring media transmission quality according to claim 19, wherein the byte calculation module comprises: 获取子模块, 用于获取接收到的数据流中具有 PCR信息的 TS包的 PCR值; 判断子模块, 用于判断计算周期是否结束;  Obtaining a sub-module, configured to obtain a PCR value of a TS packet having PCR information in the received data stream; and determining a sub-module, configured to determine whether the calculation period ends; 确定子模块, 用于在所述计算周期结束时, 确定该计算周期内最早获取的 PCR值和最后获取的 PCR值;  Determining a sub-module, configured to determine, at the end of the calculation period, the earliest acquired PCR value and the last acquired PCR value in the calculation period; 第一计算子模块, 用于计算出最早获取的 PCR值和最后获取的 PCR值之间 的时间跨度;  a first calculation sub-module, configured to calculate a time span between the earliest acquired PCR value and the last acquired PCR value; 第二计算子模块, 用于根据时间跨度和媒体理想速率计算应该收到的字节 数。  A second calculation sub-module for calculating the number of bytes that should be received based on the time span and the media ideal rate.
PCT/CN2009/074472 2008-12-02 2009-10-15 Method and apparatus applied for media delivery quality measurement Ceased WO2010063202A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN200810179371.5 2008-12-02
CN200810179371.5A CN101753363B (en) 2008-12-02 2008-12-02 Method applied to medium transmission quality measurement and device thereof

Publications (1)

Publication Number Publication Date
WO2010063202A1 true WO2010063202A1 (en) 2010-06-10

Family

ID=42232887

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2009/074472 Ceased WO2010063202A1 (en) 2008-12-02 2009-10-15 Method and apparatus applied for media delivery quality measurement

Country Status (2)

Country Link
CN (1) CN101753363B (en)
WO (1) WO2010063202A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595593A (en) * 2013-12-03 2014-02-19 南京安讯科技有限责任公司 Probe-based MDI (Media Delivery Index) measuring system and method
CN114422790A (en) * 2022-03-07 2022-04-29 深圳市美科星通信技术有限公司 A code rate control method, code rate control device and electronic equipment

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104335527B (en) * 2013-05-27 2017-12-15 华为技术有限公司 Quality of service processing method, device and equipment
CN114257848A (en) * 2018-02-11 2022-03-29 华为技术有限公司 Method, device, communication system and computer readable storage medium for implementing video service
US11228631B2 (en) * 2019-04-26 2022-01-18 Juniper Networks, Inc Apparatus, system, and method for conditionally performing media delivery index measurements on streaming media

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101035251A (en) * 2007-04-19 2007-09-12 中兴通讯股份有限公司 IPTV service system based on the IP multimedia sub-system
US7356605B1 (en) * 2000-12-29 2008-04-08 Cisco Technology, Inc. System and method for controlling delivery of streaming media
CN101247286A (en) * 2008-03-21 2008-08-20 中兴通讯股份有限公司 Method and system for service quality detection of video distribution system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101068210B (en) * 2007-06-20 2012-11-28 中兴通讯股份有限公司 Multimedia data transmitting method
CN100561955C (en) * 2007-11-15 2009-11-18 中国电信股份有限公司 The parameter collecting method and the system that are used for the quality of service monitoring of IPTV business
CN101197737B (en) * 2008-01-09 2010-07-14 中兴通讯股份有限公司 Measuring apparatus and measuring method for IPTV access network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7356605B1 (en) * 2000-12-29 2008-04-08 Cisco Technology, Inc. System and method for controlling delivery of streaming media
CN101035251A (en) * 2007-04-19 2007-09-12 中兴通讯股份有限公司 IPTV service system based on the IP multimedia sub-system
CN101247286A (en) * 2008-03-21 2008-08-20 中兴通讯股份有限公司 Method and system for service quality detection of video distribution system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
J. WELCH ET AL: "A Proposed Media Delivery Index (MDI)", RFC 4445, April 2006 (2006-04-01), pages 4 - 5 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103595593A (en) * 2013-12-03 2014-02-19 南京安讯科技有限责任公司 Probe-based MDI (Media Delivery Index) measuring system and method
CN114422790A (en) * 2022-03-07 2022-04-29 深圳市美科星通信技术有限公司 A code rate control method, code rate control device and electronic equipment

Also Published As

Publication number Publication date
CN101753363B (en) 2012-06-27
CN101753363A (en) 2010-06-23

Similar Documents

Publication Publication Date Title
DK3118855T3 (en) Method, device and system for synchronous audio playback
EP2757754B1 (en) Method and device for evaluating media transmission quality
CN102118270B (en) A method and device for measuring user quality of experience (QoE)
US7969891B2 (en) Adjustment of clock approximations
JP2006115477A (en) Method and system for presentation of media obtained from media stream
US20100290454A1 (en) Play-Out Delay Estimation
CN109889398B (en) A method and device, device and storage medium for detecting service quality of media stream
KR102026266B1 (en) Estimation method of network jitter for apparatuses transporting coded media data
CN102651821B (en) Method and device for evaluating quality of video
WO2010063202A1 (en) Method and apparatus applied for media delivery quality measurement
CN107493482A (en) A kind of video playback method and device
CN100407662C (en) A network bandwidth detection method for streaming media service
CN109905382A (en) Subjective and objective comprehensive evaluation method for user experience quality of IPTV video streaming service
CN108259998A (en) Player and control method for playing back, device, electronic equipment and play system
US20130282871A1 (en) Streaming service transmitting/receiving device and method
JP2011061533A (en) Content distribution system, sensory quality estimating apparatus, method, and program
Li et al. Real‐Time QoE Monitoring System for Video Streaming Services with Adaptive Media Playout
JP2008199606A (en) How to detect media rate to measure network jitter
CN109769131B (en) Video quality monitoring method and set top box
CN111556345A (en) Network quality detection method and device, electronic equipment and storage medium
CN113453024B (en) Method, device and system for monitoring service
KR20150047083A (en) Apparatus and Method for Managing MMT buffer model using Reception quality feedback message
WO2021104249A1 (en) Data processing method and apparatus, computer storage medium, and electronic device
Shuai et al. Olac: An open-loop controller for low-latency adaptive video streaming
JP5643242B2 (en) Media player parameter estimation apparatus, method, and program

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 09829986

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 09829986

Country of ref document: EP

Kind code of ref document: A1