WO2012065407A1 - Multicast message control method and apparatus - Google Patents

Multicast message control method and apparatus Download PDF

Info

Publication number
WO2012065407A1
WO2012065407A1 PCT/CN2011/073607 CN2011073607W WO2012065407A1 WO 2012065407 A1 WO2012065407 A1 WO 2012065407A1 CN 2011073607 W CN2011073607 W CN 2011073607W WO 2012065407 A1 WO2012065407 A1 WO 2012065407A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast
protocol
version
multicast group
packet
Prior art date
Application number
PCT/CN2011/073607
Other languages
French (fr)
Chinese (zh)
Inventor
武云飞
冉文军
毛彪
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2012065407A1 publication Critical patent/WO2012065407A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1863Arrangements for providing special services to substations for broadcast or conference, e.g. multicast comprising mechanisms for improved reliability, e.g. status reports

Definitions

  • the present invention relates to multicast technologies, and in particular, to a multicast message control method and apparatus. Background technique
  • the passive optical network is the main form of the access network device, and the multicast data packet on the passive optical network device, such as the optical line terminal (OLT, Optical Line Terminal) and the optical network unit (ONU, Optical Network Unit) Distribution control is performed through an Internet Group Management Protocol (IGMP) or a Multicast Listener Discovery Protocol (MLD).
  • IGMP Internet Group Management Protocol
  • MLD Multicast Listener Discovery Protocol
  • STB Set Top Box, Personal Computer, etc.
  • the main purpose of the present invention is to provide a method and apparatus for controlling multicast packets, which improves the secure forwarding of multicast data packets.
  • the present invention provides a method for controlling multicast packets, which includes the steps of:
  • the version of the multicast protocol packet is converted to IGMPv3/MLDv2 according to the preset control table entry.
  • the method for controlling the multicast message further includes the following steps:
  • the converted multicast protocol or the updated multicast protocol is sent to the core network.
  • the method further includes: configuring a local multicast data forwarding table.
  • the method further includes:
  • the received multicast data packet is forwarded according to the local multicast data forwarding table.
  • the multicast protocol is: Joining a multicast group protocol or leaving a multicast group protocol.
  • the present invention further provides an apparatus for controlling multicast packets, including:
  • a first receiving module configured to receive a multicast protocol packet sent by the user terminal
  • a first determining module configured to determine whether the version of the multicast protocol packet is
  • the first conversion module is configured to convert the multicast protocol packet version to IGMPv3/MLDv2 according to the preset control table entry when the multicast protocol packet version is not IGMPv3/MLDv2;
  • the update module is configured to update the multicast source address in the multicast protocol packet according to the preset control table entry when the version of the multicast protocol packet is IGMPv3/MLDv2.
  • the apparatus for controlling the multicast packet further includes:
  • the first sending module is configured to send the converted multicast protocol message or the updated multicast protocol message to the core network.
  • the apparatus for controlling the multicast packet further includes:
  • a configuration module is configured to configure a local multicast data forwarding table.
  • the apparatus for controlling the multicast packet further includes:
  • the forwarding module is configured to forward the received multicast data packet according to the local multicast data forwarding table.
  • the multicast protocol is: adding a multicast group protocol or leaving the multicast group association The discussion is written.
  • the present invention further provides a method for controlling multicast packets, which includes the steps of:
  • the version of the multicast group query protocol is converted to the version of the multicast group protocol packet.
  • the translated multicast group query protocol packet is sent to the user terminal.
  • the method further includes:
  • the multicast group query protocol packet is sent to the user terminal.
  • the method further includes:
  • the version of the multicast group query protocol is translated into a multicast group protocol that is inconsistent with the version of the multicast group query protocol.
  • the multicast group query before the conversion is sent to the user group that joins the multicast group protocol.
  • the version of the message is the same as that of the multicast group.
  • the translated multicast group query protocol is sent to the user group that joins the multicast group protocol.
  • the version of the multicast group and the multicast group query protocol are inconsistent.
  • the present invention further provides an apparatus for controlling multicast packets, including:
  • a second receiving module configured to receive a multicast group query protocol packet
  • the second judging module is configured to determine whether there is a user terminal that joins the multicast group; and when there is a user terminal that joins the multicast group, determine the version of the multicast group query protocol and the join multicast group protocol sent by the user terminal. Whether the packet version is consistent;
  • the second conversion module is configured to convert the version of the multicast group query protocol to the join multicast group protocol when the version of the multicast group query protocol packet is inconsistent with the version of the join multicast group protocol sent by the user terminal. ⁇ version;
  • the second sending module is configured to send the converted multicast group query protocol packet to the user terminal.
  • the second sending module is further configured to send the multicast group query protocol to the multicast group query protocol packet when the multicast group query protocol packet version is consistent with the version of the join multicast group protocol sent by the user terminal. User terminal.
  • the second conversion module is further configured to: when the version of the multicast group query protocol message is consistent with the version of the multicast group protocol that is sent by the user terminal, the version of the multicast group query protocol is Converted to a multicast group protocol version that is inconsistent with the multicast group query protocol version;
  • the second sending module is further configured to: send the multicast group query message before the conversion to the user terminal that is added to the multicast group protocol version and the multicast group query protocol version; and
  • the multicast group query protocol is sent to the user terminal that is added to the multicast group protocol and whose version is inconsistent with the multicast group query protocol >3 ⁇ 4 version.
  • the method and the device for controlling the multicast packet ensure that the user terminal receives the multicast data packet of the preset multicast source by converting the multicast protocol packet before sending it to the core network.
  • the security of the multicast service is improved.
  • the multicast protocol packet is converted to a protocol version format that can be correctly processed by the user terminal before being sent to the user terminal, thereby improving the compatibility of the multicast service of the user terminal.
  • FIG. 1 is a flowchart of an embodiment of a method for controlling multicast packet according to the present invention
  • FIG. 2 is a schematic structural diagram of a preset control table entry of the present invention.
  • FIG. 3 is a schematic structural diagram of an apparatus for controlling multicast packet according to an embodiment of the present invention
  • FIG. 4 is another schematic structural diagram of an apparatus for controlling multicast packet according to the present invention
  • 5 is another schematic structural diagram of an apparatus for controlling multicast packet control according to the present invention
  • FIG. 6 is another schematic structural diagram of an apparatus for controlling multicast packet control according to the present invention
  • FIG. 8 is a schematic structural diagram of another embodiment of a multicast packet control apparatus according to the present invention. detailed description
  • Step S101 Receive a multicast protocol packet sent by a user terminal.
  • Step S102 Determine whether the version of the multicast protocol is IGMPv3/MLDv2.
  • Step S103 If not, converting the version of the multicast protocol message to IGMPv3/MLDv2 according to the preset control table entry;
  • Step S104 If yes, update the multicast source address in the multicast protocol packet according to the preset control table entry.
  • the preset control table entry includes: a multicast group address list, a multicast source address list, and a multicast source address filtering mode list.
  • the preset control table entries are configured through one or more network management protocols, such as OAM (Operation Passage Optical Network) operation, management and maintenance (OAM), Gigabit-free Source Network Protocol (GPON, Gigabit Passive Optical Network) Optical network unit management and control interface (OMCI, ONU Management and Control Interface), TR069 or Simple Network Management Protocol (SNMP) network management protocol.
  • OAM Opera Passage Optical Network
  • OFAM Gigabit-free Source Network Protocol
  • OMCI Gigabit Passive Optical Network
  • TR069 Simple Network Management Protocol
  • SNMP Simple Network Management Protocol
  • the INCLUDE multicast source address filtering mode is that the multicast group can only receive data packets from its corresponding multicast source address.
  • EXCLUDE Multicast source The address filtering mode is that a multicast group can only receive data packets except for multicast source addresses other than its corresponding multicast source address.
  • the specific multicast source address and filtering mode are configured through the network management protocol.
  • the above versions of the multicast protocol include the following: IGMPvl, IGMPv2, IGMPv3, MLDvl, and MLDv2.
  • the multicast protocol version when the multicast protocol version is IGMPv1 or IGMPv2, it is converted to IGMPv3.
  • the version of the multicast protocol packet is MLDv1, it is converted to MLDv2.
  • the multicast protocol packets of the IGMPv1, IGMPv2, and MLDv1 contain only specific multicast group addresses and do not contain specific multicast source addresses.
  • the multicast protocol version IGMPv3 and MLDv2 contains specific multicast group addresses and multicast source addresses corresponding to multicast group addresses.
  • the version of the multicast protocol packet is translated to IGMPv3/MLDv2.
  • the specific processing is as follows: According to the received multicast protocol, the multicast group address in the packet is The multicast source address and the filtering mode are searched for in the control table entry, and the discovered multicast source address and filtering mode are added to the multicast protocol packet.
  • the multicast source address and the filtering mode are searched for in the preset control table entry.
  • the multicast group address is searched according to the configured multicast group address. If the multicast group in the multicast protocol packet is found in the preset control table entry. If the multicast source address and the filtering mode of the address match, the discovered multicast source address and filtering mode are added to the multicast protocol.
  • the version of the received multicast protocol packet is IGMPv3/MLDv2, which includes the multicast group address and the multicast source address, but the multicast source address and the corresponding multicast source address in the preset control table entry.
  • the multicast source address in the multicast protocol packet is updated to the multicast source address corresponding to the preset control table entry.
  • the multicast group address is an IP address
  • the multicast source address is a multicast source IP address
  • the foregoing method for controlling the multicast packet further includes the following process: sending the converted multicast protocol or the updated multicast protocol to the core network.
  • the receiving the multicast protocol packet sent by the user terminal further includes the following processing: configuring a local multicast data forwarding table.
  • the local multicast data forwarding table includes: a multicast group IP address and a multicast source IP address and corresponding network interface contents; and/or a multicast group MAC address and a multicast source MAC address and corresponding network interfaces thereof content.
  • the method further includes the following processing: according to the local multicast data.
  • the forwarding table forwards the received multicast data packet. That is, according to the received multicast data, the multicast group address and the multicast source address in the message, and the network interface corresponding to the multicast group address and the multicast source address are searched in the multicast data forwarding table, and then the group is The broadcast data is forwarded to the corresponding network interface.
  • the network interface corresponding to the multicast group address and the multicast source address may be searched according to the multicast group IP address and the multicast source IP address in the multicast data forwarding table, that is, the multicast data is searched for. 4) The network interface corresponding to the multicast group IP address and the multicast source IP address, and then forward the multicast data packet to the corresponding network interface.
  • the network interface corresponding to the multicast group address and the multicast source address may be searched according to the multicast group MAC address and the multicast source MAC address in the multicast data forwarding table, that is, the multicast and the multicast are searched.
  • the network interface corresponding to the multicast group MAC address and the multicast source MAC address in the data packet and then forwards the multicast data packet to the corresponding network interface.
  • the multicast data forwarding table is searched for a network interface corresponding to the multicast group MAC address and the modified source MAC address.
  • the multicast data includes the multicast source IP address and the modified source MAC address.
  • the mapping rules described above have multiple modes, such as: One is to use the source MAC address in the multicast data packet. The last 23 bits are changed to the last 23 bits of the multicast source IP address; the other is to multicast data packets. The last 32 bits in the middle source MAC address are changed to the last 32 bits of the multicast source IP address.
  • the multicast protocol text is: adding a multicast group protocol or leaving a multicast group protocol.
  • the multicast protocol packet whose version is not IGMPv3/MLDv2 is converted into IGMPv3/MLDv2, that is, the multicast protocol packet is added. Specifies the multicast source address to ensure the security of multicast data packet forwarding.
  • an apparatus 10 for implementing multicast packet control includes: a first receiving module 11, a first determining module 12, a first converting module 13, and an updating module 14.
  • the first receiving module 11 is configured to receive a multicast protocol packet sent by the user terminal.
  • the first determining module 12 is configured to determine whether the version of the multicast protocol packet is IGMPv3/MLDv2.
  • the first conversion module 13 is configured to convert the multicast protocol packet version to IGMPv3/MLDv2 according to the preset control table entry when the multicast protocol packet version is not IGMPv3/MLDv2.
  • the update module 14 is configured to update the multicast source address in the multicast protocol packet according to the preset control table entry when the version of the multicast protocol packet is IGMPv3/MLDv2.
  • the preset control table entry includes: a multicast group address list, a multicast source address list, and a multicast source address filtering mode list.
  • each multicast group address corresponds to one or more multicast source addresses.
  • the INCLUDE multicast source address filtering mode is that the multicast group can only receive data packets from its corresponding multicast source address.
  • EXCLUDE The multicast source address filtering mode is that a multicast group can only receive data packets except for multicast source addresses other than its corresponding multicast source address.
  • the specific multicast source address and filtering mode are configured through the network management protocol.
  • the above versions of the multicast protocol include the following: IGMPvl, IGMPv2, IGMPv3, MLDvl, and MLDv2.
  • the multicast protocol version when the multicast protocol version is IGMPvl or IGMPv2 converts it to IGMPv3.
  • the version of the multicast protocol packet is MLDv1, it is converted to MLDv2.
  • the multicast protocol packets of the IGMPv1, IGMPv2, and MLDv1 contain only specific multicast group addresses and do not contain specific multicast source addresses.
  • the multicast protocol version IGMPv3 and MLDv2 contains a specific multicast group address and a multicast source address corresponding to the multicast group address.
  • the version of the multicast protocol packet received by the first receiving module 11 is not IGMPv3/MLDv2
  • the version of the multicast protocol packet is converted to IGMPv3/MLDv2 by the first converting module 13, and the processing is as follows:
  • the multicast group address in the multicast protocol is searched for the multicast source address and filtering mode in the preset control table entry, and the discovered multicast source address and filtering mode are added to the multicast protocol packet. in.
  • the multicast source address and the filtering mode are searched for in the preset control table entry.
  • the multicast group address is searched according to the configured multicast group address. If the multicast group address in the multicast protocol packet is found in the preset control table entry. The matched multicast source address and filtering mode are added to the multicast protocol packet.
  • the version of the multicast protocol packet received by the first receiving module 11 is IGMPv3/MLDv2, which includes the multicast group address and the multicast source address, but the multicast source address corresponds to the preset control table entry.
  • the multicast source address is not necessarily the same.
  • the multicast source address in the multicast protocol is updated to the multicast source address corresponding to the preset control table entry.
  • the multicast group address is an IP address
  • the multicast source address is a multicast source IP address
  • the apparatus 10 for controlling the multicast packet further includes a first sending module 15.
  • the first sending module 15 is configured to send the converted multicast protocol packet or the updated multicast protocol packet to the core network.
  • the apparatus 10 for controlling the multicast packet further includes a configuration module 16.
  • the configuration module 16 is configured to configure a local multicast data forwarding table.
  • the local multicast data forwarding table includes: a multicast group IP address and a multicast source IP address, and a pair thereof The content of the network interface;
  • the local multicast data forwarding table may also be a multicast group MAC address and a multicast source MAC address and corresponding network interface contents.
  • the apparatus 10 for controlling multicast packet control further includes a forwarding module 17.
  • the forwarding module 17 is configured to forward the received multicast data packet according to the local multicast data forwarding table.
  • the forwarding module 17 searches for the multicast source address and the multicast source address in the multicast data forwarding table according to the multicast group address and the multicast source address in the multicast data packet received by the first receiving module 11.
  • the network interface then forwards the multicast data message to the corresponding network interface.
  • the network interface corresponding to the multicast group address and the multicast source address may be searched according to the multicast group IP address and the multicast source IP address in the multicast data forwarding table, that is, the multicast data is searched for. 4) The network interface corresponding to the multicast group IP address and the multicast source IP address, and then forward the multicast data packet to the corresponding network interface.
  • the network interface corresponding to the multicast group address and the multicast source address may be searched according to the multicast group MAC address and the multicast source MAC address in the multicast data forwarding table, that is, the multicast and the multicast are searched.
  • the network interface corresponding to the multicast group MAC address and the multicast source MAC address in the data packet and then forwards the multicast data packet to the corresponding network interface.
  • the multicast data forwarding table is searched for a network interface corresponding to the multicast group MAC address and the modified source MAC address.
  • the multicast data includes the multicast source IP address and the modified source MAC address.
  • the mapping rules described above have multiple modes, such as: One is to source the MAC address in the multicast data packet. The last 23 bits are changed to the last 23 bits of the multicast source IP address. The other is to change the last 32 bits of the source MAC address in the multicast data packet to the last 32 bits of the multicast source IP address. .
  • the multicast protocol packet is: adding a multicast group protocol or leaving a multicast group protocol. In this embodiment, it is determined whether the version of the multicast protocol packet sent by the user terminal is
  • IGMPv3/MLDv2 converts the multicast protocol packets whose version is not IGMPv3/MLDv2 to IGMPv3/MLDv2. That is, the multicast source address is added to the multicast protocol packet to ensure the security of multicast data packet forwarding.
  • an embodiment of another method for controlling multicast packets according to the present invention includes the following steps:
  • Step S201 Receive a multicast group query protocol.
  • Step S202 Determine whether there is a user terminal that joins the multicast group.
  • Step S203 When there is a user terminal that joins the multicast group, determine whether the version of the multicast group query protocol packet is consistent with the version of the multicast group protocol packet sent by the user terminal.
  • Step S204 When the multicast group query protocol version is inconsistent with the version of the multicast group protocol text sent by the user terminal, the multicast group query protocol version is converted to the version of the multicast group protocol. ;
  • Step S205 Send the converted multicast group query protocol packet to the user terminal.
  • the versions of the multicast query protocol packets include the following: IGMPvl, IGMPv2, IGMPv3, MLDvl, and MLDv2.
  • the method further includes: after determining whether the version of the multicast group query protocol is the same as the version of the multicast group protocol sent by the user terminal, If the version of the multicast group query protocol is the same as the version of the multicast group protocol that is sent by the user terminal, the multicast group query protocol is sent to the user terminal.
  • the method further includes: after determining whether the version of the multicast group query protocol is the same as the version of the multicast group protocol sent by the user terminal, deal with:
  • the multicast group query protocol version is converted to the multicast group query protocol.
  • the inconsistent version of the multicast group protocol is added; the multicast group query before the conversion is sent to the user terminal that is added to the multicast group protocol and the version of the multicast group query protocol is the same;
  • the converted multicast group query protocol is sent to the user terminal that is not in the version of the multicast group protocol and the version of the multicast group query protocol.
  • the multicast group query protocol packet is converted into the multiple versions, and the converted version is converted. Multiple versions of the multicast group query protocol are sent to a corresponding plurality of different user terminals.
  • the version of the multicast group query protocol sent by the user terminal is inconsistent with the version of the multicast query protocol
  • the version of the multicast group query protocol is converted, and the multicast before the conversion is performed.
  • the group query protocol 4 ⁇ and the converted multicast group query protocol are sent to the corresponding user terminals, ensuring that each user terminal receives the corresponding multicast group query protocol, ensuring the multicast service of the user terminal. compatible.
  • the second receiving module 21 is configured to receive a multicast group query protocol packet.
  • the second judging module 22 is configured to determine whether the user group exists in the multicast group, and when the user group exists in the multicast group, determine the version of the multicast group query protocol and the join multicast group protocol sent by the user terminal. The version is consistent.
  • the second conversion module 23 is configured to convert the version of the multicast group query protocol to the joined multicast group when the version of the multicast group query protocol packet is inconsistent with the version of the multicast group protocol protocol message sent by the user terminal.
  • the second sending module 24 is configured to send the converted multicast group query protocol to the user terminal.
  • the versions of the multicast query protocol packets include the following: IGMPvl, IGMPv2, IGMPv3, MLDvl, and MLDv2.
  • the second sending The module 24 is further configured to send the multicast group query protocol message to the user terminal when the version of the multicast group query protocol is the same as the version of the multicast group protocol that is sent by the user terminal.
  • the second conversion module 23 is further configured to join the multicast group protocol sent by the multicast group query protocol version and some user terminals. If the versions of the multicast group are the same, the version of the multicast group query protocol is converted to the version of the multicast group protocol that is inconsistent with the version of the multicast group query protocol.
  • the second sending module 24 is also used to Sending the multicast group query before the conversion to the user terminal that is added to the multicast group protocol and the version of the multicast group query protocol; and the converted multicast group query protocol The user terminal that is sent to the multicast group protocol version 4 is inconsistent with the version of the multicast group query protocol.
  • the second conversion module 23 converts the multicast group query protocol packet into the multiple versions. And transmitting, by the second sending module 24, the converted multiple versions of the multicast group query protocol message to the corresponding multiple user terminals.
  • the version of the multicast group query protocol that is sent by the user terminal is inconsistent with the version of the multicast query protocol
  • the version of the multicast group query protocol is translated, and the multicast group query protocol before the conversion is performed.
  • the message and the translated multicast group query protocol are sent to the corresponding user terminals, ensuring that each user terminal receives the corresponding multicast group query protocol and ensures the compatibility of the user terminal's multicast service.
  • the device for controlling the multicast packet mentioned above is an optical access network device, which may be an optical line terminal (OLT) or an optical network unit (ONU).
  • OLT optical line terminal
  • ONU optical network unit
  • the method and the device embodiment of the foregoing multicast message control according to the present invention perform the conversion of the multicast protocol packet before being sent to the core network, so that the user terminal receives the multicast data packet of the preset multicast source.
  • the security of the multicast service is improved.
  • the multicast protocol packet is converted before being sent to the user terminal, and converted into a protocol version format that can be correctly processed by the user terminal.
  • the compatibility of the user terminal multicast service is high.

