[go: up one dir, main page]

CN111917651A - Multicast forwarding method and system for cross chip - Google Patents

Multicast forwarding method and system for cross chip Download PDF

Info

Publication number
CN111917651A
CN111917651A CN202010669498.6A CN202010669498A CN111917651A CN 111917651 A CN111917651 A CN 111917651A CN 202010669498 A CN202010669498 A CN 202010669498A CN 111917651 A CN111917651 A CN 111917651A
Authority
CN
China
Prior art keywords
multicast group
service
multicast
chip
convergence
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010669498.6A
Other languages
Chinese (zh)
Other versions
CN111917651B (en
Inventor
邓作
王欢
门高鑫
何彪
张正辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fiberhome Telecommunication Technologies Co Ltd
Wuhan Fisilink Microelectronics Technology Co Ltd
Original Assignee
Fiberhome Telecommunication Technologies Co Ltd
Wuhan Fisilink Microelectronics Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fiberhome Telecommunication Technologies Co Ltd, Wuhan Fisilink Microelectronics Technology Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN202010669498.6A priority Critical patent/CN111917651B/en
Publication of CN111917651A publication Critical patent/CN111917651A/en
Application granted granted Critical
Publication of CN111917651B publication Critical patent/CN111917651B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/16Multipoint routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/54Organization of routing tables

Landscapes

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

Abstract

本发明公开了一种交叉芯片的组播转发方法及系统,涉及分组交换技术领域,本发明在新定义汇聚组播组的情况下,用一条汇聚组播组承载多条具有相同目的芯片分布的业务组播组,大大减少了交叉芯片上组播转发的设计消耗。入方向的业务芯片收到待转发业务时,查找业务组播组到汇聚组播组的组播映射表得到对应的汇聚组播组,在报文中的业务组播头前添加对应的汇聚组播组头;交叉芯片收到报文时,根据汇聚组播组头进行组播转发;出方向的业务芯片收到报文时,剥去汇聚组播组头后进行业务组播组的转发。交叉芯片不敏感业务组播任何信息,只根据汇聚组播组头进行芯片间的组播转发,大大减少交叉芯片的硬件消耗。

Figure 202010669498

The invention discloses a cross-chip multicast forwarding method and system, and relates to the technical field of packet switching. In the present invention, in the case of a new definition of a converged multicast group, a converged multicast group is used to carry a plurality of chips with the same purpose. The service multicast group greatly reduces the design consumption of multicast forwarding on the cross chip. When the inbound service chip receives the service to be forwarded, it searches the multicast mapping table from the service multicast group to the aggregation multicast group to obtain the corresponding aggregation multicast group, and adds the corresponding aggregation group before the service multicast header in the packet. When the cross-connect chip receives the packet, it performs multicast forwarding according to the aggregated multicast group header; when the outbound service chip receives the packet, it strips the aggregated multicast group header and forwards the service multicast group. The cross-connect chip is not sensitive to multicasting any information, and only performs multicast forwarding between chips based on the aggregated multicast group header, which greatly reduces the hardware consumption of the cross-connect chip.

Figure 202010669498

Description

一种交叉芯片的组播转发方法及系统Multicast forwarding method and system for cross chip

技术领域technical field

本发明涉及分组交换技术领域,具体涉及一种交叉芯片的组播转发方法及系统。The invention relates to the technical field of packet switching, in particular to a method and system for multicast forwarding of a cross chip.

背景技术Background technique

组播是分组交换中一种常见的业务模型,转发节点需要完成一到多的报文复制与转发。目前在机架式设备中,分布式组播实现方法由业务芯片、交叉芯片共同完成,而交叉芯片的组播设计往往是直接和业务组播组关联起来完成芯片间的每个组播转发,从而达到转发组播业务的目的。其特点是交叉芯片的组播表与业务组播组同大小,业务有多少,交叉芯片的组播表项就需要多少,动辄几十乃至几百k的业务组播组个数。Multicast is a common service model in packet switching, and forwarding nodes need to complete one-to-many packet replication and forwarding. At present, in rack-mounted equipment, the distributed multicast implementation method is completed by the service chip and the cross chip, and the multicast design of the cross chip is often directly associated with the service multicast group to complete each multicast forwarding between chips. So as to achieve the purpose of forwarding multicast services. The feature is that the multicast table of the cross-connect chip is the same size as the service multicast group. The number of services required depends on the number of service multicast groups.

发明内容SUMMARY OF THE INVENTION

针对现有技术中存在的缺陷,本发明的目的在于提供一种交叉芯片的组播转发方法及系统,大大减少了交叉芯片上组播转发的设计消耗。In view of the defects existing in the prior art, the purpose of the present invention is to provide a method and system for multicast forwarding of a cross chip, which greatly reduces the design consumption of multicast forwarding on the cross chip.

为达到以上目的,本发明采取的技术方案是:一种交叉芯片的组播转发方法,包括以下步骤:In order to achieve the above purpose, the technical scheme adopted by the present invention is: a method for multicast forwarding of cross-chips, comprising the following steps:

创建汇聚组播组表项并配置到交叉芯片上,所述汇聚组播组表项包含所有可能的汇聚组播组,每个汇聚组播组为出方向的芯片分布组合;Create an aggregation multicast group entry and configure it on the cross-connect chip, the aggregation multicast group entry includes all possible aggregation multicast groups, and each aggregation multicast group is a chip distribution combination in the outbound direction;

根据各个业务组播组的芯片分布,得到业务组播组对应的汇聚组播组,生成业务组播组到汇聚组播组的组播映射表并配置到业务芯片;According to the chip distribution of each service multicast group, obtain the aggregation multicast group corresponding to the service multicast group, generate a multicast mapping table from the service multicast group to the aggregation multicast group, and configure it to the service chip;

入方向的业务芯片收到待转发业务时,查找组播映射表得到对应的汇聚组播组,在报文中的业务组播头前添加对应的汇聚组播组头,发送至交叉芯片;When the service chip in the inbound direction receives the service to be forwarded, it searches the multicast mapping table to obtain the corresponding aggregation multicast group, adds the corresponding aggregation multicast group header before the service multicast header in the packet, and sends it to the cross-connect chip;

交叉芯片收到报文时,根据汇聚组播组头和汇聚组播组表项进行组播转发;When the cross-connect chip receives the packet, it performs multicast forwarding according to the aggregated multicast group header and the aggregated multicast group entry;

出方向的业务芯片收到报文时,剥去汇聚组播组头后进行业务组播组的转发。When the outbound service chip receives the packet, it strips the aggregation multicast group header and forwards the service multicast group.

在上述技术方案的基础上,创建创建汇聚组播组表项时,所有可能的汇聚组播组的总数为:

Figure BDA0002581727620000021
其中,n为所有入方向和出方向的业务芯片的总和。Based on the above technical solutions, when creating an aggregation multicast group entry, the total number of all possible aggregation multicast groups is:
Figure BDA0002581727620000021
Among them, n is the sum of all inbound and outbound service chips.

在上述技术方案的基础上,所述汇聚组播组头的组成字段包括:报文类型、源芯片和汇聚组播组;所述业务组播头的组成字段包括:业务类型、业务组播组。On the basis of the above technical solution, the composition fields of the converged multicast group header include: message type, source chip and converged multicast group; the composition fields of the service multicast header include: service type, service multicast group .

在上述技术方案的基础上,入方向的业务芯片根据各个业务组播组对应的芯片分布,得到业务组播组对应的汇聚组播组,包括以下步骤:On the basis of the above technical solutions, the service chips in the inbound direction are distributed according to the chips corresponding to each service multicast group to obtain the aggregation multicast group corresponding to the service multicast group, including the following steps:

将业务多播到该业务所对应的所有芯片上;Multicast the service to all chips corresponding to the service;

根据标准业务组播组加入报文得到每个业务的业务组播组的所对应的芯片分布,从汇聚组播组表项中找到具有相同芯片分布的汇聚组播组,作为该业务组播组对应的汇聚组播组。According to the standard service multicast group join message, the corresponding chip distribution of the service multicast group of each service is obtained, and the aggregation multicast group with the same chip distribution is found from the aggregation multicast group entry as the service multicast group. The corresponding aggregation multicast group.

在上述技术方案的基础上,所述交叉芯片收到报文时,根据汇聚组播组头和汇聚组播组表项进行组播转发,具体包括以下步骤:Based on the above technical solution, when the cross-connect chip receives the packet, it performs multicast forwarding according to the aggregated multicast group header and the aggregated multicast group entry, which specifically includes the following steps:

交叉芯片收到报文时,根据汇聚组播组头查找汇聚组播组表项,得到对应的汇聚组播组;When the cross-connect chip receives the packet, it searches the aggregation multicast group entry according to the aggregation multicast group header to obtain the corresponding aggregation multicast group;

根据汇聚组播组将报文发送至对应的出方向芯片。According to the aggregation multicast group, the packet is sent to the corresponding outbound chip.

本发明实施例还提供一种交叉芯片的组播转发系统,包括:汇聚组播组创建模块、映射表创建模块、入方向的业务芯片、交叉芯片和出方向的业务芯片:An embodiment of the present invention further provides a cross-chip multicast forwarding system, including: an aggregation multicast group creation module, a mapping table creation module, an inbound service chip, a cross-connect chip, and an outbound service chip:

所述汇聚组播组创建模块用于:创建汇聚组播组表项并配置到交叉芯片上,所述汇聚组播组表项包含所有可能的汇聚组播组,每个汇聚组播组为出方向的芯片分布组合;The aggregation multicast group creation module is used to: create an aggregation multicast group entry and configure it on the cross-connect chip, the aggregation multicast group entry includes all possible aggregation multicast groups, and each aggregation multicast group is an outgoing multicast group. Direction of chip distribution combination;

所述映射表创建模块用于:根据各个业务组播组的芯片分布,得到业务组播组对应的汇聚组播组,生成业务组播组到汇聚组播组的组播映射表并配置到业务芯片;The mapping table creation module is used for: obtaining the aggregation multicast group corresponding to the service multicast group according to the chip distribution of each service multicast group, generating a multicast mapping table from the service multicast group to the aggregation multicast group, and configuring it into the service multicast group. chip;

所述入方向的业务芯片用于:入方向的业务芯片收到待转发业务时,查找组播映射表得到对应的汇聚组播组,在报文中的业务组播头前添加对应的汇聚组播组头,发送至交叉芯片;The service chip in the inbound direction is used to: when the service chip in the inbound direction receives the service to be forwarded, look up the multicast mapping table to obtain the corresponding aggregation multicast group, and add the corresponding aggregation group before the service multicast header in the packet. Broadcast group header, sent to the cross chip;

所述交叉芯片用于:收到报文时,根据汇聚组播组头和汇聚组播组表项进行组播转发;The cross-connect chip is used to: perform multicast forwarding according to the aggregated multicast group header and the aggregated multicast group entry when receiving the message;

所述出方向的业务芯片用于:收到报文时,剥去汇聚组播组头后进行业务组播组的转发。The service chip in the outbound direction is used for forwarding the service multicast group after stripping the aggregation multicast group header when receiving the message.

在上述技术方案的基础上,所述汇聚组播组创建模块创建汇聚组播组表项时,所有可能的汇聚组播组的总数为:

Figure BDA0002581727620000031
其中,n为所有入方向和出方向的业务芯片的总和。On the basis of the above technical solution, when the aggregation multicast group creation module creates the aggregation multicast group entry, the total number of all possible aggregation multicast groups is:
Figure BDA0002581727620000031
Among them, n is the sum of all inbound and outbound service chips.

在上述技术方案的基础上,所述汇聚组播组头的组成字段包括:报文类型、源芯片和汇聚组播组;所述业务组播头的组成字段包括:业务类型、业务组播组。On the basis of the above technical solution, the composition fields of the converged multicast group header include: message type, source chip and converged multicast group; the composition fields of the service multicast header include: service type, service multicast group .

在上述技术方案的基础上,所述入方向的业务芯片根据各个业务组播组对应的芯片分布,得到业务组播组对应的汇聚组播组,包括以下步骤:On the basis of the above technical solution, the service chips in the inbound direction are distributed according to the chips corresponding to each service multicast group to obtain the aggregation multicast group corresponding to the service multicast group, including the following steps:

将业务多播到该业务所对应的所有芯片上;Multicast the service to all chips corresponding to the service;

根据标准业务组播组加入报文得到每个业务的业务组播组的所对应的芯片分布,从汇聚组播组表项中找到具有相同芯片分布的汇聚组播组,作为该业务组播组对应的汇聚组播组。According to the standard service multicast group join message, the corresponding chip distribution of the service multicast group of each service is obtained, and the aggregation multicast group with the same chip distribution is found from the aggregation multicast group entry as the service multicast group. The corresponding aggregation multicast group.

在上述技术方案的基础上,所述交叉芯片具体用于:On the basis of the above technical solution, the cross chip is specifically used for:

收到报文时,根据汇聚组播组头查找汇聚组播组表项,得到对应的汇聚组播组;When a packet is received, the aggregation multicast group entry is searched according to the aggregation multicast group header, and the corresponding aggregation multicast group is obtained;

根据汇聚组播组将报文发送至对应的出方向芯片。According to the aggregation multicast group, the packet is sent to the corresponding outbound chip.

与现有技术相比,本发明的优点在于:Compared with the prior art, the advantages of the present invention are:

本发明在新定义汇聚组播组的情况下,用一条汇聚组播组承载多条具有相同目的芯片分布的业务组播组,大大减少了交叉芯片上组播转发的设计消耗。入方向的业务芯片收到待转发业务时,查找业务组播组到汇聚组播组的组播映射表得到对应的汇聚组播组,并在报文中的业务组播头前添加对应的汇聚组播组头;交叉芯片收到报文时,根据汇聚组播组头进行组播转发;出方向的业务芯片收到报文时,剥去汇聚组播组头后进行业务组播组的转发。本发明使交叉芯片上的组播表项变得很简单,交叉芯片不敏感业务组播任何信息,只需根据汇聚组播组头进行芯片间的组播转发,实现大大减少交叉芯片的硬件消耗同时完成组播业务的转发。In the case of newly defined convergence multicast group, the present invention uses one convergence multicast group to carry multiple service multicast groups with the same purpose chip distribution, which greatly reduces the design consumption of multicast forwarding on cross chips. When the service chip in the inbound direction receives the service to be forwarded, it searches the multicast mapping table from the service multicast group to the aggregation multicast group to obtain the corresponding aggregation multicast group, and adds the corresponding aggregation multicast group before the service multicast header in the packet. Multicast group header; when the cross-connect chip receives the packet, it performs multicast forwarding according to the aggregated multicast group header; when the outbound service chip receives the packet, it strips the aggregated multicast group header and forwards the service multicast group. . The invention makes the multicast table entry on the cross-connect chip very simple, and the cross-connect chip is not sensitive to service multicasting any information. It only needs to perform multicast forwarding between chips according to the aggregated multicast group header, thereby greatly reducing the hardware consumption of the cross-connect chip. At the same time, the forwarding of multicast services is completed.

附图说明Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the accompanying drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained according to these drawings without creative efforts.

图1为本发明实施例的交叉芯片的组播转发方法的流程示意图;FIG. 1 is a schematic flowchart of a method for multicast forwarding of a cross-connect chip according to an embodiment of the present invention;

图2为本发明实施例的交叉芯片的组播转发方法的原理示意图;FIG. 2 is a schematic diagram of the principle of a multicast forwarding method of a cross-chip according to an embodiment of the present invention;

图3为本发明实施例的汇聚组播组头与业务组播头的示意图;3 is a schematic diagram of a converged multicast group header and a service multicast header according to an embodiment of the present invention;

图4为本发明实施例的汇聚组播组与业务组播组映射关系示意图;4 is a schematic diagram of a mapping relationship between an aggregation multicast group and a service multicast group according to an embodiment of the present invention;

图5为本发明实施例的使用汇聚组播完成业务组播转发流程图。FIG. 5 is a flowchart of completing service multicast forwarding by using aggregation multicast according to an embodiment of the present invention.

具体实施方式Detailed ways

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly described below with reference to the drawings in the embodiments of the present invention. Obviously, the described embodiments are the Some, but not all, embodiments are disclosed. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

以下结合附图对本发明的实施例作进一步详细说明。The embodiments of the present invention will be described in further detail below with reference to the accompanying drawings.

参见图1所示,本发明实施例的实施例的交叉芯片的组播转发方法,包括以下步骤:Referring to FIG. 1 , the multicast forwarding method of a cross-connect chip according to an embodiment of the present invention includes the following steps:

S1、创建汇聚组播组集合表项并配置到交叉芯片各芯片上,所述汇聚组播组表项包含所有可能的汇聚组播组,每个汇聚组播组为出方向的芯片分布组合;S1. Create an aggregation multicast group set entry and configure it on each chip of the cross-connect chip, where the aggregation multicast group entry includes all possible aggregation multicast groups, and each aggregation multicast group is a chip distribution combination in the outgoing direction;

S2、根据各个业务组播组的芯片分布,得到业务组播组对应的汇聚组播组,生成业务组播组到汇聚组播组的组播映射表并配置到业务芯片;S2, according to the chip distribution of each service multicast group, obtain the aggregation multicast group corresponding to the service multicast group, generate a multicast mapping table from the service multicast group to the aggregation multicast group, and configure it to the service chip;

S3、入方向的业务芯片收到待转发业务时,查找组播映射表得到对应的汇聚组播组,在报文中的业务组播头前添加对应的汇聚组播组头,发送至交叉芯片;S3. When the service chip in the inbound direction receives the service to be forwarded, it searches the multicast mapping table to obtain the corresponding aggregation multicast group, adds the corresponding aggregation multicast group header before the service multicast header in the packet, and sends it to the cross-connect chip ;

S4、交叉芯片收到报文时,根据汇聚组播组头和汇聚组播组表项进行组播转发;S4. When the cross-connect chip receives the packet, it performs multicast forwarding according to the aggregated multicast group header and the aggregated multicast group entry;

S5、出方向的业务芯片收到报文时,剥去汇聚组播组头后进行业务组播组的转发。S5. When the service chip in the outbound direction receives the packet, it strips off the aggregation multicast group header and then forwards the service multicast group.

参见图3所示,本发明实施例新定义一种汇聚组播组头,简称为cell头,汇聚组播组头的组成字段包括:报文类型、源芯片和汇聚组播组等;本发明实施例的cell头格式具体定义如表1所示:Referring to FIG. 3 , an embodiment of the present invention defines a new converged multicast group header, referred to as a cell header for short, and the constituent fields of the converged multicast group header include: message type, source chip, converged multicast group, etc.; The specific definition of the cell header format of the embodiment is shown in Table 1:

表1cell头格式定义表Table 1 cell header format definition table

Figure BDA0002581727620000061
Figure BDA0002581727620000061

在cell头之后,承载组播业务。参见图3所示,本发明实施例的业务组播头,业务组播头的组成字段包括业务类型、业务组播组等。业务组播头的具体定义如表2所示:After the cell header, the multicast service is carried. Referring to FIG. 3 , in the service multicast header of the embodiment of the present invention, the composition fields of the service multicast header include service type, service multicast group, and the like. The specific definition of the service multicast header is shown in Table 2:

表2业务组播头格式定义表Table 2 Service multicast header format definition table

Figure BDA0002581727620000062
Figure BDA0002581727620000062

Figure BDA0002581727620000071
Figure BDA0002581727620000071

从而实现业务组播报文承载在汇聚组播组上。Therefore, the service multicast packets are carried on the aggregation multicast group.

本发明实施例定义汇聚组播组用于承载多条具有相同目的芯片分布的业务组播组。每个汇聚组播组为出方向的芯片分布组合,对于一个拥有n个业务芯片的分布式系统,所用到的汇聚组播组的个数为:

Figure BDA0002581727620000072
以n=10为例,
Figure BDA0002581727620000073
为1023。大大小于动辄几十乃至几百k的业务组播组个数,大大减少了交叉芯片上所需的组播转发表项。The embodiment of the present invention defines an aggregation multicast group for carrying a plurality of service multicast groups with the same purpose chip distribution. Each aggregation multicast group is a chip distribution combination in the outgoing direction. For a distributed system with n service chips, the number of aggregation multicast groups used is:
Figure BDA0002581727620000072
Taking n=10 as an example,
Figure BDA0002581727620000073
is 1023. It is much smaller than the number of service multicast groups that can easily reach dozens or even hundreds of k, which greatly reduces the number of multicast forwarding entries required on the cross-connect chip.

以n=3为例,假设芯片为A,B,C,则汇聚组播组表项如表3所示:Taking n=3 as an example, assuming the chips are A, B, and C, the aggregated multicast group entries are shown in Table 3:

表3汇聚组播组表项Table 3 Aggregation multicast group entries

汇聚组播组索引Aggregate multicast group index 目的Purpose 00 AA 11 BB 22 CC 33 ABAB 44 ACAC 55 BCBC 66 ABCABC

所有的业务组播都承载在这7个汇聚组播组上转发,无论业务组播有多少,一定是这7个汇聚组中的一个模型。All service multicasts are carried and forwarded on these 7 aggregation multicast groups. No matter how many service multicasts there are, it must be a model in these 7 aggregation groups.

进一步的,从汇聚组播组集合中找到具有相同芯片分布的汇聚组播组,填写在nfi上的业务组播到汇聚组播的组播映射表,组播映射表如表4所示:Further, find the aggregation multicast group with the same chip distribution from the aggregation multicast group set, and fill in the multicast mapping table from the service multicast on the nfi to the aggregation multicast. The multicast mapping table is shown in Table 4:

表4组播映射表Table 4 Multicast mapping table

汇聚组播组索引Aggregate multicast group index 芯片分布Chip distribution 业务组播组组号Service multicast group number 00 AA 1、3(业务组播组只到芯片A的)1, 3 (the service multicast group only reaches chip A) 11 BB 2、4、5(业务组播组只到芯片B的)2, 4, 5 (the service multicast group only reaches chip B) 22 CC 6、7、8(业务组播组只到芯片C的)6, 7, 8 (the service multicast group only reaches chip C) 33 ABAB 9、10(业务组播组只到芯片AB的)9, 10 (service multicast group only reaches chip AB) 44 ACAC 11、12(业务组播组只到芯片AC的)11, 12 (the service multicast group only reaches the chip AC) 55 BCBC 13、14、15(业务组播组只到芯片BC的)13, 14, 15 (the service multicast group only reaches the chip BC) 66 ABCABC 16(业务组播组只到芯片ABC的)16 (service multicast group only reaches chip ABC)

参见图2所示,本发明实施例的组播汇聚的方法,包括以下步骤:Referring to FIG. 2 , the method for multicast aggregation according to an embodiment of the present invention includes the following steps:

入方向的业务芯片完成cell头封装,并且映射业务组播组到汇聚组播组。The service chip in the inbound direction completes the cell header encapsulation, and maps the service multicast group to the aggregation multicast group.

中间的交叉芯片完成汇聚组播组的转发,要求汇聚组播组表项配置在交叉芯片上,汇聚组播组表项包含所有可能的汇聚组播组,即所有可能的出方向的芯片的排列组合。The cross chip in the middle completes the forwarding of the aggregation multicast group, and the aggregation multicast group entry is required to be configured on the cross chip. The aggregation multicast group entry includes all possible aggregation multicast groups, that is, the arrangement of all possible outgoing chips. combination.

出方向的芯片完成汇聚组播组头的剥离,使用业务组播组完成业务组播的后续转发。The chip in the outbound direction completes the stripping of the aggregation multicast group header, and uses the service multicast group to complete the subsequent forwarding of the service multicast.

图4所示为汇聚组播组与业务组播组映射关系示意图。关于如何将业务组播汇聚到可承载的汇聚组播组上,包括以下步骤:FIG. 4 is a schematic diagram showing the mapping relationship between the aggregation multicast group and the service multicast group. How to aggregate service multicast to a bearable aggregation multicast group includes the following steps:

使用公式

Figure BDA0002581727620000081
创建所有的汇聚组播组表项,这些表项内容包含了所有可能存在的汇聚组播目的芯片的组合。use formula
Figure BDA0002581727620000081
Create all aggregation multicast group entries, which contain all possible combinations of aggregation multicast destination chips.

将业务多播到该业务所对应的所有芯片上;Multicast the service to all chips corresponding to the service;

根据标准业务组播组加入报文得到每个业务的业务组播组的所对应的芯片分布,从汇聚组播组集合中找到具有相同芯片分布的汇聚组播组,填写在nfi上的业务组播到汇聚组播的组播映射表,参见图4所示。Obtain the corresponding chip distribution of the service multicast group of each service according to the standard service multicast group join message, find the aggregation multicast group with the same chip distribution from the aggregation multicast group set, and fill in the service group on nfi Figure 4 shows the multicast mapping table from broadcast to aggregated multicast.

在以上步骤完成之后,报文的转发如图5所示。After the above steps are completed, the forwarding of the message is shown in Figure 5.

首先在入方向的业务芯片上查找业务组播表,得到业务组播组。First, search the service multicast table on the service chip in the inbound direction to obtain the service multicast group.

在送入交叉芯片之前,查业务组播组到汇聚组播组的组播映射表,得到汇聚组播组,添加汇聚组播组头。Before sending to the cross-connect chip, check the multicast mapping table from the service multicast group to the aggregation multicast group, obtain the aggregation multicast group, and add the aggregation multicast group header.

在交叉芯片上根据汇聚组播组头查找汇聚组播组表项,进行汇聚组播组的转发。On the cross-connect chip, the aggregation multicast group entry is searched according to the aggregation multicast group header, and the aggregation multicast group is forwarded.

报文离开交叉芯片到达出方向的业务芯片,汇聚组播组头被剥去。The packet leaves the cross-connect chip and reaches the outbound service chip, and the aggregation multicast group header is stripped.

出方向芯片完成后续业务组播组的转发。The outgoing direction of the chip completes the forwarding of the subsequent service multicast group.

本发明实施例在新定义汇聚组播组的情况下,用一条汇聚组播组承载多条具有相同目的芯片分布的业务组播组,大大减少了交叉芯片上组播转发的设计消耗。入方向的业务芯片收到待转发业务时,查找业务组播组到汇聚组播组的组播映射表得到对应的汇聚组播组,在报文中的业务组播头前添加对应的汇聚组播组头,发送至相应的交叉芯片;交叉芯片收到报文时,根据汇聚组播组头进行组播转发;出方向的业务芯片收到报文时,剥去汇聚组播组头后进行业务组播组的转发。实现大大减少交叉芯片的硬件消耗同时完成组播业务的转发。In the embodiment of the present invention, under the condition of newly defined aggregation multicast group, one aggregation multicast group is used to carry multiple service multicast groups with the same destination chip distribution, which greatly reduces the design consumption of multicast forwarding on cross chips. When the inbound service chip receives the service to be forwarded, it searches the multicast mapping table from the service multicast group to the aggregation multicast group to obtain the corresponding aggregation multicast group, and adds the corresponding aggregation group before the service multicast header in the packet. The multicast group header is sent to the corresponding cross-connect chip; when the cross-connect chip receives the packet, it performs multicast forwarding according to the aggregation multicast group header; when the outbound service chip receives the packet, it strips the aggregation multicast group header and performs Forwarding of service multicast groups. It can greatly reduce the hardware consumption of the cross-connect chip and complete the forwarding of multicast services.

基于同一发明构思,本发明实施例还提供一种交叉芯片的组播转发系统,包括:汇聚组播组创建模块、映射表创建模块、入方向的业务芯片、交叉芯片和出方向的业务芯片:Based on the same inventive concept, an embodiment of the present invention further provides a cross-chip multicast forwarding system, including: an aggregation multicast group creation module, a mapping table creation module, an inbound service chip, a cross-connect chip, and an outbound service chip:

所述汇聚组播组创建模块用于:创建汇聚组播组表项并配置到交叉芯片上,所述汇聚组播组表项包含所有可能的汇聚组播组,每个汇聚组播组为出方向的芯片分布组合;The aggregation multicast group creation module is used to: create an aggregation multicast group entry and configure it on the cross-connect chip, the aggregation multicast group entry includes all possible aggregation multicast groups, and each aggregation multicast group is an outgoing multicast group. Direction of chip distribution combination;

所述映射表创建模块用于:根据各个业务组播组的芯片分布,得到业务组播组对应的汇聚组播组,生成业务组播组到汇聚组播组的组播映射表并配置到业务芯片;The mapping table creation module is used for: obtaining the aggregation multicast group corresponding to the service multicast group according to the chip distribution of each service multicast group, generating a multicast mapping table from the service multicast group to the aggregation multicast group, and configuring it into the service multicast group. chip;

所述入方向的业务芯片用于:入方向的业务芯片收到待转发业务时,查找组播映射表得到对应的汇聚组播组,在报文中的业务组播头前添加对应的汇聚组播组头,发送至交叉芯片;The service chip in the inbound direction is used to: when the service chip in the inbound direction receives the service to be forwarded, look up the multicast mapping table to obtain the corresponding aggregation multicast group, and add the corresponding aggregation group before the service multicast header in the packet. Broadcast group header, sent to the cross chip;

所述交叉芯片用于:收到报文时,根据汇聚组播组头和汇聚组播组表项进行组播转发;The cross-connect chip is used to: perform multicast forwarding according to the aggregated multicast group header and the aggregated multicast group entry when receiving the message;

所述出方向的业务芯片用于:收到报文时,剥去汇聚组播组头后进行业务组播组的转发。The service chip in the outbound direction is used for forwarding the service multicast group after stripping the aggregation multicast group header when receiving the message.

优选的,所述汇聚组播组创建模块创建汇聚组播组表项时,所有可能的汇聚组播组的总数为:

Figure BDA0002581727620000101
其中,n为所有入方向和出方向的业务芯片的总和。Preferably, when the aggregation multicast group creation module creates the aggregation multicast group entry, the total number of all possible aggregation multicast groups is:
Figure BDA0002581727620000101
Among them, n is the sum of all inbound and outbound service chips.

优选的,所述汇聚组播组头的组成字段包括:报文类型、源芯片和汇聚组播组;所述业务组播头的组成字段包括:业务类型、业务组播组。Preferably, the composition fields of the convergent multicast group header include: message type, source chip and convergent multicast group; the composition fields of the service multicast header include: service type and service multicast group.

作为本发明实施例优选的实施方式,所述入方向的业务芯片根据各个业务组播组对应的芯片分布,得到业务组播组对应的汇聚组播组,包括以下步骤:As a preferred implementation of the embodiment of the present invention, the service chips in the inbound direction obtain the aggregation multicast group corresponding to the service multicast group according to the chip distribution corresponding to each service multicast group, including the following steps:

将业务多播到该业务所对应的所有芯片上;Multicast the service to all chips corresponding to the service;

根据标准业务组播组加入报文得到每个业务的业务组播组的所对应的芯片分布,从汇聚组播组表项中找到具有相同芯片分布的汇聚组播组,作为该业务组播组对应的汇聚组播组。According to the standard service multicast group join message, the corresponding chip distribution of the service multicast group of each service is obtained, and the aggregation multicast group with the same chip distribution is found from the aggregation multicast group entry as the service multicast group. The corresponding aggregation multicast group.

作为本发明实施例优选的实施方式,所述交叉芯片具体用于:As a preferred implementation of the embodiment of the present invention, the cross chip is specifically used for:

收到报文时,根据汇聚组播组头查找汇聚组播组表项,得到对应的汇聚组播组;When a packet is received, the aggregation multicast group entry is searched according to the aggregation multicast group header, and the corresponding aggregation multicast group is obtained;

根据汇聚组播组将报文发送至对应的出方向芯片。According to the aggregation multicast group, the packet is sent to the corresponding outbound chip.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、服务器或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器和光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, server or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media having computer-usable program code embodied therein, including but not limited to disk storage, optical storage, and the like.

显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。It will be apparent to those skilled in the art that various modifications and variations can be made in the present invention without departing from the spirit and scope of the invention. Thus, provided that these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims (10)

1. A multicast forwarding method of cross chips is characterized by comprising the following steps:
creating a convergence multicast group table item and configuring the convergence multicast group table item to a cross chip, wherein the convergence multicast group table item comprises all possible convergence multicast groups, and each convergence multicast group is a chip distribution combination in an outgoing direction;
according to the chip distribution of each service multicast group, a convergence multicast group corresponding to the service multicast group is obtained, a multicast mapping table from the service multicast group to the convergence multicast group is generated and configured to a service chip;
when a service chip in the incoming direction receives a service to be forwarded, searching a multicast mapping table to obtain a corresponding convergence multicast group, adding a corresponding convergence multicast group head in front of a service multicast head in a message, and sending the convergence multicast group head to a cross chip;
when receiving the message, the cross chip performs multicast forwarding according to the aggregation multicast group header and the aggregation multicast group table entry;
when the service chip in the outgoing direction receives the message, the head of the convergence multicast group is stripped off, and then the service multicast group is forwarded.
2. The method of claim 1, wherein when creating the aggregate multicast group entry, the total number of all possible aggregate multicast groups is:
Figure FDA0002581727610000011
wherein n is the sum of all traffic chips in the incoming and outgoing directions.
3. The method of claim 1, wherein the composition field of the aggregated multicast group header comprises: message type, source chip and aggregate multicast group; the composition field of the service multicast header comprises: service type, service multicast group.
4. The method of claim 1, wherein the service chip in the incoming direction obtains the converged multicast group corresponding to the service multicast group according to the chip distribution corresponding to each service multicast group, comprising the following steps:
multicasting the service to all chips corresponding to the service;
and obtaining the corresponding chip distribution of the service multicast group of each service according to the standard service multicast group adding message, and finding the converged multicast group with the same chip distribution from the converged multicast group list item to be used as the converged multicast group corresponding to the service multicast group.
5. The method according to claim 1, wherein when receiving the packet, the cross chip performs multicast forwarding according to the aggregate multicast group header and the aggregate multicast group entry, and specifically includes the following steps:
when the cross chip receives the message, searching the aggregate multicast group list item according to the aggregate multicast group head to obtain the corresponding aggregate multicast group;
and sending the message to a corresponding outgoing direction chip according to the aggregation multicast group.
6. A cross-chip multicast forwarding system, comprising: the system comprises a multicast group convergence establishing module, a mapping table establishing module, an incoming service chip, a cross chip and an outgoing service chip, wherein the multicast group convergence establishing module comprises:
the aggregate multicast group creation module is configured to: creating a convergence multicast group table item and configuring the convergence multicast group table item to a cross chip, wherein the convergence multicast group table item comprises all possible convergence multicast groups, and each convergence multicast group is a chip distribution combination in an outgoing direction;
the mapping table creation module is configured to: according to the chip distribution of each service multicast group, a convergence multicast group corresponding to the service multicast group is obtained, a multicast mapping table from the service multicast group to the convergence multicast group is generated and configured to a service chip;
the business chip in the incoming direction is used for: when a service chip in the incoming direction receives a service to be forwarded, searching a multicast mapping table to obtain a corresponding convergence multicast group, adding a corresponding convergence multicast group head in front of a service multicast head in a message, and sending the convergence multicast group head to a cross chip;
the cross chip is used for: when receiving the message, carrying out multicast forwarding according to the aggregation multicast group header and the aggregation multicast group list item;
the outgoing direction service chip is configured to: when receiving the message, the head of the convergence multicast group is stripped off and then the service multicast group is forwarded.
7. The system of claim 6, wherein the aggregate multicast group creation module, when creating the aggregate multicast group entry, has a total number of all possible aggregate multicast groups of:
Figure FDA0002581727610000031
wherein n is the sum of all traffic chips in the incoming and outgoing directions.
8. The system of claim 6, wherein the composition field of the aggregated multicast group header comprises: message type, source chip and aggregate multicast group; the composition field of the service multicast header comprises: service type, service multicast group.
9. The system of claim 6, wherein the service chip in the incoming direction obtains the converged multicast group corresponding to the service multicast group according to the chip distribution corresponding to each service multicast group, comprising the following steps:
multicasting the service to all chips corresponding to the service;
and obtaining the corresponding chip distribution of the service multicast group of each service according to the standard service multicast group adding message, and finding the converged multicast group with the same chip distribution from the converged multicast group list item to be used as the converged multicast group corresponding to the service multicast group.
10. The system of claim 6, wherein the crossbar chip is specifically configured to:
when receiving the message, searching a convergent multicast group list item according to the convergent multicast group header to obtain a corresponding convergent multicast group;
and sending the message to a corresponding outgoing direction chip according to the aggregation multicast group.
CN202010669498.6A 2020-07-13 2020-07-13 Multicast forwarding method and system for cross chip Active CN111917651B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010669498.6A CN111917651B (en) 2020-07-13 2020-07-13 Multicast forwarding method and system for cross chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010669498.6A CN111917651B (en) 2020-07-13 2020-07-13 Multicast forwarding method and system for cross chip

Publications (2)

Publication Number Publication Date
CN111917651A true CN111917651A (en) 2020-11-10
CN111917651B CN111917651B (en) 2022-04-15

Family

ID=73226857

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010669498.6A Active CN111917651B (en) 2020-07-13 2020-07-13 Multicast forwarding method and system for cross chip

Country Status (1)

Country Link
CN (1) CN111917651B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595879A (en) * 2003-09-08 2005-03-16 华为技术有限公司 A method for increasing efficiency of multicast data forwarding in circumstance of large-capacity routing table
CN1881931A (en) * 2005-06-13 2006-12-20 中兴通讯股份有限公司 Multicast forwarding route aggregating method
CN1925468A (en) * 2006-09-27 2007-03-07 华为技术有限公司 Internet set managerial protocol report inhibiting method and communications network system
CN101242342A (en) * 2007-02-05 2008-08-13 华为技术有限公司 Multicast method and multicast routing method
US20100091648A1 (en) * 2007-06-14 2010-04-15 Huawei Technologies Co., Ltd. Method, device and system for protecting multicast traffic
CN101702689A (en) * 2009-11-30 2010-05-05 迈普通信技术股份有限公司 Transmission control method with balanced multicast service data load and access device thereof
CN101778113A (en) * 2010-01-25 2010-07-14 福建星网锐捷网络有限公司 Method for detection of RP state in multicast network, device, RP device and multicast system
CN103475591A (en) * 2013-08-28 2013-12-25 杭州华三通信技术有限公司 Method and device for forwarding multicast data and software defined network controller
CN104426781A (en) * 2013-09-05 2015-03-18 华为技术有限公司 Method for realizing gathering of multicast routers, multicast method and route equipment
CN105553857A (en) * 2015-12-11 2016-05-04 瑞斯康达科技发展股份有限公司 Method and system for IP (Internet Protocol) multicast routing forwarding

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1595879A (en) * 2003-09-08 2005-03-16 华为技术有限公司 A method for increasing efficiency of multicast data forwarding in circumstance of large-capacity routing table
CN1881931A (en) * 2005-06-13 2006-12-20 中兴通讯股份有限公司 Multicast forwarding route aggregating method
CN1925468A (en) * 2006-09-27 2007-03-07 华为技术有限公司 Internet set managerial protocol report inhibiting method and communications network system
CN101242342A (en) * 2007-02-05 2008-08-13 华为技术有限公司 Multicast method and multicast routing method
US20100091648A1 (en) * 2007-06-14 2010-04-15 Huawei Technologies Co., Ltd. Method, device and system for protecting multicast traffic
CN101702689A (en) * 2009-11-30 2010-05-05 迈普通信技术股份有限公司 Transmission control method with balanced multicast service data load and access device thereof
CN101778113A (en) * 2010-01-25 2010-07-14 福建星网锐捷网络有限公司 Method for detection of RP state in multicast network, device, RP device and multicast system
CN103475591A (en) * 2013-08-28 2013-12-25 杭州华三通信技术有限公司 Method and device for forwarding multicast data and software defined network controller
CN104426781A (en) * 2013-09-05 2015-03-18 华为技术有限公司 Method for realizing gathering of multicast routers, multicast method and route equipment
CN105553857A (en) * 2015-12-11 2016-05-04 瑞斯康达科技发展股份有限公司 Method and system for IP (Internet Protocol) multicast routing forwarding

Also Published As

Publication number Publication date
CN111917651B (en) 2022-04-15

Similar Documents

Publication Publication Date Title
US7864769B1 (en) Multicast packet replication
CN111901244B (en) Network message forwarding system
CN100438498C (en) Ethernet device stacking method and its system
US8638788B2 (en) Replication management for remote multicast replication network
WO2019228433A1 (en) Multicast data message forwarding method and device
EP3038327A1 (en) System and method for multi-source multicasting in content-centric networks
US10469277B2 (en) Multicast group establishment method in fat-tree network, apparatus, and fat-tree network
CN100566282C (en) The Apparatus and method for of control transmitting multicast data
CN103873373A (en) Multicast data message forwarding method and equipment
WO2018099393A1 (en) Method of forwarding multicast data packet
CN103947154B (en) For the method and apparatus that the multicast in long-range multicast dubbing system is replicated
US20080107114A1 (en) Method and apparatus for forwarding service in a data communication device
WO2022048412A1 (en) Method for generating table item, method for sending message, device, and system
CN102104488A (en) Multicast message processing method and device
CN101330466A (en) Method and device for forwarding multicast message
CN101631129B (en) Method and device for transmitting multicast data
CN100473051C (en) Multicast Forwarding Route Aggregation Method
CN110619066A (en) Information acquisition method and device based on directory tree
WO2018036256A1 (en) Method and apparatus for generating acl
CN105939266B (en) A kind of transmission method and device of message
US20140348164A1 (en) Maintaining a multicast forwarding table and a pim router
Guo Aggregating uncertain incast transfers in BCube-like data centers
CN103200119B (en) A kind of Ethernet virtual interconnection site inner load sharing method and edge device
CN111917651A (en) Multicast forwarding method and system for cross chip
CN101729413A (en) Multi-service processing system and method based on ATCA

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant