[go: up one dir, main page]

CN1716945A - Method for detecting medium flow service quality - Google Patents

Method for detecting medium flow service quality Download PDF

Info

Publication number
CN1716945A
CN1716945A CN 200410062977 CN200410062977A CN1716945A CN 1716945 A CN1716945 A CN 1716945A CN 200410062977 CN200410062977 CN 200410062977 CN 200410062977 A CN200410062977 A CN 200410062977A CN 1716945 A CN1716945 A CN 1716945A
Authority
CN
China
Prior art keywords
media stream
detection
media gateway
duration
request message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200410062977
Other languages
Chinese (zh)
Other versions
CN100493069C (en
Inventor
林扬波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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
Priority to CNB2004100629772A priority Critical patent/CN100493069C/en
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to ES05759437T priority patent/ES2314677T3/en
Priority to PT05759437T priority patent/PT1739900E/en
Priority to EP05759437A priority patent/EP1739900B1/en
Priority to AT05759437T priority patent/ATE413044T1/en
Priority to PCT/CN2005/000958 priority patent/WO2006002597A1/en
Priority to DE602005010681T priority patent/DE602005010681D1/en
Publication of CN1716945A publication Critical patent/CN1716945A/en
Priority to US11/558,619 priority patent/US7583612B2/en
Application granted granted Critical
Publication of CN100493069C publication Critical patent/CN100493069C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This invention discloses a method for testing the medium flow service quality, which enables MGC to get the current medium flow service quality timely so as to timely regulate the transfer of the medium flow in the process of transferring medium flows. MGC sends the request information for detecting current value to MG in a preset fixed period to get the current service quality of the medium flow not obtaining it only after the MGC is dismantled.

Description

媒体流服务质量检测方法Media streaming service quality detection method

技术领域technical field

本发明涉及通信领域,特别涉及媒体流服务质量检测技术。The invention relates to the communication field, in particular to a media stream service quality detection technology.

背景技术Background technique

随着通信技术的不断发展,互联网、移动通信网以及固定电话通信网的各种业务不断渗透和融合,出现了诸如网间互联协议(Internet Protocol,简称“IP”)电话、无线应用协议(Wireless Application Protocol,WAP)以及视频会议等新兴业务类型,然而由于互联网、移动通信网和固定电话通信网采用的是不同的网络架构,要使这三种网络的所有业务都完全融合,其处理过程并不能按照上述新兴业务的处理过程进行处理,而是需要一种全新的处理机制。下一代网络(Next Generation Network,简称“NGN”)作为一种新型网络,其能够将话音、数据、传真和视频等业务完全融合,使互联网、移动通信网以及固定电话通信网的各种业务在网络层上实现互连互通,因此目前NGN网络已经成为将上述三种网络融合的一种主要机制。With the continuous development of communication technology, various services of the Internet, mobile communication network, and fixed-line communication network continue to infiltrate and merge. Application Protocol, WAP) and video conferencing and other emerging business types. However, since the Internet, mobile communication network and fixed telephone communication network adopt different network architectures, it is not necessary to fully integrate all services of these three networks. It cannot be processed according to the processing process of the above-mentioned emerging business, but requires a new processing mechanism. Next Generation Network (Next Generation Network, referred to as "NGN") is a new type of network, which can fully integrate services such as voice, data, fax and video, so that various services of the Internet, mobile communication network and fixed telephone communication network can be Interconnection and intercommunication are realized on the network layer, so the current NGN network has become a main mechanism for integrating the above three networks.

NGN的核心思想是将媒体与业务分离以及媒体与控制分离,即将媒体的传输与业务类型和业务的控制无关,业务的承载不需要考虑承载网络的形式和用户终端的类型,用户可以根据自己的需要配置和定义业务特征,满足用户的各项需求。NGN从功能上可以分为四层:接入层、传输和媒介层、控制层以及应用层。The core idea of NGN is to separate media from services and media from control, that is, media transmission has nothing to do with service types and service control, and service bearer does not need to consider the form of the bearer network and the type of user terminal. It is necessary to configure and define service characteristics to meet the needs of users. NGN can be divided into four layers functionally: access layer, transmission and media layer, control layer and application layer.

其中,接入层用于接入用户的各种业务,其向上应该能连接高速传输线,向下应该能支持多种业务接口;传输和媒介层用于提供具有服务质量保证、大带宽的统一综合平台;控制层则是NGN网络的控制核心,用于完成整个网络的控制、管理、连接、路由、计费、认证等功能,并具备开发接口的能力;业务层是开发、综合的业务接入平台,用于提供各类增值业务、多媒体业务和第三方业务等。Among them, the access layer is used to access various services of users. It should be able to connect high-speed transmission lines upwards and support multiple service interfaces downwards; the transmission and media layers are used to provide unified and comprehensive services with guaranteed quality of service and large bandwidth. platform; the control layer is the control core of the NGN network, which is used to complete the control, management, connection, routing, billing, authentication and other functions of the entire network, and has the ability to develop interfaces; the business layer is the development and comprehensive service access The platform is used to provide various value-added services, multimedia services and third-party services, etc.

在NGN中,核心部分是控制层,其采用软交换技术,为NGN中具有实时性要求的业务提供呼叫控制和连接控制功能。由于软交换技术仅仅通过系统将主叫方和被叫方的因特网内传输层地址相互交换,而无需任何电路交换单元建立端到端的连接,因此只要给定了主叫方和被叫方的地址,就可以按照固定的形式进行处理,不必取决于具体业务的类型,因而可以实现业务传输和业务类型分离。In NGN, the core part is the control layer, which uses softswitch technology to provide call control and connection control functions for services with real-time requirements in NGN. Since the softswitch technology only exchanges the Internet transport layer addresses of the calling party and the called party through the system, without any circuit switching unit to establish an end-to-end connection, as long as the addresses of the calling party and the called party are given, , it can be processed in a fixed form without depending on the type of specific business, so the separation of business transmission and business type can be realized.

NGN中实现软交换功能的是软交换机,其主要由三个部分组成:媒体网关(Media Gateway,简称“MG”)、媒体网关控制器(Media Gateway Controller,简称“MGC”)以及信令网关(Signal Gateway,简称“SG”)。The softswitch that implements the softswitch function in NGN is the softswitch, which is mainly composed of three parts: Media Gateway (MG for short), Media Gateway Controller (MGC for short), and signaling gateway (MGC for short). Signal Gateway, referred to as "SG").

其中,MG用于进行媒体流变换以及实现不同网络间通路的连接,如公用电话交换网与因特网间通路的连接,或者是移动通信网与因特网间通路的连接等;Among them, MG is used for media stream conversion and connection between different networks, such as the connection between the public switched telephone network and the Internet, or the connection between the mobile communication network and the Internet;

MGC根据接收到的信令控制MG连接的建立和释放,是信令消息的起点和终点,可以通过多种协议控制整个网络。目前MGC与MG之间的通信协议通常是H.248/媒体网关控制(H.248/Media Gateway Control,简称“H.248/MeGaCo”)协议和媒体网关控制协议(Media Gateway ControlProtocol,简称“MGCP”)两种协议。熟悉本领域的技术人员可以知道,MGCP是基于用户数据报协议(User Datagram Protocol,简称“UDP”)传输的协议,H.248/MeGaCo是基于传输控制协议(Transport Control Protocol,简称“TCP”)和UDP传输的协议。H.248的消息编码是基于文本和二进制,MGCP的消息编码则基于文本。The MGC controls the establishment and release of the MG connection according to the received signaling. It is the start and end point of the signaling message and can control the entire network through various protocols. Currently, the communication protocols between MGC and MG are H.248/Media Gateway Control (H.248/MeGaCo for short) protocol and Media Gateway Control Protocol (MGCP for short). ”) Two protocols. Those skilled in the art can know that MGCP is a protocol based on User Datagram Protocol (User Datagram Protocol, referred to as "UDP") transmission, and H.248/MeGaCo is based on Transmission Control Protocol (Transport Control Protocol, referred to as "TCP") and UDP transmission protocol. H.248's message encoding is based on text and binary, while MGCP's message encoding is based on text.

SG用于对不同的信令进行转换。The SG is used to convert different signaling.

图1是NGN中MG和MGC的组网结构示意图,如图所示。该结构主要由用户10、用户20、媒体网关(MG)30、媒体网关(MG)40和媒体网关控制器(MGC)50构成。Fig. 1 is a schematic diagram of the networking structure of MG and MGC in NGN, as shown in the figure. This structure is mainly composed of user 10, user 20, media gateway (MG) 30, media gateway (MG) 40 and media gateway controller (MGC) 50.

熟悉本领域的技术人员应该知道,H.248/MeGaCo协议中定义了两种连接模型:终端和上下文。终端可以是具有半永久存在性的物理终端或者临时申请用后释放的临时终端。上下文是一些终端之间的联系,其用于描述终端之间的拓扑关系以及媒体混合或交换的参数,使协议具有更好的灵活性和可扩展性。一般来讲一个终端只能属于一个上下文,一个上下文可以包含多个终端。所述物理终端可以是时分多路(Time Division Multiplex,简称“TDM”)信道或者模拟线;所述临时终端可以是用于承载语音、数据、视频信号或者各种混合信号的实时传输协议(Real-time Transport Protocol,简称“RTP”)流。在具体使用过程中,可以用属性、事件、信号、统计等参数来表示终端特性,为了屏蔽终端多样性的问题,可以将终端的各种特性参数组合成一个包。Those skilled in the art should know that two connection models are defined in the H.248/MeGaCo protocol: terminal and context. The terminal can be a physical terminal with semi-permanent existence or a temporary terminal released after temporary application. The context is the connection between some terminals, which is used to describe the topology relationship between the terminals and the parameters of media mixing or exchange, so that the protocol has better flexibility and scalability. Generally speaking, a terminal can only belong to one context, and a context can contain multiple terminals. The physical terminal can be a Time Division Multiplex (TDM for short) channel or an analog line; the temporary terminal can be a real-time transport protocol (Real-time transport protocol) for carrying voice, data, video signals or various mixed signals. -time Transport Protocol, referred to as "RTP") stream. In the specific use process, the characteristics of the terminal can be represented by parameters such as attributes, events, signals, and statistics. In order to shield the problem of terminal diversity, various characteristic parameters of the terminal can be combined into a package.

MG30和MG40分别用于连接用户10和用户20,并对用户10与用户20之间的媒体流类型进行转换。MG30 and MG40 are respectively used to connect user 10 and user 20, and convert the type of media stream between user 10 and user 20.

MGC50用于控制MG30和MG40连接的建立和释放,完成呼叫控制、业务提供、业务交换、资源管理、计费、认证与授权、地址解析、语音处理控制、各种临时终端的控制和管理等功能。MGC50 is used to control the establishment and release of the connection between MG30 and MG40, and complete the functions of call control, service provision, service exchange, resource management, billing, authentication and authorization, address resolution, voice processing control, control and management of various temporary terminals, etc. .

在具体实现过程中,MGC50对MG30、MG40的控制和管理采用H.248/MeGaCo协议,MG30和MG40间传输RTP媒体流。熟悉本领域的技术人员应该知道,所述RTP媒体流可以采用不同的编解码方式,如G.711、G.723、G.729、T.38等。In the specific implementation process, MGC50 controls and manages MG30 and MG40 using the H.248/MeGaCo protocol, and RTP media streams are transmitted between MG30 and MG40. Those skilled in the art should know that the RTP media stream can adopt different encoding and decoding methods, such as G.711, G.723, G.729, T.38 and so on.

由于在NGN中是使用因特网作为各个业务的承载媒介,当因特网的时延较长、丢包率较高,则会严重影响媒体流的服务质量(Quality of Service,简称“QoS”),例如语音通信时的话音质量,传真的接通率或者视频清晰度等。因此在传送过程中需要了解MG之间传送的媒体流服务质量状况,以便能够对网络的整体服务质量进行评估,或者动态调整呼叫控制的策略。Since the Internet is used as the bearer medium of various services in NGN, when the Internet has a long delay and a high packet loss rate, it will seriously affect the quality of service (Quality of Service, referred to as "QoS") of the media stream, such as voice Voice quality during communication, fax completion rate or video clarity, etc. Therefore, it is necessary to know the QoS status of media streams transmitted between MGs during the transmission process, so as to evaluate the overall QoS of the network, or dynamically adjust the call control strategy.