Landscapes

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

Abstract

The present invention discloses a multicast message control method, which includes: receiving a multicast protocol message transmitted by a user terminal (S101); judging whether the version of the multicast protocol message is Internet Group Management Protocol version 3 (IGMPv3)/Multicast Listener Discover version 2 (MLDv2) (S102); if not, converting the version of the multicast protocol message to IGMPv3/MLDv2 according to a preset control table item (S103); if yes, updating multicast source addresses of the multicast protocol message (S104). Alternatively, the method includes: receiving a multicast group query protocol message; judging whether there is a user terminal joining the multicast group; if yes, judging whether the version of the multicast group query protocol message is consistent with the version of a multicast group join protocol message transmitted by the user terminal; if not, converting the version of the multicast group query protocol message to the version of the multicast group join protocol message; transmitting the converted multicast group query protocol message to the user terminal. The present invention also discloses a multicast message control apparatus for implementing the above-mentioned method. The compatibility of multicast services for user terminals is improved.

Description

组播报文控制的方法和装置 技术领域  Multicast message control method and device
本发明涉及组播技术, 尤其涉及一种组播报文控制的方法和装置。 背景技术  The present invention relates to multicast technologies, and in particular, to a multicast message control method and apparatus. Background technique
组播技术作为网络电视 ( IPTV, Internet Protocol Television )业务的重 要承载方式, 具有广泛的应用。 目前无源光网络为接入网设备的主要形式, 在无源光网络设备, 如光线路终端( OLT , Optical Line Terminal )和光网路 单元( ONU, Optical Network Unit )上的组播数据报文通过互联网组管理协 议( IGMP, Internet Group Management Protocol )或组播侦听发现协议( MLD, Multicast Listener Discover )进行分发控制。 目前大部分的用户终端 (机顶 盒(STB, Set Top Box )、 个人计算机(PC, Personal Computer )等) 不能 支持组播数据报文的组播源地址过滤功能, 导致不能实现组播数据报文的 安全转发。 发明内容  As an important bearer of IPTV (Internet Protocol Television) services, multicast technology has a wide range of applications. At present, the passive optical network is the main form of the access network device, and the multicast data packet on the passive optical network device, such as the optical line terminal (OLT, Optical Line Terminal) and the optical network unit (ONU, Optical Network Unit) Distribution control is performed through an Internet Group Management Protocol (IGMP) or a Multicast Listener Discovery Protocol (MLD). At present, most of the user terminals (STB, Set Top Box, Personal Computer, etc.) cannot support the multicast source address filtering function of multicast data packets, resulting in the inability to implement multicast data packets. Secure forwarding. Summary of the invention
本发明的主要目的在于提供一种组播报文控制的方法和装置, 提高组 播数据报文的安全转发。  The main purpose of the present invention is to provide a method and apparatus for controlling multicast packets, which improves the secure forwarding of multicast data packets.
本发明提出一种组播报文控制的方法, 其包括步骤:  The present invention provides a method for controlling multicast packets, which includes the steps of:
接收用户终端发送的组播协议报文;  Receiving a multicast protocol packet sent by the user terminal;
判断所述组播协议 ^艮文版本是否为 IGMPv3/MLDv2;  Determining whether the multicast protocol version is IGMPv3/MLDv2;
若否, 根据预设控制表条目 将组播协议报文版本转换为 IGMPv3/MLDv2;  If not, the version of the multicast protocol packet is converted to IGMPv3/MLDv2 according to the preset control table entry.
若是, 根据预设控制表条目更新组播协议报文中的组播源地址。 优选地, 所述的组播 ^艮文控制的方法, 还包括步骤: If yes, the multicast source address in the multicast protocol packet is updated according to the preset control table entry. Preferably, the method for controlling the multicast message further includes the following steps:
将转换后的组播协议^艮文或更新后的组播协议^艮文发送给核心网。 优选地, 所述接收用户终端发送的组播协议 ^艮文之后还包括: 配置本地组播数据转发表。  The converted multicast protocol or the updated multicast protocol is sent to the core network. Preferably, after receiving the multicast protocol sent by the user terminal, the method further includes: configuring a local multicast data forwarding table.
优选地, 所述将转换后的组播协议报文或更新后的组播协议报文发送 给核心网之后还包括:  Preferably, after the sending the converted multicast protocol message or the updated multicast protocol message to the core network, the method further includes:
根据本地组播数据转发表转发接收的组播数据报文。  The received multicast data packet is forwarded according to the local multicast data forwarding table.
优选地, 所述组播协议 ^艮文为: 加入组播组协议 ^艮文或离开组播组协 议才艮文。  Preferably, the multicast protocol is: Joining a multicast group protocol or leaving a multicast group protocol.
本发明另提出一种组播报文控制的装置, 其包括:  The present invention further provides an apparatus for controlling multicast packets, including:
第一接收模块, 用于接收用户终端发送的组播协议报文;  a first receiving module, configured to receive a multicast protocol packet sent by the user terminal;
第一判断模块, 用 于判断所述组播协议报文版本是否为 a first determining module, configured to determine whether the version of the multicast protocol packet is
IGMPv3/MLDv2; IGMPv3/MLDv2;
第一转换模块, 用于当组播协议报文版本不为 IGMPv3/MLDv2, 根据 预设控制表条目将组播协议报文版本转换为 IGMPv3/MLDv2;  The first conversion module is configured to convert the multicast protocol packet version to IGMPv3/MLDv2 according to the preset control table entry when the multicast protocol packet version is not IGMPv3/MLDv2;
更新模块, 用于当组播协议报文版本为 IGMPv3/MLDv2, 根据预设控 制表条目更新组播协议报文中的组播源地址。  The update module is configured to update the multicast source address in the multicast protocol packet according to the preset control table entry when the version of the multicast protocol packet is IGMPv3/MLDv2.
优选地, 所述的组播报文控制的装置还包括:  Preferably, the apparatus for controlling the multicast packet further includes:
第一发送模块, 用于将转换后的组播协议报文或更新后的组播协议报 文发送给核心网。  The first sending module is configured to send the converted multicast protocol message or the updated multicast protocol message to the core network.
优选地, 所述的组播报文控制的装置还包括:  Preferably, the apparatus for controlling the multicast packet further includes:
配置模块, 用于配置本地组播数据转发表。  A configuration module is configured to configure a local multicast data forwarding table.
优选地, 所述的组播报文控制的装置还包括:  Preferably, the apparatus for controlling the multicast packet further includes:
转发模块, 用于根据本地组播数据转发表转发接收的组播数据报文。 优选地, 所述组播协议 ^艮文为: 加入组播组协议 ^艮文或离开组播组协 议才艮文。 The forwarding module is configured to forward the received multicast data packet according to the local multicast data forwarding table. Preferably, the multicast protocol is: adding a multicast group protocol or leaving the multicast group association The discussion is written.
本发明另提出一种组播报文控制的方法, 其包括步骤:  The present invention further provides a method for controlling multicast packets, which includes the steps of:
接收组播组查询协议 ^艮文;  Receive multicast group query protocol ^艮文;
判断是否存在加入组播组的用户终端;  Determine whether there is a user terminal that joins the multicast group;
若存在, 则判断组播组查询协议 ^艮文版本与用户终端发送的加入组播 组协议报文版本是否一致;  If yes, it is determined whether the multicast group query protocol version is consistent with the version of the multicast group protocol message sent by the user terminal;
若不一致, 则将组播组查询协议 文版本转换为所述加入组播组协议 报文的版本;  If they are inconsistent, the version of the multicast group query protocol is converted to the version of the multicast group protocol packet.
将转换后的组播组查询协议报文发送给用户终端。  The translated multicast group query protocol packet is sent to the user terminal.
优选地, 所述判断组播组查询协议 ^艮文版本与用户终端发送的加入组 播组协议报文版本是否一致之后还包括:  Preferably, after determining whether the version of the multicast group query protocol is consistent with the version of the multicast group protocol protocol message sent by the user terminal, the method further includes:
若一致, 将组播组查询协议报文发送给用户终端。  If the packets are consistent, the multicast group query protocol packet is sent to the user terminal.
优选地, 所述判断组播组查询协议 ^艮文版本与用户终端发送的加入组 播组协议报文版本是否一致之后还包括:  Preferably, after determining whether the version of the multicast group query protocol is consistent with the version of the multicast group protocol protocol message sent by the user terminal, the method further includes:
若部分一致, 将组播组查询协议 ^艮文版本转换为与组播组查询协议才艮 文版本不一致的加入组播组协议 ^艮文版本;  If the parts are consistent, the version of the multicast group query protocol is translated into a multicast group protocol that is inconsistent with the version of the multicast group query protocol.
将转换前的组播组查询 ^艮文发送给加入组播组协议 ^艮文版本与组播组 查询协议 ^艮文版本一致的用户终端;  The multicast group query before the conversion is sent to the user group that joins the multicast group protocol. The version of the message is the same as that of the multicast group.
将转换后的组播组查询协议 ^艮文发送给加入组播组协议 ^艮文版本与组 播组查询协议 ^艮文版本不一致的用户终端。  The translated multicast group query protocol is sent to the user group that joins the multicast group protocol. The version of the multicast group and the multicast group query protocol are inconsistent.
本发明另提出一种组播报文控制的装置, 其包括:  The present invention further provides an apparatus for controlling multicast packets, including:
第二接收模块, 用于接收组播组查询协议报文;  a second receiving module, configured to receive a multicast group query protocol packet;
第二判断模块, 用于判断是否存在加入组播组的用户终端; 以及在存 在加入组播组的用户终端时, 判断组播组查询协议 ^艮文版本与用户终端发 送的加入组播组协议报文版本是否一致; 第二转换模块, 用于在组播组查询协议报文版本与用户终端发送的加 入组播组协议 ^艮文版本不一致时, 将组播组查询协议 文版本转换为所述 加入组播组协议 ^艮文的版本; The second judging module is configured to determine whether there is a user terminal that joins the multicast group; and when there is a user terminal that joins the multicast group, determine the version of the multicast group query protocol and the join multicast group protocol sent by the user terminal. Whether the packet version is consistent; The second conversion module is configured to convert the version of the multicast group query protocol to the join multicast group protocol when the version of the multicast group query protocol packet is inconsistent with the version of the join multicast group protocol sent by the user terminal. ^艮文 version;
第二发送模块, 用于将转换后的组播组查询协议报文发送给用户终端。 优选地, 所述第二发送模块, 还用于在组播组查询协议报文版本与用 户终端发送的加入组播组协议 ^艮文版本一致时, 将组播组查询协议 ^艮文发 送给用户终端。  The second sending module is configured to send the converted multicast group query protocol packet to the user terminal. Preferably, the second sending module is further configured to send the multicast group query protocol to the multicast group query protocol packet when the multicast group query protocol packet version is consistent with the version of the join multicast group protocol sent by the user terminal. User terminal.
优选地, 所述第二转换模块, 还用于在组播组查询协议报文版本与部 分用户终端发送的加入组播组协议 ^艮文版本一致时, 将组播组查询协议才艮 文版本转换为与组播组查询协议 ^艮文版本不一致的加入组播组协议 ^艮文版 本;  Preferably, the second conversion module is further configured to: when the version of the multicast group query protocol message is consistent with the version of the multicast group protocol that is sent by the user terminal, the version of the multicast group query protocol is Converted to a multicast group protocol version that is inconsistent with the multicast group query protocol version;
所述第二发送模块, 还用于将转换前的组播组查询报文发送给加入组 播组协议 ^艮文版本与组播组查询协议 ^艮文版本一致的用户终端; 以及将转 换后的组播组查询协议 ^艮文发送给加入组播组协议 ^艮文版本与组播组查询 协议 >¾文版本不一致的用户终端。  The second sending module is further configured to: send the multicast group query message before the conversion to the user terminal that is added to the multicast group protocol version and the multicast group query protocol version; and The multicast group query protocol is sent to the user terminal that is added to the multicast group protocol and whose version is inconsistent with the multicast group query protocol >3⁄4 version.
由上可知, 本发明提供的组播报文控制的方法和装置, 通过将组播协 议报文在发送给核心网前进行转换, 确保了用户终端接收预设组播源的组 播数据报文, 提高了组播业务的安全性; 同时将组播协议报文在发送给用 户终端前进行转换, 转换为用户终端能够正确处理的协议版本格式, 提高 了用户终端组播业务的兼容性。 附图说明  It can be seen that the method and the device for controlling the multicast packet provided by the present invention ensure that the user terminal receives the multicast data packet of the preset multicast source by converting the multicast protocol packet before sending it to the core network. The security of the multicast service is improved. At the same time, the multicast protocol packet is converted to a protocol version format that can be correctly processed by the user terminal before being sent to the user terminal, thereby improving the compatibility of the multicast service of the user terminal. DRAWINGS
图 1是本发明的组播报文控制的方法一实施例的流程图;  1 is a flowchart of an embodiment of a method for controlling multicast packet according to the present invention;
图 2是本发明的预设控制表条目的结构示意图;  2 is a schematic structural diagram of a preset control table entry of the present invention;
图 3 是本发明的组播报文控制的装置一实施例的结构示意图; 图 4是本发明的组播报文控制的装置实施例的另一结构示意图; 图 5 是本发明的组播报文控制的装置实施例的另一结构示意图; 图 6 是本发明的组播报文控制的装置实施例的另一结构示意图; 图 Ί是本发明的另一组播报文控制的方法一实施例的流程图; 图 8是本发明的另一组播报文控制的装置一实施例的结构示意图。 具体实施方式 3 is a schematic structural diagram of an apparatus for controlling multicast packet according to an embodiment of the present invention; FIG. 4 is another schematic structural diagram of an apparatus for controlling multicast packet according to the present invention; 5 is another schematic structural diagram of an apparatus for controlling multicast packet control according to the present invention; FIG. 6 is another schematic structural diagram of an apparatus for controlling multicast packet control according to the present invention; A flowchart of an embodiment of a multicast packet control method. FIG. 8 is a schematic structural diagram of another embodiment of a multicast packet control apparatus according to the present invention. detailed description
应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于 限定本发明。  It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
参见图 1 , 提出本发明的组播报文控制的方法一实施例, 其包括: 步骤 S101、 接收用户终端发送的组播协议报文;  Referring to FIG. 1 , an embodiment of a method for controlling multicast packet according to the present invention is provided. The method includes: Step S101: Receive a multicast protocol packet sent by a user terminal.
步骤 S102、 判断所述组播协议 文版本是否为 IGMPv3/MLDv2;  Step S102: Determine whether the version of the multicast protocol is IGMPv3/MLDv2.
步骤 S103、 若否, 根据预设控制表条目将组播协议报文版本转换为 IGMPv3/MLDv2;  Step S103: If not, converting the version of the multicast protocol message to IGMPv3/MLDv2 according to the preset control table entry;
步骤 S104、 若是, 根据预设控制表条目更新组播协议报文中的组播源 地址。  Step S104: If yes, update the multicast source address in the multicast protocol packet according to the preset control table entry.
参见图 2, 所述预设控制表条目包括有: 组播组地址列表、 组播源地址 列表、 组播源地址过滤模式列表。 预设控制表条目通过一种或多种网管协 议进行配置, 如通过以太网无源光网络(EPON , Ethernet Passive Optical Network ) 操作、 管理和维护 ( OAM , Operation, Administration and Maintenance )、 吉比特无源光网络( GPON, Gigabit Passive Optical Network ) 光网路单元管理及控制接口 ( OMCI , ONU Management and Control Interface )、 TR069或简单网络管理协议( SNMP, Simple Network Management Protocol )等网管协议。 在该预设控制表条目中, 每个组播组地址对应有一 个或多个组播源地址。 组播源地址过滤模式包括两种, 可用 "INCLUDE" 或者 "EXCLUDE" 进行表示, 其中 INCLUDE组播源地址过滤模式为组播 组只允许接收来自与其对应的组播源地址的数据报文; EXCLUDE组播源 地址过滤模式为组播组只允许接收除来自与其对应的组播源地址之外的其 他组播源地址的数据报文。 具体的组播源地址和过滤模式通过网管协议进 行配置。 Referring to FIG. 2, the preset control table entry includes: a multicast group address list, a multicast source address list, and a multicast source address filtering mode list. The preset control table entries are configured through one or more network management protocols, such as OAM (Operation Passage Optical Network) operation, management and maintenance (OAM), Gigabit-free Source Network Protocol (GPON, Gigabit Passive Optical Network) Optical network unit management and control interface (OMCI, ONU Management and Control Interface), TR069 or Simple Network Management Protocol (SNMP) network management protocol. In the preset control table entry, each multicast group address corresponds to one or more multicast source addresses. There are two types of multicast source address filtering modes, which can be represented by "INCLUDE" or "EXCLUDE". The INCLUDE multicast source address filtering mode is that the multicast group can only receive data packets from its corresponding multicast source address. EXCLUDE Multicast source The address filtering mode is that a multicast group can only receive data packets except for multicast source addresses other than its corresponding multicast source address. The specific multicast source address and filtering mode are configured through the network management protocol.
上述组播协议 4艮文版本包括有以下几种: IGMPvl、 IGMPv2、 IGMPv3、 MLDvl 和 MLDv2。 上述实施例, 当组播协议 4艮文版本为 IGMPvl 或 IGMPv2, 则将其转换为 IGMPv3; 当组播协议报文版本为 MLDvl , 则将其 转换为 MLDv2。 版本为 IGMPvl、 IGMPv2和 MLDvl的组播协议报文中只 包含具体的组播组地址, 并不包含具体的组播源地址。 版本为 IGMPv3和 MLDv2的组播协议 ^艮文中包含有具体的组播组地址, 以及与组播组地址对 应的组播源地址。  The above versions of the multicast protocol include the following: IGMPvl, IGMPv2, IGMPv3, MLDvl, and MLDv2. In the above embodiment, when the multicast protocol version is IGMPv1 or IGMPv2, it is converted to IGMPv3. When the version of the multicast protocol packet is MLDv1, it is converted to MLDv2. The multicast protocol packets of the IGMPv1, IGMPv2, and MLDv1 contain only specific multicast group addresses and do not contain specific multicast source addresses. The multicast protocol version IGMPv3 and MLDv2 contains specific multicast group addresses and multicast source addresses corresponding to multicast group addresses.
因此, 当组播协议报文版本不为 IGMPv3/MLDv2, 需将组播协议报文 版本转换为 IGMPv3/MLDv2, 其具体处理如下: 按照接收的组播协议 4艮文 中组播组地址, 在预设控制表条目中查找与其对应的组播源地址和过滤模 式, 并将查找到的组播源地址和过滤模式加入到组播协议报文中。  Therefore, when the multicast protocol packet version is not IGMPv3/MLDv2, the version of the multicast protocol packet is translated to IGMPv3/MLDv2. The specific processing is as follows: According to the received multicast protocol, the multicast group address in the packet is The multicast source address and the filtering mode are searched for in the control table entry, and the discovered multicast source address and filtering mode are added to the multicast protocol packet.
其中, 在预设控制表条目中查找组播源地址和过滤模式, 需根据配置 的组播组地址进行查找, 若在预设控制表条目中查找到与组播协议报文中 的组播组地址匹配的组播源地址和过滤模式, 则将该查找到的组播源地址 和过滤模式加入到组播协议 4艮文中。  The multicast source address and the filtering mode are searched for in the preset control table entry. The multicast group address is searched according to the configured multicast group address. If the multicast group in the multicast protocol packet is found in the preset control table entry. If the multicast source address and the filtering mode of the address match, the discovered multicast source address and filtering mode are added to the multicast protocol.
另夕卜, 当接收的组播协议报文版本为 IGMPv3/MLDv2, 其包含有组播 组地址和组播源地址, 但其组播源地址与预设控制表条目中对应的组播源 地址不一定一致, 不一致时需将组播协议报文中组播源地址更新为预设控 制表条目对应的组播源地址。  In addition, when the version of the received multicast protocol packet is IGMPv3/MLDv2, which includes the multicast group address and the multicast source address, but the multicast source address and the corresponding multicast source address in the preset control table entry. The multicast source address in the multicast protocol packet is updated to the multicast source address corresponding to the preset control table entry.
所述组播组地址为 IP地址, 所述组播源地址为组播源 IP地址。  The multicast group address is an IP address, and the multicast source address is a multicast source IP address.
进一步地, 上述组播报文控制的方法实施例还包括如下处理: 将转换 后的组播协议^艮文或更新后的组播协议"¾文发送给核心网。 进一步地, 上述组播报文控制的方法实施例中, 所述接收用户终端发 送的组播协议报文之后还包括如下处理: 配置本地组播数据转发表。 Further, the foregoing method for controlling the multicast packet further includes the following process: sending the converted multicast protocol or the updated multicast protocol to the core network. Further, in the foregoing method for controlling the multicast packet, the receiving the multicast protocol packet sent by the user terminal further includes the following processing: configuring a local multicast data forwarding table.
所述本地组播数据转发表包括:组播组 IP地址和组播源 IP地址及其对 应的网络接口内容; 和 /或 ,组播组 MAC地址和组播源 MAC地址及其对应 的网络接口内容。  The local multicast data forwarding table includes: a multicast group IP address and a multicast source IP address and corresponding network interface contents; and/or a multicast group MAC address and a multicast source MAC address and corresponding network interfaces thereof content.
进一步地, 上述组播报文控制的方法实施例中, 所述将转换后的组播 协议报文或更新后的组播协议报文发送给核心网之后还包括如下处理: 根 据本地组播数据转发表转发接收的组播数据报文。 即根据接收的组播数据 才艮文中的组播组地址和组播源地址, 在组播数据转发表中查找与该组播组 地址和组播源地址对应的网络接口, 然后将所述组播数据 文转发到对应 的网络接口。  Further, in the foregoing method for controlling the multicast packet, after the converting the multicast protocol packet or the updated multicast protocol packet to the core network, the method further includes the following processing: according to the local multicast data. The forwarding table forwards the received multicast data packet. That is, according to the received multicast data, the multicast group address and the multicast source address in the message, and the network interface corresponding to the multicast group address and the multicast source address are searched in the multicast data forwarding table, and then the group is The broadcast data is forwarded to the corresponding network interface.
其中, 上述查找与组播组地址和组播源地址对应的网络接口, 可以根 据组播数据转发表中的组播组 IP地址和组播源 IP地址进行查找,即查找与 所述组播数据 4艮文中组播组 IP地址和组播源 IP地址对应的网络接口,然后 将组播数据报文转发到对应的网络接口。  The network interface corresponding to the multicast group address and the multicast source address may be searched according to the multicast group IP address and the multicast source IP address in the multicast data forwarding table, that is, the multicast data is searched for. 4) The network interface corresponding to the multicast group IP address and the multicast source IP address, and then forward the multicast data packet to the corresponding network interface.
另外, 上述查找与组播组地址和组播源地址对应的网络接口, 还可以 根据组播数据转发表中的组播组 MAC地址和组播源 MAC地址进行查找, 即查找与所述组播数据 文中组播组 MAC地址和组播源 MAC地址对应的 网络接口, 然后将组播数据报文转发到对应的网络接口。 釆用这种方式查 找对应的网络接口, 需要预先按照一定的映射规则修改组播数据报文中的 源 MAC地址。 然后在组播数据转发表中查找与组播组 MAC地址和修改后 的源 MAC地址对应的网络接口。  In addition, the network interface corresponding to the multicast group address and the multicast source address may be searched according to the multicast group MAC address and the multicast source MAC address in the multicast data forwarding table, that is, the multicast and the multicast are searched. The network interface corresponding to the multicast group MAC address and the multicast source MAC address in the data packet, and then forwards the multicast data packet to the corresponding network interface. To find the corresponding network interface in this way, you need to modify the source MAC address in the multicast data packet according to certain mapping rules. Then, the multicast data forwarding table is searched for a network interface corresponding to the multicast group MAC address and the modified source MAC address.
其中,组播数据 4艮文中包含有组播源 IP地址和修改后的源 MAC地址, 以上所述的映射规则有多种方式,如: 一种是将组播数据报文中源 MAC地 址中的后 23位修改为组播源 IP地址的后 23位; 另一种是将组播数据报文 中源 MAC地址中的后 32位修改为组播源 IP地址的后 32位等。 进一步地, 上述组播^艮文控制的方法实施例中, 所述组播协议 文为: 加入组播组协议^艮文或离开组播组协议 ^艮文。 The multicast data includes the multicast source IP address and the modified source MAC address. The mapping rules described above have multiple modes, such as: One is to use the source MAC address in the multicast data packet. The last 23 bits are changed to the last 23 bits of the multicast source IP address; the other is to multicast data packets. The last 32 bits in the middle source MAC address are changed to the last 32 bits of the multicast source IP address. Further, in the foregoing method for controlling multicast information, the multicast protocol text is: adding a multicast group protocol or leaving a multicast group protocol.
本实施例中, 通过判断用户终端发送的组播协议报文版本是否为 IGMPv3/MLDv2 , 将版本不是 IGMPv3/MLDv2 的组播协议报文转换为 IGMPv3/MLDv2 , 即在组播协议报文加入了指定组播源地址, 确保了组播 数据报文转发的安全性。  In this embodiment, by determining whether the version of the multicast protocol packet sent by the user terminal is IGMPv3/MLDv2, the multicast protocol packet whose version is not IGMPv3/MLDv2 is converted into IGMPv3/MLDv2, that is, the multicast protocol packet is added. Specifies the multicast source address to ensure the security of multicast data packet forwarding.
参见图 3 , 提出本发明的组播报文控制的装置 10—实施例, 其包括: 第一接收模块 11、 第一判断模块 12、 第一转换模块 13和更新模块 14。 其 中, 第一接收模块 11 , 用于接收用户终端发送的组播协议报文。 第一判断 模块 12, 用于判断所述组播协议报文版本是否 IGMPv3/MLDv2。 第一转换 模块 13 , 用于当组播协议报文版本不为 IGMPv3/MLDv2, 根据预设控制表 条目将组播协议报文版本转换为 IGMPv3/MLDv2。 更新模块 14, 用于当组 播协议报文版本为 IGMPv3/MLDv2, 根据预设控制表条目更新组播协议报 文中的组播源地址。  Referring to FIG. 3, an apparatus 10 for implementing multicast packet control according to the present invention includes: a first receiving module 11, a first determining module 12, a first converting module 13, and an updating module 14. The first receiving module 11 is configured to receive a multicast protocol packet sent by the user terminal. The first determining module 12 is configured to determine whether the version of the multicast protocol packet is IGMPv3/MLDv2. The first conversion module 13 is configured to convert the multicast protocol packet version to IGMPv3/MLDv2 according to the preset control table entry when the multicast protocol packet version is not IGMPv3/MLDv2. The update module 14 is configured to update the multicast source address in the multicast protocol packet according to the preset control table entry when the version of the multicast protocol packet is IGMPv3/MLDv2.
参见图 2, 所述预设控制表条目包括有: 组播组地址列表、 组播源地址 列表、 组播源地址过滤模式列表。 在该预设控制表条目中, 每个组播组地 址对应有一个或多个组播源地址。 组播源地址过滤模式包括两种, 可用 "INCLUDE" 或者 "EXCLUDE" 进行表示, 其中 INCLUDE组播源地址 过滤模式为组播组只允许接收来自与其对应的组播源地址的数据报文; EXCLUDE组播源地址过滤模式为组播组只允许接收除来自与其对应的组 播源地址之外的其他组播源地址的数据报文。 具体的组播源地址和过滤模 式通过网管协议进行配置。  Referring to FIG. 2, the preset control table entry includes: a multicast group address list, a multicast source address list, and a multicast source address filtering mode list. In the preset control table entry, each multicast group address corresponds to one or more multicast source addresses. There are two types of multicast source address filtering modes, which can be represented by "INCLUDE" or "EXCLUDE". The INCLUDE multicast source address filtering mode is that the multicast group can only receive data packets from its corresponding multicast source address. EXCLUDE The multicast source address filtering mode is that a multicast group can only receive data packets except for multicast source addresses other than its corresponding multicast source address. The specific multicast source address and filtering mode are configured through the network management protocol.
上述组播协议 4艮文版本包括有以下几种: IGMPvl、 IGMPv2、 IGMPv3、 MLDvl 和 MLDv2。 上述实施例, 当组播协议 4艮文版本为 IGMPvl 或 IGMPv2, 则将其转换为 IGMPv3; 当组播协议报文版本为 MLDvl , 则将其 转换为 MLDv2。 版本为 IGMPvl、 IGMPv2和 MLDvl的组播协议报文中只 包含具体的组播组地址, 并不包含具体的组播源地址。 版本为 IGMPv3和 MLDv2的组播协议 ^艮文中包含有具体的组播组地址, 以及与组播组地址对 应的组播源地址。 The above versions of the multicast protocol include the following: IGMPvl, IGMPv2, IGMPv3, MLDvl, and MLDv2. In the above embodiment, when the multicast protocol version is IGMPvl or IGMPv2 converts it to IGMPv3. When the version of the multicast protocol packet is MLDv1, it is converted to MLDv2. The multicast protocol packets of the IGMPv1, IGMPv2, and MLDv1 contain only specific multicast group addresses and do not contain specific multicast source addresses. The multicast protocol version IGMPv3 and MLDv2 contains a specific multicast group address and a multicast source address corresponding to the multicast group address.
因此, 当第一接收模块 11 接收的组播协议报文版本不为 IGMPv3/MLDv2 , 需通过第一转换模块 13 将组播协议报文版本转换为 IGMPv3/MLDv2, 其具备处理如下: 按照接收的组播协议^艮文中的组播组 地址, 在预设控制表条目中查找与其对应的组播源地址和过滤模式, 并将 查找到的组播源地址和过滤模式加入到组播协议报文中。  Therefore, when the version of the multicast protocol packet received by the first receiving module 11 is not IGMPv3/MLDv2, the version of the multicast protocol packet is converted to IGMPv3/MLDv2 by the first converting module 13, and the processing is as follows: The multicast group address in the multicast protocol is searched for the multicast source address and filtering mode in the preset control table entry, and the discovered multicast source address and filtering mode are added to the multicast protocol packet. in.
其中在预设控制表条目中查找组播源地址和过滤模式, 需根据配置的 组播组地址进行查找, 若在预设控制表条目中查找到与组播协议报文中的 组播组地址匹配的组播源地址和过滤模式, 则将该查找到的组播源地址和 过滤模式加入到组播协议报文中。  The multicast source address and the filtering mode are searched for in the preset control table entry. The multicast group address is searched according to the configured multicast group address. If the multicast group address in the multicast protocol packet is found in the preset control table entry. The matched multicast source address and filtering mode are added to the multicast protocol packet.
另夕卜,当第一接收模块 11接收的组播协议报文版本为 IGMPv3/MLDv2, 其包含有组播组地址和组播源地址, 但其组播源地址与预设控制表条目中 对应的组播源地址不一定一致, 需将组播协议 ^艮文中组播源地址更新为预 设控制表条目对应的组播源地址。  In addition, the version of the multicast protocol packet received by the first receiving module 11 is IGMPv3/MLDv2, which includes the multicast group address and the multicast source address, but the multicast source address corresponds to the preset control table entry. The multicast source address is not necessarily the same. The multicast source address in the multicast protocol is updated to the multicast source address corresponding to the preset control table entry.
所述组播组地址为 IP地址, 所述组播源地址为组播源 IP地址。  The multicast group address is an IP address, and the multicast source address is a multicast source IP address.
进一步地, 参见图 4, 上述组播报文控制的装置 10实施例还包括第一 发送模块 15。 第一发送模块 15 , 用于将转换后的组播协议报文或更新后的 组播协议报文发送给核心网。  Further, referring to FIG. 4, the apparatus 10 for controlling the multicast packet further includes a first sending module 15. The first sending module 15 is configured to send the converted multicast protocol packet or the updated multicast protocol packet to the core network.
进一步地, 参见图 5 , 上述组播报文控制的装置 10实施例还包括配置 模块 16。 配置模块 16, 用于配置本地组播数据转发表。  Further, referring to FIG. 5, the apparatus 10 for controlling the multicast packet further includes a configuration module 16. The configuration module 16 is configured to configure a local multicast data forwarding table.
所述本地组播数据转发表包括:组播组 IP地址和组播源 IP地址及其对 应的网络接口内容; The local multicast data forwarding table includes: a multicast group IP address and a multicast source IP address, and a pair thereof The content of the network interface;
另外, 本地组播数据转发表还可以是组播组 MAC地址和组播源 MAC 地址及其对应的网络接口内容。  In addition, the local multicast data forwarding table may also be a multicast group MAC address and a multicast source MAC address and corresponding network interface contents.
进一步地, 参见图 6, 上述组播报文控制的装置 10实施例还包括转发 模块 17。 转发模块 17, 用于根据本地组播数据转发表转发接收的组播数据 报文。 即转发模块 17根据第一接收模块 11接收的组播数据报文中的组播 组地址和组播源地址, 在组播数据转发表中查找与该组播源地址和组播源 地址对应的网络接口, 然后将所述组播数据报文转发到对应的网络接口。  Further, referring to FIG. 6, the apparatus 10 for controlling multicast packet control further includes a forwarding module 17. The forwarding module 17 is configured to forward the received multicast data packet according to the local multicast data forwarding table. The forwarding module 17 searches for the multicast source address and the multicast source address in the multicast data forwarding table according to the multicast group address and the multicast source address in the multicast data packet received by the first receiving module 11. The network interface then forwards the multicast data message to the corresponding network interface.
其中, 上述查找与组播组地址和组播源地址对应的网络接口, 可以根 据组播数据转发表中的组播组 IP地址和组播源 IP地址进行查找,即查找与 所述组播数据 4艮文中组播组 IP地址和组播源 IP地址对应的网络接口,然后 将组播数据报文转发到对应的网络接口。  The network interface corresponding to the multicast group address and the multicast source address may be searched according to the multicast group IP address and the multicast source IP address in the multicast data forwarding table, that is, the multicast data is searched for. 4) The network interface corresponding to the multicast group IP address and the multicast source IP address, and then forward the multicast data packet to the corresponding network interface.
另外, 上述查找与组播组地址和组播源地址对应的网络接口, 还可以 根据组播数据转发表中的组播组 MAC地址和组播源 MAC地址进行查找, 即查找与所述组播数据 文中组播组 MAC地址和组播源 MAC地址对应的 网络接口, 然后将组播数据报文转发到对应的网络接口。 釆用这种方式查 找对应的网络接口, 需要预先按照一定的映射规则修改组播数据报文中的 源 MAC地址。 然后在组播数据转发表中查找与组播组 MAC地址和修改后 的源 MAC地址对应的网络接口。  In addition, the network interface corresponding to the multicast group address and the multicast source address may be searched according to the multicast group MAC address and the multicast source MAC address in the multicast data forwarding table, that is, the multicast and the multicast are searched. The network interface corresponding to the multicast group MAC address and the multicast source MAC address in the data packet, and then forwards the multicast data packet to the corresponding network interface. To find the corresponding network interface in this way, you need to modify the source MAC address in the multicast data packet according to certain mapping rules. Then, the multicast data forwarding table is searched for a network interface corresponding to the multicast group MAC address and the modified source MAC address.
其中,组播数据 4艮文中包含有组播源 IP地址和修改后的源 MAC地址, 以上所述的映射规则有多种方式, 如: 一种是将组播数据报文中的源 MAC 地址中的后 23位修改为组播源 IP地址的后 23位; 另一种是将组播数据报 文中的源 MAC地址中的后 32位爹改为组播源 IP地址的后 32位等。  The multicast data includes the multicast source IP address and the modified source MAC address. The mapping rules described above have multiple modes, such as: One is to source the MAC address in the multicast data packet. The last 23 bits are changed to the last 23 bits of the multicast source IP address. The other is to change the last 32 bits of the source MAC address in the multicast data packet to the last 32 bits of the multicast source IP address. .
进一步地, 上述组播报文控制的装置 10实施例中, 所述组播协议报文 为: 加入组播组协议 ^艮文或离开组播组协议 ^艮文。 本实施例中, 通过判断用户终端发送的组播协议报文版本是否为Further, in the embodiment of the apparatus 10 for controlling the multicast packet, the multicast protocol packet is: adding a multicast group protocol or leaving a multicast group protocol. In this embodiment, it is determined whether the version of the multicast protocol packet sent by the user terminal is
IGMPv3/MLDv2 , 将版本不是 IGMPv3/MLDv2 的组播协议报文转换为 IGMPv3/MLDv2 , 即在组播协议报文加入了指定组播源地址, 确保了组播 数据报文转发的安全性。 IGMPv3/MLDv2 converts the multicast protocol packets whose version is not IGMPv3/MLDv2 to IGMPv3/MLDv2. That is, the multicast source address is added to the multicast protocol packet to ensure the security of multicast data packet forwarding.
参见图 7,提出本发明的另一组播报文控制的方法一实施例, 其包括步 骤:  Referring to FIG. 7, an embodiment of another method for controlling multicast packets according to the present invention includes the following steps:
步骤 S201、 接收组播组查询协议 4艮文;  Step S201: Receive a multicast group query protocol.
步骤 S202、 判断是否存在加入组播组的用户终端;  Step S202: Determine whether there is a user terminal that joins the multicast group.
步骤 S203、 在存在加入组播组的用户终端时, 判断组播组查询协议报 文版本与用户终端发送的加入组播组协议报文版本是否一致;  Step S203: When there is a user terminal that joins the multicast group, determine whether the version of the multicast group query protocol packet is consistent with the version of the multicast group protocol packet sent by the user terminal.
步骤 S204、 在组播组查询协议 ^艮文版本与用户终端发送的加入组播组 协议 文版本不一致时, 将组播组查询协议 文版本转换为所述加入组播 组协议 4艮文的版本;  Step S204: When the multicast group query protocol version is inconsistent with the version of the multicast group protocol text sent by the user terminal, the multicast group query protocol version is converted to the version of the multicast group protocol. ;
步骤 S205、 将转换后的组播组查询协议报文发送给用户终端。  Step S205: Send the converted multicast group query protocol packet to the user terminal.
上述组播查询协议报文版本包括有以下几种: IGMPvl、 IGMPv2、 IGMPv3、 MLDvl和 MLDv2。  The versions of the multicast query protocol packets include the following: IGMPvl, IGMPv2, IGMPv3, MLDvl, and MLDv2.
进一步地, 上述另一组播报文控制的方法实施例中, 在所述判断组播 组查询协议 4艮文版本与用户终端发送的加入组播组协议 ^艮文版本是否一致 之后还包括如下处理: 若组播组查询协议 ^艮文版本与用户终端发送的加入 组播组协议 4艮文版本一致, 将组播组查询协议 4艮文发送给用户终端。  Further, in another embodiment of the method for controlling the multicast packet, the method further includes: after determining whether the version of the multicast group query protocol is the same as the version of the multicast group protocol sent by the user terminal, If the version of the multicast group query protocol is the same as the version of the multicast group protocol that is sent by the user terminal, the multicast group query protocol is sent to the user terminal.
进一步地, 上述另一组播报文控制的方法实施例中, 在所述判断组播 组查询协议 4艮文版本与用户终端发送的加入组播组协议 ^艮文版本是否一致 之后还包括如下处理:  Further, in another embodiment of the method for controlling the multicast packet, the method further includes: after determining whether the version of the multicast group query protocol is the same as the version of the multicast group protocol sent by the user terminal, deal with:
若组播组查询协议 ^艮文版本与部分用户终端发送的加入组播组协议才艮 文版本一致, 将组播组查询协议 ^艮文版本转换为与组播组查询协议 ^艮文版 本不一致的加入组播组协议 ^艮文版本; 将转换前的组播组查询 ^艮文发送给 加入组播组协议 ^艮文版本与组播组查询协议 ^艮文版本一致的用户终端; 将 转换后的组播组查询协议 ^艮文发送给加入组播组协议 ^艮文版本与组播组查 询协议 ^艮文版本不一致的用户终端。 If the version of the multicast group query protocol is the same as the version of the multicast group protocol sent by some user terminals, the multicast group query protocol version is converted to the multicast group query protocol. The inconsistent version of the multicast group protocol is added; the multicast group query before the conversion is sent to the user terminal that is added to the multicast group protocol and the version of the multicast group query protocol is the same; The converted multicast group query protocol is sent to the user terminal that is not in the version of the multicast group protocol and the version of the multicast group query protocol.
当用户终端发送的与组播组查询协议 ^艮文版本不一致的加入组播组协 议报文版本有多种, 则将组播组查询协议报文转换为所述多种版本, 并将 转换的多种版本的组播组查询协议 ^艮文发送给对应的多个不同的用户终 端。  If the version of the multicast group protocol packet sent by the user terminal that is inconsistent with the multicast group query protocol version is different, the multicast group query protocol packet is converted into the multiple versions, and the converted version is converted. Multiple versions of the multicast group query protocol are sent to a corresponding plurality of different user terminals.
本实施例中, 通过当用户终端发送的加入组播组协议 ^艮文版本与组播 查询协议^艮文版本不一致时, 转换组播组查询协议 ^艮文版本, 并将转换前 的组播组查询协议 4艮文和转换后的组播组查询协议 ^艮文发送给对应的用户 终端, 保证每个用户终端接收对应的组播组查询协议 ^艮文, 保证了用户终 端组播业务的兼容。  In this embodiment, when the version of the multicast group protocol sent by the user terminal is inconsistent with the version of the multicast query protocol, the version of the multicast group query protocol is converted, and the multicast before the conversion is performed. The group query protocol 4艮 and the converted multicast group query protocol are sent to the corresponding user terminals, ensuring that each user terminal receives the corresponding multicast group query protocol, ensuring the multicast service of the user terminal. compatible.
参见图 8 , 提出本发明的另一组播报文控制的装置 20, 其包括: 第二 接收模块 21、 第二判断模块 22、 第二转换模块 23和第二发送模块 24。 其 中, 第二接收模块 21 , 用于接收组播组查询协议报文。 第二判断模块 22, 用于判断组播组是否存在用户终端; 以及在组播组存在用户终端时, 判断 组播组查询协议 4艮文版本与用户终端发送的加入组播组协议 ^艮文版本是否 一致。 第二转换模块 23 , 用于在组播组查询协议报文版本与用户终端发送 的加入组播组协议 4艮文版本不一致时, 将组播组查询协议 文版本转换为 所述加入组播组协议报文的版本。 第二发送模块 24, 用于将转换后的组播 组查询协议 4艮文发送给用户终端。  Referring to FIG. 8, another apparatus for controlling multicast packet according to the present invention is provided, which includes: a second receiving module 21, a second determining module 22, a second converting module 23, and a second transmitting module 24. The second receiving module 21 is configured to receive a multicast group query protocol packet. The second judging module 22 is configured to determine whether the user group exists in the multicast group, and when the user group exists in the multicast group, determine the version of the multicast group query protocol and the join multicast group protocol sent by the user terminal. The version is consistent. The second conversion module 23 is configured to convert the version of the multicast group query protocol to the joined multicast group when the version of the multicast group query protocol packet is inconsistent with the version of the multicast group protocol protocol message sent by the user terminal. The version of the protocol message. The second sending module 24 is configured to send the converted multicast group query protocol to the user terminal.
上述组播查询协议报文版本包括有以下几种: IGMPvl、 IGMPv2、 IGMPv3、 MLDvl和 MLDv2。  The versions of the multicast query protocol packets include the following: IGMPvl, IGMPv2, IGMPv3, MLDvl, and MLDv2.
进一步地, 上述另一组播报文控制的装置 20实施例中, 所述第二发送 模块 24, 还用于在组播组查询协议 ^艮文版本与用户终端发送的加入组播组 协议 4艮文版本一致时, 将组播组查询协议 4艮文发送给用户终端。 Further, in another embodiment of the apparatus 20 for controlling the multicast packet, the second sending The module 24 is further configured to send the multicast group query protocol message to the user terminal when the version of the multicast group query protocol is the same as the version of the multicast group protocol that is sent by the user terminal.
进一步地, 上述另一组播报文控制的装置 20实施例中, 所述第二转换 模块 23 , 还用于在组播组查询协议 ^艮文版本与部分用户终端发送的加入组 播组协议^艮文版本一致时, 将组播组查询协议 文版本转换为与组播组查 询协议 4艮文版本不一致的加入组播组协议 "^文版本。所述第二发送模块 24, 还用于将转换前的组播组查询 4艮文发送给加入组播组协议 ^艮文版本与组播 组查询协议 4艮文版本一致的用户终端; 以及将转换后的组播组查询协议才艮 文发送给加入组播组协议 4艮文版本与组播组查询协议 4艮文版本不一致的用 户终端。  Further, in the embodiment of the apparatus 20 for controlling another multicast packet, the second conversion module 23 is further configured to join the multicast group protocol sent by the multicast group query protocol version and some user terminals. If the versions of the multicast group are the same, the version of the multicast group query protocol is converted to the version of the multicast group protocol that is inconsistent with the version of the multicast group query protocol. The second sending module 24 is also used to Sending the multicast group query before the conversion to the user terminal that is added to the multicast group protocol and the version of the multicast group query protocol; and the converted multicast group query protocol The user terminal that is sent to the multicast group protocol version 4 is inconsistent with the version of the multicast group query protocol.
当用户终端发送的与组播组查询协议 4艮文版本不一致的加入组播组协 议报文版本有多种, 则第二转换模块 23将组播组查询协议报文转换为所述 多种版本, 并通过第二发送模块 24将转换的多种版本的组播组查询协议报 文发送给对应的多个不同的用户终端。  When the version of the multicast group protocol packet sent by the user terminal that is inconsistent with the version of the multicast group query protocol is different, the second conversion module 23 converts the multicast group query protocol packet into the multiple versions. And transmitting, by the second sending module 24, the converted multiple versions of the multicast group query protocol message to the corresponding multiple user terminals.
本实施例中, 当用户终端发送的加入组播组协议 ^艮文版本与组播查询 协议 文版本不一致时, 转换组播组查询协议 ^艮文版本, 并将转换前的组 播组查询协议 4艮文和转换后的组播组查询协议 4艮文发送给对应的用户终 端, 保证了每个用户终端接收对应的组播组查询协议 ^艮文, 保证了用户终 端组播业务的兼容。  In this embodiment, when the version of the multicast group protocol that is sent by the user terminal is inconsistent with the version of the multicast query protocol, the version of the multicast group query protocol is translated, and the multicast group query protocol before the conversion is performed. The message and the translated multicast group query protocol are sent to the corresponding user terminals, ensuring that each user terminal receives the corresponding multicast group query protocol and ensures the compatibility of the user terminal's multicast service.
以上所述的组播报文控制的装置为光接入网设备, 其可为光线路终端 ( OLT )或光网络单元(ONU )。  The device for controlling the multicast packet mentioned above is an optical access network device, which may be an optical line terminal (OLT) or an optical network unit (ONU).
本发明的以上组播 文控制的方法实施例和装置实施例, 通过将组播 协议报文在发送给核心网前进行转换, 确保了用户终端接收预设组播源的 组播数据报文, 提高了组播业务的安全性; 同时将组播协议报文在发送给 用户终端前进行转换, 转换为用户终端能够正确处理的协议版本格式, 提 高了用户终端组播业务的兼容性。 The method and the device embodiment of the foregoing multicast message control according to the present invention perform the conversion of the multicast protocol packet before being sent to the core network, so that the user terminal receives the multicast data packet of the preset multicast source. The security of the multicast service is improved. At the same time, the multicast protocol packet is converted before being sent to the user terminal, and converted into a protocol version format that can be correctly processed by the user terminal. The compatibility of the user terminal multicast service is high.
应当理解的是, 以上仅为本发明的优选实施例, 不能因此限制本发明 的专利范围, 凡是利用本发明说明书及附图内容所作的等效结构或等效流 程变换, 或直接或间接运用在其他相关的技术领域, 均同理包括在本发明 的专利保护范围内。  It should be understood that the above is only a preferred embodiment of the present invention, and thus the scope of the invention is not limited thereby, and the equivalent structure or equivalent process transformations made by the description of the invention and the drawings are used directly or indirectly. Other related technical fields are equally included in the scope of patent protection of the present invention.

