WO2008141569A1 - Method, device and network system for transmitting messages - Google Patents
Method, device and network system for transmitting messages Download PDFInfo
- Publication number
- WO2008141569A1 WO2008141569A1 PCT/CN2008/070969 CN2008070969W WO2008141569A1 WO 2008141569 A1 WO2008141569 A1 WO 2008141569A1 CN 2008070969 W CN2008070969 W CN 2008070969W WO 2008141569 A1 WO2008141569 A1 WO 2008141569A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- message
- packet
- terminal
- source address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/10—Architectures or entities
- H04L65/102—Gateways
- H04L65/1023—Media gateways
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a network system for forwarding a message. Background technique
- Media gateway controllers and media gateways are two key components in a packet network.
- the media gateway controller is responsible for the call control function, and the media gateway is responsible for the service bearer function, which realizes the separation of the call control plane and the service bearer plane, thereby fully sharing network resources and simplifying equipment upgrade and service expansion.
- Media Gateway Control Protocol developed by the International Telecommunication Union H.248 is the main protocol for communication between media gateways and media gateway controllers.
- the connection model defined by H.248 includes a termination and a context.
- Various resources on the media gateway are abstractly represented as terminals, and the terminal is further divided into a physical terminal and an temporary (Ephemeral) terminal.
- the former represents some A semi-permanent physical entity, such as a time division multiplexed channel, etc., which represents some temporary applications, public resources released after use, such as real-time transport protocol flows.
- the combination between terminals is abstracted as a context ( Context ).
- FIG. 1 is a topology diagram of forwarding multicast packets in the prior art.
- the multicast message here refers to Internet Protocol (IP) multicast;
- the media gateway includes the terminal 101 and the terminal 102, and the terminal 101 and the terminal 102 belong to the context Context 1 (the context ID number is 1);
- the device 111, the user equipment 112, the terminal device 113, and the terminal 101 of the media gateway belong to the IP domain I, and the multicast source A, the multicast source B, and the terminal 102 of the media gateway belong to the IP domain II.
- IP Internet Protocol
- the process of processing a multicast packet by the media gateway is as follows:
- the media gateway establishes a context Context 1 according to the control information sent by the media gateway controller, and establishes a terminal 101 and a terminal 102 belonging to the context Context 1; and the terminal 102 of the media gateway
- the multicast packet is delivered to the terminal 101 of the same context 1;
- the terminal 101 of the media gateway sends the multicast message to the IP domain I.
- the source address of the multicast message sent by the terminal 101 is the IP address of the terminal 101 itself.
- the terminal of the media gateway sends an IP packet with its own IP address as the source address, and when the information source (multicast source) has multiple If the information source is forwarded through the same terminal of the media gateway, the multicast message is not recognized when receiving the multicast message; if the information source is forwarded through multiple terminals of the media gateway It may increase the difficulty of the media gateway managing the IP address of the terminal, which complicates the network topology.
- the embodiment of the invention provides a method, a device and a network system for forwarding a message, so that the source address of the forwarded message is the relevant address of the received message, so that the information source can be identified.
- the embodiment of the invention provides a method for forwarding a message, including:
- the received packet After receiving the packet to be forwarded, the received packet is processed according to the preset address setting attribute, and the packet to be sent is generated;
- the relevant address of the received message is a source address of the received message or a mapped address of a source address of the received message.
- a source address control information generating unit configured to generate control information indicating a set source address
- a source address control information sending unit configured to send, to the media gateway, control information of the set source address generated by the source address control information generating unit
- the control information is information indicating that the media gateway sets the relevant address of the received message to the source address of the message to be sent;
- the relevant address of the received message is the source address of the received message or the mapped address of the source address of the received message.
- a source address control information receiving unit configured to receive control information of a set source address sent by the media gateway controller, and set an address setting attribute according to the control information of the set source address
- a message receiving unit configured to receive a message to be forwarded
- a message processing unit configured to process, according to a preset address setting attribute, a message received by the message receiving unit, to generate a message to be sent, where a source address of the to-be-sent message is the message receiving The relevant address of the message received by the unit;
- a message sending unit configured to send a to-be-sent message generated by the message processing unit, where the related address of the received message is a source address of the received message or a mapped address of the source address of the received message.
- the embodiment of the invention further provides a network system, including:
- a media gateway controller configured to generate control information indicating a set source address, and send the control information to the media gateway;
- a media gateway configured to receive control information sent by the media gateway controller, set an address setting attribute according to the control information, process the received message according to the address setting attribute, to generate a packet to be sent, where the to-be-sent The source address of the packet is the relevant address of the received packet, and the generated to-be-sent packet is sent;
- the relevant address of the received message is a source address of the received message or a mapped address of the source address of the received message.
- the received packet is processed according to the preset address setting attribute to generate a packet to be sent, and the source address of the to-be-sent packet is the relevant address of the received packet, such as The source address of the received packet or the mapped address of the source address of the received packet.
- the source address of the media gateway terminal is not the address of the terminal itself, but the related address of the received message, and the packet sent by the media gateway terminal is related to the source address of the information source, so that the media gateway terminal address can be solved.
- the problem that the terminal device that receives the packet cannot identify the information source can prevent the media gateway from creating different terminals for different information sources, resulting in a complicated structure.
- the network topology can be simplified and the performance of the media gateway can be optimized.
- FIG. 1 is a topological diagram of forwarding a multicast packet in the prior art
- FIG. 2 is a flowchart of a method for forwarding a message according to an embodiment of the present invention
- FIG. 3 is a schematic diagram of a network system according to an embodiment of the present invention. detailed description In order to make the principles, features and advantages of the present invention more apparent, the following description will be described in conjunction with the specific embodiments.
- the method for forwarding a packet in the embodiment of the present invention includes the following steps: Step 201: A media gateway receives a packet.
- Step 202 The attribute processing message is set according to the preset address setting attribute to generate a message to be sent, and the source address of the to-be-sent message is the relevant address of the received message.
- Step 203 Send a message to be sent.
- the relevant address of the received packet is the source address of the received packet and the mapped address of the source address of the received packet. It can be seen that the source address of the packet sent by the media gateway can be the source address of the received message or the mapped address of the source address of the received message.
- the media gateway is a gateway between the media, and is used to forward the media data according to the control information sent by the media gateway controller.
- the IP packet is a piece of media data.
- the terminal of the media gateway/media gateway receives the IP packet. After processing, the terminal of the media gateway/media gateway sends the processed IP packet.
- the source address of the IP packet sent by the media gateway is the source address of the received IP packet.
- the media gateway Before the media gateway forwards the packet, the media gateway receives the control information sent by the media gateway controller, establishes a context by using the control information, and creates (Creat) the first terminal and the second terminal, so that the first terminal and the second terminal belong to The same context.
- the terminal and context are concepts defined by H.248, where context is the connection between terminals, which describes the topology relationship between terminals and the parameters of media mixing/exchange.
- a context consists of a set of terminals, and a context can contain multiple terminals. Depending on the service characteristics of the media gateway, the maximum number of terminals that can be included in the context is different.
- One terminal belongs to a context.
- the media gateway can establish a root terminal, and the root terminal represents the entire media gateway.
- the characteristics of the terminal are represented by attributes, events, signals, and statistics.
- the concept of a package is introduced in H.248, and various characteristic parameters of the terminal are combined into a packet.
- this embodiment extends a package named "IP Routing Packet 1" (IP route Package 1) ", the extension packet is used by the media gateway controller to instruct the media gateway terminal to set the source address of the IP packet, so that the source address of the IP packet sent by the terminal is received. Source address.
- IP route Package 1 IP Routing Packet 1
- IP routing package 1 IP route Package 1
- the media gateway controller instructs the media gateway to set the iproutel/sak attribute on the second terminal.
- the iproutel/sak attribute is set to "on” (open) (open)
- the first terminal transmits the packet to the second terminal that belongs to the same context; the second terminal is first according to the above attribute.
- the source address of the IP packet received by the terminal is set to the source address of the IP packet to be sent. If the value is "off", the media gateway does not process the attribute.
- the source address is the IP address of the second terminal itself.
- the attribute can be defined in the descriptor terminationstate or descriptor. On localcontrol, you can also define settings on other descriptors.
- the information such as the extended package name, the package ID, and the attribute name is only a mark, and the equivalent replacement of the information belongs to the protection scope of the present invention; the manner of setting the attribute may also be replaced by an event or a signal parameter. .
- Another extension package which is to add another address setting attribute based on the above expansion package, specifically: Add another attribute of "ipkin” "sakin”, the value is an enumerated type, and the value is "on” “(0x0001) or "off” (0x0002), the default value is "off”.
- the media gateway controller instructs the media gateway to set the iproutel/sakin attribute on the first terminal.
- the iprouter/sakin attribute is set to "on”
- the first terminal receives the IP packet, and the first terminal sets the source address of the IP packet received by the first terminal as the source of the IP packet to be sent according to the foregoing attribute. address.
- the media gateway does not process the attribute.
- the terminal sends the IP address the source address is the local IP address of the second terminal itself.
- the media gateway controller instructs the media gateway to set the address setting attribute of the extension package to the first terminal or the second terminal through the extension package, so that the source address of the IP packet to be sent is received. Source address of the IP packet. Understandably, the media gateway controller The media gateway may also be configured to set the extended packet attribute to the context to set the source address of the IP packet to be sent to the source address of the received IP packet. In addition, the media gateway controller may further instruct the media gateway to add the extended packet.
- the attribute is set to any combination of the three objects of the first terminal, the second terminal, and the context.
- the media gateway receives the control information of the source address sent by the media gateway controller, and sets the iproutel/sak attribute on the second terminal.
- the process of forwarding the packet by the media gateway is as follows:
- the first terminal of the media gateway When receiving the IP packet, the first terminal of the media gateway transmits the packet to the second terminal, and the second terminal processes the packet according to the preset address setting attribute to generate the IP packet to be sent, where to be sent.
- the source address of the IP packet is the source address of the received IP packet.
- the media gateway sets the iproutel/sak attribute to "on" to the second terminal.
- the first terminal receives the IP packet whose source address is 192.168.1.100.
- the media gateway forwards the IP packet through the second terminal, the first terminal does not modify the IP packet when the first terminal receives the IP packet.
- the source address that is, the source address is still "192.168.1.100" when the second terminal forwards the IP packet.
- the media gateway may be transcoded before forwarding the IP packet.
- the source address of the IP packet sent by the media gateway.
- the receiving terminal device can identify the actual information source by using the source address of the IP packet, and can set a source address list for allowing the IP packet to be received in advance to filter unnecessary addresses. IP packet.
- the media gateway controller may instruct the media gateway to set which terminals of the context apply the method of the present invention by extending the attributes of the context, and set the source address to the source address when the IP packet enters the context when sending the IP packet to the context.
- the media gateway controller may instruct the media gateway to receive and send IP packets through the level of the terminal itself created; or may instruct the media gateway to receive and send IP packets through the root (ROOT) terminal level, Set the property of the source address to the root terminal.
- the media gateway sets the attribute of setting the source address to the root terminal; receives the IP report.
- the terminal sets the source address of the received IP packet as the source address of the IP packet to be sent according to the attribute.
- the source address of the IP packet sent by the media gateway is the mapping address of the source address of the received IP packet.
- FIG. 3 is a flowchart of a method for forwarding a message according to Embodiment 2 of the present invention.
- the media gateway Before the media gateway forwards the packet, the media gateway receives the control information sent by the media gateway controller.
- the information is used to establish a context, and the first terminal and the second terminal are created, so that the first terminal and the second terminal belong to the same context.
- this embodiment extends a packet named "IP route Package 2", which is used by the media gateway controller to instruct the media gateway terminal to send the IP address of the IP packet.
- the setting method is such that the source address of the IP packet sent by the terminal is the mapping address of the source address of the received IP packet.
- the contents of the extension package are as follows:
- the media gateway controller instructs the media gateway to set the attribute on the second terminal.
- the first terminal transmits the packet to the second terminal, and the second terminal determines to send the IP packet according to the address mapping relationship.
- the source address of the text For example, the media gateway sets the string list of the iproute2/mp attribute to "10.11.0.1: 202.1.0.11, and "10.11.0.2: 202.1.0.12,” to the second terminal, indicating that the IP address received by the first terminal is
- the source address of the text is "10.11.0.1”
- its mapping address is "202.1.0.11".
- the second terminal sets "202.1.0.1 ⁇ , the source address of the IP packet to be sent according to the above attributes; if the first terminal receives The source address of the IP packet is "10.11.0.2", and the mapping address is "202.1.0.12".
- the second terminal sets "202.1.0.12” as the source address of the IP packet to be sent according to the above attributes; If the source of the received message is not included in the list of strings, it will not be processed.
- the above list of strings can be saved in the form of a mapping table on the media gateway.
- the attribute can be defined in the descriptor terminationstate or descriptor. On localcontrol, you can also define settings on other descriptors.
- the following describes another extension package, which adds another address setting attribute to the above expansion package, specifically: Define an attribute: Named "mpin", the value is a list of strings, each string Represents an address mapping relationship.
- the media gateway controller instructs the media gateway to set the attribute on the first terminal. After receiving the IP packet, the first terminal determines the source address of the externally sent IP packet according to the address mapping relationship.
- the media gateway sets the iproute2/mpin attribute to "10.11.0.2: 202.1.0.22, which is set in the first terminal, indicating that the source address of the IP packet received by the first terminal is "10.11.0.2", and its mapping address is "" 202.1.0.22", the first terminal sets "202.1.0.22" as the source address of the outgoing IP packet according to the above attributes.
- the media gateway controller instructs the media gateway to set the extended package attribute to the first terminal or the second terminal through the extension package, so that the source address of the IP packet to be sent is the received IP packet.
- the mapped address of the source address It is to be understood that the media gateway controller may also instruct the media gateway to set the extended packet attribute to the context, so that the source address of the IP packet to be sent is the mapped address of the source address of the received IP packet;
- the gateway controller may also instruct the media gateway to set the extended package attribute to any combination of the first object, the second terminal, and the context.
- the media gateway receives the control information of the source address sent by the media gateway controller, and sets the iproute2/mp attribute on the second terminal.
- the process of forwarding the message by the media gateway is as follows:
- the first terminal of the media gateway receives the IP packet and sends it to the second terminal.
- the second terminal sets the attribute processing packet according to the preset address setting, and generates the IP packet to be sent.
- the source address of the IP packet to be sent The mapped address of the source address of the received IP packet.
- the media gateway sets the string list of iproute2/mp attributes " 10.11.0.1: 202.1.0.11” and " 10.11.0.2: 202.1.0.12" to the second terminal.
- the media gateway queries the second terminal to query the string list of the address setting attribute, according to the query result.
- the source address of the IP packet sent externally is set to "202 ⁇ 0.11".
- the second terminal of the media gateway sends an IP packet to be sent.
- the source address of the IP packet sent by the media gateway is the mapped address of the source IP address of the received IP packet. You can set the source address list for receiving IP packets in advance to filter unnecessary IP packets.
- an IP packet received by multiple terminals may be sent out through a terminal that belongs to the same context, and/or an IP packet received by a terminal may be sent through multiple contexts in the same context.
- the terminal sends the IP packet to the outside of the context, the terminal needs to keep the source address of the IP packet when it enters the context.
- the implementation principle is the same as that of this embodiment, and is not mentioned here.
- the media gateway controller may instruct the media gateway to set which terminals of the context apply the method of the present invention by extending the attributes of the context, and when the IP packet is sent out of the context, the source address is set to be an IP address.
- the mapped address of the source address may be
- the media gateway controller may instruct the media gateway to receive and send IP packets through the terminal level created by itself; or may instruct the media gateway to receive and send IP packets through the root terminal. In the latter case, the media gateway sets the attribute of the source address to the root terminal.
- the root terminal sets the mapping address of the source address of the received IP packet to be sent according to the attribute. IP ⁇ ⁇ The source address of the text.
- FIG. 3 is a schematic diagram of a network system in an embodiment of the present invention.
- the network system provided in this embodiment includes:
- a media gateway controller 420 configured to generate control information for setting a source address, and send control information for setting a source address;
- the media gateway 410 is configured to receive control information sent by the media gateway controller 420, set an address setting attribute according to the control information of the set source address, and receive the message, and process the received message according to the address setting attribute to generate
- the source address of the packet to be sent is the relevant address of the received packet, and the generated packet to be sent is sent.
- the media gateway controller 420 may include: a source address control information generating unit 421 and a source address control information transmitting unit 422.
- the source address control information generating unit 421 is configured to generate control information for setting a source address.
- the source address control information sending unit 422 is configured to send, to the media gateway 410, control information of the set source address generated by the source address control information generating unit 421.
- the media gateway 410 may include: a source address control information receiving unit 414, a message receiving unit 411, a text sending unit 413, and a text processing unit 412.
- the source address control information receiving unit 414 is configured to receive control information of the set source address sent by the media gateway controller 420, and set an address setting attribute according to the control information of the set source address.
- the message receiving unit 411 is configured to receive the message.
- the message processing unit 412 may be configured on the message receiving unit 411 or the message sending unit 413, and configured to process the message received by the message receiving unit 411 according to the address setting attribute to generate a message to be sent.
- the source address of the sent message is the relevant address of the message received by the message receiving unit 411.
- the message sending unit 413 is configured to send the to-be-sent message generated by the message processing unit 412.
- the control information of the source address is specifically configured to instruct the media gateway 410 to set the relevant address of the received packet as the control information of the source address of the packet to be sent; the relevant address of the received packet is, and the received packet is received.
- the source address itself or the mapped address of the source address of the received message.
- the working principle of the system is as follows:
- the source address control information generating unit 421 of the media gateway controller 420 generates control information for setting the source address; the source address control information transmitting unit 422 transmits the settings generated by the source address control information generating unit 421 to the media gateway 410.
- the source address control information receiving unit 414 of the media gateway 410 receives the control information of the set source address sent by the media gateway controller 420, and sets the address setting attribute according to the control information of the set source address.
- the message receiving unit 411 receives the message.
- the message processing unit 412 processes the message received by the message receiving unit 411 according to the address setting attribute to generate a message to be sent, and the source address of the to-be-sent message is the relevant address of the message received by the message receiving unit 411. .
- the message transmitting unit 413 transmits the to-be-sent document generated by the text processing unit 412.
- the message processing unit 412 can be disposed on the message receiving unit 411 and/or the message transmitting unit 413.
- the media gateway receives the packet; the attribute processing packet is configured according to the preset address setting, to generate the packet to be sent, and the source address of the to-be-sent packet is received.
- the relevant address of the packet; the relevant address of the received packet is the source address of the received packet or the mapped address of the source address of the received packet.
- the source address of the packet sent by the media gateway terminal is not the address of the terminal itself, but the relevant address of the received packet, and the media network.
- the packet sent by the terminal is related to the source address of the information source, so that the problem that the media gateway terminal address may cause the terminal device that receives the packet to fail to identify the information source may be solved, and the media gateway may be prevented from creating different terminals for different information sources.
- the network topology structure can be simplified, and the performance of the media gateway can be optimized.
- the communication between the media gateway controller and the media gateway is based on H.248, and the packet processed by the media gateway is based on the IP protocol, and the invention is not excluded based on other protocols.
- each unit or step in the above embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed among multiple computing devices.
- they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or A plurality of units or steps of them are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the body gateway and the network system are described in detail, and the principles and implementation manners of the present invention are explained in the specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention; The present invention is not limited by the scope of the present invention, and the details of the present invention are not limited by the scope of the present invention.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Multimedia (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
转发报文的方法、 装置及网络系统 本申请要求于 2007 年 05 月 18 日提交中国专利局、 申请号为 200710108512.X, 发明名称为"转发 4艮文的方法和媒体网关控制器与媒体网 关及网络系统"的中国专利申请的优先权, 其全部内容通过引用结合在本申 请中。 技术领域 Method, device and network system for forwarding messages This application claims to be submitted to the Chinese Patent Office on May 18, 2007, with the application number of 200710108512.X, and the invention name is "for forwarding 4 艮 text method and media gateway controller and media gateway The priority of the Chinese Patent Application, the entire disclosure of which is incorporated herein by reference. Technical field
本发明涉及通信技术领域, 尤其涉及转发报文的方法、 装置及网络系 统。 背景技术 The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a network system for forwarding a message. Background technique
媒体网关控制器和媒体网关是分组网络中的两个关键构件。 媒体网关 控制器负责呼叫控制功能, 媒体网关负责业务承载功能, 实现呼叫控制平 面和业务承载平面的分离, 从而可以充分共享网络资源, 简化设备升级和 业务扩展。 国际电信联盟制定的媒体网关控制协议 H.248是媒体网关和媒体 网关控制器之间通信的主要协议。 H.248定义的连接模型包括终端 (termination)和上下文 (context) , 媒体网关上的各种资源被抽象表示为终端, 终端又分为物理(Physical )终端和临时(Ephemeral )终端, 前者代表一些 具有半永久性的物理实体, 例如时分复用通道等, 后者代表一些临时申请, 使用后释放的公共资源, 例如实时传输协议流等。 终端之间的组合被抽象 表示为上下文 ( Context ) 。 Media gateway controllers and media gateways are two key components in a packet network. The media gateway controller is responsible for the call control function, and the media gateway is responsible for the service bearer function, which realizes the separation of the call control plane and the service bearer plane, thereby fully sharing network resources and simplifying equipment upgrade and service expansion. Media Gateway Control Protocol developed by the International Telecommunication Union H.248 is the main protocol for communication between media gateways and media gateway controllers. The connection model defined by H.248 includes a termination and a context. Various resources on the media gateway are abstractly represented as terminals, and the terminal is further divided into a physical terminal and an temporary (Ephemeral) terminal. The former represents some A semi-permanent physical entity, such as a time division multiplexed channel, etc., which represents some temporary applications, public resources released after use, such as real-time transport protocol flows. The combination between terminals is abstracted as a context ( Context ).
请参考图 1 , 为现有技术转发组播报文的拓朴图。 其中, 这里的组播报 文指因特网协议( Internet Protocol , IP )组播 4艮文; 媒体网关包括终端 101 和终端 102 , 终端 101和终端 102属于上下文 Context 1 (上下文 ID号为 1 ) ; 用户设备 111、用户设备 112、终端设备 113和媒体网关的终端 101属于 IP域 I , 组播源 A、 组播源 B和媒体网关的终端 102属于 IP域 II。 现有技术中, 媒体网 关处理组播报文的过程如下: 媒体网关根据媒体网关控制器发送的控制信 息, 建立上下文 Context 1 , 建立属于上下文 Context 1的终端 101和终端 102; 媒体网关的终端 102接收到组播源 1发送的组播报文后, 将组播报文传递到 同属上下文 1的终端 101 ; 媒体网关的终端 101向 IP域 I发送该组播 4艮文, 终 端 101发送的组播 ^艮文的源地址为终端 101本身的 IP地址。 Please refer to FIG. 1 , which is a topology diagram of forwarding multicast packets in the prior art. The multicast message here refers to Internet Protocol (IP) multicast; the media gateway includes the terminal 101 and the terminal 102, and the terminal 101 and the terminal 102 belong to the context Context 1 (the context ID number is 1); The device 111, the user equipment 112, the terminal device 113, and the terminal 101 of the media gateway belong to the IP domain I, and the multicast source A, the multicast source B, and the terminal 102 of the media gateway belong to the IP domain II. In the prior art, the process of processing a multicast packet by the media gateway is as follows: The media gateway establishes a context Context 1 according to the control information sent by the media gateway controller, and establishes a terminal 101 and a terminal 102 belonging to the context Context 1; and the terminal 102 of the media gateway After receiving the multicast packet sent by the multicast source 1, the multicast packet is delivered to the terminal 101 of the same context 1; the terminal 101 of the media gateway sends the multicast message to the IP domain I. The source address of the multicast message sent by the terminal 101 is the IP address of the terminal 101 itself.
在实际操作过程中, 发明人发现现有技术中至少存在如下问题: 现有 技术中,媒体网关的终端以本身 IP地址作为源地址发送 IP报文,当信息源 (组 播源)有多个的时候, 如果这些信息源都通过媒体网关的同一个终端转发, 接收组播报文的时候, 无法识别出本身所需要的组播报文; 如果这些信息 源通过媒体网关的多个终端进行转发,可能会增加媒体网关管理终端 IP地址 的难度, 使得网络拓朴结构变得复杂。 发明内容 In the actual operation, the inventor has found that at least the following problems exist in the prior art: In the prior art, the terminal of the media gateway sends an IP packet with its own IP address as the source address, and when the information source (multicast source) has multiple If the information source is forwarded through the same terminal of the media gateway, the multicast message is not recognized when receiving the multicast message; if the information source is forwarded through multiple terminals of the media gateway It may increase the difficulty of the media gateway managing the IP address of the terminal, which complicates the network topology. Summary of the invention
本发明实施例提供转发报文的方法、 装置及网络系统, 可使所转发报 文的源地址为接收到报文的相关地址, 从而可识别信息源。 The embodiment of the invention provides a method, a device and a network system for forwarding a message, so that the source address of the forwarded message is the relevant address of the received message, so that the information source can be identified.
本发明实施例提供一种转发报文的方法, 包括: The embodiment of the invention provides a method for forwarding a message, including:
接收需转发的报文后, 根据预先设置的地址设置属性处理所述接收的 报文, 并产生待发送的报文; After receiving the packet to be forwarded, the received packet is processed according to the preset address setting attribute, and the packet to be sent is generated;
将所述待发送报文的源地址设置为所述接收的报文的相关地址; 发送所述待发送的报文; And setting a source address of the to-be-sent packet to a related address of the received packet; and sending the to-be-sent packet;
所述接收的报文的相关地址为所述接收的报文的源地址或所述接收的 才艮文的源地址的映射地址。 The relevant address of the received message is a source address of the received message or a mapped address of a source address of the received message.
本发明实施例提供的一种媒体网关控制器, 包括: A media gateway controller provided by an embodiment of the present invention includes:
源地址控制信息产生单元, 用于产生指示设置源地址的控制信息; 源地址控制信息发送单元, 用于向媒体网关发送所述源地址控制信息 产生单元产生的设置源地址的控制信息; a source address control information generating unit, configured to generate control information indicating a set source address, and a source address control information sending unit, configured to send, to the media gateway, control information of the set source address generated by the source address control information generating unit;
所述控制信息为指示所述媒体网关将接收到报文的相关地址设置为待 发送 "^文的源地址的信息; The control information is information indicating that the media gateway sets the relevant address of the received message to the source address of the message to be sent;
所述接收到报文的相关地址为所接收报文的源地址或所接收报文的源 地址的映射地址。 The relevant address of the received message is the source address of the received message or the mapped address of the source address of the received message.
本发明实施例提供的一种媒体网关, 包括: A media gateway provided by an embodiment of the present invention includes:
源地址控制信息接收单元, 用于接收媒体网关控制器发送的设置源地 址的控制信息, 根据所述设置源地址的控制信息设置地址设置属性; 报文接收单元, 用于接收需转发的报文; a source address control information receiving unit, configured to receive control information of a set source address sent by the media gateway controller, and set an address setting attribute according to the control information of the set source address; a message receiving unit, configured to receive a message to be forwarded;
报文处理单元, 用于根据预先设置的地址设置属性处理所述报文接收 单元接收到的报文, 以产生待发送的报文, 所述待发送报文的源地址为所 述报文接收单元接收到的报文的相关地址; a message processing unit, configured to process, according to a preset address setting attribute, a message received by the message receiving unit, to generate a message to be sent, where a source address of the to-be-sent message is the message receiving The relevant address of the message received by the unit;
报文发送单元, 用于发送所述报文处理单元产生的待发送报文; 所述接收到报文的相关地址为接收到报文的源地址或接收到报文的源 地址的映射地址。 And a message sending unit, configured to send a to-be-sent message generated by the message processing unit, where the related address of the received message is a source address of the received message or a mapped address of the source address of the received message.
本发明实施例还提供一种网络系统, 包括: The embodiment of the invention further provides a network system, including:
媒体网关控制器, 用于产生指示设置源地址的控制信息, 发送所述控 制信息给媒体网关; a media gateway controller, configured to generate control information indicating a set source address, and send the control information to the media gateway;
媒体网关, 用于接收所述媒体网关控制器发送的控制信息, 根据控制 信息设置地址设置属性; 根据所述地址设置属性处理所接收的报文, 以产 生待发送的报文, 所述待发送报文的源地址为所述接收到报文的相关地址, 发送所述产生的待发送报文; a media gateway, configured to receive control information sent by the media gateway controller, set an address setting attribute according to the control information, process the received message according to the address setting attribute, to generate a packet to be sent, where the to-be-sent The source address of the packet is the relevant address of the received packet, and the generated to-be-sent packet is sent;
所述接收到报文的相关地址为接收到报文的源地址或接收到报文的源 地址的映射地址。 The relevant address of the received message is a source address of the received message or a mapped address of the source address of the received message.
本发明实施例提供的技术方案中, 根据预先设置的地址设置属性处理 所接收到的报文, 以产生待发送的报文, 待发送报文的源地址为接收到报 文的相关地址, 如接收到报文的源地址或接收到报文的源地址的映射地址。 由于媒体网关终端发送报文的源地址不是终端本身的地址, 而是与接收到 报文的相关地址, 媒体网关终端发送的报文与信息源的源地址相关, 从而 可以解决媒体网关终端地址单一而导致接收报文的终端设备无法识别信息 源的问题, 可以避免媒体网关为对应不同信息源创建不同终端导致结构复 杂的情况; 根据本发明可以简化网络拓朴结构, 优化媒体网关的性能。 附图说明 In the technical solution provided by the embodiment of the present invention, the received packet is processed according to the preset address setting attribute to generate a packet to be sent, and the source address of the to-be-sent packet is the relevant address of the received packet, such as The source address of the received packet or the mapped address of the source address of the received packet. The source address of the media gateway terminal is not the address of the terminal itself, but the related address of the received message, and the packet sent by the media gateway terminal is related to the source address of the information source, so that the media gateway terminal address can be solved. The problem that the terminal device that receives the packet cannot identify the information source can prevent the media gateway from creating different terminals for different information sources, resulting in a complicated structure. According to the present invention, the network topology can be simplified and the performance of the media gateway can be optimized. DRAWINGS
图 1为现有技术转发组播报文的拓朴图; FIG. 1 is a topological diagram of forwarding a multicast packet in the prior art;
图 2为本发明实施例中提供的转发报文方法的流程图; 2 is a flowchart of a method for forwarding a message according to an embodiment of the present invention;
图 3为本发明实施例中的网络系统示意图。 具体实施方式 为使本发明的原理、 特性和优点更加清楚, 下面结合具体实施例进行 描述。 FIG. 3 is a schematic diagram of a network system according to an embodiment of the present invention. detailed description In order to make the principles, features and advantages of the present invention more apparent, the following description will be described in conjunction with the specific embodiments.
实施例一 Embodiment 1
如图 2所示, 本发明实施例的转发报文方法, 包括如下步骤: 步骤 201.媒体网关收到报文。 As shown in FIG. 2, the method for forwarding a packet in the embodiment of the present invention includes the following steps: Step 201: A media gateway receives a packet.
步骤 202.根据预先设置的地址设置属性处理报文, 以产生待发送的报 文, 待发送报文的源地址为接收到报文的相关地址。 Step 202: The attribute processing message is set according to the preset address setting attribute to generate a message to be sent, and the source address of the to-be-sent message is the relevant address of the received message.
步骤 203.发送待发送的报文。 Step 203. Send a message to be sent.
其中, 接收到报文的相关地址为所接收报文的源地址和所接收报文的 源地址的映射地址。 可见, 媒体网关发送报文的源地址, 可以为接收到报 文的源地址, 也可以为接收到 艮文的源地址的映射地址。 The relevant address of the received packet is the source address of the received packet and the mapped address of the source address of the received packet. It can be seen that the source address of the packet sent by the media gateway can be the source address of the received message or the mapped address of the source address of the received message.
媒体网关为媒体之间的网关, 用于根据媒体网关控制器发送的控制信 息, 转发媒体数据。 IP报文为一种媒体数据, 媒体网关 /媒体网关的终端接 收 IP报文, 经过处理后, 媒体网关 /媒体网关的终端将处理后的 IP报文发 送出去。 The media gateway is a gateway between the media, and is used to forward the media data according to the control information sent by the media gateway controller. The IP packet is a piece of media data. The terminal of the media gateway/media gateway receives the IP packet. After processing, the terminal of the media gateway/media gateway sends the processed IP packet.
实施例二 Embodiment 2
在本实施例中,媒体网关对外发送 IP报文的源地址为接收到 IP报文的 源地址。 In this embodiment, the source address of the IP packet sent by the media gateway is the source address of the received IP packet.
在媒体网关转发报文前, 媒体网关接收到媒体网关控制器下发的控制 信息; 利用该控制信息建立上下文, 创建(Creat ) 第一终端和第二终端, 使第一终端与第二终端属于同一个上下文。 Before the media gateway forwards the packet, the media gateway receives the control information sent by the media gateway controller, establishes a context by using the control information, and creates (Creat) the first terminal and the second terminal, so that the first terminal and the second terminal belong to The same context.
终端和上下文为 H.248定义的概念, 其中, 上下文为终端之间的联系, 它描述了终端之间的拓朴关系以及媒体混合 /交换的参数。 上下文由一组终 端组成, 一个上下文可以包含多个终端。 根据媒体网关的业务特点不同, 上下文中可以包含的最大终端数目就不同, 一个终端属于一个上下文。 媒 体网关可以建立根(Root )终端, 根终端代表媒体网关整体。 The terminal and context are concepts defined by H.248, where context is the connection between terminals, which describes the topology relationship between terminals and the parameters of media mixing/exchange. A context consists of a set of terminals, and a context can contain multiple terminals. Depending on the service characteristics of the media gateway, the maximum number of terminals that can be included in the context is different. One terminal belongs to a context. The media gateway can establish a root terminal, and the root terminal represents the entire media gateway.
用属性、 事件、 信号和统计表示终端特性, 为了解决屏蔽终端多样性 问题, H.248中引入了包 (package)的概念,将终端的各种特性参数组合成包。 The characteristics of the terminal are represented by attributes, events, signals, and statistics. In order to solve the problem of shielding terminal diversity, the concept of a package is introduced in H.248, and various characteristic parameters of the terminal are combined into a packet.
为了实现本发明的目的, 本实施例扩展了一个包, 命名为 "IP路由包 1 ( IP route Package 1 ) ", 该扩展包用于媒体网关控制器指示媒体网关终端 发送 IP报文的源地址的设置方法 ,使得终端对外发送 IP报文的源地址为接收 到 ΙΡ· ^艮文的源地址。 扩展包内容如下: In order to achieve the object of the present invention, this embodiment extends a package named "IP Routing Packet 1" (IP route Package 1) ", the extension packet is used by the media gateway controller to instruct the media gateway terminal to set the source address of the IP packet, so that the source address of the IP packet sent by the terminal is received. Source address. The contents of the extension package are as follows:
包名: IP路由包 1 ( IP route Package 1 ) Package name: IP routing package 1 (IP route Package 1)
包 ID: iproutel , ( Oxxxxx ) Package ID: iproutel, ( Oxxxxx )
版本: 1 version 1
定义一个地址设置属性: 命名为 "sak ( source address keep ),,, 取值为 枚举类型, 值为" οη,,(0χ0001) 或者" off,(0x0002), 默认值为" off,。 Define an address setting attribute: Named "sak ( source address keep ),,, the value is an enumerated type, the value is " οη,, (0χ0001) or "off, (0x0002), the default value is "off."
媒体网关控制器指示媒体网关把 iproutel/sak属性设置在第二终端上。 当该 iproutel/sak属性设置为" on" (打开)时, 第一终端接收到 IP报文时, 把 该报文传递给同属一个上下文的第二终端; 第二终端根据上述属性, 将第 一终端接收到 IP报文的源地址设置为待发送 IP报文的源地址。若该值为 "off (关闭)时表示, 媒体网关不对该属性进行处理, 终端发送 IP报文时, 源地 址为第二终端本身的 IP地址。 该属性可以定义设置在描述符 terminationstate 或描述符 localcontrol上, 也可以定义设置在其它描述符上。 The media gateway controller instructs the media gateway to set the iproutel/sak attribute on the second terminal. When the iproutel/sak attribute is set to "on" (open), when the first terminal receives the IP packet, the first terminal transmits the packet to the second terminal that belongs to the same context; the second terminal is first according to the above attribute. The source address of the IP packet received by the terminal is set to the source address of the IP packet to be sent. If the value is "off", the media gateway does not process the attribute. When the terminal sends an IP packet, the source address is the IP address of the second terminal itself. The attribute can be defined in the descriptor terminationstate or descriptor. On localcontrol, you can also define settings on other descriptors.
需要说明的是,上述扩展的包名、包 ID和属性名等信息只是一个标记, 这些信息的等同替换方案属于本发明的保护范围; 通过属性设置的方式也 可以用事件或者信号参数的方式替代。 It should be noted that the information such as the extended package name, the package ID, and the attribute name is only a mark, and the equivalent replacement of the information belongs to the protection scope of the present invention; the manner of setting the attribute may also be replaced by an event or a signal parameter. .
以下介绍另一个扩展包, 该扩展包为在上述的扩展包的基础上增加另 一个地址设置属性, 具体为: 增加 iproutel的另一个属性 "sakin", 取值为枚 举类型, 值为" on"(0x0001) 或者" off'(0x0002), 默认值为" off '。 The following describes another extension package, which is to add another address setting attribute based on the above expansion package, specifically: Add another attribute of "ipkin" "sakin", the value is an enumerated type, and the value is "on" "(0x0001) or "off" (0x0002), the default value is "off".
媒体网关控制器指示媒体网关把 iproutel/sakin 属性设置在第一终端 上。 当该 iproutel/sakin属性设置为" on"时, 第一终端接收到 IP报文, 第一 终端根据上述属性,将第一终端接收到 IP报文的源地址设置为待发送 IP报 文的源地址。 当该值为" off'时表示, 媒体网关不对该属性进行处理, 终端 发送 IP ^艮文时, 源地址为第二终端本身的本地 IP地址。 The media gateway controller instructs the media gateway to set the iproutel/sakin attribute on the first terminal. When the iprouter/sakin attribute is set to "on", the first terminal receives the IP packet, and the first terminal sets the source address of the IP packet received by the first terminal as the source of the IP packet to be sent according to the foregoing attribute. address. When the value is "off", the media gateway does not process the attribute. When the terminal sends the IP address, the source address is the local IP address of the second terminal itself.
以上介绍了两种扩展包, 媒体网关控制器通过扩展包指示媒体网关将 扩展包的地址设置属性设置到第一终端或第二终端, 以实现待发送的 IP报 文的源地址为接收到的 IP报文的源地址。 可以理解的是, 媒体网关控制器 也可以指示媒体网关把扩展包属性设置到上下文, 以将待发送的 IP报文的 源地址设置为接收到的 IP报文的源地址; 此外, 媒体网关控制器还可以指 示媒体网关把扩展包属性设置到第一终端、 第二终端和上下文这 3 个客体 的任意组合上。 The above describes two types of extension packages. The media gateway controller instructs the media gateway to set the address setting attribute of the extension package to the first terminal or the second terminal through the extension package, so that the source address of the IP packet to be sent is received. Source address of the IP packet. Understandably, the media gateway controller The media gateway may also be configured to set the extended packet attribute to the context to set the source address of the IP packet to be sent to the source address of the received IP packet. In addition, the media gateway controller may further instruct the media gateway to add the extended packet. The attribute is set to any combination of the three objects of the first terminal, the second terminal, and the context.
媒体网关接收到媒体网关控制器发送的设置源地址的控制信息, 把 iproutel/sak属性设置在第二终端上, 媒体网关转发报文的流程如下: The media gateway receives the control information of the source address sent by the media gateway controller, and sets the iproutel/sak attribute on the second terminal. The process of forwarding the packet by the media gateway is as follows:
媒体网关的第一终端在接收到 IP报文时, 将报文传递给第二终端, 第 二终端根据预先设置的地址设置属性处理报文, 以产生待发送的 IP报文, 其中, 待发送 IP报文的源地址为接收到 IP报文的源地址。 比如, 媒体网关 的第一终端和第二终端在同一个上下文中。 媒体网关把 iproutel/sak属性为 "on"设置到第二终端上。 第一终端接收到源地址为" 192.168.1.100,,的 IP报 文, 媒体网关通过第二终端对外转发该 IP报文时, 并不修改第一终端接收 到该 IP报文时该 IP报文的源地址, 即:第二终端转发该 IP报文时源地址仍 然为" 192.168.1.100"。 媒体网关在转发该 IP 文前可能要经过编码转换。 由于媒体网关发送的 IP报文的源地址为接收到的 IP报文的源地址,对于接 收终端设备来说, 可以通过 IP报文的源地址识别实际的信息源, 可以预先 设置允许接收 IP报文的源地址列表, 以过滤不必要的 IP报文。 When receiving the IP packet, the first terminal of the media gateway transmits the packet to the second terminal, and the second terminal processes the packet according to the preset address setting attribute to generate the IP packet to be sent, where to be sent. The source address of the IP packet is the source address of the received IP packet. For example, the first terminal of the media gateway and the second terminal are in the same context. The media gateway sets the iproutel/sak attribute to "on" to the second terminal. The first terminal receives the IP packet whose source address is 192.168.1.100. When the media gateway forwards the IP packet through the second terminal, the first terminal does not modify the IP packet when the first terminal receives the IP packet. The source address, that is, the source address is still "192.168.1.100" when the second terminal forwards the IP packet. The media gateway may be transcoded before forwarding the IP packet. The source address of the IP packet sent by the media gateway. For the source address of the received IP packet, the receiving terminal device can identify the actual information source by using the source address of the IP packet, and can set a source address list for allowing the IP packet to be received in advance to filter unnecessary addresses. IP packet.
在实际应用中, 例如, 多方会议, 可能出现多个终端接收到的 IP报文 通过同属一个上下文的一个终端对外发送的情况, 和 /或一个终端接收到的 IP 文通过同属一个上下文的多个终端对外发送的情况; 这些情况下, 终 端向上下文外发送 IP报文时, 需要保留 IP报文进入上下文时的源地址, 其 实现原理和本实施例的实现原理相同, 这里就不在赘述。 进一步, 媒体网 关控制器可以指示媒体网关通过扩展上下文的属性来设置该上下文的哪些 终端适用本发明的方法,向上下文外发送 IP报文时将源地址设置成 IP报文 进入上下文时的源地址。 In a practical application, for example, a multi-party conference, there may be cases where an IP packet received by multiple terminals is sent out through a terminal that belongs to the same context, and/or an IP document received by one terminal passes through multiple contexts belonging to the same context. When the terminal sends the IP packet to the outside of the context, the terminal needs to keep the source address of the IP packet when it enters the context. The implementation principle is the same as that of this embodiment, and is not mentioned here. Further, the media gateway controller may instruct the media gateway to set which terminals of the context apply the method of the present invention by extending the attributes of the context, and set the source address to the source address when the IP packet enters the context when sending the IP packet to the context. .
需要指出的是, 媒体网关控制器可以指示媒体网关通过本身创建的终 端这个级别来接收和发送 IP报文;也可以指示媒体网关通过根 (ROOT)终端 这个级别来接收和发送 IP报文, 把设置源地址的属性设置到根终端上。 对 后一种情况, 媒体网关把设置源地址的属性设置到根终端上; 接收到 IP报 文时, 终端根据该属性, 将接收到 IP报文的源地址, 设置为待发送 IP报文 的源地址。 It should be noted that the media gateway controller may instruct the media gateway to receive and send IP packets through the level of the terminal itself created; or may instruct the media gateway to receive and send IP packets through the root (ROOT) terminal level, Set the property of the source address to the root terminal. In the latter case, the media gateway sets the attribute of setting the source address to the root terminal; receives the IP report. In this case, the terminal sets the source address of the received IP packet as the source address of the IP packet to be sent according to the attribute.
实施例三 Embodiment 3
在本实施例中,媒体网关对外发送 IP报文的源地址为接收到 IP报文的 源地址的映射地址。请参考图 3 ,为本发明实施例二的转发报文方法流程图。 In this embodiment, the source address of the IP packet sent by the media gateway is the mapping address of the source address of the received IP packet. Please refer to FIG. 3 , which is a flowchart of a method for forwarding a message according to Embodiment 2 of the present invention.
在媒体网关转发报文前, 媒体网关接收到媒体网关控制器下发的控制 信息; 利用该信息建立上下文, 创建第一终端和第二终端, 使第一终端与 第二终端属于同一个上下文。 Before the media gateway forwards the packet, the media gateway receives the control information sent by the media gateway controller. The information is used to establish a context, and the first terminal and the second terminal are created, so that the first terminal and the second terminal belong to the same context.
为了实现本发明的目的, 本实施例扩展了一个包, 命名为 "IP路由包 2 ( IP route Package 2 ) ", 该扩展包用于媒体网关控制器指示媒体网关终端 发送 IP报文的源地址的设置方法 ,使得终端对外发送 IP报文的源地址为接收 到 IP报文源地址的映射地址。 扩展包内容如下: In order to achieve the object of the present invention, this embodiment extends a packet named "IP route Package 2", which is used by the media gateway controller to instruct the media gateway terminal to send the IP address of the IP packet. The setting method is such that the source address of the IP packet sent by the terminal is the mapping address of the source address of the received IP packet. The contents of the extension package are as follows:
包名: IP路由包 2 ( IP route Package 2 ) Package name: IP route package 2
包 ID: iproute2 , ( Oxxxxx ) Package ID: iproute2 , ( Oxxxxx )
版本: 1 version 1
定义一个地址设置属性: 命名为 "mp", 取值为字符串列表, 每个字符 串代表一个地址映射关系。 媒体网关控制器指示媒体网关把该属性设置在 第二终端上; 第一终端接收到 IP报文后, 将报文传递给第二终端, 第二终端 根据查询该地址映射关系决定对外发送 IP报文的源地址。 例如媒体网关把 iproute2/mp属性为" 10.11.0.1 : 202.1.0.11,,和" 10.11.0.2: 202.1.0.12,,的字符串 列表设置在第二终端, 表示若第一终端接收到的 IP报文的源地址为 "10.11.0.1" , 其映射地址为 "202.1.0.11" , 第二终端根据上述属性, 将 "202.1.0.1 Γ,设置为发送 IP报文的源地址;若第一终端接收到的 IP报文的源地 址为" 10.11.0.2", 其映射地址为 "202.1.0.12", 第二终端根据上述属性, 将 "202.1.0.12"设置为发送 IP报文的源地址; 而对于接收到报文的源地未包含 在该字符串列表之内的, 则不处理。 上述字符串列表能够以映射表的形式 保存在媒体网关上。 该属性可以定义设置在描述符 terminationstate或描述符 localcontrol上, 也可以定义设置在其它描述符上。 Define an address setting attribute: Named "mp", the value is a list of strings, and each string represents an address mapping. The media gateway controller instructs the media gateway to set the attribute on the second terminal. After receiving the IP packet, the first terminal transmits the packet to the second terminal, and the second terminal determines to send the IP packet according to the address mapping relationship. The source address of the text. For example, the media gateway sets the string list of the iproute2/mp attribute to "10.11.0.1: 202.1.0.11, and "10.11.0.2: 202.1.0.12," to the second terminal, indicating that the IP address received by the first terminal is The source address of the text is "10.11.0.1", and its mapping address is "202.1.0.11". The second terminal sets "202.1.0.1 Γ, the source address of the IP packet to be sent according to the above attributes; if the first terminal receives The source address of the IP packet is "10.11.0.2", and the mapping address is "202.1.0.12". The second terminal sets "202.1.0.12" as the source address of the IP packet to be sent according to the above attributes; If the source of the received message is not included in the list of strings, it will not be processed. The above list of strings can be saved in the form of a mapping table on the media gateway. The attribute can be defined in the descriptor terminationstate or descriptor. On localcontrol, you can also define settings on other descriptors.
需要说明的是,上述扩展的包名、包 ID和属性名等信息只是一个标记, 这些信息的等同替换方案属于本发明的保护范围; 通过属性设置的方式也 可以用事件或者信号参数的方式替代。 It should be noted that the information such as the extended package name, package ID, and attribute name is only a mark. Equivalent replacements of these information are within the scope of the invention; the manner in which the attributes are set can also be replaced by events or signal parameters.
以下介绍另一个扩展包, 该扩展包为在上述的扩展包的基础上增加另 一个地址设置属性, 具体为: 定义一个属性: 命名为 "mpin", 取值为字符 串列表, 每个字符串代表一个地址映射关系。 媒体网关控制器指示媒体网 关把该属性设置在第一终端上; 第一终端接收到 IP报文后, 根据查询该地 址映射关系决定对外发送的 IP 报文的源地址。 例如媒体网关把 iproute2/mpin属性为" 10.11.0.2: 202.1.0.22,,设置在第一终端, 表示第一终端 接收到的 IP报文的源地址为" 10.11.0.2", 其映射地址为 "202.1.0.22" , 第一 终端根据上述属性, 将" 202.1.0.22"设置为对外发送 IP报文的源地址。 The following describes another extension package, which adds another address setting attribute to the above expansion package, specifically: Define an attribute: Named "mpin", the value is a list of strings, each string Represents an address mapping relationship. The media gateway controller instructs the media gateway to set the attribute on the first terminal. After receiving the IP packet, the first terminal determines the source address of the externally sent IP packet according to the address mapping relationship. For example, the media gateway sets the iproute2/mpin attribute to "10.11.0.2: 202.1.0.22, which is set in the first terminal, indicating that the source address of the IP packet received by the first terminal is "10.11.0.2", and its mapping address is "" 202.1.0.22", the first terminal sets "202.1.0.22" as the source address of the outgoing IP packet according to the above attributes.
以上介绍了两种扩展包, 媒体网关控制器通过扩展包指示媒体网关将 扩展包属性设置到第一终端或第二终端, 以实现待发送的 IP报文的源地址 为接收到的 IP报文的源地址的映射地址。 可以理解的是, 媒体网关控制器 也可以指示媒体网关把扩展包属性设置到上下文, 以实现待发送的 IP报文 的源地址为接收到的 IP报文的源地址的映射地址; 此外, 媒体网关控制器 还可以指示媒体网关把扩展包属性设置到第一终端、第二终端和上下文这 3 个客体的任意组合上。 The above describes two types of extension packages. The media gateway controller instructs the media gateway to set the extended package attribute to the first terminal or the second terminal through the extension package, so that the source address of the IP packet to be sent is the received IP packet. The mapped address of the source address. It is to be understood that the media gateway controller may also instruct the media gateway to set the extended packet attribute to the context, so that the source address of the IP packet to be sent is the mapped address of the source address of the received IP packet; The gateway controller may also instruct the media gateway to set the extended package attribute to any combination of the first object, the second terminal, and the context.
媒体网关接收到媒体网关控制器发送的设置源地址的控制信息, 把 iproute2/mp属性设置在第二终端上, 媒体网关转发报文的流程如下: The media gateway receives the control information of the source address sent by the media gateway controller, and sets the iproute2/mp attribute on the second terminal. The process of forwarding the message by the media gateway is as follows:
媒体网关的第一终端接收到 IP报文, 传递给第二终端, 第二终端根据 预先设置的地址设置属性处理报文, 产生待发送的 IP报文, 其中, 待发送 IP报文的源地址为接收到 IP报文的源地址的映射地址。 例如, 媒体网关上 的第一终端和第二终端在同一个上下文中。 媒体网关把 iproute2/mp属性为 " 10.11.0.1: 202.1.0.11" 和" 10.11.0.2: 202.1.0.12"的字符串列表设置到第二终 端上。 第一终端接收到源地址为" 10.11.0.1"的 IP报文后, 该 IP报文被传递 到第二终端 , 媒体网关通过第二终端查询该地址设置属性的字符串列表 , 根据查询结果将对外发送的 IP报文的源地址设置为 "202丄 0.11"。 媒体网 关第二终端发送待发送 IP报文。由于媒体网关发送的 IP报文的源地址为接 收到的 IP报文的源地址的映射地址, 对于接收终端设备来说, 可以根据映 射关系获取实际信息源的相关信息, 可以预先设置允许接收 IP报文的源地 址列表, 以过滤不必要的 IP报文。 The first terminal of the media gateway receives the IP packet and sends it to the second terminal. The second terminal sets the attribute processing packet according to the preset address setting, and generates the IP packet to be sent. The source address of the IP packet to be sent. The mapped address of the source address of the received IP packet. For example, the first terminal and the second terminal on the media gateway are in the same context. The media gateway sets the string list of iproute2/mp attributes " 10.11.0.1: 202.1.0.11" and " 10.11.0.2: 202.1.0.12" to the second terminal. After receiving the IP packet whose source address is "10.11.0.1", the IP address is transmitted to the second terminal, and the media gateway queries the second terminal to query the string list of the address setting attribute, according to the query result. The source address of the IP packet sent externally is set to "202丄0.11". The second terminal of the media gateway sends an IP packet to be sent. The source address of the IP packet sent by the media gateway is the mapped address of the source IP address of the received IP packet. You can set the source address list for receiving IP packets in advance to filter unnecessary IP packets.
在实际应用中, 例如多方会议, 可能出现多个终端接收到的 IP报文通 过同属一个上下文的一个终端对外发送的情况, 和 /或一个终端接收到的 IP 报文通过同属一个上下文的多个终端对外发送的情况; 这些情况下, 终端 向上下文外发送 IP报文时, 需要保留 IP报文进入上下文时的源地址, 其实 现原理和本实施例的实现原理相同, 这里就不在赘述。 In an actual application, such as a multi-party conference, an IP packet received by multiple terminals may be sent out through a terminal that belongs to the same context, and/or an IP packet received by a terminal may be sent through multiple contexts in the same context. When the terminal sends the IP packet to the outside of the context, the terminal needs to keep the source address of the IP packet when it enters the context. The implementation principle is the same as that of this embodiment, and is not mentioned here.
进一步, 媒体网关控制器可以指示媒体网关通过扩展上下文的属性来 设置该上下文的哪些终端适用本发明的方法, 向上下文外发送 IP报文时, 将源地址设置成 IP 4艮文进入上下文时的源地址的映射地址。 Further, the media gateway controller may instruct the media gateway to set which terminals of the context apply the method of the present invention by extending the attributes of the context, and when the IP packet is sent out of the context, the source address is set to be an IP address. The mapped address of the source address.
需要指出的是, 媒体网关控制器可以指示媒体网关通过本身创建的终 端这个级别来接收和发送 IP报文; 也可以指示媒体网关通过根终端这个级 别来接收和发送 IP报文。 对后一种情况, 媒体网关把设置源地址的属性设 置到根终端上; 接收到 IP报文时, 根终端根据该属性, 将接收到 IP报文的 源地址的映射地址, 设置为待发送 IP · ^艮文的源地址。 It should be noted that the media gateway controller may instruct the media gateway to receive and send IP packets through the terminal level created by itself; or may instruct the media gateway to receive and send IP packets through the root terminal. In the latter case, the media gateway sets the attribute of the source address to the root terminal. When receiving the IP packet, the root terminal sets the mapping address of the source address of the received IP packet to be sent according to the attribute. IP · ^ The source address of the text.
实施例四 Embodiment 4
请参考图 3 , 为本发明实施例中的网络系统示意图。 本实施例提供的网 络系统包括: Please refer to FIG. 3 , which is a schematic diagram of a network system in an embodiment of the present invention. The network system provided in this embodiment includes:
媒体网关控制器 420, 用于产生设置源地址的控制信息, 发送设置源地 址的控制信息; a media gateway controller 420, configured to generate control information for setting a source address, and send control information for setting a source address;
媒体网关 410, 用于接收媒体网关控制器 420发送的控制信息, 根据所 述设置源地址的控制信息设置地址设置属性, 用于接收报文, 根据地址设 置属性处理接收到的报文, 以产生待发送的报文, 待发送报文的源地址为 接收到报文的相关地址, 发送产生的待发送报文。 The media gateway 410 is configured to receive control information sent by the media gateway controller 420, set an address setting attribute according to the control information of the set source address, and receive the message, and process the received message according to the address setting attribute to generate The source address of the packet to be sent is the relevant address of the received packet, and the generated packet to be sent is sent.
其中, 媒体网关控制器 420 可以包括: 源地址控制信息产生单元 421 和源地址控制信息发送单元 422。 The media gateway controller 420 may include: a source address control information generating unit 421 and a source address control information transmitting unit 422.
源地址控制信息产生单元 421 , 用于产生设置源地址的控制信息; 源地 址控制信息发送单元 422,用于向媒体网关 410发送源地址控制信息产生单 元 421产生的设置源地址的控制信息。 其中, 媒体网关 410可以包括: 源地址控制信息接收单元 414、 报文接 收单元 411、 文发送单元 413和^艮文处理单元 412。 The source address control information generating unit 421 is configured to generate control information for setting a source address. The source address control information sending unit 422 is configured to send, to the media gateway 410, control information of the set source address generated by the source address control information generating unit 421. The media gateway 410 may include: a source address control information receiving unit 414, a message receiving unit 411, a text sending unit 413, and a text processing unit 412.
源地址控制信息接收单元 414,用于接收媒体网关控制器 420发送的设 置源地址的控制信息, 根据所述设置源地址的控制信息设置地址设置属性。 The source address control information receiving unit 414 is configured to receive control information of the set source address sent by the media gateway controller 420, and set an address setting attribute according to the control information of the set source address.
报文接收单元 411 , 用于接收报文。 The message receiving unit 411 is configured to receive the message.
报文处理单元 412,可设于报文接收单元 411上或报文发送单元 413上, 用于根据地址设置属性处理报文接收单元 411 接收到的报文, 以产生待发 送的报文, 待发送报文的源地址为报文接收单元 411 接收到的报文的相关 地址。 The message processing unit 412 may be configured on the message receiving unit 411 or the message sending unit 413, and configured to process the message received by the message receiving unit 411 according to the address setting attribute to generate a message to be sent. The source address of the sent message is the relevant address of the message received by the message receiving unit 411.
报文发送单元 413 , 用于发送报文处理单元 412产生的待发送报文。 其中, 设置源地址的控制信息的具体为, 指示媒体网关 410将接收到 报文的相关地址设置为待发送报文的源地址的控制信息; 接收到报文的相 关地址为, 接收到报文的源地址本身或接收到报文的源地址的映射地址。 The message sending unit 413 is configured to send the to-be-sent message generated by the message processing unit 412. The control information of the source address is specifically configured to instruct the media gateway 410 to set the relevant address of the received packet as the control information of the source address of the packet to be sent; the relevant address of the received packet is, and the received packet is received. The source address itself or the mapped address of the source address of the received message.
该系统的工作原理如下: 媒体网关控制器 420 的源地址控制信息产生 单元 421产生设置源地址的控制信息; 源地址控制信息发送单元 422向媒 体网关 410发送源地址控制信息产生单元 421产生的设置源地址的控制信 息。媒体网关 410的源地址控制信息接收单元 414接收媒体网关控制器 420 发送的设置源地址的控制信息, 根据所述设置源地址的控制信息设置地址 设置属性。 报文接收单元 411接收报文。 报文处理单元 412根据地址设置 属性处理报文接收单元 411 接收到的报文, 以产生待发送的报文, 待发送 报文的源地址为报文接收单元 411 接收到的报文的相关地址。 报文发送单 元 413发送 文处理单元 412产生的待发送 文。 The working principle of the system is as follows: The source address control information generating unit 421 of the media gateway controller 420 generates control information for setting the source address; the source address control information transmitting unit 422 transmits the settings generated by the source address control information generating unit 421 to the media gateway 410. Source address control information. The source address control information receiving unit 414 of the media gateway 410 receives the control information of the set source address sent by the media gateway controller 420, and sets the address setting attribute according to the control information of the set source address. The message receiving unit 411 receives the message. The message processing unit 412 processes the message received by the message receiving unit 411 according to the address setting attribute to generate a message to be sent, and the source address of the to-be-sent message is the relevant address of the message received by the message receiving unit 411. . The message transmitting unit 413 transmits the to-be-sent document generated by the text processing unit 412.
可以理解的是, 报文处理单元 412可设置在报文接收单元 411和 /或报 文发送单元 413上。 It can be understood that the message processing unit 412 can be disposed on the message receiving unit 411 and/or the message transmitting unit 413.
从以上技术方案可以看出, 本发明实施例中, 媒体网关接收到报文; 根据预先设置的地址设置属性处理报文, 以产生待发送的报文, 待发送报 文的源地址为接收到报文的相关地址; 接收到报文的相关地址为接收到报 文的源地址或接收到报文的源地址的映射地址。 由于媒体网关终端发送报 文的源地址不是终端本身的地址, 而是与接收到报文的相关地址, 媒体网 关终端发送的报文与信息源的源地址相关, 从而可以解决媒体网关终端地 址单一可能导致接收报文的终端设备无法识别信息源的问题, 可以避免媒 体网关为对应不同信息源创建不同终端导致结构复杂的情况; 根据本发明 提供的技术方案, 可以简化网络拓朴结构, 优化媒体网关的性能。 It can be seen from the foregoing technical solution that, in the embodiment of the present invention, the media gateway receives the packet; the attribute processing packet is configured according to the preset address setting, to generate the packet to be sent, and the source address of the to-be-sent packet is received. The relevant address of the packet; the relevant address of the received packet is the source address of the received packet or the mapped address of the source address of the received packet. The source address of the packet sent by the media gateway terminal is not the address of the terminal itself, but the relevant address of the received packet, and the media network. The packet sent by the terminal is related to the source address of the information source, so that the problem that the media gateway terminal address may cause the terminal device that receives the packet to fail to identify the information source may be solved, and the media gateway may be prevented from creating different terminals for different information sources. In the case of a complicated structure, according to the technical solution provided by the present invention, the network topology structure can be simplified, and the performance of the media gateway can be optimized.
需要说明的是, 上述实施例中, 媒体网关控制器与媒体网关的通信基 于 H.248, 媒体网关处理的报文基于 IP协议, 不排除基于其它协议上实现 本发明。 It should be noted that, in the foregoing embodiment, the communication between the media gateway controller and the media gateway is based on H.248, and the packet processed by the media gateway is based on the IP protocol, and the invention is not excluded based on other protocols.
显然, 本领域的技术人员应该明白, 上述的本发明实施例中的各单元 或各步骤可以用通用的计算装置来实现, 它们可以集中在单个的计算装置 上, 或者分布在多个计算装置所组成的网络上, 可选地, 它们可以用计算 装置可执行的程序代码来实现, 从而, 可以将它们存储在存储装置中由计 算装置来执行, 或者将它们分别制作成各个集成电路模块, 或者将它们中 的多个单元或步骤制作成单个集成电路模块来实现。 这样, 本发明不限制 于任何特定的硬件和软件结合。 体网关及网络系统进行了详细介绍, 本文中应用了具体个例对本发明的原 理及实施方式进行了阐述, 以上实施例的说明只是用于帮助理解本发明的 方法及其核心思想; 同时, 对于本领域的一般技术人员, 依据本发明的思 想, 在具体实施方式及应用范围上均会有改变之处, 综上所述, 本说明书 内容不应理解为对本发明的限制。 Obviously, those skilled in the art should understand that each unit or step in the above embodiments of the present invention can be implemented by a general computing device, which can be concentrated on a single computing device or distributed among multiple computing devices. Optionally, they may be implemented by program code executable by the computing device, such that they may be stored in the storage device by the computing device, or they may be separately fabricated into individual integrated circuit modules, or A plurality of units or steps of them are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software. The body gateway and the network system are described in detail, and the principles and implementation manners of the present invention are explained in the specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention; The present invention is not limited by the scope of the present invention, and the details of the present invention are not limited by the scope of the present invention.
Claims
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200710108512.XA CN101309235A (en) | 2007-05-18 | 2007-05-18 | Method for forwarding message, media gateway controller, media gateway and network system |
| CN200710108512.X | 2007-05-18 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2008141569A1 true WO2008141569A1 (en) | 2008-11-27 |
Family
ID=40031414
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2008/070969 Ceased WO2008141569A1 (en) | 2007-05-18 | 2008-05-15 | Method, device and network system for transmitting messages |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN101309235A (en) |
| WO (1) | WO2008141569A1 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102104525B (en) | 2011-03-16 | 2013-04-24 | 华为技术有限公司 | Media gateway equipment and method for forwarding data frame |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1341359A2 (en) * | 2002-02-28 | 2003-09-03 | Acme Packet, Inc. | System and method for determining the source of an internet protocol packet |
| CN1735072A (en) * | 2004-08-13 | 2006-02-15 | 中兴通讯股份有限公司 | Improved realization process for WLAN net bridge transparent bridge |
| CN1905560A (en) * | 2006-08-09 | 2007-01-31 | 烽火通信科技股份有限公司 | Method of using non-number port in route protocol based on IPV4 |
-
2007
- 2007-05-18 CN CN200710108512.XA patent/CN101309235A/en active Pending
-
2008
- 2008-05-15 WO PCT/CN2008/070969 patent/WO2008141569A1/en not_active Ceased
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| EP1341359A2 (en) * | 2002-02-28 | 2003-09-03 | Acme Packet, Inc. | System and method for determining the source of an internet protocol packet |
| CN1735072A (en) * | 2004-08-13 | 2006-02-15 | 中兴通讯股份有限公司 | Improved realization process for WLAN net bridge transparent bridge |
| CN1905560A (en) * | 2006-08-09 | 2007-01-31 | 烽火通信科技股份有限公司 | Method of using non-number port in route protocol based on IPV4 |
Non-Patent Citations (1)
| Title |
|---|
| ITU-T H.248.1, Gateway control protocol: Version 3, 30 Sep. 2005 page 29-26 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101309235A (en) | 2008-11-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP1942617B1 (en) | Method, device and system for Ethernet-supported Source Specific Multicast forwarding | |
| US8787218B2 (en) | Dynamic establishment of virtual circuits multisegment pseudowires | |
| CN109428768B (en) | Autonomous network service method and autonomous network | |
| CN103391296B (en) | A kind of controller, transponder and Path Setup method and system | |
| EP3764594A1 (en) | Network device management method, apparatus and system | |
| WO2015143802A1 (en) | Service function chaining processing method and device | |
| KR101501913B1 (en) | Multicast quality of service module and method | |
| WO2012022169A1 (en) | Management method and apparatus for network address translation | |
| CN104838625A (en) | Communication system, control device, communication control method, transmission control method, and transmission control program | |
| CN108712338B (en) | Message processing method and device | |
| US20080186967A1 (en) | Method for supporting source-specific multicast forwarding over ethernet and device thereof | |
| US10567180B2 (en) | Method for multicast packet transmission in software defined networks | |
| CN109728922B (en) | Method and related equipment for configuring multicast link in autonomous network | |
| CN101160791A (en) | Method and network device for processing multicast service exception | |
| CN101729367B (en) | Method, equipment and system for realizing network address conversion | |
| WO2008040191A1 (en) | Method, system and device for distrubuting and receiving the multicast data in the media gateway | |
| CN104767720A (en) | OpenFlow message tracking and filtering method in software defined network | |
| WO2021147357A1 (en) | Method, device, and system for distributing routing information | |
| WO2008141569A1 (en) | Method, device and network system for transmitting messages | |
| CN115297556A (en) | A Data Distribution Method for Implementing Topic Priority in Airborne Networks | |
| CN108966040B (en) | Video networking service processing method and video networking terminal | |
| CN100399773C (en) | Method for realizing IP domain cross-domain intercommunication | |
| CN101277259B (en) | Transmission method and system for resource information, medium gateway and medium gateway controller | |
| CN1863256B (en) | Method and system for implementing IP telephone service | |
| JP2005020080A (en) | Inter-subscriber terminal communication 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: 08748575 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: 08748575 Country of ref document: EP Kind code of ref document: A1 |