WO2012103704A1 - Multicast duplication method, device and system - Google Patents

Multicast duplication method, device and system Download PDF

Info

Publication number
WO2012103704A1
WO2012103704A1 PCT/CN2011/076263 CN2011076263W WO2012103704A1 WO 2012103704 A1 WO2012103704 A1 WO 2012103704A1 CN 2011076263 W CN2011076263 W CN 2011076263W WO 2012103704 A1 WO2012103704 A1 WO 2012103704A1
Authority
WO
WIPO (PCT)
Prior art keywords
multicast
traffic manager
egress
packet
port
Prior art date
Application number
PCT/CN2011/076263
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 华为技术有限公司
Priority to PCT/CN2011/076263 priority Critical patent/WO2012103704A1/en
Priority to CN201180001021.XA priority patent/CN103222230B/en
Publication of WO2012103704A1 publication Critical patent/WO2012103704A1/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/1881Arrangements for providing special services to substations for broadcast or conference, e.g. multicast with schedule organisation, e.g. priority, sequence management

Definitions

  • Embodiments of the present invention relate to the field of communications technologies, and in particular, to a multicast replication method, apparatus, and system. Background technique
  • Multicast is a traffic model that copies an upstream packet into multiple copies and distributes it to multiple downstream ports.
  • network applications such as HDTV
  • multicast technology has become more and more widely used, and multicast performance has become one of the important performance indicators of large-scale network devices such as routers and switches.
  • the architecture of a large-scale forwarding system usually consists of multiple Line Cards and a large-capacity switching network.
  • the Packet Processing and Forwarding Engine (PFE) on the line card is responsible for packet parsing and forwarding, and the switching network performs switching.
  • the PFE is usually decomposed into two modules: the packet processor (PP) and the traffic manager (TM), where the PP is responsible for packet processing and determining forwarding rules, and the TM is responsible for forwarding, replication, and quality of service (QoS). ) Guaranteed and other functions.
  • the complete process of multicast packets usually includes: multicast ingress port->uplink ⁇ -> ⁇ # ⁇ ->switched network->downlink ⁇ ->downstream ⁇ ->multicast outgoing port, where uplink refers to packet
  • uplink refers to packet
  • the data is transmitted from the data interface to the switching network.
  • the downlink refers to the transmission of packets from the switching network to the data interface.
  • the performance of multicast replication depends mainly on the implementation and performance of the switching network.
  • FIG. 1 is a schematic flowchart of a first multicast replication method in the prior art
  • FIG. 2 is a schematic flowchart of a second multicast replication method in the prior art
  • FIG. 3 is a third multicast in the prior art.
  • a multicast replication method in the prior art is uplink replication, that is, all replication work is completed in the uplink module of the multicast source, and multiple multicast packets are copied. The text enters the uplink queue separately and is forwarded through the switching network.
  • the multicast module for the multicast source is configured to replicate multicast packets for multiple egress ports.
  • the packet can enter the unicast queue according to the priority carried.
  • the QoS guarantee can be provided by scheduling the multicast packets in the uplink queue according to the congestion status of the egress port and the priority of the packets.
  • the bandwidth consumption of the TM to the switching network is severe.
  • 10G multicast source traffic when there are 4 multicast members on other line cards, will generate 40G switching network line bandwidth requirements.
  • FIG. 2 another multicast replication method in the prior art is a switching network replication solution, where: the switching network first copies the multicast packet received from the input side line card to the downlink of the multicast member.
  • the TM module further copies the multicast packets forwarded by the switching network to all member ports by the downlink TM module.
  • the multicast packets are not formed in the uplink TM module and the switching network where the multicast source resides.
  • the broadcast packet is scheduled, and the multicast packet is forwarded by the multicast member to the multicast network.
  • the multicast packet is copied to all member ports. Cache and scheduling.
  • the upstream multicast source sends packets to the switching network, it is not subject to the scheduling control of a certain downlink port. Therefore, the outbound port can not schedule the multicast packets in the uplink queue. Provide QoS guarantees. As shown in FIG.
  • another multicast replication method in the prior art is a cyclic tree replication scheme, that is, the uplink TM module in which the multicast source is located uses a binary tree-like manner to copy the packet and send it to the switch network.
  • the downlink module of the intermediate node wherein the downlink module as the intermediate node is not the downlink TM module where the member port of the multicast packet is located, and the downlink TM module as the intermediate node performs the secondary binary tree replication of the packet. If the number of multicast packets is the same as the number of member ports, the number of the multicast packets is the same as that of the member ports.
  • the copied packet is sent to the next intermediate node through the switching network for replication until it is copied to all member ports through a series of loops.
  • This method for multicast replication if there are many member ports, you need to use multiple times.
  • the intermediate node is selected as the replication agent, and one traffic passes through the switching network multiple times, which seriously consumes the bandwidth of the switching network. It can be seen that the prior art multicast replication method cannot provide QoS guarantee while effectively saving the bandwidth of the switching network. Summary of the invention
  • the purpose of the embodiments of the present invention is to provide a multicast replication method, apparatus, and system for providing QoS guarantee under the condition that the bandwidth of the switching network is effectively saved.
  • the embodiment of the invention provides a multicast replication method, including:
  • the downlink module of the egress traffic manager receives the multicast packet sent by the switching network through the recurring port, and sends the multicast packet to the uplink module, where the egress traffic manager includes the uplink module and the downlink module. And a physical port for communicating with the outside, the downlink module is provided with the cyclic port;
  • the egress module of the egress traffic manager searches for the multicast member port corresponding to the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet;
  • the uplink module of the egress traffic manager calculates the number of multicast member ports of the multicast member port corresponding to the egress packet, and according to the egress traffic manager The number of multicast member ports included in the physical port is copied to the multicast packet, so that the number of the copied multicast packets and the multicast member included in the physical port of the egress traffic manager are The number of ports is the same;
  • the uplink module of the egress traffic manager adds the copied multicast packet to the unicast packet buffer queue according to the priority, and then sends the packet to the downlink module through the local forwarding channel according to the QoS setting of the multicast member port. And the downlink module sends the duplicated multicast packet to the multicast member port included in the physical port of the egress traffic manager.
  • an embodiment of the present invention further provides an egress traffic manager, including an uplink module, a downlink module, and a physical port for communicating with the outside, where the downlink module is configured with a loop port, where: The downlink module is configured to receive the multicast packet sent by the switching network by using the cyclic port, and send the multicast packet to the uplink module.
  • an egress traffic manager including an uplink module, a downlink module, and a physical port for communicating with the outside, where the downlink module is configured with a loop port, where: The downlink module is configured to receive the multicast packet sent by the switching network by using the cyclic port, and send the multicast packet to the uplink module.
  • the uplink module is configured to search for a multicast member port corresponding to the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet, and calculate the multicast packet corresponding to the multicast packet.
  • the number of multicast member ports belonging to the physical port of the egress traffic manager in the multicast member port, and the multicast report according to the number of multicast member ports included in the physical port of the egress traffic manager The file is copied, so that the number of the multicast packets after the replication is the same as the number of the multicast member ports included in the physical port of the egress traffic manager;
  • the unicast packet cache queue is added to the unicast packet buffer queue and sent to the downlink module through the local forwarding channel after being scheduled according to the multicast member port QoS.
  • the downlink module is further configured to send the copied multicast "3" message to the multicast member port included in the physical port of the egress traffic manager.
  • an embodiment of the present invention further provides a multicast replication system, including an egress traffic manager, an ingress traffic manager, and an egress traffic manager connected to the The switching network between the ingress traffic managers.
  • the multicast packet is looped back to itself through the loop port set by itself.
  • the uplink module in the uplink module of the egress traffic manager, implements multicast packet replication for the multicast member port, and the copied multicast packet enters the unicast packet buffer queue according to the priority, according to the multicast member.
  • the port QoS is scheduled, it is sent to the downlink module through the local forwarding channel, and is sent out by the downstream module through the multicast member port included in the egress traffic manager. Therefore, the multicast member port QoS can be scheduled, which can be effectively implemented. Provide QoS guarantees under the condition of saving the bandwidth of the switching network.
  • FIG. 1 is a schematic flowchart of a first multicast replication method in the prior art
  • FIG. 2 is a schematic flowchart of a second multicast replication method in the prior art
  • FIG. 3 is a schematic flowchart of a third multicast replication method in the prior art
  • FIG. 4 is a flowchart of a multicast replication method according to a first embodiment of the present invention.
  • FIG. 5 is a system architecture diagram of a multicast replication method to which a first embodiment of the present invention is applied;
  • FIG. 6 is a schematic view showing the structure of an outlet TM according to a second embodiment of the present invention. detailed description
  • FIG. 4 is a flowchart of a multicast copying method according to a first embodiment of the present invention. As shown in Figure 4, the multicast replication method includes the following steps:
  • Step S101 The downlink module of the egress TM receives the multicast packet sent by the switching network through the cyclic port, and sends the multicast packet to the uplink module.
  • the egress TM includes an uplink module, a downlink module, and a physical port for communicating with the external, the cyclic port is set on the downlink module, and the cyclic port passes the internal loopback channel and the uplink module disposed between the cyclic port and the uplink module.
  • the loop port When the loop port is used as the communication interface between the egress TM and the switching network, after receiving the multicast message from the switching network, the loop port directly sends the received multicast packet from the downlink module to the upper loop through the internal loopback channel.
  • Line module The uplink module stores the received packets in different address spaces in order according to the difference between the destination port and the priority.
  • Step S102 After receiving the multicast packet, the uplink module of the egress TM searches for the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet.
  • a multicast member port where the first uplink multicast replication table stores a group identifier of the multicast packet and a multicast member port corresponding to the group identifier, and the format of the uplink multicast replication table is, for example, Table 1;
  • Step S103 the uplink module of the egress TM calculates the number of multicast member ports of the multicast member port corresponding to the egress traffic manager in the multicast member port corresponding to the multicast packet, and according to the egress traffic manager The number of multicast member ports included in the physical port is copied to the multicast packet, so that the number of the copied multicast packets and the multicast member port included in the physical port of the egress TM are The same number;
  • Step S104 the egress ME adds the copied multicast packet to the unicast packet buffer queue according to the priority, and then sends the packet to the downlink module through the local forwarding channel according to the QoS setting of the multicast member port.
  • the downlink module sends the copied multicast packet to the multicast member port included in the physical port of the egress traffic manager.
  • the local forwarding channel is set between the upstream module and the downlink module of the egress TM, and the to-be-sent packet buffered by the egress module is forwarded to the downlink module through the local forwarding channel.
  • FIG. 5 is a system architecture diagram of a multicast replication method to which the first embodiment of the present invention is applied.
  • the system includes a plurality of line cards and a switching network, wherein each line card can include one or more TMs.
  • Each The line card also includes a network processor (not shown in Figure 5), and the line card is connected to the switching network.
  • TM is a data frame that restores a physical signal on a transmission line (eg, fiber, cable, or wireless channel, etc.) to an agreed format for further processing by the network processor, or completes a reverse process, ie, the data is processed by the network processor The frame is processed, and the processed data frame is converted by the TM into a physical signal on the transmission line and transmitted to the transmission line.
  • the network processor For the multicast packet, the network processor identifies the source information, the destination information, and the preference information of the multicast packet according to the agreed format, and then modifies the packet format according to the current forwarding rule, sends the packet format to the TM, and obtains the multicast from the network processor.
  • the packet sent by the multicast packet to the multicast member port is the entry TM of the multicast packet, and the TM of the multicast member port of the multicast packet is the multicast packet.
  • Text ExportTM The multicast copying method of the first embodiment of the present invention described above is described from the perspective of the ExitTM.
  • TM-4 is an exit TM of the multicast message shown in FIG. 5, and the multicast copy method of the first embodiment of the present invention will be described below by taking the TM-4 shown in FIG. 5 as an example.
  • the TM-4 receives the multicast packet from the switching network through its own cyclic port C, and the cyclic port C directly loops the received multicast packet back to the uplink module of the TM-4 via the internal loopback channel.
  • the uplink module of the TM-4 queries the entry corresponding to the group ID in the uplink multicast replication table according to the group identifier (group ID) carried in the header of the multicast packet, specifically, corresponding to the group ID.
  • the entries include all multicast member ports corresponding to the multicast message.
  • the uplink module of the TM-4 filters out the multicast member ports included in the TM-4 from all the multicast member ports corresponding to the multicast packet, and according to the number of multicast member ports included in the TM-4.
  • the number of copies to be added is "the number of multicast member ports included in the TM-4 minus 1", that is, the number of duplicated multicast packets and the TM-4 are ensured.
  • the number of multicast member ports is the same.
  • TM-4 can query the uplink multicast replication table of the device to learn that all multicast member ports of the multicast packets are four, and two of them are the ports of the TM-4. At this time, the TM-4 only needs to copy one multicast packet to obtain two multicast packets corresponding to two ports.
  • the packet sent by the uplink module of the TM is the switching network. Therefore, after the uplink module of the TM-4 completes the replication of the local multicast member port, it needs to be copied through the local forwarding channel.
  • the multicast packet is forwarded to the local downlink module, and the multicast packet is sent to the network processor through the multicast member port included in the TM-4 in the manner that one multicast packet corresponds to one port. That is, the downlink module stores the multicast packet in the cache of the local multicast member port and sends it to the network processor for further processing to the network processor.
  • the egress TM directly loops back to the local uplink module through the internal loop port, and implements the replication of the multicast message in the TM.
  • the local forwarding channel forwards the copied multicast "3" to the downstream module of the egress TM.
  • the copied multicast packet is queued to the normal unicast queue according to the priority, and the unicast packet is shared. Scheduling, accepting the unified scheduling of the downlink port, its QoS performance can be fully guaranteed; on the other hand, because the loopback and replication of the packet are implemented in the same TM, the multicast packet is only used by the downstream port.
  • the bandwidth of the internal loopback channel is occupied in the process of returning to the uplink module, and the bandwidth of the local forwarding channel is occupied by the uplink module in the process of forwarding the copied multicast packet from the uplink module to the downlink module, without consuming the bandwidth of the switching network.
  • the switching network forwards the bandwidth, which effectively saves the bandwidth of the switching network, thereby improving the replication efficiency.
  • the method before the egress TM receives the multicast packet sent by the switching network through the re-circulation port, the method further includes:
  • the ingress TM receives the multicast packet sent by the network processor, and searches for the egress TM corresponding to the multicast packet in the second uplink multicast replication table according to the group identifier carried in the multicast packet, where the second uplink group
  • the group identifier of the multicast packet stored in the broadcast replication table and the identifier of the exit TM corresponding to the group identifier are only used;
  • the ingress TM copies the multicast packet, so that the number of the copied multicast packets is the same as the number of the egress TMs;
  • the ingress TM sends the multicast message to the egress TM through the switching network.
  • the egress TM completes the multicast replication for the local multicast member port in the chip, where the ingress TM completes the different TM for the multicast member port.
  • TM-0 is the entry of the multicast message shown in Figure 5.
  • the TM, TM-0 after receiving the multicast packet from the network processor, searches the local uplink multicast replication table according to the group ID carried in the multicast packet to learn the egress TM corresponding to the multicast packet. Taking the situation shown in Figure 5 as an example, the egress TM corresponding to the multicast packet includes TM-4 and TM-3. At this time, TM-0 needs to copy the multicast and subtext once (not shown in Figure 5). Shown) to obtain two multicast messages that can be sent to ⁇ -4 and ⁇ -3 via the switching network, respectively.
  • the method before the egress port receives the multicast packet sent by the switching network through the re-circulation port, the method further includes:
  • the switching network receives the multicast packet sent by the ingress port, and searches for the egress packet corresponding to the multicast packet in the multicast replication table according to the group ID carried in the multicast packet, where the multicast replication table stores the a group identifier of the multicast packet and an identifier of the exit TM corresponding to the group identifier;
  • the switching network replicates the multicast packets so that the number of replicated multicast packets is the same as the number of egress TMs.
  • the switching network sends a multicast message to the egress TM, that is, sends a multicast message to each egress TM.
  • the egress TM completes the multicast packet replication for the local multicast member port in the chip, where the switching network completes different TMs for the multicast member port.
  • TM-0 is the ingress TM of the multicast packet shown in FIG. 5, that is, after the switching network receives the multicast packet from the TM-0, the switching network searches for the locally stored multicast replication table according to the group ID carried in the multicast packet. To know the egress TM corresponding to the multicast packet. As shown in Figure 5, the egress TM corresponding to the multicast packet includes TM-4 and TM-3. In this case, the switching network needs to copy the multicast packet (as shown in Figure 5). Show), to obtain two multicast messages that can be sent to ⁇ -4 and ⁇ -3 respectively.
  • the multicast packet sent to the uplink module carries an identifier for identifying a cyclic port of the multicast packet from the egress TM.
  • the egress TM configures an identifier for the multicast packet before the multicast packet is sent to the uplink module, so that the multicast packet can be It is different from the multicast packet received from the external network processor when the egress TM is used as the ingress traffic manager of other multicast packets. That is, after the uplink module of the egress TM detects that the received multicast packet carries the identifier of the re-circulating port for identifying the multicast packet from the egress TM, step S102 to step S104 in the above embodiment are executed.
  • FIG. 6 is a schematic view showing the structure of an outlet TM according to a second embodiment of the present invention.
  • the egress TM includes an uplink module 202 and a downlink module 201.
  • the egress TM further includes a physical port (not shown) for communicating with the outside, and the downlink module is provided with a cyclic port, wherein
  • the downlink module 201 is configured to receive the multicast packet sent by the switching network through the cyclic port, and send the multicast packet to the uplink module 202;
  • the uplink module 202 is configured to search for a multicast member port corresponding to the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet, and calculate a corresponding corresponding to the multicast packet.
  • the downlink module 201 is further configured to send the copied multicast text to the multicast member port included in the physical port of the egress traffic manager.
  • the process of performing the multicast replication in the egress TM of the foregoing embodiment is the same as the multicast replication method in the first embodiment of the present invention, and therefore is not described herein again.
  • the downlink module after receiving the multicast packet, the downlink module directly loops back to the uplink module through the internal loop port, and the uplink module searches for the uplink multicast replication table to implement in the uplink module of the TM.
  • the multicast packet is copied, and the copied multicast packet is forwarded to the downlink module of the local TM through the local forwarding channel.
  • the copied multicast packet enters the unicast packet buffer queue according to the priority.
  • the hop scheduling is shared with the unicast packet, and the unicast scheduling of the downlink port is accepted.
  • the QoS performance of the downlink port can be fully guaranteed.
  • the loopback and replication of the packet are implemented in the same TM.
  • the process of occupying the bandwidth of the internal loopback channel and occupying the bandwidth of the local forwarding channel during the process of forwarding the copied multicast packet from the upstream to the downlink does not consume the bandwidth of the switching network and the forwarding bandwidth of the switching network, thereby effectively saving the bandwidth. Switch network bandwidth, which improves replication efficiency.
  • the downlink module is further configured to add, in the multicast packet sent to the uplink module, an identifier for identifying the cyclic port of the multicast packet from the egress traffic manager.
  • the downlink module configures an identifier for the multicast packet before the multicast packet is sent to the uplink module, so that the multicast packet can be It is different from the multicast message received by the external network processor when the egress TM is used as the ingress traffic manager of other multicast messages. That is, the uplink module performs the corresponding operation if it detects that the received multicast packet carries an identifier for identifying the multicast packet from the egress port of the egress port. With this arrangement, the egress TM can be used as an entry point for other multicast messages.
  • a third embodiment of the present invention provides a multicast replication system including an egress TM, an entry TM, and a switching network connected between the egress TM and the portal TM provided by the second embodiment of the present invention.
  • the chip-level multicast packet replication for different egress packets corresponding to the multicast packet is completed by the ingress TM, and the copied packet is sent to each egress TM through the switching network. And then the TM completes the port for the multicast member port corresponding to the multicast message.
  • the multicast packets are transmitted and sent out through the local multicast member port.
  • the multicast packets are sent from the external network processor to the switching network.
  • the multicast packets are sent to the switching network.
  • the chip-level multicast packets of the different egress TMs are copied, and the copied packets are respectively sent to the egress TMs, and the TM completes the port-level group for the multicast member ports corresponding to the multicast packets.
  • the broadcast message is copied and sent out via the local multicast member port.
  • the chip-level multicast copy of the different egress TM corresponding to the multicast message is completed by the switching network.
  • the multicast packet copied by the egress TM can be queued to the common unicast queue, and the unicast packet is shared with the queue scheduling, and the unified scheduling of the downlink port is accepted, and the Qos performance is obtained.
  • the internal loopback channel bandwidth is occupied only during the downlink loopback to the uplink queue, and During the process of forwarding the copied multicast packet from the upstream to the downlink, the bandwidth of the local forwarding channel is occupied without consuming the bandwidth of the switching network and the forwarding bandwidth of the switching network.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