Claims

权利要求书 Claim
1、 一种组播报文控制的方法, 其特征在于, 所述方法包括: 接收用户终端发送的组播协议报文;  A multicast packet control method, the method includes: receiving a multicast protocol packet sent by a user terminal;
在所述组播协议报文版本不是 IGMPv3/MLDv2时, 根据预设控制表条 目将组播协议报文版本转换为 IGMPv3/MLDv2; 是时, 根据预设控制表条 目更新组播协议 4艮文中的组播源地址。  When the version of the multicast protocol packet is not IGMPv3/MLDv2, the version of the multicast protocol packet is converted to IGMPv3/MLDv2 according to the preset control table entry; when yes, the multicast protocol is updated according to the preset control table entry. Multicast source address.
2、 根据权利要求 1所述的组播报文控制的方法, 其特征在于, 所述方 法还包括:  The method for controlling the multicast packet according to claim 1, wherein the method further comprises:
将转换后的组播协议^艮文或更新后的组播协议^艮文发送给核心网。 The converted multicast protocol or the updated multicast protocol is sent to the core network.
3、 根据权利要求 1或 2所述的组播报文控制的方法, 其特征在于, 所 述接收用户终端发送的组播协议报文之后还包括: The multicast packet control method according to claim 1 or 2, further comprising: after receiving the multicast protocol packet sent by the user terminal,
配置本地组播数据转发表。  Configure a local multicast data forwarding table.
4、 根据权利要求 3所述的组播报文控制的方法, 其特征在于, 所述将 转换后的组播协议报文或更新后的组播协议报文发送给核心网之后还包 括:  The method for controlling the multicast packet according to claim 3, wherein after the sending the converted multicast protocol message or the updated multicast protocol message to the core network, the method further includes:
根据本地组播数据转发表转发接收的组播数据报文。  The received multicast data packet is forwarded according to the local multicast data forwarding table.
5、 根据权利要求 4所述的组播报文控制的方法, 其特征在于, 所述组 播协议 4艮文为: 加入组播组协议^艮文或离开组播组协议 4艮文。  The multicast packet control method according to claim 4, wherein the multicast protocol is: adding a multicast group protocol or leaving a multicast group protocol.
6、 一种组播报文控制的装置, 其特征在于, 所述装置包括: 第一接收模块, 用于接收用户终端发送的组播协议报文;  A device for controlling multicast packets, the device includes: a first receiving module, configured to receive a multicast protocol packet sent by a user terminal;
第一判断模块, 用 于判断所述组播协议报文版本是否为 IGMPv3/MLDv2;  a first determining module, configured to determine whether the version of the multicast protocol packet is IGMPv3/MLDv2;
第一转换模块, 用于在组播协议报文版本不为 IGMPv3/MLDv2时, 根 据预设控制表条目将组播协议报文版本转换为 IGMPv3/MLDv2;  The first conversion module is configured to convert the version of the multicast protocol message to IGMPv3/MLDv2 according to the preset control table entry when the version of the multicast protocol packet is not IGMPv3/MLDv2;
更新模块, 用于在组播协议报文版本为 IGMPv3/MLDv2时, 根据预设 控制表条目更新组播协议 文中的组播源地址。 The update module is configured to be used according to the preset when the version of the multicast protocol packet is IGMPv3/MLDv2. The control table entry updates the multicast source address in the multicast protocol.
7、 根据权利要求 6所述的组播报文控制的装置, 其特征在于, 所述装 置还包括:  The device for controlling the multicast packet according to claim 6, wherein the device further comprises:
第一发送模块, 用于将转换后的组播协议报文或更新后的组播协议报 文发送给核心网。  The first sending module is configured to send the converted multicast protocol message or the updated multicast protocol message to the core network.
8、 根据权利要求 6或 7所述的组播报文控制的装置, 其特征在于, 所 述装置还包括:  The device for controlling the multicast packet according to claim 6 or 7, wherein the device further comprises:
配置模块, 用于配置本地组播数据转发表。  A configuration module is configured to configure a local multicast data forwarding table.
9、 根据权利要求 8所述的组播报文控制的装置, 其特征在于, 所述装 置还包括:  The device for controlling the multicast packet according to claim 8, wherein the device further comprises:
转发模块, 用于根据本地组播数据转发表转发接收的组播数据报文。 The forwarding module is configured to forward the received multicast data packet according to the local multicast data forwarding table.
10、 根据权利要求 9所述的组播报文控制的装置, 其特征在于, 所述 组播协议^艮文为: 加入组播组协议^艮文或离开组播组协议 4艮文。 The apparatus for controlling multicast packets according to claim 9, wherein the multicast protocol is: adding a multicast group protocol or leaving a multicast group protocol.
11、 一种组播报文控制的方法, 其特征在于, 包括步骤:  A method for controlling multicast packets, which is characterized by the steps of:
接收组播组查询协议 4艮文;  Receive multicast group query protocol 4艮文;
存在加入组播组的用户终端时, 判断确定组播组查询协议 ^艮文版本与 用户终端发送的加入组播组协议报文版本是否一致; 不一致时, 将组播组 查询协议^艮文版本转换为所述加入组播组协议 4艮文的版本;  When there is a user terminal that joins the multicast group, it is determined whether the version of the multicast group query protocol is the same as the version of the multicast group protocol packet sent by the user terminal. If the version is different, the multicast group query protocol is used. Converted to the version of the multicast group protocol that is added to the multicast group protocol;
将转换后的组播组查询协议报文发送给用户终端。  The translated multicast group query protocol packet is sent to the user terminal.
12、 根据权利要求 11所述的组播报文控制的方法, 其特征在于, 所述 判断组播组查询协议 4艮文版本与用户终端发送的加入组播组协议 文版本 是否一致之后还包括:  The method for controlling the multicast packet according to claim 11, wherein the determining whether the version of the multicast group query protocol is the same as the version of the protocol group that is sent by the user terminal is :
一致时, 将组播组查询协议 4艮文发送给用户终端。  When the packets are consistent, the multicast group query protocol is sent to the user terminal.
13、 根据权利要求 11所述的组播报文控制的方法, 其特征在于, 所述 判断组播组查询协议 4艮文版本与用户终端发送的加入组播组协议 文版本 是否一致之后还包括: The multicast packet control method according to claim 11, wherein the determining the version of the multicast group query protocol and the version of the multicast group protocol message sent by the user terminal are as follows: Whether it is consistent or not includes:
部分一致时, 将组播组查询协议 文版本转换为与组播组查询协议才艮 文版本不一致的加入组播组协议 ^艮文版本;  When the packets are partially consistent, the multicast group query protocol version is converted to the multicast group protocol that is inconsistent with the version of the multicast group query protocol.
将转换前的组播组查询 ^艮文发送给加入组播组协议 ^艮文版本与组播组 查询协议 ^艮文版本一致的用户终端;  The multicast group query before the conversion is sent to the user group that joins the multicast group protocol. The version of the message is the same as that of the multicast group.
将转换后的组播组查询协议 ^艮文发送给加入组播组协议 ^艮文版本与组 播组查询协议 ^艮文版本不一致的用户终端。  The translated multicast group query protocol is sent to the user group that joins the multicast group protocol. The version of the multicast group and the multicast group query protocol are inconsistent.
14、 一种组播报文控制的装置, 其特征在于, 所述装置包括: 第二接收模块, 用于接收组播组查询协议报文;  A device for controlling multicast packets, the device includes: a second receiving module, configured to receive a multicast group query protocol packet;
第二判断模块, 用于判断是否存在加入组播组的用户终端; 以及在存 在加入组播组的用户终端时, 判断组播组查询协议 ^艮文版本与用户终端发 送的加入组播组协议报文版本是否一致;  The second judging module is configured to determine whether there is a user terminal that joins the multicast group; and when there is a user terminal that joins the multicast group, determine the version of the multicast group query protocol and the join multicast group protocol sent by the user terminal. Whether the packet version is consistent;
第二转换模块, 用于在组播组查询协议报文版本与用户终端发送的加 入组播组协议 ^艮文版本不一致时, 将组播组查询协议 文版本转换为所述 加入组播组协议 4艮文的版本;  The second conversion module is configured to convert the version of the multicast group query protocol to the join multicast group protocol when the version of the multicast group query protocol packet is inconsistent with the version of the join multicast group protocol sent by the user terminal. 4 versions of the text;
第二发送模块, 用于将转换后的组播组查询协议报文发送给用户终端。 The second sending module is configured to send the converted multicast group query protocol packet to the user terminal.
15、 根据权利要求 14所述的组播报文控制的装置, 其特征在于, 所述第二发送模块, 还用于在组播组查询协议报文版本与用户终端发 送的加入组播组协议 ^艮文版本一致时, 将组播组查询协议 ^艮文发送给用户 终端。 The apparatus for controlling the multicast packet according to claim 14, wherein the second sending module is further configured to: join the multicast group protocol sent by the user terminal in the version of the multicast group query protocol message When the versions are the same, the multicast group query protocol is sent to the user terminal.
16、 根据权利要求 14所述的组播报文控制的装置, 其特征在于, 所述第二转换模块, 还用于在组播组查询协议报文版本与部分用户终 端发送的加入组播组协议 文版本一致时, 将组播组查询协议 ^艮文版本转 换为与组播组查询协议^艮文版本不一致的加入组播组协议 ^艮文版本;  The device for controlling the multicast packet according to claim 14, wherein the second conversion module is further configured to: join the multicast group sent by the version of the multicast group query protocol message and some user terminals. When the version of the protocol is the same, the version of the multicast group query protocol is converted to the version of the multicast group protocol that is inconsistent with the version of the multicast group query protocol.
所述第二发送模块, 还用于将转换前的组播组查询报文发送给加入组 播组协议报文版本与组播组查询协议报文版本一致的用户终端; 以及将转 换后的组播组查询协议报文发送给加入组播组协议报文版本与组播组查询 协议 4艮文版本不一致的用户终端。 The second sending module is further configured to send the multicast group query message before the conversion to the joining group. The user terminal whose version is the same as the multicast group query protocol packet version; and the translated multicast group query protocol packet is sent to the multicast group protocol packet version and the multicast group query protocol. User terminals with inconsistent versions.
PCT/CN2011/073607 2010-11-19 2011-05-03 Multicast message control method and apparatus WO2012065407A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010551675.7 2010-11-19
CN201010551675.7A CN102468966B (en) 2010-11-19 2010-11-19 Multicast message control method and device

