WO2007107041A1 - A method for implementing call agent based on the media gateway control protocol and a system thereof - Google Patents

A method for implementing call agent based on the media gateway control protocol and a system thereof Download PDF

Info

Publication number
WO2007107041A1
WO2007107041A1 PCT/CN2006/000458 CN2006000458W WO2007107041A1 WO 2007107041 A1 WO2007107041 A1 WO 2007107041A1 CN 2006000458 W CN2006000458 W CN 2006000458W WO 2007107041 A1 WO2007107041 A1 WO 2007107041A1
Authority
WO
WIPO (PCT)
Prior art keywords
protocol
module
media gateway
processing module
data
Prior art date
Application number
PCT/CN2006/000458
Other languages
French (fr)
Chinese (zh)
Inventor
Mingdong Li
Rongjun Zhu
Jun Hong
Original Assignee
Zte Corporation
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 Zte Corporation filed Critical Zte Corporation
Priority to PCT/CN2006/000458 priority Critical patent/WO2007107041A1/en
Publication of WO2007107041A1 publication Critical patent/WO2007107041A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • 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/10Architectures or entities
    • H04L65/102Gateways
    • H04L65/1043Gateway controllers, e.g. media gateway control protocol [MGCP] controllers

Definitions

  • the present invention relates to gateway control techniques and, more particularly, to an architecture design method for implementing a call agent based on a media gateway control protocol. Background technique
  • the Media Gateway Control Protocol is the RFC3435 protocol of The Internet Engineering Task Force (IETF).
  • the Call Agent (CA) is a control device defined by the Media Gateway Control Protocol.
  • FIG. 1 shows the network diagram of the system for implementing the media gateway control protocol.
  • the media gateway control protocol adopts the idea of split gateway, which decomposes the gateways that have been processed by the previous signaling and media into two parts: Media Gateway (MG) and Call Agent (CA).
  • the CA processes the signaling
  • the MG processes the media
  • the CA controls the actions of the MG.
  • the media gateway control protocol is a master/slave relationship.
  • the CA sends a command to the MG to execute, and the MG reports the collected message to the CA.
  • CA is equivalent to master (master), and MG is equivalent to slave (slave;).
  • the CA assigns the MG a specific task and processes the request handed over by the MG.
  • Both the CA and the MG are network elements in the network, which communicate with each other through a gateway control protocol.
  • Messages between the Call Agent and the Media Gateway include commands and responses. Its format is:
  • endpointName LocalEndpointName ⁇ @ ⁇ DomainName
  • the command MGCPCommandLine always has the terminal's endpointName, and the endpointName contains the DomainName, the domain name, and the response MGCPResponseLine does not have any fixed identifier.
  • media gateways including a large-capacity trunking gateway (TG) and a large-capacity access gateway (AG), and an integrated access device (Integrated Access Device).
  • the IAD Integrated Access Device
  • the IAD can allow dynamic IP addresses (through the Dynamic Host Configuration Protocol, DHCP protocol).
  • the Call Agent controls a large number of fixed-capacity TGs and AGs with a fixed number of IP addresses, while controlling a large number of small-capacity IADs (IAD addresses can be obtained by DHCP).
  • the call agent architecture is the core technology for implementing call agents.
  • the distribution mode of the media gateway control protocol is an important part of the call agent architecture.
  • existing distribution methods include transport layer distribution based on IP routing and application layer distribution based on media gateway control protocol parsing.
  • the transport layer distribution of IP routing is simple to implement. It is suitable for controlling large-capacity TGs and AGs with a small number of fixed IP addresses through static route configuration. However, for a large number of small-capacity IADs, a large amount of data needs to be configured, which is inefficient and at the same time. Device support for dynamic addresses is difficult.
  • the application layer distribution based on the media gateway control protocol parsing needs to parse the media gateway control protocol to obtain the distribution route, and obtain relatively comprehensive distribution data, which is suitable for providing routes for devices without static route configuration, but the implementation manner is complicated and the efficiency is low. , is not suitable for controlling large capacity TG and AG with a small number of fixed IP addresses. How to take advantage of these two distribution methods while avoiding their shortcomings is the goal of the call agent's architecture design.
  • the technical problem to be solved by the present invention is to provide a call agent implementation method and a call proxy system based on a media gateway control protocol, and to solve application layer distribution based on IP route-based transport layer distribution and media gateway control protocol parsing.
  • Technology cannot synthesize the advantages of both distribution methods and circumvent the technical problems of its shortcomings.
  • the present invention provides a call agent implementation method based on a media gateway control protocol, which is characterized in that: the network forwarding module is used as an externally unique gateway control protocol interface of a call proxy system, according to the type of the media gateway.
  • the network forwarding module performs corresponding data configuration, and the network forwarding module forwards the protocol flow of the media gateway of the queried IP address to the corresponding protocol processing module to implement transmission layer distribution based on the IP route, and the query is not IP to
  • the protocol stream of the media gateway of the address is sent to the protocol distribution module in a round-robin manner, and the protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, thereby forwarding the protocol flow that cannot query the IP address to the corresponding Protocol processing module.
  • the corresponding data configuration includes: ⁇ configuring a static IP address data for a small number of large-capacity access gateways and relay gateways; for a large number of small-capacity integrated access devices, not Configuration.
  • Step 1 Configure corresponding data in a physical entity of each module of the call proxy system, configure a correspondence between a media gateway IP address and a corresponding protocol processing module in the network forwarding module, and configure a media gateway domain name and a corresponding protocol in the protocol distribution module. Processing the correspondence between the modules, and configuring protocol-related data and corresponding authentication data on each protocol processing module;
  • Step 2 The gateway protocol flow outside the call proxy system enters the network forwarding module.
  • Step 3 The network forwarding module may query the IP address according to the configured media gateway IP address and the corresponding relationship of the corresponding protocol processing module. The protocol stream of the media gateway is forwarded to the corresponding protocol processing module; the protocol stream of the media gateway that cannot be queried is sent to the protocol distribution module in a round robin manner;
  • Step 4 The protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, and forwards the protocol flow to the corresponding protocol processing module.
  • Step 5 The protocol processing module processes the protocol data stream
  • Step 6 Send the response of the protocol processing module to the protocol data stream directly to the network forwarding module.
  • the step 4 further includes: the protocol distribution module parses the protocol to obtain a protocol special identifier, and obtains a corresponding protocol according to the configured media gateway domain name or the corresponding relationship between the response transaction and the corresponding protocol processing module.
  • the module forwards the protocol stream to the corresponding protocol processing module.
  • the foregoing method is characterized in that, before the step 5, the step of authenticating the protocol data stream by the protocol processing module is further included.
  • the above method is characterized in that the media gateway supports a dynamic host configuration protocol.
  • the network forwarding module further includes the steps of configuring the forwarding mode and the forwarding data to ensure that the forwarding is performed after the number of the corresponding forwarding modules changes. The data is not lost.
  • the foregoing method is characterized in that: the change of the number of the forwarded modules refers to: the protocol distribution module is expanded, and the number of faults is increased or decreased.
  • the above method is characterized in that it further comprises special processing steps for the transaction number, including: adding the identification information of the protocol processing module to the transaction number in the command of the call agent system to the media gateway, so that the call proxy system sends the information to the media gateway.
  • the final transaction number is a combination of the protocol processing module information plus the actual transaction number generated by the call proxy system, so that the protocol distribution module can resolve the actual processing in the final transaction number when receiving the response from the media gateway to the call proxy system.
  • the protocol processes the module information and forwards the Media Gateway Control Protocol message to the corresponding protocol processing module.
  • the present invention further provides a call proxy system based on a media gateway control protocol, which is characterized in that it comprises: a network forwarding module, a protocol processing module, a protocol distribution module, and a data module;
  • the data module is configured to implement a function of loading, managing, storing, and synchronizing data; using the network forwarding module as an externally unique gateway control protocol interface of the call proxy system, and correspondingly performing the network forwarding module according to the type of the media gateway Data configuration, the network forwarding module forwards the protocol flow of the media gateway of the queried IP address to the corresponding protocol processing module to implement the transport layer distribution based on the IP route, and the media gateway that will not query the IP address
  • the protocol stream is sent to the protocol distribution module in a round-robin manner, and the protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, thereby forwarding the protocol flow that cannot query the IP address to the corresponding protocol processing. Module.
  • the above-mentioned call proxy system is characterized in that: the authentication module is further configured to: perform authentication on the media gateway; the network forwarding module is connected to the media gateway and the data module; the protocol distribution module and the network forwarding module, The protocol processing module, the authentication module, and the data module are connected; the authentication module is connected to the protocol processing module and the data module; and the data module is connected to all modules and distributed on physical entities of all modules.
  • the present invention distributes the processing of the media gateway control protocol twice, and distributes the network forwarding module based on the IP layer and the application layer (the PPM module identifier in the media gateway domain name and protocol transaction-id).
  • the protocol forwards the module's distribution and performs different processing (directional forwarding or round-robin forwarding) for the forwarding mode. It can support the need to control different kinds of media gateways. For small quantities of large capacity AG and TG, use static in the network forwarding module NTM
  • the state configuration can be forwarded to a fixed one or more protocol processing modules through the IP layer in one direction or in a round robin manner, which can improve processing efficiency.
  • the forwarding relationship cannot be statically configured in the NTM, and the default is forwarded to the protocol distribution module PDM by directional or round-robin, which can reduce the logic complexity of the NTM module forwarding module and improve the forwarding efficiency of the NTM.
  • the protocol forwarding efficiency of the protocol distribution module can also be guaranteed.
  • due to application-level protocol forwarding at PDM it is possible to support IADs that are registered by DHCP, and to support the nomadic functions of IAD terminals without changing the data configuration and conditions.
  • Figure 1 is a schematic diagram of a media gateway control protocol
  • FIG. 2 is a schematic structural diagram of a call agent module of the present invention
  • FIG. 3 is a flow chart of a call agent receiving protocol of the present invention.
  • NTM Network Transmiting Module
  • PDM Protocol Distributing Module
  • Protocol Processing Module PPM
  • the architecture of the call proxy based on the media gateway control protocol of the present invention includes: a data module, which is globally distributed on all module entities, and provides data support and configuration for system operation;
  • the network forwarding module NTM processes the IP transport layer forwarding of the data stream, and provides multiple forwarding modes for the protocol processing module PPM and the protocol distribution module PDM, including directional forwarding for one module, or round-robin forwarding for multiple modules. And the forwarding mode and the forwarding data can be configured. When the number of the corresponding forwarding modules changes, for example, the protocol distribution module PDM is expanded and faulty. To increase or decrease the number, ensure that the forwarding data is not lost.
  • the protocol distribution module PDM processes the protocol application layer forwarding of the data stream, parses the gateway control protocol, and forwards the protocol to the final processing module through the media gateway domain name and the PPM module identifier in the protocol transaction-id; in general, it needs to be configured.
  • Protocol distribution module PDM (convenient for network forwarding module NTM round-robin transmission);
  • the concept of the media gateway domain name and the PPM module identifier in the protocol transaction-id are required to be forwarded by the protocol application layer.
  • the MG-to-CA command it can be considered as the association between the media gateway domain name and the protocol distribution module PDM;
  • the present invention provides special processing for the transaction transaction-id.
  • the transaction id is added to the identification information of the protocol processing module PPM, that is, the CA is sent to the MG.
  • the final transaction-id is the combination of the protocol processing module PPM information plus the actual transaction-id generated by the CA, so that the protocol distribution module PDM can resolve the actual processing in the final transaction-id when receiving the response from the MG to the CA.
  • the protocol processes the module PPM information and forwards the Media Gateway Control Protocol message to the corresponding protocol processing module PPM.
  • the protocol processing module PPM which finally completes the processing of the protocol, performs a protocol response or initiates a new protocol request.
  • multiple protocol processing modules PPM need to be configured;
  • the authentication module AM authenticates the protocol, and the authentication data and protocol processing module PPM can be configured together.
  • the protocol can be authenticated through the authentication module.
  • FIG. 3 is a call flow receiving protocol flow diagram (excluding transmission) of the present invention.
  • the architecture implementation method of the call proxy based on the media gateway control protocol includes the following steps:
  • Step A Configure the corresponding data in the physical entity of each module of the call proxy, configure the correspondence between the IP address of the media gateway and the corresponding protocol processing board in the network forwarding module, and configure the domain name of the media gateway and the corresponding protocol processing board in the protocol distribution module PDM. Relationship, configuring protocol related data and corresponding authentication data on each protocol processing module PPM;
  • Step B The gateway protocol flow outside the system enters the network forwarding module NTM;
  • Step C The network forwarding module NTM forwards the protocol flow of the media gateway of the queried IP address to the corresponding protocol processing module PPM according to the corresponding relationship between the configured media gateway IP address and the corresponding protocol processing board;
  • Step C' The network forwarding module NTM will not be able to query the protocol flow of the media gateway through the round robin
  • the mode is sent to the protocol distribution module P;
  • Step D The protocol distribution module PDM parses the protocol to obtain a protocol special identifier, and obtains a corresponding protocol processing module PPM according to the configured media gateway domain name or the correspondence between the transaction transaction-id and the corresponding protocol processing module, and forwards the protocol flow. To the corresponding PPM;
  • Step E If required (such as the media gateway supports DHCP), the PPM authenticates the protocol data stream. (this step is optional)
  • Step F PPM processes the protocol data stream.
  • Step G The response of the PPM to the protocol data stream is sent directly to the network forwarding module NTM.
  • the process of the gateway control protocol message entering the architecture design method of the call agent based on the media gateway control protocol of the present invention is as follows:
  • Step 401 The system completes various data configurations and runs normally.
  • Step 402 The network forwarding module receives the media gateway control protocol sent by the media gateway.
  • Step 403 The data module of the network forwarding module DM queries the IP address of the media gateway to determine whether the IP address of the media gateway is configured. If yes, go to step 404. Otherwise, go to step 406.
  • Step 404 The data module DM configures the media gateway IP address, and sends the media gateway control protocol message to the corresponding protocol processing module PPM.
  • Step 405 The protocol processing module PPM completes the final protocol processing. If there is a response, it is directly sent to the network forwarding module NTM, and the process proceeds to step 410.
  • Step 406 The data module DM does not configure the media gateway IP address, and sends the control protocol message to the corresponding protocol forwarding module PDM through the round robin.
  • Step 407 The protocol forwarding module PDM parsing protocol, if it is a command message, obtain the domain name of the media gateway, and query the correspondence between the media gateway and the PPM through the data module DM; if it is a response message, parse the relevant transaction-id from the transaction
  • the protocol processes the module PPM information, and determines whether the PDM can query the final processed PPM information. If yes, step 408 is performed; otherwise, step 409 is performed.
  • Step 408 The PDM may query the final processed PPM information, and send the media gateway control protocol message to the corresponding protocol processing module PPM, and go to step 405.
  • Step 409 The PDM cannot query the PPM information that is finally processed, and the protocol forwarding module PDM Special handling of this message.
  • Step 410 The process ends.
  • the invention distributes the processing of the media gateway control protocol twice, distributes the network forwarding module based on the IP layer, and distributes the protocol forwarding module based on the application layer, and performs different processing on the forwarding mode (directional forwarding or round robin forwarding). ), can support the need to control different kinds of media gateways.
  • the static configuration of the network forwarding module can be forwarded to a fixed one or more protocol processing modules through the IP plane in a directed or round-robin manner, which can improve processing efficiency.
  • the NTM does not statically configure the forwarding relationship.
  • the default forwarding or round-robin mode is forwarded to the protocol distribution module PDM, which can reduce the logic complexity of the NTM module forwarding module and improve the forwarding efficiency of the NTM.
  • the present invention combines the advantages of IP layer-based transport layer distribution and application layer distribution based on media gateway control protocol parsing and circumvents the disadvantages of both distribution methods.
  • the present invention is applicable to the technical field of gateway control, and the method of the present invention is equally applicable to other fields in which similar applications exist.

