CN115037691A - A kind of multicast mask table negotiation method and device - Google Patents
A kind of multicast mask table negotiation method and device Download PDFInfo
- Publication number
- CN115037691A CN115037691A CN202210610645.1A CN202210610645A CN115037691A CN 115037691 A CN115037691 A CN 115037691A CN 202210610645 A CN202210610645 A CN 202210610645A CN 115037691 A CN115037691 A CN 115037691A
- Authority
- CN
- China
- Prior art keywords
- mask table
- hardware mask
- multicast
- multicast hardware
- equipment
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/15—Flow control; Congestion control in relation to multipoint traffic
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/50—Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域technical field
本申请涉及通信技术,特别涉及一种组播掩码表协商方法及设备。The present application relates to communication technologies, and in particular, to a method and device for negotiating a multicast mask table.
背景技术Background technique
DRNI(Distributed Resilient Network Interconnect,分布式弹性网络互连)是基于IEEE P802.1AX协议的跨设备链路聚合技术。DRNI将两台物理设备虚拟成一台设备来实现跨设备链路聚合,从而提供设备级冗余保护和流量负载分担。DRNI主要应用于双归接入组网,将可靠性从链路级提高到设备级。DRNI (Distributed Resilient Network Interconnect, Distributed Resilient Network Interconnect) is a cross-device link aggregation technology based on the IEEE P802.1AX protocol. DRNI virtualizes two physical devices into one device to implement cross-device link aggregation, thereby providing device-level redundancy protection and traffic load balancing. DRNI is mainly used in dual-homing access networking to improve reliability from link level to device level.
DRNI的主备DR(Distributed Relay,分布式聚合)与上游的组播源以及下游的组播成员设备均形成PIM邻居。当主备DR设备通过DR接口构成的DR组连接上游的组播源设备时,上游组播源将组播数据报文负载分担到DRNI的主备DR设备,主备DR设备复制一份收到的组播数据报文再通过IPL链路发往对端。当主备DR设备未通过DR组连接上游的组播源设备时,上游组播源将组播数据报文分别发送一份到DRNI的主备DR设备。The active and standby DRs (Distributed Relay, distributed aggregation) of DRNI form PIM neighbors with upstream multicast sources and downstream multicast member devices. When the active and standby DR devices connect to the upstream multicast source device through the DR group formed by the DR interface, the upstream multicast source distributes the multicast data packet load to the active and standby DRNI devices, and the active and standby DR devices copy a copy of the received The multicast data packet is then sent to the opposite end through the IPL link. When the active and standby DR devices are not connected to the upstream multicast source device through the DR group, the upstream multicast source sends a copy of the multicast data packet to the active and standby DR devices in the DRNI.
由于主备DR设备通过学习和同步都形成了完整组播转发硬件表,主备DR设备收到组播数据报文后会基于各自的组播转发硬件表通过DR组的本地DR接口发送组播数据报文到下游组播成员设备。因此,在主备DR设备上设置ACL用于丢弃指定的不同的组播组的组播数据报文,是每个组播组的数据报文仅有单台DR设备转发。但是当到达主备DR设备的组播数据报文都需要其中一台DR设备转发而需要由另一台DR设备丢弃时,导致了DRNI内部的复杂分担不均,而且极大地占用了主备DR设备上ACL表项的有限硬件表项资源。Since the active and standby DR devices have formed a complete multicast forwarding hardware table through learning and synchronization, the active and standby DR devices will send multicast data packets through the local DR interface of the DR group based on their respective multicast forwarding hardware tables after receiving the multicast data packets. Data packets are sent to downstream multicast member devices. Therefore, setting an ACL on the active and standby DR devices to discard multicast data packets of different specified multicast groups means that only a single DR device forwards the data packets of each multicast group. However, when the multicast data packets reaching the active and standby DR devices need to be forwarded by one of the DR devices and discarded by the other DR device, the complex and uneven distribution within the DRNI is caused, and the active and standby DR devices are greatly occupied. Limited hardware entry resources for ACL entries on the device.
发明内容SUMMARY OF THE INVENTION
本申请的目的提供一种组播掩码表协商方法及设备,分布式弹性网络互连网络的两台分布式聚合设备可以更加均匀地负载分担组播流量。The purpose of this application is to provide a method and device for negotiating a multicast mask table, so that two distributed aggregation devices in a distributed elastic network interconnection network can load-share multicast traffic more evenly.
为实现上述目的,本申请提供了一种组播掩码表协商方法,该方法包括:主分布式聚合DR设备与备DR设备协商根据组播组地址计算组播数据报文哈希值;主DR设备与备DR设备协商组播硬件掩码表大小,基于协商的组播硬件掩码大小设置各自的本地组播硬件掩码表;主DR设备与备DR设备协商组播硬件掩码表项的分配算法;主DR设备与备DR设备基于协商的分配算法以及设备角色,各自将本地组播硬件掩码表设置为一半允许转发的本地组播硬件掩码表项以及一半禁止转发的本地组播硬件掩码表项;其中,主DR设备的本地组播硬件掩码表的允许转发的本地组播硬件掩码表项的索引与备DR设备的本地组播硬件掩码表的禁止转发的本地组播硬件掩码表项的索引相同。In order to achieve the above purpose, the present application provides a method for negotiating a multicast mask table, the method comprising: a primary distributed aggregate DR device negotiating with a backup DR device to calculate a hash value of a multicast data message according to a multicast group address; The DR device and the standby DR device negotiate the size of the multicast hardware mask table, and set their own local multicast hardware mask table based on the negotiated multicast hardware mask size; the active DR device and the standby DR device negotiate the multicast hardware mask table entry Based on the negotiated allocation algorithm and device roles, the active DR device and the standby DR device respectively set the local multicast hardware mask table to half of the local multicast hardware mask entries that allow forwarding and half of the local group to prohibit forwarding. The index of the local multicast hardware mask entry that allows forwarding in the local multicast hardware mask table of the active DR device is the same as the index of the local multicast hardware mask entry that prohibits forwarding in the local multicast hardware mask table of the standby DR device. The index of the local multicast hardware mask table entry is the same.
为实现上述目的,本申请还提供了一种组播掩码表协商设备,该设备作为分布式弹性网络互连网络的分布式聚合设备包括网络接口、转发单元、处理器以及存储器,其中处理器通过运行存储器中的处理器可执行指令用以执行以下操作:In order to achieve the above object, the present application also provides a multicast mask table negotiation device. As a distributed aggregation device of a distributed elastic network interconnection network, the device includes a network interface, a forwarding unit, a processor and a memory, wherein the processor By running processor-executable instructions in memory to:
识别分布式弹性网络互连网络内的本设备的角色;与对端DR协商根据组播组地址计算组播数据报文哈希值;与对端DR协商组播硬件掩码表大小,基于协商的组播硬件掩码大小设置本地组播硬件掩码表;与对端DR协商组播硬件掩码表项的分配算法;根据识别的本设备的角色以及协商的分配算法将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项;其中,本设备的组播硬件掩码表的允许转发的组播硬件掩码表项的索引与对端的组播硬件掩码表的禁止转发的组播硬件掩码表项的索引相同。Identify the role of the device in the distributed elastic network interconnection network; negotiate with the peer DR to calculate the hash value of multicast data packets based on the multicast group address; negotiate the size of the multicast hardware mask table with the peer DR, based on the negotiation Set the local multicast hardware mask table according to the size of the multicast hardware mask; negotiate the allocation algorithm of the multicast hardware mask entry with the peer DR; according to the identified role of the device and the negotiated allocation algorithm The hardware mask table is set to half of the multicast hardware mask entries that allow forwarding and half of the multicast hardware mask entries that prohibit forwarding; among them, the multicast hardware mask of the device's multicast hardware mask table that allows forwarding The index of the entry is the same as the index of the forwarding-forbidden multicast hardware mask entry in the multicast hardware mask table of the peer end.
本申请的有益效果在于,分布式弹性网络互连网络的分布式聚合设备可以更加均匀地负载分担组播流量转发,并且节约了硬件ACL表项资源表项,减少hash极化现象。The beneficial effects of the present application are that the distributed aggregation devices of the distributed elastic network interconnection network can load-balance multicast traffic forwarding more evenly, save hardware ACL entry resource entries, and reduce hash polarization.
附图说明Description of drawings
图1为本申请提供的组播掩码表协商方法实施例的流程图;1 is a flowchart of an embodiment of a method for negotiating a multicast mask table provided by the present application;
图2为本申请提供的分布式弹性网络互连中各分布式聚合设备协商硬件组播掩码表的示意图;2 is a schematic diagram of each distributed aggregation device negotiating a hardware multicast mask table in a distributed elastic network interconnection provided by the present application;
图3为本申请提供的分布式弹性网络互连中各分布式聚合设备协商后的硬件组播掩码表的示意图;3 is a schematic diagram of a hardware multicast mask table negotiated by each distributed aggregation device in the distributed elastic network interconnection provided by the present application;
图4为本申请提供的分布式弹性网络互连中各分布式聚合设备协商后的另一硬件组播掩码表的示意图;4 is a schematic diagram of another hardware multicast mask table negotiated by each distributed aggregation device in the distributed elastic network interconnection provided by the present application;
图5为本申请提供的分布式弹性网络互连中各分布式聚合设备协商后的又一硬件组播掩码表的示意图;5 is a schematic diagram of another hardware multicast mask table negotiated by each distributed aggregation device in the distributed elastic network interconnection provided by the present application;
图6为本申请提供的组播掩码表协商设备实施例的示意图。FIG. 6 is a schematic diagram of an embodiment of a multicast mask table negotiation device provided by the present application.
具体实施方式Detailed ways
将以多个附图所示的多个例子进行详细说明。在以下详细描述中,多个具体细节用于提供对本申请的全面理解。实例中没有详细地描述已知的方法、步骤、组件以及电路,以免使这些例子的难于理解。The detailed description will be given with a number of examples shown in the various figures. In the following detailed description, numerous specific details are provided to provide a thorough understanding of the present application. Well-known methods, procedures, components, and circuits have not been described in detail in the examples so as not to obscure the understanding of the examples.
使用的术语中,术语“包括”表示包括但不限于;术语“含有”表示包括但不限于;术语“以上”、“以内”以及“以下”包含本数;术语“大于”、“小于”表示不包含本数。术语“基于”表示至少基于其中一部分。In the terms used, the term "including" means including but not limited to; the term "containing" means including but not limited to; the terms "above", "within" and "below" include this number; the terms "greater than" and "less than" mean not Include this number. The term "based on" means based on at least a portion thereof.
图1所示的本申请提供的组播掩码表协商方法实施例的流程图包括:The flowchart of the embodiment of the multicast mask table negotiation method provided by the present application shown in FIG. 1 includes:
步骤101,主备DR设备协商根据组播组地址计算组播数据报文哈希值;
步骤102,主备DR设备协商组播硬件掩码表大小,基于协商的组播硬件掩码大小设置各自的本地组播硬件掩码表;
步骤103,主备DR设备协商组播硬件掩码表项的分配算法;
步骤104,主备DR设备基于协商的分配算法以及设备角色,各自将本地组播硬件掩码表设置为一半允许转发的本地组播硬件掩码表项以及一半禁止转发的本地组播硬件掩码表项;Step 104: Based on the negotiated allocation algorithm and device role, the active and standby DR devices respectively set the local multicast hardware mask table to half of the local multicast hardware mask entries that allow forwarding and half of the local multicast hardware masks that prohibit forwarding. entry;
其中,主DR设备的本地组播硬件掩码表的允许转发的本地组播硬件掩码表项的索引与备DR设备的本地组播硬件掩码表的禁止转发的本地组播硬件掩码表项的索引相同The index of the local multicast hardware mask table entry that allows forwarding in the local multicast hardware mask table of the active DR device and the local multicast hardware mask table that prohibits forwarding in the local multicast hardware mask table of the standby DR device Items have the same index
图1所示实施例的有益效果在于,分布式弹性网络互连网络的分布式聚合设备可以更加均匀地负载分担组播流量转发,并且节约了硬件ACL表项资源表项,减少hash极化现象。The beneficial effect of the embodiment shown in FIG. 1 is that the distributed aggregation devices of the distributed elastic network interconnection network can load-balance multicast traffic forwarding more evenly, save hardware ACL entry resource entries, and reduce hash polarization .
图2为本申请提供的分布式弹性网络互连中各分布式聚合设备协商硬件组播掩码表的示意图。构成DRNI20的主DR设备21与备DR设备22通过互联的IPL(Intra-Portal Link,内部控制链路)发送DRCP报文协商硬件组播掩码表。FIG. 2 is a schematic diagram of each distributed aggregation device negotiating a hardware multicast mask table in the distributed elastic network interconnection provided by the present application. The primary DR device 21 and the backup DR device 22 that constitute the DRNI 20 send a DRCP message through an interconnected IPL (Intra-Portal Link, internal control link) to negotiate a hardware multicast mask table.
图2中,主DR设备与备DR设备协商根据收到的组播报文的组播组地址计算组播数据报文hash值。主DR设备21与备DR设备22协商组播硬件掩码表大小,主DR设备21与备DR设备2基于协商的组播硬件掩码大小设置各自的本地组播硬件掩码表。主DR设备21与备DR设备22协商组播硬件掩码表项的分配算法;主DR设备21根据协商的分配算法以及设备角色,将备设备的组播硬件掩码表设置为一半允许转发的本地组播硬件掩码表项以及一半禁止转发的本地组播硬件掩码表项;备DR设备22根据协商的分配算法以及设备角色,将本设备上与主DR设备21上禁止状态的组播硬件掩码表项的表项索引相同组播硬件掩码表项设置为转发状态,将另一半组播硬件掩码表项为禁止状态。In Figure 2, the active DR device negotiates with the standby DR device to calculate the hash value of the multicast data packet according to the multicast group address of the received multicast packet. The active DR device 21 and the standby DR device 22 negotiate the size of the multicast hardware mask table, and the active DR device 21 and the standby DR device 2 set their respective local multicast hardware mask tables based on the negotiated multicast hardware mask size. The active DR device 21 and the standby DR device 22 negotiate an allocation algorithm for multicast hardware mask entries; the active DR device 21 sets the standby device's multicast hardware mask table to half of the ones that allow forwarding according to the negotiated allocation algorithm and device role. The local multicast hardware mask entry and half of the local multicast hardware mask entries for which forwarding is prohibited; the standby DR device 22, according to the negotiated allocation algorithm and device role, assigns the multicast disabled state between the local device and the active DR device 21. The hardware mask entry has the same entry index and the multicast hardware mask entry is set to the forwarding state, and the other half of the multicast hardware mask entry is disabled.
DR设备21和22对组播数据报文的经过CRC运算得到的hash值,会索引一张组播硬件掩码表。组播硬件掩码表的各表项如果被设置为存储指示转发状态的值,则根据该表项允许该组播数据报文,如果被设置为存储指示禁止状态的值,则丢弃该组播数据报文进行转发。不同组播硬件掩码表的大小不同,DR设备21和22通过协商设置相同大小的组播硬件掩码表来保证两台设备上的组播硬件掩码表的表项数目相同。DR devices 21 and 22 will index a multicast hardware mask table based on the hash value obtained by the CRC operation of the multicast data packet. If each entry in the multicast hardware mask table is set to store the value indicating the forwarding state, the multicast data packet is allowed according to the entry, and if it is set to store the value indicating the forbidden state, the multicast is discarded Data packets are forwarded. Different multicast hardware mask tables have different sizes. DR devices 21 and 22 negotiate and set the same size of the multicast hardware mask tables to ensure the same number of entries in the multicast hardware mask tables on the two devices.
图2中主DR设备21与备DR设备22协商的组播硬件掩码表项的分配算法为对半分配时,主备DR设备22和22设备协商后的硬件组播掩码表如图3所示。主DR设备21将本设备的组播硬件掩码表211中优先占用的连续表项索引index1-index4指向的组播硬件掩码表项设置为允许转发,将剩余一半的组播硬件掩码表项设置为禁止转发。When the allocation algorithm of the multicast hardware mask entries negotiated by the active DR device 21 and the standby DR device 22 in Figure 2 is half allocation, the hardware multicast mask table negotiated by the active and standby DR devices 22 and 22 is shown in Figure 3 shown. The master DR device 21 sets the multicast hardware mask entry pointed to by the consecutive entry indices index1-index4 in the multicast hardware mask table 211 of its own device to allow forwarding, and sets the remaining half of the multicast hardware mask table to allow forwarding. item is set to prohibit forwarding.
备DR设备22将本设备的组播硬件掩码表221优先占用的连续表项索引index1-index4指向的组播硬件掩码表项设置为禁止转发;将index5-index8指向的剩余一半组播硬件掩码表项设置为允许转发;即,即备DR设备22设置与主DR设备21上禁止状态的组播硬件掩码表项的表项索引相同组播硬件掩码表项为转发状态;设置与主DR设备21上转发状态的组播硬件掩码表项的表项索引相同组播硬件掩码表项为禁止状态。图3中优先占用的连续表项索引设置方式可根据实际的组播硬件掩码表的表项索引进行设置。The standby DR device 22 sets the multicast hardware mask entries pointed to by the consecutive entry indexes index1-index4 that are preferentially occupied by the multicast hardware mask table 221 of this device to prohibit forwarding; set the remaining half of the multicast hardware pointed to by index5-index8 The mask entry is set to allow forwarding; that is, the standby DR device 22 is set to the same as the entry index of the multicast hardware mask entry in the disabled state on the main DR device 21. The multicast hardware mask entry is the forwarding state; set The multicast hardware mask entry is in the disabled state with the same entry index as the multicast hardware mask entry in the forwarding state on the master DR device 21 . In FIG. 3 , the setting method of the index of the consecutive entries that are preferentially occupied may be set according to the entry index of the actual multicast hardware mask table.
图2中主DR设备21与备DR设备22协商的组播硬件掩码表项的分配算法为奇偶交错时,主备DR设备22和22设备协商后的硬件组播掩码表如图4所示。In Fig. 2, when the allocation algorithm of the multicast hardware mask entries negotiated by the master DR device 21 and the standby DR device 22 is parity interleaving, the hardware multicast mask table negotiated by the master and standby DR devices 22 and 22 is as shown in Fig. 4 Show.
主DR设备21根据本设备的角色以及奇偶交错分配算法,将本设备的组播硬件掩码表211中优先占用的奇数表项索引index1、index3、index5、index7指向组播硬件掩码表项设置为允许转发,将偶数表项索引index2、index4、index6、index8指向的剩余一半本地组播硬件掩码表项设置为禁止转发。The master DR device 21 sets the odd-numbered entry indexes index1, index3, index5, and index7 that are preferentially occupied in the multicast hardware mask table 211 of the device to the multicast hardware mask entry according to the role of the device and the parity interleaving algorithm. To allow forwarding, set the remaining half of the local multicast hardware mask entries pointed to by even-numbered entry indexes index2, index4, index6, and index8 to prohibit forwarding.
备DR设备22根据本设备的角色以及奇偶交错分配算法,将本设备的组播硬件掩码表221中优先占用的奇数表项索引index1、index3、index5、index7指向的组播硬件掩码表设置为禁止转发,将偶数表项索引index2、index4、index6、index8指向剩余一半本地组播硬件掩码表项设置为允许转发。The standby DR device 22 sets the multicast hardware mask table pointed to by the odd-numbered entry indexes index1, index3, index5, and index7 in the multicast hardware mask table 221 of the device based on the role of the device and the parity interleaving algorithm. To prohibit forwarding, set the even-numbered entry indexes index2, index4, index6, and index8 to point to the remaining half of the local multicast hardware mask entries to allow forwarding.
图4中,备DR设备22的组播硬件掩码表221设置的禁止状态的组播硬件掩码表项的表项索引与主DR设备21的组播硬件掩码表211设置的转发状态的组播硬件掩码表项的索引相同;备DR设备22的组播硬件掩码表221设置的转发状态的组播硬件掩码表项的表项索引与主DR设备21的组播硬件掩码表211设置的禁止状态的组播硬件掩码表项的索引相同。In FIG. 4 , the entry index of the multicast hardware mask entry in the disabled state set in the multicast hardware mask table 221 of the standby DR device 22 is the same as the forwarding state set in the multicast hardware mask table 211 of the master DR device 21 The index of the multicast hardware mask entry is the same; the entry index of the multicast hardware mask entry in the forwarding state set in the multicast hardware mask table 221 of the standby DR device 22 is the same as the multicast hardware mask of the master DR device 21 The indexes of the multicast hardware mask entries in the disabled state set in Table 211 are the same.
本申请可以对图4所示奇偶交错分配算法的实施例进行变化,将偶数表项索引index2、index4、index6、index8作为优先占用的奇数表项索引。主DR设备21将本设备的组播硬件掩码表211中优先占用的偶数表项索引index2、index4、index6、index8指向组播硬件掩码表项设置为允许转发,将奇数表项索引index1、index3、index5、index7指向的剩余一半本地组播硬件掩码表项设置为禁止转发。备DR设备22将本设备的组播硬件掩码表221中优先占用的偶数表项索引index2、index4、index6、index8指向组播硬件掩码表项设置为禁止转发,将奇数表项索引index1、index3、index5、index7指向的剩余一半本地组播硬件掩码表项设置为允许转发。The present application may change the embodiment of the parity interleaving allocation algorithm shown in FIG. 4 , and use the even-numbered entry indexes index2, index4, index6, and index8 as the odd-numbered entry indexes to be occupied preferentially. The master DR device 21 sets the even-numbered entry indexes index2, index4, index6, and index8 that are preferentially occupied in the multicast hardware mask table 211 of the device to the multicast hardware mask entry to allow forwarding, and sets the odd-numbered entry indexes index1, The remaining half of the local multicast hardware mask entries pointed to by index3, index5, and index7 are set to prohibit forwarding. The standby DR device 22 sets the even-numbered entry indexes index2, index4, index6, and index8 that are preferentially occupied in the multicast hardware mask table 221 of the device to point to the multicast hardware mask entry to prohibit forwarding, and sets the odd-numbered entry indexes index1, The remaining half of the local multicast hardware mask entries pointed to by index3, index5, and index7 are set to allow forwarding.
图2中主DR设备21与备DR设备22协商的组播硬件掩码表项的分配算法为常用循环冗余码(CRC)多项式算法时,主备DR设备22和22设备协商后的硬件组播掩码表如图5所示。主DR设备21与备DR设备22可使用CRC-4、CRC-8、CRC-12、CRC-16、CRC-CCITT、CRC-32。In FIG. 2, when the allocation algorithm of the multicast hardware mask entry negotiated by the master DR device 21 and the backup DR device 22 is a common cyclic redundancy code (CRC) polynomial algorithm, the hardware group after the master and backup DR devices 22 and 22 negotiate The broadcast mask table is shown in Figure 5. The primary DR device 21 and the backup DR device 22 can use CRC-4, CRC-8, CRC-12, CRC-16, CRC-CCITT, and CRC-32.
主DR设备21基于预设的CRC-多项式算法对组播硬件掩码表211的表项索引进行计算,将计算结果指示主DR设备角色的表项索引指向的主DR设备的本地组播硬件掩码表项设置为允许转发,将计算结果指示备DR设备角色的表项索引指向的主DR设备的本地组播硬件掩码表项设置为禁止转发。The primary DR device 21 calculates the entry index of the multicast hardware mask table 211 based on the preset CRC-polynomial algorithm, and the calculation result indicates the local multicast hardware mask of the primary DR device pointed to by the entry index of the role of the primary DR device. The code table entry is set to allow forwarding, and the local multicast hardware mask entry of the primary DR device pointed to by the table entry index indicating the role of the standby DR device is set to prohibit forwarding.
本实施例中,主DR设备21计算组播硬件掩码表211的表项索引index1、index2、index4、index6得到hash值计算结果指示为主DR设备角色,计算表项索引index3、index5、index7、index8对应的hash值的计算结果指示为备DR设备角色,设置组播硬件掩码表211中表项索引index1、index2、index4、index6指向的组播硬件掩码表项设置为允许转发,表项索引inndex3、index5、index7、index8指向的组播硬件掩码表项设置为禁止转发。In this embodiment, the master DR device 21 calculates the entry indexes index1, index2, index4, and index6 of the multicast hardware mask table 211 to obtain the hash value calculation result indicating the role of the master DR device, and calculates the entry indexes index3, index5, index7, The calculation result of the hash value corresponding to index8 indicates the role of the standby DR device. Set the multicast hardware mask entries pointed to by the entry indexes index1, index2, index4, and index6 in the multicast hardware mask table 211 to allow forwarding. The multicast hardware mask entries pointed to by indexes index3, index5, index7, and index8 are set to prohibit forwarding.
备DR设备22计算组播硬件掩码表221的表项索引index1、index2、index4、index6对应的HASH值的计算结果指示为主DR设备角色,计算表项索引index3、index5、index7、index8对应的HASH值的计算结果指示为备DR设备角色,设置组播硬件掩码表221中表项索引index1、index2、index4、index6指向的组播硬件掩码表项设置为禁止转发,表项索引ndex3、index5、index7、index8指向的组播硬件掩码表项设置为转发状态。The backup DR device 22 calculates the HASH values corresponding to the entry indexes index1, index2, index4, and index6 of the multicast hardware mask table 221. The calculation result indicates the role of the primary DR device, and the calculation table entry indexes index3, index5, index7, and index8 correspond to the calculation result. The calculation result of the HASH value indicates the role of the standby DR device. Set the multicast hardware mask entries pointed to by the entry indexes index1, index2, index4, and index6 in the multicast hardware mask table 221 to prohibit forwarding. The entries index ndex3, The multicast hardware mask entries pointed to by index5, index7, and index8 are set to the forwarding state.
以图2中主DR设备21与备DR设备22协商得到图3所示的硬件组播掩码表为例,主DR设备21和备DR设备22各自建立组播转发硬件表。譬如,组播转发硬件表中的组播组地址G1,主DR设备21硬件根据组播组地址G1计算hash值2,主设备DR设备21将图3中hash值2对应的组播硬件掩码表211的index1指向的组播硬件掩码表项分配给组播组地址G1,备设备DR设备22、将将图3中hash值2对应的组播硬件掩码表221的index1指向的组播硬件掩码表项分配给组播组地址G1。Taking the hardware multicast mask table shown in FIG. 3 obtained through negotiation between the master DR device 21 and the backup DR device 22 in FIG. 2 as an example, the master DR device 21 and the backup DR device 22 each establish a multicast forwarding hardware table. For example, the multicast group address G1 in the multicast forwarding hardware table, the master DR device 21 hardware calculates the hash value 2 according to the multicast group address G1, and the master device DR device 21 masks the multicast hardware corresponding to the hash value 2 in FIG. 3 . The multicast hardware mask entry pointed to by index1 in Table 211 is assigned to the multicast group address G1, and the standby device DR device 22 will assign the multicast hardware mask entry pointed to by index1 of the multicast hardware mask table 221 corresponding to hash value 2 in FIG. 3 to the multicast group address G1. The hardware mask table entry is assigned to the multicast group address G1.
主DR设备21、备DR设备通过连接上游组播源的DR(分布式聚合)组或者通过各自通过连接上游组播源的路径,收到组播组G1的组播数据报文时;主DR设备21根据组播数据报文中的组播组地址G1计算得到hash值2,查找图3中到组播硬件掩码表211中hash值2对应的index1指向的组播掩码表项,确定转发,则通过连接下游组播成员的DR组的本地DR接口转发收到的组播数据报文。备DR设备22根据组播数据报文中的组播组地址G1计算得到hash值2,查找到组播硬件掩码表221中hash值2对应的index1指向的组播掩码表项,确定禁止转发,则丢弃收到的组播组G1的组播数据报文。When the active DR device 21 and the standby DR device receive the multicast data packet of the multicast group G1 through the DR (distributed aggregation) group connected to the upstream multicast source or through the paths connected to the upstream multicast source respectively; The device 21 calculates the hash value 2 according to the multicast group address G1 in the multicast data message, searches for the multicast mask entry pointed to by index1 corresponding to the hash value 2 in the multicast hardware mask table 211 in FIG. 3, and determines For forwarding, the received multicast data packets are forwarded through the local DR interface of the DR group connected to the downstream multicast member. The standby DR device 22 calculates the hash value 2 according to the multicast group address G1 in the multicast data packet, finds the multicast mask entry pointed to by index1 corresponding to the hash value 2 in the multicast hardware mask table 221, and determines to prohibit If it is forwarded, the received multicast data packets of the multicast group G1 are discarded.
主DR设备21与备DR设备22基于协商得到图4、图5所示的硬件组播掩码表负载分担发往下游组播组成员设备的组播数据报文的机制相同,不再赘述。The primary DR device 21 and the backup DR device 22 obtain the hardware multicast mask table shown in FIG. 4 and FIG. 5 based on negotiation to load share the same mechanism of multicast data packets sent to downstream multicast group member devices, and will not be described again.
图6为本申请提供的组播掩码表协商设备实施例的示意图。该设备60作为分布式弹性网络互连网络的分布式聚合设备包括网络接口、转发单元、处理器以及存储器,处理器通过运行存储器中的处理器可执行指令用以执行以下操作:识别分布式弹性网络互连网络内的本设备的角色;与对端DR协商根据组播组地址计算组播数据报文哈希值;与对端DR协商组播硬件掩码表大小,基于协商的组播硬件掩码大小设置本地组播硬件掩码表;与对端DR协商组播硬件掩码表项的分配算法;根据识别的本设备的角色以及协商的分配算法将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项;其中,本设备的组播硬件掩码表的允许转发的组播硬件掩码表项的索引与对端的组播硬件掩码表的禁止转发的组播硬件掩码表项的索引相同。FIG. 6 is a schematic diagram of an embodiment of a multicast mask table negotiation device provided by the present application. The
当识别本设备为主DR设备角色,处理器通过运行存储器中的处理器可执行指令用以执行基于协商的对半分配分配算法执行以下操作:分配算法将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项的下操作包括:将优先占用的连续表项索引指向的本设备的组播硬件掩码表的一半组播硬件掩码表项设置为允许转发,将本设备的本地组播硬件掩码表的剩余一半本地组播硬件掩码表项设置为禁止转发;When identifying the role of the device as the primary DR device, the processor executes the negotiation-based half-allocation allocation algorithm by running the processor-executable instructions in the memory to perform the following operations: The allocation algorithm sets the multicast hardware mask table of the device to The following operations for half of the multicast hardware mask table entries that allow forwarding and half of the multicast hardware mask table entries that prohibit forwarding include: point the index of the consecutive table entry to the half of the device's multicast hardware mask table The multicast hardware mask entry is set to allow forwarding, and the remaining half of the local multicast hardware mask entry of the local multicast hardware mask of the device is set to prohibit forwarding;
当识别本设备为备DR设备角色,处理器通过运行存储器中的处理器可执行指令用以执行基于协商的对半分配分配算法执行以下操作:将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项的下操作包括:将优先占用的连续表项索引指向的本设备的组播硬件掩码表的一半本地组播硬件掩码表项设置为禁止转发,将本设备的组播硬件掩码表的剩余一半本地组播硬件掩码表项设置为允许转发。When the device is identified as the standby DR device, the processor executes the half-allocation allocation algorithm based on the negotiation by running the processor-executable instructions in the memory to perform the following operations: Set the multicast hardware mask table of the device to half The following operations of the multicast hardware mask table entries that allow forwarding and half of the multicast hardware mask entries that prohibit forwarding include: point the first half of the local group of the device's multicast hardware mask table to the index of the consecutive table entry that is occupied by priority. The multicast hardware mask entry is set to prohibit forwarding, and the remaining half of the local multicast hardware mask entry of the device's multicast hardware mask table is set to allow forwarding.
当识别本设备为主DR设备角色,处理器通过运行存储器中的处理器可执行指令用以执行基于协商的奇偶交错分配算法执行以下操作:将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项的下操作包括:将优先占用的奇数表项索引指向的本设备的组播硬件掩码表的一半组播硬件掩码表项设置为允许转发,将偶数表项索引指向的本设备的组播硬件掩码表的剩余一半组播硬件掩码表项设置为禁止转发;When identifying the device as the primary DR device, the processor executes the negotiated parity interleaving algorithm by running the processor-executable instructions in the memory to perform the following operations: Set the multicast hardware mask table of the device to half allowable The following operations of the forwarded multicast hardware mask entry and half of the forwarding-prohibited multicast hardware mask entry include: pointing the odd-numbered entry index to the multicast hardware half of the device's multicast hardware mask table The mask entry is set to allow forwarding, and the remaining half of the multicast hardware mask entry of the device's multicast hardware mask table pointed to by the even-numbered entry index is set to prohibit forwarding;
当识别本设备为备DR设备角色,处理器通过运行存储器中的处理器可执行指令用以执行基于协商的奇偶交错分配算法执行以下操作:将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项的下操作包括:将优先占用的奇数表项索引指向的本设备的组播硬件掩码表的一半组播硬件掩码表项设置为禁止转发,将偶数表项索引指向的本设备的组播硬件掩码表的剩余一半组播硬件掩码表项设置为允许转发。When identifying the device as the standby DR device, the processor executes the negotiated parity interleaving algorithm by running the processor-executable instructions in the memory to perform the following operations: Set the multicast hardware mask table of the device to half allow The following operations of the forwarded multicast hardware mask entry and half of the forwarding-prohibited multicast hardware mask entry include: pointing the odd-numbered entry index to the multicast hardware half of the device's multicast hardware mask table The mask entry is set to prohibit forwarding, and the remaining half of the multicast hardware mask entry of the device's multicast hardware mask table pointed to by the even-numbered entry index is set to allow forwarding.
当识别本设备的主DR设备角色,处理器通过运行存储器中的处理器可执行指令用以执行基于协商的奇偶交错分配算法执行以下操作:处处理器通过运行存储器中的处理器可执行指令用以执行基于协商的分配算法将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项的下操作包括:将优先占用的偶数表项索引指向的本设备的组播硬件掩码表的一半组播硬件掩码表项设置为允许转发,将奇数表项索引指向的本设备的组播硬件掩码表的剩余一半组播硬件掩码表项设置为禁止转发;When identifying the primary DR device role of the device, the processor executes the negotiation-based parity interleaving allocation algorithm by running the processor-executable instructions in the memory to perform the following operations: the processor executes the following operations by running the processor-executable instructions in the running memory To perform a negotiation-based allocation algorithm, set the device's multicast hardware mask table to half of the multicast hardware mask entries that allow forwarding and half of the multicast hardware mask entries that prohibit forwarding. The following operations include: Set the half of the multicast hardware mask table entry in the multicast hardware mask table of the device pointed to by the even-numbered entry index to allow forwarding, and set the remaining half of the multicast hardware mask table of the device pointed to by the odd-numbered entry index. The broadcast hardware mask entry is set to prohibit forwarding;
当识别本设备的角色为备DR设备,处理器通过运行存储器中的处理器可执行指令用以执行基于协商的奇偶交错分配算法执行以下操作:将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项的下操作包括:将优先占用的偶数表项索引指向的本设备的组播硬件掩码表的一半组播硬件掩码表项设置为禁止转发,将奇数表项索引指向的本设备的组播硬件掩码表的剩余一半组播硬件掩码表项设置为允许转发。When identifying the role of the device as a standby DR device, the processor executes the negotiation-based parity interleaving allocation algorithm by running the processor-executable instructions in the memory to perform the following operations: Set the multicast hardware mask table of the device to half The following operations of the multicast hardware mask entries that allow forwarding and half of the multicast hardware mask entries that prohibit forwarding include: assigning the priority to the even-numbered entry index to point to half of the multicast hardware mask table of the device. The hardware mask entry is set to prohibit forwarding, and the remaining half of the multicast hardware mask entry of the device's multicast hardware mask table pointed to by the odd entry index is set to allow forwarding.
当识别本设备为主DR设备角色,处理器通过运行存储器中的处理器可执行指令用以执行基于协商的预设常用循环冗余码多项式分配算法执行以下操作:将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项的下操作包括:基于预设的常用循环冗余码多项式算法本设备的组播硬件掩码表的各表项索引,将计算结果指向主DR设备角色的表项索引指向的组播硬件掩码表项设置为允许转发;将计算结果指向备DR设备角色的表项索引指向的组播硬件掩码表项设置为禁止转发;When identifying the role of the device as the master DR device, the processor executes the preset common cyclic redundancy code polynomial allocation algorithm based on negotiation by running the processor-executable instructions in the memory to perform the following operations: mask the multicast hardware of the device When the code table is set to half of the multicast hardware mask entries that allow forwarding and half of the multicast hardware mask entries that prohibit forwarding, the following operations include: the multicast hardware mask of the device based on the preset common cyclic redundancy code polynomial algorithm. For each entry index of the code table, set the calculation result to the multicast hardware mask entry pointed to by the entry index of the primary DR device role to allow forwarding; set the calculation result to the multicast hardware mask entry pointed to by the entry index of the standby DR device role The hardware mask entry is set to prohibit forwarding;
当识别本设备为备DR设备角色,处理器通过运行存储器中的处理器可执行指令用以执行基于协商的预设常用循环冗余码多项式分配算法执行以下操作:When identifying the device as a standby DR device, the processor executes the following operations by running the processor-executable instructions in the memory to execute the negotiated preset common cyclic redundancy code polynomial allocation algorithm:
将本设备的组播硬件掩码表设置为一半允许转发的组播硬件掩码表项以及一半禁止转发的组播硬件掩码表项的下操作包括:基于预设的常用循环冗余码多项式算法本设备的组播硬件掩码表的各表项索引,将计算结果指向主DR设备角色的表项索引指向的组播硬件掩码表项设置为禁止转发;将计算结果指向备DR设备角色的表项索引指向的组播硬件掩码表项设置为允许转发。The following operations of setting the multicast hardware mask table of the device to half of the multicast hardware mask entries that allow forwarding and half of the multicast hardware mask entries that prohibit forwarding include: based on the preset common cyclic redundancy code polynomial Algorithm Set the index of each entry in the multicast hardware mask table of the local device, and set the multicast hardware mask entry that the calculation result points to the entry index of the primary DR device role to prohibit forwarding; set the calculation result to the standby DR device role The multicast hardware mask entry pointed to by the entry index is set to allow forwarding.
以上仅为本申请的较佳实施例而已,并不用以限制本申请,凡在本申请的精神和原则之内,所做的任何修改、等同替换、改进等,均应包含在本申请保护的范围之内。The above are only preferred embodiments of the present application, and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the protection of the present application. within the range.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210610645.1A CN115037691A (en) | 2022-05-31 | 2022-05-31 | A kind of multicast mask table negotiation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210610645.1A CN115037691A (en) | 2022-05-31 | 2022-05-31 | A kind of multicast mask table negotiation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115037691A true CN115037691A (en) | 2022-09-09 |
Family
ID=83123954
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210610645.1A Pending CN115037691A (en) | 2022-05-31 | 2022-05-31 | A kind of multicast mask table negotiation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115037691A (en) |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020143787A1 (en) * | 2001-03-31 | 2002-10-03 | Simon Knee | Fast classless inter-domain routing (CIDR) lookups |
CN1801783A (en) * | 2006-01-23 | 2006-07-12 | 北京交通大学 | Multi-domain multicast integration data distributing structure and method based on IP/MPLS/BGP |
CN101577679A (en) * | 2009-06-26 | 2009-11-11 | 杭州华三通信技术有限公司 | Configuration management method for realizing multicast service sharing among appointed routers and appliance thereof |
CN101651609A (en) * | 2008-08-14 | 2010-02-17 | 华为技术有限公司 | Method and device for realizing multicast load sharing |
CN104125088A (en) * | 2013-04-28 | 2014-10-29 | 中兴通讯股份有限公司 | Method of interaction information between systems in same terminal of DRNI and system thereof |
WO2017201750A1 (en) * | 2016-05-27 | 2017-11-30 | 华为技术有限公司 | Method, device and system for processing multicast data |
CN112367257A (en) * | 2020-10-30 | 2021-02-12 | 新华三技术有限公司 | Route notification method and device |
CN112968836A (en) * | 2021-01-31 | 2021-06-15 | 新华三信息安全技术有限公司 | Cross-device aggregation link configuration method, device, equipment and readable storage medium |
-
2022
- 2022-05-31 CN CN202210610645.1A patent/CN115037691A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20020143787A1 (en) * | 2001-03-31 | 2002-10-03 | Simon Knee | Fast classless inter-domain routing (CIDR) lookups |
CN1801783A (en) * | 2006-01-23 | 2006-07-12 | 北京交通大学 | Multi-domain multicast integration data distributing structure and method based on IP/MPLS/BGP |
CN101651609A (en) * | 2008-08-14 | 2010-02-17 | 华为技术有限公司 | Method and device for realizing multicast load sharing |
CN101577679A (en) * | 2009-06-26 | 2009-11-11 | 杭州华三通信技术有限公司 | Configuration management method for realizing multicast service sharing among appointed routers and appliance thereof |
CN104125088A (en) * | 2013-04-28 | 2014-10-29 | 中兴通讯股份有限公司 | Method of interaction information between systems in same terminal of DRNI and system thereof |
WO2017201750A1 (en) * | 2016-05-27 | 2017-11-30 | 华为技术有限公司 | Method, device and system for processing multicast data |
CN112367257A (en) * | 2020-10-30 | 2021-02-12 | 新华三技术有限公司 | Route notification method and device |
CN112968836A (en) * | 2021-01-31 | 2021-06-15 | 新华三信息安全技术有限公司 | Cross-device aggregation link configuration method, device, equipment and readable storage medium |
Non-Patent Citations (2)
Title |
---|
MICK SEAMAN: "Synchronizing DRNI state", 《IEEE STD 802.1AX》, 8 January 2019 (2019-01-08) * |
李丹;尹蕾;申涓;张建辉;: "基于组播的分布式路由器转发表快速同步", 计算机工程, no. 16, 20 August 2008 (2008-08-20) * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111740899B (en) | ARP request message forwarding method, cross-device link aggregation group and network device | |
US9288138B2 (en) | N-node virtual link trunking (VLT) systems and methods | |
JP5549949B2 (en) | Multicast packet transmission method, related device and system | |
CN102821044B (en) | Method and device for configuring server cluster | |
CN103188110B (en) | Based on the heat backup method that the cloud platform of zookeeper is served | |
US8320281B2 (en) | Methods, systems and computer readable media for utilizing a standard spanning tree protocol to indicate an active switching fabric in a network node | |
WO2004084496A1 (en) | A method for implementing gateway dynamic load distribution | |
US20190020656A1 (en) | Virtual address for controller in a controller cluster | |
WO2016173403A1 (en) | Routing device, load balancing device, and message distribution method and system | |
US20140233563A1 (en) | Multicast processing method and device | |
CN106549875A (en) | A kind of conversation managing method, device and load equalizer | |
CN112968836B (en) | Cross-device aggregation link configuration method, device, equipment and readable storage medium | |
WO2014059867A1 (en) | Method and device for flow path negotiation in link aggregation group | |
CN102510404A (en) | Nondestructive continuous extensible interconnection structure for data center | |
KR20160123363A (en) | Multicast fast protection switching method and device | |
WO2014056367A1 (en) | Aggregation port id allocation method and device | |
US20160344658A1 (en) | Mac address synchronization in a fabric switch | |
Wu et al. | Efficient and consistent flow update for software defined networks | |
WO2018161632A1 (en) | Capacity updating method and apparatus for distributed device | |
JP5364187B2 (en) | Edge device | |
CN115037691A (en) | A kind of multicast mask table negotiation method and device | |
WO2014059873A1 (en) | Method and device for flow path negotiation in link aggregation group | |
Gao et al. | Congestion-aware multicast plug-in for an SDN network operating system | |
JP2019028859A (en) | Information processing system and information processing method | |
CN109218187B (en) | Method and device for updating two-layer multicast forwarding table |
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 |