The embodiments of the invention provide a multicast duplication method, device and system. The method includes: the downlink module of an egress Traffic Manager (TM) receives, with a circle port, a multicast message sent from a switching network, and sends it to the uplink module; the uplink module of the egress TM searches for the corresponding multicast member ports according to the group identifier carried in the multicast message; the uplink module duplicates the multicast message according to the number of the multicast member ports included in the egress TM, adds the duplicated multicast messages to the unicast message buffering queue according to the priority, and sends them to the downlink module through a local forwarding channel after configuring the scheduler according to the Quality of Service (QoS) of the multicast member ports, to make the duplicated multicast messages sent out. The multicast duplication method, device and system in the embodiments of the invention can realize providing QoS guarantee in the situation of effectively saving the switching network bandwidth, and can further improve the bandwidth utilization rate of the switching network when the switching network performs multicast message duplication for different egress TMs.

Description

组播复制方法、 装置及系统  Multicast copying method, device and system
技术领域 Technical field
本发明实施例涉及通信技术领域, 尤其是一种组播复制方法、 装置及系 统。 背景技术  Embodiments of the present invention relate to the field of communications technologies, and in particular, to a multicast replication method, apparatus, and system. Background technique
组播是将一份上行报文,复制为多份并分发到多个下行端口的流量模型。 随着 HDTV等网络应用的推广, 组播技术得到了越来越广泛的应用, 组播性 能也已成为大型网络设备如路由器和交换机的重要性能指标之一。 目前大型 转发系统的架构通常由多块线卡( Line Card )和大容量交换网( Fabric )构成, 线卡上的包处理转发引擎(PFE ) 负责完成报文解析、 转发功能, 交换网完 成交换功能。 由于功能的复杂性, PFE通常被分解为包处理器( PP )和流量 管理器(TM ) 两大模块, 其中由 PP负责包处理和确定转发规则, 由 TM负 责转发、 复制和服务质量(QoS )保证等功能。 组播报文的完整处理流程通 常包括:组播入端口 ->上行 ΡΡ->ϋ # ΤΜ->交换网 ->下行 ΤΜ->下行 ΡΡ -〉组播 出端口, 其中, 上行是指报文从数据接口至交换网方向传送, 下行是指报文 从交换网至数据接口方向传送。 组播复制性能主要取决于 ΤΜ和交换网的实 现方式和性能。  Multicast is a traffic model that copies an upstream packet into multiple copies and distributes it to multiple downstream ports. With the promotion of network applications such as HDTV, multicast technology has become more and more widely used, and multicast performance has become one of the important performance indicators of large-scale network devices such as routers and switches. At present, the architecture of a large-scale forwarding system usually consists of multiple Line Cards and a large-capacity switching network. The Packet Processing and Forwarding Engine (PFE) on the line card is responsible for packet parsing and forwarding, and the switching network performs switching. Features. Due to the complexity of the function, the PFE is usually decomposed into two modules: the packet processor (PP) and the traffic manager (TM), where the PP is responsible for packet processing and determining forwarding rules, and the TM is responsible for forwarding, replication, and quality of service (QoS). ) Guaranteed and other functions. The complete process of multicast packets usually includes: multicast ingress port->uplinkΡΡ->ϋ# ΤΜ->switched network->downlinkΤΜ->downstreamΡΡ->multicast outgoing port, where uplink refers to packet The data is transmitted from the data interface to the switching network. The downlink refers to the transmission of packets from the switching network to the data interface. The performance of multicast replication depends mainly on the implementation and performance of the switching network.
现有技术中通常采用以下三种方法进行组播复制。 其中, 图 1为现有 技术中第一种组播复制方法的流程示意图, 图 2为现有技术中第二种组播 复制方法的流程示意图, 图 3为现有技术中第三种组播复制方法的流程示 意图。如图 1所示, 现有技术中的一种组播复制方法为上行 ΤΜ复制, 即: 所有复制工作在组播源所在上行 ΤΜ模块完成, 被复制出来的多份组播报 文分别入上行队列, 经由交换网进行转发。 当采用这种方法进行组播复制 时 ,由于组播源所在上行 TM模块已完成针对多个出端口的组播报文复制 , 使得一个组播报文对应于一个出端口, 复制后的组播报文可按照携带的优 先级进入单播队列。 根据出端口的拥塞状况及报文的优先级对上行队列中 的组播报文进行调度,能够提供 QoS保障,但若多个出端口不在同一线卡, 则 TM至交换网的带宽消耗严重, 成为瓶颈, 例如 10G的组播源流量, 在 有 4个组播成员位于其它线卡上的情况下,将产生 40G的交换网上行带宽 需求。如图 2所示,现有技术中的又一种组播复制方法为交换网复制方案, 具体为: 先由交换网将从输入侧线卡接收到的组播报文复制到组播成员所 在下行 TM模块, 再由下行 TM模块进一步将交换网转发来的组播报文复 制到所有成员端口。 当采用这种方法进行组播复制时, 由于在组播源所在 上行 TM模块和交换网中均未形成组播报文与出端口——对应的关系, 不 能够针对出端口对上行队列的组播报文进行调度, 并且, 由组播成员所在 下行 TM模块从交换网接收组播报文后直接将该组播报文复制到所有成员 端口, 此时由于不能根据出端口进行组播报文的緩存和调度, 同时由于上 行组播源向交换网发送报文, 不受某一个下行出端口的调度控制, 这样也 无法实现出端口对上行队列中的组播报文的调度, 所以不能够提供 QoS 保障。 如图 3所示, 现有技术中的另一种组播复制方法为循环树复制方案, 即: 组播源所在上行 TM模块采用类似于二叉树的方式将报文复制并通过交 换网发送到作为中间节点的下行 TM模块, 其中作为中间节点的下行模块不 是组播报文的成员端口所在的下行 TM模块,再由作为中间节点的下行 TM 模块将报文进行次一级二叉树复制, 若复制后的组播报文数量与成员端口的 数量相同, 则将复制后的报文通过交换网发送到成员端口所在的下行 TM模 块, 若复制后的组播报文数量仍未达到成员端口的数量, 则将复制后的报文 通过交换网发送到下一级中间节点进行复制, 直到通过数级循环复制到所有 成员端口。 当采用这种方法进行组播复制时, 若成员端口很多, 则需要多次 选择中间节点做复制代理, 一份流量多次经过交换网, 严重消耗交换网带宽。 可以看出, 现有技术的组播复制方法不能在有效节约交换网带宽的同时 提供 QoS保障。 发明内容 In the prior art, the following three methods are generally used for multicast replication. 1 is a schematic flowchart of a first multicast replication method in the prior art, FIG. 2 is a schematic flowchart of a second multicast replication method in the prior art, and FIG. 3 is a third multicast in the prior art. Schematic diagram of the replication method. As shown in FIG. 1 , a multicast replication method in the prior art is uplink replication, that is, all replication work is completed in the uplink module of the multicast source, and multiple multicast packets are copied. The text enters the uplink queue separately and is forwarded through the switching network. When multicast replication is performed in this way, the multicast module for the multicast source is configured to replicate multicast packets for multiple egress ports. This allows a multicast packet to correspond to an egress port. The packet can enter the unicast queue according to the priority carried. The QoS guarantee can be provided by scheduling the multicast packets in the uplink queue according to the congestion status of the egress port and the priority of the packets. However, if multiple egress ports are not on the same line card, the bandwidth consumption of the TM to the switching network is severe. As a bottleneck, for example, 10G multicast source traffic, when there are 4 multicast members on other line cards, will generate 40G switching network line bandwidth requirements. As shown in FIG. 2, another multicast replication method in the prior art is a switching network replication solution, where: the switching network first copies the multicast packet received from the input side line card to the downlink of the multicast member. The TM module further copies the multicast packets forwarded by the switching network to all member ports by the downlink TM module. When the multicast replication is performed in this way, the multicast packets are not formed in the uplink TM module and the switching network where the multicast source resides. The broadcast packet is scheduled, and the multicast packet is forwarded by the multicast member to the multicast network. The multicast packet is copied to all member ports. Cache and scheduling. At the same time, because the upstream multicast source sends packets to the switching network, it is not subject to the scheduling control of a certain downlink port. Therefore, the outbound port can not schedule the multicast packets in the uplink queue. Provide QoS guarantees. As shown in FIG. 3, another multicast replication method in the prior art is a cyclic tree replication scheme, that is, the uplink TM module in which the multicast source is located uses a binary tree-like manner to copy the packet and send it to the switch network. The downlink module of the intermediate node, wherein the downlink module as the intermediate node is not the downlink TM module where the member port of the multicast packet is located, and the downlink TM module as the intermediate node performs the secondary binary tree replication of the packet. If the number of multicast packets is the same as the number of member ports, the number of the multicast packets is the same as that of the member ports. Then, the copied packet is sent to the next intermediate node through the switching network for replication until it is copied to all member ports through a series of loops. When using this method for multicast replication, if there are many member ports, you need to use multiple times. The intermediate node is selected as the replication agent, and one traffic passes through the switching network multiple times, which seriously consumes the bandwidth of the switching network. It can be seen that the prior art multicast replication method cannot provide QoS guarantee while effectively saving the bandwidth of the switching network. Summary of the invention
本发明实施例的目的在于提供一种组播复制方法、 装置及系统, 用以实 现在有效节约交换网带宽的条件下提供 QoS保障。  The purpose of the embodiments of the present invention is to provide a multicast replication method, apparatus, and system for providing QoS guarantee under the condition that the bandwidth of the switching network is effectively saved.
本发明实施例提供一种组播复制方法, 包括:  The embodiment of the invention provides a multicast replication method, including:
出口流量管理器的下行模块通过循环端口接收交换网发送的组播报文, 并将所述组播 ·艮文发送至上行模块, 其中, 所述出口流量管理器包括所述上 行模块、 下行模块和用于与外部通信的物理端口, 所述下行模块设置有所述 循环端口;  The downlink module of the egress traffic manager receives the multicast packet sent by the switching network through the recurring port, and sends the multicast packet to the uplink module, where the egress traffic manager includes the uplink module and the downlink module. And a physical port for communicating with the outside, the downlink module is provided with the cyclic port;
所述出口流量管理器的上行模块根据所述组播报文中所携带的组标识, 在第一上行组播复制表中查找与所述组播报文对应的组播成员端口;  The egress module of the egress traffic manager searches for the multicast member port corresponding to the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet;
所述出口流量管理器的上行模块计算所述组播报文对应的组播成员端口 中属于所述出口流量管理器的物理端口的组播成员端口的数量, 并根据所述 出口流量管理器的物理端口所包括的组播成员端口的数量对所述组播报文进 行复制 , 以使复制后的所述组播报文的数量与所述出口流量管理器的物理端 口所包括的组播成员端口的数量相同;  The uplink module of the egress traffic manager calculates the number of multicast member ports of the multicast member port corresponding to the egress packet, and according to the egress traffic manager The number of multicast member ports included in the physical port is copied to the multicast packet, so that the number of the copied multicast packets and the multicast member included in the physical port of the egress traffic manager are The number of ports is the same;
所述出口流量管理器的上行模块将复制后的所述组播报文按优先级加入 单播报文緩存队列, 按照组播成员端口 QoS设置调度以后, 通过本地转发通 道发送至所述下行模块, 并由所述下行模块将所述复制后的组播报文通过所 述出口流量管理器的物理端口所包括的组播成员端口向外发送。  The uplink module of the egress traffic manager adds the copied multicast packet to the unicast packet buffer queue according to the priority, and then sends the packet to the downlink module through the local forwarding channel according to the QoS setting of the multicast member port. And the downlink module sends the duplicated multicast packet to the multicast member port included in the physical port of the egress traffic manager.
根据本发明的另一方面, 本发明实施例还提供一种出口流量管理器, 包 括上行模块、 下行模块和用于与外部通信的物理端口, 所述下行模块设置有 循环端口, 其中: 所述下行模块用于通过循环端口接收交换网发送的组播报文, 并将所述 组播报文发送至上行模块; According to another aspect of the present invention, an embodiment of the present invention further provides an egress traffic manager, including an uplink module, a downlink module, and a physical port for communicating with the outside, where the downlink module is configured with a loop port, where: The downlink module is configured to receive the multicast packet sent by the switching network by using the cyclic port, and send the multicast packet to the uplink module.
所述上行模块用于根据所述组播报文中所携带的组标识, 在第一上行组 播复制表中查找与所述组播报文对应的组播成员端口; 计算所述组播报文对 应的组播成员端口中属于所述出口流量管理器的物理端口的组播成员端口的 数量, 并根据所述出口流量管理器的物理端口所包括的组播成员端口的数量 对所述组播报文进行复制 , 以使复制后的所述组播报文的数量与所述出口流 量管理器的物理端口所包括的组播成员端口的数量相同; 将复制后的所述组 播报文按优先级加入单播报文緩存队列, 按照组播成员端口 QoS设置调度以 后, 通过本地转发通道发送至所述下行模块;  The uplink module is configured to search for a multicast member port corresponding to the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet, and calculate the multicast packet corresponding to the multicast packet The number of multicast member ports belonging to the physical port of the egress traffic manager in the multicast member port, and the multicast report according to the number of multicast member ports included in the physical port of the egress traffic manager The file is copied, so that the number of the multicast packets after the replication is the same as the number of the multicast member ports included in the physical port of the egress traffic manager; The unicast packet cache queue is added to the unicast packet buffer queue and sent to the downlink module through the local forwarding channel after being scheduled according to the multicast member port QoS.
所述下行模块还用于将所述复制后的组播"¾文通过所述出口流量管理器 的物理端口所包括的组播成员端口向外发送。  The downlink module is further configured to send the copied multicast "3" message to the multicast member port included in the physical port of the egress traffic manager.
根据本发明的又一方面, 本发明实施例还提供一种组播复制系统, 包括 本发明实施例提供的出口流量管理器、 入口流量管理器, 以及连接在所述出 口流量管理器与所述入口流量管理器之间的交换网。  According to still another aspect of the present invention, an embodiment of the present invention further provides a multicast replication system, including an egress traffic manager, an ingress traffic manager, and an egress traffic manager connected to the The switching network between the ingress traffic managers.
根据本发明实施例提供的组播复制方法、 装置及系统, 由于出口流量管 理器的下行模块在接入到组播报文后, 通过自身设置的循环端口将该组播报 文环回到自身的上行模块, 在出口流量管理器的上行模块中实现了针对组播 成员端口的组播报文复制 , 复制后的所述组播报文按优先级进入单播报文緩 存队列, 按照组播成员端口 QoS设置调度以后, 通过本地转发通道发送至下 行模块,并由下行模块通过出口流量管理器所包含的组播成员端口向外发送, 所以能够组播成员端口 QoS进行调度,从而能够实现在有效节约交换网带宽 的条件下提供 QoS保障。 附图说明  According to the multicast replication method, device, and system provided by the embodiment of the present invention, after the downlink module of the egress traffic manager accesses the multicast packet, the multicast packet is looped back to itself through the loop port set by itself. The uplink module, in the uplink module of the egress traffic manager, implements multicast packet replication for the multicast member port, and the copied multicast packet enters the unicast packet buffer queue according to the priority, according to the multicast member. After the port QoS is scheduled, it is sent to the downlink module through the local forwarding channel, and is sent out by the downstream module through the multicast member port included in the egress traffic manager. Therefore, the multicast member port QoS can be scheduled, which can be effectively implemented. Provide QoS guarantees under the condition of saving the bandwidth of the switching network. DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作简单地介绍, 显而易见地, 下面 描述中的附图仅仅是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following will be true. The drawings used in the examples or the description of the prior art are briefly introduced. It is obvious that the drawings in the following description are only some embodiments of the present invention, and are not creative to those skilled in the art. Other drawings can also be obtained from these drawings on the premise of labor.
图 1为现有技术中第一种组播复制方法的流程示意图;  1 is a schematic flowchart of a first multicast replication method in the prior art;
图 2为现有技术中第二种组播复制方法的流程示意图;  2 is a schematic flowchart of a second multicast replication method in the prior art;
图 3为现有技术中第三种组播复制方法的流程示意图;  3 is a schematic flowchart of a third multicast replication method in the prior art;
图 4为本发明第一实施例的组播复制方法的流程图;  4 is a flowchart of a multicast replication method according to a first embodiment of the present invention;
图 5为应用本发明第一实施例的组播复制方法的系统架构图;  5 is a system architecture diagram of a multicast replication method to which a first embodiment of the present invention is applied;
图 6为本发明第二实施例的出口 TM的结构示意图。 具体实施方式  Figure 6 is a schematic view showing the structure of an outlet TM according to a second embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而 不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做 出创造性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
实施例一  Embodiment 1
图 4为本发明第一实施例的组播复制方法的流程图。 如图 4所示, 该组 播复制方法包括以下步骤:  FIG. 4 is a flowchart of a multicast copying method according to a first embodiment of the present invention. As shown in Figure 4, the multicast replication method includes the following steps:
步骤 S101 , 出口 TM的下行模块通过循环端口接收交换网发送的组播报 文, 并将所述组播报文发送至上行模块;  Step S101: The downlink module of the egress TM receives the multicast packet sent by the switching network through the cyclic port, and sends the multicast packet to the uplink module.
其中, 出口 TM包括上行模块、 下行模块和用于与外部通信的物理端口, 循环端口设置在下行模块上, 且循环端口通过设置在该循环端口与上行模块 之间的内部环回通道与上行模块相连接, 当该循环端口作为出口 TM与交换 网的通信接口, 从交换网接收组播 4艮文后, 该循环端口通过内部环回通道直 接将所接收的组播报文由下行模块发送至上行模块。 上行模块对接收的报文 按照目的端口和优先级的差异将其按顺序存储在不同的地址空间。 步骤 S102, 所述出口 TM的上行模块接收到所述组播报文后, 根据所述 组播报文中所携带的组标识, 在第一上行组播复制表中查找与所述组播报文 对应的组播成员端口, 所述第一上行组播复制表中存储有所述组播报文的组 标识和与所述组标识相对应的组播成员端口, 该上行组播复制表的格式例如 表 1所示; The egress TM includes an uplink module, a downlink module, and a physical port for communicating with the external, the cyclic port is set on the downlink module, and the cyclic port passes the internal loopback channel and the uplink module disposed between the cyclic port and the uplink module. When the loop port is used as the communication interface between the egress TM and the switching network, after receiving the multicast message from the switching network, the loop port directly sends the received multicast packet from the downlink module to the upper loop through the internal loopback channel. Line module. The uplink module stores the received packets in different address spaces in order according to the difference between the destination port and the priority. Step S102: After receiving the multicast packet, the uplink module of the egress TM searches for the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet. a multicast member port, where the first uplink multicast replication table stores a group identifier of the multicast packet and a multicast member port corresponding to the group identifier, and the format of the uplink multicast replication table is, for example, Table 1;
表 1  Table 1
Figure imgf000008_0001
步骤 S103 , 所述出口 TM的上行模块计算所述组播报文对应的组播成员 端口中属于所述出口流量管理器的物理端口的组播成员端口的数量, 并根据 所述出口流量管理器的物理端口所包括的组播成员端口的数量对所述组播报 文进行复制, 以使复制后的所述组播报文的数量与所述出口 TM的物理端口 所包括的组播成员端口的数量相同;
Figure imgf000008_0001
Step S103, the uplink module of the egress TM calculates the number of multicast member ports of the multicast member port corresponding to the egress traffic manager in the multicast member port corresponding to the multicast packet, and according to the egress traffic manager The number of multicast member ports included in the physical port is copied to the multicast packet, so that the number of the copied multicast packets and the multicast member port included in the physical port of the egress TM are The same number;
步骤 S104, 所述出口 TM将复制后的所述组播报文按优先级加入单播报 文緩存队列, 按照组播成员端口 QoS设置调度以后, 通过本地转发通道发送 至下行模块, 并由所述下行模块将所述复制后的组播报文通过所述出口流量 管理器的物理端口所包括的组播成员端口向外发送。 其中, 本地转发通道设 置在出口 TM的上行模块与下行模块之间, 上行模块所緩存的待发送报文通 过本地转发通道转发至下行模块。  Step S104, the egress ME adds the copied multicast packet to the unicast packet buffer queue according to the priority, and then sends the packet to the downlink module through the local forwarding channel according to the QoS setting of the multicast member port. The downlink module sends the copied multicast packet to the multicast member port included in the physical port of the egress traffic manager. The local forwarding channel is set between the upstream module and the downlink module of the egress TM, and the to-be-sent packet buffered by the egress module is forwarded to the downlink module through the local forwarding channel.
图 5为应用本发明第一实施例的组播复制方法的系统架构图。 如图 5所 示, 该系统包括多个线卡和交换网, 其中各线卡可包括一个或多个 TM。 各 线卡还包括网络处理器(图 5中未示出) , 且线卡与交换网连接。 其中, TM 是将传输线路(例如光纤、 电缆或无线信道等)上的物理信号恢复成约定格 式的数据帧, 以由网络处理器进一步处理, 或者完成反向过程, 即由网络处 理器对数据帧进行处理, 并由 TM将处理后的数据帧转化为传输线路上的物 理信号, 并传送到传输线路上。 对于组播报文, 网络处理器按照约定格式识 别组播报文的源信息、 目的信息和优选级信息, 按照当时的转发规则修改报 文格式后发送至 TM, 从网络处理器获取该组播报文并将该组播报文经由交 换网复制后发送至组播成员端口的 TM为该组播报文的入口 TM, 包含该组 播报文的组播成员端口的 TM为该组播报文的出口 TM。 上述本发明第一实 施例的组播复制方法是从出口 TM的角度进行描述的。 FIG. 5 is a system architecture diagram of a multicast replication method to which the first embodiment of the present invention is applied. As shown in FIG. 5, the system includes a plurality of line cards and a switching network, wherein each line card can include one or more TMs. Each The line card also includes a network processor (not shown in Figure 5), and the line card is connected to the switching network. Where TM is a data frame that restores a physical signal on a transmission line (eg, fiber, cable, or wireless channel, etc.) to an agreed format for further processing by the network processor, or completes a reverse process, ie, the data is processed by the network processor The frame is processed, and the processed data frame is converted by the TM into a physical signal on the transmission line and transmitted to the transmission line. For the multicast packet, the network processor identifies the source information, the destination information, and the preference information of the multicast packet according to the agreed format, and then modifies the packet format according to the current forwarding rule, sends the packet format to the TM, and obtains the multicast from the network processor. The packet sent by the multicast packet to the multicast member port is the entry TM of the multicast packet, and the TM of the multicast member port of the multicast packet is the multicast packet. Text ExportTM. The multicast copying method of the first embodiment of the present invention described above is described from the perspective of the ExitTM.
具体地, TM-4为图 5中所示的组播 4艮文的一个出口 TM, 下面以图 5中 所示的 TM-4为例对本发明第一实施例的组播复制方法进行说明。 TM-4通过 自身的循环端口 C从交换网接收组播报文, 并由该循环端口 C经由内部环回 通道直接将所接收的组播报文环回到 TM-4的上行模块。 之后, TM-4的上行 模块根据该组播报文在报头中携带的组标识(组 ID )查询上行组播复制表中 与该组 ID相对应的条目, 具体地, 与该组 ID相对应的条目中包括与该组播 才艮文对应的全部组播成员端口。  Specifically, TM-4 is an exit TM of the multicast message shown in FIG. 5, and the multicast copy method of the first embodiment of the present invention will be described below by taking the TM-4 shown in FIG. 5 as an example. The TM-4 receives the multicast packet from the switching network through its own cyclic port C, and the cyclic port C directly loops the received multicast packet back to the uplink module of the TM-4 via the internal loopback channel. Afterwards, the uplink module of the TM-4 queries the entry corresponding to the group ID in the uplink multicast replication table according to the group identifier (group ID) carried in the header of the multicast packet, specifically, corresponding to the group ID. The entries include all multicast member ports corresponding to the multicast message.
接下来, TM-4的上行模块从该组播报文对应的全部组播成员端口中筛选 出 TM-4所包括的组播成员端口,并根据 TM-4所包括的组播成员端口的数量 对组播报文进行复制, 所需增加复制的份数为 "TM-4所包括的组播成员端口 的数量减 "1" , 即确保复制后的组播报文的份数与 TM-4所包括的组播成员 端口的数量相同。 例如 TM-4通过查询自身的上行组播复制表获知组播报文 的全部组播成员端口为 4个, 其中 2个为 TM-4 自身的端口, 则此时 TM-4 仅需对组播报文复制一份, 以获得分别对应 2个端口的 2份组播报文。  Next, the uplink module of the TM-4 filters out the multicast member ports included in the TM-4 from all the multicast member ports corresponding to the multicast packet, and according to the number of multicast member ports included in the TM-4. To copy the multicast packets, the number of copies to be added is "the number of multicast member ports included in the TM-4 minus 1", that is, the number of duplicated multicast packets and the TM-4 are ensured. The number of multicast member ports is the same. For example, TM-4 can query the uplink multicast replication table of the device to learn that all multicast member ports of the multicast packets are four, and two of them are the ports of the TM-4. At this time, the TM-4 only needs to copy one multicast packet to obtain two multicast packets corresponding to two ports.
由于 TM的上行模块所对应的报文发送对象为交换网, 所以 TM-4的上 行模块完成了本地组播成员端口的复制后, 需通过本地转发通道将复制后的 组播报文转发至本地下行模块, 并按照一份组播报文对应一个端口的方式, 将组播报文通过 TM-4所包括的组播成员端口向网络处理器发送。 即, 下行 模块将组播报文存入本地组播成员端口的緩存, 并发送至网络处理器, 以提 供给网络处理器进行进一步的处理。 The packet sent by the uplink module of the TM is the switching network. Therefore, after the uplink module of the TM-4 completes the replication of the local multicast member port, it needs to be copied through the local forwarding channel. The multicast packet is forwarded to the local downlink module, and the multicast packet is sent to the network processor through the multicast member port included in the TM-4 in the manner that one multicast packet corresponds to one port. That is, the downlink module stores the multicast packet in the cache of the local multicast member port and sends it to the network processor for further processing to the network processor.
根据上述实施例的组播复制方法, 由于出口 TM收到组播报文后, 直接 通过内部循环端口环回到本地上行模块, 并且在本 TM中实现对组播 4艮文的 复制, 并通过本地转发通道将复制后的组播"¾文转发至所述出口 TM的下行 模块, 一方面, 由于复制后的组播报文按照优先级入队到普通单播队列, 和 单播报文共享队列调度, 接受下行端口的统一调度, 其 Qos性能可以得到充 分保证; 另一方面, 由于报文的环回和复制均在同一 TM内实现, 仅在由循 环端口将组播艮文由下行模块环回至上行模块的过程中占用内部环回通道带 宽, 和由上行模块将复制后的组播报文由上行模块转发至下行模块的过程中 占用本地转发通道带宽, 而不消耗上交换网带宽和交换网转发带宽, 有效节 约了交换网带宽, 从而提高了复制效率。  According to the multicast replication method of the foregoing embodiment, after the egress packet receives the multicast packet, the egress TM directly loops back to the local uplink module through the internal loop port, and implements the replication of the multicast message in the TM. The local forwarding channel forwards the copied multicast "3" to the downstream module of the egress TM. On the one hand, the copied multicast packet is queued to the normal unicast queue according to the priority, and the unicast packet is shared. Scheduling, accepting the unified scheduling of the downlink port, its QoS performance can be fully guaranteed; on the other hand, because the loopback and replication of the packet are implemented in the same TM, the multicast packet is only used by the downstream port. The bandwidth of the internal loopback channel is occupied in the process of returning to the uplink module, and the bandwidth of the local forwarding channel is occupied by the uplink module in the process of forwarding the copied multicast packet from the uplink module to the downlink module, without consuming the bandwidth of the switching network. The switching network forwards the bandwidth, which effectively saves the bandwidth of the switching network, thereby improving the replication efficiency.
进一步地, 在上述实施例的组播复制方法中, 出口 TM通过循环端口接 收交换网发送的组播报文之前, 还包括:  Further, in the multicast replication method of the foregoing embodiment, before the egress TM receives the multicast packet sent by the switching network through the re-circulation port, the method further includes:
入口 TM接收网络处理器发送的组播报文, 并根据组播报文中所携带的 组标识, 在第二上行组播复制表中查找与组播报文对应的出口 TM, 所述第 二上行组播复制表中存储有所述组播报文的组标识和与所述组标识相对应的 出口 TM的标 i只符;  The ingress TM receives the multicast packet sent by the network processor, and searches for the egress TM corresponding to the multicast packet in the second uplink multicast replication table according to the group identifier carried in the multicast packet, where the second uplink group The group identifier of the multicast packet stored in the broadcast replication table and the identifier of the exit TM corresponding to the group identifier are only used;
入口 TM对组播报文进行复制,以使复制后的组播报文的数量与出口 TM 的数量相同;  The ingress TM copies the multicast packet, so that the number of the copied multicast packets is the same as the number of the egress TMs;
入口 TM通过交换网向出口 TM发送所述组播才艮文。  The ingress TM sends the multicast message to the egress TM through the switching network.
具体地, 在上述实施例的组播复制方法中, 出口 TM在芯片内部完成了 针对本地组播成员端口的组播才艮文复制, 此处由入口 TM完成针对组播成员 端口所在的不同 TM的组播报文复制。 TM-0为图 5中所示的组播报文的入口 TM, TM-0从网络处理器接收到组播报文后,根据组播报文所携带的组 ID查 找本地的上行组播复制表, 以获知该组播报文所对应的出口 TM。 以图 5 中 所示情形为例, 该组播报文所对应的出口 TM包括 TM-4和 TM-3 , 则此时 TM-0需对组播 ·艮文进行一次复制(图 5中未示出), 以获得可分别经由交换 网发送至 ΤΜ-4和 ΤΜ-3的两份组播 4艮文。 Specifically, in the multicast replication method of the foregoing embodiment, the egress TM completes the multicast replication for the local multicast member port in the chip, where the ingress TM completes the different TM for the multicast member port. Multicast packet replication. TM-0 is the entry of the multicast message shown in Figure 5. The TM, TM-0, after receiving the multicast packet from the network processor, searches the local uplink multicast replication table according to the group ID carried in the multicast packet to learn the egress TM corresponding to the multicast packet. Taking the situation shown in Figure 5 as an example, the egress TM corresponding to the multicast packet includes TM-4 and TM-3. At this time, TM-0 needs to copy the multicast and subtext once (not shown in Figure 5). Shown) to obtain two multicast messages that can be sent to ΤΜ-4 and ΤΜ-3 via the switching network, respectively.
进一步地, 在上述实施例的组播复制方法中, 出口 ΤΜ通过循环端口接 收交换网发送的组播报文之前, 还包括:  Further, in the multicast replication method of the foregoing embodiment, before the egress port receives the multicast packet sent by the switching network through the re-circulation port, the method further includes:
交换网接收入口 ΤΜ发送的组播报文, 根据组播报文中所携带的组 ID, 在组播复制表中查找与组播报文对应的出口 TM, 所述组播复制表中存储有 所述组播报文的组标识和与所述组标识相对应的出口 TM的标识符;  The switching network receives the multicast packet sent by the ingress port, and searches for the egress packet corresponding to the multicast packet in the multicast replication table according to the group ID carried in the multicast packet, where the multicast replication table stores the a group identifier of the multicast packet and an identifier of the exit TM corresponding to the group identifier;
交换网对组播报文进行复制, 以使复制后的组播报文的数量与出口 TM 的数量相同;  The switching network replicates the multicast packets so that the number of replicated multicast packets is the same as the number of egress TMs.
交换网向出口 TM发送组播才艮文, 即分别向各出口 TM发送一个组播才艮 文。  The switching network sends a multicast message to the egress TM, that is, sends a multicast message to each egress TM.
具体地, 在上述实施例的组播复制方法中, 出口 TM在芯片内部完成了 针对本地的组播成员端口的组播报文复制, 此处由交换网完成针对组播成员 端口所在的不同 TM的组播报文复制。 TM-0为图 5中所示的组播报文的入口 TM , 即交换网从 TM-0接收组播报文后, 根据组播报文所携带的组 ID查找 本地存储的组播复制表, 以获知该组播报文所对应的出口 TM。 以图 5 中所 示情形为例 , 该组播报文所对应的出口 TM包括 TM-4和 TM-3 , 则此时交换 网需对组播 ·艮文进行一次复制(如图 5中所示), 以获得可分别发送至 ΤΜ-4 和 ΤΜ-3的两份组播报文。  Specifically, in the multicast replication method of the foregoing embodiment, the egress TM completes the multicast packet replication for the local multicast member port in the chip, where the switching network completes different TMs for the multicast member port. Multicast packet replication. TM-0 is the ingress TM of the multicast packet shown in FIG. 5, that is, after the switching network receives the multicast packet from the TM-0, the switching network searches for the locally stored multicast replication table according to the group ID carried in the multicast packet. To know the egress TM corresponding to the multicast packet. As shown in Figure 5, the egress TM corresponding to the multicast packet includes TM-4 and TM-3. In this case, the switching network needs to copy the multicast packet (as shown in Figure 5). Show), to obtain two multicast messages that can be sent to ΤΜ-4 and ΤΜ-3 respectively.
当采用上述由交换网完成针对不同出口 ΤΜ的组播报文复制的方案时, 由于入口 ΤΜ到交换网的上行流量只有一份组播报文的流量, 所以相比于由 入口 ΤΜ完成针对不同出口 ΤΜ的组播 ^艮文复制的方案, 能够更大地节约交 换网的带宽, 提高组播性能。 进一步地, 在上述实施例的组播复制方法中, 发送至所述上行模块的组 播报文携带有用于标识组播报文来自于出口 TM的循环端口的标识。 When the above-mentioned scheme for performing multicast packet replication for different egresses by the switching network is used, since the upstream traffic of the ingress to the switching network has only one multicast packet traffic, it is different for the completion of the portal port. The scheme of multicast 艮 复制 复制 复制 复制 复制 复制 , 能够 能够 能够 复制 复制 复制 复制 复制 复制 复制 复制 复制 复制 复制 复制 复制 Further, in the multicast replication method of the foregoing embodiment, the multicast packet sent to the uplink module carries an identifier for identifying a cyclic port of the multicast packet from the egress TM.
具体地, 出口 TM在通过循环端口接收交换网发送的组播报文后, 在将 该组播报文发送至上行模块之前, 为组播报文配置一个标识, 以使该组播报 文可区别于该出口 TM作为其它组播报文的入口流量管理器时从外部网络处 理器接收的组播报文。 即, 出口 TM的上行模块检测到所接收的组播报文携 带有用于标识组播报文来自于出口 TM的循环端口的标识后, 才执行上述实 施例中的步骤 S 102〜步骤 S104。  Specifically, after receiving the multicast packet sent by the switching network through the cyclic port, the egress TM configures an identifier for the multicast packet before the multicast packet is sent to the uplink module, so that the multicast packet can be It is different from the multicast packet received from the external network processor when the egress TM is used as the ingress traffic manager of other multicast packets. That is, after the uplink module of the egress TM detects that the received multicast packet carries the identifier of the re-circulating port for identifying the multicast packet from the egress TM, step S102 to step S104 in the above embodiment are executed.
实施例二  Embodiment 2
图 6为本发明第二实施例的出口 TM的结构示意图。 如图 6所示, 该出 口 TM包括上行模块 202和下行模块 201 , 该出口 TM还包括用于与外部通 信的物理端口 (图中未示出) , 且所述下行模块设置有循环端口, 其中: 下行模块 201用于通过循环端口接收交换网发送的组播报文, 并将所述 组播报文发送至上行模块 202;  Figure 6 is a schematic view showing the structure of an outlet TM according to a second embodiment of the present invention. As shown in FIG. 6, the egress TM includes an uplink module 202 and a downlink module 201. The egress TM further includes a physical port (not shown) for communicating with the outside, and the downlink module is provided with a cyclic port, wherein The downlink module 201 is configured to receive the multicast packet sent by the switching network through the cyclic port, and send the multicast packet to the uplink module 202;
上行模块 202用于根据所述组播报文中所携带的组标识, 在第一上行组 播复制表中查找与所述组播报文对应的组播成员端口; 计算所述组播报文对 应的组播成员端口中属于所述出口流量管理器的物理端口的组播成员端口的 数量, 并根据所述出口流量管理器的物理端口所包括的组播成员端口的数量 对所述组播报文进行复制 , 以使复制后的所述组播报文的数量与所述出口流 量管理器的物理端口所包括的组播成员端口的数量相同; 将复制后的所述组 播报文按优先级加入单播报文緩存队列, 按照组播成员端口 QoS设置调度以 后, 通过本地转发通道发送至下行模块 201;  The uplink module 202 is configured to search for a multicast member port corresponding to the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet, and calculate a corresponding corresponding to the multicast packet. The number of multicast member ports of the multicast member port that belong to the physical port of the egress traffic manager, and the multicast packet according to the number of multicast member ports included in the physical port of the egress traffic manager Performing the replication, so that the number of the multicast packets after the replication is the same as the number of the multicast member ports included in the physical port of the egress traffic manager; After being added to the unicast packet cache queue, it is sent to the downlink module 201 through the local forwarding channel according to the multicast member port QoS setting.
下行模块 201还用于将所述复制后的组播 文通过所述出口流量管理器 的物理端口所包括的组播成员端口向外发送。 上述实施例的出口 TM执行组 播复制的流程与上述本发明第一实施例的组播复制方法相同, 故此处不再赘 述。 根据上述实施例的出口 TM, 由于下行模块收到组播报文后, 直接通过 内部循环端口环回到上行模块, 并且由上行模块查找上行组播复制表、 以在 本 TM的上行模块中实现对组播报文的复制, 并通过本地转发通道将复制后 的组播报文转发至本地 TM的下行模块, 一方面, 由于复制后的组播报文按 优先级进入单播报文緩存队列, 和单播报文共享队列调度, 接受下行端口的 统一调度, 其 Qos性能可以得到充分保证; 另一方面, 由于报文的环回和复 制均在同一 TM内实现, 仅在下行环回至上行队列的过程中占用内部环回通 道带宽, 和在将复制后的组播报文由上行转发至下行的过程中占用本地转发 通道带宽, 而不消耗上交换网带宽和交换网转发带宽, 有效节约了交换网带 宽, 从而提高了复制效率。 The downlink module 201 is further configured to send the copied multicast text to the multicast member port included in the physical port of the egress traffic manager. The process of performing the multicast replication in the egress TM of the foregoing embodiment is the same as the multicast replication method in the first embodiment of the present invention, and therefore is not described herein again. According to the egress TM of the foregoing embodiment, after receiving the multicast packet, the downlink module directly loops back to the uplink module through the internal loop port, and the uplink module searches for the uplink multicast replication table to implement in the uplink module of the TM. The multicast packet is copied, and the copied multicast packet is forwarded to the downlink module of the local TM through the local forwarding channel. On the one hand, the copied multicast packet enters the unicast packet buffer queue according to the priority. The hop scheduling is shared with the unicast packet, and the unicast scheduling of the downlink port is accepted. The QoS performance of the downlink port can be fully guaranteed. On the other hand, the loopback and replication of the packet are implemented in the same TM. The process of occupying the bandwidth of the internal loopback channel and occupying the bandwidth of the local forwarding channel during the process of forwarding the copied multicast packet from the upstream to the downlink does not consume the bandwidth of the switching network and the forwarding bandwidth of the switching network, thereby effectively saving the bandwidth. Switch network bandwidth, which improves replication efficiency.
进一步地, 在上述实施例的出口 TM中, 下行模块还用于在发送至上行 模块的组播报文中添加用于标识所述组播报文来自于所述出口流量管理器的 循环端口的标识。  Further, in the egress TM of the foregoing embodiment, the downlink module is further configured to add, in the multicast packet sent to the uplink module, an identifier for identifying the cyclic port of the multicast packet from the egress traffic manager.
具体地, 下行模块在通过循环端口接收交换网发送的组播报文后, 在将 该组播报文发送至上行模块之前, 为组播报文配置一个标识, 以使该组播报 文可区别于该出口 TM作为其它组播 ^艮文的入口流量管理器时从外部网络处 理器接收的组播报文。 即, 上行模块若检测到所接收的组播报文携带有用于 标识组播报文来自于出口 TM的循环端口的标识后, 才执行相应操作。 通过 这种设置, 可使该出口 TM兼作为其他组播报文的入口 TM。  Specifically, after receiving the multicast packet sent by the switching network through the cyclic port, the downlink module configures an identifier for the multicast packet before the multicast packet is sent to the uplink module, so that the multicast packet can be It is different from the multicast message received by the external network processor when the egress TM is used as the ingress traffic manager of other multicast messages. That is, the uplink module performs the corresponding operation if it detects that the received multicast packet carries an identifier for identifying the multicast packet from the egress port of the egress port. With this arrangement, the egress TM can be used as an entry point for other multicast messages.
实施例三  Embodiment 3
本发明第三实施例提供了一种组播复制系统, 该组播复制系统包括本发 明第二实施例提供的出口 TM、 入口 TM以及连接在出口 TM和入口 TM之 间的交换网。  A third embodiment of the present invention provides a multicast replication system including an egress TM, an entry TM, and a switching network connected between the egress TM and the portal TM provided by the second embodiment of the present invention.
在上述实施例的组播复制系统中, 可以由入口 TM完成针对组播报文对 应的不同出口 TM的芯片级组播报文复制, 该复制后的报文经由交换网分别 发送至各出口 TM, 再由 TM针对组播才艮文所对应的组播成员端口完成端口 级组播报文复制并经由本地的组播成员端口向外发送; 也可以由入口 TM从 外部的网络处理器接收到组播报文后直接发送至交换网, 由交换网完成针对 组播报文对应的不同出口 TM的芯片级组播报文复制, 并将该复制后的报文 分别发送至各出口 TM, 再由 TM针对组播才艮文所对应的组播成员端口完成 端口级组播报文复制并经由本地的组播成员端口向外发送。 优选地, 由交换 网完成针对组播 4艮文对应的不同出口 TM的芯片级组播 ^艮文复制。 In the multicast replication system of the foregoing embodiment, the chip-level multicast packet replication for different egress packets corresponding to the multicast packet is completed by the ingress TM, and the copied packet is sent to each egress TM through the switching network. And then the TM completes the port for the multicast member port corresponding to the multicast message. The multicast packets are transmitted and sent out through the local multicast member port. The multicast packets are sent from the external network processor to the switching network. The multicast packets are sent to the switching network. The chip-level multicast packets of the different egress TMs are copied, and the copied packets are respectively sent to the egress TMs, and the TM completes the port-level group for the multicast member ports corresponding to the multicast packets. The broadcast message is copied and sent out via the local multicast member port. Preferably, the chip-level multicast copy of the different egress TM corresponding to the multicast message is completed by the switching network.
根据上述实施例的组播复制系统, 一方面, 由于出口 TM复制后的组播 报文可入队到普通单播队列, 和单播报文共享队列调度, 接受下行端口的统 一调度, 其 Qos性能可以得到充分保证; 另一方面, 由于在出口 TM中所完 成的报文的环回和复制均在同一 TM内实现, 仅在下行环回至上行队列的过 程中占用内部环回通道带宽, 和在将复制后的组播报文由上行转发至下行的 过程中占用本地转发通道带宽, 而不消耗上交换网带宽和交换网转发带宽。 而且, 当由交换网完成针对组播才艮文对应的不同出口 TM的芯片级组播才艮文 复制时, 由于入口 TM与交换网之间仅产生一份组播报文流量, 所以进一步 地节约了交换网带宽, 极大地提高了复制效率。  According to the multicast replication system of the foregoing embodiment, on the one hand, the multicast packet copied by the egress TM can be queued to the common unicast queue, and the unicast packet is shared with the queue scheduling, and the unified scheduling of the downlink port is accepted, and the Qos performance is obtained. On the other hand, since the loopback and replication of the packets completed in the egress TM are implemented in the same TM, the internal loopback channel bandwidth is occupied only during the downlink loopback to the uplink queue, and During the process of forwarding the copied multicast packet from the upstream to the downlink, the bandwidth of the local forwarding channel is occupied without consuming the bandwidth of the switching network and the forwarding bandwidth of the switching network. Moreover, when the chip-level multicast of the different egress TMs corresponding to the multicast message is copied by the switching network, only one multicast packet traffic is generated between the ingress TM and the switching network, so further The bandwidth of the switching network is saved, and the replication efficiency is greatly improved.
本领域普通技术人员可以理解: 实现上述实施例的全部或部分步骤可以 通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读取存 储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存 储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。  It will be understood by those skilled in the art that all or part of the steps of implementing the foregoing embodiments may be performed by hardware related to program instructions. The foregoing program may be stored in a computer readable storage medium, and when executed, the program includes The foregoing steps of the method embodiment; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对其 限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通技术 人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修改, 或 者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不使相应技 术方案的本质脱离本发明各实施例技术方案的精神和范围。  It should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that: The technical solutions described in the foregoing embodiments are modified, or some of the technical features are equivalently replaced. The modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