Abstract

A method for implementing call agent based on the media gateway control protocol and a system thereof, the method includes: the network transmitting module is used as the only external gateway control protocol interface of the call agent system; the different data configure is made in the network transmitting module according to the types of the media gateway; the network transmitting module could transmit the protocol flow of the media gateway that the IP address could be inquired to the corresponding protocol processing module, thereby the IP route based transport layer distributing is implemented; the media gateway protocol flow that the IP address could not be inquired is transmitted to the protocol distributing module by polling; the protocol distributing module finishes the application layer distributing based on the media gateway control protocol analyze, thereby the protocol flow that the IP address could not be inquired is transmitted to the corresponding protocol processing module. By using the present invention, the advantages of the IP route based transport layer distributing and the media gateway control protocol analyze based application layer distributing are integrated, and the disadvantages of them are avoided.

Description

基于媒体网关控制协议的呼叫代理实现方法及系统 技术领域  Call agent implementation method and system based on media gateway control protocol
本发明涉及网关控制技术, 更具体的说, 是一种用来实现基于媒体网关控 制协议的呼叫代理的架构设计方法。 背景技术  The present invention relates to gateway control techniques and, more particularly, to an architecture design method for implementing a call agent based on a media gateway control protocol. Background technique
媒体网关控制协议(Media Gateway Control Protocol ) 是因特网工程业 务组 (The Internet Engineering Task Force, 简称 IETF) 的 RFC3435协 议。 呼叫代理(Call Agent , 简称 CA)是媒体网关控制协议所定义的一种控 制设备。  The Media Gateway Control Protocol is the RFC3435 protocol of The Internet Engineering Task Force (IETF). The Call Agent (CA) is a control device defined by the Media Gateway Control Protocol.
如图 1所示为实现媒体网关控制协议的系统组网图。媒体网关控制协议采 用了分离网关思想,将以前信令和媒体集中处理的网关分解为两部分:媒体网 关 (Media Gateway, 简称 MG) 和呼叫代理 (Call Agent, 简称 CA)。 CA处理 信令, MG处理媒体, CA控制 MG的动作。从本质上媒体网关控制协议是一种主 /从(master/slave)关系, 由 CA向 MG发出要执行的命令, MG将所搜集的消 息上报给 CA。 CA相当于主(master), MG相当于从(slave;)。 CA分配给 MG 具体任务, 并处理 MG上交的请求。 CA和 MG都是网络中的网元, 它们互相之 间通过网关控制协议进行通讯。  Figure 1 shows the network diagram of the system for implementing the media gateway control protocol. The media gateway control protocol adopts the idea of split gateway, which decomposes the gateways that have been processed by the previous signaling and media into two parts: Media Gateway (MG) and Call Agent (CA). The CA processes the signaling, the MG processes the media, and the CA controls the actions of the MG. In essence, the media gateway control protocol is a master/slave relationship. The CA sends a command to the MG to execute, and the MG reports the collected message to the CA. CA is equivalent to master (master), and MG is equivalent to slave (slave;). The CA assigns the MG a specific task and processes the request handed over by the MG. Both the CA and the MG are network elements in the network, which communicate with each other through a gateway control protocol.
呼叫代理和媒体网关之间的消息包括命令和响应。 其格式为:  Messages between the Call Agent and the Media Gateway include commands and responses. Its format is:
MGCPCommandLine 二 MGCPVerb 1氺(WSP) transaction-id 1* (WSP)  MGCPCommandLine II MGCPVerb 1氺(WSP) transaction-id 1* (WSP)
endpointName 1* (WSP) MGCPversion E0L MGCPResponseLine = responseCode 1* (WSP) transaction-id  endpointName 1* (WSP) MGCPversion E0L MGCPResponseLine = responseCode 1* (WSP) transaction-id
[1* (WSP) 7〃 packageName] ; Only for 8xx [WSP responseString] E0L  [1* (WSP) 7〃 packageName] ; Only for 8xx [WSP responseString] E0L
transaction-id 二 1*9 (DIGIT)  Transaction-id two 1*9 (DIGIT)
endpointName = LocalEndpointName 〃@〃 DomainName  endpointName = LocalEndpointName 〃@〃 DomainName
可以看出, 命令 MGCPCommandLine 总是有终端的 endpointName 的, 而 endpointName包含 DomainName, 艮卩域名,而响应 MGCPResponseLine没有任何 固定标识。 媒体网关有不同种类, 包括大容量的中继网关(Trunking Gateway, 简称 TG)和大容量接入网关(Access Gateway, 简称 AG), 另外还有小容量综合接 入设备 (Integrated Access Device )。 IAD (Integrated Access Device综合 接入设备)可以允许动态 IP 地址 (通过动态主机配置协议 Dynamic Host Configuration Protocol, 简称 DHCP协议)。 在实际使用中, 呼叫代理控制小 数量固定 IP地址的大容量 TG和 AG, 同时控制大数量的小容量 IAD ( IAD地址 可以 DHCP获取)。 It can be seen that the command MGCPCommandLine always has the terminal's endpointName, and the endpointName contains the DomainName, the domain name, and the response MGCPResponseLine does not have any fixed identifier. There are different types of media gateways, including a large-capacity trunking gateway (TG) and a large-capacity access gateway (AG), and an integrated access device (Integrated Access Device). The IAD (Integrated Access Device) can allow dynamic IP addresses (through the Dynamic Host Configuration Protocol, DHCP protocol). In actual use, the Call Agent controls a large number of fixed-capacity TGs and AGs with a fixed number of IP addresses, while controlling a large number of small-capacity IADs (IAD addresses can be obtained by DHCP).
呼叫代理的架构是实现呼叫代理的核心技术, 媒体网关控制协议的分发模 式是呼叫代理架构的重要组成部分。 对于基于 IP承载的呼叫代理, 现有的分 发方式包括基于 IP路由的传输层分发和基于媒体网关控制协议解析的应用层 分发。 IP路由的传输层分发实现方式简单, 只要通过静态路由配置实现, 适 合控制小数量固定 IP地址的大容量 TG和 AG, 但是对于大数量的小容量 IAD 需要配置大量的数据, 效率不高, 同时对于动态地址的设备支持困难。基于媒 体网关控制协议解析的应用层分发需要对媒体网关控制协议进行解析以获取 分发路由,可以获取相对全面的分发数据,适合为没有静态路由配置的设备提 供路由, 但是实现方式复杂, 效率较低, 不适合控制小数量固定 IP地址的大 容量 TG和 AG。如何利用这两种分发方法的优点同时规避其缺点, 是呼叫代理 的架构设计的目标。  The call agent architecture is the core technology for implementing call agents. The distribution mode of the media gateway control protocol is an important part of the call agent architecture. For IP bearer-based call agents, existing distribution methods include transport layer distribution based on IP routing and application layer distribution based on media gateway control protocol parsing. The transport layer distribution of IP routing is simple to implement. It is suitable for controlling large-capacity TGs and AGs with a small number of fixed IP addresses through static route configuration. However, for a large number of small-capacity IADs, a large amount of data needs to be configured, which is inefficient and at the same time. Device support for dynamic addresses is difficult. The application layer distribution based on the media gateway control protocol parsing needs to parse the media gateway control protocol to obtain the distribution route, and obtain relatively comprehensive distribution data, which is suitable for providing routes for devices without static route configuration, but the implementation manner is complicated and the efficiency is low. , is not suitable for controlling large capacity TG and AG with a small number of fixed IP addresses. How to take advantage of these two distribution methods while avoiding their shortcomings is the goal of the call agent's architecture design.
发明公开 Invention disclosure
本发明所要解决的技术问题是提供一种基于媒体网关控制协议的呼叫代 理实现方法及呼叫代理系统, 解决相对于基于 IP路由的传输层分发和基于媒 体网关控制协议解析的应用层分发,现有技术不能综合这两种分发方式的优点 并规避其缺点的技术问题。  The technical problem to be solved by the present invention is to provide a call agent implementation method and a call proxy system based on a media gateway control protocol, and to solve application layer distribution based on IP route-based transport layer distribution and media gateway control protocol parsing. Technology cannot synthesize the advantages of both distribution methods and circumvent the technical problems of its shortcomings.
为实现上述发明目的, 本发明提供一种基于媒体网关控制协议的呼叫代理 实现方法, 其特点在于, 包括: 利用网络转发模块作为呼叫代理系统的对外唯 一网关控制协议接口,根据媒体网关的种类在所述网络转发模块进行相应的数 据配置, 所述网络转发模块将可以查询到的 IP地址的媒体网关的协议流转发 到对应的协议处理模块从而实现基于 IP路由的传输层分发,将査询不到的 IP 地址的媒体网关的协议流通过轮循方式发送到协议分发模块,由所述协议分发 模块完成基于媒体网关控制协议解析的应用层分发, 从而将所述查询不到 IP 地址的协议流转发到对应的协议处理模块。 To achieve the above object, the present invention provides a call agent implementation method based on a media gateway control protocol, which is characterized in that: the network forwarding module is used as an externally unique gateway control protocol interface of a call proxy system, according to the type of the media gateway. The network forwarding module performs corresponding data configuration, and the network forwarding module forwards the protocol flow of the media gateway of the queried IP address to the corresponding protocol processing module to implement transmission layer distribution based on the IP route, and the query is not IP to The protocol stream of the media gateway of the address is sent to the protocol distribution module in a round-robin manner, and the protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, thereby forwarding the protocol flow that cannot query the IP address to the corresponding Protocol processing module.
上述的方法, 其特点在于, 所述相应的数据配置包括 .· 对于小数量大容量 的接入网关和中继网关, 作静态 IP地址数据配置; 对于大数量小容量的综合 接入设备, 不作配置。  The above method is characterized in that: the corresponding data configuration includes: · configuring a static IP address data for a small number of large-capacity access gateways and relay gateways; for a large number of small-capacity integrated access devices, not Configuration.
上述的方法, 其特点在于, 进一步包括如下步骤:  The above method is characterized in that it further comprises the following steps:
步骤一, 在呼叫代理系统各模块的物理实体配置相应的数据, 在所述网络 转发模块配置媒体网关 IP地址和相应协议处理模块的对应关系, 在所述协议 分发模块配置媒体网关域名和相应协议处理模块的对应关系,在各协议处理模 ±夬上配置协议相关数据和对应认证数据;  Step 1: Configure corresponding data in a physical entity of each module of the call proxy system, configure a correspondence between a media gateway IP address and a corresponding protocol processing module in the network forwarding module, and configure a media gateway domain name and a corresponding protocol in the protocol distribution module. Processing the correspondence between the modules, and configuring protocol-related data and corresponding authentication data on each protocol processing module;
步骤二, 呼叫代理系统外部的网关协议流进入所述网络转发模块; 步骤三, 所述网络转发模块根据所配置的媒体网关 IP地址和相应协议处 理模块的对应关系, 将可以查询到的 IP地址的媒体网关的协议流转发到对应 的协议处理模块;将不能査询到的媒体网关的协议流通过轮循方式发送到协议 分发模块;  Step 2: The gateway protocol flow outside the call proxy system enters the network forwarding module. Step 3: The network forwarding module may query the IP address according to the configured media gateway IP address and the corresponding relationship of the corresponding protocol processing module. The protocol stream of the media gateway is forwarded to the corresponding protocol processing module; the protocol stream of the media gateway that cannot be queried is sent to the protocol distribution module in a round robin manner;
步骤四, 所述协议分发模块完成基于媒体网关控制协议解析的应用层分 发, 将协议流转发到对应的协议处理模块上;  Step 4: The protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, and forwards the protocol flow to the corresponding protocol processing module.
步骤五, 协议处理模块对协议数据流进行处理;  Step 5: The protocol processing module processes the protocol data stream;
步骤六, 将协议处理模块对协议数据流的响应直接发送到所述网络转发模 块。  Step 6: Send the response of the protocol processing module to the protocol data stream directly to the network forwarding module.
上述的方法, 其特点在于, 所述步骤四进一步包括: 协议分发模块对协议 进行解析得到协议特殊标识,根据所配置的媒体网关域名或者响应事务和相应 协议处理模块的对应关系得到对应的协议处理模块,并将协议流转发到所述对 应的协议处理模块上。  The foregoing method is characterized in that: the step 4 further includes: the protocol distribution module parses the protocol to obtain a protocol special identifier, and obtains a corresponding protocol according to the configured media gateway domain name or the corresponding relationship between the response transaction and the corresponding protocol processing module. The module forwards the protocol stream to the corresponding protocol processing module.
上述的方法, 其特点在于, 所述步骤五之前还包括协议处理模块对协议数 据流进行认证的步骤。  The foregoing method is characterized in that, before the step 5, the step of authenticating the protocol data stream by the protocol processing module is further included.
上述的方法, 其特点在于, 所述媒体网关支持动态主机配置协议。  The above method is characterized in that the media gateway supports a dynamic host configuration protocol.
上述的方法, 其特点在于, 所述步骤一中还包括网络转发模块对转发方式 和转发数据进行配置的步骤, 以保证当对应的被转发模块数发生变化后,转发 数据不丢失。 The foregoing method is characterized in that, in the step 1, the network forwarding module further includes the steps of configuring the forwarding mode and the forwarding data to ensure that the forwarding is performed after the number of the corresponding forwarding modules changes. The data is not lost.
上述的方法, 其特点在于, 所述被转发模块数发生变化是指: 协议分发模 块发生扩容、 故障导致数量增加或者减少。  The foregoing method is characterized in that: the change of the number of the forwarded modules refers to: the protocol distribution module is expanded, and the number of faults is increased or decreased.
上述的方法, 其特点在于, 还包括对事务号的特殊处理步骤, 包括: 在呼 叫代理系统到媒体网关的命令中对事务号加入协议处理模块的标识信息,从而 呼叫代理系统发送到媒体网关的最终事务号是协议处理模块信息加上呼叫代 理系统产生的实际事务号的组合,使得协议分发模块在收到媒体网关到呼叫代 理系统的响应的时候,能够在最终事务号中解析到实际处理的协议处理模块信 息并且将媒体网关控制协议消息转发到对应的协议处理模块上。  The above method is characterized in that it further comprises special processing steps for the transaction number, including: adding the identification information of the protocol processing module to the transaction number in the command of the call agent system to the media gateway, so that the call proxy system sends the information to the media gateway. The final transaction number is a combination of the protocol processing module information plus the actual transaction number generated by the call proxy system, so that the protocol distribution module can resolve the actual processing in the final transaction number when receiving the response from the media gateway to the call proxy system. The protocol processes the module information and forwards the Media Gateway Control Protocol message to the corresponding protocol processing module.
为了更好的实现本发明的目的, 本发明还提供了一种基于媒体网关控制协 议的呼叫代理系统, 其特点在于, 包括: 网络转发模块、协议处理模块、协议 分发模块和数据模块; 所述数据模块用以实现对数据的加载、管理、存贮和同 步的功能;利用所述网络转发模块作为呼叫代理系统的对外唯一网关控制协议 接口,根据媒体网关的种类在所述网络转发模块进行相应的数据配置,所述网 络转发模块将可以査询到的 IP地址的媒体网关的协议流转发到对应的协议处 理模块从而实现基于 IP路由的传输层分发,将查询不到的 IP地址的媒体网关 的协议流通过轮循方式发送到协议分发模块,由所述协议分发模块完成基于媒 体网关控制协议解析的应用层分发, 从而将所述査询不到 IP地址的协议流转 发到对应的协议处理模块。  In order to better achieve the object of the present invention, the present invention further provides a call proxy system based on a media gateway control protocol, which is characterized in that it comprises: a network forwarding module, a protocol processing module, a protocol distribution module, and a data module; The data module is configured to implement a function of loading, managing, storing, and synchronizing data; using the network forwarding module as an externally unique gateway control protocol interface of the call proxy system, and correspondingly performing the network forwarding module according to the type of the media gateway Data configuration, the network forwarding module forwards the protocol flow of the media gateway of the queried IP address to the corresponding protocol processing module to implement the transport layer distribution based on the IP route, and the media gateway that will not query the IP address The protocol stream is sent to the protocol distribution module in a round-robin manner, and the protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, thereby forwarding the protocol flow that cannot query the IP address to the corresponding protocol processing. Module.
上述的呼叫代理系统, 其特点在于, 还包括: 认证模块, 用以实现对媒体 网关的认证; 所述网络转发模块与所述媒体网关、数据模块连接; 所述协议分 发模块和网络转发模块、协议处理模块、认证模块、数据模块连接; 所述认证 模块和所述协议处理模块、数据模块连接; 所述数据模块和所有模块连接, 并 分配在所有模块的物理实体上。  The above-mentioned call proxy system is characterized in that: the authentication module is further configured to: perform authentication on the media gateway; the network forwarding module is connected to the media gateway and the data module; the protocol distribution module and the network forwarding module, The protocol processing module, the authentication module, and the data module are connected; the authentication module is connected to the protocol processing module and the data module; and the data module is connected to all modules and distributed on physical entities of all modules.
本发明的优点在于:  The advantages of the invention are:
与现有技术相比较, 本发明通过对媒体网关控制协议的处理作两次分发一 基于 IP层面的网络转发模块的分发和基于应用层面 (媒体网关域名和协议 transaction-id中的 PPM模块标识) 的协议转发模块的分发, 并且对于转发 方式作不同的处理(定向转发或者轮循转发)。 可以支持对不同种类媒体网关 进行控制的需求。对于小数量大容量的 AG和 TG, 在网络转发模块 NTM使用静 态配置可以通过定向或者轮循方式一次通过 IP层面转发到固定的一到多个协 议处理模块,可以提高处理效率。对于大数量小容量的 IAD可以在 NTM不静态 配置转发关系, 而缺省通过定向或者轮循方式转发到协议分发模块 PDM, 可以 减少 NTM模块转发模块的逻辑复杂度,提高 NTM的转发效率, 同时通过配置不 同数量的 PDM, 也可以保证协议分发模块的协议转发效率。 另外, 由于在 PDM 处作基于应用层面的协议转发, 可以支持 DHCP注册上来的 IAD, 以及在不改 动数据配置和情况下支持 IAD终端的游牧功能。 附图简要说明 Compared with the prior art, the present invention distributes the processing of the media gateway control protocol twice, and distributes the network forwarding module based on the IP layer and the application layer (the PPM module identifier in the media gateway domain name and protocol transaction-id). The protocol forwards the module's distribution and performs different processing (directional forwarding or round-robin forwarding) for the forwarding mode. It can support the need to control different kinds of media gateways. For small quantities of large capacity AG and TG, use static in the network forwarding module NTM The state configuration can be forwarded to a fixed one or more protocol processing modules through the IP layer in one direction or in a round robin manner, which can improve processing efficiency. For a large number of small-capacity IADs, the forwarding relationship cannot be statically configured in the NTM, and the default is forwarded to the protocol distribution module PDM by directional or round-robin, which can reduce the logic complexity of the NTM module forwarding module and improve the forwarding efficiency of the NTM. By configuring different numbers of PDMs, the protocol forwarding efficiency of the protocol distribution module can also be guaranteed. In addition, due to application-level protocol forwarding at PDM, it is possible to support IADs that are registered by DHCP, and to support the nomadic functions of IAD terminals without changing the data configuration and conditions. BRIEF DESCRIPTION OF THE DRAWINGS
图 1是媒体网关控制协议的原理图;  Figure 1 is a schematic diagram of a media gateway control protocol;
图 2是本发明的呼叫代理模块结构示意图;  2 is a schematic structural diagram of a call agent module of the present invention;
图 3是本发明的呼叫代理接收协议流图;  3 is a flow chart of a call agent receiving protocol of the present invention;
图 4是本发明的呼叫代理网关控制协议处理流程图。 实现本发明的最佳方式  4 is a flow chart of the call agent gateway control protocol processing of the present invention. The best way to implement the invention
下面结合附图对本发明基于媒体网关控制协议的呼叫代理的架构设计方 法进行说明。  The architecture design method of the call agent based on the media gateway control protocol of the present invention will be described below with reference to the accompanying drawings.
相关模块的中英文名称说明如下:  The Chinese and English names of the relevant modules are as follows:
网络转发模块(Network Transmiting Module, 简称 NTM)  Network Transmiting Module (NTM)
协议分发模块 (Protocol Distributing Module, 简称 PDM)  Protocol Distributing Module (PDM)
协议处理模块 (Protocol Processing Module, 简称 PPM)  Protocol Processing Module (PPM)
认证模块 (Authentication Module, 简称 AM)  Authentication Module (AM)
数据模块(Data Module, 简称 DM)  Data Module (DM)
如图 2所示, 本发明基于媒体网关控制协议的呼叫代理的架构包括: 数据模块謹,在所有模块实体上全局分布,为系统运行提供数据支撑和配 置;  As shown in FIG. 2, the architecture of the call proxy based on the media gateway control protocol of the present invention includes: a data module, which is globally distributed on all module entities, and provides data support and configuration for system operation;
网络转发模块 NTM, 处理数据流的 IP传输层面转发, 对于协议处理模块 PPM和协议分发模块 PDM均提供多种转发方式, 包括对一个模块的定向转发, 或者对于多个模块的轮循转发等, 并且可以对转发方式和转发数据进行配置; 当对应的被转发模块数发生变化时(例如协议分发模块 PDM发生扩容、故障导 致数量增加或者减少), 要保证转发数据不丢失。 The network forwarding module NTM processes the IP transport layer forwarding of the data stream, and provides multiple forwarding modes for the protocol processing module PPM and the protocol distribution module PDM, including directional forwarding for one module, or round-robin forwarding for multiple modules. And the forwarding mode and the forwarding data can be configured. When the number of the corresponding forwarding modules changes, for example, the protocol distribution module PDM is expanded and faulty. To increase or decrease the number, ensure that the forwarding data is not lost.
协议分发模块 PDM,处理数据流的协议应用层面转发,解析网关控制协议, 通过媒体网关域名和协议 transaction- id中的 PPM模块标识将协议转转发到 最终处理模块; 一般来说, 需要配置多个协议分发模块 PDM (便于网络转发模 块 NTM轮循发送);  The protocol distribution module PDM processes the protocol application layer forwarding of the data stream, parses the gateway control protocol, and forwards the protocol to the final processing module through the media gateway domain name and the PPM module identifier in the protocol transaction-id; in general, it needs to be configured. Protocol distribution module PDM (convenient for network forwarding module NTM round-robin transmission);
协议应用层面转发所需要的媒体网关域名和协议 transaction- id中的 PPM 模块标识的概念,对于 MG到 CA的命令来说,可以认为是媒体网关域名和协议 分发模块 PDM的关联;而对于 MG到 CA的响应来说, 由于协议消息没有固定标 识, 本发明提供了对事务 transaction- id的特殊处理, 在 CA到 MG的命令中 对 transaction id加入协议处理模块 PPM的标识信息, 即 CA发送到 MG的最 终 transaction- id 是协议处理模块 PPM 信息加上 CA 产生的实际 transaction-id的组合, 这样协议分发模块 PDM在收到 MG到 CA的响应的时 候, 可以在最终 transaction- id中解析到实际处理的协议处理模块 PPM信息 并且将媒体网关控制协议消息转发到对应的协议处理模块 PPM上。  The concept of the media gateway domain name and the PPM module identifier in the protocol transaction-id are required to be forwarded by the protocol application layer. For the MG-to-CA command, it can be considered as the association between the media gateway domain name and the protocol distribution module PDM; In the response of the CA, since the protocol message has no fixed identifier, the present invention provides special processing for the transaction transaction-id. In the CA to MG command, the transaction id is added to the identification information of the protocol processing module PPM, that is, the CA is sent to the MG. The final transaction-id is the combination of the protocol processing module PPM information plus the actual transaction-id generated by the CA, so that the protocol distribution module PDM can resolve the actual processing in the final transaction-id when receiving the response from the MG to the CA. The protocol processes the module PPM information and forwards the Media Gateway Control Protocol message to the corresponding protocol processing module PPM.
协议处理模块 PPM, 最终完成协议的处理, 进行协议响应或者发起新的协 议请求。 一般来说, 需要配置多个协议处理模块 PPM;  The protocol processing module PPM, which finally completes the processing of the protocol, performs a protocol response or initiates a new protocol request. Generally, multiple protocol processing modules PPM need to be configured;
认证模块 AM,对协议进行认证,认证数据和协议处理模块 PPM可以配置在 一起。 当媒体网关通过变动的 IP地址注册(DHCP方式) 时, 可以通过认证模 块对协议进行认证;  The authentication module AM authenticates the protocol, and the authentication data and protocol processing module PPM can be configured together. When the media gateway registers (DHCP) through a changed IP address, the protocol can be authenticated through the authentication module.
图 3是本发明的呼叫代理接收协议流图 (不包括发送), 如图所示, 本发 明基于媒体网关控制协议的呼叫代理的架构实现方法包括以下歩骤:  3 is a call flow receiving protocol flow diagram (excluding transmission) of the present invention. As shown in the figure, the architecture implementation method of the call proxy based on the media gateway control protocol includes the following steps:
步骤 A. 在呼叫代理各模块的物理实体配置相应的数据, 在网络转发模块 配置媒体网关 IP地址和相应协议处理板的对应关系, 在协议分发模块 PDM配 置媒体网关域名和相应协议处理板的对应关系,在各协议处理模块 PPM上配置 协议相关数据和对应认证数据;  Step A. Configure the corresponding data in the physical entity of each module of the call proxy, configure the correspondence between the IP address of the media gateway and the corresponding protocol processing board in the network forwarding module, and configure the domain name of the media gateway and the corresponding protocol processing board in the protocol distribution module PDM. Relationship, configuring protocol related data and corresponding authentication data on each protocol processing module PPM;
步骤 B. 系统外部的网关协议流进入网络转发模块 NTM;  Step B. The gateway protocol flow outside the system enters the network forwarding module NTM;
步骤 C.网络转发模块 NTM根据所配置的媒体网关 IP地址和相应协议处理 板的对应关系, 将可以査询到的 IP地址的媒体网关的协议流转发到对应的协 议处理模块 PPM;  Step C. The network forwarding module NTM forwards the protocol flow of the media gateway of the queried IP address to the corresponding protocol processing module PPM according to the corresponding relationship between the configured media gateway IP address and the corresponding protocol processing board;
步骤 C' . 网络转发模块 NTM将不能查询到的媒体网关的协议流通过轮循 方式发送到协议分发模块 P應; Step C'. The network forwarding module NTM will not be able to query the protocol flow of the media gateway through the round robin The mode is sent to the protocol distribution module P;
步骤 D. 协议分发模块 PDM对协议进行解析得到协议特殊标识, 根据所配 置的媒体网关域名或者响应事务 transaction- id和相应协议处理模块的对应 关系得到对应的协议处理模块 PPM, 并将协议流转发到对应的 PPM上;  Step D. The protocol distribution module PDM parses the protocol to obtain a protocol special identifier, and obtains a corresponding protocol processing module PPM according to the configured media gateway domain name or the correspondence between the transaction transaction-id and the corresponding protocol processing module, and forwards the protocol flow. To the corresponding PPM;
步骤 E. 如果需要 (如媒体网关支持 DHCP情况), PPM对协议数据流进行 认证。 (该步骤可选)  Step E. If required (such as the media gateway supports DHCP), the PPM authenticates the protocol data stream. (this step is optional)
步骤 F. PPM对协议数据流进行处理。  Step F. PPM processes the protocol data stream.
步骤 G. PPM对协议数据流的响应直接发送到网络转发模块 NTM。  Step G. The response of the PPM to the protocol data stream is sent directly to the network forwarding module NTM.
如图 4所示, 对于进入本发明基于媒体网关控制协议的呼叫代理的架构设 计方法的网关控制协议消息, 其处理方法流程如下:  As shown in FIG. 4, the process of the gateway control protocol message entering the architecture design method of the call agent based on the media gateway control protocol of the present invention is as follows:
步骤 401 : 系统完成各种数据配置, 正常运行。  Step 401: The system completes various data configurations and runs normally.
步骤 402: 网络转发模块 NTM接收到媒体网关发送的媒体网关控制协议消 Step 402: The network forwarding module receives the media gateway control protocol sent by the media gateway.
Λ∑;、 Oh;
步骤 403: 网络转发模块 ΝΤΜ上的数据模块 DM对媒体网关的 IP地址进行 査询, 判断媒体网关的 IP地址是否已经配置, 是则执行步骤 404, 否则执行 步骤 406。  Step 403: The data module of the network forwarding module DM queries the IP address of the media gateway to determine whether the IP address of the media gateway is configured. If yes, go to step 404. Otherwise, go to step 406.
步骤 404: 数据模块 DM对该媒体网关 IP地址有配置, 将媒体网关控制协 议消息发送到相应的协议处理模块 PPM。  Step 404: The data module DM configures the media gateway IP address, and sends the media gateway control protocol message to the corresponding protocol processing module PPM.
步骤 405: 协议处理模块 PPM完成最终协议处理, 如果有响应, 直接发送 到网络转发模块 NTM, 转步骤 410。  Step 405: The protocol processing module PPM completes the final protocol processing. If there is a response, it is directly sent to the network forwarding module NTM, and the process proceeds to step 410.
步骤 406: 数据模块 DM对该媒体网关 IP地址没有配置, 将控制协议消息 通过轮循发送到相应的协议转发模块 PDM。  Step 406: The data module DM does not configure the media gateway IP address, and sends the control protocol message to the corresponding protocol forwarding module PDM through the round robin.
步骤 407: 协议转发模块 PDM解析协议, 如果是命令消息, 得到媒体网关 的域名,通过数据模块 DM査询媒体网关和 PPM的对应关系;如果是响应消息, 则从事务 transaction-id中解析到相关的协议处理模块 PPM信息, 并且判断 PDM是否可以查询到最终处理的 PPM信息, 是则执行步骤 408, 否则执行步骤 409。  Step 407: The protocol forwarding module PDM parsing protocol, if it is a command message, obtain the domain name of the media gateway, and query the correspondence between the media gateway and the PPM through the data module DM; if it is a response message, parse the relevant transaction-id from the transaction The protocol processes the module PPM information, and determines whether the PDM can query the final processed PPM information. If yes, step 408 is performed; otherwise, step 409 is performed.
步骤 408: PDM可以査询到最终处理的 PPM信息, 将媒体网关控制协议消 息发送到对应的协议处理模块 PPM, 转步骤 405。  Step 408: The PDM may query the final processed PPM information, and send the media gateway control protocol message to the corresponding protocol processing module PPM, and go to step 405.
步骤 409: PDM不可以查询到最终处理的 PPM信息, 则协议转发模块 PDM 对该消息作特殊处理。 Step 409: The PDM cannot query the PPM information that is finally processed, and the protocol forwarding module PDM Special handling of this message.
步骤 410: 本次流程结束。  Step 410: The process ends.
尽管参照实施例对所公开的涉及提供基于媒体网关控制协议的呼叫代理 的架构设计方法进行了特别描述,本领域技术人员将能理解,在不偏离本发明 的范围和精神的情况下,可以对它进行形式和细节的种种显而易见的修改,例 如, 由于 IETF对网关控制协议的完善和更新, 本发明的技术方案的实质内同 对于提供基于 RFC3435 协议后续的媒体网关控制协议的呼叫代理的架构设计 方法同样适用。因此, 以上描述的实施例是说明性的而不是限制性的,在不脱 离本发明的精神和范围的情况下, 所有的变化和修改都在本发明的范围之内。 工业应用性  Although the disclosed architecture design method for providing a call agent based on a media gateway control protocol is specifically described with reference to the embodiments, those skilled in the art will appreciate that the present invention can be practiced without departing from the scope and spirit of the present invention. It performs various obvious modifications of the form and details. For example, due to the improvement and update of the gateway control protocol by the IETF, the technical solution of the present invention is the same as the architecture design of the call agent for providing the media gateway control protocol based on the RFC3435 protocol. The same method applies. The embodiments described above are illustrative and not restrictive, and all changes and modifications are within the scope of the invention. Industrial applicability
本发明通过对媒体网关控制协议的处理作两次分发一基于 IP层面的网络 转发模块的分发和基于应用层面的协议转发模块的分发,并且对于转发方式作 不同的处理(定向转发或者轮循转发), 可以支持对不同种类媒体网关进行控 制的需求。对于小数量大容量的 AG和 TG, 在网络转发模块使用静态配置可以 通过定向或者轮循方式一次通过 IP层面转发到固定的一到多个协议处理模 块,可以提高处理效率。对于大数量小容量的 IAD可以在 NTM不静态配置转发 关系, 而缺省通过定向或者轮循方式转发到协议分发模块 PDM, 可以减少 NTM 模块转发模块的逻辑复杂度, 提高 NTM的转发效率。总之, 本发明综合了基于 IP路由的传输层分发和基于媒体网关控制协议解析的应用层分发的优点并规 避了这两种分发方式的缺点。本发明可适用于网关控制的技术领域,本发明方 法同样适合存在类似应用的其他各领域。  The invention distributes the processing of the media gateway control protocol twice, distributes the network forwarding module based on the IP layer, and distributes the protocol forwarding module based on the application layer, and performs different processing on the forwarding mode (directional forwarding or round robin forwarding). ), can support the need to control different kinds of media gateways. For a small number of large-capacity AGs and TGs, the static configuration of the network forwarding module can be forwarded to a fixed one or more protocol processing modules through the IP plane in a directed or round-robin manner, which can improve processing efficiency. For a large number of small-capacity IADs, the NTM does not statically configure the forwarding relationship. Instead, the default forwarding or round-robin mode is forwarded to the protocol distribution module PDM, which can reduce the logic complexity of the NTM module forwarding module and improve the forwarding efficiency of the NTM. In summary, the present invention combines the advantages of IP layer-based transport layer distribution and application layer distribution based on media gateway control protocol parsing and circumvents the disadvantages of both distribution methods. The present invention is applicable to the technical field of gateway control, and the method of the present invention is equally applicable to other fields in which similar applications exist.

