WO2009030143A1 - Multicast routing method and system, media gateway and media gateway controller - Google Patents

Multicast routing method and system, media gateway and media gateway controller Download PDF

Info

Publication number
WO2009030143A1
WO2009030143A1 PCT/CN2008/072114 CN2008072114W WO2009030143A1 WO 2009030143 A1 WO2009030143 A1 WO 2009030143A1 CN 2008072114 W CN2008072114 W CN 2008072114W WO 2009030143 A1 WO2009030143 A1 WO 2009030143A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast
multicast group
network
upstream
flow interface
Prior art date
Application number
PCT/CN2008/072114
Other languages
French (fr)
Chinese (zh)
Inventor
Ning Zhu
Original Assignee
Huawei Technologies Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co., Ltd. filed Critical Huawei Technologies Co., Ltd.
Publication of WO2009030143A1 publication Critical patent/WO2009030143A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/30Resource management for broadcast services

Definitions

  • Multicast routing method and system Multicast routing method and system, media gateway and media gateway controller
  • the application is submitted to the Chinese Patent Office on September 3, 2007, and the application number is 200710148050.4, and the invention name is "multicast routing method, device and system, media gateway and The priority of the Chinese Patent Application for the Media Gateway Controller is hereby incorporated by reference in its entirety.
  • Technical field
  • the present invention relates to network technologies, and in particular, to a multicast routing method and system, a media gateway, and a media gateway controller.
  • Multicast is a host communication method widely used in the network. Through multicast, packets can be sent to a certain set of network nodes in the network. The set of network nodes is called a multicast group. Group ). The basic idea of multicast is as follows: The source host sends only one piece of data. The destination address in this data is the multicast group address; all recipients in the multicast group can receive the same copy of the data, and only the group The host in the broadcast group can receive the data, and other hosts in the network cannot receive it. In an Internet Protocol (IP) network, multicast groups are identified by a Class D IP address (224.0.0.0 ⁇ 239.255.255.255).
  • IP Internet Protocol
  • the multicast technology covers a wide range of content, such as address allocation, group member management, multicast packet forwarding, and route establishment.
  • the multicast protocol can be divided into host-router protocols.
  • the multicast member management protocol has an Internet Group Management Protocol (IGMP) applied to the IPV4 network, a Multicast Listener Discovery Protocol (MLD) applied to the IPV6 network, and the like; the multicast routing protocol is further divided into an intra-domain multicast routing protocol. And inter-domain multicast routing protocols.
  • IGMP Internet Group Management Protocol
  • MLD Multicast Listener Discovery Protocol
  • Intra-domain multicast routing protocols include protocols such as sparse mode independent multicast protocol (PIM-SM), dense mode independent multicast protocol (PIM-DM), and distance vector multicast routing protocol (DVMRP).
  • Inter-domain multicast routing protocols include Multi-Protocol Border Gateway Protocol (MBGP), Multicast Source Discovery Protocol (MSDP) and other protocols.
  • MBGP Multi-Protocol Border Gateway Protocol
  • MSDP Multicast Source Discovery Protocol
  • Multicast routing can be divided into two categories: source tree and shared tree.
  • a source tree is a forwarding tree formed by combining a multicast source as a root and a shortest path from a multicast source to each receiver. Since the source tree uses the shortest path from the multicast source to the receiver, it is also called the shortest path tree (SPT).
  • SPT shortest path tree
  • the network establishes a tree for any multicast source that sends messages to the group.
  • the shared tree uses a router as the root of the routing tree.
  • the router is called a Rendezvous Point (RP: Rendezvous Point), which combines the shortest path of the RP to all receivers to form a forwarding tree.
  • RP Rendezvous Point
  • the multicast source sends data packets to the root of the tree, and then the packets are forwarded down to all receivers.
  • IP network is taken as an example. If different IP networks correspond to different IP addresses. Versions, for example, IP networks corresponding to IPV4 and IPV6 respectively; or IP versions are the same, but the address ranges are partially or completely overlapping; or different IP networks have different plans for multicast group address planning and multicast source addresses; A normal router cannot complete multicast member management protocol messages, or multicast routing protocol messages, or multicast data flows between different IP networks; especially when using a media gateway (MGW: Media Gateway) as a border gateway.
  • MGW Media Gateway
  • the existing MGW does not have the ability to process multicast member management protocol messages such as IGMP, MLD, and multicast routing protocol messages such as PIM-SM, when there are MGWs in the multicast path, IGMP, MLD, and so on. Broadcast member management protocol messages or multicast routing protocol messages such as PIM-SM and multicast data streams will be blocked by the MGW, resulting in It can not be broadcast between different networks, reducing the range of multicast applications.
  • the technical problem to be solved by the embodiments of the present invention is to provide a multicast routing method and system, a media gateway, and a media gateway controller.
  • the technical solution provided by the embodiment of the present invention enables multicast to be performed between different networks.
  • the embodiment of the invention provides a multicast routing method, including:
  • trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information
  • the record of the multicast group member of the device is changed, and the information is obtained according to the first multicast group information and the correspondence between the multicast group information and the upstream flow interface.
  • the upstream flow interface of the media gateway, the upstream flow interface is corresponding to the second multicast group information in the changed record, and the device multicast member database summarizes the status of the downstream flow interface multicast group member,
  • the second multicast group information corresponds to the first multicast group information;
  • the embodiment of the invention further provides a media gateway, including:
  • the trigger information acquiring unit is configured to obtain, from the downstream flow interface, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information;
  • control information request sending unit configured to send a control information request message to the media gateway controller, where the control information request includes the first multicast group information
  • control information receiving unit configured to receive a control message from the media gateway controller in response to the control information request message
  • the database judging unit is configured to determine whether the change of the state of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to be changed, and the device multicast group member database summarizes all the members of the downstream flow interface multicast group. State
  • An interface determining unit configured to: when the database determining unit determines that the change of the state of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to change, according to the correspondence between the multicast group information and the upstream flow interface Relationship, searching for an upstream flow interface corresponding to the second multicast group information in the changed record in the multicast member database of the device;
  • a message sending unit configured to: after the first message is configured according to the record changed in the multicast member database of the device, send, by using the upstream flow interface, the information including the multicast group information to the upstream network corresponding to the upstream flow interface a message, the first message includes third multicast group information corresponding to the second multicast group information.
  • the embodiment of the invention further provides a media gateway controller, including:
  • control information request receiving unit configured to receive a control information request message from the media gateway, where the control information request message includes first multicast group information
  • a determining unit configured to determine, according to the self-policy and the first multicast group information, whether to allow to join the multicast group
  • the control information sending unit is configured to: when the determining unit determines that the multicast group is allowed to join the multicast group, send a control message that is allowed to join the multicast group, or send the multicast group not allowed when the determining unit determines that the multicast group is not allowed to join the multicast group. Control message.
  • the embodiment of the invention further provides a multicast routing system, including:
  • the media gateway is configured to obtain, from the downstream flow interface, trigger information that triggers a change of a state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information, and sends a control information request to the media gateway controller. And receiving a control message that is allowed to join the multicast group in response to the control information request message; if the status of the multicast group member on the downstream flow interface is changed, the device multicasts that summarize the state of all the downstream flow interface multicast group members are received.
  • the record of the member database is changed, and the upstream flow interface corresponding to the second multicast group information in the record changed in the multicast member database of the device is searched according to the correspondence between the multicast group information and the upstream flow interface; After the first message is configured, the first message is sent by the upstream flow interface, where the first message includes third multicast group information corresponding to the second multicast group information.
  • the media gateway controller is configured to receive the control information request message, determine, according to the first multicast group information, whether to allow to join the multicast group, and send the control that is allowed to join the multicast group when determining to allow the joining of the multicast group.
  • the first network is configured to receive the first message.
  • Embodiments of the present invention also provide a computer program product, the computer program product comprising computer program code, when the computer program code is executed by a computer, the computer program code may cause the computer to execute a multicast routing method Any of the steps in .
  • a further embodiment of the present invention also provides a computer readable storage medium, the computer storing computer program code, the computer program code, when the computer program code is executed by a computer, the computer program code to cause the computer to perform multicast routing Any of the steps in the method.
  • the multicast group can be learned.
  • Corresponding relationship between the information and the upstream interface determines the corresponding upstream flow interface, and the first message is sent through the upstream flow interface, so that the upstream flow network corresponding to the upstream flow interface corresponds to the downstream flow interface (downstream interface).
  • the multicast of the downstream network is connected, so that multicast can be performed between two different networks, so that the application range of multicast is wider.
  • Embodiment 1 is a flowchart of Embodiment 1 of a multicast routing method according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of Embodiment 2 of a multicast routing method according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of Embodiment 3 of a multicast routing method according to an embodiment of the present disclosure
  • Embodiment 4 is a schematic diagram of Embodiment 4 of a multicast routing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of Embodiment 5 of a multicast routing method according to an embodiment of the present disclosure
  • FIG. 6 is a schematic diagram of Embodiment 6 of a multicast routing method according to an embodiment of the present disclosure
  • FIG. 7 is a schematic diagram of Embodiment 7 of a multicast routing method according to an embodiment of the present disclosure.
  • FIG. 8 is a schematic diagram of Embodiment 8 of a multicast routing method according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of Embodiment 9 of a multicast routing method according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic diagram of forwarding a multicast data stream according to an embodiment of the present invention.
  • FIG. 11 is a structural diagram of an embodiment of a multicast routing apparatus according to an embodiment of the present invention.
  • FIG. 12 is a structural diagram of an embodiment of a media gateway according to an embodiment of the present invention.
  • FIG. 13 is a structural diagram of an embodiment of a media gateway controller according to an embodiment of the present invention.
  • FIG. 14 is a structural diagram of Embodiment 1 of a multicast routing system according to an embodiment of the present invention.
  • FIG. 15 is a structural diagram of Embodiment 2 of a multicast routing system according to an embodiment of the present invention.
  • the multicast routing tree can be used to establish a multicast shared tree or a source tree.
  • the interface to the source of the multicast tree is called the upstream interface and the upstream interface is connected.
  • the network is called the upstream network.
  • the interface away from the root node of the multicast tree is called the downstream interface, and the network connected to the downstream flow interface is called the downstream network.
  • the multicast tree may be a source tree or a shared tree.
  • the multicast group may not filter the multicast source address, or may have a filtering condition to limit the multicast source address, for example, including a multicast source address list, indicating that the multicast source address list can be received from the multicast source address list.
  • the multicast member management protocol and the multicast routing protocol can be run on the upstream and downstream flow interfaces.
  • the multicast protocol for a multicast group (with or without a qualified multicast source address) may include the following four working modes.
  • the upstream flow interface uses the multicast member management protocol, and the downstream flow interface uses the multicast routing protocol; (2) the upstream flow interface uses the multicast member management protocol, and the downstream flow interface uses the multicast member management protocol; (3) upstream The flow interface uses a multicast routing protocol, and the downstream flow interface enables Multicast routing protocol; (4) The upstream flow interface enables the multicast routing protocol, and the downstream flow interface uses the multicast member management protocol.
  • the multicast member management protocol is used on the upstream interface, the device is equivalent to implementing the host function on the upstream network and can join or leave the multicast group. In other cases, the device implements router functions on the interface.
  • the host function and the router function described herein are for a specific upstream stream interface and a downstream stream interface, and the upstream stream interface and the downstream stream interface may be for all multicast groups, or may only be for a part.
  • Multicast group That is, for a multicast group, an interface may be an upstream flow interface, and for another multicast group, the interface may be a downstream flow interface. It is also possible for a multicast source address of a multicast group address, an interface is an upstream flow interface, and another multicast source address of the multicast group address, the interface is a downstream flow interface.
  • the first embodiment of the multicast member management and multicast group routing method provided by the present invention is as shown in FIG. 1 , and includes:
  • Step 101 Acquire, from the downstream flow interface, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information.
  • the trigger information may include any one of a message that joins the multicast group, a message that leaves the multicast group, a message that joins the multicast group and the outgoing multicast group, a response message of the query message, and a multicast timer timeout or
  • the message requesting to join the multicast group may be an IGMP report message or a join/prune message of the PIM-SM.
  • the message requesting to leave the multicast group may be an IGMPv3 report message, and the IGMPv2 leaving the multicast group message. Or PIM-SM join/prune messages, etc.
  • a message requesting to join a multicast group and requesting to leave a multicast group means that a message includes a request to join a multicast group and a request to leave a multicast group, such as a report message of IGMPv3.
  • Query messages are mainly used for multicast member management protocols, such as IGMP.
  • the multicast group information can include the multicast group address, the multicast group address and the multicast source address, or the multicast group address, the multicast source address, and the multicast source address filtering condition.
  • the multicast source address filtering condition refers to the permission or A specific multicast source address, such as the filtering condition of the multicast source address of IGMPv3, is forbidden.
  • the join/prune messages of the PIM-SM list the source address list and the source address list of the prune respectively.
  • IGMPv2 does not support filtering of multicast source addresses. If the IGMP protocol is used on the downstream flow interface, the first multicast group information is carried in the IGMP report message or the leave message.
  • the first multicast group information is in the PIM- Carry in the SM join/prune message;
  • the trigger information on the downstream flow interface includes the received multicast protocol message, such as a multicast member management protocol message or a multicast routing protocol message, and includes a timeout of the multicast timer and a response of the multicast query message, and the trigger information may be
  • the status of the multicast group member on the downstream flow interface is changed, which may affect the record of the multicast member database of the device. Therefore, you need to send a message to the upstream flow interface to notify the upstream multicast router.
  • Step 102 If the status of the multicast group member on the downstream flow interface is changed, the record of the multicast member database of the multicast group member status of all the downstream flow interface members is changed, and the correspondence between the multicast group information and the upstream flow interface is changed. Finding an upstream flow interface corresponding to the second multicast group information in the record in which the change occurs;
  • the mapping between the multicast group information and the upstream flow interface is recorded in the correspondence table, and the corresponding upstream flow interface can be determined according to the multicast group information;
  • the table can be pre-configured and can be updated in real time;
  • Step 103 Construct a first message according to the changed record in the multicast member database of the device, and send a first message to the upstream network corresponding to the upstream flow interface by using the found upstream flow interface.
  • the first message includes the third multicast group information corresponding to the first multicast group information.
  • the information of the third multicast group information and the corresponding part of the first multicast group information are the same, but
  • the third multicast group information is obtained by updating the network address according to the mapping relationship between the first multicast group information and the network address; if the first message is a multicast member
  • the management protocol the DR in the upstream network processes the message, and if it needs to further send the join/prune message of the multicast routing protocol message to the root node of the multicast tree. If the first message is a multicast routing protocol message, the message is sent to the upstream multicast router of the multicast tree.
  • the embodiments of the present invention map multicast group addresses and/or multicast source addresses between different IP networks, and connect through network devices.
  • the multicast group G1 in the connected network 1 is planned to be mapped to G2 in the network 2
  • the multicast source address S1 in the network 1 is planned to be mapped to the S2 in the network 2
  • the network 1 and the network 2 may be the same version.
  • the IP network may also be a different version of the IP network, for example, the network is an IPv4 network, and the network 2 is an IPv6 network. If the multicast provided by the network 1 is requested in the network 2, and the multicast group address and/or the multicast source address are planned differently, the multicast group address and/or the multicast source address between the two networks must be performed. Mapping.
  • the source address should be updated accordingly according to the mapping relationship.
  • the multicast routing protocol message, the multicast member management protocol message, and the multicast data stream use the same address mapping relationship to implement multicast protocol message control on the multicast data stream.
  • the multicast group address and the multicast source address in the multicast group information carried in the first message may be the same as the multicast group address and the multicast source address in the multicast group information included in the trigger information obtained by the downstream flow interface. It can also be a mapped multicast group address and a multicast source address.
  • the corresponding upstream flow interface can be determined, and the message requesting to join and/or leave the multicast group is reconstructed. Sending through the upstream flow interface, so that the multicasts in the two networks are connected, so that multicast can be performed between two different networks, so that the application range of multicast is wider.
  • the host In actual applications, depending on the application scope of the multicast or the application domain, you may need to authenticate the host that requests to join the multicast group, or control the total number of hosts that join the multicast group, or The number of hosts that the network joins the multicast group is controlled. In this case, the host needs to be authenticated by the host. In general, the host is determined based on the address of the host. Judging the situation, such as using the unique number of the host in this network or the host name unique to the host in the entire network.
  • the multicast routing method provided by the embodiment of the present invention is described by using the IGMP protocol in the multicast member management protocol and the PIM-SM protocol in the multicast routing protocol, and the process is used when other multicast member management protocols and multicast routing protocols are used. similar.
  • the host on the downstream network sends a message requesting to join the multicast group and leave the multicast group.
  • the IGMPv2 protocol uses a report message to join a multicast group and a leave message to exit the multicast group.
  • IGMPv3 unifies the above two messages into report messages by setting the filter conditions.
  • the MLD protocol is similar to the IGMP protocol.
  • the device of the present invention implements the function specified by the multicast member management protocol for the multicast router on the downstream flow interface, and maintains various multicast timers, such as a periodic query timer, a last member query interval timer, etc., and can also issue a periodic query. Messages and specific multicast group query messages.
  • the device of the present invention can maintain the state of the multicast group member on the downstream flow interface, according to the state of the timer, whether the timer expires, the response message of the query message, and the message that is actively reported.
  • the status of the multicast group member on the downstream flow interface is summarized by the downstream flow interface.
  • the joining of the multicast group of the downstream network including the multicast group joining of the hosts in the downstream network, and the joining of the multicast groups of the downstream multicast routers in the multicast tree in the downstream network, and these groups
  • the multicast join situation of the broadcast router represents the multicast group join of these multicast routers in the entire downstream branch of the multicast tree.
  • the multicast router of the downstream network sends a join/prune message to request to join or leave the multicast group.
  • the PIM-SM protocol on the downstream network does not query the downstream network.
  • the multicast router in the downstream network periodically refreshes the multicast group member status of the downstream branch of the multicast tree it represents.
  • the pruning request is received on the interface and the pruning suppression timer is used to determine if pruning is required.
  • the device can maintain the multicast group member status of the downstream network based on the received join/prune messages and the status of the multicast timer.
  • the device For the multicast member management protocol, the device performs the host function on the upstream flow interface, sends a report message or leaves the message, and responds to the query message. This part of the function is the basic function of the IGMP protocol and will not be described here.
  • the upstream flow interface requests to join the multicast group or leave the multicast group by issuing an add/prune message.
  • a join/prune message is sent periodically to maintain the multicast group member status on the upstream multicast router. If a pruning request is received, a join/prune message is sent to veto if necessary. This part of the function is the basic function of the PIM-SM protocol, and will not be described here.
  • the multicast group address summarizes the aggregation of the multicast group member status of the multicast group address of each downstream flow interface. May lead to the source tree for the same multicast group address
  • the upstream stream interface is different from the upstream stream interface to the shared tree. If the same multicast data stream is requested to have both a source tree and a shared tree, the device may also need to select the upstream stream according to the selection of the multicast tree. interface.
  • Downstream flow interface may receive downstream of the downstream flow interface connection.
  • the multicast member management protocol message sent by the host or router in the network to join the multicast group may also receive the multicast routing protocol message sent by the multicast router in the downstream network to join the same multicast group.
  • the multicast group member status on the flow interface needs to be combined with the trigger information caused by the two protocols.
  • Sending a message to the upstream stream interface can use either the multicast member management protocol or the multicast routing protocol.
  • the possible conditions for all multicast source addresses of a multicast group to share the same upstream flow interface The interface faces the shared tree in the direction of all multicast groups.
  • the records of the device multicast member database will not change. If the change of the multicast group member status of one or more downstream flow interfaces affects the record of the device multicast member database and needs to be changed, further affecting one or more upstream flow interfaces, the device moves to the affected upstream flow interface.
  • a multicast group request message on a downstream flow interface affects the possible conditions of multiple upstream flow interfaces:
  • the downstream flow interface is required to join the multicast group G1.
  • the multicast source address filtering conditions include only the multicast source addresses S1 and S2. .
  • the upstream flow interface corresponding to the SI is II, and the upstream flow interface corresponding to S2 is 12. If the respective source tree is to be added to the upstream flow interface, this will cause the join group to be sent to the upstream network on both the II and the 12th. Broadcast group message.
  • the device sends a message requesting to join the multicast group G2 on the 12 interface. If the filtering condition of the multicast source address is involved in the request message, the mapping method of the multicast source address is similar to the mapping method of the multicast group address, and is not described here.
  • the above functions can be implemented on a separate network device, which can be an MGW; the MGW is controlled by a Media Gateway Controller (MGC). In one case, the above functions are implemented by the MGW.
  • MGW Media Gateway Controller
  • the MGC does not need to directly process the messages on the upstream stream interface and the downstream stream interface.
  • some or all of the MGC controls the function. step. For example, the correspondence between the multicast group information and the upstream flow interface can be maintained by the MGC.
  • the MGW After receiving the multicast protocol message on the downstream flow interface, the MGW reports the message to the MGC.
  • the MGW instructs the MGW to send the specified multicast protocol message on the specified upstream flow interface. Therefore, the mapping between the multicast group information and the upstream flow interface is not required on the MGW.
  • the multicast group information includes multicast group address, multicast source address, and multicast group source address filtering.
  • the multicast group information in the IGMPv2 message may include only the multicast group address.
  • the multicast group information in the PIM-SM protocol message may include the multicast group address, and may further include the added multicast source address and the pruned
  • the multicast source address of the IGMPv3 protocol message may include a multicast group address, and may further include a multicast source address and a filtering condition of the multicast source address.
  • the multicast group address is the specified multicast group address.
  • the multicast source address is the mapping between the multicast source address and the upstream stream interface. (3) The correspondence between the multicast group address and the excluded one or more multicast source addresses and the upstream flow interface; that is, the multicast group address is the specified multicast group address, and the multicast source address is the specified group. All multicast source addresses except the source address.
  • the multicast data stream described in the multicast group information is received from the corresponding upstream flow interface and sent to the downstream network through the downstream flow interface.
  • the correspondence between the multicast group information and the upstream flow interface described in the embodiment of the present invention may include any one of the foregoing three possible cases or any combination thereof.
  • the MGW can search for the upstream flow interface by using the multicast group information according to the foregoing correspondence, and can also maintain the multicast group address and/or the multicast source address mapping relationship network address mapping table between the upstream flow interface and the downstream flow interface; After receiving the multicast member management protocol message or the multicast routing protocol message, the MGW can update the multicast member status of the interface, further update the device multicast member database, find the corresponding upstream flow interface, and send the multicast member to the upstream flow interface. Management protocol messages or multicast routing protocol messages do not require the participation of the MGC. Of course, the MGC can also use the media gateway control protocol to update the correspondence between the network address mapping table and the multicast group information on the MGW and the upstream flow interface.
  • the multicast routing device uses the IGMP protocol as the multicast router in the IP network 2; receives the IGMP protocol-based advertisement message from the host in the IP network 2, leaves the multicast group message, and sends an inquiry message to the IP network 2;
  • the multicast routing device acts as a multicast router in the IP network 1 and uses the PIM-SM protocol; sends a PIM-SM based join/prune message to the multicast router in the IP network 1;
  • the multicast routing device After receiving the multicast data stream from the multicast router in the IP network 1, the multicast routing device forwards the multicast data stream to the host in the IP network 2.
  • the mapping between the multicast group address and the multicast source address of the upstream network and the downstream network is configured on the multicast routing device, and the correspondence between the multicast group information and the upstream flow interface is also configured.
  • the multicast member management protocol uses IGMPv3 as an example.
  • the multicast routing protocol uses the PIM-SM protocol as an example. Run the IGMP protocol on the downstream traffic interface to maintain the multicast group member status on the downstream flow interface. If the member status changes, determine whether the device multicast member database needs to be changed. If necessary, send PIM on the upstream flow interface. SM protocol join/prune messages to represent device-level multicast group members Change of state.
  • the upstream traffic interface runs the PIM-SM protocol.
  • the multicast stream After receiving the multicast data stream on the upstream flow interface, the multicast stream is distributed according to the state of the multicast member on each downstream flow interface. If a multicast group address and/or multicast source address mapping is required, the multicast group address and/or the multicast source address are modified to the mapped address according to the mapping relationship when the multicast stream is sent on the downstream stream interface. .
  • the multicast routing method provided by the embodiment of the present invention is separately implemented by using a multicast routing device, which uses a multicast member management protocol on the downstream flow interface and multicast member management on the upstream flow interface.
  • the third embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes: The multicast routing device uses the IGMP protocol as the multicast router in the IP network 2; and receives the IGMP protocol based on the host in the IP network 2. The message, leaving the multicast group message, sending an inquiry message to the IP network 2, etc.;
  • the multicast routing device After receiving the multicast data stream from the multicast router in the IP network 1, the multicast routing device forwards the multicast data stream to the host in the IP network 2.
  • the multicast routing device configures a multicast group address of the upstream network and the downstream network.
  • the mapping between the multicast source address and the upstream source interface is also configured.
  • the multicast member management protocol uses IGMPv3 as an example. Run the IGMP protocol on the downstream interface to maintain the status of the multicast group member on the downstream flow interface. If the status of the member changes, determine whether the multicast member database needs to be changed. If necessary, send IGMP on the upstream interface. Report messages to represent changes in the status of multicast group members at the device level.
  • the upstream flow interface runs the IGMPv3 protocol and responds to the IGMP query messages of the upstream network according to the protocol. If there is a mapping between the multicast group address and/or the multicast source address, the mapped message is used in the sent report message.
  • the multicast stream After receiving the multicast data stream on the upstream flow interface, the multicast stream is distributed according to the multicast group member status on each downstream flow interface. If there is a mapping between multicast group address and/or multicast source address If the multicast stream is sent on the downstream flow interface, the multicast group address and/or the multicast source address are modified to the mapped address according to the mapping relationship.
  • the multicast routing method provided by the embodiment of the present invention is implemented by using a multicast routing device.
  • the multicast routing protocol is used on the downstream flow interface, and the multicast member management protocol is also used on the upstream flow interface.
  • the fourth embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes: the multicast routing device functions as a multicast router in the IP network 2, using the PIM-SM protocol; and receiving the PIM-based multicast router from the IP network 2 Join/pruning messages of the SM protocol, etc.;
  • the multicast routing device uses the IGMP protocol as the host in the IP network 1, sends the IGMP protocol-based report message to the multicast router in the IP network 1, leaves the multicast group message, and responds to the query message;
  • the multicast routing device After receiving the multicast data stream from the multicast router in the IP network 1, the multicast routing device forwards the multicast data stream to the multicast router in the IP network 2.
  • the mapping between the multicast group address and the multicast source address of the upstream network and the downstream network is configured on the multicast routing device, and the mapping between the multicast group information and the upstream flow interface is also configured.
  • the multicast routing protocol uses the PIN-SM protocol as an example.
  • the multicast member management protocol uses IGMPv3 as an example. Run the PIM-SM protocol on the downstream traffic interface to maintain the multicast group member status on the downstream flow interface. If the member status changes, determine whether the device multicast member database needs to be changed. If necessary, send it on the upstream flow interface.
  • IGMP reports messages to represent changes in device-level multicast group membership status.
  • the upstream flow interface runs the IGMPv3 protocol and responds to the IGMP query messages of the upstream network according to the protocol. If there is a mapping between a multicast group address and/or a multicast source address, the mapped address is used in the transmitted report message.
  • the multicast group member status is obtained through the multicast routing protocol.
  • the downstream network and the more downstream network closer to the host user need to consider the upstream flow interface address when running the multicast routing protocol.
  • the address of the upstream router on the multicast tree, the multicast tree does not bypass the downstream flow interface.
  • a possible method is that the multicast routing device functions as an RP on the downstream flow interface.
  • the downstream flow interface address is RP.
  • the address, on the downstream flow interface forwards the multicast data stream to the downstream branch of the shared tree, and simultaneously receives and processes the join/prune message sent by the downstream network.
  • the multicast stream After receiving the multicast data stream on the upstream flow interface, the multicast stream is distributed according to the multicast group member status on each downstream flow interface. If there is a mapping between multicast group address and/or multicast source address If the multicast stream is sent on the downstream flow interface, the multicast group address and/or the multicast source address are modified to the mapped address according to the mapping relationship.
  • the multicast routing method provided by the embodiment of the present invention is separately implemented by using a multicast routing device.
  • the multicast routing protocol is used on the downstream flow interface, and the multicast routing protocol is also used on the upstream flow interface.
  • the fifth embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
  • the multicast routing device acts as a multicast router in the IP network 2, and uses the PIM-SM protocol; receives the PIM-SM-based join/prune message from the multicast router in the IP network 2;
  • the multicast routing device After receiving the multicast data stream from the multicast router in the IP network 1, the multicast routing device forwards the multicast data stream to the multicast router in the IP network 2.
  • the mapping between the multicast group address and the multicast source address of the upstream network and the downstream network is configured on the multicast routing device, and the mapping between the multicast group information and the upstream flow interface is also configured.
  • the multicast routing protocol uses the PIN-SM protocol as an example. Run the PIM-SM protocol on the downstream interface to maintain the multicast group member status on the downstream flow interface. If the member status changes, determine whether the device multicast member database needs to be changed. If necessary, send the multicast member interface. The IGMP report message represents the change in the state of the multicast group member at the device level.
  • the upstream traffic interface runs the PIM-SM protocol.
  • the join/prune message is sent to the upstream multicast router to refresh the multicast group membership status and the join/prune message is sent to perform pruning suppression. If there is a mapping between the multicast group address and/or the multicast source address, the mapped address is used in the sent join/prune message.
  • the multicast group member status is obtained through the multicast routing protocol.
  • the downstream network and the more downstream network closer to the host user need to consider the upstream flow interface address when running the multicast routing protocol.
  • the address of the upstream router on the multicast tree, the multicast tree does not bypass the downstream flow interface.
  • a possible method is that the multicast routing device functions as an RP on the downstream flow interface.
  • the downstream flow interface address is RP.
  • the address, on the downstream flow interface forwards the multicast data stream to the downstream branch of the shared tree, and simultaneously receives and processes the join/prune message sent by the downstream network.
  • the multicast stream After receiving the multicast data stream on the upstream flow interface, the multicast stream is distributed according to the multicast group member status on each downstream flow interface. If a multicast group address and/or multicast source address mapping is required, when a multicast stream is sent on the downstream stream interface, the multicast group address and/or the multicast source address are mapped. The shot relationship is modified to the mapped address.
  • the multicast routing device described above may be an improved MGW.
  • the MGW may be used to control the MGW, so that the MGW can implement the multicast routing method provided by the embodiment of the present invention, and use the MGC to perform the MGW on the MGW.
  • the MGW may be used to control the MGW, so that the MGW can implement the multicast routing method provided by the embodiment of the present invention, and use the MGC to perform the MGW on the MGW.
  • some extensions to the media gateway control protocol between the MGC and the MGW are required, which are described in detail below.
  • the MGC controls the MGW to enable the MGW to implement the multicast routing method provided by the embodiment of the present invention.
  • the downstream flow interface of the MGW uses the multicast member management protocol and is used on the upstream flow interface of the MGW.
  • the multicast routing protocol, the sixth embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
  • the MGW acts as a multicast router in the IP network 2, and uses the IGMP protocol; receives an IGMP-based message from the host in the IP network 2, leaves the multicast group message, and sends an inquiry message to the IP network 2;
  • the MGW functions as a multicast router in the IP network 1 and uses the PIM-SM protocol; sends a PIM-SM based join/prune message to the multicast router in the IP network 1;
  • the MGW After receiving the multicast data stream from the multicast router in the IP network 1, the MGW forwards the multicast data stream to the host in the IP network 2.
  • the MGW is controlled by the MGC when performing some or all of the above processes, and the MGC controls the MGW through the extended H.248 protocol.
  • the MGC sets the H.248 event detection IGMP message to the MGW to join the multicast group.
  • the message is a report message.
  • the event igmprl can be set to detect one or more of the IGMP Report (Membership Report) message, the Join/Leave Multicast Group message, and the Query (Member Query) message.
  • the event has the following parameters: Parameter iprealm, its data
  • the type is String list, and the default value is null; its value is a list of IP domains that detect IGMP messages.
  • the value can refer to the realm attribute of the ipdc packet in the ITU-T H.248.41 standard.
  • the MGC can signal to the MGW to send an IGMP query message. Part or all of the sending and receiving of the IGMP query message may be automatically performed by the MGW according to the logic of the IGMP protocol specification for sending the query message to reduce the number of message interactions between the MGC and the MGW.
  • the MGW can also send periodic query messages according to the working principle of the querier itself.
  • the IGMP protocol specifies a large number of timers and parameters, such as group membership interval, Robustness Variable, Query Interval, etc. The duration of these timers and the values of the parameters can be
  • the configuration on the MGW can also be set or updated by the MGC through the H.248 protocol.
  • the MGW After receiving the message that the group joins the multicast group, the MGW can determine whether it needs to update the multicast group member status on the downstream flow interface. If there are multiple downstream flow interfaces, you need to configure the multicast group members of the downstream flow interfaces. The status is merged. If there is a change in the multicast data flow request on the upstream flow interface, the PIM-SM protocol-based join/prune message is required to be sent to the upstream flow interface.
  • the upstream interface (Upstream Interface) points to the direction of the root node of the shared tree or the source tree. Send and receive multicast routing protocol messages on this interface.
  • the downstream stream interface (Downstream Interface) deviates from the root node and connects to the host to perform multicast member management.
  • the MGW may also report the received group report message or the leaving multicast group message to the MGC, and the MGC performs authentication according to the user subscription information, the resource status, and the like, and performs corresponding operations according to the authentication result, for example, instructing the MGW to perform upstream flow.
  • the prune on the interface, or the MGC feeds back the received report message to the MGW. If the request to join the multicast group in the IGMP is rejected, the MGW is notified.
  • the notification mode includes directly responding to the MGW report message error code or subsequent transmission.
  • the message indicates the MGW, and the MGW rejects the request to join the multicast group.
  • the MGW can send a join/prune message to the upstream network according to the change of the state of the multicast group member on each downstream flow interface.
  • the MGC When the MGC reports the event, it can be, but is not limited to, carrying the following parameters:
  • the parameter iprealm the data type is String, the default value is null; its value is the IP field indication for detecting IGMP messages.
  • the value can refer to the realm attribute of the ipdc packet in the ITU-T H.248.41 standard.
  • the IP domain indications in the present invention can be replaced by interface names, which represent similar meanings. Thinking. If the event is set on a non-ROOT terminal and the terminal is created on an IP domain or interface, this parameter does not need to be reported.
  • Parameter type the data type is integer, the default value is 1; its value represents the message type. For example, 1 can represent IGMP report message (join message), 2 for IGMP leave group message, and 3 for IGMP query message.
  • the parameter rl the data type is string list, the default value is null; its value represents the content of the report message.
  • Each row in the list represents the content of the report for a group.
  • the content of each line is the group address of a multicast group.
  • IGMP V3 it is more complicated.
  • the format of each line in the list is as follows:
  • Multicast group address type, source address 1, source address 2,
  • Types can include the following:
  • 192.168.1.3 means to join the multicast group 224.100.200.3, the source address filtering type is MODE-IS-INCLUDE, and the source address list is 192.168.1.2 and 192.168.1.3, that is, it is required to join the multicast group 224.100.200.3, but the limit is The multicast source address must be 192.168.1.2 or 192.168.1.3.
  • the parameter lg the data type is String list, and the default value is null; its value represents the list of outgoing multicast groups and multicast source addresses. Each item in the list is a multicast group address and a multicast source address. .
  • the format is as follows:
  • Multicast group address multicast source address 1 , ... multicast source address n
  • the multicast source address is optional. If it is not included, it indicates all multicast source addresses.
  • 224.100.250.1 means that a member with a multicast group "224.100.250.1” left.
  • 224.100.250.1, 202.114.100.100 indicates that the multicast source address "202.1140.25.100” of the multicast group "224.100.250.1” is left.
  • the parameter sa the data type is String, which is the source address of the received IGMP message.
  • the H.248 needs to be extended.
  • the extended H.248 signal igmpre is used by the MGC to instruct the MGW to send an IGMP query message, and the signal includes the following parameters:
  • the parameter iprealm the data type is String, the default value is null; its value is the IP domain list for sending IGMP messages.
  • For the value refer to the realm attribute of the ipdc packet in the ITU-T H.248.41 standard.
  • the parameter mrc the data type is integer, the default value is null; its value represents the Max Resp Code field in the query message. Indicates the maximum length of time to wait for a response report.
  • the parameter ga, the data type is string, and the default value is null; its value represents the multicast group address in the query message.
  • the parameter sal is string list, and the default value is null; its value represents the list of multicast source addresses in the query message.
  • the MGW After receiving the igmpre signal of the MGC, the MGW constructs and sends an IGMP query message according to the parameters in the signal.
  • the MGC instructs the MGW to receive the report and send the PIM-SM protocol message, so the H.248 protocol should be extended accordingly, and the signal can be defined in the existing or newly defined H.248 packet for the MGC indication.
  • the MGW sends a PIM-SM protocol message.
  • the signal jp can be defined for the MGC to instruct the MGW to send a Join/Prune message, which includes one or more of the following parameters:
  • the parameter iprealm the data type is String, and the default value is null.
  • the value is the IP field of the join/prune message sent by PIM-SM.
  • the value can refer to the realm attribute of the ipdc packet in the ITU-T H.248.41 standard. This parameter can also be replaced by the interface name parameter, which has similar functions.
  • the parameter uns (Upstream Neighbor Address), the data type is string;
  • the value represents the address of the upstream neighbor. This value is encoded and populated into the corresponding field of the join pruning message.
  • the parameter ht ( HoldTime ), the data type is integer, the value of this parameter indicates the length of time the receiver remains in the pruning state, in seconds. This field is populated in the corresponding field of the join pruning message.
  • the parameter content, the data type is string list; each row in the list represents a join pruning request for a multicast group address (specified or wildcard).
  • Each line is a string of the following format: "Group address m, join source number n, pruning source number k, join source address 1, ... join source address n, pruning source address 1, ... pruning source Address k";
  • the multicast group address described above can specify a specific multicast group address or a wildcard format.
  • the source IP address corresponds to the Joined Source Address field
  • the pruning source address corresponds to the Pruned Source Address field. Both the source address and the prune source address support wildcards.
  • the corresponding H.248 signals and events can also be extended, so that the MGC can signal the MGW to send the PIM message, and the MGW detects the received PIM message through the event and reports it to the MGC.
  • the specific extension is similar to the previous H.248 protocol extension for join/prune, and will not be described here.
  • the multicast router sends a multicast data stream to the MGW.
  • the MGW receives the multicast data stream and forwards the received multicast data stream to the downstream stream interface with the multicast group member according to the status of the multicast group member on each downstream flow interface. on. If the MGW performs multicast group address mapping and/or multicast source address mapping, the multicast group address and/or source address of the forwarded multicast data stream must be replaced accordingly to avoid multicast groups.
  • the member host does not recognize the data stream.
  • the mapping relationship may be configured on the MGW, and the MGC may further instruct the MGW to perform media stream forwarding and mapping relationship by using an H.248 protocol message.
  • the signal gdmap may be defined, and the signal has the following parameters: (1) The parameter daa, the parameter content is a list of newly added or updated multicast group address mapping relationships. The format of each line in the list is:
  • Downstream IP domain indication Upstream IP domain indication, downstream multicast group address, upstream multicast group address mapped to
  • the content of the parameter is a new or updated list of multicast source address mapping relationships.
  • the format is: "downstream IP domain indication, upstream IP domain indication, downstream multicast group address, downstream multicast source address, upstream multicast source address mapped to"; "upstream multicast source address mapped” is optional. Without this item, it means that there is no need to map the source address.
  • the line only describes an upstream and downstream flow interface relationship of the multicast source address corresponding to the multicast group. If an upstream flow interface of the multicast source address of the multicast group has multiple downstream flow interfaces, the parameter is adopted. A multi-line description of the list.
  • dl, d2, 224.200.251.1, 192.168.1.100 means an IP network with a source address of "192.168.1.100” for multicast group "224.200.251.1” and an IP network with "d2" for IP domain It is the upstream network, and the IP network indicated by the IP domain as “dl” is the downstream network.
  • mapping entries There may be more mapping entries, so you can also extend the package to support auditing. MGC knows how many mappings exist from the audit results, and audits the contents of the mapping in batches. If the MGW sends a join/prune message to the upstream network according to the change of the multicast group member status on each downstream flow interface, the MGW must also know the address mapping relationship, the multicast group address and multicast in the join/prune message. The data stream source address must be translated to the address of the mapped upstream network by the address in the request message on the downstream stream interface.
  • the MGC controls the MGW to accept the report of the multicast member management protocol message on the downstream flow interface and instructs the MGW to send the multicast routing protocol message on the upstream flow interface, and another MGW relies on the configuration data to autonomously complete the foregoing multicast.
  • the method of routing function You need to configure support for multicast member management protocols and multicast routing protocols on the multicast routing device, and configure multicast groups and sources.
  • the address and the upstream and downstream flow interface relationship and the upstream router address (the part can be configured to receive the PIM-SM "bootstrap, message"), the multicast group address mapping relationship, and the multicast source address mapping relationship. Or all.
  • the configuration information may include the following items in part or in whole, but is not limited to the following:
  • Both the IGMP protocol and the PIM-SM protocol can be run on the same interface. This example is based on IGMP and PIM-SM. In fact, the principles of the present invention can be applied to other multicast member management protocols and multicast routing protocols. Therefore, if multiple protocols are available, you need to configure them.
  • the protocol type of the multicast member management protocol and multicast routing protocol used such as MLD, PIM-DM, and so on.
  • the IP address of the IGMP protocol running on the interface This address is the local address for sending and receiving IGMP messages.
  • An interface may have multiple addresses.
  • the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the IGMP protocol on an IP network.
  • the IP address of the PIM-SM protocol running on the interface This address is the local address of the PIM-SM message.
  • An interface may have multiple addresses.
  • the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the PIM-SM protocol on an IP network.
  • the address of the RP may be different RPs.
  • the multicast routing device may also obtain the RP address used by each multicast group from the received PIM-SM bootstrap message. But sometimes it is not available, relying on configuration.
  • the upstream router address of the interface may have different upstream router addresses.
  • the multicast routing device can obtain the address of the upstream router or the upstream router of the source tree through unicast routing, which is based on the RPF principle. However, if the multicast routing device may not be able to directly route with the RP or the like, the configuration method can also be implemented.
  • the multicast routing device sends a PIM-SM join/prune message of the multicast group to the upstream router through the interface.
  • This mapping relationship is used not only for the mapping of addresses in multicast routing messages, but also for modifying the multicast group address and source address in the IP header when forwarding multicast data streams.
  • (10) User permission settings Set the permissions of each user, including the range of multicast groups that can be joined. After receiving the IGMP request to join the multicast group, the multicast routing device may determine whether to discard the request message according to the permission configuration of the user. With the configuration of the present invention, the multicast routing device can forward the multicast data stream by itself.
  • the multicast routing device is a media gateway
  • some or all of the above settings of the media gateway may also be set or updated by the media gateway controller.
  • the following parameters may be extended on the signal gdmap:
  • Parameter upa The format is: "upstream multicast group address, upstream IP domain indication, filter condition, multicast source address 1, ... multicast source address n"; for example: "224.100.200.111, dl, include, 202.114.100.200,
  • the upstream flow interface of the multicast group whose multicast source address is "202.114.100.200” is in the IP domain "dl".
  • "224.100.200.111, dl, exclude, 202.114.100.100” indicates that the multicast group address is "224.100.200"
  • the upstream stream interface of the multicast group with all source addresses except "202.114.100.100” is in the IP domain "dl”.
  • the H.248 protocol can be further extended to allow the MGC to instruct the MGW to modify other configurations.
  • the signal gdmap can also carry the same configuration information by using the H.248 attribute, and the specific method is not described here. The two methods described above can be used in combination.
  • the MGC controls the MGW to enable the MGW to implement the multicast routing method provided by the embodiment of the present invention.
  • the downstream flow interface of the MGW uses the multicast member management protocol and is used on the upstream flow interface of the MGW.
  • the multicast member management protocol, the seventh embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
  • the MGW acts as a multicast router in the IP network 2, and uses the IGMP protocol; receives an IGMP-based message from the host in the IP network 2, leaves the multicast group message, and sends an inquiry message to the IP network 2;
  • the MGW acts as a host in the IP network 1 and uses the IGMP protocol; sends an IGMP-based report message to the multicast router in the IP network 1, leaving the multicast group message and responding to the query message;
  • the MGW After receiving the multicast data stream from the multicast router in the IP network 1, the MGW forwards the multicast data stream to the host in the IP network 2.
  • the MGW is controlled by the MGC when performing some or all of the above processes, and the MGC controls the MGW through the extended H.248 protocol.
  • the multicast member management protocol is used on both the downstream flow interface and the downstream flow interface of the MGW.
  • the processing on the downstream flow interface is the same as that in the case of the case 1, and the packets on the downstream flow interface are maintained by receiving the messages of the multicast group member and the outgoing multicast group that are processed by the multicast member management protocol.
  • the status of the broadcast timer sends a query message to defend the status of multicast group members on the downstream flow interface.
  • the device multicast member database is changed, and the multicast member management protocol joins the multicast group and leaves the multicast group to send the message to the MGW as a host. Subscription status.
  • the MGW After receiving the multicast member management protocol message on the downstream flow interface, the MGW reports the message to the MGC.
  • the MGC instructs the media gateway to send a multicast member management protocol message, such as an IGMP message, on the upstream flow interface.
  • a multicast member management protocol message such as an IGMP message
  • the upstream stream interface is configured to extend the signal igmpsrl.
  • the signal is used by the MGC to indicate that the MGW sends an IGMP message on the designated upstream flow interface, and the signal parameter carries the content of the field in the IGMP message.
  • the MGC controls the MGW to accept the report of the multicast member management protocol message on the downstream flow interface and instructs the MGW to send the multicast member management protocol message on the upstream flow interface
  • the MGW relies on configuration data to autonomously perform the aforementioned multicast member management functions.
  • the configuration information may include the following items in part or in whole, but is not limited to the following:
  • the IP address of the IGMP protocol running on the interface This address is the local address for sending and receiving IGMP messages.
  • An interface may have multiple addresses.
  • the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the IGMP protocol on an IP network.
  • This mapping relationship is used not only for the mapping of addresses in multicast routing messages, but also for modifying the multicast group address and source address in the IP header when forwarding multicast data streams.
  • User permission settings Set the permissions of each user, including the range of multicast groups that can be joined. After receiving the IGMP request to join the multicast group, the multicast routing device may determine whether to discard the request message according to the permission configuration of the user. With the configuration of the present invention, the multicast routing device can forward the multicast data stream by itself.
  • the multicast routing device is a media gateway
  • some or all of the above settings of the media gateway may also be set or updated by the media gateway controller.
  • the signal gdmap can be used to configure the multicast group address mapping and multicast source address mapping between the network where the upstream and downstream flow interfaces are located, and the mapping between the multicast group information and the upstream flow interface, that is, configuration (5). (6), (7).
  • the H.248 protocol can be further extended to allow the MGC to instruct the MGW to modify other configurations.
  • the MGC controls the MGW to enable the MGW to implement the multicast routing method provided by the embodiment of the present invention.
  • the downstream flow interface of the MGW uses the multicast routing protocol, and the upstream flow interface uses the group in the MGW.
  • the embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
  • the MGW acts as a multicast router in the IP network 2, and uses the PIM-SM protocol; receives the PIM-SM-based join/prune message from the multicast router in the IP network 2;
  • the MGW acts as a host in the IP network 1 and uses the IGMP protocol; sends an IGMP-based report message to the multicast router in the IP network 1, leaving the multicast group message and responding to the query message;
  • the MGW After receiving the multicast data stream from the multicast router in the IP network 1, the MGW forwards the multicast data stream to the multicast router in the IP network 2.
  • the MGW is controlled by the MGC when performing some or all of the above processes, and the MGC controls the MGW through the extended H.248 protocol.
  • the multicast routing protocol is used on the downstream flow interface of the MGW, and the multicast member management protocol is used on the upstream flow interface.
  • the processing on the upstream stream interface is the same as in Figure 7.
  • Received and processed on the downstream flow interface are multicast routing protocol messages, such as PIM-SM join/prune messages.
  • the MGW maintains the multicast group member status of each downstream flow interface by receiving the multicast routing protocol message and the state of the multicast timer, and further, the device multicast member database is maintained, and the device multicast member database is changed, and then flows upstream.
  • the interface sends the multicast group management protocol to join the multicast group and leave the multicast group to reflect the multicast subscription status of the MGW as a host.
  • the MGW After receiving the multicast routing protocol message on the downstream flow interface, the MGW reports the message to the MGC.
  • the MGW indicates that the MGW sends a multicast member management protocol message, such as an IGMP message, on the upstream flow interface.
  • the upstream signal is extended on the upstream interface. igmpsrl. This signal is used by the MGC to indicate that the MGW sends an IGMP message on the specified upstream flow interface.
  • the signal parameter carries the content of the field in the IGMP message.
  • the downstream flow interface obtains the status of the multicast group member on the interface through the multicast routing protocol.
  • the downstream network and the more downstream network closer to the host user can consider the upper layer when running the multicast routing protocol.
  • the address of the upstream interface is the address of the upstream router on the multicast tree.
  • the multicast tree does not bypass the downstream flow interface.
  • a feasible method is that the multicast routing device of the present invention is used as an RP on the downstream flow interface.
  • the downstream flow interface is an address of the RP, and the multicast data flow is forwarded to the downstream branch of the shared tree on the downstream flow interface, and the join/prune message sent by the downstream network is received and processed at the same time.
  • the MGC controls the MGW to accept the reported multicast routing protocol message on the downstream flow interface and instructs the MGW to send the multicast member management protocol message on the upstream flow interface
  • another MGW that relies on the configuration data to autonomously perform the foregoing The method of multicast routing function.
  • the configuration information may include the following items in part or in whole, but is not limited to the following:
  • Both the IGMP protocol and the PIM-SM protocol can be run on the same interface. This example is based on IGMP and PIM-SM. In fact, the principles of the present invention can be applied to other multicast member management protocols and multicast routing protocols. Therefore, if multiple protocols are available, you need to configure them.
  • the protocol type of the multicast member management protocol and multicast routing protocol used such as MLD, PIM-DM, and so on.
  • the IP address of the IGMP protocol running on the interface This address is the local address for sending and receiving IGMP messages.
  • An interface may have multiple addresses.
  • the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the IGMP protocol on an IP network.
  • the IP address of the PIM-SM protocol running on the interface This address is the local address of the PIM-SM message.
  • An interface may have multiple addresses.
  • the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the PIM-SM protocol on an IP network.
  • the multicast routing device sends a PIM-SM join/prune message of the multicast group to the upstream router through the interface.
  • This mapping relationship is used not only for the mapping of addresses in multicast routing messages, but also for modifying the multicast group address and source address in the IP header when forwarding multicast data streams.
  • the MGC controls the MGW to enable the MGW to implement the multicast routing method provided by the embodiment of the present invention.
  • the downstream flow interface of the MGW uses the multicast routing protocol, and the upstream flow interface usage group of the MGW.
  • the ninth embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
  • the MGW acts as a multicast router in the IP network 2, and uses the PIM-SM protocol; receives the PIM-SM-based join/prune message from the multicast router in the IP network 2;
  • the MGW functions as a multicast router in the IP network 1 and uses the PIM-SM protocol; sends a PIM-SM based join/prune message to the multicast router in the IP network 1;
  • the MGW After receiving the multicast data stream from the multicast router in the IP network 1, the MGW forwards the multicast data stream to the multicast router in the IP network 2.
  • the MGW is controlled by the MGC when performing some or all of the above processes, and the MGC controls the MGW through the extended H.248 protocol.
  • the multicast routing protocol is used on both the downstream flow interface and the upstream flow interface of the MGW.
  • Received and processed on the downstream flow interface is a multicast routing protocol message, such as a join/prune message of the PIM-SM.
  • the MGW maintains the multicast group member status of each downstream flow interface by receiving the multicast routing protocol message and the state of the multicast timer, and further, maintaining the device multicast member database, and changing the device multicast member database to the upstream
  • the stream interface sends a multicast routing protocol to join/prune operations.
  • the media gateway reports the message to the MGC.
  • the MGC instructs the MGW to send the multicast routing protocol message on the upstream flow interface. This requires extension of signals and events to the H.248 protocol.
  • the downstream flow interface obtains the multicast group member status on the interface through the multicast routing protocol.
  • the downstream network and the more downstream network closer to the host user can consider the upstream flow interface address as a group when running the multicast routing protocol.
  • the multicast tree does not bypass the downstream flow interface.
  • a feasible method is that the multicast routing device of the present invention functions as an RP on the downstream flow interface, and the downstream flow interface is an RP.
  • the address, on the downstream flow interface forwards the multicast data stream to the downstream branch of the shared tree, and simultaneously receives and processes the join/prune message sent by the downstream network.
  • the MGC controls the MGW to accept the reported multicast routing protocol message on the downstream flow interface and instructs the MGW to send the multicast routing protocol message on the upstream flow interface, and another MGW relies on the configuration data to autonomously complete the foregoing multicast routing.
  • Functional method You need to configure the multicast routing protocol (such as PIM-SM) on the multicast routing device, and configure the relationship between the multicast group and the source address and the upstream and downstream flow interfaces and the upstream router address. Part or all of the multicast group address mapping relationship and the multicast source address mapping relationship, such as the "bootstrap, message acquisition" of the PIM-SM.
  • the configuration information may include the following items in part or in whole, but is not limited to the following. Various items:
  • Both the IGMP protocol and the PIM-SM protocol can be run on the same interface. This example is based on IGMP and PIM-SM. In fact, the principles of the present invention can be applied to other multicast member management protocols and multicast routing protocols. Therefore, if multiple protocols are available, you need to configure them.
  • the protocol type of the multicast member management protocol and multicast routing protocol used such as MLD, PIM-DM, and so on.
  • the IP address of the PIM-SM protocol running on the interface This address is the local address of the PIM-SM message.
  • An interface may have multiple addresses.
  • the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the PIM-SM protocol on an IP network.
  • the address of the RP may be different RPs.
  • the multicast routing device may also obtain the RP address used by each multicast group from the received PIM-SM bootstrap message. But sometimes it is not Can get, depends on the configuration.
  • the upstream router address of the interface may have different upstream router addresses.
  • the multicast routing device can obtain the address of the upstream router or the upstream router of the source tree through unicast routing, which is based on the RPF principle. However, if the multicast routing device may not be able to directly route with the RP or the like (for example, other media gateways are separated), the configuration method can also be implemented.
  • the multicast routing device sends a PIM-SM join/prune message of the multicast group to the upstream router through the interface.
  • This mapping relationship is used not only for the mapping of addresses in multicast routing messages, but also for modifying the multicast group address and source address in the IP header when forwarding multicast data streams.
  • the MGW runs the multicast member management protocol and the multicast routing protocol on the downstream flow interface, and integrates the multicast subscription subscription of the downstream branch of the multicast tree where the downstream flow interface is located and the local downstream network connected to the downstream flow interface.
  • the multicast group member status of the host user maintains the multicast group member status of the downstream flow interface.
  • the MGW needs to act as the DR (designated router) or win the assertion on the downstream flow interface.
  • the change of the multicast group member status of the downstream flow interface affects the device multicast member database, and the corresponding swim flow interface processes the multicast group (with the multicast source address).
  • the multicast member management protocol can use both protocols to join or leave the multicast group on the upstream network. Therefore, the configurations in the four cases of FIG. 6 to FIG. 9 may be required at the same time, and further configuration of a multicast protocol type selected by the multicast interface on the upstream flow interface may be further configured to the multicast member management.
  • Type of protocol IGMP, MLD, etc.
  • type of multicast routing protocol PIM-SM, PIM-DM, etc.
  • the multicast group on the downstream flow interface can correspond to not only the upstream flow interface but also the type of the multicast protocol.
  • the extension method may refer to the upa parameter of the previous gdmap signal, or update the parameter to further describe the correspondence between the multicast group and the multicast protocol used on the upstream stream interface. I won't go into details here.
  • the signal events defined above can be sent to the ROOT terminal of the MGW.
  • the gateway-level ROOT terminal processes multicast member management protocol messages, multicast routing protocol messages, and multicast data streams on each interface. If a multicast group and a multicast source address do not need to perform address mapping between the upstream and downstream networks, the multicast source address of the multicast data stream sent to the downstream flow interface is the upstream stream interface that receives the multicast data stream. The multicast source address and the multicast group address that serves as the destination address of the multicast data stream also remain unchanged.
  • the destination address of the multicast data stream sent to the downstream flow interface is modified to be the upstream stream interface receiving the multicast data stream.
  • the multicast group address of the multicast group address on the downstream flow interface is modified to be the upstream stream interface receiving the multicast data stream.
  • the mapped multicast source address of the source address on the downstream flow interface is modified to be the IP terminal of the MGW. For example, an H.248 IP terminal at the interface level can be created.
  • the multicast data stream is forwarded after the IP address of the interface is created.
  • the multicast data stream is transmitted through the downstream stream interface 1 according to the above attribute configuration.
  • the network 1 is sent to the downstream network 1 corresponding to the downstream flow interface 1
  • the multicast data stream is sent to the downstream network 2 corresponding to the downstream flow interface 2 through the downstream flow interface 2.
  • the multicast routing device sends a multicast data stream to a downstream flow interface.
  • the multicast routing device can simultaneously Multiple downstream flow interfaces send multicast data streams, and the processing methods for each of the lower interfaces are similar, so this specification does not describe them.
  • the IGMP and PIM-SM protocols are used as an example in the present invention. Although the configuration of other protocols is not described, the use of other protocols is not excluded.
  • the MGC controls the MGW this specification extends H.248.
  • the MGCP protocol when used between the MGC and the MGW, the MGCP protocol can be similarly extended, and the description is not repeated here.
  • the parameter names, formats, and the like used in the present specification are provided for convenience of explanation, and are not limited to parameter names, formats, and the like.
  • the embodiment of the multicast routing apparatus provided by the present invention includes:
  • the trigger information acquiring unit 1101 is configured to obtain, from the downstream flow interface, trigger information that triggers a change of a state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information.
  • the database judging unit 1102 is configured to determine whether the change of the status of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to be changed, and the device multicast group member database summarizes the status of all the downstream flow interface multicast group members.
  • the interface determining unit 1103 is configured to: when the database determining unit determines that the change of the state of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to change, according to the correspondence between the multicast group information and the upstream flow interface, An upstream flow interface corresponding to the second multicast group information in the changed record in the multicast member database of the device;
  • the message sending unit 1104 is configured to: after the first message is configured according to the record changed in the device multicast member database, send the group to the upstream network corresponding to the upstream flow interface by using the upstream flow interface.
  • the first message of the broadcast group information the first message includes third multicast group information corresponding to the second multicast group information.
  • the message to join the multicast group includes the address of the host that requests to join the multicast group.
  • the multicast routing device provided by the embodiment of the present invention further includes:
  • the permission judging unit is configured to determine, when the database judging unit determines that the state of the multicast group member on the downstream flow interface is changed, causing the host to have the permission to join the multicast group, if yes, triggering
  • the interface determining unit searches for an upstream flow interface corresponding to the second multicast group information in the record changed in the device multicast member database according to the correspondence between the multicast group information and the upstream flow interface.
  • a network address mapping table maintenance unit configured to store a network address mapping table of a mapping relationship between a network address of an upstream network corresponding to the upstream flow interface and a network address of the downstream network corresponding to the downstream flow interface;
  • a multicast group information update unit configured to: When the first multicast group information includes the first multicast group address, the first mapping multicast group address of the first multicast group address in the upstream network is searched from the network address mapping table, and the first multicast group information is The first multicast group address is updated to the first mapped multicast group address; the trigger message sending unit sends the first message including the updated multicast group information;
  • the first mapping multicast group address of the first multicast group address in the upstream network is searched from the network address mapping table, And updating, by the first multicast source address of the first multicast source address, the first multicast group address in the first multicast group information to the first mapped multicast group address, and the first multicast The first multicast source address in the information is updated to the first mapped multicast source address; the trigger message sending unit sends the first message including the updated multicast group information;
  • the first multicast source address of the first multicast source address in the upstream network is searched from the network address mapping table, and the first multicast group information is obtained.
  • the multicast source address is updated to the first mapped multicast source address; the trigger message sending unit sends the first message including the updated multicast group information.
  • the addresses between different networks can be associated, so that multicast can proceed smoothly.
  • the multicast routing device needs to complete the forwarding of the multicast data stream. Therefore, the multicast routing device provided by the embodiment of the present invention further includes:
  • the multicast data stream receiving unit is configured to receive the multicast data stream of the multicast group from the upstream flow interface, and the multicast data stream sending unit is configured to distribute the multicast data stream according to the multicast group member status on the downstream flow interface.
  • the multicast data stream updating unit provided by the multicast routing device provided by the embodiment of the present invention is further configured to save the multicast group address mapping relationship between the upstream network and the downstream network in the network address mapping table. Modifying the multicast group address of the multicast data stream according to the network address mapping table, and triggering the multicast data stream sending unit to distribute the multicast data stream according to the multicast group member status on the downstream flow interface;
  • the multicast source address of the multicast data stream is modified according to the network address mapping table, and the multicast data stream sending unit is triggered according to the downstream.
  • the multicast group member status on the flow interface distributes the multicast data stream;
  • the triggering multicast data stream sending unit distributes the multicast data stream according to the multicast group member status on the downstream stream interface.
  • the media gateway embodiment provided by the present invention includes:
  • the trigger information acquiring unit 1201 is configured to obtain, from the downstream flow interface, trigger information that triggers a change in the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information.
  • the control information request sending unit 1202 is configured to send a control information request message to the media gateway controller, where the control information request includes the first multicast group information;
  • Control information receiving unit 1203, configured to receive response control information from the media gateway controller Requesting a control message for the message
  • the database judging unit 1204 is configured to determine whether the change of the multicast group member status on the downstream flow interface causes the record of the multicast member database of the device to be changed, and the device multicast group member database summarizes the status of all the downstream flow interface multicast group members.
  • the interface determining unit 1205 is configured to: when the database determining unit determines that the change of the multicast group member status on the downstream flow interface causes the record of the multicast member database of the device to change, according to the correspondence between the multicast group information and the upstream flow interface, An upstream flow interface corresponding to the second multicast group information in the changed record in the multicast member database of the device;
  • the message sending unit 1206 is configured to: after the first message is configured according to the record changed in the device multicast member database, send the first message including the multicast group information to the upstream network corresponding to the upstream flow interface by using the upstream flow interface, The first message includes third multicast group information corresponding to the second multicast group information.
  • the media gateway provided by the embodiment of the present invention may further include: the media gateway provided by the embodiment of the present invention is required to record the corresponding relationship between the network addresses of different networks in different networks.
  • a network address mapping table maintenance unit configured to store a network address mapping table of a mapping relationship between a network address of an upstream network corresponding to the upstream flow interface and a network address of the downstream network corresponding to the downstream flow interface;
  • a multicast group information update unit configured to: When the first multicast group information includes the first multicast group address, the first mapping multicast group address of the first multicast group address in the upstream network is searched from the network address mapping table, and the first of the multicast group information is obtained. The multicast group address is updated to the first mapped multicast group address; the trigger message sending unit sends the first message including the updated multicast group information;
  • the first mapping multicast group address of the first multicast group address in the upstream network is searched from the network address mapping table, And updating, by the first multicast source address of the first multicast source address, the first multicast group address in the first multicast group information to the first mapped multicast group address, and the first multicast The first multicast source address in the information is updated to the first mapped multicast source address; the trigger message sending unit sends the first message including the updated multicast group information;
  • the first multicast source address of the first multicast source address in the upstream network is searched from the network address mapping table, and the first multicast group information is obtained.
  • the first multicast source address is updated to the first mapped multicast source address; the trigger message sending unit sends the first message including the updated multicast group information.
  • the addresses between different networks can be associated, so that multicast can proceed smoothly.
  • the multicast data stream receiving unit is configured to receive the multicast data stream of the multicast group from the upstream flow interface, and the multicast data stream sending unit is configured to distribute the multicast data stream according to the multicast group member status on the downstream flow interface.
  • the multicast data stream updating unit provided by the multicast routing device provided by the embodiment of the present invention is further configured to save the multicast group address mapping relationship between the upstream network and the downstream network in the network address mapping table. Modifying the multicast group address of the multicast data stream according to the network address mapping table, and triggering the multicast data stream sending unit to distribute the multicast data stream according to the multicast group member status on the downstream flow interface;
  • the multicast source address of the multicast data stream is modified according to the network address mapping table, and the multicast data stream sending unit is triggered according to the downstream.
  • the multicast group member status on the flow interface distributes the multicast data stream;
  • the triggering multicast data stream sending unit distributes the multicast data stream according to the multicast group member status on the downstream stream interface.
  • FIG. 13 describes an embodiment of the media gateway controller, including:
  • the control information request receiving unit 1301 is configured to receive a first message from the media gateway, where the first message includes the first multicast group information;
  • the determining unit 1302 is configured to determine, according to the self-policy and the first multicast group information, whether to allow to join the multicast group.
  • the control information sending unit 1303 is configured to: when the determining unit determines that the multicast group is allowed to join the multicast group, send a control message that is allowed to join the multicast group, or send a control message that is not allowed to join the multicast group when the determining unit determines that the multicast group is not allowed to join the multicast group. .
  • the control information request receiving unit further comprises a host requesting to join the multicast group
  • the judging unit further determines, according to the host, whether to allow to join the multicast group.
  • the MGC provided by the embodiment of the present invention further includes:
  • the query trigger information sending unit is configured to send query trigger information to the media gateway when there is trigger of its own pre-configuration information.
  • the first embodiment of the multicast routing system includes: a multicast routing device 1401, configured to acquire, from a downstream flow interface, trigger information that triggers a change of a multicast group member state on a downstream flow interface.
  • the trigger information includes the first multicast group information. If the status of the multicast group member on the downstream flow interface is changed, the record of the multicast member database of the device in the multicast group member state is changed.
  • Corresponding relationship between the information and the upstream flow interface searching for an upstream flow interface corresponding to the second multicast group information in the changed record in the device multicast member database; constructing the first message according to the record changed in the device multicast member database And sending, by the upstream flow interface, the first message to the upstream network corresponding to the upstream flow interface, where the first message includes third multicast group information corresponding to the second multicast group information;
  • the first network 1402 is configured to receive the first message.
  • Figure 15 illustrates a second embodiment of the multicast routing system provided by the present invention, including:
  • the media gateway 1501 is configured to obtain, from the downstream flow interface, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information, and sends a control information request message to the media gateway controller.
  • Corresponding relationship between the information and the upstream flow interface searching for an upstream flow interface corresponding to the second multicast group information in the changed record in the device multicast member database; after constructing the first message according to the record changed in the device multicast member database, Sending, by the upstream flow interface, the first information, where the first message includes third multicast group information corresponding to the second multicast group information;
  • the triggering information that triggers the change of the state of the multicast group member on the downstream flow interface is obtained from the downstream flow interface, where the trigger information includes the first multicast group information.
  • the record of the device multicast member database that is in the state of the multicast group member is changed.
  • the mapping between the multicast group information and the upstream flow interface is used to find and be An upstream flow interface corresponding to the second multicast group information in the changed record; constructing the first message according to the changed record in the device multicast member database, where the first message includes the third multicast group information, and the third multicast group information Corresponding to the second multicast group information;
  • the first message is sent to the upstream network corresponding to the upstream flow interface by using the found upstream flow interface;
  • the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