现有技术中通常使用H.248协议中Network包和RTP包的统计参数来反映服务质量的情况。熟悉本领域的技术人员应该知道,上述统计参数包括收发字节数、收发包数、丢包数、网络延时等。In the prior art, statistical parameters of the Network packet and the RTP packet in the H.248 protocol are usually used to reflect the quality of service. Those skilled in the art should know that the above statistical parameters include the number of bytes sent and received, the number of packets sent and received, the number of lost packets, network delay and so on.

现有技术获得当前媒体流服务质量的具体过程如下,MGC首先接收来自MG的呼叫请求,为当前媒体流建立连接,同时该媒体流所在的MG对Network包和RTP包的各个参数进行统计。若媒体流的呼叫结束,MGC即下发拆除呼叫请求命令,该媒体流所在的MG收到拆除呼叫请求命令后终止统计各个参数,同时将已经统计完毕的参数返回给MGC。MGC接收返回参数,并根据参数的值对媒体流的传送做出调整。例如当返回的参数表示带宽不足时,可以采用需求带宽要求较小的编解码方式。The specific process of obtaining the service quality of the current media stream in the prior art is as follows. The MGC first receives a call request from the MG and establishes a connection for the current media stream. At the same time, the MG where the media stream is located counts the parameters of the Network packet and the RTP packet. If the call of the media stream ends, the MGC issues a request to remove the call, and the MG where the media stream resides stops counting the parameters after receiving the call to remove the command, and returns the parameters that have been counted to the MGC. The MGC receives the returned parameters, and adjusts the transmission of the media stream according to the values of the parameters. For example, when the returned parameter indicates that the bandwidth is insufficient, a codec method that requires less bandwidth can be used.

在实际应用中,上述方案存在以下问题:由于现有技术的技术方案仅在媒体流呼叫结束时才返回反映该媒体流服务质量的统计参数,实时性较差,并不能对当前正在传送的媒体流服务质量进行调整。In practical application, the above-mentioned solution has the following problems: because the technical solution of the prior art returns the statistical parameters reflecting the quality of service of the media stream only when the media stream call ends, the real-time performance is poor, and the media currently being transmitted cannot be analyzed. Adjust the quality of streaming service.

造成这种情况的主要原因在于,仅在媒体流呼叫结束时,才返回表示该媒体流服务质量的统计参数。The main reason for this situation is that only when the media streaming call ends, the statistical parameters representing the quality of service of the media streaming are returned.

发明内容Contents of the invention

有鉴于此,本发明的主要目的在于提供一种媒体流服务质量检测方法,使得在媒体流在传送的过程中,MGC能实时获得当前媒体流的服务质量,从而对媒体流的传送进行实时调整。In view of this, the main purpose of the present invention is to provide a media stream quality of service detection method, so that in the process of media stream transmission, the MGC can obtain the service quality of the current media stream in real time, thereby adjusting the transmission of the media stream in real time .

为实现上述目的,本发明提供了一种媒体流服务质量检测方法,包含以下步骤:To achieve the above object, the present invention provides a method for detecting media streaming service quality, comprising the following steps:

A媒体网关在代表媒体流的临时终端被加入上下文后,周期性地获取该媒体流各个服务质量信息,并记录在代表该媒体流的临时终端上;After the temporary terminal representing the media stream is added to the context, the A media gateway periodically obtains the quality of service information of the media stream and records it on the temporary terminal representing the media stream;

B媒体网关控制器根据需要设置检测时长与检测周期,并在所述检测时长期间内,在每个检测周期向所述媒体网关中代表该媒体流的临时终端下发检测当前值请求消息,所述检测当前值请求消息中含有统计参数;The B media gateway controller sets the detection duration and detection cycle as required, and during the detection duration, sends a detection current value request message to the temporary terminal representing the media flow in the media gateway in each detection cycle, so that The above detection current value request message contains statistical parameters;

C所述媒体网关响应周期性地来自所述媒体网关控制器的检测当前值请求消息,根据所述统计参数在代表该媒体流的临时终端上选择需要上报的服务质量信息,并连同计算得到的激活时长,一起上报给所述媒体网关控制器。C. The media gateway responds to the current value detection request message from the media gateway controller periodically, selects the quality of service information that needs to be reported on the temporary terminal representing the media stream according to the statistical parameters, and together with the calculated The activation duration is reported to the media gateway controller together.

其中,所述统计参数包含媒体网关通过实时传输控制协议周期性地获得的所述媒体流的发送字节数、接收字节数、发送包数、接收包数、丢失包数、当前丢包率、当前抖动、当前时延中的一种或它们的任意组合;以及Wherein, the statistical parameters include the number of bytes sent, the number of bytes received, the number of packets sent, the number of packets received, the number of lost packets, and the current packet loss rate of the media stream periodically obtained by the media gateway through the real-time transmission control protocol. , current jitter, current delay or any combination thereof; and

所述媒体网关通过比较计算获得的丢包率、抖动、时延的平均值、最大值和最小值中的一种或它们的任意组合;并且One of or any combination of packet loss rate, jitter, and delay average, maximum value, and minimum value obtained by the media gateway through comparison calculation; and

所述步骤B中设置的所述检测周期大于或等于实时传输控制协议采样周期。The detection period set in the step B is greater than or equal to the real-time transmission control protocol sampling period.

所述激活时长为当前报告时刻与所述媒体流激活时刻的差。The activation duration is the difference between the current reporting time and the activation time of the media stream.

