WO2012139448A1 - 一种生成组播转发表、组播传输的方法及装置 - Google Patents

一种生成组播转发表、组播传输的方法及装置 Download PDF

Info

Publication number
WO2012139448A1
WO2012139448A1 PCT/CN2012/072337 CN2012072337W WO2012139448A1 WO 2012139448 A1 WO2012139448 A1 WO 2012139448A1 CN 2012072337 W CN2012072337 W CN 2012072337W WO 2012139448 A1 WO2012139448 A1 WO 2012139448A1
Authority
WO
WIPO (PCT)
Prior art keywords
interface
multicast
outbound
inbound
logical
Prior art date
Application number
PCT/CN2012/072337
Other languages
English (en)
French (fr)
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 WO2012139448A1 publication Critical patent/WO2012139448A1/zh

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/1886Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with traffic restrictions for efficiency improvement, e.g. involving subnets or subdomains

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and apparatus for generating a multicast forwarding table and multicast transmission. Background technique
  • IP Multicast refers to the sending of data packets to a certain subset of the network in the network. This determined subset is called a multicast group.
  • the basic idea of IP multicast is as follows: The source host sends only one data. The destination address in this data is the multicast group address. All receiving hosts in the multicast group can receive the same data copy, and only the multicast group. The host inside can receive the data, and other hosts in the network cannot receive it.
  • the physical port of the inbound interface is compared with the physical port of the outbound interface. , the multicast data is discarded, and if it is different, it is forwarded.
  • the inbound interface of the multicast group forwarding table (the port on which the device receives multicast data) and the outbound interface (the port on which the device sends multicast data) may be the same physical port, but belong to different virtual local area networks (VLAN, Virtual Local Area Network ), for example, the inbound interface is port 1, and the outbound interface is the subinterface of port 1.
  • VLAN Virtual Local Area Network
  • the inbound interface and the outbound interface are actually two different ports. Although they belong to the same physical port, multicast data should be forwarded instead of discarded. According to the prior art processing method, the effective transmission of multicast data is affected. Summary of the invention
  • the embodiment of the invention provides a method and a device for generating a multicast forwarding table and a multicast transmission, which are used for realizing effective transmission of multicast data.
  • a method for generating a multicast forwarding table comprising:
  • the inbound interface and the outbound interface are respectively configured with different logical interfaces in the multicast forwarding table, including: configuring different logical interfaces for the inbound interface and each outgoing interface in the multicast forwarding table, one of which The inbound interface corresponds to multiple outbound interfaces.
  • the different logical interfaces are configured respectively, including: the same inbound interface in different multicast forwarding tables, configured with the same or different logical interfaces; the same outgoing interfaces in different multicast forwarding tables are configured the same or Different logical interfaces.
  • a method for multicast transmission comprising:
  • the multicast forwarding table is searched according to the inbound interface of the multicast group data, and the first logical interface, the outgoing interface, and the second logical interface corresponding to the outgoing interface corresponding to the inbound interface are determined;
  • the multicast group data is discarded. Otherwise, the multicast group data is forwarded through the outbound interface.
  • the multicast forwarding table is generated by the method for generating a multicast forwarding table.
  • the method before the determining whether the first logical interface and the second logical interface are the same, the method further includes: determining whether the inbound interface and the outbound interface belong to the same physical port, and determining whether the inbound interface and the outbound interface belong to the same physical port. Whether the first logical interface is the same as the second logical interface.
  • the interface module and the control module are installed at a designated aggregation point (RP, Rendezvous Point) or a designated router (DR, Designated Router).
  • RP aggregation point
  • DR Designated Router
  • An apparatus for generating a multicast forwarding table comprising: an interface module and a control module; An interface module, configured to send the received multicast group information to the control module;
  • the control module is configured to generate, according to the multicast table corresponding to the multicast group information sent by the interface module, a multicast forwarding table including the inbound interface and the outbound interface, and the inbound interface and the outbound interface in the multicast forwarding table. Interfaces are configured with different logical interfaces.
  • control module is specifically configured to configure different logical interfaces for the inbound interface and each outbound interface in the multicast forwarding table, where one inbound interface corresponds to multiple outbound interfaces.
  • control module is specifically configured to configure the same or different logical interfaces on the same inbound interface in different multicast forwarding tables.
  • the same outbound interface in different multicast forwarding tables is configured with the same or different logic. interface.
  • An apparatus for multicast transmission comprising: an inbound interface, a lookup module, a control module, and an egress interface;
  • the inbound interface is configured to send the received multicast group data to the lookup module.
  • the locating module is configured to receive the multicast group data sent by the inbound interface, search the multicast forwarding table according to the inbound interface of the multicast group data, and corresponding the first logical interface, the outbound interface, and the outbound interface corresponding to the inbound interface.
  • the second logical interface notifies the control module; wherein the multicast forwarding table is generated by the device for generating the multicast forwarding table;
  • control module configured to determine, according to the notification of the first logical interface, the outbound interface, and the second logical interface corresponding to the outbound interface that are sent by the locating module, whether the first logical interface and the second logical interface are the same, If the multicast group data is discarded, the multicast group data is forwarded through the outbound interface of the device.
  • the outbound interface is used to forward multicast group data sent by the control module.
  • control module is further configured to determine whether the inbound interface and the outbound interface belong to the same physical port. When the inbound interface and the outbound interface belong to the same physical port, determine whether the first logical interface and the second logical interface are the same.
  • the ingress interface, the searching module, the control module, and the outgoing interface is installed in the DR or RP.
  • the inbound interface and the outbound interface are respectively assigned different logical interfaces.
  • the logical interface of the inbound interface is compared with the logical interface of the outbound interface. , the multicast data is discarded, otherwise the multicast data is forwarded.
  • the inbound interface and the outbound interface are different interfaces.
  • the logical interfaces of the inbound interface are different from those of the physical interface. Therefore, the problem that the inbound interface and the outbound interface belong to the same physical port and the multicast data is discarded is implemented. Effective transmission of data.
  • FIG. 1 is a flowchart of a main method for generating a multicast forwarding table according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a main method for multicast transmission in an embodiment of the present invention
  • FIG. 3 is a schematic structural diagram of a structure of a multicast system according to an embodiment of the present invention.
  • FIG. 4 is a flowchart of a method for generating a multicast table according to an embodiment of the present invention
  • FIG. 5 is a flowchart of a method for generating a multicast forwarding table according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a method for multicast data transmission according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a device for generating a multicast forwarding table according to an embodiment of the present invention
  • FIG. 8 is a schematic structural diagram of a device for multicast transmission according to an embodiment of the present invention.
  • the inbound interface and the outbound interface are respectively assigned different logical interfaces.
  • the logical interface of the inbound interface is compared with the logical interface of the outbound interface. , then discard the multicast data; otherwise, forward the multicast data. If the inbound interface is different from the outbound interface, the inbound interface is different from the outbound interface. Therefore, the inbound interface and the outbound interface are in the same physical port and the multicast data is discarded. The multicast data is transmitted effectively.
  • a multicast forwarding table is generated to form an inbound interface set and an outbound interface set.
  • an inbound interface exists in the inbound interface.
  • the outbound interface can have multiple outbound interfaces. Assign logical interfaces to the inbound interface in the inbound interface and the outbound interface in the inbound interface.
  • the inbound and outbound interfaces that are determined at this time are different interfaces, even if they belong to the same physical port, and the inbound and outbound interfaces can belong to different VLANs. Therefore, for a multicast group, different interfaces correspond to different logical interfaces, and the logical interfaces corresponding to the same interface are also the same.
  • the logical interface corresponding to the inbound interface and the outbound interface are determined through the multicast forwarding table, and the comparison is performed to determine whether the inbound interface and the outgoing interface are the same logical interface.
  • the following describes the implementation of the method for generating a multicast forwarding table and the method for multicast transmission by using an embodiment.
  • Step 101 Receive multicast group information.
  • Step 102 Generate a multicast forwarding table including the inbound interface and the outbound interface for the multicast table corresponding to the received multicast group information.
  • Step 103 Configure different logical interfaces for the inbound interface and the outbound interface in the multicast forwarding table.
  • This embodiment can be implemented by RP or DR.
  • the main method of multicast transmission in this embodiment is as follows:
  • Step 201 Receive multicast group data.
  • Step 202 Find a multicast forwarding table according to the inbound interface of the multicast group data, and determine a first logical interface corresponding to the inbound interface, an outbound interface, and a second logical interface corresponding to the outbound interface.
  • Step 203 Determine whether the first logical interface and the second logical interface are the same. If they are the same, proceed to step 204. Otherwise, proceed to step 205.
  • Step 204 Discard the multicast group data, and end the processing flow.
  • Step 205 Forward the multicast group data through the outbound interface.
  • This embodiment can be implemented by RP or DR.
  • a multicast system usually includes a data source, an RP, a DR, and a user equipment, as shown in Figure 3.
  • a user equipment joins a multicast group, it needs to register with the network.
  • the DR and the RP respectively generate a multicast table.
  • the data source is registered with the RP and the DR.
  • the data forwarding source sends the multicast data to the RP and the DR.
  • the RP and the DR forward the multicast data to the user equipment according to the multicast forwarding table to implement multicast transmission.
  • Step 401 The user equipment sends an Internet Group Management Protocol (IGMP) to the DR.
  • IGMP Internet Group Management Protocol
  • Step 402 The DR generates a first multicast table according to the IGMP join message.
  • the first multicast table is shaped as (*, multicast group IP, user 1....n);
  • the user 1....n is a user, n user identifier of the user equipment that sends the IGMP join message in step 401.
  • PIM Protocol Independent Multicast
  • Step 404 The RP generates a second multicast table according to the PIM join message.
  • the second multicast table is shaped as (*, multicast group IP, user).
  • the following describes the process of generating a multicast forwarding table and multicast transmission in combination with RP and DR.
  • the implementation process of generating a multicast forwarding table is introduced.
  • Step 501 The data source sends multicast group information to the RP.
  • the multicast group information includes multicast group traffic information, and the multicast group information can be sent through the multicast packet.
  • Step 502 After receiving the multicast group information, the RP generates a first multicast forwarding table according to the second multicast table.
  • the first multicast forwarding table is configured as (source IP, multicast group IP, inbound interface, and outbound interface); one inbound interface in the first multicast forwarding table corresponds to one or more outbound interfaces.
  • Step 503 The RP allocates logical interfaces to the inbound interface and the outbound interface respectively, and adds the first multicast forwarding table.
  • the inbound interface is port 1 and corresponds to logical interface 1
  • the outbound interface is a subinterface of port 1, and corresponds to logical interface 2.
  • the subinterfaces of port 1 and port 1 belong to different VLANs.
  • the RP further generates, according to the prior art, the encapsulation information table corresponding to the interface according to the first multicast forwarding table.
  • the encapsulation information table is used to provide encapsulation information required for sending the information, and may include: VLAN value, source media access control layer (MAC, Media Access Control) address, and time to live (TTL, Time To Live).
  • Step 504 The RP sends multicast group information to the DR.
  • the multicast group information includes multicast group traffic information and the like.
  • the RP can send multicast group information through multicast packets.
  • Step 505 After receiving the multicast group information, the DR generates a second multicast forwarding table according to the first multicast table.
  • the second multicast forwarding table is configured as (source IP, multicast group IP, inbound interface, and outbound interface); one inbound interface in the second multicast forwarding table corresponds to one or more outbound interfaces.
  • Step 506 The DR allocates a logical interface for the inbound interface and the outbound interface, and joins the second multicast forwarding table.
  • a logical interface is assigned to each outgoing interface.
  • the inbound interface is port 1 and corresponds to logical interface 1
  • the outbound interface is a subinterface of port 1, and corresponds to logical interface 2.
  • the subinterfaces of port 1 and port 1 belong to different VLANs.
  • the logical interface identifiers in a multicast group are unique and different in one device.
  • the same inbound interface and outbound interface between multicast groups or different devices can have the same or different logical interfaces.
  • the detailed method for multicast data transmission in this embodiment is as follows:
  • Step 601 The data source sends multicast data to the RP.
  • the data source can send multicast data through multicast packets.
  • Step 602 The RP searches for the first multicast forwarding table according to the data source IP (that is, the source IP address) and the multicast group IP, and determines the outbound interface.
  • Step 603 The RP determines, by using the first multicast forwarding table, a first logical interface corresponding to the inbound interface that receives the multicast data, and a second logical interface corresponding to the outbound interface.
  • Step 604 The RP determines whether the first logical interface is the same as the second logical interface. If yes, step 605 is performed; otherwise, step 606 is performed.
  • Step 605 The RP discards the received multicast data, and ends the processing flow.
  • Step 606 The RP forwards the multicast data to the DR.
  • the RP copies the multicast data, it finds the encapsulation information table of the outbound interface, and encapsulates a piece of multicast data and sends it to the DR through the outbound interface.
  • the above is mainly the implementation process when the RP receives multicast data.
  • Step 607 The DR searches for the second multicast forwarding according to the data source IP (ie, the source IP) and the multicast group IP, and determines the outbound interface.
  • the data source IP ie, the source IP
  • the multicast group IP determines the outbound interface.
  • multiple outbound interfaces can be determined simultaneously.
  • Step 608 The DR determines, by using the second multicast forwarding table, a first logical interface corresponding to the inbound interface that receives the multicast data, and a second logical interface corresponding to the outbound interface.
  • Step 609 The DR determines whether the first logical interface is the same as the second logical interface. If yes, step 610 is performed; otherwise, step 611 is performed.
  • Step 610 The DR discards the received multicast data, and ends the processing flow.
  • Step 611 The DR forwards the multicast data to the user equipment. Specifically, after replicating the multicast data, the DR finds the encapsulation information table of the outbound interface, and encapsulates a piece of multicast data and sends the multicast data to the user equipment through the found outbound interface.
  • the RP and the DR can determine whether the inbound interface and the outbound interface belong to the same physical port. If the inbound interface and the outbound interface belong to the same physical port, determine whether the first logical interface and the second logical interface are the same. If the packets are the same, the multicast data is discarded. Otherwise, the multicast data is forwarded. If the inbound interface does not belong to the same physical port, the multicast data is forwarded.
  • the apparatus 700 for generating a multicast forwarding table in this embodiment includes: an interface module 701 and a control module 702 ;
  • the interface module 701 is configured to send the received multicast group information to the control module 702.
  • the control module 702 is configured to generate, according to the multicast table corresponding to the multicast group information sent by the interface module 701, a multicast forwarding table including the inbound interface and the outbound interface, and enter the multicast forwarding table in the multicast forwarding table.
  • the interface and the outbound interface are configured with different logical interfaces.
  • the control module 702 is specifically configured to configure different logical interfaces for the inbound interface and each outbound interface in the multicast forwarding table, where one inbound interface can correspond to multiple outbound interfaces, and different multicast groups are the same.
  • the inbound interface and the outbound interface correspond to the same or different logical interfaces.
  • the device 700 may further include: a storage module, configured to store information such as a multicast table and a multicast forwarding table sent by the control module 702; and correspondingly, the control module 702 is further configured to: multicast table and multicast Information such as a forwarding table is sent to the storage module.
  • a storage module configured to store information such as a multicast table and a multicast forwarding table sent by the control module 702; and correspondingly, the control module 702 is further configured to: multicast table and multicast Information such as a forwarding table is sent to the storage module.
  • the interface module 701 and the control module 702 can be installed as a DR or RP.
  • the apparatus 800 for multicast transmission in this embodiment includes: an ingress interface 801, a lookup module 802, a control module 803, and an egress interface 804.
  • the inbound interface 801 is configured to send the received multicast group data to the lookup module 802.
  • the searching module 802 is configured to receive multicast group data sent by the inbound interface 801, according to the number of multicast groups.
  • the inbound interface is configured to look up the multicast forwarding table, and the first logical interface corresponding to the inbound interface, the outbound interface, and the second logical interface corresponding to the outbound interface are notified to the control module 803;
  • the control module 803 is configured to determine, according to the notification of the first logical interface, the outbound interface, and the second logical interface corresponding to the outbound interface that are sent by the locating module, whether the first logical interface and the second logical interface are the same. If the information is the same, the multicast group data is discarded. Otherwise, the multicast group data is forwarded through the outbound interface 804 of the device.
  • the outbound interface 804 is configured to forward the multicast group data sent by the control module 803 to the corresponding receiving device.
  • the control module 803 is further configured to determine whether the inbound interface and the outbound interface belong to the same physical port. When the inbound interface and the outbound interface belong to the same physical port, determine whether the first logical interface and the second logical interface are the same.
  • the device 800 is a DR or RP. That is, both DR and RP can include the structure and functionality of device 700 and device 800. That is, the interface module 701 includes one or more ports and sub-interfaces. When a port or sub-interface is used to receive data, the port or sub-interface is the in-interface 801. When a port or sub-interface is used to send data. The port or sub-interface is the outgoing interface 804.
  • the interface module 701 includes an inbound interface 801 and an outgoing interface 804.
  • the control module 702, the lookup module 802, and the control module 803 together form a processing module (such as an execution device such as a CPU).
  • the inbound interface and the outbound interface are respectively assigned different logical interfaces.
  • the logical interface of the inbound interface is compared with the logical interface of the outbound interface. , the multicast data is discarded, otherwise the multicast data is forwarded.
  • the inbound interface and the outbound interface are different interfaces.
  • the logical interfaces of the inbound interface are different from those of the physical interface. Therefore, the problem that the inbound interface and the outbound interface belong to the same physical port and the multicast data is discarded is implemented. Effective transmission of data.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Therefore, the present invention can be implemented in an entirely hardware embodiment, fully software implemented For example, or in combination with an embodiment of software and hardware aspects. Moreover, the invention can take the form of a computer program product embodied on one or more computer usable storage media (including but not limited to disk storage and optical storage, etc.) in which computer usable program code is embodied.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Landscapes

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