Claims

权利要求书 Claim
1、 一种基于媒体网关控制协议的呼叫代理实现方法, 其特征在于, 包括: 利用网络转发模块作为呼叫代理系统的对外唯一网关控制协议接口,根据媒体 网关的种类在所述网络转发模块进行相应的数据配置,所述网络转发模块将可 以査询到的 IP地址的媒体网关的协议流转发到对应的协议处理模块从而实现 基于 IP路由的传输层分发,将查询不到的 IP地址的媒体网关的协议流通过轮 循方式发送到协议分发模块,由所述协议分发模块完成基于媒体网关控制协议 解析的应用层分发, 从而将所述査询不到 IP地址的协议流转发到对应的协议 处理模块。 A call agent implementation method based on a media gateway control protocol, comprising: using a network forwarding module as an externally unique gateway control protocol interface of a call proxy system, and correspondingly performing the network forwarding module according to a type of the media gateway Data configuration, the network forwarding module forwards the protocol flow of the media gateway of the queried IP address to the corresponding protocol processing module to implement the transport layer distribution based on the IP route, and the media gateway that will not query the IP address The protocol stream is sent to the protocol distribution module in a round-robin manner, and the protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, thereby forwarding the protocol flow that cannot query the IP address to the corresponding protocol processing. Module.
2、 根据权利要求 1所述的方法, 其特征在于, 所述相应的数据配置包括: 对于小数量大容量的接入网关和中继网关, 作静态 IP地址数据配置; 对于大 数量小容量的综合接入设备, 不作配置。  2. The method according to claim 1, wherein the corresponding data configuration comprises: configuring a static IP address data for a small number of large-capacity access gateways and relay gateways; and for a large number of small capacity Integrated access device, no configuration.
3、 根据权利要求 1所述的方法, 其特征在于, 进一步包括如下步骤: 步骤一, 在呼叫代理系统各模块的物理实 #配置相应的数据, 在所述网络 转发模块配置媒体网关 IP地址和相应协议处理模块的对应关系, 在所述协议 分发模块配置媒体网关域名和相应协议处理模块的对应关系,在各协议处理模 块上配置协议相关数据和对应认证数据;  3. The method according to claim 1, further comprising the steps of: Step 1: configuring corresponding data in a physical entity of each module of the call proxy system, configuring a media gateway IP address in the network forwarding module, and Corresponding relationship between the corresponding protocol processing module, configuring a correspondence between the media gateway domain name and the corresponding protocol processing module in the protocol distribution module, and configuring protocol related data and corresponding authentication data on each protocol processing module;
步骤二, 呼叫代理系统外部的网关协议流进入所述网络转发模块; 步骤三, 所述网络转发模块根据所配置的媒体网关 IP地址和相应协议处 理模块的对应关系, 将可以査询到的 IP地址的媒体网关的协议流转发到对应 的协议处理模块;将不能査询到的媒体网关的协议流通过轮循方式发送到协议 分发模块;  Step 2: The gateway protocol flow outside the call proxy system enters the network forwarding module. Step 3: The network forwarding module may query the IP according to the configured media gateway IP address and the corresponding relationship of the corresponding protocol processing module. The protocol flow of the media gateway of the address is forwarded to the corresponding protocol processing module; the protocol flow of the media gateway that cannot be queried is sent to the protocol distribution module in a round robin manner;
步骤四, 所述协议分发模块完成基于媒体网关控制协议解析的应用层分 发, 将协议流转发到对应的协议处理模块上;  Step 4: The protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, and forwards the protocol flow to the corresponding protocol processing module.
步骤五, 协议处理模块对协议数据流进行处理;  Step 5: The protocol processing module processes the protocol data stream;
步骤六,将协议处理模块对协议数据流的响应直接发送到所述网络转发模 块。  In step 6, the response of the protocol processing module to the protocol data stream is directly sent to the network forwarding module.
4、 根据权利要求 3所述的方法, 其特征在于, 所述步骤四进一步包括: 协议分发模块对协议进行解析得到协议特殊标识,根据所配置的媒体网关域名 或者响应事务和相应协议处理模块的对应关系得到对应的协议处理模块,并将 协议流转发到所述对应的协议处理模块上。 The method according to claim 3, wherein the step 4 further comprises: the protocol distribution module parsing the protocol to obtain a protocol special identifier, according to the configured media gateway domain name Or responding to the correspondence between the transaction and the corresponding protocol processing module to obtain a corresponding protocol processing module, and forwarding the protocol flow to the corresponding protocol processing module.
5、 根据权利要求 3或 4所述的方法, 其特征在于, 所述步骤五之前还包 括协议处理模块对协议数据流进行认证的步骤。  The method according to claim 3 or 4, wherein the step 5 further comprises the step of the protocol processing module authenticating the protocol data stream.
6、 根据权利要求 5所述的方法, 其特征在于, 所述媒体网关支持动态主 机配置协议。  6. The method of claim 5, wherein the media gateway supports a dynamic host configuration protocol.
7、 根据权利要求 5所述的方法, 其特征在于, 所述步骤一中还包括网络 转发模块对转发方式和转发数据进行配置的步骤,以保证当对应的被转发模块 数发生变化后, 转发数据不丢失。  The method according to claim 5, wherein the step 1 further includes the step of configuring, by the network forwarding module, the forwarding mode and the forwarding data, to ensure that when the number of the corresponding forwarding modules changes, forwarding The data is not lost.
8、 根据权利要求 7所述的方法, 其特征在于, 所述被转发模块数发生变 化是指: 协议分发模块发生扩容、 故障导致数量增加或者减少。  The method according to claim 7, wherein the change in the number of the forwarded modules refers to: the protocol distribution module is expanded, and the number of faults is increased or decreased.
9、 根据权利要求 1所述的方法, 其特征在于, 还包括对事务号的特殊处 理步骤,包括:在呼叫代理系统到媒体网关的命令中对事务号加入协议处理模 块的标识信息,从而呼叫代理系统发送到媒体网关的最终事务号是协议处理模 块信息加上呼叫代理系统产生的实际事务号的组合,使得协议分发模块在收到 媒体网关到呼叫代理系统的响应的时候,能够在最终事务号中解析到实际处理 的协议处理模块信息并且将媒体网关控制协议消息转发到对应的协议处理模 块上。  9. The method according to claim 1, further comprising the special processing step of the transaction number, comprising: adding the transaction number to the identification information of the protocol processing module in the command of the call agent system to the media gateway, thereby calling The final transaction number sent by the proxy system to the media gateway is the combination of the protocol processing module information plus the actual transaction number generated by the call agent system, so that the protocol distribution module can be in the final transaction when receiving the response from the media gateway to the call agent system. The number resolves to the actual processed protocol processing module information and forwards the Media Gateway Control Protocol message to the corresponding protocol processing module.
10、 一种基于媒体网关控制协议的呼叫代理系统, 其特征在于, 包括: 网 络转发模块、 协议处理模块、 协议分发模块和数据模块;  A call agent system based on a media gateway control protocol, comprising: a network forwarding module, a protocol processing module, a protocol distribution module, and a data module;
所述数据模块用以实现对数据的加载、 管理、 存贮和同步的功能; 利用所述网络转发模块作为呼叫代理系统的对外唯一网关控制协议接口, 根据媒体网关的种类在所述网络转发模块进行相应的数据配置,所述网络转发 模块将可以査询到的 IP地址的媒体网关的协议流转发到对应的协议处理模块 从而实现基于 IP路由的传输层分发,将查询不到的 IP地址的媒体网关的协议 流通过轮循方式发送到协议分发模块,由所述协议分发模块完成基于媒体网关 控制协议解析的应用层分发, 从而将所述查询不到 IP地址的协议流转发到对 应的协议处理模块。  The data module is configured to implement a function of loading, managing, storing, and synchronizing data; using the network forwarding module as an externally unique gateway control protocol interface of the call proxy system, and the network forwarding module according to the type of the media gateway Performing corresponding data configuration, the network forwarding module forwards the protocol flow of the media gateway of the queried IP address to the corresponding protocol processing module to implement the transport layer distribution based on the IP route, and the IP address that cannot be queried The protocol stream of the media gateway is sent to the protocol distribution module in a round-robin manner, and the protocol distribution module completes the application layer distribution based on the media gateway control protocol parsing, thereby forwarding the protocol flow that cannot query the IP address to the corresponding protocol. Processing module.
11、 根据权利要求 10所述的呼叫代理系统, 其特征在于, 还包括: 认证 模块, 用以实现对媒体网关的认证; 所述网络转发模块与所述媒体网关、 数据模块连 所述协议分发模块和 网络转发模块、协议处理模块、认证模块、数据模块连接; 所述认证模块和所 述协议处理模块、数据模块连接; 所述数据模块和所有模块连接, 并分配在所 有模块的物理实体上。 The call agent system according to claim 10, further comprising: an authentication module, configured to implement authentication of the media gateway; The network forwarding module is connected to the media gateway and the data module, and the protocol distribution module and the network forwarding module, the protocol processing module, the authentication module, and the data module are connected; the authentication module is connected to the protocol processing module and the data module; The data module is connected to all modules and is distributed on the physical entities of all modules.
PCT/CN2006/000458 2006-03-22 2006-03-22 A method for implementing call agent based on the media gateway control protocol and a system thereof WO2007107041A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2006/000458 WO2007107041A1 (en) 2006-03-22 2006-03-22 A method for implementing call agent based on the media gateway control protocol and a system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2006/000458 WO2007107041A1 (en) 2006-03-22 2006-03-22 A method for implementing call agent based on the media gateway control protocol and a system thereof