所述步骤C中,所述媒体网关在每一次响应所述检测当前值请求消息之后清除丢包率、抖动、时延的平均值,并在下一此响应所述检测当前值请求消息之前,重新比较计算丢包率、抖动、时延的平均值、最大值和最小值,并作为所述服务质量信息的一部分,记录在代表该媒体流的临时终端上。In the step C, the media gateway clears the average value of the packet loss rate, jitter, and delay after each response to the detection current value request message, and before the next response to the detection current value request message, re- Comparing and calculating the average value, maximum value and minimum value of the packet loss rate, jitter and time delay, and recording it as a part of the quality of service information on the temporary terminal representing the media stream.

在所述步骤B中,在所述检测时长刚刚开始时,所述媒体网关控制器立即启动首次检测,向所述媒体网关中代表该媒体流的临时终端下发首次检测当前值请求消息,并且In the step B, when the detection duration has just started, the media gateway controller immediately starts the first detection, sends a first detection current value request message to the temporary terminal representing the media stream in the media gateway, and

所述临时终端响应所述首次检测当前值请求消息,根据所述请求中的统计参数,在其上选择需要上报的服务质量信息,并连同计算得到的激活时长,一起上报给所述媒体网关控制器。The temporary terminal responds to the first detection current value request message, selects the service quality information that needs to be reported according to the statistical parameters in the request, and reports it to the media gateway control together with the calculated activation duration device.

在所述步骤B中,在所述检测时长结束时,或所述媒体网关中代表该媒体流的临时终端在所述检测时长结束之前被删减或移动出去时,所述媒体网关控制器立即启动最后检测,向所述媒体网关中代表该媒体流的临时终端下发最后检测当前值请求消息,并且In the step B, when the detection period ends, or when the temporary terminal representing the media flow in the media gateway is deleted or moved out before the detection period ends, the media gateway controller immediately Start the final detection, send a final detection current value request message to the temporary terminal representing the media flow in the media gateway, and

所述临时终端响应所述最后检测当前值请求消息,根据所述请求中的统计参数,在其上选择需要上报的服务质量信息,并连同计算得到的激活时长,一起上报给所述媒体网关控制器。The temporary terminal responds to the last detected current value request message, selects the quality of service information that needs to be reported according to the statistical parameters in the request, and reports it to the media gateway control together with the calculated activation duration. device.

所述步骤B中,所述检测时长和检测周期是正整数,并且所述检测时长大于所述检测周期。In the step B, the detection duration and the detection period are positive integers, and the detection duration is longer than the detection period.

通过比较可以发现,本发明的技术方案与现有技术的区别在于,在媒体流传输过程中,MGC以固定周期向MG发送检测当前值请求消息,获取媒体流的当前服务质量,而不是仅在MGC拆除媒体流后才获得服务质量,因此实时性较好。Through comparison, it can be found that the difference between the technical solution of the present invention and the prior art is that during the media stream transmission process, the MGC sends a detection current value request message to the MG at a fixed period to obtain the current service quality of the media stream, instead of only The quality of service is obtained after the MGC removes the media stream, so the real-time performance is better.

这种技术方案上的区别,带来了较为明显的有益效果,即通过MGC以固定周期向MG发送检测当前值请求消息,能够获取媒体流的当前服务质量,从而对媒体流传送进行实时调整。另外本发明还通过扩展H.248协议,使用户可以根据需要定义当前媒体流的服务质量参数。The difference in this technical solution has brought obvious beneficial effects, that is, the MGC can send a detection current value request message to the MG at a fixed period, and the current service quality of the media stream can be obtained, so as to adjust the media stream transmission in real time. In addition, the present invention also expands the H.248 protocol so that the user can define the service quality parameters of the current media stream as required.

附图说明Description of drawings

图1是NGN中MG和MGC的组网结构示意图;Figure 1 is a schematic diagram of the network structure of MG and MGC in NGN;

图2是根据本发明一个实施例的对媒体流服务质量进行周期检测的MG侧处理流程图;Fig. 2 is a flow chart of MG side processing for periodic detection of media stream service quality according to an embodiment of the present invention;

图3是根据本发明一个实施例的对媒体流服务质量进行周期检测的MGC侧处理流程图。Fig. 3 is a flow chart of processing at the MGC side for periodic detection of media stream service quality according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述。In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings.

根据本发明的原理,为了能够实时获得反映当前媒体流服务质量的统计参数,从而对当前媒体流的传送进行控制,可以在MGC中设置固定的检测周期和检测时长。在使用过程中通过MGC不断向MG上代表当前媒体流的临时终端下发检测值请求命令,触发MG不断向MGC返回该媒体流服务质量的统计参数,从而实现实时控制。According to the principle of the present invention, in order to obtain the statistical parameters reflecting the service quality of the current media stream in real time, so as to control the transmission of the current media stream, a fixed detection cycle and detection duration can be set in the MGC. During the use process, the MGC continuously sends a detection value request command to the temporary terminal representing the current media stream on the MG, triggering the MG to continuously return the statistical parameters of the media stream service quality to the MGC, thereby realizing real-time control.

图2是根据本发明一个实时例的对媒体流服务质量进行周期检测的MG侧处理流程图,如图所示。首先进入步骤210,在MG上加载临时终端,熟悉本领域的技术人员应该知道,使用H.248的添加命令就可以将临时终端添加进上下文。在添加的时候可以将当前的时间作为该媒体流的激活时刻。Fig. 2 is a flow chart of the MG side processing for periodic detection of media stream service quality according to a real-time example of the present invention, as shown in the figure. First enter step 210, load the temporary terminal on the MG, those skilled in the art should know that the temporary terminal can be added into the context by using the add command of H.248. When adding, the current time can be used as the activation moment of the media stream.