Publications (1)

Publication Number Publication Date
WO2012065407A1 true WO2012065407A1 (en) 2012-05-24

Family

ID=46072176

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/073607 WO2012065407A1 (en) 2010-11-19 2011-05-03 Multicast message control method and apparatus

Country Status (2)

Country Link
CN (1) CN102468966B (en)
WO (1) WO2012065407A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791318A (en) * 2016-04-29 2016-07-20 浙江宇视科技有限公司 Multicast safety access apparatus and method thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175068A (en) * 2006-11-02 2008-05-07 上海未来宽带技术及应用工程研究中心有限公司 Multi-version multicast protocol amalgamation method
CN101374069A (en) * 2007-08-25 2009-02-25 华为技术有限公司 Method, system and equipment for transforming multicast packet
US20090161674A1 (en) * 2007-12-21 2009-06-25 Alcatel Lucent Method and tool for IP multicast network address translation (MNAT)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4347497B2 (en) * 2000-04-03 2009-10-21 株式会社日立製作所 Communication control apparatus and packet conversion method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101175068A (en) * 2006-11-02 2008-05-07 上海未来宽带技术及应用工程研究中心有限公司 Multi-version multicast protocol amalgamation method
CN101374069A (en) * 2007-08-25 2009-02-25 华为技术有限公司 Method, system and equipment for transforming multicast packet
US20090161674A1 (en) * 2007-12-21 2009-06-25 Alcatel Lucent Method and tool for IP multicast network address translation (MNAT)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791318A (en) * 2016-04-29 2016-07-20 浙江宇视科技有限公司 Multicast safety access apparatus and method thereof
CN105791318B (en) * 2016-04-29 2019-04-12 浙江宇视科技有限公司 A kind of security of multicast access device and method