Description

一种生成组播转发表、 组播传输的方法及装置 技术领域
本发明涉及通信领域, 特别是涉及生成组播转发表、 组播传输的方法 及装置。 背景技术
因特网协议 ( IP, Internet Protocol )组播是指在网络中将数据包发送到 网络中的某个确定子集, 这个确定子集称为组播组。 IP组播的基本思路是: 源主机只发送一份数据, 这份数据中的目的地址为组播组地址, 组播组中 的所有接收主机都可以接收同样的数据拷贝, 并且只有组播组内的主机可 以接收该数据, 网络中的其他主机并不能接收。
现有技术中为避免重复传输, 所以要防止出现从一个端口进又从同一 端口出的现象, 通常在收到组播数据后将入接口的物理端口与出接口的物 理端口进行比较, 如果相同, 则丟弃该组播数据, 如果不同, 则进行转发。
但实际应用中, 组播组转发表中入接口 (设备接收组播数据的端口) 与出接口 (设备发送组播数据的端口)可能是同一物理端口, 但是属于不 同的虚拟局域网 (VLAN, Virtual Local Area Network ), 例如入接口为端口 1 , 出接口为端口 1的子接口。 这种情况下, 入接口与出接口实际为两个不 同的端口, 虽然属于同一物理端口, 此时应转发组播数据, 而不是丟弃。 按照现有技术的处理方式, 将对组播数据的有效传输造成影响。 发明内容
本发明实施例提供一种生成组播转发表、 组播传输的方法及装置, 用 于实现组播数据的有效传输。 一种生成组播转发表的方法, 该方法包括:
接收组播组信息;
针对收到的组播组信息所对应的组播组表, 生成包含入接口和出接口 的组播转发表;
在组播转发表中为入接口和出接口分别配置不同的逻辑接口。
上述方案中, 所述在组播转发表中为入接口和出接口分别配置不同的 逻辑接口, 包括: 在组播转发表中为入接口和每个出接口分别配置不同的 逻辑接口, 其中一个入接口对应多个出接口。
上述方案中, 所述分别配置不同的逻辑接口, 包括: 在不同组播转发 表中相同的入接口, 配置相同或不同的逻辑接口; 在不同组播转发表中相 同的出接口, 配置相同或不同的逻辑接口。
一种组播传输的方法, 该方法包括:
接收组播组数据;
根据组播组数据的入接口查找组播转发表, 并确定入接口对应的第一 逻辑接口、 出接口和出接口对应的第二逻辑接口;
判断第一逻辑接口与第二逻辑接口是否相同;
若相同, 则丟弃组播组数据, 否则通过出接口转发组播组数据。
其中, 所述组播转发表为上述生成组播转发表的方法中生成的。
上述方案中, 所述判断第一逻辑接口与第二逻辑接口是否相同之前, 该方法还包括: 判断入接口与出接口是否属于同一物理端口, 当入接口与 出接口属于同一物理端口时, 判断第一逻辑接口与第二逻辑接口是否相同。
上述方案中, 所述接口模块和所述控制模块安装于指定汇聚点 (RP, Rendezvous Point )或指定路由器 ( DR, Designated Router )。
一种生成组播转发表的装置, 该装置包括: 接口模块和控制模块; 其 接口模块, 用于将接收的组播组信息发送给控制模块;
控制模块, 用于针对收到的接口模块发来的组播组信息所对应的组播 表, 生成包含入接口和出接口的组播转发表, 并在组播转发表中为入接口 和出接口分别配置不同的逻辑接口。
上述方案中, 所述控制模块, 具体用于在组播转发表中为入接口和每 个出接口分别配置不同的逻辑接口, 其中一个入接口对应多个出接口。
上述方案中, 所述控制模块, 具体用于在不同组播转发表中相同的入 接口, 配置相同或不同的逻辑接口; 在不同组播转发表中相同的出接口, 配置相同或不同的逻辑接口。
一种用于组播传输的装置, 该装置包括: 入接口、 查找模块、 控制模 块和出接口; 其中,
入接口, 用于将接收的组播组数据发送给查找模块;
查找模块, 用于接收入接口发来的组播组数据, 根据组播组数据的入 接口查找组播转发表, 并将确定的入接口对应的第一逻辑接口、 出接口和 出接口对应的第二逻辑接口通知控制模块; 其中, 所述组播转发表为上述 生成组播转发表的装置生成的;
控制模块, 用于根据查找模块发来的确定的入接口对应的第一逻辑接 口、 出接口和出接口对应的第二逻辑接口的通知, 判断第一逻辑接口与第 二逻辑接口是否相同, 若相同, 则丟弃组播组数据, 否则通过所在装置的 出接口转发组播组数据;
出接口, 用于转发控制模块发来的组播组数据。
上述方案中, 所述控制模块, 还用于判断入接口与出接口是否属于同 一物理端口, 当入接口与出接口属于同一物理端口时, 判断第一逻辑接口 与第二逻辑接口是否相同。
上述方案中, 所述入接口、 所述查找模块、 所述控制模块和所述出接 口安装于安装于 DR或 RP。
本发明实施例中为入接口和出接口分别分配不同逻辑接口, 在需要转 发组播数据时, 将入接口的逻辑接口与出接口的逻辑接口进行比较, 如果 一致, 说明入接口与出接口相同, 则丟弃组播数据, 否则转发组播数据。 入接口与出接口是不同的接口, 则两者对应的逻辑接口就不同, 不受物理 端口的限制, 从而解决入接口与出接口属于同一物理端口而丟弃组播数据 的问题, 实现组播数据的有效传输。 附图说明
图 1为本发明实施例中生成组播转发表的主要方法流程图;
图 2为本发明实施例中组播传输的主要方法流程图;
图 3为本发明实施例中组播系统的组成结构示意图;
图 4为本发明实施例中生成组播表的方法流程图;
图 5为本发明实施例中生成组播转发表的方法流程图;
图 6为本发明实施例中组播数据传输的方法流程图;
图 7为本发明实施例中生成组播转发表的装置的组成结构示意图; 图 8为本发明实施例中组播传输的装置的组成结构示意图。 具体实施方式
本发明实施例中为入接口和出接口分别分配不同逻辑接口, 在需要转 发组播数据时, 将入接口的逻辑接口与出接口的逻辑接口进行比较, 如果 一致, 说明入接口与出接口相同, 则丟弃组播数据; 否则转发组播数据。 入接口与出接口对应的逻辑接口不同则入接口与出接口不同, 从而解决入 接口与出接口属于同一物理端口而丟弃组播数据的问题, 实现组播数据的 有效传输。
本实施例在数据源注册过程中, 也就是接收数据源发送组播组信息后, 生成组播转发表, 形成入接口集和出接口集, 通常入接口集中有一个入接 口, 出接口集中可以有多个出接口。 为入接口集中的入接口和出接口集中 的出接口分配逻辑接口。 此时确定的入接口和出接口为不同的接口, 即使 属于同一物理端口, 而且入接口和出接口可以属于不同的 VLAN。 因此针 对一个组播组, 不同的接口对应不同的逻辑接口, 相同的接口对应的逻辑 接口也相同。
在组播转发过程中, 也就是接收组播数据后, 通过组播转发表确定入 接口和出接口分别对应的逻辑接口, 并进行比较, 从而确定入接口与出接 口是否为相同的逻辑接口。
下面通过实施例来分别介绍生成组播转发表的方法和组播传输的方法 的实现过程。
参见图 1 , 本实施例中生成组播转发表的主要方法流程如下: 步驟 101 : 接收组播组信息。
步驟 102: 针对收到的组播组信息所对应的组播表, 生成包含入接口和 出接口的组播转发表。
步驟 103: 在组播转发表中为入接口和出接口分别配置不同的逻辑接 口。
本实施例可以由 RP或 DR实现。
参见图 2, 本实施例中组播传输的主要方法流程如下:
步驟 201: 接收组播组数据。
步驟 202: 根据组播组数据的入接口查找组播转发表, 并确定入接口对 应的第一逻辑接口、 出接口和出接口对应的第二逻辑接口。
步驟 203: 判断第一逻辑接口与第二逻辑接口是否相同, 若相同, 则继 续步驟 204 , 否则继续步驟 205。
步驟 204: 丟弃组播组数据, 结束处理流程。 步驟 205: 通过出接口转发组播组数据。
本实施例可以由 RP或 DR实现。
组播系统通常包括数据源、 RP、 DR和用户设备, 参见图 3所示。 用户 设备在加入组播组时需先向网络侧注册, DR和 RP分别生成组播表; 当有 组播数据需要传输时, 数据源先到 RP和 DR上注册, 使 RP和 DR分别生 成组播转发表; 然后数据源将组播数据发送给 RP和 DR, RP和 DR根据各 自的组播转发表将组播数据转发给用户设备, 实现组播传输。
下面首先对用户设备先向网络侧注册, DR和 RP分别生成组播表的过 程进行介绍, 如图 4所示, 流程如下:
步驟 401:用户设备向 DR发送因特网组管理协议( IGMP, Internet Group Management Protocol )力口入才艮文。
步驟 402: DR根据 IGMP加入报文生成第一组播表。
这里, 所述第一组播表形如( * , 组播组 IP, 用户 1....n ) ;
其中,所述用户 1....n为步驟 401中发送 IGMP加入报文的用户设备中 的一个用户, n用户标识。
步驟 403: DR向 RP发送协议无关组播(PIM, Protocol Independent Multicast )加入^ =艮文。
步驟 404: RP根据 PIM加入报文生成第二组播表。
这里, 所述第二组播表形如(*, 组播组 IP, 用户)。
下面结合 RP和 DR介绍生成组播转发表和组播传输过程, 首先介绍生 成组播转发表的实现过程。
参见图 5 , 本实施例中生成组播转发表的详细方法流程如下:
步驟 501: 数据源向 RP发送组播组信息。
这里, 所述组播组信息包括组播组流量信息等, 可以通过组播报文发 送组播组信息。 步驟 502: RP收到组播组信息后, 根据第二组播表生成第一组播转发 表。
这里, 所述第一组播转发表形如(源 IP, 组播组 IP,入接口, 出接口); 第一组播转发表中一个入接口对应一个或多个出接口。
步驟 503: RP为入接口和出接口分别分配逻辑接口, 并加入第一组播 转发表。
例如,入接口为端口 1 ,且对应逻辑接口 1 , 出接口为端口 1的子接口, 且对应逻辑接口 2。 端口 1和端口 1的子接口属于不同的 VLAN。
进一步的, 步驟 503完成后, RP还会按照现有技术, 根据第一组播转 发表生成出接口对应的封装信息表; 所述封装信息表用于提供发送信息需 要的封装信息,可以包括: VLAN值、源介质访问控制层( MAC, Media Access Control )地址和生存时间 ( TTL, Time To Live )。
步驟 504: RP向 DR发送组播组信息。
这里, 所述组播组信息包括组播组流量信息等。 本实施例中 RP可以通 过组播报文发送组播组信息。
步驟 505: DR收到组播组信息后, 根据第一组播表生成第二组播转发 表。
这里, 所述第二组播转发表形如(源 IP, 组播组 IP,入接口, 出接口); 第二组播转发表中一个入接口对应一个或多个出接口。
步驟 506: DR为入接口和出接口分别分配逻辑接口, 并加入第二组播 转发表。
当有多个出接口时, 为每个出接口分别分配逻辑接口。 例如入接口为 端口 1 , 且对应逻辑接口 1 , 出接口为端口 1的子接口, 且对应逻辑接口 2。 端口 1和端口 1的子接口属于不同的 VLAN。
本实施例中一个设备中针对一个组播组内的逻辑接口标识唯一, 不同 组播组或不同设备之间相同的入接口和出接口可以对应有相同或不同的逻 辑接口。
参见图 6, 本实施例中组播数据传输的详细方法流程如下:
步驟 601: 数据源向 RP发送组播数据。
本实施例中数据源可以通过组播报文发送组播数据。
步驟 602: RP根据数据源 IP (即源 IP )和组播组 IP查找第一组播转发 表, 确定出接口。
步驟 603: RP通过第一组播转发表确定接收组播数据的入接口对应的 第一逻辑接口和出接口对应的第二逻辑接口。
步驟 604: RP判断第一逻辑接口与第二逻辑接口是否相同, 若相同, 则执行步驟 605; 否则, 执行步驟 606。
步驟 605: RP丟弃收到的组播数据, 结束处理流程。
步驟 606: RP将组播数据转发给 DR。
具体的, RP将组播数据复制一份后, 查找出接口的封装信息表, 并将 一份组播数据进行封装后通过出接口发送给 DR。
以上主要是 RP收到组播数据时的实现过程。
步驟 607: DR根据数据源 IP (即源 IP )和组播组 IP查找第二组播转 发表, 确定出接口。
本实施例中可以同时确定多个出接口。
步驟 608: DR通过第二组播转发表确定接收组播数据的入接口对应的 第一逻辑接口和出接口对应的第二逻辑接口。
步驟 609: DR判断第一逻辑接口与第二逻辑接口是否相同, 若相同, 则执行步驟 610; 否则, 执行步驟 611。
步驟 610: DR丟弃收到的组播数据, 结束处理流程。
步驟 611: DR将组播数据转发给用户设备。 具体的, DR将组播数据复制一份后, 查找出接口的封装信息表, 并将 一份组播数据进行封装后通过查到的出接口发送给用户设备。
为与现有的协议兼容, RP和 DR可以先判断入接口与出接口是否属于 同一物理端口, 若入接口与出接口属于同一物理端口, 则判断第一逻辑接 口与第二逻辑接口是否相同, 若相同, 则丟弃组播数据, 否则转发组播数 据; 若入接口与出接口不属于同一物理端口, 则转发组播数据。
以上对生成组播转发表和组播数据的传输过程进行描述, 该过程可由 装置实现, 下面对装置的内部结构和功能进行介绍。
参见图 7, 本实施例中生成组播转发表的装置 700包括: 接口模块 701 和控制模块 702; 其中,
接口模块 701 , 用于将接收的组播组信息发送给控制模块 702;
控制模块 702,用于针对收到的接口模块 701发来的组播组信息所对应 的组播表后, 生成包含入接口和出接口的组播转发表, 并在组播转发表中 为入接口和出接口分别配置不同的逻辑接口。
所述控制模块 702,具体用于在组播转发表中为入接口和每个出接口分 别配置不同的逻辑接口, 其中一个入接口可以对应多个出接口, 将不同组 播组之间相同的入接口和出接口对应有相同或不同的逻辑接口。
所述装置 700还可以包括: 存储模块, 用于存储控制模块 702发来的 组播表和组播转发表等信息; 相应的, 所述控制模块 702, 还用于将组播表 和组播转发表等信息发送给存储模块。
所述接口模块 701和所述控制模块 702可以安装于为 DR或 RP。
参见图 8, 本实施例中组播传输的装置 800包括: 入接口 801、 查找模 块 802、 控制模块 803和出接口 804。
入接口 801 , 用于将接收的组播组数据发送给查找模块 802。
查找模块 802, 用于接收入接口 801发来的组播组数据,根据组播组数 据的入接口查找组播转发表, 并将确定的入接口对应的第一逻辑接口、 出 接口和出接口对应的第二逻辑接口通知控制模块 803;
控制模块 803 ,用于根据查找模块发来的确定的入接口对应的第一逻辑 接口、 出接口和出接口对应的第二逻辑接口的通知, 判断第一逻辑接口与 第二逻辑接口是否相同, 若相同, 则丟弃组播组数据, 否则通过所在装置 的出接口 804转发组播组数据;
出接口 804,用于将控制模块 803发来的组播组数据转发给对应的接收 设备。
所述控制模块 803 , 还用于判断入接口与出接口是否属于同一物理端 口, 在入接口与出接口属于同一物理端口时, 判断第一逻辑接口与第二逻 辑接口是否相同。
所述装置 800为 DR或 RP。 也就是说, DR和 RP均可以包括装置 700 和装置 800的结构和功能。 即, 接口模块 701 包括一个或多个端口及子接 口,当某个端口或子接口用于接收数据时,该端口或子接口即为入接口 801 , 当某个端口或子接口用于发送数据时, 该端口或子接口即为出接口 804。相 当于接口模块 701包括入接口 801和出接口 804。 控制模块 702、 查找模块 802和控制模块 803共同构成处理模块(如 CPU等执行器件)。
本发明实施例中为入接口和出接口分别分配不同逻辑接口, 在需要转 发组播数据时, 将入接口的逻辑接口与出接口的逻辑接口进行比较, 如果 一致, 说明入接口与出接口相同, 则丟弃组播数据, 否则转发组播数据。 入接口与出接口是不同的接口, 则两者对应的逻辑接口就不同, 不受物理 端口的限制, 从而解决入接口与出接口属于同一物理端口而丟弃组播数据 的问题, 实现组播数据的有效传输。
本领域内的技术人员应明白, 本发明的实施例可提供为方法、 系统、 或计算机程序产品。 因此, 本发明可采用完全硬件实施例、 完全软件实施 例、 或结合软件和硬件方面的实施例的形式。 而且, 本发明可采用在一个 或多个其中包含有计算机可用程序代码的计算机可用存储介质 (包括但不 限于磁盘存储器和光学存储器等 )上实施的计算机程序产品的形式。
本发明是参照根据本发明实施例的方法、 设备(系统)、 和计算机程序 产品的流程图和 /或方框图来描述的。 应理解可由计算机程序指令实现流 程图和 /或方框图中的每一流程和 /或方框、 以及流程图和 /或方框图中 的流程和 /或方框的结合。 可提供这些计算机程序指令到通用计算机、 专 用计算机、 嵌入式处理机或其他可编程数据处理设备的处理器以产生一个 机器, 使得通过计算机或其他可编程数据处理设备的处理器执行的指令产 生用于实现在流程图一个流程或多个流程和 /或方框图一个方框或多个方 框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理 设备以特定方式工作的计算机可读存储器中, 使得存储在该计算机可读存 储器中的指令产生包括指令装置的制造品, 该指令装置实现在流程图一个 流程或多个流程和 /或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备 上, 使得在计算机或其他可编程设备上执行一系列操作步驟以产生计算机 实现的处理, 从而在计算机或其他可编程设备上执行的指令提供用于实现 在流程图一个流程或多个流程和 /或方框图一个方框或多个方框中指定的 功能的步驟。
显然, 本领域的技术人员可以对本发明进行各种改动和变型而不脱离 本发明的精神和范围。 这样, 倘若本发明的这些修改和变型属于本发明权 利要求及其等同技术的范围之内, 则本发明也意图包含这些改动和变型在 内。