然后进入步骤220,MG启动收集服务质量信息的机制,获得当前媒体流的服务质量统计参数,并将其记录在该媒体流所对应的临时终端上。熟悉本领域的技术人员应该知道,可以以固定的周期通过实时传输控制协议(Real-time Transport Control Protocol,简称“RTCP”)获得当前媒体流的服务质量统计参数。熟悉本领域的技术人员应该知道,所述服务质量统计参数为发送字节数、接收字节数、发送包数、接收包数、丢失包数、当前丢包率、当前抖动、当前时延的一种或若干种的组合,通过MG内部的计算可以获得丢包率、抖动和时延的平均值。Then enter step 220, the MG starts the mechanism of collecting service quality information, obtains the service quality statistical parameters of the current media stream, and records them on the temporary terminal corresponding to the media stream. Those skilled in the art should know that the service quality statistical parameters of the current media stream can be obtained in a fixed period through the Real-time Transport Control Protocol (Real-time Transport Control Protocol, "RTCP"). Those skilled in the art should know that the statistical parameters of the quality of service are the number of bytes sent, the number of bytes received, the number of packets sent, the number of packets received, the number of lost packets, the current packet loss rate, the current jitter, and the current time delay. One or several combinations, the average value of packet loss rate, jitter and delay can be obtained through the calculation inside the MG.

接着进入步骤230,MG接收MGC周期性地发送过来的检测当前值请求消息,并对其做出响应,具体的说,即根据上述请求消息中的统计参数,在该媒体流所对应的临时终端上选择需要上报的服务质量信息,并连同计算得到的激活时长,一起上报给MGC。由于MGC是以固定的周期发送检测当前值请求消息,网络状况的不同,对各个周期的检测值消息延迟也可能不同,因此MG对检测值消息的响应不是以固定的周期返回的,所以上述响应除了要包含反映当前媒体流服务质量的统计参数外还应该包含激活时长。熟悉本领域的技术人员应该知道,所述激活时长是当前的媒体流所在的MG接收检测值消息时的报告时刻与上述媒体流激活时刻的差值,也即当前媒体流的激活时长。Then enter step 230, the MG receives the current value detection request message periodically sent by the MGC, and responds to it, specifically, according to the statistical parameters in the above request message, the temporary terminal corresponding to the media stream Select the quality of service information to be reported, and report it to the MGC together with the calculated activation duration. Since the MGC sends the detection current value request message in a fixed period, the delay of the detection value message for each period may be different depending on the network condition, so the response of the MG to the detection value message is not returned in a fixed period, so the above response In addition to including statistical parameters reflecting the current media streaming service quality, it should also include the activation duration. Those skilled in the art should know that the activation duration is the difference between the reporting time when the MG where the current media stream resides receives the detection value message and the media stream activation time, that is, the activation duration of the current media stream.

然后进入步骤240,MG清除仅对上一次检测周期有效的服务质量信息,开始对新的检测周期进行服务质量统计。由于MG对接收到的每一个检测当前值请求消息都要做出响应,并且要保证当前的响应是针对当前的检测周期,因此在上一次检测周期的服务质量参数返回结束后,要清除仅对上一次检测周期有效的统计参数值,并同时开始收集新的检测周期内服务质量的统计参数值,将其记录在该媒体流对应的临时终端上。Then enter step 240, the MG clears the service quality information valid only for the last detection period, and starts to perform service quality statistics for the new detection period. Since the MG has to respond to each received detection current value request message, and to ensure that the current response is for the current detection cycle, after the return of the QoS parameters of the last detection cycle, it is necessary to clear only the Statistical parameter values that were valid in the last detection period, and start to collect statistical parameter values of service quality in the new detection period at the same time, and record them on the temporary terminal corresponding to the media stream.

上面描述了本发明中,在对媒体流服务质量进行周期检测时,MG侧的处理流程,下面将详细介绍MGC侧的处理过程。图3即为根据本发明一个实施例的对媒体流服务质量进行周期检测的MGC侧处理流程图,如图所示。The above describes the processing flow of the MG side when periodically detecting the quality of service of the media stream in the present invention, and the processing process of the MGC side will be described in detail below. Fig. 3 is a flow chart of the MGC side processing for periodically detecting the quality of service of the media stream according to an embodiment of the present invention, as shown in the figure.

在MG启动收集媒体流服务质量信息的机制以后,MGC首先进入步骤310,根据需要设置检测时长和检测周期。熟悉本领域的技术人员应该知道,所述检测时长和检测周期都应该为正整数,并且检测时长应该大于检测周期,检测周期应该大于或等于RTCP的采样周期。如果所述RTCP采样周期与检测周期接近或相等,那么周期检测的内容即为最近RTCP信息采样的内容。After the MG starts the mechanism for collecting media stream service quality information, the MGC first enters step 310, and sets the detection duration and detection cycle as required. Those skilled in the art should know that both the detection duration and detection period should be positive integers, and the detection duration should be greater than the detection period, and the detection period should be greater than or equal to the sampling period of RTCP. If the RTCP sampling period is close to or equal to the detection period, then the content of the period detection is the content of the latest RTCP information sampling.

然后进入步骤320,MGC向MG发送检测当前值请求消息,查询当前媒体流的服务质量。熟悉本领域的技术人员应该知道,所述检测当前值请求消息应该附带统计描述符,用于表示所需返回的服务质量统计参数。在本发明中,统计参数包含MG通过RTCP周期性地获得的媒体流的发送字节数、接收字节数、发送包数、接收包数、丢失包数、当前丢包率、当前抖动、当前时延中的一种或它们的任意组合;以及MGC通过比较计算获得的丢包率、抖动、时延的平均值、最大值和最小值中的一种或它们的任意组合。Then enter step 320, the MGC sends a detection current value request message to the MG to query the service quality of the current media stream. Those skilled in the art should know that the request message for detecting the current value should be accompanied by a statistics descriptor, which is used to indicate the service quality statistics parameters to be returned. In the present invention, the statistical parameters include the number of bytes sent, the number of bytes received, the number of packets sent, the number of packets received, the number of lost packets, the current packet loss rate, the current jitter, the current One of the time delays or any combination thereof; and one of the packet loss rate, jitter, average value, maximum value, and minimum value of the time delay obtained by the MGC through comparison and calculation, or any combination thereof.

接着进入步骤330,MGC接收MG返回的媒体流服务质量信息。熟悉本领域的技术人员可以知道,可以通过MGC获得的当前检测周期返回参数与前一次检测周期返回的相应参数进行比较和计算,从而获得当前检测周期的情况。Then enter step 330, the MGC receives the media stream quality of service information returned by the MG. Those skilled in the art can know that the parameters returned by the current detection cycle obtained by the MGC can be compared and calculated with the corresponding parameters returned by the previous detection cycle, so as to obtain the situation of the current detection cycle.

