CN100461663C - A method for determining codec type - Google Patents
A method for determining codec type Download PDFInfo
- Publication number
- CN100461663C CN100461663C CNB2005100886827A CN200510088682A CN100461663C CN 100461663 C CN100461663 C CN 100461663C CN B2005100886827 A CNB2005100886827 A CN B2005100886827A CN 200510088682 A CN200510088682 A CN 200510088682A CN 100461663 C CN100461663 C CN 100461663C
- Authority
- CN
- China
- Prior art keywords
- link
- office direction
- office
- quality
- codec type
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Telephonic Communication Services (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明公开了一种编解码类型确定方法,用以解决现有技术中无法根据链路质量的变化动态选择适当的编解码类型所导致的服务质量无法得到保障的问题。本发明通过发送采样呼叫检测媒体网关的局向链路质量,判断该局向的链路质量变化情况,为在该局向上发送的呼叫确定对应的优选编解码类型。从而简单易行的实现了能够根据链路质量的变化为呼叫选择适当的编解码类型,在链路质量改善时,可以为用户提供优良的服务质量;在链路质量下降时,可以为用户提供可接受的服务质量。从而能够为用户提供更好的通讯体验,提高用户的满意度。
The invention discloses a codec type determination method, which is used to solve the problem in the prior art that the service quality cannot be guaranteed due to the inability to dynamically select the appropriate codec type according to the change of the link quality. The invention detects the office-direction link quality of the media gateway by sending sampling calls, judges the change of the office-direction link quality, and determines the corresponding preferred codec type for the call sent upward in the office. Therefore, it is simple and easy to realize that the appropriate codec type can be selected for the call according to the change of the link quality. When the link quality improves, it can provide users with excellent service quality; when the link quality decreases, it can provide users with Acceptable quality of service. In this way, a better communication experience can be provided for users, and user satisfaction can be improved.
Description
技术领域 technical field
本发明涉及下一代网络技术,尤其涉及一种下一代网络中的编解码类型确定方法。The invention relates to the next generation network technology, in particular to a codec type determination method in the next generation network.
背景技术 Background technique
下一代网络(NGN,Next Generation Network)系统是一个以IP网络为承载,提供固定移动话音、数据和视频等多种业务的业务融合网络。其基本特征是控制、承载和业务的分离。The Next Generation Network (NGN, Next Generation Network) system is a business convergence network that uses the IP network as the bearer and provides multiple services such as fixed and mobile voice, data and video. Its basic feature is the separation of control, bearer and business.
在NGN系统中,传统的交换机被分离为MGC(Media Gateway Controller,媒体网关控制器)和MG(Media Gateway,媒体网关)两个网元。MGC主要用于完成呼叫控制层面的功能;而MG主要用于完成媒体流处理和承载处理功能,MG能够将不同类型的接入信号转化为适合在IP(Internet Protocol,互联网协议)网络上传送的RTP/RTCP(Real Time Protocol/Real Time ControlProtocol,实时协议/实时控制协议)流。MGC通常采用网关控制协议完成对MG的控制,其中网关控制协议包括但不限于H.248协议和MGCP(MediaGateway Control Protocol,媒体网关控制协议)。In the NGN system, the traditional switch is separated into two network elements, MGC (Media Gateway Controller, Media Gateway Controller) and MG (Media Gateway, Media Gateway). The MGC is mainly used to complete the function of the call control layer; while the MG is mainly used to complete the media stream processing and bearer processing functions. The MG can convert different types of access signals into data suitable for transmission on the IP (Internet Protocol, Internet Protocol) network RTP/RTCP (Real Time Protocol/Real Time Control Protocol, Real Time Protocol/Real Time Control Protocol) stream. The MGC usually uses a gateway control protocol to control the MG, where the gateway control protocol includes but is not limited to the H.248 protocol and MGCP (MediaGateway Control Protocol, Media Gateway Control Protocol).
在现有的NGN系统中,通常由主叫方的MGC负责完成一个IP呼叫的编解码优选和协商,其过程如下:In the existing NGN system, the MGC of the calling party is usually responsible for completing the codec optimization and negotiation of an IP call. The process is as follows:
主叫方的MGC通过配置或审计(配置是指用户在MGC配置MGC控制的MG的能力信息,审计是指MGC通过网关控制协议中的审计命令获得的状态、配置和能力信息)获得MG支持的全部编解码类型,按照优先采用的先后顺序对编解码类型进行排序,将MGC最希望采用的编解码类型排在最前面,MGC将排序后的编解码类型列表发送给被叫方的呼叫处理实体,如MGC、SIP(Session Initiation Protocol,会话发起协议)网关等,被叫方的呼叫处理实体根据自己支持的将编解码类型列表中自己不支持的编解码类型删除,在剩余的编解码类型中选择一个,回复给主叫方的MGC。由于主叫方MGC发送给被叫方的编解码类型列表已经按优先级顺序进行了排序,因此被叫方一般会从列表中优先级最高的编解码类型开始选择自己支持的编解码类型。The MGC of the calling party obtains the support of the MG through configuration or audit (configuration refers to the capability information of the MG controlled by the MGC configured by the user on the MGC, and audit refers to the status, configuration and capability information obtained by the MGC through the audit command in the gateway control protocol). For all codec types, the codec types are sorted according to the priority order, and the codec type that the MGC most wants to use is ranked first, and the MGC sends the sorted codec type list to the call processing entity of the called party , such as MGC, SIP (Session Initiation Protocol, Session Initiation Protocol) gateway, etc., the call processing entity of the called party deletes the codec types that it does not support in the codec type list according to the ones supported by itself, and in the remaining codec types Select one and reply to the calling party's MGC. Since the codec type list sent by the MGC of the calling party to the called party has been sorted according to the order of priority, the called party generally selects the codec type supported by itself from the codec type with the highest priority in the list.
现有技术中MG所支持的编解码类型列表中编解码类型的优先级顺序通常为预先配置在MGC上的固定顺序,当主叫方MG需要发出呼叫时,MGC将该固定顺序的编解码类型列表发送给被叫方的呼叫处理实体,与被叫方的呼叫处理实体协商确定该呼叫的编解码类型。由于在进行编解码类型协商时主叫方的MGC每次发送出去的编解码类型列表均相同,因此对于主被叫相同的呼叫来说,每次所采用的编解码类型均相同,即在主被叫之间的链路质量发生变化时无法对编解码类型进行动态选择以适应链路质量的变化。在链路质量下降时,不能优选对链路质量要求较低的编解码类型,为用户提供可以接受的通话质量;在链路质量改善时,不能优选对链路质量要求较高的编解码类型,为用户提供优良的通话质量,使服务质量无法得到有效保障。In the prior art, the priority order of the codec types in the list of codec types supported by the MG is usually a fixed order pre-configured on the MGC. When the calling party MG needs to make a call, the MGC will use the fixed order The list is sent to the call processing entity of the called party, and the codec type of the call is determined through negotiation with the call processing entity of the called party. Since the MGC of the calling party sends out the same codec type list each time during the codec type negotiation, the codec type used for each call with the same calling party and the called party is the same. When the link quality between called parties changes, the codec type cannot be dynamically selected to adapt to the link quality change. When the link quality drops, the codec type with lower link quality requirements cannot be preferred to provide users with acceptable call quality; when the link quality improves, the codec type with higher link quality requirements cannot be preferred , to provide users with excellent call quality, so that the quality of service cannot be effectively guaranteed.
发明内容 Contents of the invention
本发明提供一种编解码类型确定方法,用以解决现有技术中无法根据链路质量的变化动态选择适当的编解码类型所导致的服务质量无法得到保障的问题。The present invention provides a method for determining a codec type, which is used to solve the problem in the prior art that the service quality cannot be guaranteed due to the inability to dynamically select an appropriate codec type according to changes in link quality.
本发明方法包括:The inventive method comprises:
一种编解码类型确定方法,包括步骤:A codec type determination method, comprising the steps of:
通过发送采样呼叫检测媒体网关的局向链路质量,判断该局向的链路质量变化情况;Detect the quality of the office link of the media gateway by sending sampling calls, and judge the change of the link quality of the office;
根据局向的链路质量变化情况为在该局向上发送的呼叫确定对应的优选编解码类型。Determine the corresponding preferred codec type for the call sent on the office according to the change of the link quality of the office.
所述局向为媒体网关与其他网关之间的连接路径,或媒体网关与同一IP网段下所有终端的共同连接路径。The office direction is a connection path between the media gateway and other gateways, or a common connection path between the media gateway and all terminals under the same IP network segment.
所述链路质量变化情况通过建立链路指数来判断,将媒体网关的局向链路质量检测结果与预定的链路质量阈值进行比较,当高于所述阈值时增加链路指数值,反之减小链路指数值。The link quality change is judged by establishing a link index, comparing the local link quality detection result of the media gateway with a predetermined link quality threshold, and increasing the link index value when it is higher than the threshold, otherwise Decrease the link index value.
所述媒体网关具有多个局向时,为每一个局向分别建立对应的链路指数并对应每一个局向的标识信息进行保存。When the media gateway has multiple office directions, a corresponding link index is established for each office direction and the identification information corresponding to each office direction is saved.
预先设置所述链路指数与其适用的优选编解码类型之间的对应关系。The correspondence between the link index and its applicable preferred codec type is preset.
所述采样呼叫为真实呼叫和/或测试呼叫。The sample call is a real call and/or a test call.
所述媒体网关的局向为网络规划时预先配置的局向和/或从呼叫中自动识别添加的局向。The office direction of the media gateway is an office direction preconfigured during network planning and/or an office direction added by automatic identification from a call.
所述优选编解码类型中包括若干个按优先级高低进行排序的编解码类型,其中优先级最高的编解码类型优先用于呼叫。The preferred codec type includes several codec types sorted by priority, and the codec type with the highest priority is used for calling first.
本发明有益效果如下:The beneficial effects of the present invention are as follows:
本发明通过发送采样呼叫对媒体网关的局向链路质量进行检测,并根据链路质量变化情况为呼叫确定对应的优选编解码类型,从而简单易行的实现了能够根据链路质量的变化为呼叫选择适当的编解码类型,在链路质量改善时,可以为用户提供优良的服务质量;在链路质量下降时,可以为用户提供可接受的服务质量。从而能够为用户提供更好的通讯体验,提高用户的满意度。The present invention detects the office link quality of the media gateway by sending sampled calls, and determines the corresponding preferred codec type for the call according to the change of the link quality, so that it is simple and easy to implement the link quality change as Selecting the appropriate codec type for the call can provide users with excellent service quality when the link quality is improved; when the link quality is degraded, it can provide users with acceptable service quality. In this way, a better communication experience can be provided for users, and user satisfaction can be improved.
附图说明 Description of drawings
图1为本发明的编解码类型确定的流程图;Fig. 1 is the flow chart of codec type determination of the present invention;
图2为媒体网关的局向示意图;Figure 2 is a schematic diagram of the office direction of the media gateway;
图3为由MGC确定优选编解码类型的流程图;Figure 3 is a flow chart of determining the preferred codec type by the MGC;
图4为由MG确定优选编解码类型的流程图。Fig. 4 is a flow chart of determining the preferred codec type by the MG.
具体实施方式 Detailed ways
本发明编解码类型确定方法针对现有技术的缺陷,提出能够根据链路质量的变化情况为呼叫选择对应的优选编解码类型的处理方式,下面将结合各个附图对本发明的主要实现原理及其具体实施方式进行详细的阐述。The method for determining the codec type in the present invention aims at the defects of the prior art, and proposes a processing method that can select the corresponding preferred codec type for the call according to the change of the link quality. The specific embodiment is described in detail.
本发明方法适用于为NGN系统中媒体网关发出的各种类型的呼叫进行编解码类型选择。The method of the invention is suitable for selecting codec types for various types of calls issued by media gateways in the NGN system.
图1所示为本发明的确定优选编解码类型的流程图,其主要实现过程如下:Fig. 1 shows the flowchart of determining the preferred codec type of the present invention, and its main implementation process is as follows:
步骤S1、生成局向,局向为MG与其他网关之间的IP连接路径,或MG与同一IP网段下所有终端的共同连接路径;局向的生成可采用在网络规划时预先配置的方式,也可以采用从呼叫中自动识别和添加局向的方式,更进一步,可以采用两种方式相结合的方式;Step S1, generate an office direction, which is the IP connection path between the MG and other gateways, or the common connection path between the MG and all terminals under the same IP network segment; the generation of the office direction can be pre-configured during network planning , you can also use the method of automatically identifying and adding office directions from the call, and further, you can use a combination of the two methods;
图2所示为媒体网关的局向示意图,每个MG上都存在一个或多个局向,其中局向1为到MG具有相同IP连接路径网关,局向2为到MG具有相同IP连接路径的一个IP网段下的所有IP终端。Figure 2 is a schematic diagram of the office directions of the media gateways. Each MG has one or more office directions. Among them, office direction 1 is the gateway with the same IP connection path to the MG, and office direction 2 is the gateway with the same IP connection path to the MG. All IP terminals under one IP network segment.
步骤S2、本端MG通过局向上的采样呼叫进行局向链路质量检测,对端利用RTCP的收发报文监控功能每间隔预定时间段对自己接收到的数据包进行一次统计,得到包丢失率、网络时延、抖动等QoS(Quality of Service,服务质量)参数,并且通过RTCP将得到的QoS参数通知本端的MG,由本端的MG根据QoS参数确定出用于表征链路质量的链路质量参数。。Step S2, the local MG performs office-to-office link quality detection through the office-up sampling call, and the peer uses the RTCP sending and receiving message monitoring function to perform statistics on the data packets received by itself at predetermined intervals to obtain the packet loss rate , network delay, jitter and other QoS (Quality of Service) parameters, and notify the local MG of the obtained QoS parameters through RTCP, and the local MG determines the link quality parameters used to characterize the link quality according to the QoS parameters . .
步骤S3、为MG的每一个局向分别建立对应的链路指数,用于表征该局向的链路质量变化情况,链路指数对应局向的标识信息以对应关系表形式保存;Step S3, establishing a corresponding link index for each office direction of the MG, which is used to represent the link quality change of the office direction, and the identification information of the office direction corresponding to the link index is stored in the form of a correspondence table;
当采样呼叫对应的链路质量参数达到预定的链路质量阈值时,链路指数值以预先设定的递增量增加,当链路质量参数小于预定的链路质量阈值时,链路指数值以预先设定的递减量减小,当链路指数值递减到链路指数的初始值时,不再继续递减。When the link quality parameter corresponding to the sampled call reaches the predetermined link quality threshold, the link index value is increased by a preset increment; when the link quality parameter is smaller than the predetermined link quality threshold, the link index value is increased by The preset decrement amount decreases, and when the link index value is decremented to the initial value of the link index, the decrement will not continue.
步骤S4、根据预先设置的链路指数与优选编解码类型之间的对应关系为呼叫确定优选编解码类型,该优选编解码类型通常为多个,并且对这些编解码按优先级高低进行排序,确保优先级更高的编解码优先用于呼叫。Step S4: Determine the preferred codec type for the call according to the correspondence between the preset link index and the preferred codec type. There are usually multiple preferred codec types, and sort these codecs according to their priority. Ensures that higher priority codecs are used first for calls.
上述确定优选编解码类型的过程可以由MGC完成,也可以由MG完成,下面分别对其实现过程进行说明。The above-mentioned process of determining the preferred codec type can be completed by the MGC or the MG, and the implementation process will be described respectively below.
图3所示为MGC确定优选编解码类型的流程图,其主要实现过程如下:Figure 3 shows the flow chart of the MGC determining the preferred codec type, and its main implementation process is as follows:
步骤S11、在MGC上生成MG的各个局向,局向的生成可采用网络规划时在MGC上预先配置MG的各个局向的方式,也可以采用由MGC从呼叫中自动识别和添加局向的方式,更进一步,可以采用两种方式相结合的方式。例如,MGC在网络规划时预先配置与MG具有连接关系的网关所对应的局向,在运行过程中,每当MGC发现自己管辖下的MG发生了一个新的目的IP地址的呼叫时,就在MGC上自动添加一个局向。由于NGN网络中一般存在大量的IP终端设备,如果使用自动生成局向的方法,则MGC应具有汇聚局向的功能。Step S11: Generate each office direction of the MG on the MGC. The generation of the office direction can be performed by pre-configuring each office direction of the MG on the MGC during network planning, or by automatically identifying and adding the office direction from the call by the MGC. way, further, a combination of two ways can be used. For example, the MGC pre-configures the office direction corresponding to the gateway connected to the MG during network planning. During operation, whenever the MGC finds that a call with a new destination IP An office route is automatically added to the MGC. Because there are generally a large number of IP terminal devices in the NGN network, if the method of automatically generating office directions is used, the MGC should have the function of converging office directions.
步骤S12、MGC发出采样呼叫,并通过网关控制协议(如H.248协议、MGCP)或私有协议指示MG对采样呼叫进行链路质量检测;Step S12, the MGC sends a sampling call, and instructs the MG to perform link quality detection on the sampling call through a gateway control protocol (such as H.248 protocol, MGCP) or a proprietary protocol;
在局向的对端设备支持测试呼叫的情况下,MGC需对该局向同时保持预定数值的采样呼叫,MGC优先使用真实呼叫作为采样呼叫,若每个局向上的真实呼叫数量达到预定数值,则从真实呼叫中选出预定数值的呼叫作为采样呼叫,否则MGC发出测试呼叫以补足采样呼叫的数量,使采样呼叫数量等于预定数值。When the peer device in the office direction supports test calls, the MGC needs to maintain a predetermined number of sampling calls for the office direction at the same time. The MGC uses real calls as the sampling calls first. If the number of real calls in each office direction reaches the predetermined value, Select a call with a predetermined value from the real calls as a sample call; otherwise, the MGC sends a test call to supplement the number of sample calls, so that the number of sample calls is equal to the predetermined value.
在局向的对端设备不支持测试呼叫的情况下,MGC使用真实呼叫作为采样呼叫。If the peer device in the office direction does not support the test call, the MGC uses the real call as the sample call.
MGC指示MG对采样呼叫进行链路质量检测,局向的对端设备每间隔预定时间段对自己接收到的数据包进行一次检测,利用RTCP的收发报文监控功能统计包丢失率、网络时延、抖动等QoS(Quality of Service,服务质量)参数,并且通过RTCP将QoS参数通知MG,由MG根据QoS参数确定出用于表征链路质量的链路质量参数。例如,MG可根据不同呼叫类型对链路质量的不同要求预先为不同的QoS参数设置对应的权重,如为不同的时延值设置对应的权重、为不同的抖动值设置对应的权重、为不同的丢包率设置对应的权重等,当MG收到局向返回的QoS参数时,查找不同的QoS参数所对应的权重,将权重相加即可得到用于表征当前链路质量优劣的链路质量参数。The MGC instructs the MG to check the link quality of the sampling call. The peer device in the office direction checks the data packets received by itself every predetermined period of time, and uses the RTCP sending and receiving message monitoring function to collect statistics on the packet loss rate and network delay. , jitter and other QoS (Quality of Service) parameters, and notify the MG of the QoS parameters through RTCP, and the MG determines the link quality parameters used to characterize the link quality according to the QoS parameters. For example, the MG can pre-set corresponding weights for different QoS parameters according to different requirements of different call types on link quality, such as setting corresponding weights for different delay values, setting corresponding weights for different jitter values, and setting corresponding weights for different QoS parameters. When the MG receives the QoS parameters returned by the office, it searches for the weights corresponding to different QoS parameters, and adds up the weights to obtain the link used to represent the quality of the current link. road quality parameters.
步骤S13、MGC为其控制的所有MG的每一个局向分别建立对应的链路指数,用于表征该局向的链路质量变化情况。In step S13, the MGC establishes a corresponding link index for each office of all MGs under its control, which is used to represent the link quality change of the office.
MG将步骤S12中得出的链路质量参数与预定的链路质量阈值进行比较,当链路质量参数达到预定的链路质量阈值时,MG通过网关控制协议或私有协议向MGC发出链路告警信息,MGC以预先设定的递增量控制增加链路指数值,当链路质量参数小于预定的链路质量阈值时,MG通过网关控制协议或私有协议向MGC发出链路恢复信息,MGC以预先设定的递减量控制减小链路指数值。当链路指数值递减到链路指数的初始值时,不再继续递减。例如:将局向的链路指数初始值设为0,MGC每收到一个链路质量告警就将对应局向的链路指数值加1,MGC每收到一个链路质量恢复信息就将对应局向的链路指数值减1,当链路指数值递减到0时,不再继续递减。The MG compares the link quality parameter obtained in step S12 with the predetermined link quality threshold, and when the link quality parameter reaches the predetermined link quality threshold, the MG sends a link alarm to the MGC through the gateway control protocol or private protocol information, the MGC increases the link index value with a preset incremental control, and when the link quality parameter is less than the predetermined link quality threshold, the MG sends a link recovery message to the MGC through the gateway control protocol or a private protocol, and the MGC The set decrement control decreases the link index value. When the link index value is decremented to the initial value of the link index, it will not continue to decrement. For example, if the initial value of the link index of the office direction is set to 0, the MGC will add 1 to the link index value of the corresponding office direction every time it receives a link quality alarm, and will correspondingly The link index value of the local direction is decremented by 1, and when the link index value decrements to 0, it does not continue to decrement.
在MGC控制下的MG的每一个局向的链路指数对应每一个局向的标识信息,该对应关系被保存在MGC的数据库中。例如,MGC下控制两个MG,编号分别为1和2,其中编号为1的MG具有三个局向,编号为2的MG具有两个局向,在MGC中保存的局向标识信息与局向的链路指数的对应关系为:The link index of each office direction of the MG under the control of the MGC corresponds to the identification information of each office direction, and the corresponding relationship is stored in the database of the MGC. For example, two MGs are controlled under the MGC, numbered 1 and 2 respectively. The MG numbered 1 has three office directions, and the MG numbered 2 has two office directions. The corresponding relationship of the link index of the direction is:
步骤S14、MGC根据预先设置的链路指数与优选编解码类型之间的对应关系为呼叫确定优选编解码类型,MG的局向的链路指数与优选编解码类型的对应关系被预先记录在MGC的数据库中;Step S14. The MGC determines the preferred codec type for the call according to the preset correspondence between the link index and the preferred codec type. The correspondence between the MG's local link index and the preferred codec type is pre-recorded in the MGC in the database;
链路指数值用于表征局向的链路质量变化情况,应根据链路指数值的不同确定不同的优选编解码类型,该预先设置的优选编解码类型通常为多个,排在最前面的为优先级最高的编解码类型。例如,可设定若干个链路指数范围值,每个链路指数范围值对应一组优选编解码类型。在链路指数值较低时,优选编解码类型为语音质量较好但带宽占用较多的类型,如G.722.1编解码、G.711编解码,甚至MP3、WMA编解码等类型;在链路指数值较高时,优选编解码类型为语音质量略差但带宽占用较少的编解码类型,如G.729编解码、G.723.1编解码、G.729编解码、G.726编解码等类型,或者对此局向进行限呼。The link index value is used to represent the link quality change in the local direction. Different preferred codec types should be determined according to the link index value. There are usually multiple preset preferred codec types, and the first It is the codec type with the highest priority. For example, several link index range values may be set, and each link index range value corresponds to a group of preferred codec types. When the link index value is low, the preferred codec type is a type with better voice quality but more bandwidth, such as G.722.1 codec, G.711 codec, or even MP3, WMA codec, etc.; When the road index value is high, the preferred codec type is a codec type with slightly poorer voice quality but less bandwidth occupation, such as G.729 codec, G.723.1 codec, G.729 codec, G.726 codec etc., or restrict calls to this office.
下表所示为MGC预先为具有两个局向的MG设置的链路指数与优选编解码类型之间的对应关系:The following table shows the correspondence between the link index and the preferred codec type set by the MGC in advance for the MG with two office directions:
MGC根据当前的链路指数值为呼叫确定优选的编解码类型,并将确定的优选编解码类型通过局间信令,如BICC(Bearer Independent Call Control Protocol,与承载无关的呼叫控制协议)或SIP(Session Initiation Protocol,会话发起协议)发送给局向的对端。The MGC determines the preferred codec type for the call based on the current link index value, and passes the determined preferred codec type through inter-office signaling, such as BICC (Bearer Independent Call Control Protocol, bearer-independent call control protocol) or SIP (Session Initiation Protocol, Session Initiation Protocol) is sent to the peer end of the office direction.
步骤S15、对端的呼叫处理实体接收所述优选编解码类型,将优选编解码类型中自己不支持的编解码类型删除,在剩余的编解码类型中选择一个,对端的呼叫处理实体一般会从优先级最高的编解码类型开始选择自己支持的编解码类型,并将所选择的编解码类型返回给MGC,由MGC指示MG按照返回的编解码类型对呼叫进行编解码操作。Step S15, the call processing entity at the opposite end receives the preferred codec type, deletes the codec types that it does not support in the preferred codec types, and selects one of the remaining codec types, and the call processing entity at the opposite end generally selects the preferred codec type The codec type with the highest level begins to select the codec type supported by itself, and returns the selected codec type to the MGC, and the MGC instructs the MG to perform codec operations on the call according to the returned codec type.
图4所示为MG确定优选编解码类型的流程图,其主要实现过程如下:Figure 4 shows the flow chart for the MG to determine the preferred codec type, and its main implementation process is as follows:
步骤S21、在MG上生成MG的各个局向,局向的生成可采用网络规划时在MG上预先配置其各个局向的方式,也可以采用由MG从呼叫中自动识别和添加局向的方式,更进一步,可以采用两种方式相结合的方式。例如,网络规划时在MG上预先配置与其具有连接关系的网关所对应的局向,在运行过程中,每当MG发生了一个新的目的IP地址的呼叫时,就自动添加一个局向。由于NGN网络中一般存在大量的IP终端设备,如果使用自动生成局向的方法,则MG应具有汇聚局向的功能。Step S21. Generate each office direction of the MG on the MG. The generation of the office direction can be performed by pre-configuring each office direction on the MG during network planning, or by automatically identifying and adding the office direction from the call by the MG. , further, a combination of the two methods can be used. For example, during network planning, the office route corresponding to the gateway with which it is connected is pre-configured on the MG. During operation, whenever a call with a new destination IP address occurs on the MG, an office route is automatically added. Because there are generally a large number of IP terminal devices in the NGN network, if the method of automatically generating office directions is used, the MG should have the function of converging office directions.
步骤S22、MG对MGC发出的真实呼叫进行链路质量检测,局向的对端设备每间隔预定时间段对自己接收到的数据包进行一次检测,利用RTCP的收发报文监控功能统计包丢失率、网络时延、抖动等QoS(Quality of Service,服务质量)参数,并且通过RTCP将QoS参数通知MG,由MG根据QoS参数确定出用于表征链路质量的链路质量参数。Step S22. The MG performs link quality detection on the real call sent by the MGC. The peer device in the office direction detects the data packets received by itself every predetermined time interval, and uses the packet loss rate of RTCP to monitor the function of sending and receiving packets. , network delay, jitter and other QoS (Quality of Service) parameters, and notify the MG of the QoS parameters through RTCP, and the MG determines the link quality parameters used to represent the link quality according to the QoS parameters.
例如,MG可根据不同呼叫类型对链路质量的不同要求预先为不同的QoS参数设置对应的权重,如为不同的时延值设置对应的权重、为不同的抖动值设置对应的权重、为不同的丢包率设置对应的权重等,当MG收到局向返回的QoS参数时,查找不同的QoS参数所对应的权重,将权重相加即可得到用于表征当前链路质量优劣的链路质量参数。For example, the MG can pre-set corresponding weights for different QoS parameters according to different requirements of different call types on link quality, such as setting corresponding weights for different delay values, setting corresponding weights for different jitter values, and setting corresponding weights for different QoS parameters. When the MG receives the QoS parameters returned by the office, it searches for the weights corresponding to different QoS parameters, and adds up the weights to obtain the link used to represent the quality of the current link. road quality parameters.
步骤S23、MG为每一个局向分别建立对应的链路指数,用于表征该局向的链路质量变化情况。In step S23, the MG establishes a corresponding link index for each office direction, which is used to represent the link quality change of the office direction.
MG将步骤S12中得出的链路质量参数与预定的链路质量阈值进行比较,当链路质量参数大于或等于预定的链路质量阈值时,以预先设定的递增量增加链路指数值,当链路质量参数小于预定的链路质量阈值时,以预先设定的递减量控制减小链路指数值。当链路指数值递减到链路指数的初始值时,不再继续递减。The MG compares the link quality parameter obtained in step S12 with a predetermined link quality threshold, and when the link quality parameter is greater than or equal to the predetermined link quality threshold, increases the link index value by a preset increment , when the link quality parameter is less than a predetermined link quality threshold, the link index value is controlled to decrease by a preset decrement amount. When the link index value is decremented to the initial value of the link index, it will not continue to decrement.
例如:将局向的链路指数初始值设为0,当链路质量参数大于或等于链路质量阈值时,MG将对应局向的链路指数值加1,当链路质量参数小于预定的链路质量阈值时,MG就将对应局向的链路指数值减1,当链路指数值递减到0时,不再继续递减。For example: set the initial value of the link index of the office direction to 0. When the link quality parameter is greater than or equal to the link quality threshold, the MG will add 1 to the link index value of the corresponding office direction. When the link quality threshold is reached, the MG will decrease the link index value of the corresponding local direction by 1, and when the link index value decreases to 0, it will not continue to decrease.
MG的每一个局向的链路指数对应每一个局向的标识信息,该对应关系被保存在MG的数据库中。例如,具有三个局向的MG的局向标识信息与局向的链路指数的对应关系为:The link index of each office direction of the MG corresponds to the identification information of each office direction, and the corresponding relationship is stored in the database of the MG. For example, the correspondence relationship between the office identification information of an MG with three office directions and the link index of the office direction is:
步骤S24、MG根据预先设置的链路指数与优选编解码类型之间的对应关系为呼叫确定优选编解码类型,MG的局向的链路指数与优选编解码类型的对应关系被预先记录在MG的数据库中;Step S24, the MG determines the preferred codec type for the call according to the preset correspondence between the link index and the preferred codec type, and the correspondence between the MG's local link index and the preferred codec type is pre-recorded in the MG in the database;
链路指数值用于表征局向的链路质量变化情况,应根据链路指数值的不同确定不同的优选编解码类型,该预先设置的优选编解码类型通常为多个,排在最前面的为优先级最高的编解码类型。例如,可设定若干个链路指数范围值,每个链路指数范围值对应一组优选编解码类型。在链路指数值较低时,优选编解码类型为语音质量较好但带宽占用较多的类型,如G.722.1编解码、G.711编解码,甚至MP3、WMA编解码等类型;在链路指数值较高时,优选编解码类型为语音质量略差但带宽占用较少的编解码类型,如G.729编解码、G.723.1编解码、G.729编解码、G.726编解码等类型,或者对此局向进行限呼。The link index value is used to represent the link quality change in the local direction. Different preferred codec types should be determined according to the link index value. There are usually multiple preset preferred codec types, and the first It is the codec type with the highest priority. For example, several link index range values may be set, and each link index range value corresponds to a group of preferred codec types. When the link index value is low, the preferred codec type is a type with better voice quality but more bandwidth, such as G.722.1 codec, G.711 codec, or even MP3, WMA codec, etc.; When the road index value is high, the preferred codec type is a codec type with slightly poorer voice quality but less bandwidth occupation, such as G.729 codec, G.723.1 codec, G.729 codec, G.726 codec etc., or restrict calls to this office.
下表所示为具有两个局向的MG设置的链路指数与优选编解码类型之间的对应关系:The following table shows the correspondence between the link index and the preferred codec type set by the MG with two office directions:
MG根据当前的链路指数值为呼叫确定优选的编解码类型,并将确定的优选编解码类型通过网关控制协议(如H.248协议、MGCP)或私有协议发送给MGC,由MGC通过局间信令,如BICC(Bearer Independent Call Control Protocol,与承载无关的呼叫控制协议)或SIP(Session Initiation Protocol,会话发起协议)发送给局向的对端。The MG determines the preferred codec type for the call according to the current link index value, and sends the determined preferred codec type to the MGC through a gateway control protocol (such as H.248 protocol, MGCP) or a private protocol, and the MGC communicates with the inter-office Signaling, such as BICC (Bearer Independent Call Control Protocol, bearer-independent call control protocol) or SIP (Session Initiation Protocol, session initiation protocol) is sent to the peer end of the office direction.
步骤S25、对端的呼叫处理实体接收所述优选编解码类型,将优选编解码类型中自己不支持的编解码类型删除,在剩余的编解码类型中选择一个,对端的呼叫处理实体一般会从优先级最高的编解码类型开始选择自己支持的编解码类型,并将所选择的编解码类型返回给MGC,由MGC指示MG按照返回的编解码类型对呼叫进行编解码操作。Step S25, the call processing entity at the opposite end receives the preferred codec type, deletes the codec types that it does not support in the preferred codec types, and selects one of the remaining codec types, and the call processing entity at the opposite end generally selects the preferred codec type The codec type with the highest level begins to select the codec type supported by itself, and returns the selected codec type to the MGC, and the MGC instructs the MG to perform codec operations on the call according to the returned codec type.
由此可见,本发明编解码类型确定方法实现了能够根据链路质量的变化趋势为呼叫选择适当的编解码类型,在链路质量状况较好时,可以为用户提供优良的服务质量;在链路质量状况较差时,可以为用户提供可接受的服务质量,从而能够为用户提供更好的通讯体验,提高用户的满意度。It can be seen that the codec type determination method of the present invention can select an appropriate codec type for a call according to the change trend of the link quality, and can provide users with excellent service quality when the link quality is good; When the road quality is poor, it can provide users with acceptable service quality, thereby providing users with a better communication experience and improving user satisfaction.
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention also intends to include these modifications and variations.
Claims (8)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100886827A CN100461663C (en) | 2005-08-01 | 2005-08-01 | A method for determining codec type |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CNB2005100886827A CN100461663C (en) | 2005-08-01 | 2005-08-01 | A method for determining codec type |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1909435A CN1909435A (en) | 2007-02-07 |
| CN100461663C true CN100461663C (en) | 2009-02-11 |
Family
ID=37700435
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CNB2005100886827A Expired - Fee Related CN100461663C (en) | 2005-08-01 | 2005-08-01 | A method for determining codec type |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN100461663C (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101465926B (en) * | 2009-01-07 | 2011-10-26 | 中兴通讯股份有限公司 | Method and device for processing call through network telephone gateway |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP0903883A2 (en) * | 1997-09-21 | 1999-03-24 | Lucent Technologies Inc. | System and method for adaptive modification of modulated and coded schemes in a communication system |
| CN1277764A (en) * | 1997-08-29 | 2000-12-20 | 艾利森电话股份有限公司 | A method for selecting a combination of modulation and channel coding schemes in a digital communication system |
| CN1360805A (en) * | 1999-07-05 | 2002-07-24 | 诺基亚公司 | How to choose an encoding method |
| WO2003019847A1 (en) * | 2001-08-27 | 2003-03-06 | Nokia Corporation | A method and a system for transfering amr signaling frames on halfrate channels |
| CN1520643A (en) * | 2001-06-25 | 2004-08-11 | 诺基亚有限公司 | MCS and multi-code optimization through TFCI signaling |
| CN1592438A (en) * | 2003-09-04 | 2005-03-09 | 华为技术有限公司 | Adaptive multi-rate encoding method and device in mobile communication system |
-
2005
- 2005-08-01 CN CNB2005100886827A patent/CN100461663C/en not_active Expired - Fee Related
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1277764A (en) * | 1997-08-29 | 2000-12-20 | 艾利森电话股份有限公司 | A method for selecting a combination of modulation and channel coding schemes in a digital communication system |
| EP0903883A2 (en) * | 1997-09-21 | 1999-03-24 | Lucent Technologies Inc. | System and method for adaptive modification of modulated and coded schemes in a communication system |
| CN1360805A (en) * | 1999-07-05 | 2002-07-24 | 诺基亚公司 | How to choose an encoding method |
| CN1520643A (en) * | 2001-06-25 | 2004-08-11 | 诺基亚有限公司 | MCS and multi-code optimization through TFCI signaling |
| WO2003019847A1 (en) * | 2001-08-27 | 2003-03-06 | Nokia Corporation | A method and a system for transfering amr signaling frames on halfrate channels |
| CN1592438A (en) * | 2003-09-04 | 2005-03-09 | 华为技术有限公司 | Adaptive multi-rate encoding method and device in mobile communication system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1909435A (en) | 2007-02-07 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7215643B2 (en) | System and method for providing alternate routing in a network | |
| US8194825B2 (en) | Methods and apparatus for call surveillance in internet protocol communication networks | |
| EP1892920B1 (en) | Monitoring system and method for trunk gateway | |
| US8274970B2 (en) | Voice communication device with PSTN and internet pathway analysis, selection and handoff | |
| US9444738B2 (en) | System and method for monitoring the volume of calls carried by a voice over internet protocol telephone system | |
| US20080101338A1 (en) | METHODS AND APPARATUS TO IMPLEMENT HIGHER DATA RATE VOICE OVER INTERNET PROTOCOL (VoIP) SERVICES | |
| JP2010051009A (en) | METHOD AND DEVICE FOR CONTROLLING SESSION QoS | |
| KR100744567B1 (en) | Apparatus and method for minimizing the number of transcodings in a multi-network multi-codec environment | |
| US20060188080A1 (en) | VoIP call through tester | |
| JP4482024B2 (en) | Resource utilization optimization in packet-switched networks. | |
| WO2007103079A2 (en) | Methods and apparatus to perform parallel ringing across communication networks | |
| US20130223304A1 (en) | Core network and communication system | |
| EP1436963B1 (en) | Method, apparatus and computer program for selecting a media gateway control function based on the monitoring of resources of media gateway functions | |
| CN102511155B (en) | IP path negotiation method, system and device | |
| JP5078668B2 (en) | Call control system and call control method | |
| US20070291648A1 (en) | VoIP voice quality remote for switch-to-switch connections | |
| CN100461663C (en) | A method for determining codec type | |
| US9042541B2 (en) | Multi-node predictive dialing for scalability | |
| EP2037638A1 (en) | A method, equipment and system for path selection and flow control | |
| CN101160792B (en) | Service processing method and processing system in softswitch network | |
| CN101640894A (en) | Congestion detection method, media gateways and mobile switching center server | |
| US11115313B1 (en) | Analysis of transmission characteristics in a voice-over-IP network | |
| WO2011069385A1 (en) | Method and apparatus for dynamically selecting service bearer network | |
| CN101515974B (en) | Method, equipment and VG for detecting VoIP channel and switching PSTN backup | |
| CN100433732C (en) | Method for realizing differentiated service according to routequality selection in soft exchange network |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20090211 Termination date: 20150801 |
|
| EXPY | Termination of patent right or utility model |