Claims

权利要求书
1、 一种生成组播转发表的方法, 其特征在于, 该方法包括:
接收组播组信息;
针对收到的组播组信息所对应的组播表, 生成包含入接口和出接口的 组播转发表;
在组播转发表中为入接口和出接口分别配置不同的逻辑接口。
2、 如权利要求 1所述的方法, 其特征在于, 所述在组播转发表中为入 接口和出接口分别配置不同的逻辑接口, 包括: 在组播转发表中为入接口 和每个出接口分别配置不同的逻辑接口, 其中一个入接口对应多个出接口。
3、 如权利要求 2所述的方法, 其特征在于, 所述分别配置不同的逻辑 接口, 包括: 在不同组播转发表中相同的入接口, 配置相同或不同的逻辑 接口; 在不同组播转发表中相同的出接口, 配置相同或不同的逻辑接口。
4、 一种组播传输的方法, 其特征在于, 该方法包括:
接收组播组数据;
根据组播组数据的入接口查找组播转发表, 并确定入接口对应的第一 逻辑接口、 出接口和出接口对应的第二逻辑接口;
判断第一逻辑接口与第二逻辑接口是否相同, 若相同, 则丟弃组播组 数据, 否则通过出接口转发组播组数据。
其中, 所述组播转发表为采用权 1至权 3任一项所述方法生成的。
5、 如权利要求 4所述的方法, 其特征在于, 所述判断第一逻辑接口与 第二逻辑接口是否相同之前, 该方法还包括: 判断入接口与出接口是否属 于同一物理端口, 当入接口与出接口属于同一物理端口时, 判断第一逻辑 接口与第二逻辑接口是否相同。
6、 一种生成组播转发表的装置, 其特征在于, 该装置包括: 接口模块 和控制模块; 其中, 接口模块, 用于将接收的组播组信息发送给控制模块;
控制模块, 用于针对收到的接口模块发来的组播组信息所对应的组播 表, 生成包含入接口和出接口的组播转发表, 并在组播转发表中为入接口 和出接口分别配置不同的逻辑接口。
7、 如权利要求 6所述的装置, 其特征在于,
所述控制模块, 具体用于在组播转发表中为入接口和每个出接口分别 配置不同的逻辑接口, 其中一个入接口对应多个出接口。
8、 如权利要求 7所述的装置, 其特征在于,
所述控制模块, 具体用于在不同组播转发表中相同的入接口, 配置相 同或不同的逻辑接口; 在不同组播转发表中相同的出接口, 配置相同或不 同的逻辑接口。
9、 如权利要求 6所述的装置, 其特征在于, 所述接口模块和所述控制 模块安装于指定路由器 DR或汇聚点装置 RP。
10、 一种组播传输的装置, 其特征在于, 该装置包括: 入接口、 查找 模块、 控制模块和出接口; 其中,
入接口, 用于将接收的组播组数据发送给查找模块;
查找模块, 用于接收入接口发来的组播组数据, 根据组播组数据的入 接口查找组播转发表, 并将确定的入接口对应的第一逻辑接口、 出接口和 出接口对应的第二逻辑接口通知控制模块; 其中, 所述组播转发表为采用 权 6至权 9任一项所述装置生成的;
控制模块, 用于根据查找模块发来的确定的入接口对应的第一逻辑接 口、 出接口和出接口对应的第二逻辑接口的通知, 判断第一逻辑接口与第 二逻辑接口是否相同, 若相同, 则丟弃组播组数据, 否则通过所在装置的 出接口转发组播组数据;
出接口, 用于转发控制模块发来的组播组数据。
11、 如权利要求 10所述的装置, 其特征在于,
所述控制模块, 还用于判断入接口与出接口是否属于同一物理端口, 当入接口与出接口属于同一物理端口时, 判断第一逻辑接口与第二逻辑接 口是否相同。
12、 如权利要求 10所述的装置, 其特征在于, 所述入接口、 所述查找 模块、 所述控制模块和所述出接口安装于 DR或 RP。
PCT/CN2012/072337 2011-04-15 2012-03-14 一种生成组播转发表、组播传输的方法及装置 WO2012139448A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2011100954406A CN102148690A (zh) 2011-04-15 2011-04-15 一种生成组播表、组播传输的方法及装置
CN201110095440.6 2011-04-15