下面进入步骤340,MGC根据获得的媒体流服务质量信息对媒体流的传送进行控制。如果网络带宽不够,则可以对媒体流采用带宽要求低的编码。另外,也可以根据返回服务质量参数在不同激活时长时的信息,描绘出反映服务质量态势的各种曲线图。Then enter step 340, the MGC controls the transmission of the media stream according to the obtained media stream quality of service information. If the network bandwidth is not enough, you can use low-bandwidth encoding for the media stream. In addition, various graphs reflecting the quality of service situation can also be drawn according to the returned information of the quality of service parameters at different activation durations.

接着进入步骤350,MGC判断当前是否已经超过检测时长或者当前媒体流是否结束,如果已经超过检测时长或者在检测时长内代表该媒体流的临时终端已经从上下文中被删减或移除,则结束检测过程;如果激活时长还未超过检测时长并且当前媒体流仍未结束,则进入步骤330,开始下一次检测过程。Then enter step 350, MGC judges whether the current detection duration has exceeded or whether the current media stream is over, if the detection duration has exceeded or the temporary terminal representing the media stream has been deleted or removed from the context within the detection duration, then end Detection process; if the activation duration has not exceeded the detection duration and the current media stream has not ended, then enter step 330 to start the next detection process.

在实际使用过程中,系统可能需要知道检测开始时间之前的服务质量状况,因此在检测开始时,可以立即启动首次检测过程。在超过检测时长或者在检测时长内代表该媒体流的临时终端从上下文中被删减或移除时,可以通过启动最后一次检测过程,获得还未完成的检测周期内MG上表示当前媒体流服务质量的统计参数。上述所述的初始首次检测和最后检测均是采用非固定时长来触发,需要添加新的操作命令方可触发,处理过程比较复杂。如最后一次检测过程可以通过检测时长结束命令或者是媒体流拆除命令来触发。具体的说,在检测时长刚刚开始时,媒体网关控制器立即启动首次检测,向媒体网关中代表该媒体流的临时终端下发首次检测当前值请求,并且临时终端响应首次检测当前值请求,根据请求中的统计参数,在其上选择需要上报的服务质量信息,并连同计算得到的激活时长,一起上报给媒体网关控制器。另一方面,在检测时长结束时,或代表该媒体流的临时终端在检测时长结束之前被从上下文中删减或移动出去时,媒体网关控制器立即启动最后检测,向媒体网关中代表该媒体流的临时终端下发最后检测当前值请求,并且临时终端响应最后检测当前值请求,根据请求中的统计参数,在其上选择需要上报的服务质量信息,并连同计算得到的激活时长,一起上报给媒体网关控制器。In actual use, the system may need to know the quality of service status before the detection start time, so when the detection starts, the first detection process can be started immediately. When the detection duration is exceeded or the temporary terminal representing the media stream is deleted or removed from the context within the detection duration, the last detection process can be started to obtain the current media stream service on the MG within the detection period that has not yet been completed. Statistical parameter of quality. The above-mentioned initial first detection and final detection are both triggered by a non-fixed duration, which needs to be triggered by adding a new operation command, and the processing process is relatively complicated. For example, the last detection process may be triggered by a detection duration end command or a media stream removal command. Specifically, when the detection duration has just started, the media gateway controller immediately starts the first detection, sends a request for the first detection of the current value to the temporary terminal in the media gateway representing the media stream, and the temporary terminal responds to the first detection of the current value request, according to The statistical parameters in the request are used to select the quality of service information to be reported, and report to the media gateway controller together with the calculated activation duration. On the other hand, when the detection duration ends, or when the temporary terminal representing the media stream is deleted or moved out of the context before the detection duration ends, the media gateway controller immediately starts the final The temporary terminal of the flow sends the request for the last detection of the current value, and the temporary terminal responds to the request of the last detection of the current value, selects the service quality information to be reported on it according to the statistical parameters in the request, and reports it together with the calculated activation time to the media gateway controller.

由于不同的媒体流可能需要不同的服务质量,原有的H.248协议中,返回的服务质量统计参数包括包发送数、包接收数、丢包率、抖动、延迟。为了更好地对媒体流进行监控,可以对H.248协议进行扩充,下面将具体描述H.248协议的基本扩充参数。主要包括最大丢包率(Maximum Packets LossRate,简称“maxplr”)、最小丢包率(Minimum Packets Loss Rate,简称“minplr”)、最大抖动(Maximum jitter,简称“maxj”)、最小抖动(Minimumjitter,简称“minj”)、最大延迟(Maximum delay,简称“maxd”)、最小延迟(Minimum delay,简称“mind”)。Since different media streams may require different QoS, in the original H.248 protocol, the QoS statistical parameters returned include the number of packets sent, the number of packets received, packet loss rate, jitter, and delay. In order to better monitor the media stream, the H.248 protocol can be extended, and the basic extended parameters of the H.248 protocol will be described in detail below. It mainly includes Maximum Packets Loss Rate (Maximum Packets Loss Rate, referred to as "maxplr"), Minimum Packets Loss Rate (Minimplr for short), Maximum Jitter (Maximum Jitter, referred to as "maxj"), Minimum Jitter (Minimum Jitter, "minj" for short), maximum delay (Maximum delay, "maxd" for short), minimum delay (Minimum delay, "mind" for short).

其中,最大丢包率是用于定义媒体流当前检测周期内最大丢包率的参数,其参数标识为maxplr或者0×0009,类型为双精度整数,可能取值为32位整数或者32位小数。Among them, the maximum packet loss rate is a parameter used to define the maximum packet loss rate in the current detection period of the media stream. The parameter identifier is maxplr or 0×0009, and the type is a double-precision integer, which may be a 32-bit integer or a 32-bit decimal .