Publications (1)

Publication Number Publication Date
WO2007107041A1 true WO2007107041A1 (en) 2007-09-27

Family

ID=38522002

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2006/000458 WO2007107041A1 (en) 2006-03-22 2006-03-22 A method for implementing call agent based on the media gateway control protocol and a system thereof

Country Status (1)

Country Link
WO (1) WO2007107041A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977192A (en) * 2010-10-21 2011-02-16 大连理工大学 Family medical insurance gateway device and protocol conversion method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494289A (en) * 2002-10-31 2004-05-05 深圳市中兴通讯股份有限公司 Method of implementing business transmission control in medium gateway control protocol
JP2004201054A (en) * 2002-12-19 2004-07-15 Oki Electric Ind Co Ltd Apparatus and method for communication control
CN1567914A (en) * 2003-07-07 2005-01-19 中兴通讯股份有限公司 System and method for implementing transaction identifier assignment of media gateway control protocol
US20060045068A1 (en) * 2004-08-31 2006-03-02 Innomedia Pte Ltd. Firewall proxy system and method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1494289A (en) * 2002-10-31 2004-05-05 深圳市中兴通讯股份有限公司 Method of implementing business transmission control in medium gateway control protocol
JP2004201054A (en) * 2002-12-19 2004-07-15 Oki Electric Ind Co Ltd Apparatus and method for communication control
CN1567914A (en) * 2003-07-07 2005-01-19 中兴通讯股份有限公司 System and method for implementing transaction identifier assignment of media gateway control protocol
US20060045068A1 (en) * 2004-08-31 2006-03-02 Innomedia Pte Ltd. Firewall proxy system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101977192A (en) * 2010-10-21 2011-02-16 大连理工大学 Family medical insurance gateway device and protocol conversion method