权利 要求 Rights request
1、 一种组播复制方法, 其特征在于, 包括:  A multicast replication method, comprising:
出口流量管理器的下行模块通过循环端口接收交换网发送的组播报文, 并将所述组播 ·艮文发送至上行模块, 其中, 所述出口流量管理器包括所述上 行模块、 下行模块和用于与外部通信的物理端口, 所述下行模块设置有所述 循环端口;  The downlink module of the egress traffic manager receives the multicast packet sent by the switching network through the recurring port, and sends the multicast packet to the uplink module, where the egress traffic manager includes the uplink module and the downlink module. And a physical port for communicating with the outside, the downlink module is provided with the cyclic port;
所述出口流量管理器的上行模块根据所述组播报文中所携带的组标识, 在第一上行组播复制表中查找与所述组播报文对应的组播成员端口;  The egress module of the egress traffic manager searches for the multicast member port corresponding to the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet;
所述出口流量管理器的上行模块计算所述组播报文对应的组播成员端口 中属于所述出口流量管理器的物理端口的组播成员端口的数量, 并根据所述 出口流量管理器的物理端口所包括的组播成员端口的数量对所述组播报文进 行复制 , 以使复制后的所述组播报文的数量与所述出口流量管理器的物理端 口所包括的组播成员端口的数量相同;  The uplink module of the egress traffic manager calculates the number of multicast member ports of the multicast member port corresponding to the egress packet, and according to the egress traffic manager The number of multicast member ports included in the physical port is copied to the multicast packet, so that the number of the copied multicast packets and the multicast member included in the physical port of the egress traffic manager are The number of ports is the same;
所述出口流量管理器的上行模块将复制后的所述组播报文按优先级加入 单播报文緩存队列, 按照组播成员端口服务质量 QoS设置调度以后, 通过本 地转发通道发送至所述下行模块 , 并由所述下行模块将所述复制后的组播报 文通过所述出口流量管理器的物理端口所包括的组播成员端口向外发送。  The uplink module of the egress traffic manager adds the copied multicast packet to the unicast packet buffer queue according to the priority, and then sends the packet to the downlink through the local forwarding channel according to the multicast member port quality of service QoS setting. And sending, by the downlink module, the copied multicast packet to the multicast member port included in the physical port of the egress traffic manager.
2、 根据权利要求 1所述的组播复制方法, 其特征在于, 所述出口流量管 理器通过循环端口接收交换网发送的组播报文之前, 还包括:  The multicast replication method according to claim 1, wherein before the egress traffic manager receives the multicast packet sent by the switching network, the egress traffic manager further includes:
入口流量管理器接收网络处理器发送的所述组播报文, 并根据所述组播 报文中所携带的组标识, 在第二上行组播复制表中查找与所述组播报文对应 的出口流量管理器, 所述第二上行组播复制表中存储有所述组播报文的组标 识和与所述组标识相对应的出口流量管理器的标识符;  The ingress traffic manager receives the multicast packet sent by the network processor, and searches for the egress corresponding to the multicast packet in the second uplink multicast replication table according to the group identifier carried in the multicast packet. a traffic manager, where the second uplink multicast replication table stores a group identifier of the multicast packet and an identifier of an egress traffic manager corresponding to the group identifier;
所述入口流量管理器对所述组播报文进行复制, 以使复制后的所述组播 报文的数量与所述出口流量管理器的数量相同;  The ingress traffic manager replicates the multicast packet, so that the number of the copied multicast packets is the same as the number of the egress traffic manager;
所述入口流量管理器通过所述交换网向所述出口流量管理器发送所述组 播报文。 The ingress traffic manager sends the group to the egress traffic manager through the switching network Broadcast message.
3、 根据权利要求 1所述的组播复制方法, 其特征在于, 所述出口流量管 理器通过循环端口接收交换网发送的组播报文之前, 还包括:  The multicast replication method according to claim 1, wherein before the egress traffic manager receives the multicast packet sent by the switching network through the cyclic port, the method further includes:
所述交换网接收入口流量管理器发送的所述组播报文, 根据所述组播报 文中所携带的组标识, 在组播复制表中查找与所述组播报文对应的出口流量 管理器, 所述组播复制表中存储有所述组播报文的组标识和与所述组标识相 对应的出口流量管理器的标识符;  The switching network receives the multicast packet sent by the ingress traffic manager, and searches for the egress traffic manager corresponding to the multicast packet in the multicast replication table according to the group identifier carried in the multicast packet. And storing, in the multicast replication table, a group identifier of the multicast packet and an identifier of an egress traffic manager corresponding to the group identifier;
所述交换网对所述组播报文进行复制, 以使复制后的所述组播报文的数 量与所述出口流量管理器的数量相同;  The switching network replicates the multicast packet, so that the number of the copied multicast packets is the same as the number of the egress traffic manager;
所述交换网向所述出口流量管理器发送所述组播报文。  The switching network sends the multicast packet to the egress traffic manager.
4、 根据权利要求 1或 2或 3所述的组播复制方法, 其特征在于, 发送至 所述上行模块的所述组播报文携带有用于标识所述组播报文来自于所述出口 流量管理器的循环端口的标识。  The multicast replication method according to claim 1 or 2 or 3, wherein the multicast packet sent to the uplink module carries a identifier for identifying that the multicast packet is from the egress. The identity of the traffic manager's circular port.
5、 一种出口流量管理器, 其特征在于, 包括上行模块、 下行模块和用于 与外部通信的物理端口, 所述下行模块设置有循环端口, 其中:  An export traffic manager, comprising: an uplink module, a downlink module, and a physical port for communicating with the outside, wherein the downlink module is provided with a cyclic port, where:
所述下行模块用于通过循环端口接收交换网发送的组播报文, 并将所述 组播报文发送至上行模块;  The downlink module is configured to receive the multicast packet sent by the switching network by using the cyclic port, and send the multicast packet to the uplink module.
所述上行模块用于根据所述组播报文中所携带的组标识, 在第一上行组 播复制表中查找与所述组播报文对应的组播成员端口; 计算所述组播报文对 应的组播成员端口中属于所述出口流量管理器的物理端口的组播成员端口的 数量, 并根据所述出口流量管理器的物理端口所包括的组播成员端口的数量 对所述组播报文进行复制 , 以使复制后的所述组播报文的数量与所述出口流 量管理器的物理端口所包括的组播成员端口的数量相同; 将复制后的所述组 播报文按优先级加入单播报文緩存队列, 按照组播成员端口 QoS设置调度以 后, 通过本地转发通道发送至所述下行模块;  The uplink module is configured to search for a multicast member port corresponding to the multicast packet in the first uplink multicast replication table according to the group identifier carried in the multicast packet, and calculate the multicast packet corresponding to the multicast packet The number of multicast member ports belonging to the physical port of the egress traffic manager in the multicast member port, and the multicast report according to the number of multicast member ports included in the physical port of the egress traffic manager The file is copied, so that the number of the multicast packets after the replication is the same as the number of the multicast member ports included in the physical port of the egress traffic manager; The unicast packet cache queue is added to the unicast packet buffer queue and sent to the downlink module through the local forwarding channel after being scheduled according to the multicast member port QoS.
所述下行模块还用于将所述复制后的组播"¾文通过所述出口流量管理器 的物理端口所包括的组播成员端口向外发送。 The downlink module is further configured to pass the copied multicast message to the egress traffic manager. The multicast member port included in the physical port is sent out.
6、 根据权利要求 5所述的出口流量管理器, 其特征在于, 下行模块还用 于在发送至上行模块的组播报文中添加用于标识所述组播报文来自于所述出 口流量管理器的循环端口的标识。  The egress traffic manager according to claim 5, wherein the downlink module is further configured to add, in the multicast packet sent to the uplink module, the identifier to identify the multicast packet from the egress traffic manager. The identity of the loop port.
7、 一种组播复制系统, 其特征在于, 包括如权利要求 5或 6所述的出口 流量管理器、 入口流量管理器以及连接在所述出口流量管理器与所述入口流 量管理器之间的交换网。  A multicast replication system, comprising: an egress traffic manager according to claim 5 or 6, an ingress traffic manager, and a connection between the egress traffic manager and the ingress traffic manager Switching network.
PCT/CN2011/076263 2011-06-24 2011-06-24 Multicast duplication method, device and system WO2012103704A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2011/076263 WO2012103704A1 (en) 2011-06-24 2011-06-24 Multicast duplication method, device and system
CN201180001021.XA CN103222230B (en) 2011-06-24 2011-06-24 Multicast duplicating method, Apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2011/076263 WO2012103704A1 (en) 2011-06-24 2011-06-24 Multicast duplication method, device and system