最小丢包率是用于定义媒体流当前检测周期内最小丢包率的参数,其参数标识为minplr或者0×0010,类型为双精度整数,可能取值为32位整数或者32位小数。The minimum packet loss rate is a parameter used to define the minimum packet loss rate in the current detection period of the media stream. The parameter identifier is minplr or 0×0010, the type is a double-precision integer, and the value may be a 32-bit integer or a 32-bit decimal.

最大抖动是用于定义媒体流当前检测周期内最大抖动的参数,其参数标识为maxj或者0×0011,类型为整数,可能取值为32位的非负整数。The maximum jitter is a parameter used to define the maximum jitter in the current detection period of the media stream. The parameter identifier is maxj or 0×0011, the type is an integer, and the value may be a 32-bit non-negative integer.

最小抖动是用于定义媒体流当前检测周期内最小抖动的参数,其参数标识为minj或者0×0012,类型为整数,可能取值为32位的非负整数。The minimum jitter is a parameter used to define the minimum jitter in the current detection period of the media stream. The parameter identifier is minj or 0×0012, the type is an integer, and the value may be a 32-bit non-negative integer.

最大延迟是用于定义媒体流当前检测周期的最大延迟的参数,其参数标识为maxd或者0×0013,类型为整数,可能取值为32位的非负整数。The maximum delay is a parameter used to define the maximum delay of the current detection cycle of the media stream. The parameter identifier is maxd or 0×0013, the type is an integer, and the value may be a 32-bit non-negative integer.

最小延迟是用于定义媒体流当前检测周期的最小延迟的参数,其参数标识为mind或者0×0014,类型为整数,可能取值为32位的非负整数。The minimum delay is a parameter used to define the minimum delay of the current detection period of the media stream. Its parameter identifier is mind or 0×0014, the type is an integer, and the value may be a 32-bit non-negative integer.

虽然通过参照本发明的某些优选实施例,已经对本发明进行了图示和描述,但本领域的普通技术人员应该明白,可以在形式上和细节上对其作各种各样的改变,而不偏离所附权利要求书所限定的本发明的精神和范围。Although the present invention has been illustrated and described with reference to certain preferred embodiments thereof, it will be understood by those skilled in the art that various changes in form and details may be made therein, and without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (7)

1. a method for detecting medium flow service quality is characterized in that, comprises following steps:
The A media gateway is obtained each quality of service information of this Media Stream after the ephemeral terminations of representing Media Stream is added into context, and is recorded on the ephemeral terminations of representing this Media Stream;
The B Media Gateway Controller is provided with as required and detects duration and sense cycle, and in during described detection duration, representing the ephemeral terminations of this Media Stream to issue in described media gateway in each sense cycle detects the currency request message, contains statistical parameter in the described detection currency request message;
The described media gateway response cycle of C ground is from the detection currency request message of described Media Gateway Controller, representing the quality of service information of selecting needs to report on the ephemeral terminations of this Media Stream according to described statistical parameter, and, report described Media Gateway Controller together together with the activation duration that calculates.
2. method for detecting medium flow service quality according to claim 1, it is characterized in that, described statistical parameter comprise the described Media Stream that media gateway periodically obtains by RTCP Real-time Transport Control Protocol the transmission byte number, receive byte number, send the bag number, receiver packet number, lost package number, present packet loss, current shake, Yanzhong a kind of or their combination in any when current; And
A kind of in mean value, maximum and the minimum value of the packet loss of described media gateway by relatively calculate obtaining, shake, time delay or their combination in any; And
The described sense cycle that is provided with among the described step B is more than or equal to the RTCP Real-time Transport Control Protocol sampling period.
3. method for detecting medium flow service quality according to claim 1 is characterized in that, described activation duration is current report poor with described Media Stream activation moments constantly.
4. method for detecting medium flow service quality according to claim 2, it is characterized in that, among the described step C, described media gateway is removed the mean value of packet loss, shake, time delay after responding described detection currency request message each time, and at next this responds before the described detection currency request message, again relatively calculate mean value, maximum and the minimum value of packet loss, shake, time delay, and, be recorded on the ephemeral terminations of representing this Media Stream as the part of described quality of service information.
5. method for detecting medium flow service quality according to claim 1 is characterized in that, also comprises following steps at described step B:
When described detection duration had just begun, described Media Gateway Controller started immediately first and to detect, and represented the ephemeral terminations of this Media Stream to issue in described media gateway and detected the currency request message first; And
The described currency request message that detects first of described ephemeral terminations response, according to the statistical parameter in the described request, the quality of service information that selection thereon need report, and, report described Media Gateway Controller together together with the activation duration that calculates.
6. method for detecting medium flow service quality according to claim 1 is characterized in that, in described step B, also comprises following steps:
When described detection duration finishes, or the ephemeral terminations of representing this Media Stream in the described media gateway was deleted from context before described detection duration finishes or when moving away, described Media Gateway Controller starts last detection immediately, in described media gateway, represent the ephemeral terminations of this Media Stream to issue last detection currency request message, and
Described ephemeral terminations responds described last detection currency request message, according to the statistical parameter in the described request, and the quality of service information that selection thereon need report, and, report described Media Gateway Controller together together with the activation duration that calculates.
7. method for detecting medium flow service quality according to claim 1 is characterized in that, among the described step B, described detection duration and sense cycle are positive integers, and described detection duration is greater than described sense cycle.
CNB2004100629772A 2004-06-30 2004-06-30 Method for detecting medium flow service quality Expired - Fee Related CN100493069C (en)

Priority Applications (8)