Also Published As

Publication number Publication date
CN102468966B (en) 2014-12-31
CN102468966A (en) 2012-05-23

Similar Documents

Publication Publication Date Title
US9426093B2 (en) Multicast interworking systems and methods
EP1540884B1 (en) Mapping of a source specific multicast group address to a source address
US7233987B2 (en) System and method for converting requests between different multicast protocols in a communication network
WO2009026852A1 (en) Method, system and device for switching multicast message
JP2008079175A (en) Frame transfer system
WO2009132568A1 (en) Control method for quality of service and network device
JP5256118B2 (en) Information distribution system and information distribution method
WO2012000242A1 (en) Method, system and device for implementing multicast preview
WO2013083052A1 (en) Method, device, and system for acquiring multicast address
CN102098166A (en) Gigabit passive optical network system and controllable multicast implementation method thereof
US20100322420A1 (en) Duplicate Address Detection Proxy in Edge Devices
CN101795223B (en) Multicast security control method, system and transmission node
US8584170B2 (en) System and method of internet group management for multicast push in passive access networks
WO2012068854A1 (en) Method and apparatus for updating media access control (mac) address
EP2567510B1 (en) Source selection by routers
WO2012065407A1 (en) Multicast message control method and apparatus
CN101827037A (en) Multicast data stream sending method, device and two-layer switching equipment
CN102149026A (en) Multicast realizing method and system
EP2239892B1 (en) Method and device for realizing a centralized control on iptv service
US20100135298A1 (en) Method and system for providing source specific multicast service on ethernet network
CN103095585A (en) Multicast control flow information intercommunication method and system between IPv4 and IPv6
JP2009021940A (en) Bridge apparatus
WO2016070725A1 (en) Method and device for realizing vlan n:1 conversion on dhcp broadcast interaction packet
KR101220177B1 (en) Method and System for Providing Source Specific Multicast Service in Ethernet
WO2013086873A1 (en) Media playing method and device

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

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

Country of ref document: EP

Kind code of ref document: A1