Publications (1)

Publication Number Publication Date
WO2012139448A1 true WO2012139448A1 (zh) 2012-10-18

Family

ID=44422711

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/072337 WO2012139448A1 (zh) 2011-04-15 2012-03-14 一种生成组播转发表、组播传输的方法及装置

Country Status (2)

Country Link
CN (1) CN102148690A (zh)
WO (1) WO2012139448A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489642A (zh) * 2021-07-04 2021-10-08 芯河半导体科技(无锡)有限公司 Pim-sm源注册优化方法

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148690A (zh) * 2011-04-15 2011-08-10 中兴通讯股份有限公司 一种生成组播表、组播传输的方法及装置
CN108400939B (zh) * 2018-03-02 2020-08-07 赛特斯信息科技股份有限公司 Nfv中实现加速组播复制的系统及方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866845A (zh) * 2006-05-08 2006-11-22 国家数字交换系统工程技术研究中心 一种组播转发表输出端口的虚拟标识方法
CN101442497A (zh) * 2008-12-25 2009-05-27 中兴通讯股份有限公司 一种实现数据报文转发的系统及方法
CN102148690A (zh) * 2011-04-15 2011-08-10 中兴通讯股份有限公司 一种生成组播表、组播传输的方法及装置

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1866845A (zh) * 2006-05-08 2006-11-22 国家数字交换系统工程技术研究中心 一种组播转发表输出端口的虚拟标识方法
CN101442497A (zh) * 2008-12-25 2009-05-27 中兴通讯股份有限公司 一种实现数据报文转发的系统及方法
CN102148690A (zh) * 2011-04-15 2011-08-10 中兴通讯股份有限公司 一种生成组播表、组播传输的方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113489642A (zh) * 2021-07-04 2021-10-08 芯河半导体科技(无锡)有限公司 Pim-sm源注册优化方法