Application Number Priority Date Filing Date Title
CNB2004100629772A CN100493069C (en) 2004-06-30 2004-06-30 Method for detecting medium flow service quality
PT05759437T PT1739900E (en) 2004-06-30 2005-06-30 A METHOD FOR THE PERIODIC ACQUISITION OF MULTIMEDIA FLOW QOS
EP05759437A EP1739900B1 (en) 2004-06-30 2005-06-30 A method for acquiring the qos of the multimedia stream periodically
AT05759437T ATE413044T1 (en) 2004-06-30 2005-06-30 METHOD FOR PERIODICALLY ACQUIRING A QUALITY OF SERVICE (QOS) OF A MULTIMEDIA STREAM
ES05759437T ES2314677T3 (en) 2004-06-30 2005-06-30 PROCEDURE TO PURCHASE THE QOS OF A MULTIMEDIA FLOW PERIODICLY.
PCT/CN2005/000958 WO2006002597A1 (en) 2004-06-30 2005-06-30 A method for acquiring the qos of the multimedia stream periodically
DE602005010681T DE602005010681D1 (en) 2004-06-30 2005-06-30 METHOD FOR PERIODICALLY ACQUIRING A QUALITY OF SERVICE (QoS) OF A MULTIMEDIA STREAM
US11/558,619 US7583612B2 (en) 2004-06-30 2006-11-10 Method for periodically acquiring the QoS of media stream and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2004100629772A CN100493069C (en) 2004-06-30 2004-06-30 Method for detecting medium flow service quality

Publications (2)

Publication Number Publication Date
CN1716945A true CN1716945A (en) 2006-01-04
CN100493069C CN100493069C (en) 2009-05-27

Family

ID=35822365

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2004100629772A Expired - Fee Related CN100493069C (en) 2004-06-30 2004-06-30 Method for detecting medium flow service quality

Country Status (1)

Country Link
CN (1) CN100493069C (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100372320C (en) * 2006-01-11 2008-02-27 华为技术有限公司 Method and system for testing service quality in next generation network
WO2009039754A1 (en) * 2007-09-14 2009-04-02 Huawei Technologies Co., Ltd. Method, media gateway and system for controlling redundant data packets transport
WO2009092258A1 (en) * 2007-12-28 2009-07-30 Huawei Technologies Co., Ltd. Method and device for realizing acquiring media stream information
CN101917302A (en) * 2010-04-02 2010-12-15 中兴通讯股份有限公司 A method and system for reducing disconnection caused by terminal media momentary disconnection
CN101005367B (en) * 2006-01-19 2011-04-13 华为技术有限公司 Medium stream transmission system and control method for medium stream transmission quality
CN105871660A (en) * 2016-06-06 2016-08-17 北京京东尚科信息技术有限公司 Quality detection method and equipment
WO2016176857A1 (en) * 2015-05-07 2016-11-10 华为技术有限公司 Method and device for media business quality measurement
CN116781975A (en) * 2023-08-17 2023-09-19 中仪英斯泰克科技有限公司 Media stream detection method, device, terminal equipment and storage medium

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100372320C (en) * 2006-01-11 2008-02-27 华为技术有限公司 Method and system for testing service quality in next generation network
CN101005367B (en) * 2006-01-19 2011-04-13 华为技术有限公司 Medium stream transmission system and control method for medium stream transmission quality
WO2009039754A1 (en) * 2007-09-14 2009-04-02 Huawei Technologies Co., Ltd. Method, media gateway and system for controlling redundant data packets transport
WO2009092258A1 (en) * 2007-12-28 2009-07-30 Huawei Technologies Co., Ltd. Method and device for realizing acquiring media stream information
CN101917302A (en) * 2010-04-02 2010-12-15 中兴通讯股份有限公司 A method and system for reducing disconnection caused by terminal media momentary disconnection
CN101917302B (en) * 2010-04-02 2015-06-10 中兴通讯股份有限公司 Method and system for reducing call disconnection caused by transient interruption of terminal media
WO2016176857A1 (en) * 2015-05-07 2016-11-10 华为技术有限公司 Method and device for media business quality measurement
CN106576094A (en) * 2015-05-07 2017-04-19 华为技术有限公司 Method and device for media business quality measurement
CN106576094B (en) * 2015-05-07 2020-06-26 华为技术有限公司 Media service quality measuring method and device
CN105871660A (en) * 2016-06-06 2016-08-17 北京京东尚科信息技术有限公司 Quality detection method and equipment
CN116781975A (en) * 2023-08-17 2023-09-19 中仪英斯泰克科技有限公司 Media stream detection method, device, terminal equipment and storage medium
CN116781975B (en) * 2023-08-17 2024-02-06 中仪英斯泰克科技有限公司 Media stream detection method, device, terminal equipment and storage medium

Also Published As

Publication number Publication date
CN100493069C (en) 2009-05-27

Similar Documents

Publication Publication Date Title
CN1902621A (en) Analyzing a media path in a packet switched network
WO2006002597A1 (en) A method for acquiring the qos of the multimedia stream periodically
CN100488111C (en) Method for implementing WIMAX dynamic QQS based on terminal perception service
CN101056283A (en) Voice gateway and method for providing VoIP service
CN101056418A (en) A bandwidth control method and terminal device
CN1863063A (en) Method for implementing WIMAX dynamic QQS based on perceptionservice of soft exchange apparatus
CN1411220A (en) Method and system of realizing IP speech service of private network
CN1535523A (en) Optimizing IP-based network priorities and bandwidth requirements
CN1516409A (en) A Method for Traversing Media Streams Through Network Address Translators
CN1553676A (en) Method for Multiple Protocol Terminals to Conduct Same Audio-Video Conference
CN100440890C (en) Method for Media Gateway to Report Terminal Statistical Parameter Values
CN1288884C (en) IP access method and system of phonetic service
CN1509015A (en) System and method for realizing packet voice network monitoring
CN1266885C (en) Method for realizing monitoring based on soft switch
CN100349411C (en) Medium flow service quality reporting method
CN100493069C (en) Method for detecting medium flow service quality
CN1791002A (en) MGC obtaining service quality information realizing method in next generation network
CN1643946A (en) Methods of Controlling Traffic Flow
CN101060504A (en) A method for negotiating the next generation of network media gateway fax switching mode
CN1897622A (en) Method for inspecting and releasing abnormal realtime transmission protocol source of medium gateway
CN1874380A (en) Method for realizing a call
CN1874349A (en) Method for implementing internal connection in media gateway
CN1992706A (en) Method for adjusting statistical parameter value in media gateway
CN100344112C (en) MG reporting service quality information realizing method in next generation network
CN1885837A (en) Method for switching media stream code/decode format

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090527

Termination date: 20120630