Publications (1)

Publication Number Publication Date
WO2012103704A1 true WO2012103704A1 (en) 2012-08-09

Family

ID=46602069

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/076263 WO2012103704A1 (en) 2011-06-24 2011-06-24 Multicast duplication method, device and system

Country Status (2)

Country Link
CN (1) CN103222230B (en)
WO (1) WO2012103704A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109302349A (en) * 2018-09-29 2019-02-01 迈普通信技术股份有限公司 A kind of message forwarding method and routing device
WO2019228433A1 (en) * 2018-05-31 2019-12-05 新华三技术有限公司 Multicast data message forwarding method and device

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108055211B (en) * 2017-12-22 2020-10-30 盛科网络(苏州)有限公司 Multicast replication method, equipment and storage medium
US11070464B2 (en) * 2018-10-16 2021-07-20 Juniper Networks, Inc. Optimized multicast forwarding with a cache

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567893A (en) * 2003-07-02 2005-01-19 华为技术有限公司 A method for implementing multicast on transmission network of asynchronous transfer mode
CN101123529A (en) * 2007-09-21 2008-02-13 杭州华三通信技术有限公司 Multicast implementation method, system and device based on PCIE switching network
CN101262436A (en) * 2008-04-08 2008-09-10 华为技术有限公司 Multicast duplication method, device and line card

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567893A (en) * 2003-07-02 2005-01-19 华为技术有限公司 A method for implementing multicast on transmission network of asynchronous transfer mode
CN101123529A (en) * 2007-09-21 2008-02-13 杭州华三通信技术有限公司 Multicast implementation method, system and device based on PCIE switching network
CN101262436A (en) * 2008-04-08 2008-09-10 华为技术有限公司 Multicast duplication method, device and line card

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019228433A1 (en) * 2018-05-31 2019-12-05 新华三技术有限公司 Multicast data message forwarding method and device
CN109302349A (en) * 2018-09-29 2019-02-01 迈普通信技术股份有限公司 A kind of message forwarding method and routing device