Also Published As

Publication number Publication date
CN102148690A (zh) 2011-08-10

Similar Documents

Publication Publication Date Title
JP7004405B2 (ja) 仮想ネットワークにおける分散型フロー状態p2p設定のためのシステムおよび方法
US11240065B2 (en) NSH encapsulation for traffic steering
US10116559B2 (en) Operations, administration and management (OAM) in overlay data center environments
Del Piccolo et al. A survey of network isolation solutions for multi-tenant data centers
US10887119B2 (en) Multicasting within distributed control plane of a switch
EP2740048B1 (en) Reverse path forwarding lookup with link bundles
US9571382B2 (en) Method, controller, and system for processing data packet
WO2018205982A1 (zh) 软件定义网络中广播、组播实现方法、装置及存储介质
EP2369782B1 (en) Multicasting within a distributed control plane of a switch
WO2007028293A1 (fr) Procede de transfert d'un ensemble multidiffusion dans un vpls
EP3222012A1 (en) Method and system for virtualizing flow tables in a software-defined networking (sdn) system
CN102546666B (zh) 防止igmp欺骗和攻击的方法及装置
WO2008017270A1 (fr) Procédé, dispositif et système ethernet supportant un acheminement multidiffusion à source spécifique
WO2018214809A1 (zh) 消息发送方法及装置、存储介质
WO2016116939A1 (en) Engines to prune overlay network traffic
US20210399908A1 (en) Multicast routing
WO2013029440A1 (en) Method and apparatus for implementing layer-2 interconnection of data centers
WO2011095008A1 (zh) 提高虚拟专用局域网业务网络转发效率的方法和系统
US20180351878A1 (en) Multicast data packet forwarding
JP7397178B2 (ja) リバースパス転送rpfチェック方法及び装置
WO2021082812A1 (zh) 报文的发送方法和第一网络设备
WO2021082803A1 (zh) 路由信息传输方法及装置、数据中心互联网络
US20140241351A1 (en) Dynamic determination of the root node of an mldp tunnel
WO2018010519A1 (zh) 一种建立组播隧道的方法和装置
WO2019196914A1 (zh) 一种发现转发路径的方法及其相关设备

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

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

Country of ref document: EP

Kind code of ref document: A1