Similar Documents

Publication Publication Date Title
JP6908334B2 (en) Internet of Things Communication Methods, Internet of Things Devices, and Internet of Things Systems
JP4897884B2 (en) ZIGBEE / IP gateway
US8499083B2 (en) Relay device and communication system
EP2893719B1 (en) Method and system for communication between machine to machine (m2m) service provider networks
CN107404512B (en) Resource subscription method, resource subscription device and resource subscription system
CN113301166B (en) Service calling method and device, storage medium and electronic device
WO2013091382A1 (en) Method and system for realizing compatibility of electrical appliance, and universal peripheral access gateway
US20060209830A1 (en) Packet processing system including control device and packet forwarding device
WO2012051872A1 (en) Method for expanding layer 2 network and expanded layer 2 network
EP2640002B1 (en) Method, apparatus and system for configuring device
JP6511624B2 (en) Multimedia sharing method, registration method, server and proxy server
WO2011032447A1 (en) Method, system and communication terminal for implementing inter-communication between new network and internet
CN101911593B (en) Network location service methods, devices and systems
WO2011032462A1 (en) Method for data transmission and receiving, system and router thereof
JP2004208101A (en) Gateway and communication method therefor
CN108123912B (en) Micro service system supporting P2P
WO2015003420A1 (en) Resource deployment method for cloud computing environment
WO2013185696A2 (en) Data processing method and device
WO2007107041A1 (en) A method for implementing call agent based on the media gateway control protocol and a system thereof
KR100567824B1 (en) Network connecting devices, system and method for avoiding the duplicate proxy function
WO2007019757A1 (en) A communication system and method based on forwarding and control element separation
WO2007107042A1 (en) A media gateway controller based on gateway control protocol and a realizing method thereof
JP6002642B2 (en) Communication node, network system, and device control method
WO2011026355A1 (en) Method for a node accessing a home agent, home agent cluster system and service router
WO2017198088A1 (en) Resource subscription method, resource subscription device, and resource subscription system

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: 06722110

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: 06722110

Country of ref document: EP

Kind code of ref document: A1