Also Published As

Publication number Publication date
CN103222230A (en) 2013-07-24
CN103222230B (en) 2015-11-25

Similar Documents

Publication Publication Date Title
US10182496B2 (en) Spanning tree protocol optimization
US10284389B2 (en) High availability for distributed network services in an extended bridge
CN102197627B (en) The improvement of flux of multicast convergence
US8107482B2 (en) Multipath discovery in switched ethernet networks
WO2021043181A1 (en) Data transmission method and device
WO2011100878A1 (en) Method, switching device and system for realizing flow controlling in a switching network
US9509565B2 (en) Energy efficiency in software defined networks
WO2006002596A1 (en) A method for implementing multicast based on multiple service transmission plate
JP2004509512A (en) System and method for controlling multicast traffic in a data packet switch
WO2014000399A1 (en) Link selection method and device
WO2016095574A1 (en) Sdn-based mpls network control system and method
WO2014206103A1 (en) Data packet switching method and device, access switch and switching system
WO2020168854A1 (en) Evpn multicast method, apparatus and system
US11070386B2 (en) Controlling an aggregate number of unique PIM joins in one or more PIM join/prune messages received from a PIM neighbor
CN103067291A (en) Method and device of up-down link correlation
WO2012103704A1 (en) Multicast duplication method, device and system
WO2011009248A1 (en) Data processing method, line card and main control board based on the main control board switch
WO2014048128A1 (en) Point-to-multipoint service protecting method for ring network and upper ring node on ring network
CN102223311A (en) Queue scheduling method and device
US11646978B2 (en) Data communication method and apparatus
WO2016082436A1 (en) Mixed centralized processing method and apparatus for service, and storage medium
CN115915098A (en) Method for realizing BMCA in 5G and TSN cross-domain PTP
WO2023071324A1 (en) Packet forwarding method and apparatus
CN108900439A (en) A kind of PON OLT system and its method for realizing masterslave switchover
WO2017088489A1 (en) Data message transmission method and system, and communication system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11857924

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

Country of ref document: EP

Kind code of ref document: A1