A multicast routing method is provided, which includes: a trigger information for triggering multicast group members to change status on a downstream interface is obtained from the downstream interface of a media gateway, the trigger information includes the first multicast group information; if the status changing of the multicast group member on the downstream interface causes the record of the device multicast members database to change, an upstream interface of the media gateway corresponding to the second multicast group information in the changed record is searched according to the corresponding relationship between the multicast group information and the upstream interface; the first information is constructed according to the changed record of the device multicasting members database, the first information includes the third multicast group information; the first information is transmitted to a upstream network corresponding to the upstream interface through the upstream interface. A media gateway, a media gateway controller, a multicast routing system, a computer program product and a computer readable storage medium could execute the above multicast routing method. And the multicast may process between the different networks by using the method.

Description

组播路由方法及系统、 媒体网关和媒体网关控制器 本申请要求于 2007 年 9 月 3 日提交中国专利局、 申请号为 200710148050.4、 发明名称为"组播路由方法、 装置及系统、 媒体网关和媒体 网关控制器"的中国专利申请的优先权,其全部内容通过引用结合在本申请中。 技术领域  Multicast routing method and system, media gateway and media gateway controller The application is submitted to the Chinese Patent Office on September 3, 2007, and the application number is 200710148050.4, and the invention name is "multicast routing method, device and system, media gateway and The priority of the Chinese Patent Application for the Media Gateway Controller is hereby incorporated by reference in its entirety. Technical field
本发明涉及网络技术, 具体涉及组播路由方法及系统、媒体网关和媒体网 关控制器。  The present invention relates to network technologies, and in particular, to a multicast routing method and system, a media gateway, and a media gateway controller.
背景技术 Background technique
组播是在网络中应用比较广泛的一种主机通信方式,通过组播可以在网络 中将数据包发送到网络中的某个确定的网络节点集合,该网络节点集合称为组 播组( Multicast Group )。 组播的基本思想是这样的: 源主机只发送一份数据, 这份数据中的目的地址为组播组地址;组播组中的所有接收者都可接收到同样 的数据拷贝, 并且只有组播组内的主机可以接收该数据, 网络中其它主机不能 收到。 在网际协议 ( IP: Internet Protocol ) 网络中, 组播组用 D 类 IP地址 ( 224.0.0.0 ~ 239.255.255.255 ) 来标识。  Multicast is a host communication method widely used in the network. Through multicast, packets can be sent to a certain set of network nodes in the network. The set of network nodes is called a multicast group. Group ). The basic idea of multicast is as follows: The source host sends only one piece of data. The destination address in this data is the multicast group address; all recipients in the multicast group can receive the same copy of the data, and only the group The host in the broadcast group can receive the data, and other hosts in the network cannot receive it. In an Internet Protocol (IP) network, multicast groups are identified by a Class D IP address (224.0.0.0 ~ 239.255.255.255).
组播技术涵盖的内容非常丰富,如地址分配、组成员管理、组播报文转发、 路由建立等; 根据组播协议的作用范围, 组播协议可以分为主机 -路由器之间 的协议, 即组播成员管理协议, 和路由器-路由器之间的协议, 即组播路由协 议。其中,组播成员管理协议有应用于 IPV4网络的互联网组管理协议( IGMP )、 应用于 IPV6网络的组播侦听器发现协议( MLD )等; 组播路由协议又分为域 内组播路由协议及域间组播路由协议两类。域内组播路由协议包括稀疏模式独 立组播协议(PIM-SM )、 密集模式独立组播协议(PIM-DM )、 距离向量组播 路由选择协议 (DVMRP ) 等协议, 域间组播路由协议包括多协议边界网关 协议(MBGP )、 组播源发现协议(MSDP ) 等协议。  The multicast technology covers a wide range of content, such as address allocation, group member management, multicast packet forwarding, and route establishment. According to the scope of the multicast protocol, the multicast protocol can be divided into host-router protocols. The multicast member management protocol, and the protocol between the router and the router, that is, the multicast routing protocol. Among them, the multicast member management protocol has an Internet Group Management Protocol (IGMP) applied to the IPV4 network, a Multicast Listener Discovery Protocol (MLD) applied to the IPV6 network, and the like; the multicast routing protocol is further divided into an intra-domain multicast routing protocol. And inter-domain multicast routing protocols. Intra-domain multicast routing protocols include protocols such as sparse mode independent multicast protocol (PIM-SM), dense mode independent multicast protocol (PIM-DM), and distance vector multicast routing protocol (DVMRP). Inter-domain multicast routing protocols include Multi-Protocol Border Gateway Protocol (MBGP), Multicast Source Discovery Protocol (MSDP) and other protocols.
组播路由可以分为两大类:信源树( Source Tree )和共享树( Shared Tree )。 信源树是指以组播源作为树根 ,将组播源到每一个接收者的最短路径结合起来 构成的转发树。 由于信源树使用的是从组播源到接收者的最短路径, 因此也称 为最短路径树 ( SPT: shortest path tree )。 对于某个组, 网络要为任何一个向该 组发送报文的组播源建立一棵树。共享树以某个路由器作为路由树的树根, 该 路由器称为汇集点(RP: Rendezvous Point ), 将 RP到所有接收者的最短路结 合起来构成转发树。 使用共享树时, 对应某个组, 网络中只有一棵树。 所有的 组播源和接收者都使用这棵树来收发报文,组播源先向树根发送数据报文,之 后报文又向下转发到达所有的接收者。 Multicast routing can be divided into two categories: source tree and shared tree. A source tree is a forwarding tree formed by combining a multicast source as a root and a shortest path from a multicast source to each receiver. Since the source tree uses the shortest path from the multicast source to the receiver, it is also called the shortest path tree (SPT). For a group, the network establishes a tree for any multicast source that sends messages to the group. The shared tree uses a router as the root of the routing tree. The router is called a Rendezvous Point (RP: Rendezvous Point), which combines the shortest path of the RP to all receivers to form a forwarding tree. When using a shared tree, there is only one tree in the network for a certain group. All multicast sources and receivers use this tree to send and receive packets. The multicast source sends data packets to the root of the tree, and then the packets are forwarded down to all receivers.
随着组播技术的发展, 组播技术的应用也越来越广泛,但是当组播技术应 用在不同的网络之间的通信时, 以 IP网络为例, 如果不同的 IP网络对应不同 的 IP版本, 例如分别对应 IPV4和 IPV6的 IP网络; 或者是 IP版本相同, 但 是地址范围部分或全部重叠; 或者不同的 IP网络之间对于组播组地址规划以 及组播源地址的规划不同;此时普通的路由器并不能完成组播成员管理协议消 息、 或者组播路由协议消息、 或者组播数据流在不同 IP网络之间的转发; 特 别是当使用媒体网关(MGW: Media Gateway )作为边界网关时, 由于现有的 MGW并不具备处理如 IGMP、 MLD等组播成员管理协议消息、 以及 PIM-SM 等组播路由协议消息的能力, 所以当组播路径上有 MGW时, IGMP、 MLD等 组播成员管理协议消息或者 PIM-SM等组播路由协议消息以及组播数据流等 将被 MGW阻隔,从而导致组播不能在不同的网络之间进行, 降低了组播的应 用范围。  With the development of multicast technology, the application of multicast technology is more and more extensive. However, when multicast technology is applied to communication between different networks, the IP network is taken as an example. If different IP networks correspond to different IP addresses. Versions, for example, IP networks corresponding to IPV4 and IPV6 respectively; or IP versions are the same, but the address ranges are partially or completely overlapping; or different IP networks have different plans for multicast group address planning and multicast source addresses; A normal router cannot complete multicast member management protocol messages, or multicast routing protocol messages, or multicast data flows between different IP networks; especially when using a media gateway (MGW: Media Gateway) as a border gateway. Because the existing MGW does not have the ability to process multicast member management protocol messages such as IGMP, MLD, and multicast routing protocol messages such as PIM-SM, when there are MGWs in the multicast path, IGMP, MLD, and so on. Broadcast member management protocol messages or multicast routing protocol messages such as PIM-SM and multicast data streams will be blocked by the MGW, resulting in It can not be broadcast between different networks, reducing the range of multicast applications.
发明内容 Summary of the invention
本发明实施例解决的技术问题是提供组播路由方法及系统、媒体网关和媒 体网关控制器,使用本发明实施例提供的技术方案,使组播能在不同的网络之 间进行。  The technical problem to be solved by the embodiments of the present invention is to provide a multicast routing method and system, a media gateway, and a media gateway controller. The technical solution provided by the embodiment of the present invention enables multicast to be performed between different networks.
本发明实施例提供了一种组播路由方法, 包括:  The embodiment of the invention provides a multicast routing method, including:
从媒体网关的下游流接口获取触发所述下游流接口上的组播组成员状态 发生改变的触发信息, 所述触发信息包括第一组播组信息;  And obtaining, by the downstream flow interface of the media gateway, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information;
若所述下游流接口上的组播组成员状态发生改变导致设备组播成员数据 库的记录发生改变 ,获取根据所述第一组播组信息以及组播组信息与上游流接 口的对应关系查找到的所述媒体网关的上游流接口,所述上游流接口与被改变 的记录中的第二组播组信息对应,所述设备组播成员数据库汇总了下游流接口 组播组成员状态, 所述第二组播组信息与所述第一组播组信息对应;  If the status of the multicast group member on the downstream flow interface is changed, the record of the multicast group member of the device is changed, and the information is obtained according to the first multicast group information and the correspondence between the multicast group information and the upstream flow interface. The upstream flow interface of the media gateway, the upstream flow interface is corresponding to the second multicast group information in the changed record, and the device multicast member database summarizes the status of the downstream flow interface multicast group member, The second multicast group information corresponds to the first multicast group information;
根据所述设备组播成员数据库中改变的记录构造第一消息,所述第一消息 包括第三组播组信息, 所述第三组播组信息与第二组播组信息对应; 通过所述查找到的上游流接口向与所述上游流接口对应的上游网络发送 所述第一消息。 Constructing a first message according to the changed record in the device multicast member database, the first message And including the third multicast group information, where the third multicast group information is corresponding to the second multicast group information, and sending, by using the found upstream flow interface, the first network to the upstream network corresponding to the upstream flow interface. Message.
本发明实施例还提供一种媒体网关, 包括:  The embodiment of the invention further provides a media gateway, including:
触发信息获取单元,用于从下游流接口获取触发所述下游流接口上的组播 组成员状态发生改变的触发信息, 所述触发信息包括第一组播组信息;  The trigger information acquiring unit is configured to obtain, from the downstream flow interface, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information;
控制信息请求发送单元, 用于向媒体网关控制器发送控制信息请求消息, 所述控制信息请求包括所述第一组播组信息;  a control information request sending unit, configured to send a control information request message to the media gateway controller, where the control information request includes the first multicast group information;
控制信息接收单元,用于接收来自所述媒体网关控制器响应所述控制信息 请求消息的控制消息;  a control information receiving unit, configured to receive a control message from the media gateway controller in response to the control information request message;
数据库判断单元 ,用于判断所述下游流接口上的组播组成员状态的改变是 否导致设备组播成员数据库的记录发生改变,所述设备组播组成员数据库汇总 所有下游流接口组播组成员状态;  The database judging unit is configured to determine whether the change of the state of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to be changed, and the device multicast group member database summarizes all the members of the downstream flow interface multicast group. State
接口确定单元 ,用于在所述数据库判断单元判断所述下游流接口上的组播 组成员状态的改变导致设备组播成员数据库的记录发生改变时,根据组播组信 息与上游流接口的对应关系,查找与所述设备组播成员数据库中改变的记录中 第二组播组信息对应的上游流接口;  An interface determining unit, configured to: when the database determining unit determines that the change of the state of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to change, according to the correspondence between the multicast group information and the upstream flow interface Relationship, searching for an upstream flow interface corresponding to the second multicast group information in the changed record in the multicast member database of the device;
消息发送单元,用于在根据所述设备组播成员数据库中改变的记录构造第 一消息后 ,通过所述上游流接口向与所述上游流接口对应的上游网络发送包括 组播组信息的第一消息,所述第一消息包括与第二组播组信息对应的第三组播 组信息。  a message sending unit, configured to: after the first message is configured according to the record changed in the multicast member database of the device, send, by using the upstream flow interface, the information including the multicast group information to the upstream network corresponding to the upstream flow interface a message, the first message includes third multicast group information corresponding to the second multicast group information.
本发明实施例还提供一种媒体网关控制器, 包括:  The embodiment of the invention further provides a media gateway controller, including:
控制信息请求接收单元, 用于接收来自媒体网关的控制信息请求消息, 所 述控制信息请求消息包括第一组播组信息;  a control information request receiving unit, configured to receive a control information request message from the media gateway, where the control information request message includes first multicast group information;
判断单元,用于根据自身策略及所述第一组播组信息判断是否允许加入组 播组;  a determining unit, configured to determine, according to the self-policy and the first multicast group information, whether to allow to join the multicast group;
控制信息发送单元,用于在所述判断单元判断允许加入组播组时发送允许 加入组播组的控制消息、或在所述判断单元判断不允许加入组播组时发送不允 许加入组播组的控制消息。 本发明实施例还提供一种组播路由系统, 包括: The control information sending unit is configured to: when the determining unit determines that the multicast group is allowed to join the multicast group, send a control message that is allowed to join the multicast group, or send the multicast group not allowed when the determining unit determines that the multicast group is not allowed to join the multicast group. Control message. The embodiment of the invention further provides a multicast routing system, including:
媒体网关,用于从下游流接口获取触发所述下游流接口上的组播组成员状 态发生改变的触发信息, 所述触发信息包括第一组播组信息, 向媒体网关控制 器发送控制信息请求消息;接收响应所述控制信息请求消息的允许加入组播组 的控制消息;若所述下游流接口上的组播组成员状态发生改变导致汇总所有下 游流接口组播组成员状态的设备组播成员数据库的记录发生改变,根据组播组 信息与上游流接口的对应关系,查找与所述设备组播成员数据库中改变的记录 中第二组播组信息对应的上游流接口;在根据所述设备组播成员数据库中改变 的记录构造第一消息后, 通过所述上游流接口发送所述第一信息, 所述第一消 息包括与第二组播组信息对应的第三组播组信息;  The media gateway is configured to obtain, from the downstream flow interface, trigger information that triggers a change of a state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information, and sends a control information request to the media gateway controller. And receiving a control message that is allowed to join the multicast group in response to the control information request message; if the status of the multicast group member on the downstream flow interface is changed, the device multicasts that summarize the state of all the downstream flow interface multicast group members are received. The record of the member database is changed, and the upstream flow interface corresponding to the second multicast group information in the record changed in the multicast member database of the device is searched according to the correspondence between the multicast group information and the upstream flow interface; After the first message is configured, the first message is sent by the upstream flow interface, where the first message includes third multicast group information corresponding to the second multicast group information.
媒体网关控制器, 用于接收所述控制信息请求消息,根据所述第一组播组 信息判断是否允许加入组播组,在判断允许加入组播组时发送允许加入组播组 的所述控制消息;  The media gateway controller is configured to receive the control information request message, determine, according to the first multicast group information, whether to allow to join the multicast group, and send the control that is allowed to join the multicast group when determining to allow the joining of the multicast group. Message
第一网络, 用于接收所述第一消息。  The first network is configured to receive the first message.
本发明实施例还提供一种计算机程序产品,所述计算机程序产品包括计算 机程序代码, 当所述计算机程序代码被一个计算机执行的时候, 所述计算机程 序代码可以使得所述计算机执行组播路由方法中的任意一项步骤。  Embodiments of the present invention also provide a computer program product, the computer program product comprising computer program code, when the computer program code is executed by a computer, the computer program code may cause the computer to execute a multicast routing method Any of the steps in .
本发明还实施例还提供一种计算机可读存储介质,所述计算机存储计算机 程序代码, 当所述计算机程序代码被一个计算机执行的时候, 所述计算机程序 代码可以使得所述计算机执行组播路由方法中的任意一项步骤。  A further embodiment of the present invention also provides a computer readable storage medium, the computer storing computer program code, the computer program code, when the computer program code is executed by a computer, the computer program code to cause the computer to perform multicast routing Any of the steps in the method.
从本发明实施例提供的以上技术方案可以看出,本发明实施例在下游流接 口上的组播组成员状态发生改变, 并因此引起设备组播成员数据库改变时, 可 以才艮据组播组信息与上游流接口 ( Upstream Interface )的对应关系确定对应的 上游流接口, 并构建第一消息通过上游流接口发送,从而使上游流接口对应的 上游流网络与下游流接口( Downstream Interface )对应的下游网络的组播连接 起来, 使组播可以在两个不同的网络之间进行, 使组播的应用范围更为广泛。 附图说明  It can be seen from the foregoing technical solutions provided by the embodiments of the present invention that, when the state of the multicast group member on the downstream flow interface is changed, and the device multicast member database is changed, the multicast group can be learned. Corresponding relationship between the information and the upstream interface (upstream interface) determines the corresponding upstream flow interface, and the first message is sent through the upstream flow interface, so that the upstream flow network corresponding to the upstream flow interface corresponds to the downstream flow interface (downstream interface). The multicast of the downstream network is connected, so that multicast can be performed between two different networks, so that the application range of multicast is wider. DRAWINGS
图 1为本发明实施例中组播路由方法实施例一的流程图;  1 is a flowchart of Embodiment 1 of a multicast routing method according to an embodiment of the present invention;
图 2为本发明实施例中组播路由方法实施例二的示意图; 图 3为本发明实施例中组播路由方法实施例三的示意图; 2 is a schematic diagram of Embodiment 2 of a multicast routing method according to an embodiment of the present invention; FIG. 3 is a schematic diagram of Embodiment 3 of a multicast routing method according to an embodiment of the present disclosure;
图 4为本发明实施例中组播路由方法实施例四的示意图;  4 is a schematic diagram of Embodiment 4 of a multicast routing method according to an embodiment of the present invention;
图 5为本发明实施例中组播路由方法实施例五的示意图;  FIG. 5 is a schematic diagram of Embodiment 5 of a multicast routing method according to an embodiment of the present disclosure;
图 6为本发明实施例中组播路由方法实施例六的示意图;  FIG. 6 is a schematic diagram of Embodiment 6 of a multicast routing method according to an embodiment of the present disclosure;
图 7为本发明实施例中组播路由方法实施例七的示意图;  FIG. 7 is a schematic diagram of Embodiment 7 of a multicast routing method according to an embodiment of the present disclosure;
图 8为本发明实施例中组播路由方法实施例八的示意图;  FIG. 8 is a schematic diagram of Embodiment 8 of a multicast routing method according to an embodiment of the present disclosure;
图 9为本发明实施例中组播路由方法实施例九的示意图;  FIG. 9 is a schematic diagram of Embodiment 9 of a multicast routing method according to an embodiment of the present disclosure;
图 10为本发明实施例中组播数据流的转发示意图;  FIG. 10 is a schematic diagram of forwarding a multicast data stream according to an embodiment of the present invention;
图 11为本发明实施例中组播路由装置实施例的结构图;  FIG. 11 is a structural diagram of an embodiment of a multicast routing apparatus according to an embodiment of the present invention;
图 12为本发明实施例中媒体网关实施例的结构图;  FIG. 12 is a structural diagram of an embodiment of a media gateway according to an embodiment of the present invention;
图 13为本发明实施例中媒体网关控制器实施例的结构图;  13 is a structural diagram of an embodiment of a media gateway controller according to an embodiment of the present invention;
图 14为本发明实施例中组播路由系统实施例一的结构图;  FIG. 14 is a structural diagram of Embodiment 1 of a multicast routing system according to an embodiment of the present invention;
图 15为本发明实施例中组播路由系统实施例二的结构图。  FIG. 15 is a structural diagram of Embodiment 2 of a multicast routing system according to an embodiment of the present invention.
具体实施方式 detailed description
为使本发明的目的、 技术方案、 及优点更加清楚明白, 以下参照附图并举 实施例, 对本发明进一步详细说明。  The present invention will be further described in detail below with reference to the drawings and embodiments.
通过组播路由协议可以建立组播的共享树或者信源树,对于某个具体的组 播组来说, 朝着组播树的源头方向的接口叫上游流(upstream )接口, 上游流 接口连接的网络叫上游网络; 朝着组播用户方向, 远离组播树根节点方向的接 口叫下游流( downstream )接口, 下游流接口连接的网络叫下游网络。 组播树 可能是信源树或者是共享树。 所说的组播组可以不对组播源地址进行过滤,也 可能有过滤条件来限定组播源地址, 例如包括(include )组播源地址列表, 表 示可以接收来自该组播源地址列表中的组播源地址的组播数据流; 或者排除 ( exclude )组播源地址列表,表示不接收该组播源地址列表中的组播源地址的 组播数据流。上游流接口和下游流接口上可以运行组播成员管理协议和组播路 由协议, 对于某个组播组(限定组播源地址或者不限定)这些接口使用组播协 议可能包含如下四种工作方式: ( 1 )上游流接口使用组播成员管理协议, 下游 流接口使用组播路由协议; (2 )上游流接口使用组播成员管理协议, 下游流接 口使用组播成员管理协议; (3 )上游流接口使用组播路由协议, 下游流接口使 用组播路由协议; (4 )上游流接口使组播路由协议, 下游流接口使用组播成员 管理协议。在上游流接口上使用组播成员管理协议时, 该设备相当于在该接口 上对上游网络实现主机功能, 可以要求加入或者离开组播组。 其它情况下, 该 设备在接口上实现路由器功能。 需要说明的是, 此处描述的主机功能和路由器 功能是针对特定的上游流接口和下游流接口而言的,而上游流接口和下游流接 口可能针对所有的组播组, 也可能只针对部分组播组。 也就是说, 对于某个组 播组, 某接口可能是上游流接口, 而对于另外一个组播组, 该接口可能是下游 流接口。还可能针对某个组播组地址的某一个组播源地址, 某接口是上游流接 口 , 而对该组播组地址的另外一个组播源地址, 该接口是下游流接口。 The multicast routing tree can be used to establish a multicast shared tree or a source tree. For a specific multicast group, the interface to the source of the multicast tree is called the upstream interface and the upstream interface is connected. The network is called the upstream network. In the direction of the multicast user, the interface away from the root node of the multicast tree is called the downstream interface, and the network connected to the downstream flow interface is called the downstream network. The multicast tree may be a source tree or a shared tree. The multicast group may not filter the multicast source address, or may have a filtering condition to limit the multicast source address, for example, including a multicast source address list, indicating that the multicast source address list can be received from the multicast source address list. The multicast data stream of the multicast source address; or the exclusion or exclusion of the multicast source address list, indicating that the multicast data stream of the multicast source address in the multicast source address list is not received. The multicast member management protocol and the multicast routing protocol can be run on the upstream and downstream flow interfaces. The multicast protocol for a multicast group (with or without a qualified multicast source address) may include the following four working modes. (1) The upstream flow interface uses the multicast member management protocol, and the downstream flow interface uses the multicast routing protocol; (2) the upstream flow interface uses the multicast member management protocol, and the downstream flow interface uses the multicast member management protocol; (3) upstream The flow interface uses a multicast routing protocol, and the downstream flow interface enables Multicast routing protocol; (4) The upstream flow interface enables the multicast routing protocol, and the downstream flow interface uses the multicast member management protocol. When the multicast member management protocol is used on the upstream interface, the device is equivalent to implementing the host function on the upstream network and can join or leave the multicast group. In other cases, the device implements router functions on the interface. It should be noted that the host function and the router function described herein are for a specific upstream stream interface and a downstream stream interface, and the upstream stream interface and the downstream stream interface may be for all multicast groups, or may only be for a part. Multicast group. That is, for a multicast group, an interface may be an upstream flow interface, and for another multicast group, the interface may be a downstream flow interface. It is also possible for a multicast source address of a multicast group address, an interface is an upstream flow interface, and another multicast source address of the multicast group address, the interface is a downstream flow interface.
其中, 本发明提供的组播成员管理和组播组路由方法实施例一如图 1 所 示, 包括:  The first embodiment of the multicast member management and multicast group routing method provided by the present invention is as shown in FIG. 1 , and includes:
步骤 101、从下游流接口获取触发该下游流接口上的组播组成员状态发生 改变的触发信息, 触发信息包括第一组播组信息;  Step 101: Acquire, from the downstream flow interface, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information.
其中, 触发信息可以包含加入组播组的消息、 离开组播组的消息、 加入组 播组和离开组播组的消息、查询消息的应答消息和组播定时器超时中的任意一 种或其组合; 请求加入组播组的消息可能是 IGMP的报告消息, 或者 PIM-SM 的加入 /剪枝消息等, 请求离开组播组的消息可能是 IGMPv3 的报告消息, IGMPv2的离开组播组消息,或者 PIM-SM的加入 /剪枝消息等。请求加入组播 组和请求离开组播组的消息是指一个消息中包含了加入组播组的请求和离开 组播组的请求, 例如 IGMPv3的报告消息等。 查询消息主要用于组播成员管理 协议, 例如 IGMP协议。  The trigger information may include any one of a message that joins the multicast group, a message that leaves the multicast group, a message that joins the multicast group and the outgoing multicast group, a response message of the query message, and a multicast timer timeout or The message requesting to join the multicast group may be an IGMP report message or a join/prune message of the PIM-SM. The message requesting to leave the multicast group may be an IGMPv3 report message, and the IGMPv2 leaving the multicast group message. Or PIM-SM join/prune messages, etc. A message requesting to join a multicast group and requesting to leave a multicast group means that a message includes a request to join a multicast group and a request to leave a multicast group, such as a report message of IGMPv3. Query messages are mainly used for multicast member management protocols, such as IGMP.
组播组信息可以包括组播组地址, 或组播组地址和组播源地址, 或组播组 地址、组播源地址和组播源地址过滤条件; 组播源地址过滤条件是指允许或者 禁止特定的组播源地址,例如 IGMPv3的组播源地址的过滤条件。 而 PIM-SM 的加入 /剪枝消息中分别列出加入的源地址列表和剪枝的源地址列表。 其中, IGMPv2就不支持对组播源地址进行过滤。如果下游流接口上使用 IGMP协议, 则以上第一组播组信息在 IGMP的报告消息或者离开消息中携带;如果下游流 接口上使用 PIM-SM协议, 则以上第一组播组信息在 PIM-SM的加入 /剪枝消 息中携带; 下游流接口上的触发信息包括接收到的组播协议消息,例如组播成员管理 协议消息或者组播路由协议消息,还包括组播定时器的超时以及组播查询消息 的应答,这些触发信息可能会引起下游流接口上的组播组成员状态的改变, 进 一步可能影响到设备组播成员数据库的记录, 从而需要向上游流接口发送消 息, 通知上游组播路由器。 The multicast group information can include the multicast group address, the multicast group address and the multicast source address, or the multicast group address, the multicast source address, and the multicast source address filtering condition. The multicast source address filtering condition refers to the permission or A specific multicast source address, such as the filtering condition of the multicast source address of IGMPv3, is forbidden. The join/prune messages of the PIM-SM list the source address list and the source address list of the prune respectively. IGMPv2 does not support filtering of multicast source addresses. If the IGMP protocol is used on the downstream flow interface, the first multicast group information is carried in the IGMP report message or the leave message. If the PIM-SM protocol is used on the downstream flow interface, the first multicast group information is in the PIM- Carry in the SM join/prune message; The trigger information on the downstream flow interface includes the received multicast protocol message, such as a multicast member management protocol message or a multicast routing protocol message, and includes a timeout of the multicast timer and a response of the multicast query message, and the trigger information may be The status of the multicast group member on the downstream flow interface is changed, which may affect the record of the multicast member database of the device. Therefore, you need to send a message to the upstream flow interface to notify the upstream multicast router.
步骤 102、 若下游流接口上的组播组成员状态发生改变导致汇总所有下游 流接口组播组成员状态的设备组播成员数据库的记录发生改变,根据组播组信 息与上游流接口的对应关系,查找与发生改变的记录中的第二组播组信息对应 的上游流接口;  Step 102: If the status of the multicast group member on the downstream flow interface is changed, the record of the multicast member database of the multicast group member status of all the downstream flow interface members is changed, and the correspondence between the multicast group information and the upstream flow interface is changed. Finding an upstream flow interface corresponding to the second multicast group information in the record in which the change occurs;
因为维护了组播组信息和上游流接口的对应表,该对应表中记录了组播组 信息与上游流接口的对应关系,因而根据组播组信息可以确定其对应的上游流 接口; 该对应表可以是预先配置的, 并可以实时对其更新;  The mapping between the multicast group information and the upstream flow interface is recorded in the correspondence table, and the corresponding upstream flow interface can be determined according to the multicast group information; The table can be pre-configured and can be updated in real time;
步骤 103、 根据设备组播成员数据库中改变的记录构造第一消息, 通过查 找到的上游流接口向与该上游流接口对应的上游网络发送第一消息;  Step 103: Construct a first message according to the changed record in the multicast member database of the device, and send a first message to the upstream network corresponding to the upstream flow interface by using the found upstream flow interface.
其中, 第一消息包括与第一组播组信息对应的第三组播组信息,一般情况 下, 第三组播组信息与第一组播组信息中对应部分的信息是相同的,但在上游 网络和下游网络之间的网络地址存在映射关系时,第三组播组信息由第一组播 组信息根据网络地址之间的映射关系更新网络地址后得到;若第一消息是组播 成员管理协议, 则上游网络中的 DR处理该消息, 如果需要进一步向组播树的 根节点发送组播路由协议消息的加入 /剪枝消息。 若第一消息是组播路由协议 消息, 该消息发向组播树的上游组播路由器。  The first message includes the third multicast group information corresponding to the first multicast group information. Generally, the information of the third multicast group information and the corresponding part of the first multicast group information are the same, but When the network address between the upstream network and the downstream network has a mapping relationship, the third multicast group information is obtained by updating the network address according to the mapping relationship between the first multicast group information and the network address; if the first message is a multicast member The management protocol, the DR in the upstream network processes the message, and if it needs to further send the join/prune message of the multicast routing protocol message to the root node of the multicast tree. If the first message is a multicast routing protocol message, the message is sent to the upstream multicast router of the multicast tree.
本发明实施例将不同的 IP网络之间的组播组地址和 /或组播源地址进行映 射, 并且通过网络设备进行连接。 例如被连接的网络一中的组播组 G1在网络 二中被规划映射到 G2, 网络一中的组播源地址 S1 在网络二中被规划映射到 S2;网络一和网络二可能是相同版本的 IP网络,也可能是不同版本的 IP网络, 例如网络一是 IPv4网络, 网络二是 IPv6网络。 如果在网络二中请求获得网络 一提供的组播, 而组播组地址和 /或组播源地址的规划不同, 则必须两个网络 之间的组播组地址和 /或组播源地址进行映射。 组播路由协议消息、 组播成员 管理协议消息和组播数据流在跨越网络一和网络二时, 组播组地址和 /或组播 源地址要根据映射关系做相应的更新。组播路由协议消息、组播成员管理协议 消息和组播数据流使用相同的地址映射关系以实现组播协议消息对组播数据 流的控制。 The embodiments of the present invention map multicast group addresses and/or multicast source addresses between different IP networks, and connect through network devices. For example, the multicast group G1 in the connected network 1 is planned to be mapped to G2 in the network 2, and the multicast source address S1 in the network 1 is planned to be mapped to the S2 in the network 2; the network 1 and the network 2 may be the same version. The IP network may also be a different version of the IP network, for example, the network is an IPv4 network, and the network 2 is an IPv6 network. If the multicast provided by the network 1 is requested in the network 2, and the multicast group address and/or the multicast source address are planned differently, the multicast group address and/or the multicast source address between the two networks must be performed. Mapping. Multicast routing protocol messages, multicast member management protocol messages, and multicast traffic flows across network ones and two networks, multicast group addresses and/or multicasts The source address should be updated accordingly according to the mapping relationship. The multicast routing protocol message, the multicast member management protocol message, and the multicast data stream use the same address mapping relationship to implement multicast protocol message control on the multicast data stream.
第一消息中携带的组播组信息中的组播组地址和组播源地址,可以与下游 流接口获取的触发信息所包含的组播组信息中的组播组地址和组播源地址相 同, 也可以是经过映射的组播组地址和组播源地址。  The multicast group address and the multicast source address in the multicast group information carried in the first message may be the same as the multicast group address and the multicast source address in the multicast group information included in the trigger information obtained by the downstream flow interface. It can also be a mapped multicast group address and a multicast source address.
由于本实施例在下游流接口上的组播组成员状态发生改变,并因此引起设 备组播成员数据库改变后, 可以确定对应的上游流接口, 重新构建请求加入和 /或离开组播组的消息通过上游流接口发送, 从而使两个网络中的组播连接起 来, 使组播可以在两个不同的网络之间进行, 使组播的应用范围更为广泛。  After the state of the multicast group member on the downstream flow interface is changed, and the device multicast member database is changed, the corresponding upstream flow interface can be determined, and the message requesting to join and/or leave the multicast group is reconstructed. Sending through the upstream flow interface, so that the multicasts in the two networks are connected, so that multicast can be performed between two different networks, so that the application range of multicast is wider.
在实际应用中,根据组播的应用范围或应用领域的不同, 可能需要对请求 加入组播组的主机进行鉴权, 或者对加入组播组的总的主机数量进行控制, 或 者对某个下游网络加入组播组的主机数量进行控制;此时就需要对主机加入组 播组的权限进行判断, 一般情况下, 都是根据主机的地址进行判断; 但是不排 除使用其他唯一标识主机的信息进行判断的情况 ,如使用主机在这个网络中的 唯一编号或主机在整个网络中唯一的主机名等。  In actual applications, depending on the application scope of the multicast or the application domain, you may need to authenticate the host that requests to join the multicast group, or control the total number of hosts that join the multicast group, or The number of hosts that the network joins the multicast group is controlled. In this case, the host needs to be authenticated by the host. In general, the host is determined based on the address of the host. Judging the situation, such as using the unique number of the host in this network or the host name unique to the host in the entire network.
以组播成员管理协议中的 IGMP协议和组播路由协议中的 PIM-SM协议来 说明本发明实施例提供的组播路由方法,釆用其他组播成员管理协议和组播路 由协议时处理过程类似。  The multicast routing method provided by the embodiment of the present invention is described by using the IGMP protocol in the multicast member management protocol and the PIM-SM protocol in the multicast routing protocol, and the process is used when other multicast member management protocols and multicast routing protocols are used. similar.
( 1 )在下游流接口上接收加入组播组和离开组播组的消息。  (1) Receive a message joining the multicast group and leaving the multicast group on the downstream flow interface.
对于组播成员管理协议来说,下游网络的主机发出要求加入组播组和离开 组播组的消息。 例如 IGMPv2协议, 用报告 ( report )消息来要求加入组播组, 用离开(leave )消息要求退出组播组。 IGMPv3通过对过滤条件的设置将以上 两种消息统一到报告消息。 MLD协议和 IGMP协议类似。 本发明的设备在下 游流接口上实现组播成员管理协议为组播路由器规定的功能,维护各种组播定 时器, 例如周期查询定时器, 最后成员查询间隔定时器等, 还可以发周期查询 消息和特定组播组查询消息。根据定时器的状态判断定时器是否超时, 查询消 息的应答消息, 以及主动上报的消息, 本发明的设备可以维护该下游流接口上 的组播组成员状态。下游流接口上的组播组成员状态汇总了该下游流接口所连 接的下游网络的组播组加入情况, 包括该下游网络中的主机的组播组加入情 况,还包括下游网络中的组播树上的下游组播路由器的组播组加入情况, 而这 些组播路由器的组播加入情况代表了这些组播路由器在组播树的整个下游分 支的组播组加入情况。 For the multicast member management protocol, the host on the downstream network sends a message requesting to join the multicast group and leave the multicast group. For example, the IGMPv2 protocol uses a report message to join a multicast group and a leave message to exit the multicast group. IGMPv3 unifies the above two messages into report messages by setting the filter conditions. The MLD protocol is similar to the IGMP protocol. The device of the present invention implements the function specified by the multicast member management protocol for the multicast router on the downstream flow interface, and maintains various multicast timers, such as a periodic query timer, a last member query interval timer, etc., and can also issue a periodic query. Messages and specific multicast group query messages. The device of the present invention can maintain the state of the multicast group member on the downstream flow interface, according to the state of the timer, whether the timer expires, the response message of the query message, and the message that is actively reported. The status of the multicast group member on the downstream flow interface is summarized by the downstream flow interface. The joining of the multicast group of the downstream network, including the multicast group joining of the hosts in the downstream network, and the joining of the multicast groups of the downstream multicast routers in the multicast tree in the downstream network, and these groups The multicast join situation of the broadcast router represents the multicast group join of these multicast routers in the entire downstream branch of the multicast tree.
对于组播路由协议来说,例如 PIM-SM协议, 下游网络的组播路由器发出 加入 /剪枝消息来请求加入或者离开组播组。 和组播成员管理协议不同, 在下 游网络使用 PIM-SM协议, 则不在下游网络中进行查询, 由下游网络中的组播 路由器周期刷新其代表的组播树下游分支的组播组成员状态。在该接口上收到 剪枝请求还要使用剪枝抑止定时器来判断是否需要剪枝。遵守组播路由协议的 规定, 根据接收到的加入 /剪枝等消息和组播定时器的状态, 该设备可以维护 下游网络的组播组成员状态。  For a multicast routing protocol, such as the PIM-SM protocol, the multicast router of the downstream network sends a join/prune message to request to join or leave the multicast group. Different from the multicast member management protocol, the PIM-SM protocol on the downstream network does not query the downstream network. The multicast router in the downstream network periodically refreshes the multicast group member status of the downstream branch of the multicast tree it represents. The pruning request is received on the interface and the pruning suppression timer is used to determine if pruning is required. The device can maintain the multicast group member status of the downstream network based on the received join/prune messages and the status of the multicast timer.
( 2 )在上游流接口上发出加入组播组和离开组播组的消息。  (2) Sending a message to join the multicast group and leave the multicast group on the upstream flow interface.
对于组播成员管理协议来说, 该设备在该上游流接口上完成主机功能,发 报告消息或者离开消息,响应查询消息。该部分功能是 IGMP协议的基本功能, 这里不再赘述。  For the multicast member management protocol, the device performs the host function on the upstream flow interface, sends a report message or leaves the message, and responds to the query message. This part of the function is the basic function of the IGMP protocol and will not be described here.
对于组播路由协议来说,例如 PIM-SM协议,该上游流接口上通过发出加 入 /剪枝消息来要求加入组播组或离开组播组。 另外还需要周期发出加入 /剪枝 消息来维护上游组播路由器上的组播组成员状态,接收到剪枝请求后如果需要 还要发加入 /剪枝消息来进行否决。 该部分功能是 PIM-SM协议的基本功能, 这里也不再赘述。  For a multicast routing protocol, such as the PIM-SM protocol, the upstream flow interface requests to join the multicast group or leave the multicast group by issuing an add/prune message. In addition, a join/prune message is sent periodically to maintain the multicast group member status on the upstream multicast router. If a pruning request is received, a join/prune message is sent to veto if necessary. This part of the function is the basic function of the PIM-SM protocol, and will not be described here.
对于上游流接口来说,无论是使用组播成员管理协议还是使用组播路由协 议, 都是所有下游流接口的组播组成员状态的汇总, 该汇总记录的是对于上游 流接口的体现设备级别的组播组成员状态的信息,这里将该汇总记录称为设备 组播成员数据库。如果所有组播组都共用同一个上游流接口, 那么该设备组播 成员数据库用于该上游流接口,反映了所有下游网络的加入组播组的情况。如 果不同的组播组地址有不同的上游流接口,或者是相同组播组地址的不同组播 源地址有不同的上游流接口,那么设备组播成员数据库要对于不同的上游流接 口所对应的组播组地址,或者组播组地址和组播源地址汇总各下游流接口的该 组播组地址的组播组成员状态的汇总。可能对于同一个组播组地址通往信源树 的上游流接口和通往共享树的上游流接口不同,请求相同的组播数据流有信源 树和共享树两种选择,则可能也需要该设备根据对组播树的选择来选择上游流 接口。 For the upstream flow interface, whether it is a multicast member management protocol or a multicast routing protocol, it is a summary of the multicast group member status of all downstream flow interfaces, and the summary records the device level for the upstream flow interface. Information about the multicast group member status, which is referred to herein as the device multicast member database. If all the multicast groups share the same upstream flow interface, the multicast member database of the device is used for the upstream flow interface, which reflects the joining of all downstream networks to the multicast group. If different multicast group addresses have different upstream flow interfaces, or different multicast source addresses of the same multicast group address have different upstream flow interfaces, the device multicast member database must correspond to different upstream flow interfaces. The multicast group address, or the multicast group address and the multicast source address, summarizes the aggregation of the multicast group member status of the multicast group address of each downstream flow interface. May lead to the source tree for the same multicast group address The upstream stream interface is different from the upstream stream interface to the shared tree. If the same multicast data stream is requested to have both a source tree and a shared tree, the device may also need to select the upstream stream according to the selection of the multicast tree. interface.
前面列出上游流接口和下游流接口使用组播协议的四种可能的工作方式 可能单独工作, 也可能几种方式共同工作, 例如: 在下游流接口上可能收到该 下游流接口连接的下游网络中的主机或者路由器发出的加入组播组的组播成 员管理协议消息,也可能接收到该下游网络中的组播路由器发出的要求加入同 一个组播组的组播路由协议消息,该下游流接口上的组播组成员状态需要对由 两种协议引起的触发信息进行综合。向上游流接口上发送消息可以使用组播成 员管理协议, 也可以使用组播路由协议。  The four possible working modes of the upstream and downstream flow interfaces using the multicast protocol may work separately or in several ways. For example: Downstream flow interface may receive downstream of the downstream flow interface connection. The multicast member management protocol message sent by the host or router in the network to join the multicast group may also receive the multicast routing protocol message sent by the multicast router in the downstream network to join the same multicast group. The multicast group member status on the flow interface needs to be combined with the trigger information caused by the two protocols. Sending a message to the upstream stream interface can use either the multicast member management protocol or the multicast routing protocol.
组播组的所有组播源地址都共用相同的上游流接口的可能情况:该接口朝 向所有组播组的共享树方向。  The possible conditions for all multicast source addresses of a multicast group to share the same upstream flow interface: The interface faces the shared tree in the direction of all multicast groups.
存在多个上游流接口的可能情况:不同组播组的共享树要通过不同的上游 流接口才能够到达, 或者, 不同组播源地址的信源树根节点要通过不同的上游 流接口才能够到达。  A possible situation of multiple upstream flow interfaces: the shared tree of different multicast groups can be reached through different upstream flow interfaces, or the source tree root nodes of different multicast source addresses can pass different upstream flow interfaces. Arrivals.
通常情况下,如果所有下游流接口的组播组成员状态没有变化, 则设备组 播成员数据库的记录也不会变化。如果一个或者多个下游流接口的组播组成员 状态的改变影响到设备组播成员数据库的记录需要改变,进一步影响到一个或 者多个上游流接口,则该设备向被影响到的上游流接口发送消息来体现设备级 别的组播组成员状态的改变。如果是 IGMP协议, 可能是报告消息或者离开消 息, 如果是 PIM-SM协议, 则可能是加入 /剪枝消息。  Generally, if the status of multicast group members of all downstream flow interfaces does not change, the records of the device multicast member database will not change. If the change of the multicast group member status of one or more downstream flow interfaces affects the record of the device multicast member database and needs to be changed, further affecting one or more upstream flow interfaces, the device moves to the affected upstream flow interface. Send a message to reflect changes in the status of multicast group members at the device level. If it is an IGMP protocol, it may be a report message or leave message. If it is a PIM-SM protocol, it may be a join/prune message.
一个下游流接口上的加入组播组请求消息影响到多个上游流接口的可能 情况: 下游流接口上要求加入组播组 G1 , 组播源地址过滤条件为仅包括组播 源地址 S1和 S2。 而 SI对应的上游流接口是 II , S2对应的上游流接口是 12, 如果要在上游流接口上加入各自的信源树, 这样会导致要在 II和 12上都要向 上游网络发送加入组播组的消息。  A multicast group request message on a downstream flow interface affects the possible conditions of multiple upstream flow interfaces: The downstream flow interface is required to join the multicast group G1. The multicast source address filtering conditions include only the multicast source addresses S1 and S2. . The upstream flow interface corresponding to the SI is II, and the upstream flow interface corresponding to S2 is 12. If the respective source tree is to be added to the upstream flow interface, this will cause the join group to be sent to the upstream network on both the II and the 12th. Broadcast group message.
本发明可以工作在上游网络和下游网络有相同的组播组地址规划和组播 源地址规划的情况。 如果上游网络和下游网络之间有组播组地址和 /或组播源 地址的映射,则在该设备上的组播协议处理以及组播数据流转发要使用该地址 映射, 以使上游流接口和下游流接口能针对相同的组播组进行操作。 例如, 下 游流接口上收到加入组播组 G1的消息, 发现该接口上的组播组成员状态需要 被更新, G1对应的上游流接口是 12, 在 12所连接的上游网络中, 该组播组被 规划成组播组 G2, 进一步判断设备组播成员数据库是否也需要更新, 如果需 要被更新,则该设备在 12接口上发出请求加入组播组 G2的消息。如果请求消 息中涉及组播源地址的过滤条件,组播源地址映射的方法和前述的组播组地址 的映射方法类似, 这里不再赘述。 The present invention can work in the case where the upstream network and the downstream network have the same multicast group address planning and multicast source address planning. If there is a multicast group address and/or a multicast source address mapping between the upstream network and the downstream network, the multicast protocol processing and multicast data stream forwarding on the device must use the address. Mapping so that the upstream and downstream stream interfaces can operate against the same multicast group. For example, if the downstream traffic interface receives the message from the multicast group G1, the multicast group member status on the interface needs to be updated. The upstream flow interface corresponding to G1 is 12. In the 12 connected upstream network, the group The broadcast group is planned to be the multicast group G2, and further determines whether the device multicast member database also needs to be updated. If it needs to be updated, the device sends a message requesting to join the multicast group G2 on the 12 interface. If the filtering condition of the multicast source address is involved in the request message, the mapping method of the multicast source address is similar to the mapping method of the multicast group address, and is not described here.
上述功能可以在单独的网络设备上实现,该网络设备可以是 MGW; MGW 受到媒体网关控制器( MGC: Media Gateway Controller )的控制。 一种情况是 由 MGW上通过配置实现上述功能, 不需要 MGC对上游流接口和下游流接口 上的消息进行直接处理; 另外一种情况是在实现该功能的过程中由 MGC控制 其部分或者全部步骤。 例如, 可以将组播组信息和上游流接口的对应关系由 MGC来维护。 MGW在下游流接口上收到了组播协议消息后上报给 MGC, 由 MGC指示 MGW在指定的上游流接口上发送指定的组播协议消息。这样 MGW 上不必维护组播组信息和上游流接口的对应关系。  The above functions can be implemented on a separate network device, which can be an MGW; the MGW is controlled by a Media Gateway Controller (MGC). In one case, the above functions are implemented by the MGW. The MGC does not need to directly process the messages on the upstream stream interface and the downstream stream interface. In another case, some or all of the MGC controls the function. step. For example, the correspondence between the multicast group information and the upstream flow interface can be maintained by the MGC. After receiving the multicast protocol message on the downstream flow interface, the MGW reports the message to the MGC. The MGW instructs the MGW to send the specified multicast protocol message on the specified upstream flow interface. Therefore, the mapping between the multicast group information and the upstream flow interface is not required on the MGW.
组播组信息的内容包括组播组地址,组播源地址以及组播组源地址过滤。 IGMPv2消息中的组播组信息可以仅包括组播组地址; PIM-SM协议消息中的 组播组信息可以包括组播组地址,还可以进一步包括被加入的组播源地址和被 剪枝的组播源地址; IGMPv3协议消息中的组播组信息可以包括组播组地址, 还可以进一步包括组播源地址, 以及组播源地址的过滤条件。这里说的组播组 信息和上游流接口的对应关系有如下三种可能的情况: ( 1 )组播组地址和上游 流接口的对应关系; ( 2 )组播组地址和一个或者多个组播源地址和上游流接口 的对应关系; 即组播组地址为指定的该组播组地址,组播源地址为被指定的组 播源地址的组播和上游流接口的对应关系。 (3)组播组地址和被排除的一个或 者多个组播源地址和上游流接口的对应关系;即组播组地址为指定的该组播组 地址,组播源地址为除指定的组播源地址以外的所有组播源地址。组播组信息 中描述的组播数据流从被对应的上游流接口上接收,并通过下游流接口发送到 下游网络。本发明实施例所描述的组播组信息和上游流接口的对应关系可以包 含上述的三种可能情况中的任一或其任意组合。 设备组播成员数据库被改变后,被改变的记录中包含了组播组信息, 首先 查找该组播组信息对应的上游流接口,根据被改变的记录中的组播组信息构造 对应的请求加入组播组, 离开组播组的消息, 然后向被查找出的上游流接口发 送。 The multicast group information includes multicast group address, multicast source address, and multicast group source address filtering. The multicast group information in the IGMPv2 message may include only the multicast group address. The multicast group information in the PIM-SM protocol message may include the multicast group address, and may further include the added multicast source address and the pruned The multicast source address of the IGMPv3 protocol message may include a multicast group address, and may further include a multicast source address and a filtering condition of the multicast source address. There are three possible scenarios for the correspondence between the multicast group information and the upstream flow interface: (1) the correspondence between the multicast group address and the upstream flow interface; (2) the multicast group address and one or more groups. The mapping between the source address and the upstream stream interface. The multicast group address is the specified multicast group address. The multicast source address is the mapping between the multicast source address and the upstream stream interface. (3) The correspondence between the multicast group address and the excluded one or more multicast source addresses and the upstream flow interface; that is, the multicast group address is the specified multicast group address, and the multicast source address is the specified group. All multicast source addresses except the source address. The multicast data stream described in the multicast group information is received from the corresponding upstream flow interface and sent to the downstream network through the downstream flow interface. The correspondence between the multicast group information and the upstream flow interface described in the embodiment of the present invention may include any one of the foregoing three possible cases or any combination thereof. After the device multicast member database is changed, the changed record contains the multicast group information. The upstream flow interface corresponding to the multicast group information is searched for, and the corresponding request is added according to the multicast group information in the changed record. A multicast group, a message leaving the multicast group, and then sent to the upstream stream interface that is found.
MGW可以维护组播组信息和上游流接口之间的对应关系 , 这种情况下 The MGW can maintain the correspondence between the multicast group information and the upstream flow interface. In this case,
MGW可以根据上述对应关系通过组播组信息查找上游流接口, 其还可以维护 上游流接口和下游流接口之间的组播组地址和 /或组播源地址映射关系网络地 址映射表; 这样, MGW接收到组播成员管理协议消息或者组播路由协议消息 后, 可以自行更新接口的组播成员状态, 进一步更新设备组播成员数据库, 查 找对应上游流接口,并且向上游流接口发送组播成员管理协议消息或者组播路 由协议消息, 不需要 MGC的参与。 当然, 也可以使用 MGC通过媒体网关控 制协议对 MGW上的网络地址映射表和组播组信息与上游流接口之间的对应 关系进行更新。 The MGW can search for the upstream flow interface by using the multicast group information according to the foregoing correspondence, and can also maintain the multicast group address and/or the multicast source address mapping relationship network address mapping table between the upstream flow interface and the downstream flow interface; After receiving the multicast member management protocol message or the multicast routing protocol message, the MGW can update the multicast member status of the interface, further update the device multicast member database, find the corresponding upstream flow interface, and send the multicast member to the upstream flow interface. Management protocol messages or multicast routing protocol messages do not require the participation of the MGC. Of course, the MGC can also use the media gateway control protocol to update the correspondence between the network address mapping table and the multicast group information on the MGW and the upstream flow interface.
如图 2所示,描述了使用组播路由装置单独实现本发明实施例提供的组播 路由方法的情况, 其在下游流接口使用组播成员管理协议,在上游流接口使用 组播路由协议, 本发明实施例提供的组播路由方法实施例二具体包括:  As shown in FIG. 2, the multicast routing method provided by the embodiment of the present invention is separately implemented by using a multicast routing device, which uses a multicast member management protocol on a downstream flow interface and a multicast routing protocol on an upstream flow interface. The second embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
组播路由装置在 IP网络 2中作为组播路由器, 使用 IGMP协议; 接收来 自 IP网络 2中主机的基于 IGMP协议的 ^艮告消息, 离开组播组消息, 向 IP网 络 2发送查询消息等;  The multicast routing device uses the IGMP protocol as the multicast router in the IP network 2; receives the IGMP protocol-based advertisement message from the host in the IP network 2, leaves the multicast group message, and sends an inquiry message to the IP network 2;
组播路由装置在 IP网络 1中作为组播路由器, 使用 PIM-SM协议; 向 IP 网络 1中的组播路由器发送基于 PIM-SM协议的加入 /剪枝消息等;  The multicast routing device acts as a multicast router in the IP network 1 and uses the PIM-SM protocol; sends a PIM-SM based join/prune message to the multicast router in the IP network 1;
组播路由装置接收到来自 IP网络 1中的组播路由器的组播数据流后, 将 组播数据流转发给 IP网络 2中的主机。  After receiving the multicast data stream from the multicast router in the IP network 1, the multicast routing device forwards the multicast data stream to the host in the IP network 2.
实际应用中,该组播路由装置上配置上游网络和下游网络的组播组地址和 /或组播源地址的映射关系, 还配置组播组信息和上游流接口的对应关系。 组 播成员管理协议以 IGMPv3为例,组播路由协议以 PIM-SM协议为例。下游流 接口上运行 IGMP协议, 维护下游流接口上的组播组成员状态, 如果成员状态 发生改变, 进一步判断设备组播成员数据库是否需要被改变, 如果需要, 则在 上游流接口上发送 PIM-SM协议的加入 /剪枝消息来表现设备级的组播组成员 状态的改变。 上游流接口运行 PIM-SM协议, 按照协议的规定周期发送加入 / 剪枝消息向上游组播路由器刷新组播组成员状态, 发送加入 /剪枝消息进行剪 枝抑制等。 如果有组播组地址和 /或组播源地址的映射需要, 则发送的加入 /剪 枝消息中使用映射后的地址。 In a practical application, the mapping between the multicast group address and the multicast source address of the upstream network and the downstream network is configured on the multicast routing device, and the correspondence between the multicast group information and the upstream flow interface is also configured. The multicast member management protocol uses IGMPv3 as an example. The multicast routing protocol uses the PIM-SM protocol as an example. Run the IGMP protocol on the downstream traffic interface to maintain the multicast group member status on the downstream flow interface. If the member status changes, determine whether the device multicast member database needs to be changed. If necessary, send PIM on the upstream flow interface. SM protocol join/prune messages to represent device-level multicast group members Change of state. The upstream traffic interface runs the PIM-SM protocol. The join/prune message is sent to the upstream multicast router to update the multicast group member status and send join/prune messages for prune suppression. If there is a mapping between the multicast group address and/or the multicast source address, the mapped join address is used in the sent join/prune message.
上游流接口上接收到组播数据流后,分别根据各下游流接口上的组播组成 员状态进行组播数据流的分发。 如果有组播组地址和 /或组播源地址的映射需 要, 则下游流接口上发出组播数据流时, 组播组地址和 /或组播源地址根据映 射关系被修改成映射后的地址。  After receiving the multicast data stream on the upstream flow interface, the multicast stream is distributed according to the state of the multicast member on each downstream flow interface. If a multicast group address and/or multicast source address mapping is required, the multicast group address and/or the multicast source address are modified to the mapped address according to the mapping relationship when the multicast stream is sent on the downstream stream interface. .
如图 3所示,描述了使用组播路由装置单独实现本发明实施例提供的组播 路由方法的情况, 其在下游流接口使用组播成员管理协议,在上游流接口也使 用组播成员管理协议, 本发明实施例提供的组播路由方法实施例三具体包括: 组播路由装置在 IP网络 2中作为组播路由器, 使用 IGMP协议; 接收来 自 IP网络 2中主机的基于 IGMP协议的 ^艮告消息, 离开组播组消息, 向 IP网 络 2发送查询消息等;  As shown in FIG. 3, the multicast routing method provided by the embodiment of the present invention is separately implemented by using a multicast routing device, which uses a multicast member management protocol on the downstream flow interface and multicast member management on the upstream flow interface. The third embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes: The multicast routing device uses the IGMP protocol as the multicast router in the IP network 2; and receives the IGMP protocol based on the host in the IP network 2. The message, leaving the multicast group message, sending an inquiry message to the IP network 2, etc.;
组播路由装置在 IP网络 1中作为主机, 使用 IGMP协议; 向 IP网络 1中 的组播路由器发送基于 IGMP协议的报告消息,离开组播组消息以及响应查询 消息等;  The multicast routing device uses the IGMP protocol as the host in the IP network 1, sends the IGMP protocol-based report message to the multicast router in the IP network 1, leaves the multicast group message, and responds to the query message;
组播路由装置接收到来自 IP网络 1中的组播路由器的组播数据流后, 将 组播数据流转发给 IP网络 2中的主机。  After receiving the multicast data stream from the multicast router in the IP network 1, the multicast routing device forwards the multicast data stream to the host in the IP network 2.
实际应用中 ,该组播路由装置上配置上游网络和下游网络的组播组地址和 In a practical application, the multicast routing device configures a multicast group address of the upstream network and the downstream network.
/或组播源地址的映射关系, 还配置组播组信息和上游流接口的对应关系。 组 播成员管理协议以 IGMPv3为例。 下游流接口上运行 IGMP协议, 维护下游流 接口上的组播组成员状态,如果成员状态发生改变, 进一步判断设备组播成员 数据库是否需要被改变, 如果需要, 则在上游流接口上发送 IGMP的报告消息 来表现设备级的组播组成员状态的改变。上游流接口运行 IGMPv3协议,按照 协议的规定响应上游网络的 IGMP查询消息等。 如果有组播组地址和 /或组播 源地址的映射需要, 则发送的报告消息中使用映射后的地址。 The mapping between the multicast source address and the upstream source interface is also configured. The multicast member management protocol uses IGMPv3 as an example. Run the IGMP protocol on the downstream interface to maintain the status of the multicast group member on the downstream flow interface. If the status of the member changes, determine whether the multicast member database needs to be changed. If necessary, send IGMP on the upstream interface. Report messages to represent changes in the status of multicast group members at the device level. The upstream flow interface runs the IGMPv3 protocol and responds to the IGMP query messages of the upstream network according to the protocol. If there is a mapping between the multicast group address and/or the multicast source address, the mapped message is used in the sent report message.
上游流接口上接收到组播数据流后,分别根据各下游流接口上的组播组成 员状态进行组播数据流的分发。 如果有组播组地址和 /或组播源地址的映射需 要, 则下游流接口上发出组播数据流时, 组播组地址和 /或组播源地址根据映 射关系被修改成映射后的地址。 After receiving the multicast data stream on the upstream flow interface, the multicast stream is distributed according to the multicast group member status on each downstream flow interface. If there is a mapping between multicast group address and/or multicast source address If the multicast stream is sent on the downstream flow interface, the multicast group address and/or the multicast source address are modified to the mapped address according to the mapping relationship.
如图 4所示,描述了使用组播路由装置单独实现本发明实施例提供的组播 路由方法的情况, 其在下游流接口使用组播路由协议,在上游流接口也使用组 播成员管理协议, 本发明实施例提供的组播路由方法实施例四具体包括: 组播路由装置在 IP网络 2中作为组播路由器, 使用 PIM-SM协议; 接收 来自 IP网络 2中组播路由器的基于 PIM-SM协议的加入 /剪枝消息等;  As shown in FIG. 4, the multicast routing method provided by the embodiment of the present invention is implemented by using a multicast routing device. The multicast routing protocol is used on the downstream flow interface, and the multicast member management protocol is also used on the upstream flow interface. The fourth embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes: the multicast routing device functions as a multicast router in the IP network 2, using the PIM-SM protocol; and receiving the PIM-based multicast router from the IP network 2 Join/pruning messages of the SM protocol, etc.;
组播路由装置在 IP网络 1中作为主机, 使用 IGMP协议; 向 IP网络 1中 的组播路由器发送基于 IGMP协议的报告消息,离开组播组消息以及响应查询 消息等;  The multicast routing device uses the IGMP protocol as the host in the IP network 1, sends the IGMP protocol-based report message to the multicast router in the IP network 1, leaves the multicast group message, and responds to the query message;
组播路由装置接收到来自 IP网络 1中的组播路由器的组播数据流后, 将 组播数据流转发给 IP网络 2中的组播路由器。  After receiving the multicast data stream from the multicast router in the IP network 1, the multicast routing device forwards the multicast data stream to the multicast router in the IP network 2.
实际应用中,该组播路由装置上配置上游网络和下游网络的组播组地址和 /或组播源地址的映射关系, 还配置组播组信息和上游流接口的对应关系。 组 播路由协议以 PIN-SM协议为例, 组播成员管理协议以 IGMPv3为例。 下游流 接口上运行 PIM-SM协议, 维护下游流接口上的组播组成员状态,如果成员状 态发生改变, 进一步判断设备组播成员数据库是否需要被改变, 如果需要, 则 在上游流接口上发送 IGMP 的报告消息来表现设备级的组播组成员状态的改 变。上游流接口运行 IGMPv3协议,按照协议的规定响应上游网络的 IGMP查 询消息等。 如果有组播组地址和 /或组播源地址的映射需要, 则发送的报告消 息中使用映射后的地址。  In the actual application, the mapping between the multicast group address and the multicast source address of the upstream network and the downstream network is configured on the multicast routing device, and the mapping between the multicast group information and the upstream flow interface is also configured. The multicast routing protocol uses the PIN-SM protocol as an example. The multicast member management protocol uses IGMPv3 as an example. Run the PIM-SM protocol on the downstream traffic interface to maintain the multicast group member status on the downstream flow interface. If the member status changes, determine whether the device multicast member database needs to be changed. If necessary, send it on the upstream flow interface. IGMP reports messages to represent changes in device-level multicast group membership status. The upstream flow interface runs the IGMPv3 protocol and responds to the IGMP query messages of the upstream network according to the protocol. If there is a mapping between a multicast group address and/or a multicast source address, the mapped address is used in the transmitted report message.
下游流接口上通过组播路由协议获得该接口上的组播组成员状态,则下游 网络,以及离主机用户更近的更下游的网络需要在运行组播路由协议时认为该 上游流接口地址是组播树上的上游路由器的地址,组播树不会绕过该下游流接 口, 则一种可行的方法是该组播路由装置在下游流接口上作为 RP使用, 该下 游流接口地址是 RP的地址, 在该下游流接口上向共享树的下游分支转发组播 数据流, 同时接收和处理下游网络发来的加入 /剪枝消息等。  On the downstream flow interface, the multicast group member status is obtained through the multicast routing protocol. The downstream network and the more downstream network closer to the host user need to consider the upstream flow interface address when running the multicast routing protocol. The address of the upstream router on the multicast tree, the multicast tree does not bypass the downstream flow interface. A possible method is that the multicast routing device functions as an RP on the downstream flow interface. The downstream flow interface address is RP. The address, on the downstream flow interface, forwards the multicast data stream to the downstream branch of the shared tree, and simultaneously receives and processes the join/prune message sent by the downstream network.
上游流接口上接收到组播数据流后,分别根据各下游流接口上的组播组成 员状态进行组播数据流的分发。 如果有组播组地址和 /或组播源地址的映射需 要, 则下游流接口上发出组播数据流时, 组播组地址和 /或组播源地址根据映 射关系被修改成映射后的地址。 After receiving the multicast data stream on the upstream flow interface, the multicast stream is distributed according to the multicast group member status on each downstream flow interface. If there is a mapping between multicast group address and/or multicast source address If the multicast stream is sent on the downstream flow interface, the multicast group address and/or the multicast source address are modified to the mapped address according to the mapping relationship.
如图 5所示,描述了使用组播路由装置单独实现本发明实施例提供的组播 路由方法的情况, 其在下游流接口使用组播路由协议,在上游流接口也使用组 播路由协议, 本发明实施例提供的组播路由方法实施例五具体包括:  As shown in FIG. 5, the multicast routing method provided by the embodiment of the present invention is separately implemented by using a multicast routing device. The multicast routing protocol is used on the downstream flow interface, and the multicast routing protocol is also used on the upstream flow interface. The fifth embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
组播路由装置在 IP网络 2中作为组播路由器, 使用 PIM-SM协议; 接收 来自 IP网络 2中组播路由器的基于 PIM-SM协议的加入 /剪枝消息等;  The multicast routing device acts as a multicast router in the IP network 2, and uses the PIM-SM protocol; receives the PIM-SM-based join/prune message from the multicast router in the IP network 2;
组播路由装置在 IP网络 1中作为组播路由器, 使用 PIM-SM协议; 向 IP 网络 1中的组播路由器发送基于 PIM-SM协议的加入 /剪枝消息等;  The multicast routing device acts as a multicast router in the IP network 1 and uses the PIM-SM protocol; sends a PIM-SM based join/prune message to the multicast router in the IP network 1;
组播路由装置接收到来自 IP网络 1中的组播路由器的组播数据流后, 将 组播数据流转发给 IP网络 2中的组播路由器。  After receiving the multicast data stream from the multicast router in the IP network 1, the multicast routing device forwards the multicast data stream to the multicast router in the IP network 2.
实际应用中,该组播路由装置上配置上游网络和下游网络的组播组地址和 /或组播源地址的映射关系, 还配置组播组信息和上游流接口的对应关系。 组 播路由协议以 PIN-SM协议为例。 下游流接口上运行 PIM-SM协议, 维护下游 流接口上的组播组成员状态,如果成员状态发生改变, 进一步判断设备组播成 员数据库是否需要被改变,如果需要, 则在上游流接口上发送 IGMP的报告消 息来表现设备级的组播组成员状态的改变。上游流接口运行 PIM-SM协议,按 照协议的规定周期发送加入 /剪枝消息向上游组播路由器刷新组播组成员状 态, 发送加入 /剪枝消息进行剪枝抑制等。 如果有组播组地址和 /或组播源地址 的映射需要, 则发送的加入 /剪枝消息中使用映射后的地址。  In the actual application, the mapping between the multicast group address and the multicast source address of the upstream network and the downstream network is configured on the multicast routing device, and the mapping between the multicast group information and the upstream flow interface is also configured. The multicast routing protocol uses the PIN-SM protocol as an example. Run the PIM-SM protocol on the downstream interface to maintain the multicast group member status on the downstream flow interface. If the member status changes, determine whether the device multicast member database needs to be changed. If necessary, send the multicast member interface. The IGMP report message represents the change in the state of the multicast group member at the device level. The upstream traffic interface runs the PIM-SM protocol. The join/prune message is sent to the upstream multicast router to refresh the multicast group membership status and the join/prune message is sent to perform pruning suppression. If there is a mapping between the multicast group address and/or the multicast source address, the mapped address is used in the sent join/prune message.
下游流接口上通过组播路由协议获得该接口上的组播组成员状态,则下游 网络,以及离主机用户更近的更下游的网络需要在运行组播路由协议时认为该 上游流接口地址是组播树上的上游路由器的地址,组播树不会绕过该下游流接 口, 则一种可行的方法是该组播路由装置在下游流接口上作为 RP使用, 该下 游流接口地址是 RP的地址, 在该下游流接口上向共享树的下游分支转发组播 数据流, 同时接收和处理下游网络发来的加入 /剪枝消息等。  On the downstream flow interface, the multicast group member status is obtained through the multicast routing protocol. The downstream network and the more downstream network closer to the host user need to consider the upstream flow interface address when running the multicast routing protocol. The address of the upstream router on the multicast tree, the multicast tree does not bypass the downstream flow interface. A possible method is that the multicast routing device functions as an RP on the downstream flow interface. The downstream flow interface address is RP. The address, on the downstream flow interface, forwards the multicast data stream to the downstream branch of the shared tree, and simultaneously receives and processes the join/prune message sent by the downstream network.
上游流接口上接收到组播数据流后,分别根据各下游流接口上的组播组成 员状态进行组播数据流的分发。 如果有组播组地址和 /或组播源地址的映射需 要, 则下游流接口上发出组播数据流时, 组播组地址和 /或组播源地址根据映 射关系被修改成映射后的地址。 After receiving the multicast data stream on the upstream flow interface, the multicast stream is distributed according to the multicast group member status on each downstream flow interface. If a multicast group address and/or multicast source address mapping is required, when a multicast stream is sent on the downstream stream interface, the multicast group address and/or the multicast source address are mapped. The shot relationship is modified to the mapped address.
其中, 图 2、 图 3、 图 4和图 5所描述的四种情况可以部分或者全部在同 一个组播路由装置上实现。  Among them, the four cases described in Figure 2, Figure 3, Figure 4 and Figure 5 can be implemented partially or completely on the same multicast routing device.
上述描述了的组播路由装置可以是经过改进的 MGW, 在使用 MGW时, 可以使用 MGC对 MGW进行控制,从而使 MGW能够实现本发明实施例提供 的组播路由方法, 在使用 MGC对 MGW进行控制时, 需要对 MGC和 MGW 之间的媒体网关控制协议进行一些扩展, 以下对其进行具体描述。  The multicast routing device described above may be an improved MGW. When the MGW is used, the MGW may be used to control the MGW, so that the MGW can implement the multicast routing method provided by the embodiment of the present invention, and use the MGC to perform the MGW on the MGW. During control, some extensions to the media gateway control protocol between the MGC and the MGW are required, which are described in detail below.
如图 6所示, 描述了 MGC对 MGW进行控制, 使 MGW实现本发明实施 例提供的组播路由方法的情况, 在 MGW 的下游流接口使用组播成员管理协 议,在 MGW的上游流接口使用组播路由协议,本发明实施例提供的组播路由 方法实施例六具体包括:  As shown in FIG. 6, the MGC controls the MGW to enable the MGW to implement the multicast routing method provided by the embodiment of the present invention. The downstream flow interface of the MGW uses the multicast member management protocol and is used on the upstream flow interface of the MGW. The multicast routing protocol, the sixth embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
MGW在 IP网络 2中作为组播路由器, 使用 IGMP协议; 接收来自 IP网 络 2中主机的基于 IGMP协议的 ^艮告消息, 离开组播组消息, 向 IP网络 2发 送查询消息等;  The MGW acts as a multicast router in the IP network 2, and uses the IGMP protocol; receives an IGMP-based message from the host in the IP network 2, leaves the multicast group message, and sends an inquiry message to the IP network 2;
MGW在 IP网络 1中作为组播路由器, 使用 PIM-SM协议; 向 IP网络 1 中的组播路由器发送基于 PIM-SM协议的加入 /剪枝消息等;  The MGW functions as a multicast router in the IP network 1 and uses the PIM-SM protocol; sends a PIM-SM based join/prune message to the multicast router in the IP network 1;
MGW接收到来自 IP网络 1 中的组播路由器的组播数据流后, 将组播数 据流转发给 IP网络 2中的主机。  After receiving the multicast data stream from the multicast router in the IP network 1, the MGW forwards the multicast data stream to the host in the IP network 2.
其中, MGW在执行上述部分或全部流程时, 受 MGC控制, MGC通过扩 展的 H.248协议对 MGW进行控制。  The MGW is controlled by the MGC when performing some or all of the above processes, and the MGC controls the MGW through the extended H.248 protocol.
在 MGW的 IP网络 2侧, MGC向 MGW设置 H.248事件检测 IGMP的加 入组播组的消息,在 IGMP协议中该消息是报告消息。例如可以设置事件 igmprl 用于检测 IGMP的报告(Membership Report ) 消息, 加入 /离开组播组消息以 及查询( Membership Query )消息中的一种或者多种, 该事件有如下参数: 参 数 iprealm, 其数据类型为 String list, 默认值为空; 其值为检测 IGMP消息的 IP域列表。 取值可以参照 ITU-T H.248.41标准中的 ipdc包的 realm属性。  On the IP network 2 side of the MGW, the MGC sets the H.248 event detection IGMP message to the MGW to join the multicast group. In the IGMP protocol, the message is a report message. For example, the event igmprl can be set to detect one or more of the IGMP Report (Membership Report) message, the Join/Leave Multicast Group message, and the Query (Member Query) message. The event has the following parameters: Parameter iprealm, its data The type is String list, and the default value is null; its value is a list of IP domains that detect IGMP messages. The value can refer to the realm attribute of the ipdc packet in the ITU-T H.248.41 standard.
如果该事件设置在 MGW的 ROOT终端上, 则可以通过该参数指示在哪 个或者哪些 IP域或接口上检测 IGMP消息。 如果该参数值为空, 则表示在该 MGW所有 IP域或接口上进行检测。 如果该事件设置在非 ROOT终端上, 而 且该终端被创建在某个 IP域或接口上, 则不需要设置该参数。 If the event is set on the ROOT terminal of the MGW, the parameter can be used to indicate which IP domain or interface to detect the IGMP message. If the value of this parameter is null, it means that detection is performed on all IP domains or interfaces of the MGW. If the event is set on a non-ROOT terminal, And the terminal is created on an IP domain or interface, you do not need to set this parameter.
在 IP网络 2内还有选举查询器的过程, MGW可以担任查询器的角色。 MGC可以通过信号向 MGW指示发送 IGMP的查询消息。 IGMP查询消息的 收发的部分或者全部可以由 MGW根据 IGMP协议规范中关于发送查询消息的 逻辑自动进行, 以减少 MGC和 MGW之间的消息交互数量。 MGW也可以按 照查询器自身的工作原理发送周期性的查询消息。 为了满足 IGMP协议的要 求, IGMP协议规定了大量定时器以及参数, 例如组成员关系间隔, 鲁棒变量 ( Robustness Variable ), 查询间隔 ( Query Interval )等, 这些定时器的时长以 及参数的值可以在 MGW上配置,也可以由 MGC通过 H.248协议进行设置或 者更新。  There is also a process of electing a querier in the IP network 2, and the MGW can assume the role of a querier. The MGC can signal to the MGW to send an IGMP query message. Part or all of the sending and receiving of the IGMP query message may be automatically performed by the MGW according to the logic of the IGMP protocol specification for sending the query message to reduce the number of message interactions between the MGC and the MGW. The MGW can also send periodic query messages according to the working principle of the querier itself. In order to meet the requirements of the IGMP protocol, the IGMP protocol specifies a large number of timers and parameters, such as group membership interval, Robustness Variable, Query Interval, etc. The duration of these timers and the values of the parameters can be The configuration on the MGW can also be set or updated by the MGC through the H.248 protocol.
当 MGW收到组加入组播组的消息后,可以自己判断是否需要更新下游流 接口上的组播组成员状态,如果有多个下游流接口, 则需要将这些下游流接口 的组播组成员状态进行合并, 如果对上游流接口上的组播数据流请求有变化, 则向上游流接口发送符合 PIM-SM协议的加入 /剪枝消息要求 PIM的剪枝操作。 其中, 上游流接口 (Upstream Interface ), 指向共享树或者信源树的根节点的 方向。 在这个接口上收发运行组播路由协议消息。 下游流接口 (Downstream Interface ), 背离根节点, 下联主机, 进行组播成员管理。  After receiving the message that the group joins the multicast group, the MGW can determine whether it needs to update the multicast group member status on the downstream flow interface. If there are multiple downstream flow interfaces, you need to configure the multicast group members of the downstream flow interfaces. The status is merged. If there is a change in the multicast data flow request on the upstream flow interface, the PIM-SM protocol-based join/prune message is required to be sent to the upstream flow interface. The upstream interface (Upstream Interface) points to the direction of the root node of the shared tree or the source tree. Send and receive multicast routing protocol messages on this interface. The downstream stream interface (Downstream Interface) deviates from the root node and connects to the host to perform multicast member management.
MGW也可以将该接收到的组报告消息或者离开组播组消息上报给 MGC, 由 MGC根据用户签约信息, 资源状态等进行鉴权, 根据鉴权结果进行相应的 操作, 例如指示 MGW进行上游流接口上的剪枝, 或者 MGC向 MGW对接收 到的报告消息进行反馈,如果拒绝 IGMP中加入组播组的请求,则通知 MGW, 通知的方式包括直接对 MGW 的上报消息应答错误码或者后续发送消息指示 MGW, MGW则拒绝该加入组播组的请求。 MGW可以才艮据各下游流接口上 组播组成员状态的改变向上游网络发送加入 /剪枝消息。  The MGW may also report the received group report message or the leaving multicast group message to the MGC, and the MGC performs authentication according to the user subscription information, the resource status, and the like, and performs corresponding operations according to the authentication result, for example, instructing the MGW to perform upstream flow. The prune on the interface, or the MGC feeds back the received report message to the MGW. If the request to join the multicast group in the IGMP is rejected, the MGW is notified. The notification mode includes directly responding to the MGW report message error code or subsequent transmission. The message indicates the MGW, and the MGW rejects the request to join the multicast group. The MGW can send a join/prune message to the upstream network according to the change of the state of the multicast group member on each downstream flow interface.
定义 H.248事件 igmpreport, 在指定接口或者全部接口上设置该事件。 向 Define H.248 event igmpreport, set this event on the specified interface or all interfaces. to
MGC上报该事件时可以但不限于携带如下参数: When the MGC reports the event, it can be, but is not limited to, carrying the following parameters:
( 1 ) 参数 iprealm, 数据类型为 String, 默认值为空; 其值为检测 IGMP 消息的 IP域指示.取值可以参照 ITU-T H.248.41标准中的 ipdc包的 realm属性。 另外, 本发明中的涉及到 IP域指示都可以用接口名代替, 二者代表类似的意 思。 如果该事件设置在非 ROOT终端上而且该终端被创建在某个 IP域或接口 上, 则不需要上报该参数。 (1) The parameter iprealm, the data type is String, the default value is null; its value is the IP field indication for detecting IGMP messages. The value can refer to the realm attribute of the ipdc packet in the ITU-T H.248.41 standard. In addition, the IP domain indications in the present invention can be replaced by interface names, which represent similar meanings. Thinking. If the event is set on a non-ROOT terminal and the terminal is created on an IP domain or interface, this parameter does not need to be reported.
( 2 )参数 ver, 数据类型为 integer, 默认值为 3; 其值为协议版本, 1 , 2, 3分别代表 IGMP的版本 1 , 2和 3。  (2) The parameter ver, the data type is integer, the default value is 3; its value is the protocol version, and 1, 2, 3 represent the IGMP versions 1, 2 and 3.
( 3 )参数 type, 数据类型为 integer, 默认值为 1 ; 其值代表消息类型。 例如可以 1代表 IGMP的报告消息(加入消息 ), 2代表 IGMP的离开组消息, 3代表 IGMP的查询消息。  (3) Parameter type, the data type is integer, the default value is 1; its value represents the message type. For example, 1 can represent IGMP report message (join message), 2 for IGMP leave group message, and 3 for IGMP query message.
( 4 )参数 rl, 数据类型为 string list, 默认值为空; 其值代表报告消息的 内容。 列表中每一行代表对于一个组的报告内容。 对于 IGMP VI和 IGMP V2 来说, 每行的内容是一个组播组的组地址。 对于 IGMP V3来说, 要复杂一些。 列表中每一行的格式如下:  (4) The parameter rl, the data type is string list, the default value is null; its value represents the content of the report message. Each row in the list represents the content of the report for a group. For IGMP VI and IGMP V2, the content of each line is the group address of a multicast group. For IGMP V3, it is more complicated. The format of each line in the list is as follows:
组播组地址, 类型, 源地址 1 , 源地址 2 ,  Multicast group address, type, source address 1, source address 2,
类型可以包括如下几种:  Types can include the following:
MODE— IS— INCLUDE  MODE— IS— INCLUDE
MODE— IS— EXCLUDE  MODE— IS— EXCLUDE
CHANGE— TO— INCLUDE— MODE  CHANGE— TO— INCLUDE— MODE
CHANGE— TO— EXCLUDE— MODE  CHANGE— TO— EXCLUDE— MODE
ALLOW— NEW— SOURCES  ALLOW— NEW— SOURCES
BLOCK OLD SOURCES  BLOCK OLD SOURCES
如果参数 rl 字符串列表中的一行是" 224.100.200.3 , 1 , 192.168.1.2 , If the line in the parameter rl string list is " 224.100.200.3 , 1 , 192.168.1.2 ,
192.168.1.3" , 则表示加入组播组 224.100.200.3 , 源地址过滤类型为 MODE— IS— INCLUDE, 源地址列表为 192.168.1.2和 192.168.1.3 , 即要求加入 组播组 224.100.200.3 , 但是限定组播源地址必须是 192.168.1.2或 192.168.1.3。 192.168.1.3" means to join the multicast group 224.100.200.3, the source address filtering type is MODE-IS-INCLUDE, and the source address list is 192.168.1.2 and 192.168.1.3, that is, it is required to join the multicast group 224.100.200.3, but the limit is The multicast source address must be 192.168.1.2 or 192.168.1.3.
( 5 )参数 lg, 数据类型为 String list, 默认值为空; 其值代表离开的组播 组以及组播源地址的列表, 列表中的每一项为一个组播组地址以及组播源地 址。 格式如下:  (5) The parameter lg, the data type is String list, and the default value is null; its value represents the list of outgoing multicast groups and multicast source addresses. Each item in the list is a multicast group address and a multicast source address. . The format is as follows:
组播组地址, 组播源地址 1 , ...组播源地址 n  Multicast group address, multicast source address 1 , ... multicast source address n
组播源地址为可选, 如果不包含, 则表示是所有组播源地址。  The multicast source address is optional. If it is not included, it indicates all multicast source addresses.
例如: "224.100.250.1"表示有组播组 "224.100.250.1"的成员 离开。 "224.100.250.1 , 202.114.100.100"表示有组播组 "224.100.250.1"的组播源地址为 "202.114.100.100"的成员离开。 For example: "224.100.250.1" means that a member with a multicast group "224.100.250.1" left. "224.100.250.1, 202.114.100.100" indicates that the multicast source address "202.1140.25.100" of the multicast group "224.100.250.1" is left.
( 6 )参数 sa, 数据类型为 String, 其值为收到的 IGMP消息的源地址。 在实际应用中, 若 MGW的发送查询消息是由 MGC触发的, 也需要对 H.248进行扩展,例如扩展 H.248信号 igmpre用于 MGC指示 MGW发送 IGMP 的查询消息, 该信号包括如下参数:  (6) The parameter sa, the data type is String, which is the source address of the received IGMP message. In an actual application, if the MGW sends a query message triggered by the MGC, the H.248 needs to be extended. For example, the extended H.248 signal igmpre is used by the MGC to instruct the MGW to send an IGMP query message, and the signal includes the following parameters:
( 1 ) 参数 iprealm, 数据类型为 String, 默认值为空; 其值为发送 IGMP 消息的 IP域列表.取值可以参照 ITU-T H.248.41标准中的 ipdc包的 realm属性。  (1) The parameter iprealm, the data type is String, the default value is null; its value is the IP domain list for sending IGMP messages. For the value, refer to the realm attribute of the ipdc packet in the ITU-T H.248.41 standard.
如果该事件设置在非 ROOT终端上而且该终端被创建在某个 IP域或接口 上, 则不需要上报该参数。  If the event is set on a non-ROOT terminal and the terminal is created on an IP domain or interface, this parameter does not need to be reported.
( 2 )参数 ver, 数据类型为 integer, 默认值为 3; 其值为协议版本, 1 , 2, 3分别代表 IGMP的版本 1 , 2和 3。  (2) The parameter ver, the data type is integer, the default value is 3; its value is the protocol version, and 1, 2, 3 represent the IGMP versions 1, 2 and 3.
( 3 )参数 mrc, 数据类型为 integer, 默认值为空; 其值代表查询消息中 的 Max Resp Code字段。 表示等待响应报告的最大时长。  (3) The parameter mrc, the data type is integer, the default value is null; its value represents the Max Resp Code field in the query message. Indicates the maximum length of time to wait for a response report.
( 4 )参数 ga, 数据类型为 string, 默认值为空; 其值代表查询消息中的 组播组地址。  (4) The parameter ga, the data type is string, and the default value is null; its value represents the multicast group address in the query message.
( 5 )参数 sal, 数据类型为 string list, 默认值为空; 其值代表查询消息中 的组播源地址列表。  (5) The parameter sal, the data type is string list, and the default value is null; its value represents the list of multicast source addresses in the query message.
MGW接收到 MGC的 igmpre信号后,根据信号中的参数构造并发送 IGMP 的查询消息。  After receiving the igmpre signal of the MGC, the MGW constructs and sends an IGMP query message according to the parameters in the signal.
在 IP网络 1中, MGC指示 MGW接收上报和发送 PIM-SM协议消息, 所 以对 H.248协议要做相应扩展,可以在已有的或者新定义的 H.248包中定义信 号用于 MGC指示 MGW发送 PIM-SM协议消息。 例如可以定义信号 jp用于 MGC指示 MGW发送加入 /剪枝(Join/Prune ) 消息, 该信号包括如下参数中 的一个或者多个:  In the IP network 1, the MGC instructs the MGW to receive the report and send the PIM-SM protocol message, so the H.248 protocol should be extended accordingly, and the signal can be defined in the existing or newly defined H.248 packet for the MGC indication. The MGW sends a PIM-SM protocol message. For example, the signal jp can be defined for the MGC to instruct the MGW to send a Join/Prune message, which includes one or more of the following parameters:
( 1 )参数 iprealm, 数据类型为 String, 默认值为 空; 其值为发送 PIM-SM的加入 /剪枝消息的 IP域。取值可以参照 ITU-T H.248.41标准中的 ipdc 包的 realm属性。 该参数也可以用接口名参数代替, 功能相似。  (1) The parameter iprealm, the data type is String, and the default value is null. The value is the IP field of the join/prune message sent by PIM-SM. The value can refer to the realm attribute of the ipdc packet in the ITU-T H.248.41 standard. This parameter can also be replaced by the interface name parameter, which has similar functions.
( 2 )参数 uns ( Upstream Neighbor Address ), 数据类型为 string; 该参数 的值代表上游邻居的地址。 该值被编码后填到加入剪枝消息的相应字段中。(2) The parameter uns (Upstream Neighbor Address), the data type is string; The value represents the address of the upstream neighbor. This value is encoded and populated into the corresponding field of the join pruning message.
( 3 )参数 ht ( HoldTime ), 数据类型为 integer, 该参数的值表示接收者 保持加入剪枝状态的时长, 以秒为单位。该字段填到加入剪枝消息的相应字段 中。 (3) The parameter ht ( HoldTime ), the data type is integer, the value of this parameter indicates the length of time the receiver remains in the pruning state, in seconds. This field is populated in the corresponding field of the join pruning message.
( 4 )参数 content, 数据类型为 string list; 该列表中每一行代表对于某个 组播组地址(指定或者通配)的加入剪枝请求。 每一行都是一个如下格式的字 符串: "组地址 m, 加入源个数 n, 剪枝源个数 k, 加入源地址 1 , …加入源地 址 n, 剪枝源地址 1 , …剪枝源地址 k";  (4) The parameter content, the data type is string list; each row in the list represents a join pruning request for a multicast group address (specified or wildcard). Each line is a string of the following format: "Group address m, join source number n, pruning source number k, join source address 1, ... join source address n, pruning source address 1, ... pruning source Address k";
例如: "224.225.250.1 , 1 , 2 , 202.196.1.100 , 202.196.1.200, 202.196.1.201", 该行表示对组播组" 224.225.250.1 "进行加入操作, 加入源地址" 202.196.1.100" , 同时对该组播组进行剪枝操作, 剪枝源地址 "202.196.1.200"和 "202.196.1.201";  For example: "224.225.250.1, 1 , 2 , 202.196.1.100 , 202.196.1.200 , 202.196.1.201 ", this line indicates that the multicast group "224.225.250.1" is added, and the source address "202.196.1.100" is added. Pruning the multicast group, pruning source addresses "202.196.1.200" and "202.196.1.201";
前面描述的组播组地址可以指定某个具体的组播组地址,也可以使用通配 的格式。 对应加入剪枝消息中的 Multicast Group Address m字段。 m为该参数 string list的行号。力口入源地址对应 Joined Source Address字段 ,剪枝源地址对 应 Pruned Source Address字段。 加入源地址和剪枝源地址都支持通配。  The multicast group address described above can specify a specific multicast group address or a wildcard format. Corresponds to the Multicast Group Address m field in the prune message. m is the line number of the parameter string list. The source IP address corresponds to the Joined Source Address field, and the pruning source address corresponds to the Pruned Source Address field. Both the source address and the prune source address support wildcards.
要完成完整的 PIM路由器的功能, 还需要实现注册消息 (PIM Register Message ), 注册停止消息 (Register-Stop Message )和断言消息 ( PIM Assert Messages ) 的收发。 也可以扩展相应的 H.248的信号和事件, 使 MGC可以通 过信号指示 MGW发送上述的 PIM消息, MGW通过事件检测接收到的上述 PIM消息并且上报给 MGC。具体的扩展与前面为加入 /剪枝进行的 H.248协议 扩展类似, 此处不再赘述。  To complete the function of the complete PIM router, you need to implement the PIM Register Message, the Register-Stop Message and the PIM Assert Messages. The corresponding H.248 signals and events can also be extended, so that the MGC can signal the MGW to send the PIM message, and the MGW detects the received PIM message through the event and reports it to the MGC. The specific extension is similar to the previous H.248 protocol extension for join/prune, and will not be described here.
组播路由器向 MGW发送组播数据流, MGW接收到组播数据流, 根据 各下游流接口上的组播组成员状态将接收到的组播数据流转发到有组播组成 员的下游流接口上。 如果 MGW进行过组播组地址映射和 /或组播源地址的映 射, 那么在被转发的组播数据流的组播组地址和 /或源地址也要进行相应的替 换, 以避免组播组成员主机无法识别该数据流。 该映射关系可以配置在 MGW 上,还可以进一步由 MGC通过 H.248协议消息指示 MGW进行媒体流的转发 以及映射关系的实现, 例如可以定义信号 gdmap, 该信号有如下参数: ( 1 )参数 daa , 参数内容为新增或者更新的组播组地址映射关系列表。 列表中每一行的格式为: The multicast router sends a multicast data stream to the MGW. The MGW receives the multicast data stream and forwards the received multicast data stream to the downstream stream interface with the multicast group member according to the status of the multicast group member on each downstream flow interface. on. If the MGW performs multicast group address mapping and/or multicast source address mapping, the multicast group address and/or source address of the forwarded multicast data stream must be replaced accordingly to avoid multicast groups. The member host does not recognize the data stream. The mapping relationship may be configured on the MGW, and the MGC may further instruct the MGW to perform media stream forwarding and mapping relationship by using an H.248 protocol message. For example, the signal gdmap may be defined, and the signal has the following parameters: (1) The parameter daa, the parameter content is a list of newly added or updated multicast group address mapping relationships. The format of each line in the list is:
"下游 IP域指示, 上游 IP域指示, 下游组播组地址, 映射到的上游组播 组地址";  "Downstream IP domain indication, upstream IP domain indication, downstream multicast group address, upstream multicast group address mapped to";
例如" dl , d2, 224.200.251.1 , 224.200.100.2,,表示 IP域" dl,,的组播组地 址" 224.200.251.1"被映射到 IP域" d2,,的" 224.200.100.2"; "映射到的上游组播 组地址"可选, 如果该参数没有这一项, 则表示对于该组播组不做组播组地址 映射。该行仅仅描述对该组播组的一个上下游流接口关系,如果在该组播组的 组播树的上一个上游流接口有多个下游流接口,那么通过该参数列表的多行描 述。  For example "dl, d2, 224.200.251.1, 224.200.100.2," indicates that the IP domain "dl", the multicast group address "224.200.251.1" is mapped to the IP domain "d2," of "224.200.100.2"; The upstream multicast group address is optional. If the parameter does not contain this entry, the multicast group address mapping is not performed for the multicast group. This line only describes an upstream and downstream flow interface relationship of the multicast group. If there is multiple downstream flow interfaces on the upstream upstream interface of the multicast tree of the multicast group, the multiple lines of the parameter list are described.
( 2 )参数 sda, 参数内容为新增或者更新的组播源地址映射关系列表。 格 式为: "下游 IP域指示, 上游 IP域指示, 下游组播组地址, 下游组播源地址, 映射到的上游组播源地址"; "映射到的上游组播源地址"可选, 如果没有这一 项, 则表示不需要对源地址做映射。该行仅仅描述对应该组播组的该组播源地 址的一个上下游流接口关系,如果该组播组的该组播源地址的一个上游流接口 有多个下游流接口, 那么通过该参数列表的多行描述。 例如: "dl , d2 , 224.200.251.1 , 192.168.1.100"表示对于组播组" 224.200.251.1"的源地址为 "192.168.1.100"的组播数据流, IP域指示为" d2"的 IP网络是上游网络, IP域 指示为 "dl"的 IP网络是下游网络。  (2) Parameter sda, the content of the parameter is a new or updated list of multicast source address mapping relationships. The format is: "downstream IP domain indication, upstream IP domain indication, downstream multicast group address, downstream multicast source address, upstream multicast source address mapped to"; "upstream multicast source address mapped" is optional. Without this item, it means that there is no need to map the source address. The line only describes an upstream and downstream flow interface relationship of the multicast source address corresponding to the multicast group. If an upstream flow interface of the multicast source address of the multicast group has multiple downstream flow interfaces, the parameter is adopted. A multi-line description of the list. For example: "dl, d2, 224.200.251.1, 192.168.1.100" means an IP network with a source address of "192.168.1.100" for multicast group "224.200.251.1" and an IP network with "d2" for IP domain It is the upstream network, and the IP network indicated by the IP domain as "dl" is the downstream network.
该映射关系条目可能比较多,所以还可以扩展包支持对其进行审计, MGC 从审计结果获知存在多少映射, 以及分批审计出映射的内容。如果由 MGW根 据各下游流接口上组播组成员状态的改变向上游网络发送加入 /剪枝消息, MGW也必须知道该地址映射关系 ,在加入 /剪枝消息中的组播组地址和组播数 据流源地址必须由下游流接口上请求消息中的地址被转换成映射后的上游网 络的地址。  There may be more mapping entries, so you can also extend the package to support auditing. MGC knows how many mappings exist from the audit results, and audits the contents of the mapping in batches. If the MGW sends a join/prune message to the upstream network according to the change of the multicast group member status on each downstream flow interface, the MGW must also know the address mapping relationship, the multicast group address and multicast in the join/prune message. The data stream source address must be translated to the address of the mapped upstream network by the address in the request message on the downstream stream interface.
除了以上由 MGC控制 MGW在下游流接口接受上报组播成员管理协议消 息并且在上游流接口上上指示 MGW发送组播路由协议消息以外 ,还有另外一 种 MGW依靠配置数据自主完成前述的组播路由功能的方法。需要在组播路由 装置上要配置对组播成员管理协议和组播路由协议的支持,配置各组播组及源 地址与上下游流接口关系及上游路由器地址(该部分配置一些情况下可以通过 接收 PIM-SM的"自举,,消息获得 ), 组播组地址映射关系和组播源地址映射关 系等的部分或者全部。 配置信息可以部分或全部包括以下各项,但是并不限于 以下各项: In addition to the above, the MGC controls the MGW to accept the report of the multicast member management protocol message on the downstream flow interface and instructs the MGW to send the multicast routing protocol message on the upstream flow interface, and another MGW relies on the configuration data to autonomously complete the foregoing multicast. The method of routing function. You need to configure support for multicast member management protocols and multicast routing protocols on the multicast routing device, and configure multicast groups and sources. The address and the upstream and downstream flow interface relationship and the upstream router address (the part can be configured to receive the PIM-SM "bootstrap, message"), the multicast group address mapping relationship, and the multicast source address mapping relationship. Or all. The configuration information may include the following items in part or in whole, but is not limited to the following:
( 1 )运行 IGMP协议的接口, 配置哪些接口上需要支持收发 IGMP协议 消息。  (1) Interfaces that run IGMP, and configure which interfaces need to support IGMP messages.
( 2 )运行 PIM-SM协议的接口, 配置哪些接口上需要支持收发 PIM-SM 消息。  (2) The interface that runs the PIM-SM protocol, and configures which interfaces need to support the sending and receiving of PIM-SM messages.
同一个接口上可以既运行 IGMP协议又运行 PIM-SM协议。因为本实施例 是以 IGMP和 PIM-SM为例进行说明,实际上本发明的原理可以适用其它的组 播成员管理协议和组播路由协议, 所以, 如果有多种协议可以选择, 还需要配 置使用的组播成员管理协议和组播路由协议的协议类型,例如 MLD, PIM-DM 等等。  Both the IGMP protocol and the PIM-SM protocol can be run on the same interface. This example is based on IGMP and PIM-SM. In fact, the principles of the present invention can be applied to other multicast member management protocols and multicast routing protocols. Therefore, if multiple protocols are available, you need to configure them. The protocol type of the multicast member management protocol and multicast routing protocol used, such as MLD, PIM-DM, and so on.
( 3 ) 接口上运行 IGMP协议的 IP地址。 该地址为收发 IGMP消息的本 地地址。 一个接口可能有多个地址, 另外, 该组播路由装置可能有多个接口连 接到同一个 IP。 所以有必要配置在某个 IP网络 IGMP协议使用的 IP地址。  (3) The IP address of the IGMP protocol running on the interface. This address is the local address for sending and receiving IGMP messages. An interface may have multiple addresses. In addition, the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the IGMP protocol on an IP network.
( 4 )接口上运行 PIM-SM协议的 IP地址。该地址为收发 PIM-SM消息的 本地地址。 一个接口可能有多个地址, 另外, 该组播路由装置可能有多个接口 连接到同一个 IP。所以有必要配置在某个 IP网络 PIM-SM协议使用的 IP地址。  (4) The IP address of the PIM-SM protocol running on the interface. This address is the local address of the PIM-SM message. An interface may have multiple addresses. In addition, the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the PIM-SM protocol on an IP network.
( 5 ) RP的地址。不同组播组可能有不同的 RP. 该组播路由装置也可以从 接收到的 PIM-SM自举消息中获得各组播组使用的 RP地址。但是有时候并不 能获得, 要依靠配置。  (5) The address of the RP. Different multicast groups may have different RPs. The multicast routing device may also obtain the RP address used by each multicast group from the received PIM-SM bootstrap message. But sometimes it is not available, relying on configuration.
( 6 )接口的上游路由器地址; 不同的组播组, 或者相同组播组的不同组 播源地址可能有不同的上游路由器地址。  (6) The upstream router address of the interface; different multicast groups, or different multicast source addresses of the same multicast group, may have different upstream router addresses.
如果获得了 RP地址或者组播源地址, 该组播路由装置可以通过单播路由 获得共享树或者信源树的上游路由器地址, 依据的是 RPF原理。 但是, 如果 考虑到该组播路由装置可能不能和 RP等直接路由等原因, 那么使用配置的方 法也可以实现。  If the RP address or the multicast source address is obtained, the multicast routing device can obtain the address of the upstream router or the upstream router of the source tree through unicast routing, which is based on the RPF principle. However, if the multicast routing device may not be able to directly route with the RP or the like, the configuration method can also be implemented.
( 7 )组播组地址对应的上游流接口; 某个组播组的共享树的上游流接口。 该组播路由装置通过该接口向上游路由器发送该组播组的 PIM-SM加入 /剪枝 等消息 (7) The upstream flow interface corresponding to the multicast group address; the upstream flow interface of the shared tree of a multicast group. The multicast routing device sends a PIM-SM join/prune message of the multicast group to the upstream router through the interface.
( 8 )组播组地址和组播源地址对应的上游流接口; 某个组播组的某个组 播源地址的信源树的上游流接口。如果该接口和该组播组的共享树的上游流接 口相同, 则没有必要单独为该源地址配置。 所以配置信源树的上游流接口比较 好。  (8) The upstream flow interface corresponding to the multicast group address and the multicast source address; the upstream flow interface of the source tree of a multicast source address of a multicast group. If the interface is the same as the upstream stream interface of the shared tree of the multicast group, it is not necessary to configure the source address separately. Therefore, it is better to configure the upstream stream interface of the source tree.
( 9 )组播组地址映射关系和组播源地址的映射关系。  (9) The mapping relationship between the multicast group address mapping relationship and the multicast source address.
该映射关系不仅用于组播路由消息中地址的映射 ,也用于转发组播数据流 时修改 IP头中的组播组地址和源地址。  This mapping relationship is used not only for the mapping of addresses in multicast routing messages, but also for modifying the multicast group address and source address in the IP header when forwarding multicast data streams.
( 10 )用户权限设置。设置各用户的权限, 包括可以加入的组播组范围等。 该组播路由装置收到 IGMP 的加入组播组的请求后可以根据该用户的权限配 置判断是否丟弃该请求消息。通过本发明的配置, 该组播路由装置可以自行进 行组播数据流的转发。  (10) User permission settings. Set the permissions of each user, including the range of multicast groups that can be joined. After receiving the IGMP request to join the multicast group, the multicast routing device may determine whether to discard the request message according to the permission configuration of the user. With the configuration of the present invention, the multicast routing device can forward the multicast data stream by itself.
( 11 ) IGMP以及 PIM-SM协议规定的各种定时器和参数的配置。  (11) Configuration of various timers and parameters specified by IGMP and PIM-SM protocols.
如果该组播路由装置是一个媒体网关,还可以通过媒体网关控制器对媒体 网关的以上设置中的部分或者全部进行设置或者更新。  If the multicast routing device is a media gateway, some or all of the above settings of the media gateway may also be set or updated by the media gateway controller.
使用信号 gdmap 的内容配置各对上下游流接口所在网络之间的组播组地 址映射和组播源地址映射。为了使媒体网关控制器可以控制媒体网关上的组播 组信息和上游流接口的对应关系, 可以在信号 gdmap上扩展如下参数:  Use the content of the signal gdmap to configure multicast group address mapping and multicast source address mapping between the networks where the upstream and downstream flow interfaces are located. In order to enable the media gateway controller to control the correspondence between the multicast group information on the media gateway and the upstream stream interface, the following parameters may be extended on the signal gdmap:
参数 upa。 格式为: "上游组播组地址, 上游 IP域指示, 过滤条件, 组播 源地址 1 , ...组播源地址 n"; 例如: "224.100.200.111 , dl , include,202.114.100.200,,表示组播组地址为 "224.100.200" , 组播源地址为 "202.114.100.200"的组播组的上游流接 口 在 IP 域 "dl"中 。 再例 如 :"224.100.200.111 , dl , exclude,202.114.100.100"表示组播组地址为 "224.100.200" , 组播源地址除" 202.114.100.100"以外所有源地址的组播组的上 游流接口在 IP域" dl"中。  Parameter upa. The format is: "upstream multicast group address, upstream IP domain indication, filter condition, multicast source address 1, ... multicast source address n"; for example: "224.100.200.111, dl, include, 202.114.100.200,, The upstream flow interface of the multicast group whose multicast source address is "202.114.100.200" is in the IP domain "dl". For example: "224.100.200.111, dl, exclude, 202.114.100.100" indicates that the multicast group address is "224.100.200", and the upstream stream interface of the multicast group with all source addresses except "202.114.100.100" is in the IP domain "dl".
还可以对 H.248协议做进一步的扩展, 用来 MGC指示 MGW修改其它的 配置。 另外, 信号 gdmap还可以通过 H.248属性的方式携带相同的配置信息, 具体方法不再赘述。 以上介绍的两种方法可以组合使用。 The H.248 protocol can be further extended to allow the MGC to instruct the MGW to modify other configurations. In addition, the signal gdmap can also carry the same configuration information by using the H.248 attribute, and the specific method is not described here. The two methods described above can be used in combination.
如图 7所示, 描述了 MGC对 MGW进行控制, 使 MGW实现本发明实施 例提供的组播路由方法的情况, 在 MGW 的下游流接口使用组播成员管理协 议,在 MGW的上游流接口使用组播成员管理协议,本发明实施例提供的组播 路由方法实施例七具体包括:  As shown in FIG. 7, the MGC controls the MGW to enable the MGW to implement the multicast routing method provided by the embodiment of the present invention. The downstream flow interface of the MGW uses the multicast member management protocol and is used on the upstream flow interface of the MGW. The multicast member management protocol, the seventh embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
MGW在 IP网络 2中作为组播路由器, 使用 IGMP协议; 接收来自 IP网 络 2中主机的基于 IGMP协议的 ^艮告消息, 离开组播组消息, 向 IP网络 2发 送查询消息等;  The MGW acts as a multicast router in the IP network 2, and uses the IGMP protocol; receives an IGMP-based message from the host in the IP network 2, leaves the multicast group message, and sends an inquiry message to the IP network 2;
MGW在 IP网络 1中作为主机, 使用 IGMP协议; 向 IP网络 1中的组播 路由器发送基于 IGMP协议的报告消息, 离开组播组消息以及响应查询消息 等;  The MGW acts as a host in the IP network 1 and uses the IGMP protocol; sends an IGMP-based report message to the multicast router in the IP network 1, leaving the multicast group message and responding to the query message;
MGW接收到来自 IP网络 1 中的组播路由器的组播数据流后, 将组播数 据流转发给 IP网络 2中的主机。  After receiving the multicast data stream from the multicast router in the IP network 1, the MGW forwards the multicast data stream to the host in the IP network 2.
其中, MGW在执行上述部分或全部流程时, 受 MGC控制, MGC通过扩 展的 H.248协议对 MGW进行控制。  The MGW is controlled by the MGC when performing some or all of the above processes, and the MGC controls the MGW through the extended H.248 protocol.
MGW的下游流接口上和下游流接口上都使用组播成员管理协议。在下游 流接口上的处理和情况 1的处理方式一样,都是通过各个下游流接口上接收处 理组播成员管理协议的加入组播组和离开组播组的消息,维护下游流接口上的 组播定时器的状态,发送查询消息,从而卫护下游流接口上的组播组成员状态。 进而, 维护设备组播成员数据库, 设备组播成员数据库发生改变后, 向上游流 接口发送组播成员管理协议的加入组播组和离开组播组的消息来体现该 MGW作为一个主机的组播订阅情况。  The multicast member management protocol is used on both the downstream flow interface and the downstream flow interface of the MGW. The processing on the downstream flow interface is the same as that in the case of the case 1, and the packets on the downstream flow interface are maintained by receiving the messages of the multicast group member and the outgoing multicast group that are processed by the multicast member management protocol. The status of the broadcast timer sends a query message to defend the status of multicast group members on the downstream flow interface. In addition, after the device multicast member database is maintained, the device multicast member database is changed, and the multicast member management protocol joins the multicast group and leaves the multicast group to send the message to the MGW as a host. Subscription status.
MGW接收到下游流接口上的组播成员管理协议消息后上报给 MGC, MGC指示媒体网关在上游流接口上发送组播成员管理协议消息, 例如 IGMP 消息。 下游流接口上的处理可以参照图 6 的情况, 上游流接口上扩展信号 igmpsrl.该信号用于 MGC指示 MGW在指定的上游流接口上发送 IGMP消息, 信号参数携带该 IGMP消息中字段的内容。  After receiving the multicast member management protocol message on the downstream flow interface, the MGW reports the message to the MGC. The MGC instructs the media gateway to send a multicast member management protocol message, such as an IGMP message, on the upstream flow interface. For the processing on the downstream flow interface, reference may be made to the case of FIG. 6. The upstream stream interface is configured to extend the signal igmpsrl. The signal is used by the MGC to indicate that the MGW sends an IGMP message on the designated upstream flow interface, and the signal parameter carries the content of the field in the IGMP message.
除了以上由 MGC控制 MGW在下游流接口接受上报组播成员管理协议消 息并且在上游流接口上上指示 MGW发送组播成员管理协议消息的方法以外, 还有另外一种 MGW依靠配置数据自主完成前述的组播成员管理功能的方法。 需要在组播路由装置上要配置对组播成员管理协议(例如 IGMP协议)的支持, 配置各组播组及源地址与上下游流接口关系及上游路由器地址,组播组地址映 射关系和组播源地址映射关系等中的部分或者全部。配置信息可以部分或全部 包括以下各项, 但是并不限于以下各项: In addition to the above method in which the MGC controls the MGW to accept the report of the multicast member management protocol message on the downstream flow interface and instructs the MGW to send the multicast member management protocol message on the upstream flow interface, There is another method in which the MGW relies on configuration data to autonomously perform the aforementioned multicast member management functions. You need to configure support for the multicast member management protocol (such as IGMP) on the multicast routing device, configure the relationship between the multicast group and source address and the upstream and downstream flow interfaces, and the upstream router address, multicast group address mapping relationship, and group. Part or all of the source address mapping relationship. The configuration information may include the following items in part or in whole, but is not limited to the following:
( 1 )运行 IGMP协议的接口, 配置哪些接口上需要支持收发 IGMP协议 消息。  (1) Interfaces that run IGMP, and configure which interfaces need to support IGMP messages.
( 2 ) 接口上运行 IGMP协议的 IP地址。 该地址为收发 IGMP消息的本 地地址。 一个接口可能有多个地址, 另外, 该组播路由装置可能有多个接口连 接到同一个 IP。 所以有必要配置在某个 IP网络 IGMP协议使用的 IP地址。  ( 2) The IP address of the IGMP protocol running on the interface. This address is the local address for sending and receiving IGMP messages. An interface may have multiple addresses. In addition, the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the IGMP protocol on an IP network.
( 3 )组播组地址对应的上游流接口; 某个组播组的共享树的上游流接口。 该组播路由装置通过该接口向上游路由器发送该组播组的 PIM-SM加入 /剪枝 等消息  (3) The upstream flow interface corresponding to the multicast group address; the upstream flow interface of the shared tree of a multicast group. The multicast routing device sends a PIM-SM join/prune message of the multicast group to the upstream router through the interface.
( 4 )组播组地址和组播源地址对应的上游流接口; 某个组播组的某个组 播源地址的信源树的上游流接口。如果该接口和该组播组的共享树的上游流接 口相同, 则没有必要单独为该源地址配置。 所以配置信源树的上游流接口比较 好。  (4) The upstream flow interface corresponding to the multicast group address and the multicast source address; the upstream flow interface of the source tree of a multicast source address of a multicast group. If the interface is the same as the upstream stream interface of the shared tree of the multicast group, it is not necessary to configure the source address separately. Therefore, it is better to configure the upstream stream interface of the source tree.
( 5 )组播组地址映射关系和组播源地址的映射关系。  (5) The mapping relationship between the multicast group address mapping relationship and the multicast source address.
该映射关系不仅用于组播路由消息中地址的映射 ,也用于转发组播数据流 时修改 IP头中的组播组地址和源地址。  This mapping relationship is used not only for the mapping of addresses in multicast routing messages, but also for modifying the multicast group address and source address in the IP header when forwarding multicast data streams.
( 6 )用户权限设置。 设置各用户的权限, 包括可以加入的组播组范围等。 该组播路由装置收到 IGMP 的加入组播组的请求后可以根据该用户的权限配 置判断是否丟弃该请求消息。通过本发明的配置, 该组播路由装置可以自行进 行组播数据流的转发。  (6) User permission settings. Set the permissions of each user, including the range of multicast groups that can be joined. After receiving the IGMP request to join the multicast group, the multicast routing device may determine whether to discard the request message according to the permission configuration of the user. With the configuration of the present invention, the multicast routing device can forward the multicast data stream by itself.
( 7 ) IGMP协议规定的各种定时器和参数的配置。  (7) Configuration of various timers and parameters specified in the IGMP protocol.
如果该组播路由装置是一个媒体网关,还可以通过媒体网关控制器对媒体 网关的以上设置中的部分或者全部进行设置或者更新。  If the multicast routing device is a media gateway, some or all of the above settings of the media gateway may also be set or updated by the media gateway controller.
使用信号 gdmap可以配置各对上下游流接口所在网络之间的组播组地址 映射和组播源地址映射,以及组播组信息和上游流接口的对应关系,即配置( 5 ), ( 6 ) , ( 7 )。 还可以对 H.248协议做进一步的扩展, 用来 MGC指示 MGW修 改其它的配置。 The signal gdmap can be used to configure the multicast group address mapping and multicast source address mapping between the network where the upstream and downstream flow interfaces are located, and the mapping between the multicast group information and the upstream flow interface, that is, configuration (5). (6), (7). The H.248 protocol can be further extended to allow the MGC to instruct the MGW to modify other configurations.
以上介绍的两种方法可以组合使用。  The two methods described above can be used in combination.
如图 8所示, 描述了 MGC对 MGW进行控制, 使 MGW实现本发明实施 例提供的组播路由方法的情况,在 MGW的下游流接口使用组播路由协议,在 MGW的上游流接口使用组播成员管理协议, 本发明实施例提供的组播路由方 法实施例八具体包括:  As shown in FIG. 8, the MGC controls the MGW to enable the MGW to implement the multicast routing method provided by the embodiment of the present invention. The downstream flow interface of the MGW uses the multicast routing protocol, and the upstream flow interface uses the group in the MGW. The embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
MGW在 IP网络 2中作为组播路由器, 使用 PIM-SM协议; 接收来自 IP 网络 2中组播路由器的基于 PIM-SM协议的加入 /剪枝消息等;  The MGW acts as a multicast router in the IP network 2, and uses the PIM-SM protocol; receives the PIM-SM-based join/prune message from the multicast router in the IP network 2;
MGW在 IP网络 1中作为主机, 使用 IGMP协议; 向 IP网络 1中的组播 路由器发送基于 IGMP协议的报告消息, 离开组播组消息以及响应查询消息 等;  The MGW acts as a host in the IP network 1 and uses the IGMP protocol; sends an IGMP-based report message to the multicast router in the IP network 1, leaving the multicast group message and responding to the query message;
MGW接收到来自 IP网络 1 中的组播路由器的组播数据流后, 将组播数 据流转发给 IP网络 2中的组播路由器。  After receiving the multicast data stream from the multicast router in the IP network 1, the MGW forwards the multicast data stream to the multicast router in the IP network 2.
其中, MGW在执行上述部分或全部流程时, 受 MGC控制, MGC通过扩 展的 H.248协议对 MGW进行控制。  The MGW is controlled by the MGC when performing some or all of the above processes, and the MGC controls the MGW through the extended H.248 protocol.
MGW的下游流接口上使用组播路由协议, 上游流接口上使用组播成员管 理协议。上游流接口上的处理方式和图 7相同。在下游流接口上接收和处理的 是组播路由协议消息, 例如 PIM-SM的加入 /剪枝消息。 MGW通过接收到的 组播路由协议消息以及组播定时器的状态维护各下游流接口的组播组成员状 态, 进而, 维护设备组播成员数据库, 设备组播成员数据库发生改变后, 向上 游流接口发送组播成员管理协议的加入组播组和离开组播组的消息来体现该 MGW作为一个主机的组播订阅情况。  The multicast routing protocol is used on the downstream flow interface of the MGW, and the multicast member management protocol is used on the upstream flow interface. The processing on the upstream stream interface is the same as in Figure 7. Received and processed on the downstream flow interface are multicast routing protocol messages, such as PIM-SM join/prune messages. The MGW maintains the multicast group member status of each downstream flow interface by receiving the multicast routing protocol message and the state of the multicast timer, and further, the device multicast member database is maintained, and the device multicast member database is changed, and then flows upstream. The interface sends the multicast group management protocol to join the multicast group and leave the multicast group to reflect the multicast subscription status of the MGW as a host.
MGW接收到下游流接口上的组播路由协议消息后上报给 MGC, MGC指 示 MGW在上游流接口上发送组播成员管理协议消息,例如 IGMP消息。上游 流接口上扩展信号 igmpsrl.该信号用于 MGC指示 MGW在指定的上游流接口 上发送 IGMP消息, 信号参数携带该 IGMP消息中字段的内容。  After receiving the multicast routing protocol message on the downstream flow interface, the MGW reports the message to the MGC. The MGW indicates that the MGW sends a multicast member management protocol message, such as an IGMP message, on the upstream flow interface. The upstream signal is extended on the upstream interface. igmpsrl. This signal is used by the MGC to indicate that the MGW sends an IGMP message on the specified upstream flow interface. The signal parameter carries the content of the field in the IGMP message.
下游流接口上通过组播路由协议获得该接口上的组播组成员状态,下游网 络,以及离主机用户更近的更下游的网络能够在运行组播路由协议时认为该上 游流接口地址是组播树上的上游路由器的地址, 组播树不绕过了该下游流接 口,则一种可行的方法是本发明的组播路由装置在下游流接口上作为 RP使用, 该下游流接口是 RP的地址, 在该下游流接口上向共享树的下游分支转发组播 数据流, 同时接收和处理下游网络发来的加入 /剪枝消息。 The downstream flow interface obtains the status of the multicast group member on the interface through the multicast routing protocol. The downstream network and the more downstream network closer to the host user can consider the upper layer when running the multicast routing protocol. The address of the upstream interface is the address of the upstream router on the multicast tree. The multicast tree does not bypass the downstream flow interface. A feasible method is that the multicast routing device of the present invention is used as an RP on the downstream flow interface. The downstream flow interface is an address of the RP, and the multicast data flow is forwarded to the downstream branch of the shared tree on the downstream flow interface, and the join/prune message sent by the downstream network is received and processed at the same time.
除了以上由 MGC控制 MGW在下游流接口接受上报组播路由协议消息并 且在上游流接口上上指示 MGW发送组播成员管理协议消息的方法以外,还有 另外一种 MGW依靠配置数据自主完成前述的组播路由功能的方法。需要在组 播路由装置上要配置对组播成员管理协议 (例如 IGMP协议)和组播路由协议 (例如 PIM-SM协议 )的支持, 配置各组播组及源地址与上下游流接口关系及 上游路由器地址,组播组地址映射关系和组播源地址映射关系等中的部分或者 全部。 配置信息可以部分或全部包括以下各项, 但是并不限于以下各项:  In addition to the above method in which the MGC controls the MGW to accept the reported multicast routing protocol message on the downstream flow interface and instructs the MGW to send the multicast member management protocol message on the upstream flow interface, there is another MGW that relies on the configuration data to autonomously perform the foregoing The method of multicast routing function. Support for multicast member management protocols (such as IGMP) and multicast routing protocols (such as PIM-SM) on the multicast routing device, and configure the relationship between each multicast group and source address and upstream and downstream flow interfaces. Part or all of the upstream router address, multicast group address mapping relationship, and multicast source address mapping relationship. The configuration information may include the following items in part or in whole, but is not limited to the following:
( 1 )运行 IGMP协议的接口, 配置哪些接口上需要支持收发 IGMP协议 消息。  (1) Interfaces that run IGMP, and configure which interfaces need to support IGMP messages.
( 2 )运行 PIM-SM协议的接口, 配置哪些接口上需要支持收发 PIM-SM 消息。  (2) The interface that runs the PIM-SM protocol, and configures which interfaces need to support the sending and receiving of PIM-SM messages.
同一个接口上可以既运行 IGMP协议又运行 PIM-SM协议。因为本实施例 是以 IGMP和 PIM-SM为例进行说明,实际上本发明的原理可以适用其它的组 播成员管理协议和组播路由协议, 所以, 如果有多种协议可以选择, 还需要配 置使用的组播成员管理协议和组播路由协议的协议类型,例如 MLD, PIM-DM 等等。  Both the IGMP protocol and the PIM-SM protocol can be run on the same interface. This example is based on IGMP and PIM-SM. In fact, the principles of the present invention can be applied to other multicast member management protocols and multicast routing protocols. Therefore, if multiple protocols are available, you need to configure them. The protocol type of the multicast member management protocol and multicast routing protocol used, such as MLD, PIM-DM, and so on.
( 3 ) 接口上运行 IGMP协议的 IP地址。 该地址为收发 IGMP消息的本 地地址。 一个接口可能有多个地址, 另外, 该组播路由装置可能有多个接口连 接到同一个 IP。 所以有必要配置在某个 IP网络 IGMP协议使用的 IP地址。  (3) The IP address of the IGMP protocol running on the interface. This address is the local address for sending and receiving IGMP messages. An interface may have multiple addresses. In addition, the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the IGMP protocol on an IP network.
( 4 )接口上运行 PIM-SM协议的 IP地址。该地址为收发 PIM-SM消息的 本地地址。 一个接口可能有多个地址, 另外, 该组播路由装置可能有多个接口 连接到同一个 IP。所以有必要配置在某个 IP网络 PIM-SM协议使用的 IP地址。  (4) The IP address of the PIM-SM protocol running on the interface. This address is the local address of the PIM-SM message. An interface may have multiple addresses. In addition, the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the PIM-SM protocol on an IP network.
( 5 )组播组地址对应的上游流接口; 某个组播组的共享树的上游流接口。 该组播路由装置通过该接口向上游路由器发送该组播组的 PIM-SM加入 /剪枝 等消息 ( 6 )组播组地址和组播源地址对应的上游流接口; 某个组播组的某个组 播源地址的信源树的上游流接口。如果该接口和该组播组的共享树的上游流接 口相同, 则没有必要单独为该源地址配置。 所以配置信源树的上游流接口比较 好。 (5) The upstream flow interface corresponding to the multicast group address; the upstream flow interface of the shared tree of a multicast group. The multicast routing device sends a PIM-SM join/prune message of the multicast group to the upstream router through the interface. (6) The upstream flow interface corresponding to the multicast group address and the multicast source address; the upstream flow interface of the source tree of a multicast source address of a multicast group. If the interface and the upstream stream interface of the shared tree of the multicast group are the same, it is not necessary to configure the source address separately. Therefore, configuring the upstream stream interface of the source tree is better.
( 7 )组播组地址映射关系和组播源地址的映射关系。  (7) The mapping relationship between the multicast group address mapping relationship and the multicast source address.
该映射关系不仅用于组播路由消息中地址的映射 ,也用于转发组播数据流 时修改 IP头中的组播组地址和源地址。  This mapping relationship is used not only for the mapping of addresses in multicast routing messages, but also for modifying the multicast group address and source address in the IP header when forwarding multicast data streams.
使用信号 gdmap可以配置各对上下游流接口所在网络之间的组播组地址 映射和组播源地址映射,以及和组播组信息和上游流接口的对应关系, 即配置 ( 5 ) , ( 6 ) , ( 7 )。还可以对 H.248协议做进一步的扩展,用来 MGC指示 MGW 修改其它的配置。  Use the gdmap command to configure the multicast group address mapping and multicast source address mapping between the network where the upstream and downstream flow interfaces reside, and the mapping between the multicast group information and the upstream flow interface. That is, configuration ( 5 ), ( 6 ), (7). The H.248 protocol can be further extended to allow the MGC to instruct the MGW to modify other configurations.
以上介绍的两种方法可以组合使用。  The two methods described above can be used in combination.
如图 9所示, 描述了 MGC对 MGW进行控制, 使 MGW实现本发明实施 例提供的组播路由方法的情况,在 MGW的下游流接口使用组播路由协议,在 MGW的上游流接口使用组播路由协议, 本发明实施例提供的组播路由方法实 施例九具体包括:  As shown in FIG. 9, the MGC controls the MGW to enable the MGW to implement the multicast routing method provided by the embodiment of the present invention. The downstream flow interface of the MGW uses the multicast routing protocol, and the upstream flow interface usage group of the MGW. The ninth embodiment of the multicast routing method provided by the embodiment of the present invention specifically includes:
MGW在 IP网络 2中作为组播路由器, 使用 PIM-SM协议; 接收来自 IP 网络 2中组播路由器的基于 PIM-SM协议的加入 /剪枝消息等;  The MGW acts as a multicast router in the IP network 2, and uses the PIM-SM protocol; receives the PIM-SM-based join/prune message from the multicast router in the IP network 2;
MGW在 IP网络 1中作为组播路由器, 使用 PIM-SM协议; 向 IP网络 1 中的组播路由器发送基于 PIM-SM协议的加入 /剪枝消息等;  The MGW functions as a multicast router in the IP network 1 and uses the PIM-SM protocol; sends a PIM-SM based join/prune message to the multicast router in the IP network 1;
MGW接收到来自 IP网络 1 中的组播路由器的组播数据流后, 将组播数 据流转发给 IP网络 2中的组播路由器。  After receiving the multicast data stream from the multicast router in the IP network 1, the MGW forwards the multicast data stream to the multicast router in the IP network 2.
其中, MGW在执行上述部分或全部流程时, 受 MGC控制, MGC通过扩 展的 H.248协议对 MGW进行控制。  The MGW is controlled by the MGC when performing some or all of the above processes, and the MGC controls the MGW through the extended H.248 protocol.
MGW的下游流接口上和上游流接口上都使用处理组播路由协议。在下游 流接口上接收和处理的是组播路由协议消息,例如 PIM-SM的加入 /剪枝消息。 该 MGW通过接收到的组播路由协议消息以及组播定时器的状态维护各下游 流接口的组播组成员状态, 进而, 维护设备组播成员数据库, 设备组播成员数 据库发生改变后, 向上游流接口发送组播路由协议进行加入 /剪枝操作。 媒体网关接收到下游流接口上的组播路由协议消息后上报给 MGC, MGC 指示 MGW在上游流接口上发送组播路由协议消息。这需要对 H.248协议扩展 信号和事件等。 The multicast routing protocol is used on both the downstream flow interface and the upstream flow interface of the MGW. Received and processed on the downstream flow interface is a multicast routing protocol message, such as a join/prune message of the PIM-SM. The MGW maintains the multicast group member status of each downstream flow interface by receiving the multicast routing protocol message and the state of the multicast timer, and further, maintaining the device multicast member database, and changing the device multicast member database to the upstream The stream interface sends a multicast routing protocol to join/prune operations. After receiving the multicast routing protocol message on the downstream flow interface, the media gateway reports the message to the MGC. The MGC instructs the MGW to send the multicast routing protocol message on the upstream flow interface. This requires extension of signals and events to the H.248 protocol.
下游流接口上通过组播路由协议获得该接口上的组播组成员状态,下游网 络,以及离主机用户更近的更下游的网络能够在运行组播路由协议时认为该上 游流接口地址是组播树上的上游路由器的地址, 组播树不绕过了该下游流接 口,则一种可行的方法是本发明的组播路由装置在下游流接口上作为 RP使用, 该下游流接口是 RP的地址, 在该下游流接口上向共享树的下游分支转发组播 数据流, 同时接收和处理下游网络发来的加入 /剪枝消息。  The downstream flow interface obtains the multicast group member status on the interface through the multicast routing protocol. The downstream network and the more downstream network closer to the host user can consider the upstream flow interface address as a group when running the multicast routing protocol. For the address of the upstream router on the broadcast tree, the multicast tree does not bypass the downstream flow interface. A feasible method is that the multicast routing device of the present invention functions as an RP on the downstream flow interface, and the downstream flow interface is an RP. The address, on the downstream flow interface, forwards the multicast data stream to the downstream branch of the shared tree, and simultaneously receives and processes the join/prune message sent by the downstream network.
除了以上由 MGC控制 MGW在下游流接口接受上报组播路由协议消息并 且在上游流接口上上指示 MGW发送组播路由协议消息以外, 还有另外一种 MGW依靠配置数据自主完成前述的组播路由功能的方法。 需要在组播路由装 置上要配置对组播路由协议 (例如 PIM-SM协议)的支持, 配置各组播组及源 地址与上下游流接口关系及上游路由器地址(该部分配置一些情况下可以通过 接收 PIM-SM的"自举,,消息获得 ), 组播组地址映射关系和组播源地址映射关 系等的部分或者全部。 配置信息可以部分或全部包括以下各项,但是并不限于 以下各项:  In addition to the above, the MGC controls the MGW to accept the reported multicast routing protocol message on the downstream flow interface and instructs the MGW to send the multicast routing protocol message on the upstream flow interface, and another MGW relies on the configuration data to autonomously complete the foregoing multicast routing. Functional method. You need to configure the multicast routing protocol (such as PIM-SM) on the multicast routing device, and configure the relationship between the multicast group and the source address and the upstream and downstream flow interfaces and the upstream router address. Part or all of the multicast group address mapping relationship and the multicast source address mapping relationship, such as the "bootstrap, message acquisition" of the PIM-SM. The configuration information may include the following items in part or in whole, but is not limited to the following. Various items:
( 1 )运行 PIM-SM协议的接口, 配置哪些接口上需要支持收发 PIM-SM 消息。  (1) The interface that runs the PIM-SM protocol, and configures which interfaces need to support the sending and receiving of PIM-SM messages.
同一个接口上可以既运行 IGMP协议又运行 PIM-SM协议。因为本实施例 是以 IGMP和 PIM-SM为例进行说明,实际上本发明的原理可以适用其它的组 播成员管理协议和组播路由协议, 所以, 如果有多种协议可以选择, 还需要配 置使用的组播成员管理协议和组播路由协议的协议类型,例如 MLD, PIM-DM 等等。  Both the IGMP protocol and the PIM-SM protocol can be run on the same interface. This example is based on IGMP and PIM-SM. In fact, the principles of the present invention can be applied to other multicast member management protocols and multicast routing protocols. Therefore, if multiple protocols are available, you need to configure them. The protocol type of the multicast member management protocol and multicast routing protocol used, such as MLD, PIM-DM, and so on.
( 2 )接口上运行 PIM-SM协议的 IP地址。该地址为收发 PIM-SM消息的 本地地址。 一个接口可能有多个地址, 另外, 该组播路由装置可能有多个接口 连接到同一个 IP。所以有必要配置在某个 IP网络 PIM-SM协议使用的 IP地址。  (2) The IP address of the PIM-SM protocol running on the interface. This address is the local address of the PIM-SM message. An interface may have multiple addresses. In addition, the multicast routing device may have multiple interfaces connected to the same IP. Therefore, it is necessary to configure the IP address used by the PIM-SM protocol on an IP network.
( 3 ) RP的地址。不同组播组可能有不同的 RP. 该组播路由装置也可以从 接收到的 PIM-SM自举消息中获得各组播组使用的 RP地址。但是有时候并不 能获得, 要依靠配置。 (3) The address of the RP. Different multicast groups may have different RPs. The multicast routing device may also obtain the RP address used by each multicast group from the received PIM-SM bootstrap message. But sometimes it is not Can get, depends on the configuration.
( 4 )接口的上游路由器地址; 不同的组播组, 或者相同组播组的不同组 播源地址可能有不同的上游路由器地址。  (4) The upstream router address of the interface; different multicast groups, or different multicast source addresses of the same multicast group, may have different upstream router addresses.
如果获得了 RP地址或者组播源地址, 该组播路由装置可以通过单播路由 获得共享树或者信源树的上游路由器地址, 依据的是 RPF原理。 但是, 如果 考虑到该组播路由装置可能不能和 RP等直接路由 (例如其中间隔了其它的媒 体网关)等原因, 那么使用配置的方法也可以实现。  If the RP address or the multicast source address is obtained, the multicast routing device can obtain the address of the upstream router or the upstream router of the source tree through unicast routing, which is based on the RPF principle. However, if the multicast routing device may not be able to directly route with the RP or the like (for example, other media gateways are separated), the configuration method can also be implemented.
( 5 )组播组地址对应的上游流接口; 某个组播组的共享树的上游流接口。 该组播路由装置通过该接口向上游路由器发送该组播组的 PIM-SM加入 /剪枝 等消息  (5) The upstream flow interface corresponding to the multicast group address; the upstream flow interface of the shared tree of a multicast group. The multicast routing device sends a PIM-SM join/prune message of the multicast group to the upstream router through the interface.
( 6 )组播组地址和组播源地址对应的上游流接口; 某个组播组的某个组 播源地址的信源树的上游流接口。如果该接口和该组播组的共享树的上游流接 口相同, 则没有必要单独为该源地址配置。 所以配置信源树的上游流接口比较 好。  (6) The upstream flow interface corresponding to the multicast group address and the multicast source address; the upstream flow interface of the source tree of a multicast source address of a multicast group. If the interface is the same as the upstream stream interface of the shared tree of the multicast group, it is not necessary to configure the source address separately. Therefore, it is better to configure the upstream stream interface of the source tree.
( 7 )组播组地址映射关系和组播源地址的映射关系。  (7) The mapping relationship between the multicast group address mapping relationship and the multicast source address.
该映射关系不仅用于组播路由消息中地址的映射 ,也用于转发组播数据流 时修改 IP头中的组播组地址和源地址。  This mapping relationship is used not only for the mapping of addresses in multicast routing messages, but also for modifying the multicast group address and source address in the IP header when forwarding multicast data streams.
( 8 ) PIM-SM协议规定的各种定时器和参数的配置。  (8) Configuration of various timers and parameters specified by the PIM-SM protocol.
使用信号 gdmap可以配置各对上下游流接口所在网络之间的组播组地址 映射和组播源地址映射,以及和组播组信息和上游流接口的对应关系, 即配置 ( 5 ) , ( 6 ) , ( 7 )。还可以对 H.248协议做进一步的扩展,用来 MGC指示 MGW 修改其它的配置。  Use the gdmap command to configure the multicast group address mapping and multicast source address mapping between the network where the upstream and downstream flow interfaces reside, and the mapping between the multicast group information and the upstream flow interface. That is, configuration ( 5 ), ( 6 ), (7). The H.248 protocol can be further extended to allow the MGC to instruct the MGW to modify other configurations.
其中, 图 6、 图 7、 图 8和图 9所描述的四种情况可以部分或者全部在同 一个 MGW上实现。例如 MGW在下游流接口上同时运行组播成员管理协议和 组播路由协议,综合该下游流接口所在的组播树的下游分支的组播订阅订阅情 况和该下游流接口所连接的本地下游网络的主机用户的组播组成员状态,共同 维护下游流接口的组播组成员状态,在此情况下 MGW需要在下游流接口上作 为 DR (指定路由器)或者赢得断言。 下游流接口的组播组成员状态的改变会 影响到设备组播成员数据库, 而对应的游流接口处理该组播组(有组播源地址 限定或者没有)可以用组播成员管理协议, 或者是组播路由协议, 使用两种协 议都可以完成在上游网络加入或者离开组播组的功能。 所以, 图 6到图 9的四 种情况中的配置可能同时需要,而且还需要进一步配置某个或者某些组播组在 上游流接口上选择的组播协议类型, 可以具体到组播成员管理协议的类型 ( IGMP,MLD等)或者组播路由协议的类型 (PIM-SM,PIM-DM等)。 在这种 情况下, 下游流接口上的组播组可以对应到的不只有上游流接口,还可以对应 的组播协议的类型。还需要进一步扩展 H.248协议用于 MGC向 MGW进行设 置和审计该 MGW上的组播组和上游流接口上使用的组播协议的对应关系。类 似组播组信息和上游流接口的对应关系, 这里说的组播组也有三种可能情况, 包含了对组播源地址的过滤情况。扩展方法可以参照前面的 gdmap信号的 upa 参数,或者更新该参数进一步描述组播组和上游流接口上使用的组播协议的对 应关系。 这里不再赘述。 Among them, the four cases described in FIG. 6, FIG. 7, FIG. 8, and FIG. 9 may be partially or completely implemented on the same MGW. For example, the MGW runs the multicast member management protocol and the multicast routing protocol on the downstream flow interface, and integrates the multicast subscription subscription of the downstream branch of the multicast tree where the downstream flow interface is located and the local downstream network connected to the downstream flow interface. The multicast group member status of the host user maintains the multicast group member status of the downstream flow interface. In this case, the MGW needs to act as the DR (designated router) or win the assertion on the downstream flow interface. The change of the multicast group member status of the downstream flow interface affects the device multicast member database, and the corresponding swim flow interface processes the multicast group (with the multicast source address). Qualified or not) You can use the multicast member management protocol or the multicast routing protocol. You can use both protocols to join or leave the multicast group on the upstream network. Therefore, the configurations in the four cases of FIG. 6 to FIG. 9 may be required at the same time, and further configuration of a multicast protocol type selected by the multicast interface on the upstream flow interface may be further configured to the multicast member management. Type of protocol (IGMP, MLD, etc.) or type of multicast routing protocol (PIM-SM, PIM-DM, etc.). In this case, the multicast group on the downstream flow interface can correspond to not only the upstream flow interface but also the type of the multicast protocol. It is also necessary to further extend the H.248 protocol for the MGC to set and audit the correspondence between the multicast group on the MGW and the multicast protocol used on the upstream flow interface. Similar to the correspondence between the multicast group information and the upstream flow interface, there are three possible scenarios for the multicast group mentioned here, including the filtering of the multicast source address. The extension method may refer to the upa parameter of the previous gdmap signal, or update the parameter to further describe the correspondence between the multicast group and the multicast protocol used on the upstream stream interface. I won't go into details here.
另外, 本发明实施例还对 MGW的媒体处理能力做了改进, MGW转发组 播数据流时,发送到下游流接口的组播数据流的组播源地址为上游流接口接收 到组播数据流的组播源地址,或者是上游流接口接收到组播数据流的组播源地 址在下游流接口上的映射组播源地址。 MGC可以通过媒体网关控制协议设置 MGW发送数据流时使用接收到该数据流时的源地址还是要将源地址经过映 射。  In addition, the embodiment of the present invention further improves the media processing capability of the MGW. When the MGW forwards the multicast data stream, the multicast source address of the multicast data stream sent to the downstream flow interface is that the upstream stream interface receives the multicast data stream. The multicast source address or the mapped multicast source address of the multicast source address received by the upstream stream interface on the downstream stream interface. The MGC can set the MGW to send the data stream using the source address when receiving the data stream or to map the source address through the media gateway control protocol.
前面定义的信号事件可以下发到 MGW的 ROOT终端上, 由网关级别的 ROOT终端在各个接口来处理组播成员管理协议消息,组播路由协议消息和组 播数据流。 如果某个组播组和组播源地址在上下游网络之间不需要做地址映 射,则发送到下游流接口的组播数据流的组播源地址为上游流接口接收到组播 数据流的组播源地址,作为组播数据流目的地址的组播组地址也保持不变。如 果某个组播组地址在上下游网络之间需要做地址映射,则发送到下游流接口的 组播数据流的目的地址即组播组地址要修改成上游流接口接收到组播数据流 的组播组地址在下游流接口上的映射组播组地址。如果某个组播组源地址在上 下游网络之间需要做地址映射,则发送到下游流接口的组播数据流的组播源地 址要修改成上游流接口接收到组播数据流的组播源地址在下游流接口上的映 射组播源地址。 前面定义的信号事件可以下发到 MGW的 IP终端上, 例如创建接口级别 的 H.248 IP终端, 可以通过信号, 或者终端级别的属性, 或者上下文级别的属 性配置或者审计上游网络和下游网络的组播组地址和 /或组播源地址之间的映 射关系, 以及组播组和上游流接口之间的对应关系,组播组和上游流接口上使 用的组播协议的对应关系等; 如图 10所示, 描述了创建接口级别的 IP终端后 组播数据流的转发情况,从上游流接口接收到组播数据流后,根据以上的属性 配置,将组播数据流通过下游流接口 1发送至下游流接口 1对应的下有网络 1 , 将组播数据流通过下游流接口 2发送至下游流接口 2对应的下游网络 2。 The signal events defined above can be sent to the ROOT terminal of the MGW. The gateway-level ROOT terminal processes multicast member management protocol messages, multicast routing protocol messages, and multicast data streams on each interface. If a multicast group and a multicast source address do not need to perform address mapping between the upstream and downstream networks, the multicast source address of the multicast data stream sent to the downstream flow interface is the upstream stream interface that receives the multicast data stream. The multicast source address and the multicast group address that serves as the destination address of the multicast data stream also remain unchanged. If a multicast group address needs to be mapped between the upstream and downstream networks, the destination address of the multicast data stream sent to the downstream flow interface, that is, the multicast group address, is modified to be the upstream stream interface receiving the multicast data stream. The multicast group address of the multicast group address on the downstream flow interface. If the source address of a multicast group needs to be mapped between the upstream and downstream networks, the multicast source address of the multicast data stream sent to the downstream flow interface is modified to be the upstream stream interface receiving the multicast data stream. The mapped multicast source address of the source address on the downstream flow interface. The signal events defined above can be delivered to the IP terminal of the MGW. For example, an H.248 IP terminal at the interface level can be created. You can configure or audit the upstream network and the downstream network by means of signals, or terminal-level attributes, or context-level attributes. The mapping between the multicast group address and/or the multicast source address, the correspondence between the multicast group and the upstream flow interface, and the correspondence between the multicast group and the multicast protocol used on the upstream flow interface. As shown in Figure 10, the multicast data stream is forwarded after the IP address of the interface is created. After receiving the multicast data stream from the upstream interface, the multicast data stream is transmitted through the downstream stream interface 1 according to the above attribute configuration. The network 1 is sent to the downstream network 1 corresponding to the downstream flow interface 1, and the multicast data stream is sent to the downstream network 2 corresponding to the downstream flow interface 2 through the downstream flow interface 2.
可以理解的是,上述的组播路由方法的实施例二中的四种情况下组播路由 装置向一个下游流接口发送组播数据流的情况,在实际应用中,组播路由装置 可以同时向多个下游流接口发送组播数据流,对每个下有接口的处理方式都类 似, 因而本说明书不对其赘述。 需要说明的是, 本发明中用 IGMP和 PIM-SM 协议为例, 虽没有对其他协议的配置情况进行说明,但是并不排除釆用其他协 议的情况。 在 MGC对 MGW进行控制时, 本说明书对 H.248进行了扩展, 在 实际应用中当 MGC与 MGW之间釆用 MGCP协议时,也可以类似的对 MGCP 协议进行扩展, 本说明书不再赘述。 并且, 本说明书中使用的参数名称、 格式 等都是为了便于说明而设, 并不是对参数名称及格式等进行限定。  It can be understood that, in the four cases in the foregoing Embodiment 2 of the multicast routing method, the multicast routing device sends a multicast data stream to a downstream flow interface. In an actual application, the multicast routing device can simultaneously Multiple downstream flow interfaces send multicast data streams, and the processing methods for each of the lower interfaces are similar, so this specification does not describe them. It should be noted that the IGMP and PIM-SM protocols are used as an example in the present invention. Although the configuration of other protocols is not described, the use of other protocols is not excluded. When the MGC controls the MGW, this specification extends H.248. In the actual application, when the MGCP protocol is used between the MGC and the MGW, the MGCP protocol can be similarly extended, and the description is not repeated here. Further, the parameter names, formats, and the like used in the present specification are provided for convenience of explanation, and are not limited to parameter names, formats, and the like.
如图 11所示, 本发明提供的组播路由装置实施例包括:  As shown in FIG. 11, the embodiment of the multicast routing apparatus provided by the present invention includes:
触发信息获取单元 1101 , 用于从下游流接口获取触发所述下游流接口上 的组播组成员状态发生改变的触发信息, 触发信息包括第一组播组信息;  The trigger information acquiring unit 1101 is configured to obtain, from the downstream flow interface, trigger information that triggers a change of a state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information.
数据库判断单元 1102, 用于判断下游流接口上的组播组成员状态的改变 是否导致设备组播成员数据库的记录发生改变,设备组播组成员数据库汇总所 有下游流接口组播组成员状态;  The database judging unit 1102 is configured to determine whether the change of the status of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to be changed, and the device multicast group member database summarizes the status of all the downstream flow interface multicast group members.
接口确定单元 1103 , 用于在数据库判断单元判断下游流接口上的组播组 成员状态的改变导致设备组播成员数据库的记录发生改变时,根据组播组信息 与上游流接口的对应关系,查找与设备组播成员数据库中改变的记录中第二组 播组信息对应的上游流接口;  The interface determining unit 1103 is configured to: when the database determining unit determines that the change of the state of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to change, according to the correspondence between the multicast group information and the upstream flow interface, An upstream flow interface corresponding to the second multicast group information in the changed record in the multicast member database of the device;
消息发送单元 1104, 用于在根据所述设备组播成员数据库中改变的记录 构造第一消息后 ,通过上游流接口向与上游流接口对应的上游网络发送包括组 播组信息的第一消息, 第一消息包括与第二组播组信息对应的第三组播组信 息。 The message sending unit 1104 is configured to: after the first message is configured according to the record changed in the device multicast member database, send the group to the upstream network corresponding to the upstream flow interface by using the upstream flow interface. The first message of the broadcast group information, the first message includes third multicast group information corresponding to the second multicast group information.
在实际应用中, 若触发信息为请求加入组播组的消息,加入组播组的消息 包括请求加入组播组的主机的地址, 本发明实施例提供的组播路由装置还包 括:  In a practical application, if the trigger information is a message requesting to join the multicast group, the message to join the multicast group includes the address of the host that requests to join the multicast group. The multicast routing device provided by the embodiment of the present invention further includes:
权限判断单元,用于在数据库判断单元判断下游流接口上的组播组成员状 态发生改变导致设备组播成员数据库的记录发生改变时,判断主机是否有加入 组播组的权限; 如果是,触发接口确定单元根据组播组信息与上游流接口的对 应关系,查找与设备组播成员数据库中改变的记录中第二组播组信息对应的上 游流接口。  The permission judging unit is configured to determine, when the database judging unit determines that the state of the multicast group member on the downstream flow interface is changed, causing the host to have the permission to join the multicast group, if yes, triggering The interface determining unit searches for an upstream flow interface corresponding to the second multicast group information in the record changed in the device multicast member database according to the correspondence between the multicast group information and the upstream flow interface.
由于不同的网络中间的网络规划及网络版本等不同,需要对不同网络之间 网络地址的对应关系进行记录,本发明实施例提供的组播路由装置可以进一步 包括:  The multicast routing device provided by the embodiment of the present invention may further include:
网络地址映射表维护单元 ,用于保存上游流接口对应的上游网络的网络地 址和下游流接口对应的下游网络的网络地址之间映射关系的网络地址映射表; 组播组信息更新单元, 用于在第一组播组信息包括第一组播组地址时,从 网络地址映射表中查找第一组播组地址在上游网络的第一映射组播组地址,将 第一组播组信息中的第一组播组地址更新为第一映射组播组地址;触发消息发 送单元发送包含更新后的组播组信息的第一消息;  a network address mapping table maintenance unit, configured to store a network address mapping table of a mapping relationship between a network address of an upstream network corresponding to the upstream flow interface and a network address of the downstream network corresponding to the downstream flow interface; a multicast group information update unit, configured to: When the first multicast group information includes the first multicast group address, the first mapping multicast group address of the first multicast group address in the upstream network is searched from the network address mapping table, and the first multicast group information is The first multicast group address is updated to the first mapped multicast group address; the trigger message sending unit sends the first message including the updated multicast group information;
 Or
用于在第一组播组信息包括第一组播组地址和第一组播源地址时,从网络 地址映射表中查找第一组播组地址在上游网络的第一映射组播组地址、和第一 组播源地址在上游网络的第一映射组播源地址,将第一组播组信息中的第一组 播组地址更新为第一映射组播组地址、和将第一组播信息中的第一组播源地址 更新为第一映射组播源地址;触发消息发送单元发送包含更新后的组播组信息 的第一消息;  When the first multicast group information includes the first multicast group address and the first multicast source address, the first mapping multicast group address of the first multicast group address in the upstream network is searched from the network address mapping table, And updating, by the first multicast source address of the first multicast source address, the first multicast group address in the first multicast group information to the first mapped multicast group address, and the first multicast The first multicast source address in the information is updated to the first mapped multicast source address; the trigger message sending unit sends the first message including the updated multicast group information;
 Or
用于在第一组播组信息包括第一组播源地址时,从网络地址映射表中查找 第一组播源地址在上游网络的第一映射组播源地址,将第一组播组信息中的第 一组播源地址更新为第一映射组播源地址;触发消息发送单元发送包含更新后 的组播组信息的第一消息。 When the first multicast group information includes the first multicast source address, the first multicast source address of the first multicast source address in the upstream network is searched from the network address mapping table, and the first multicast group information is obtained. In the middle The multicast source address is updated to the first mapped multicast source address; the trigger message sending unit sends the first message including the updated multicast group information.
通过网络地址映射表的记录, 可以将不同网络之间的地址对应起来,从而 使组播可以顺利进行。  Through the records in the network address mapping table, the addresses between different networks can be associated, so that multicast can proceed smoothly.
在实际应用中,组播路由装置需要完成组播数据流的转发, 因而本发明实 施例提供的组播路由装置还包括:  In a practical application, the multicast routing device needs to complete the forwarding of the multicast data stream. Therefore, the multicast routing device provided by the embodiment of the present invention further includes:
组播数据流接收单元, 用于从上游流接口上接收组播组的组播数据流; 组播数据流发送单元,用于根据下游流接口上的组播组成员状态分发组播 数据流。  The multicast data stream receiving unit is configured to receive the multicast data stream of the multicast group from the upstream flow interface, and the multicast data stream sending unit is configured to distribute the multicast data stream according to the multicast group member status on the downstream flow interface.
为了保证数据流的正确转发,本发明实施例提供的组播路由装置提供的组 播数据流更新单元,还用于在网络地址映射表保存上游网络和下游网络之间的 组播组地址映射关系时, 根据网络地址映射表修改组播数据流的组播组地址, 触发组播数据流发送单元根据下游流接口上的组播组成员状态分发组播数据 流;  In order to ensure the correct forwarding of the data stream, the multicast data stream updating unit provided by the multicast routing device provided by the embodiment of the present invention is further configured to save the multicast group address mapping relationship between the upstream network and the downstream network in the network address mapping table. Modifying the multicast group address of the multicast data stream according to the network address mapping table, and triggering the multicast data stream sending unit to distribute the multicast data stream according to the multicast group member status on the downstream flow interface;
 Or
还用于在网络地址映射表保存上游网络和下游网络之间的组播源地址映 射关系时,根据网络地址映射表修改组播数据流的组播源地址, 触发组播数据 流发送单元根据下游流接口上的组播组成员状态分发组播数据流;  When the network address mapping table is used to save the multicast source address mapping relationship between the upstream network and the downstream network, the multicast source address of the multicast data stream is modified according to the network address mapping table, and the multicast data stream sending unit is triggered according to the downstream. The multicast group member status on the flow interface distributes the multicast data stream;
 Or
还用于在网络地址映射表保存上游网络和下游网络之间的组播组地址和 组播源地址映射关系时,根据网络地址映射表修改组播数据流的组播组地址和 组播源地址,触发组播数据流发送单元根据下游流接口上的组播组成员状态分 发组播数据流。  It is also used to modify the multicast group address and multicast source address of the multicast data stream according to the network address mapping table when the network address mapping table stores the mapping between the multicast group address and the multicast source address between the upstream network and the downstream network. The triggering multicast data stream sending unit distributes the multicast data stream according to the multicast group member status on the downstream stream interface.
如图 12所示, 本发明提供的媒体网关实施例包括:  As shown in FIG. 12, the media gateway embodiment provided by the present invention includes:
触发信息获取单元 1201 , 用于从下游流接口获取触发下游流接口上的组 播组成员状态发生改变的触发信息, 触发信息包括第一组播组信息;  The trigger information acquiring unit 1201 is configured to obtain, from the downstream flow interface, trigger information that triggers a change in the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information.
控制信息请求发送单元 1202, 用于向媒体网关控制器发送控制信息请求 消息, 控制信息请求包括第一组播组信息;  The control information request sending unit 1202 is configured to send a control information request message to the media gateway controller, where the control information request includes the first multicast group information;
控制信息接收单元 1203 , 用于接收来自媒体网关控制器响应控制信息请 求消息的控制消息; Control information receiving unit 1203, configured to receive response control information from the media gateway controller Requesting a control message for the message;
数据库判断单元 1204 , 用于判断下游流接口上的组播组成员状态的改变 是否导致设备组播成员数据库的记录发生改变,设备组播组成员数据库汇总所 有下游流接口组播组成员状态;  The database judging unit 1204 is configured to determine whether the change of the multicast group member status on the downstream flow interface causes the record of the multicast member database of the device to be changed, and the device multicast group member database summarizes the status of all the downstream flow interface multicast group members.
接口确定单元 1205 , 用于在数据库判断单元判断下游流接口上的组播组 成员状态的改变导致设备组播成员数据库的记录发生改变时,根据组播组信息 与上游流接口的对应关系,查找与设备组播成员数据库中改变的记录中第二组 播组信息对应的上游流接口;  The interface determining unit 1205 is configured to: when the database determining unit determines that the change of the multicast group member status on the downstream flow interface causes the record of the multicast member database of the device to change, according to the correspondence between the multicast group information and the upstream flow interface, An upstream flow interface corresponding to the second multicast group information in the changed record in the multicast member database of the device;
消息发送单元 1206, 用于在根据所述设备组播成员数据库中改变的记录 构造第一消息后,通过上游流接口向与上游流接口对应的上游网络发送包括组 播组信息的第一消息, 第一消息包括与第二组播组信息对应的第三组播组信 息。  The message sending unit 1206 is configured to: after the first message is configured according to the record changed in the device multicast member database, send the first message including the multicast group information to the upstream network corresponding to the upstream flow interface by using the upstream flow interface, The first message includes third multicast group information corresponding to the second multicast group information.
由于不同的网络中间的网络规划及网络版本等不同,需要对不同网络之间 网络地址的对应关系进行记录, 本发明实施例提供的媒体网关可以进一步包 括:  The media gateway provided by the embodiment of the present invention may further include: the media gateway provided by the embodiment of the present invention is required to record the corresponding relationship between the network addresses of different networks in different networks.
网络地址映射表维护单元 ,用于保存上游流接口对应的上游网络的网络地 址和下游流接口对应的下游网络的网络地址之间映射关系的网络地址映射表; 组播组信息更新单元, 用于在第一组播组信息包括第一组播组地址时,从 网络地址映射表中查找第一组播组地址在上游网络的第一映射组播组地址,将 组播组信息中的第一组播组地址更新为第一映射组播组地址;触发消息发送单 元发送包含更新后的组播组信息的第一消息;  a network address mapping table maintenance unit, configured to store a network address mapping table of a mapping relationship between a network address of an upstream network corresponding to the upstream flow interface and a network address of the downstream network corresponding to the downstream flow interface; a multicast group information update unit, configured to: When the first multicast group information includes the first multicast group address, the first mapping multicast group address of the first multicast group address in the upstream network is searched from the network address mapping table, and the first of the multicast group information is obtained. The multicast group address is updated to the first mapped multicast group address; the trigger message sending unit sends the first message including the updated multicast group information;
 Or
用于在第一组播组信息包括第一组播组地址和第一组播源地址时,从网络 地址映射表中查找第一组播组地址在上游网络的第一映射组播组地址、和第一 组播源地址在上游网络的第一映射组播源地址 ,将第一组播组信息中的第一组 播组地址更新为第一映射组播组地址、和将第一组播信息中的第一组播源地址 更新为第一映射组播源地址;触发消息发送单元发送包含更新后的组播组信息 的第一消息;  When the first multicast group information includes the first multicast group address and the first multicast source address, the first mapping multicast group address of the first multicast group address in the upstream network is searched from the network address mapping table, And updating, by the first multicast source address of the first multicast source address, the first multicast group address in the first multicast group information to the first mapped multicast group address, and the first multicast The first multicast source address in the information is updated to the first mapped multicast source address; the trigger message sending unit sends the first message including the updated multicast group information;
或 用于在第一组播组信息包括第一组播源地址时,从网络地址映射表中查找 第一组播源地址在上游网络的第一映射组播源地址,将第一组播组信息中的第 一组播源地址更新为第一映射组播源地址;触发消息发送单元发送包含更新后 的组播组信息的第一消息。 Or When the first multicast group information includes the first multicast source address, the first multicast source address of the first multicast source address in the upstream network is searched from the network address mapping table, and the first multicast group information is obtained. The first multicast source address is updated to the first mapped multicast source address; the trigger message sending unit sends the first message including the updated multicast group information.
通过网络地址映射表的记录, 可以将不同网络之间的地址对应起来,从而 使组播可以顺利进行。  Through the records in the network address mapping table, the addresses between different networks can be associated, so that multicast can proceed smoothly.
在实际应用中,媒体网关需要完成组播数据流的转发, 因而本发明实施例 提供的媒体网关还包括:  In a practical application, the media gateway needs to complete the forwarding of the multicast data stream. Therefore, the media gateway provided by the embodiment of the present invention further includes:
组播数据流接收单元, 用于从上游流接口上接收组播组的组播数据流; 组播数据流发送单元,用于根据下游流接口上的组播组成员状态分发组播 数据流。  The multicast data stream receiving unit is configured to receive the multicast data stream of the multicast group from the upstream flow interface, and the multicast data stream sending unit is configured to distribute the multicast data stream according to the multicast group member status on the downstream flow interface.
为了保证数据流的正确转发,本发明实施例提供的组播路由装置提供的组 播数据流更新单元,还用于在网络地址映射表保存上游网络和下游网络之间的 组播组地址映射关系时, 根据网络地址映射表修改组播数据流的组播组地址, 触发组播数据流发送单元根据下游流接口上的组播组成员状态分发组播数据 流;  In order to ensure the correct forwarding of the data stream, the multicast data stream updating unit provided by the multicast routing device provided by the embodiment of the present invention is further configured to save the multicast group address mapping relationship between the upstream network and the downstream network in the network address mapping table. Modifying the multicast group address of the multicast data stream according to the network address mapping table, and triggering the multicast data stream sending unit to distribute the multicast data stream according to the multicast group member status on the downstream flow interface;
 Or
还用于在网络地址映射表保存上游网络和下游网络之间的组播源地址映 射关系时,根据网络地址映射表修改组播数据流的组播源地址, 触发组播数据 流发送单元根据下游流接口上的组播组成员状态分发组播数据流;  When the network address mapping table is used to save the multicast source address mapping relationship between the upstream network and the downstream network, the multicast source address of the multicast data stream is modified according to the network address mapping table, and the multicast data stream sending unit is triggered according to the downstream. The multicast group member status on the flow interface distributes the multicast data stream;
 Or
还用于在网络地址映射表保存上游网络和下游网络之间的组播组地址和 组播源地址映射关系时,根据网络地址映射表修改组播数据流的组播组地址和 组播源地址,触发组播数据流发送单元根据下游流接口上的组播组成员状态分 发组播数据流。  It is also used to modify the multicast group address and multicast source address of the multicast data stream according to the network address mapping table when the network address mapping table stores the mapping between the multicast group address and the multicast source address between the upstream network and the downstream network. The triggering multicast data stream sending unit distributes the multicast data stream according to the multicast group member status on the downstream stream interface.
与媒体网关对应, 本发明实施例还提供了媒体网关控制器, 图 13描述了 媒体网关控制器的实施例, 包括:  Corresponding to the media gateway, the embodiment of the present invention further provides a media gateway controller, and FIG. 13 describes an embodiment of the media gateway controller, including:
控制信息请求接收单元 1301 , 用于接收来自媒体网关的第一消息, 第一 消息包括第一组播组信息; 判断单元 1302, 用于根据自身策略及第一组播组信息判断是否允许加入 组播组; The control information request receiving unit 1301 is configured to receive a first message from the media gateway, where the first message includes the first multicast group information; The determining unit 1302 is configured to determine, according to the self-policy and the first multicast group information, whether to allow to join the multicast group.
控制信息发送单元 1303 , 用于在判断单元判断允许加入组播组时发送允 许加入组播组的控制消息、或在判断单元判断不允许加入组播组时发送不允许 加入组播组的控制消息。  The control information sending unit 1303 is configured to: when the determining unit determines that the multicast group is allowed to join the multicast group, send a control message that is allowed to join the multicast group, or send a control message that is not allowed to join the multicast group when the determining unit determines that the multicast group is not allowed to join the multicast group. .
优选的,若控制信息请求接收单元接收的第一消息进一步包括请求加入组 播组的主机;  Preferably, if the first message received by the control information request receiving unit further comprises a host requesting to join the multicast group;
判断单元进一步根据主机判断是否允许加入组播组。  The judging unit further determines, according to the host, whether to allow to join the multicast group.
在实际应用中, 为了符合组播成员管理协议, 如 IGMP等的要求, 本发明 实施例提供的 MGC还包括:  In an actual application, in order to comply with the requirements of the multicast member management protocol, such as IGMP, the MGC provided by the embodiment of the present invention further includes:
查询触发信息发送单元, 用于在有自身的预先配置信息的触发时, 向媒体 网关发送查询触发信息。  The query trigger information sending unit is configured to send query trigger information to the media gateway when there is trigger of its own pre-configuration information.
如图 14所示, 本发明实施例提供的组播路由系统实施例一包括: 组播路由装置 1401 , 用于从下游流接口获取触发下游流接口上的组播组 成员状态发生改变的触发信息, 触发信息包括第一组播组信息; 若下游流接口 上的组播组成员状态发生改变导致汇总所有下游流接口组播组成员状态的设 备组播成员数据库的记录发生改变, 根据组播组信息与上游流接口的对应关 系,查找与设备组播成员数据库中改变的记录中第二组播组信息对应的上游流 接口; 在根据所述设备组播成员数据库中改变的记录构造第一消息后, 通过上 游流接口向与所述上游流接口对应的上游网络发送第一消息,第一消息包括与 第二组播组信息对应的第三组播组信息;  As shown in FIG. 14, the first embodiment of the multicast routing system provided by the embodiment of the present invention includes: a multicast routing device 1401, configured to acquire, from a downstream flow interface, trigger information that triggers a change of a multicast group member state on a downstream flow interface. The trigger information includes the first multicast group information. If the status of the multicast group member on the downstream flow interface is changed, the record of the multicast member database of the device in the multicast group member state is changed. Corresponding relationship between the information and the upstream flow interface, searching for an upstream flow interface corresponding to the second multicast group information in the changed record in the device multicast member database; constructing the first message according to the record changed in the device multicast member database And sending, by the upstream flow interface, the first message to the upstream network corresponding to the upstream flow interface, where the first message includes third multicast group information corresponding to the second multicast group information;
第一网络 1402, 用于接收第一消息。  The first network 1402 is configured to receive the first message.
图 15描述了本发明提供的组播路由系统实施例二, 包括:  Figure 15 illustrates a second embodiment of the multicast routing system provided by the present invention, including:
媒体网关 1501 , 用于从下游流接口获取触发下游流接口上的组播组成员 状态发生改变的触发信息,触发信息包括第一组播组信息, 向媒体网关控制器 发送控制信息请求消息;  The media gateway 1501 is configured to obtain, from the downstream flow interface, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information, and sends a control information request message to the media gateway controller.
媒体网关控制器 1502, 用于接收控制信息请求消息, 根据第一组播组信 息判断是否允许加入组播组,在判断允许加入组播组时发送允许加入组播组的 控制消息; 媒体网关 1501 , 还用于接收控制消息, 若下游流接口上的组播组成员状 态发生改变导致汇总所有下游流接口组播组成员状态的设备组播成员数据库 的记录发生改变,根据组播组信息与上游流接口的对应关系, 查找与设备组播 成员数据库中改变的记录中第二组播组信息对应的上游流接口;在根据设备组 播成员数据库中改变的记录构造第一消息后, 通过上游流接口发送第一信息, 第一消息包括与第二组播组信息对应的第三组播组信息; The media gateway controller 1502 is configured to receive a control information request message, determine, according to the first multicast group information, whether to allow to join the multicast group, and send a control message that is allowed to join the multicast group when determining to allow the joining of the multicast group; The media gateway 1501 is further configured to receive a control message, and if the status of the multicast group member on the downstream flow interface is changed, the record of the multicast member database of the device group state of all the downstream flow interface multicast group members is changed, according to the multicast group. Corresponding relationship between the information and the upstream flow interface, searching for an upstream flow interface corresponding to the second multicast group information in the changed record in the device multicast member database; after constructing the first message according to the record changed in the device multicast member database, Sending, by the upstream flow interface, the first information, where the first message includes third multicast group information corresponding to the second multicast group information;
第一网络 1503 , 用于接收第一消息。  The first network 1503 is configured to receive the first message.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,程序可以存储于一种计算机可读存储 介质中, 该程序在执行时, 包括如下步骤:  A person skilled in the art can understand that all or part of the steps in the method of implementing the above embodiments can be completed by a program to instruct related hardware. The program can be stored in a computer readable storage medium, and when executed, the program includes the following Steps:
从下游流接口获取触发下游流接口上的组播组成员状态发生改变的触发 信息, 触发信息包括第一组播组信息;  The triggering information that triggers the change of the state of the multicast group member on the downstream flow interface is obtained from the downstream flow interface, where the trigger information includes the first multicast group information.
若下游流接口上的组播组成员状态发生改变导致汇总下游流接口组播组 成员状态的设备组播成员数据库的记录发生改变,根据组播组信息与上游流接 口的对应关系, 查找和被改变的记录中的第二组播组信息对应的上游流接口; 根据设备组播成员数据库中改变的记录构造第一消息,第一消息包括第三 组播组信息, 第三组播组信息与第二组播组信息对应;  If the status of the multicast group member on the downstream flow interface is changed, the record of the device multicast member database that is in the state of the multicast group member is changed. The mapping between the multicast group information and the upstream flow interface is used to find and be An upstream flow interface corresponding to the second multicast group information in the changed record; constructing the first message according to the changed record in the device multicast member database, where the first message includes the third multicast group information, and the third multicast group information Corresponding to the second multicast group information;
通过查找到的上游流接口向与上游流接口对应的上游网络发送第一消息; 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。  The first message is sent to the upstream network corresponding to the upstream flow interface by using the found upstream flow interface; the storage medium mentioned above may be a read only memory, a magnetic disk or an optical disk.
以上对本发明实施例所提供的组播路由方法及系统、媒体网关和媒体网关 控制器进行了详细介绍,以上实施例的说明只是用于帮助理解本发明的方法及 其思想; 同时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施 方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解为对本 发明的限制。  The multicast routing method and system, the media gateway and the media gateway controller provided by the embodiments of the present invention are described in detail above. The description of the above embodiments is only used to help understand the method and the 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

权 利 要 求 Rights request
1、 一种组播路由方法, 其特征在于, 包括:  A multicast routing method, comprising:
从媒体网关的下游流接口获取触发所述下游流接口上的组播组成员状态 发生改变的触发信息, 所述触发信息包括第一组播组信息;  And obtaining, by the downstream flow interface of the media gateway, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information;
若所述下游流接口上的组播组成员状态发生改变导致设备组播成员数据 库的记录发生改变,获取根据所述第一组播组信息以及组播组信息与上游流接 口的对应关系查找到的所述媒体网关的上游流接口,所述上游流接口与被改变 的记录中的第二组播组信息对应,所述设备组播成员数据库汇总了下游流接口 组播组成员状态, 所述第二组播组信息与所述第一组播组信息对应;  If the status of the multicast group member on the downstream flow interface is changed, the record of the multicast group member of the device is changed, and the information is obtained according to the first multicast group information and the correspondence between the multicast group information and the upstream flow interface. The upstream flow interface of the media gateway, the upstream flow interface is corresponding to the second multicast group information in the changed record, and the device multicast member database summarizes the status of the downstream flow interface multicast group member, The second multicast group information corresponds to the first multicast group information;
根据所述设备组播成员数据库中改变的记录构造第一消息,所述第一消息 包括第三组播组信息, 所述第三组播组信息与第二组播组信息对应;  Constructing a first message according to the changed record in the multicast member database of the device, where the first message includes third multicast group information, and the third multicast group information corresponds to the second multicast group information;
通过所述查找到的上游流接口向与所述上游流接口对应的上游网络发送 所述第一消息。  And sending, by the found upstream flow interface, the first message to an upstream network corresponding to the upstream flow interface.
2、 如权利要求 1所述的组播路由方法, 其特征在于, 所述触发信息包括 请求加入所述组播组的主机的地址;  2. The multicast routing method according to claim 1, wherein the trigger information includes an address of a host requesting to join the multicast group;
获取根据所述第一组播组信息以及组播组信息与上游流接口的对应关系 查找到的所述媒体网关的上游流接口前进一步包括:  And obtaining the upstream flow interface of the media gateway that is found according to the first multicast group information and the correspondence between the multicast group information and the upstream flow interface, and further includes:
判断所述主机是否有加入所述组播组的权限;  Determining whether the host has the right to join the multicast group;
如果所述主机有加入所述组播组的权限,则获取根据所述第一组播组信息 以及组播组信息与上游流接口的对应关系查找到的所述媒体网关的上游流接 口。  If the host has the right to join the multicast group, the upstream flow interface of the media gateway that is found according to the first multicast group information and the correspondence between the multicast group information and the upstream flow interface is obtained.
3、 如权利要求 1所述的组播路由方法, 其特征在于, 该方法进一步包括: 维护网络地址映射表,所述网络地址映射表保存有上游流接口对应的上游 网络和下游流接口对应的下游网络之间网络地址映射关系;  The multicast routing method according to claim 1, wherein the method further comprises: maintaining a network address mapping table, wherein the network address mapping table stores an upstream network corresponding to the upstream flow interface and a downstream flow interface. Network address mapping relationship between downstream networks;
如果所述上游流接口对应的上游网络和下游流接口对应的下游网络之间 网络地址映射关系具体为上游网络和下游网络之间的组播组地址映射关系,所 述第三组播组信息包括组播组地址;则所述第三组播组信息包括的组播组地址 为由第一组播组信息中对应的组播组地址映射后的组播组地址;  And if the network address mapping relationship between the upstream network corresponding to the upstream flow interface and the downstream network corresponding to the downstream flow interface is specifically a multicast group address mapping relationship between the upstream network and the downstream network, the third multicast group information includes a multicast group address; the multicast group address included in the third multicast group information is a multicast group address mapped by the corresponding multicast group address in the first multicast group information;
或 如果所述上游流接口对应的上游网络和下游流接口对应的下游网络之间 网络地址映射关系具体为上游网络和下游网络之间的组播源地址映射关系,所 述第三组播组信息包括组播源地址;则所述第三组播组信息包括的组播源地址 为由第一组播组信息中对应的组播源地址映射后的组播源地址; Or If the network address mapping relationship between the upstream network corresponding to the upstream network interface and the downstream network interface is the multicast source address mapping relationship between the upstream network and the downstream network, the third multicast group information includes a multicast source address; the multicast source address included in the third multicast group information is a multicast source address mapped by a corresponding multicast source address in the first multicast group information;
 Or
如果所述上游流接口对应的上游网络和下游流接口对应的下游网络之间 网络地址映射关系具体为上游网络和下游网络之间的组播组地址映射关系和 组播源地址映射关系, 所述第三组播组信息包括组播组地址和组播源地址; 则 所述第三组播组信息包括的组播组地址为由第一组播组信息中对应的组播组 地址映射后的组播组地址,所述第三组播组信息包括的组播源地址为由第一组 播组信息中对应的组播源地址映射后的组播源地址。  If the network address mapping relationship between the upstream network corresponding to the upstream network interface and the downstream network interface is the multicast group address mapping relationship and the multicast source address mapping relationship between the upstream network and the downstream network, The third multicast group information includes a multicast group address and a multicast source address. The multicast group address included in the third multicast group information is mapped by the corresponding multicast group address in the first multicast group information. The multicast source address, the multicast source address included in the third multicast group information is a multicast source address mapped by the corresponding multicast source address in the first multicast group information.
4、 如权利要求 1所述的组播路由方法, 其特征在于, 该方法还包括: 通过所述上游流接口从所述上游网络接收到组播数据流;  The method of multicast routing according to claim 1, wherein the method further comprises: receiving, by the upstream flow interface, a multicast data stream from the upstream network;
根据下游流接口的组播组成员状态分发组播数据流。  The multicast data stream is distributed according to the multicast group member status of the downstream flow interface.
5、 如权利要求 4所述的组播路由方法, 其特征在于, 该方法进一步包括: 维护网络地址映射表,所述网络地址映射表保存有上游网络和下游网络之 间网络地址映射关系;  The multicast routing method according to claim 4, wherein the method further comprises: maintaining a network address mapping table, wherein the network address mapping table stores a network address mapping relationship between the upstream network and the downstream network;
如果所述上游网络和下游网络之间网络地址映射关系具体为上游网络和 下游网络之间的组播组地址映射关系 ,根据下游流接口上的组播组成员状态分 发组播数据流前进一步包括:  If the network address mapping relationship between the upstream network and the downstream network is specifically a multicast group address mapping relationship between the upstream network and the downstream network, the multicast data stream is further distributed according to the multicast group member status on the downstream flow interface. :
根据所述网络地址映射表修改组播数据流的组播组地址,进入根据下游流 接口上的组播组成员状态分发组播数据流的步骤;  Modifying the multicast group address of the multicast data stream according to the network address mapping table, and performing the step of distributing the multicast data stream according to the state of the multicast group member on the downstream flow interface;
 Or
如果所述上游网络和下游网络之间网络地址映射关系具体为上游网络和 下游网络之间的组播源地址映射关系,根据下游流接口上的组播组成员状态分 发组播数据流前进一步包括:  If the network address mapping relationship between the upstream network and the downstream network is specifically a multicast source address mapping relationship between the upstream network and the downstream network, the multicast data stream is further distributed according to the state of the multicast group member on the downstream flow interface. :
根据所述网络地址映射表修改组播数据流的组播数据流源地址,进入根据 下游流接口上的组播组成员状态分发组播数据流的步骤;  Modifying the source address of the multicast data stream of the multicast data stream according to the network address mapping table, and performing the step of distributing the multicast data stream according to the state of the multicast group member on the downstream flow interface;
或 如果所述上游网络和下游网络之间网络地址映射关系具体为上游网络和 下游网络之间的组播组地址映射关系和组播源地址映射关系,根据下游流接口 上的组播组成员状态分发组播数据流前进一步包括: Or If the network address mapping relationship between the upstream network and the downstream network is specifically the multicast group address mapping relationship and the multicast source address mapping relationship between the upstream network and the downstream network, the multicast group member status is distributed according to the downstream flow interface. The multicast data stream further includes:
根据所述网络地址映射表修改组播数据流的组播组地址和组播数据流源 地址, 进入根据下游流接口上的组播组成员状态分发组播数据流的步骤。  Modifying the multicast group address and the source address of the multicast data stream according to the network address mapping table, and performing the step of distributing the multicast data stream according to the state of the multicast group member on the downstream flow interface.
6、 如权利要求 3或 5所述的组播路由方法, 其特征在于, 由所述媒体网 关保存所述网络地址映射表。  The multicast routing method according to claim 3 or 5, wherein the network address mapping table is saved by the media gateway.
7、 如权利要求 6所述的组播路由方法, 其特征在于, 该方法进一步包括: 由媒体网关控制器控制所述媒体网关对所述网络地址映射表进行更新。  The multicast routing method according to claim 6, wherein the method further comprises: controlling, by the media gateway controller, the media gateway to update the network address mapping table.
8、 如权利要求 1所述的组播路由方法, 其特征在于, 由所述媒体网关保 存所述组播组信息和上游流接口之间的对应关系。 The multicast routing method according to claim 1, wherein the media gateway saves a correspondence between the multicast group information and an upstream stream interface.
9、 如权利要求 8所述的组播路由方法, 其特征在于, 该方法进一步包括: 由媒体网关控制器控制所述媒体网关对所述组播组信息和上游流接口之 间的对应关系进行更新。  The multicast routing method according to claim 8, wherein the method further comprises: controlling, by the media gateway controller, the correspondence between the multicast group information and the upstream flow interface by the media gateway Update.
10、 如权利要求 1所述的组播路由方法, 其特征在于, 当由媒体网关控制 器保存所述组播组信息和上游流接口之间的对应关系时,所述获取根据所述第 一组播组信息以及组播组信息与上游流接口的对应关系查找到的所述媒体网 关的上游流接口, 具体为:  The multicast routing method according to claim 1, wherein when the correspondence between the multicast group information and the upstream flow interface is saved by the media gateway controller, the obtaining is performed according to the first The upstream flow interface of the media gateway that is found by the multicast group information and the correspondence between the multicast group information and the upstream flow interface is specifically:
获取媒体网关控制器查找到的所述上游流接口,所述上游流接口由所述媒 体网关控制器根据所述第一组播组信息以及组播组信息与上游流接口的对应 关系查找到。  Obtaining the upstream flow interface that is found by the media gateway controller, where the upstream flow interface is searched by the media gateway controller according to the first multicast group information and the correspondence between the multicast group information and the upstream flow interface.
11、 如权利要求 1所述的组播路由方法, 其特征在于, 与所述被改变的记 录中的第二组播组信息对应的上游流接口为多个;  The multicast routing method according to claim 1, wherein the upstream stream interface corresponding to the second multicast group information in the changed record is multiple;
所述根据所述设备组播成员数据库中改变的记录构造第一消息的步骤具 体为:  The step of constructing the first message according to the changed record in the device multicast member database is:
根据所述设备组播成员数据库中改变的记录为每个上游流接口构造第一 消息;  Constructing a first message for each upstream flow interface according to the changed record in the device multicast member database;
所述通过所述查找到的上游流接口向与所述上游流接口对应的上游网络 发送所述第一消息的步骤具体为: 通过查找到的上游流接口向与该上游流接口对应的上游网络发送为该上 游流接口构造的第一消息。 The step of sending the first message to the upstream network corresponding to the upstream flow interface by using the searched upstream flow interface is specifically: Sending, by the found upstream flow interface, the first message configured for the upstream flow interface to the upstream network corresponding to the upstream flow interface.
12、 如权利要求 1所述的组播路由方法, 其特征在于, 在所述上游流接口 使用组播路由协议或组播成员管理协议;  The multicast routing method according to claim 1, wherein the upstream flow interface uses a multicast routing protocol or a multicast member management protocol;
在所述下游流接口使用组播路由协议或组播成员管理协议。  A multicast routing protocol or a multicast member management protocol is used on the downstream flow interface.
13、 一种计算机程序产品, 其特征在于, 所述计算机程序产品包括计算机 程序代码, 当所述计算机程序代码被一个计算机执行的时候, 所述计算机程序 代码可以使得所述计算机执行权利要求 1至 11项中任意一项的步骤。  13. A computer program product, characterized in that the computer program product comprises computer program code, and when the computer program code is executed by a computer, the computer program code can cause the computer to execute claim 1 The steps of any of the 11 items.
14、 一种计算机可读存储介质, 其特征在于, 所述计算机可读存储介质存 储计算机程序代码, 当所述计算机程序代码被一个计算机执行的时候, 所述计 算机程序代码可以使得所述计算机执行权利要求 1至 11项中任意一项的步骤。  14. A computer readable storage medium, wherein the computer readable storage medium stores computer program code, and when the computer program code is executed by a computer, the computer program code can cause the computer to execute The steps of any one of claims 1 to 11.
15、 一种媒体网关, 其特征在于, 包括:  15. A media gateway, comprising:
触发信息获取单元,用于从下游流接口获取触发所述下游流接口上的组播 组成员状态发生改变的触发信息, 所述触发信息包括第一组播组信息;  The trigger information acquiring unit is configured to obtain, from the downstream flow interface, trigger information that triggers a change of the state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information;
控制信息请求发送单元, 用于向媒体网关控制器发送控制信息请求消息, 所述控制信息请求包括所述第一组播组信息;  a control information request sending unit, configured to send a control information request message to the media gateway controller, where the control information request includes the first multicast group information;
控制信息接收单元,用于接收来自所述媒体网关控制器响应所述控制信息 请求消息的控制消息;  a control information receiving unit, configured to receive a control message from the media gateway controller in response to the control information request message;
数据库判断单元 ,用于判断所述下游流接口上的组播组成员状态的改变是 否导致设备组播成员数据库的记录发生改变 ,所述设备组播组成员数据库汇总 所有下游流接口组播组成员状态;  The database judging unit is configured to determine whether the change of the state of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to be changed, and the device multicast group member database summarizes all the members of the downstream flow interface multicast group. State
接口确定单元 ,用于在所述数据库判断单元判断所述下游流接口上的组播 组成员状态的改变导致设备组播成员数据库的记录发生改变时,根据组播组信 息与上游流接口的对应关系,查找与所述设备组播成员数据库中改变的记录中 第二组播组信息对应的上游流接口;  An interface determining unit, configured to: when the database determining unit determines that the change of the state of the multicast group member on the downstream flow interface causes the record of the multicast member database of the device to change, according to the correspondence between the multicast group information and the upstream flow interface Relationship, searching for an upstream flow interface corresponding to the second multicast group information in the changed record in the multicast member database of the device;
消息发送单元,用于在根据所述设备组播成员数据库中改变的记录构造第 一消息后 ,通过所述上游流接口向与所述上游流接口对应的上游网络发送包括 组播组信息的第一消息,所述第一消息包括与第二组播组信息对应的第三组播 组信息。 a message sending unit, configured to: after the first message is configured according to the record changed in the multicast member database of the device, send, by using the upstream flow interface, the information including the multicast group information to the upstream network corresponding to the upstream flow interface a message, the first message includes third multicast group information corresponding to the second multicast group information.
16、 如权利要求 15所述的媒体网关, 其特征在于, 还包括: 网络地址映射表维护单元, 用于维护网络地址映射表, 所述网络地址映射 表保存有上游流接口对应的上游网络的网络地址和下游流接口对应的下游网 络的网络地址之间映射关系; The media gateway according to claim 15, further comprising: a network address mapping table maintenance unit, configured to maintain a network address mapping table, where the network address mapping table stores an upstream network corresponding to the upstream flow interface a mapping relationship between the network address and the network address of the downstream network corresponding to the downstream flow interface;
组播组信息更新单元, 用于在所述第一组播组信息包括第一组播组地址 时,从所述网络地址映射表中查找所述第一组播组地址在上游网络的第一映射 组播组地址,将组播组信息中的第一组播组地址更新为所述第一映射组播组地 址; 触发所述消息发送单元发送包含更新后的组播组信息的第一消息;  The multicast group information update unit is configured to: when the first multicast group information includes the first multicast group address, search for the first multicast group address from the network address mapping table in the first network of the upstream network Mapping the multicast group address, updating the first multicast group address in the multicast group information to the first mapped multicast group address; triggering the message sending unit to send the first message including the updated multicast group information ;
 Or
用于在所述第一组播组信息包括第一组播组地址和第一组播源地址时,从 所述网络地址映射表中查找第一组播组地址在上游网络的第一映射组播组地 址以及第一组播源地址在上游网络的第一映射组播源地址,将第一组播组信息 中的第一组播组地址更新为所述第一映射组播组地址,将第一组播信息中的第 一组播源地址更新为所述第一映射组播源地址;触发所述消息发送单元发送包 含更新后的组播组信息的第一消息;  When the first multicast group information includes the first multicast group address and the first multicast source address, the first mapping group of the first multicast group address in the upstream network is searched from the network address mapping table. The broadcast group address and the first multicast source address of the first multicast source address in the upstream network, and the first multicast group address in the first multicast group information is updated to the first mapped multicast group address, The first multicast source address in the first multicast information is updated to the first mapped multicast source address; triggering the message sending unit to send a first message including the updated multicast group information;
 Or
用于在所述第一组播组信息包括第一组播源地址时,从所述网络地址映射 表中查找第一组播源地址在上游网络的第一映射组播源地址,将第一组播组信 息中的第一组播源地址更新为所述第一映射组播源地址;触发所述消息发送单 元发送包含更新后的组播组信息的第一消息。  When the first multicast group information includes the first multicast source address, the first mapping multicast source address of the first multicast source address in the upstream network is searched from the network address mapping table, and the first The first multicast source address in the multicast group information is updated to the first mapped multicast source address, and the message sending unit is triggered to send the first message including the updated multicast group information.
17、 如权利要求 15所述的媒体网关, 其特征在于, 还包括:  The media gateway of claim 15, further comprising:
组播数据流接收单元, 用于从上游流接口上接收组播组的组播数据流; 组播数据流发送单元,用于根据下游流接口上的组播组成员状态分发所述 组播数据流。  a multicast data stream receiving unit, configured to receive a multicast data stream of the multicast group from the upstream flow interface; the multicast data stream sending unit, configured to distribute the multicast data according to the status of the multicast group member on the downstream flow interface flow.
18、 如权利要求 17所述的媒体网关, 其特征在于, 还包括:  The media gateway of claim 17, further comprising:
网络地址映射表维护单元, 用于维护网络地址映射表, 所述网络地址映射 表保存有上游流接口对应的上游网络的网络地址和下游流接口对应的下游网 络的网络地址之间映射关系;  a network address mapping table maintenance unit, configured to maintain a network address mapping table, where the network address mapping table stores a mapping relationship between a network address of the upstream network corresponding to the upstream flow interface and a network address of the downstream network corresponding to the downstream flow interface;
组播数据流更新单元,用于在所述网络地址映射表保存的所述上有网络的 系为上游网络和下游网络 之间的组播组地址映射关系时 ,根据所述网络地址映射表修改所述组播数据流 的组播组地址,触发所述组播数据流发送单元根据下游流接口上的组播组成员 状态分发所述组播数据流; a multicast data stream update unit, configured to be in the network address mapping table and stored on the network When the multicast group address mapping relationship between the upstream network and the downstream network is performed, the multicast group address of the multicast data stream is modified according to the network address mapping table, and the multicast data stream sending unit is triggered according to the downstream stream. The multicast group member status on the interface distributes the multicast data stream;
或 网络的网络地址之间的映射关系为上游网络和下游网络之间的组播源地址映 射关系时,根据所述网络地址映射表修改所述组播数据流的组播源地址,触发 所述组播数据流发送单元根据下游流接口上的组播组成员状态分发所述组播 数据流;  Or the mapping between the network address of the network is a multicast source address mapping relationship between the upstream network and the downstream network, and modifying the multicast source address of the multicast data stream according to the network address mapping table, triggering the The multicast data stream sending unit distributes the multicast data stream according to the multicast group member status on the downstream flow interface;
或 网络的网络地址之间的映射关系为上游网络和下游网络之间的组播组地址和 组播源地址映射关系时,根据所述网络地址映射表修改所述组播数据流的组播 组地址和组播源地址,触发所述组播数据流发送单元根据下游流接口上的组播 组成员状态分发所述组播数据流。  Or the mapping between the network address of the network and the multicast group address and the multicast source address mapping relationship between the upstream network and the downstream network, and modifying the multicast group of the multicast data flow according to the network address mapping table. The address and the multicast source address trigger the multicast data stream sending unit to distribute the multicast data stream according to the multicast group member status on the downstream flow interface.
19、 一种媒体网关控制器, 其特征在于, 包括:  19. A media gateway controller, comprising:
控制信息请求接收单元, 用于接收来自媒体网关的控制信息请求消息, 所 述控制信息请求消息包括第一组播组信息;  a control information request receiving unit, configured to receive a control information request message from the media gateway, where the control information request message includes first multicast group information;
判断单元,用于根据自身策略及所述第一组播组信息判断是否允许加入组 播组;  a determining unit, configured to determine, according to the self-policy and the first multicast group information, whether to allow to join the multicast group;
控制信息发送单元,用于在所述判断单元判断允许加入组播组时发送允许 加入组播组的控制消息、或在所述判断单元判断不允许加入组播组时发送不允 许加入组播组的控制消息。  The control information sending unit is configured to: when the determining unit determines that the multicast group is allowed to join the multicast group, send a control message that is allowed to join the multicast group, or send the multicast group not allowed when the determining unit determines that the multicast group is not allowed to join the multicast group. Control message.
20、 如权利要求 19所述的媒体网关控制器, 其特征在于, 所述控制信息 请求接收单元接收的所述控制信息请求消息包括请求加入组播组的主机地址; 所述判断单元进一步根据所述主机地址判断是否允许加入组播组。  The media gateway controller according to claim 19, wherein the control information request message received by the control information request receiving unit includes a host address that requests to join a multicast group; The host address determines whether it is allowed to join the multicast group.
21、 如权利要求 19或 20所述的媒体网关控制器, 其特征在于, 还包括: 网络地址映射表维护单元,用于向媒体网关发送网络地址映射表的设置和 /或更新信息。 The media gateway controller according to claim 19 or 20, further comprising: a network address mapping table maintenance unit, configured to send a setting of the network address mapping table to the media gateway / or update information.
22、 一种组播路由系统, 其特征在于, 包括:  22. A multicast routing system, comprising:
媒体网关,用于从下游流接口获取触发所述下游流接口上的组播组成员状 态发生改变的触发信息, 所述触发信息包括第一组播组信息, 向媒体网关控制 器发送控制信息请求消息;接收响应所述控制信息请求消息的允许加入组播组 的控制消息;若所述下游流接口上的组播组成员状态发生改变导致汇总所有下 游流接口组播组成员状态的设备组播成员数据库的记录发生改变,根据组播组 信息与上游流接口的对应关系,查找与所述设备组播成员数据库中改变的记录 中第二组播组信息对应的上游流接口;在根据所述设备组播成员数据库中改变 的记录构造第一消息后, 通过所述上游流接口发送所述第一信息, 所述第一消 息包括与第二组播组信息对应的第三组播组信息;  The media gateway is configured to obtain, from the downstream flow interface, trigger information that triggers a change of a state of the multicast group member on the downstream flow interface, where the trigger information includes the first multicast group information, and sends a control information request to the media gateway controller. And receiving a control message that is allowed to join the multicast group in response to the control information request message; if the status of the multicast group member on the downstream flow interface is changed, the device multicasts that summarize the state of all the downstream flow interface multicast group members are received. The record of the member database is changed, and the upstream flow interface corresponding to the second multicast group information in the record changed in the multicast member database of the device is searched according to the correspondence between the multicast group information and the upstream flow interface; After the first message is configured, the first message is sent by the upstream flow interface, where the first message includes third multicast group information corresponding to the second multicast group information.
媒体网关控制器, 用于接收所述控制信息请求消息,根据所述第一组播组 信息判断是否允许加入组播组,在判断允许加入组播组时发送允许加入组播组 的所述控制消息;  The media gateway controller is configured to receive the control information request message, determine, according to the first multicast group information, whether to allow to join the multicast group, and send the control that is allowed to join the multicast group when determining to allow the joining of the multicast group. Message
第一网络, 用于接收所述第一消息。  The first network is configured to receive the first message.
PCT/CN2008/072114 2007-09-03 2008-08-22 Multicast routing method and system, media gateway and media gateway controller WO2009030143A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2007101480504A CN101383757B (en) 2007-09-03 2007-09-03 Multicast routing method, apparatus and system, media gateway and media gateway controller
CN200710148050.4 2007-09-03

Publications (1)

Publication Number Publication Date
WO2009030143A1 true WO2009030143A1 (en) 2009-03-12

Family

ID=40428464

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2008/072114 WO2009030143A1 (en) 2007-09-03 2008-08-22 Multicast routing method and system, media gateway and media gateway controller

Country Status (2)

Country Link
CN (1) CN101383757B (en)
WO (1) WO2009030143A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103248577B (en) * 2012-02-01 2016-03-30 华为技术有限公司 Determine the method for multicast path, the method receiving data message and router
CN103379185B (en) * 2012-04-26 2016-08-03 华为技术有限公司 A kind of method, apparatus and system of network address translation
CN104601478A (en) * 2014-12-30 2015-05-06 北京华为朗新科技有限责任公司 Method and device for constructing message forwarding, sending, receiving and multicasting paths
CN108667735B (en) * 2017-03-29 2021-03-16 中兴通讯股份有限公司 Method and device for forwarding multicast data
CN108347382B (en) * 2018-03-21 2019-07-19 常熟理工学院 A kind of new generation network implementation method based on data grid technology
CN108494688B (en) * 2018-03-21 2019-11-05 常熟理工学院 A kind of Future Data network implementation approach of low-cost

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1548978A1 (en) * 2003-12-23 2005-06-29 Motorola Inc. Route-optimised multicast traffic for a mobile network node
CN1764155A (en) * 2005-09-08 2006-04-26 杭州华为三康技术有限公司 Transmission method and edge apparatus for multicast between fields
CN1988507A (en) * 2006-12-14 2007-06-27 华为技术有限公司 Method, system and router for repeating multicast data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1548978A1 (en) * 2003-12-23 2005-06-29 Motorola Inc. Route-optimised multicast traffic for a mobile network node
CN1764155A (en) * 2005-09-08 2006-04-26 杭州华为三康技术有限公司 Transmission method and edge apparatus for multicast between fields
CN1988507A (en) * 2006-12-14 2007-06-27 华为技术有限公司 Method, system and router for repeating multicast data

Also Published As

Publication number Publication date
CN101383757A (en) 2009-03-11
CN101383757B (en) 2012-03-21

Similar Documents

Publication Publication Date Title
JP4165196B2 (en) Packet relay device
US8064449B2 (en) Methods and apparatus for managing multicast traffic
US8009671B2 (en) Multicast method and multicast routing method
US7835276B2 (en) Admission control mechanism for multicast receivers
US8243643B2 (en) Active multicast information protocol
JP2005516544A (en) Controlled multicast system and method of execution
WO2009030143A1 (en) Multicast routing method and system, media gateway and media gateway controller
US8625591B2 (en) System, server and method for optimizing a group management protocol
US11233741B1 (en) Replication mode selection for EVPN multicast
CN101222425B (en) Multicast forwarding method and multicast router
WO2009024054A1 (en) A method, device and system for realizing the management protocol agent for members in a multicast group
US20050185663A1 (en) Method, system and source for implementing multicasting
WO2008138248A1 (en) A method, an interface board and a router for transmitting the message
WO2012103748A1 (en) Multicast control method, routing device and multicast system
Cisco Configuring IP Multicast Routing
US20100135298A1 (en) Method and system for providing source specific multicast service on ethernet network
JP5177155B2 (en) Packet relay device
WO2012103694A1 (en) Method, apparatus and system for tracing layer-2 multicast path
JP5556843B2 (en) Packet relay device
JP2008048449A (en) Packet repeating device
An How IP Multicast Works
Venketesan et al. Supporting multimedia conferencing with implicit multicast
Cheng et al. A new mechanism for constrained-based multicast

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

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

Country of ref document: EP

Kind code of ref document: A1