Method, device and forwarding chip for accelerating multicast replication

By introducing multiple FD processing units for parallel processing and time slot multiplexing technology into the multicast replication architecture, the problem of low multicast replication efficiency under the traditional serial table reading architecture is solved, and efficient multicast forwarding performance is improved and packets are output in order.

CN122870752BActive Publication Date: 2026-11-24格创通信(浙江)有限公司
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611365566.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2026-09-04
Publication Date
2026-11-24
Estimated Expiration
2046-09-04

AI Technical Summary

Technical Problem

Traditional serial table read architecture has low multicast replication efficiency, and the total latency increases linearly with the number of table entries, making it difficult to meet the ever-increasing performance requirements of multicast replication.

Method used

Multiple FD processing units share the read table access channel of the high-speed storage unit in a time-slot multiplexing manner to achieve parallel table lookup. Combined with the sequential traversal of linked list entries and the binding mechanism between the output port and the FD processing unit, it ensures that message copies are output in order.

Benefits of technology

Without changing the physical access timing of storage units, it significantly improves multicast forwarding performance in high-concurrency and high-replication scenarios, reduces the total multicast replication time to be inversely proportional to the number of FD processing units, and avoids out-of-order packets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122870752B_ABST
    Figure CN122870752B_ABST
Patent Text Reader

Abstract

This application discloses a method, apparatus, and forwarding chip for accelerating multicast replication, relating to the field of data communication technology. The method utilizes multiple FD processing units to share the read access channel of a high-speed storage unit in a time-slot multiplexing manner. It uses the fixed-delay time slots of the high-speed storage unit to read multicast replication entries, and combines the binding relationship between physical output ports and FD processing units to copy multicast packets sequentially to the corresponding output port queues. This application, without changing the physical access timing of the storage medium, reduces the total multicast replication time and improves multicast forwarding performance through parallel processing with time-slot multiplexing by multiple FD processing units, while ensuring packet output order preservation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data communication and network forwarding chip technology, and in particular to a method, apparatus and forwarding chip for accelerating multicast replication. Background Technology

[0002] With the development of network technology, point-to-multipoint services such as online conferencing and live broadcasting have become increasingly popular, leading to a wider range of applications for multicast replication technology. The number of target nodes that need to be replicated for a single multicast message continues to grow, placing higher demands on the throughput and latency performance of multicast forwarding.

[0003] The basic process of multicast replication in a network forwarding chip is as follows: First, based on key index information such as the multicast IP address or multicast MAC address of the multicast packet, the internal multicast forwarding table is queried to obtain the list of target ports that the packet needs to be forwarded; then, the input single multicast packet is replicated into multiple packet copies of the same length as the target port list; finally, these packet copies are distributed in parallel to the corresponding target output ports through a switching matrix.

[0004] The number of cycles required to replicate a multicast packet to a target port is a core metric for multicast replication performance. At the hardware processing level, multicast replication performance is directly limited by the multicast replication entry read time, a constraint that is particularly pronounced in scenarios with multiple concurrent multicast groups and a large number of replications per group. Since multicast replication entries are typically stored in Static Random Access Memory (SRAM), each time a copy of a packet is generated, the corresponding multicast replication entry at that address needs to be read. Due to limitations in chip manufacturing processes and the physical characteristics of the storage medium, a single entry read usually requires several clock cycles to complete, and the total replication and forwarding time increases linearly with the total number of entries. Given the continuously increasing demand for multicast packet replication and the difficulty in further improving chip manufacturing timings, improving entry read efficiency has become a core bottleneck for enhancing multicast replication performance.

[0005] In the traditional serial read table architecture of a single FD processing unit, all multicast frame descriptors (FDs) stored in the multicast replication table must be queued and processed serially. Only one table entry read operation can be initiated within a single fixed latency window, and the next read and replication operation can only begin after the result of the previous entry is returned. If the read time for a single entry is N clock cycles, and the total number of entries is n, then the total latency is proportional to the number of entries. In high-concurrency, high-replication scenarios, the lookup latency will increase linearly, potentially causing backpressure and packet loss, becoming a key bottleneck restricting the multicast performance of forwarding chips. Furthermore, due to the underlying physical timing constraints of the storage medium, the read latency of a single entry cannot be significantly reduced through simple logic optimization. Simply pursuing a reduction in the time consumed by a single read is insufficient to meet the ever-increasing performance demands. Summary of the Invention

[0006] In view of this, the purpose of this application is to propose a method, apparatus and forwarding chip for accelerating multicast replication, so as to solve the technical problems of low multicast replication efficiency and total latency increasing linearly with the number of entries under the traditional serial table read architecture.

[0007] Based on one aspect of the embodiments of this application, this application provides a method for accelerating multicast replication, the method comprising: Obtain the multicast message descriptor (FD); Multiple FD processing units share the read table access channel of the high-speed storage unit in a time-slot multiplexing manner, reuse the fixed delay time slot of the high-speed storage unit's read table, read the multicast replication table entries of the multicast FD from the high-speed storage unit, and execute the corresponding multicast replication processing steps according to the read multicast replication table entries. In this multicast group, one multicast message corresponds to one multicast FD, one multicast FD corresponds to multiple multicast replication entries stored in the form of a linked list, and each multicast replication entry corresponds to one physical output port of the multicast group; the physical output port and the FD processing unit have a preset binding relationship, and the multicast replication entry corresponding to the physical output port is read and processed by the bound FD processing unit.

[0008] Furthermore, based on a multicast replication architecture according to an embodiment of this application, the plurality of FD processing units are distinguished into a main FD processing unit and an auxiliary FD processing unit. The main FD processing unit serves as the unified entry point for the multicast FD and is responsible for obtaining the multicast FD and reading the multicast replication entry based on the address of the starting multicast replication entry in the multicast FD. The multiple FD processing units determine the FD processing unit responsible for processing the next entry based on the FD identifier field of the next entry in the multicast replication entry they read, and hand over the processing right to the corresponding FD processing unit. They also send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through the interconnection channel between them. The auxiliary FD processing unit is responsible for receiving the multicast FD and the address of the next entry sent by the main FD processing unit or other auxiliary FD processing units, and cooperating with the main FD processing unit in a time-slot multiplexing manner to process the multicast replication processing steps corresponding to the remaining multicast replication entries of the multicast FD.

[0009] Furthermore, in another embodiment of the multicast replication architecture of this application, the front-end arbitration unit serves as the unified entry point for multicast FDs and is responsible for acquiring multicast FDs. The front-end arbitration unit selects the FD processing unit responsible for the initial processing of the acquired multicast FDs based on the multicast physical output ports of different multicast groups, the binding relationship between each FD processing unit and the physical output port, and the current load of each FD processing unit, thereby achieving load balancing of the multicast FDs of different multicast groups performing multicast replication processing steps on multiple FD processing units. The multiple FD processing units send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through their interconnection channels.

[0010] Furthermore, based on a multicast replication architecture according to an embodiment of this application, after reading a multicast replication entry, each of the plurality of FD processing units executes a portion of the multicast replication processing steps corresponding to the read multicast replication entry, and then sends the remaining multicast replication processing related information to the replica processing unit. The replica processing unit then coordinates with each FD processing unit to execute subsequent multicast replication processing steps, and finally replicates the multicast packet replicas corresponding to the multicast replication entries in sequence to the egress queue of the corresponding physical egress port.

[0011] Furthermore, based on another embodiment of the multicast replication architecture of this application, the plurality of FD processing units are fully connected to each physical output port in the output port unit; after each of the plurality of FD processing units reads the multicast replication table entry, each FD processing unit executes all multicast replication processing steps corresponding to the read multicast replication table entry, and directly copies the multicast packet copy corresponding to each multicast replication table entry sequentially to the output port queue of the corresponding physical output port.

[0012] Furthermore, the number of the plurality of FD processing units is related to the fixed latency of the high-speed storage unit's table read; the fixed latency refers to the number of clock cycles N between the FD processing unit initiating a read request and obtaining the table entry read result, and the number of the FD processing units is less than or equal to N.

[0013] Furthermore, the physical output port is pre-divided into output port domains, and the FD processing unit is bound to the output port domains by a preset binding relationship.

[0014] Based on the embodiments of this application, this application also provides an apparatus for accelerating multicast replication, the apparatus comprising a high-speed storage unit, multiple FD processing units, and an output port unit: The multiple FD processing units share the read table access channel of the high-speed storage unit in a time-slot multiplexing manner, multiplex the fixed delay time slot of the high-speed storage unit's read table, read the multicast replication table entries of the multicast FD from the high-speed storage unit, and execute the corresponding multicast replication processing steps according to the read multicast replication table entries; wherein, one multicast message of a multicast group corresponds to one multicast FD, one multicast FD corresponds to multiple multicast replication table entries stored in the form of a linked list, and each multicast replication table entry corresponds to one physical output port of the multicast group; the physical output port has a preset binding relationship with the FD processing unit, and the multicast replication table entries corresponding to the physical output port are read and processed by the bound FD processing unit; The high-speed storage unit is used to store multicast replication entries; The output port unit includes an output port queue with multiple physical output ports, used to output multicast message copies to the outside world.

[0015] Furthermore, based on the multicast replication architecture provided in an embodiment of this application, the plurality of FD processing units are divided into a main FD processing unit and an auxiliary FD processing unit; The main FD processing unit serves as the unified entry point for multicast FDs, and is used to sequentially acquire multicast FDs and start reading and processing multicast replication entries based on the address of the starting multicast replication entry in the multicast FD. The plurality of FD processing units are also used to determine the FD processing unit responsible for processing the next entry based on the FD identifier field of the next entry in the multicast replication entry and to hand over the processing right to the corresponding FD processing unit, and to send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through the interconnection channel between them. The auxiliary FD processing unit is responsible for receiving the multicast FD and the address of the next entry sent by the main FD processing unit or other auxiliary FD processing units, and cooperating with the main FD processing unit in a time-slot multiplexing manner to read the remaining multicast replication entries of the multicast FD and the multicast replication processing steps corresponding to the processing entries.

[0016] Furthermore, based on the multicast replication architecture provided in another embodiment of this application, the apparatus further includes a front-end arbitration unit: The preceding arbitration unit serves as the unified entry point for multicast FDs and is used to acquire multicast FDs. The front-end arbitration unit is also used to select the FD processing unit responsible for the initial processing of each multicast FD based on the multicast physical output port of different multicast groups, the binding relationship between each FD processing unit and the physical output port, and the current load of each FD processing unit, so as to achieve load balancing of the multicast FDs of different multicast groups performing multicast replication processing steps on multiple FD processing units. The multiple FD processing units send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through their interconnection channels.

[0017] Furthermore, based on the multicast replication architecture provided in an embodiment of this application, the apparatus further includes a replica processing unit: the replica processing unit is used to receive the remaining multicast replication processing related information sent by each FD processing unit after completing part of the multicast replication processing steps corresponding to the read multicast replication table entry, coordinate with each FD processing unit to execute the subsequent multicast replication processing steps corresponding to the read multicast replication table entry, and finally copy the multicast packet replicas corresponding to the multicast replication table entry in sequence to the egress port queue of the corresponding physical egress port.

[0018] Furthermore, based on the multicast replication architecture provided in another embodiment of this application, the plurality of FD processing units are fully connected to each physical output port in the output port unit; after each of the plurality of FD processing units reads the multicast replication table entry, each FD processing unit executes all multicast replication processing steps corresponding to the read multicast replication table entry, and directly copies the multicast packet copy corresponding to each multicast replication table entry sequentially to the output port queue of the corresponding physical output port.

[0019] Based on the embodiments of this application, this application also provides a forwarding chip, which includes at least a plurality of FD processing units, a high-speed storage unit, and an output port unit. The plurality of FD processing units share the read table access channel of the high-speed storage unit in a time slot multiplexing manner, and multiplex the read table fixed delay time slot of the high-speed storage unit to execute the aforementioned method steps for accelerating multicast replication.

[0020] The beneficial effects of this application are as follows: without changing the physical access timing of high-speed storage units or breaking the single-entry read latency constraint, by setting up multiple FD processing units, parallel table lookups are performed using the spare time slots within the fixed table read latency. This transforms the original serial table read process into a time slot multiplexed parallel processing process, making the total multicast replication time inversely proportional to the number of FD processing units, thus significantly improving multicast forwarding performance in high-concurrency and high-replication scenarios. At the same time, through the binding mechanism between the output port and the FD processing unit, combined with the sequential traversal rules of the linked list entries, the message replicas of the same multicast FD are guaranteed to be output in order, avoiding message out-of-order problems.

[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this specification. Attached Figure Description

[0022] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this application. For those skilled in the art, other drawings can be obtained based on these drawings.

[0023] Figure 1 A schematic diagram of the traditional multicast replication framework structure inside a chip. Figure 2 This is a schematic diagram of the timing for reading entries in a traditional multicast replication table. Figure 3 This is a schematic diagram of a multicast replication device provided in an embodiment of this application; Figure 4 Based on Figure 3 A schematic diagram of the multicast replication entry reading timing diagram of a dual-FD processing unit structure; Figure 5 This is a schematic diagram of a multicast replication device provided in another embodiment of this application. Detailed Implementation

[0024] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to limit the application. The singular forms "a," "the," and "the" used in this application are also intended to include the plural forms unless the context clearly indicates otherwise. The terms "first," "second," "third," etc., may be used in this application to describe various information or structural modules for the purpose of more clearly describing the scheme, and should not be construed as indicating or implying relative importance or implicitly specifying the number, order, or position of the indicated technical features. Thus, a feature defined with "first," "second," "third," etc., may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more; "if" can be interpreted as "when," "when," or "in response to a determination." In this application, "and / or" is used to describe the relationship between related objects, indicating that three relationships may exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural.

[0025] For clarity, the following is a necessary explanation of some technical terms used in this application: Multicast technology is a core network technology for achieving efficient point-to-multipoint data distribution. In the complete link from business definition to hardware implementation, multicast groups, multicast entries, and multicast FDs present a layer-by-layer mapping relationship from the business logic layer to the device control layer and then to the chip execution layer.

[0026] A multicast group is an abstract concept at the business logic level. It is uniquely identified by the same multicast IP address and represents a logical set of all receivers that need to receive the same multicast data stream. It is the core identification unit of multicast services. Terminals can dynamically join or leave multicast groups through multicast management protocols (such as the Internet Group Management Protocol (IGMP)).

[0027] Multicast entries are software-generated forwarding rule entries created by the network device's control plane. They are stored in the device's multicast routing table or Layer 2 multicast forwarding table and serve as the software carrier for multicast forwarding decisions. Layer 3 multicast entries typically use (S,G) or ( The standard format of the multicast group (S, G) is used, where S is the multicast source IP and G is the multicast group IP. The multicast table entry contains core fields such as RPF (Reverse Path Forwarding) ingress and egress interface list and protocol type. It is generally dynamically learned and generated by multicast protocols such as Protocol Independent Multicast (PIM) to determine the legal forwarding path and distribution range of multicast packets at the device level.

[0028] A multicast message descriptor (multicast FD) is used to describe the metadata control block of a single multicast message. The multicast message payload is stored only once in the message buffer memory. The hardware generates a multicast FD for each multicast message and generates multiple multicast replication entries for each multicast FD, which are stored in a linked list. Each multicast replication entry corresponds to a multicast port. Multiple multicast replication entries share the same message buffer pointer, which achieves the purpose of distributing the same multicast message to multiple multicast ports, avoiding the replication of message payload and saving buffer bandwidth and storage resources.

[0029] A typical multicast FD data structure usually includes fields such as: physical address of the message data buffer, message type, message buffer reference count, and multicast replication entry pointer. The multicast replication entry pointer is used to read multicast replication entries stored in a linked list, and each multicast replication entry includes an address pointer to the next multicast replication entry.

[0030] Multicast FD may also include fields such as ingress port, ingress VLAN, packet type, and multicast identifier; multicast replication entries may also include fields such as egress port, egress VLAN, and TTL decrement identifier; since the above fields are not directly related to this application, they will not be described in detail here.

[0031] The chip driver compiles the software multicast entries into corresponding FDs and writes them into hardware storage. During packet forwarding, the hardware directly completes the multicast replication table reading and multicast replication processing steps based on the FDs, without CPU intervention. Multicast FDs are the core foundation for realizing line-rate multicast forwarding.

[0032] Figure 1 This is a schematic diagram of a traditional chip-internal multicast replication processing framework, which involves three main hardware units: FD processing unit 101 (fd_process), high-speed static storage unit 102, and output port unit 103 (outport). Each unit is connected through a dedicated signal path and together completes the multicast message replication and forwarding processing steps to multiple multicast output ports (hereinafter referred to as multicast replication processing steps), including: multicast replication entry reading, multicast message replication, and action editing for different output ports (such as message VLAN modification, TTL processing, etc.).

[0033] The FD processing unit 101 is the core unit of multicast replication. It is responsible for the entire process control functions, including multicast FD reception, read request generation for reading multicast replication entries from the high-speed static storage unit, reception and parsing of multicast replication entry results, multicast message replication and distribution, and automatic traversal of chained entries. It is the logical center of the entire module.

[0034] The high-speed static storage unit 102 is the hardware storage unit for multicast replication entries. It typically uses Static Random Access Memory (SRAM) to store all multicast replication entries, providing rule-based storage support for multicast replication processing. In multicast scenarios, the multicast replication entries stored in SRAM are hardware execution-level entries in the chip's data plane. They are software multicast entries compiled and decomposed by the chip driver and then implemented into the hardware's secondary execution unit. Each output port corresponds to one multicast replication entry, and its function is to guide the hardware in completing single-port packet replication and action editing.

[0035] Output port unit 103 is an output port queue unit, responsible for receiving multicast message copies distributed by FD processing unit 101, and sending multicast message copies through the corresponding physical output port.

[0036] The signal flow between the functional units can be divided into four paths, corresponding to different stages of multicast forwarding.

[0037] The first channel is the multicast FD input signal S1. The multicast FD carries the configuration information of the multicast message and the multicast replication table entry and inputs it to the FD processing unit, triggering the FD processing unit to execute the corresponding multicast replication processing steps.

[0038] The second path is the table entry read request signal S2. The FD processing unit sends a read request (including read enable and read address information) to the high-speed static storage unit according to the multicast copy table entry address pointer, and initiates the multicast copy table entry read operation.

[0039] The third path is the table entry result return signal S3. The high-speed static storage unit reads the corresponding multicast copy table entry content according to the received read address and returns the table entry content (such as the valid bit entry_vld, queue identifier qid, next entry address next_entry_addr, etc.) to the FD processing unit.

[0040] The fourth channel is a dual-function output signal. On the one hand, the FD processing unit sends a copy of the multicast message to the output port unit to complete the forwarding output based on the parsed port information (corresponding signal S42); on the other hand, the FD processing unit synchronously initiates a read request for the next entry to the high-speed static storage unit based on the linked list pointer in the entry (corresponding signal S41), realizing the continuous traversal of the linked list entries.

[0041] Table 1

[0042] Table 1 shows an example of multicast replication entries for the same multicast group stored in the high-speed static storage unit. Each multicast packet corresponds to a singly linked list composed of multiple multicast replication entries. Each entry in the list corresponds to a forwarding rule for an outgoing port. This linked storage method allows for batch generation of multicast replication entries, reducing the instantaneous load on the replication engine. Table 1 illustrates a multicast replication linked list containing six multicast replication entries, consisting of entries a0 to a5 linked together. The physical address field of each entry is its unique index identifier. The FD processing unit can retrieve the complete content of the corresponding entry by initiating a read operation using this field value. The valid bit field indicates whether the current entry is valid and usable. When this field is 1, the entry is valid, and multicast replication processing for the corresponding outgoing port can be executed; when it is 0, the entry is invalid, and the hardware will skip this entry and continue traversing. This field supports dynamic modification, allowing for flexible dynamic addition and deletion of outgoing ports. The queue identifier field uniquely maps to a physical output port. The FD processing unit distributes multicast message copies to the physical output port queue pointed to by the queue identifier, and finally sends them out from the corresponding physical output port. The next entry physical address field is a pointer field of a linked list, used to point to the address of the next multicast copy entry corresponding to the same multicast message; when traversing to the tail entry of the linked list, this field is empty, indicating that all entries of the current multicast message have been traversed.

[0043] The following describes the multicast replication and forwarding process using four multicast FDs in the same multicast group as an example. Typically, multiple multicast FDs in the same multicast group have the same multicast replication entries. In this example, the four multicast FDs are FD0-FD3. Each multicast FD needs to achieve multicast replication and forwarding through the six multicast replication entries shown in Table 1. This process is executed automatically by hardware throughout, and the steps include: Step 101: The FD processing unit sequentially acquires 4 multicast FDs and performs process initialization.

[0044] When a multicast FD enters the FD processing unit, the unit parses the multicast group information corresponding to the message, obtains the configuration of the four FDs associated with the multicast group, and completes the initialization of FD scheduling in a preset order.

[0045] Step 102: Start reading entries based on the starting address of the multicast replication entry carried by the multicast FD.

[0046] When the FD processing unit processes the current FD, it extracts the starting address a0 of the linked list carried by the FD, generates the corresponding read enable signal and read address signal, and sends them to the high-speed static storage unit to initiate a read request for the first entry. Based on the entry structure in Table 1, the starting address a0 corresponds to the first entry of the multicast replicated entries stored in linked list form, and is the entry address for traversing the entire linked list.

[0047] Step 103: After a fixed read delay of 4 clock cycles, obtain the table entry read result.

[0048] After receiving a read request, the high-speed static storage unit returns the contents of the corresponding address to the FD processing unit after the inherent read delay of the device.

[0049] Step 104: The FD processing unit executes the multicast replication processing steps of the corresponding output port according to the table entry reading results, and starts reading the next table entry.

[0050] After the FD processing unit confirms the validity of the table entry, it performs two operations simultaneously: First, it generates a multicast message copy based on the queue identifier field in the table entry, performs the corresponding action editing, and sends it to the corresponding queue of the output port unit to complete the message forwarding of a single port; Second, it extracts the physical address field of the next table entry in the table entry, immediately generates a new read request and sends it to the high-speed static storage unit to start reading the next table entry.

[0051] Step 105: Repeat steps 102 to 104 to complete the reading and forwarding of a total of 24 entries for the 4 multicast FDs.

[0052] Within a single multicast FD (Multicast Digitizer), the FD processing unit sequentially reads all multicast replication entries along the linked list. Each read entry completes the packet replication for the corresponding port, continuing until the address following the last entry is empty, indicating that all six entries for that FD have been processed. After processing a single FD, the FD processing unit automatically switches to the next multicast FD, repeating the above process of table lookup, output, and traversal until all four FDs have been processed. Based on the configuration in Table 1, each FD corresponds to a linked list of six entries, resulting in a total of 24 entries for the four FDs, corresponding to 24 multicast replication processes.

[0053] Figure 2 This diagram illustrates the timing sequence of read entries in a traditional multicast replication table. It visually demonstrates the signal timing relationship and serial operating characteristics of SRAM high-speed static memory cell read operations. Here, clk is the global clock signal; the read enable signal (read_en) corresponds to one read request per high-level pulse; the read address signal (read_addr) changes synchronously with the read enable signal, identifying the physical address of the entry corresponding to this read request; and the read data signal (read_data) carries the read result of the corresponding entry. There is a fixed 4-clock-cycle delay between the read data signal and the corresponding read request signal, which is determined by the inherent read characteristics of SRAM.

[0054] Figure 2The timing diagram for reading entries from four multicast FDs (Focus FDs) is shown in Table 1. From the timing distribution, the read operations of different FDs are arranged sequentially. The first to sixth read enable signals of FD0 correspond to addresses a0 to a5, and the read data is returned sequentially starting four clock cycles after the first read enable signal is issued. FD1 seamlessly connects to FD0, sending read requests at the 7th to 12th read enable signals and starting to receive entry data at the 8th read enable signal position. The subsequent two FDs are processed sequentially according to the same pattern, with each read return data signal occupying the same number of time slots as the fixed read delay of the SRAM table.

[0055] As can be seen from the aforementioned traditional multicast replication process, it employs a serial lookup architecture with a single FD processing unit. All multicast FDs requiring processing must enter the queue of the same forwarding FD processing unit and be processed sequentially. Within the same fixed-delay clock cycle, only a single FD multicast replication entry can be read. Furthermore, due to the physical access timing constraints of the storage medium, it must wait for the previous read result to return before sending the replica and initiating the reading of the next entry. Reading one entry takes 4 clock cycles. If the sum of all FD entries is n, then the total time required is 4... The n clock cycles are the core reason why lookup latency linearly expands under high load scenarios. In real-world multicast applications, this architectural performance flaw is significantly amplified by the characteristics of high concurrency and high replication. More seriously, if the total number of queued multicast file descriptors exceeds a certain threshold, it can trigger backpressure and even directly lead to packet loss. This constraint has become the most critical bottleneck limiting further performance improvements in multicast services using forwarding chips.

[0056] From a technical implementation perspective, overcoming the aforementioned technical bottlenecks presents very clear technical constraints: the reading process of multicast replication entries in multicast FD is essentially a physical access to the high-speed static memory cells inside the chip. This process is constrained by the physical timing characteristics of storage media such as SRAM. From initiating the address decoding request to signal amplification and reading of the memory bank, and then to the synchronous latching of the data output register, the entire operation must be completed within a limited number (e.g., 4) of clock cycles. This cannot be changed through simple logic optimization. The technical path of simply pursuing a reduction in the reading time of a single entry cannot meet the increasingly high multicast replication performance requirements.

[0057] In view of this, this application proposes a scheme to accelerate multicast replication. This scheme adopts a parallel architecture, which transforms the original single-path serial table reading processing architecture into a multi-path concurrent time-slot multiplexing table reading processing architecture without changing the physical logic of reading a single table entry. The total table reading latency of the original serial architecture is compressed from the order of O(n), which is proportional to the total number of table entries n, to the order of O (approximately n / P), which is proportional to n / P, where P is the number of parallel paths. This significantly shortens the average access time of multicast FD table lookup operations.

[0058] The embodiments described in this specification will now be described in detail.

[0059] Example 1: Dual FD Processing Unit Master-Slave Architecture Figure 3 This application provides a schematic diagram of a dual-FD processing unit framework for accelerating multicast replication according to an embodiment of the present application. The device includes two FD processing units, employing a parallel processing pipeline architecture. A single serial pipeline is split into two independent, resource-dedicated parallel sub-pipelines. The two FD processing units achieve efficient reading of multicast replication entries using a time-slot multiplexing mode. The device includes: The first FD processing unit 201 (FDP0), as the main FD processing unit, is used to sequentially acquire multicast FDs and start reading and processing multicast replication entries based on the starting multicast replication entry address in the multicast FD, and perform the initial reading and processing of the multicast replication entry corresponding to the multicast FD; it is also used to determine the FD processing unit responsible for processing the next entry based on the FD identifier field of the next entry in the read multicast replication entry and hand over the processing right to the corresponding FD processing unit, and send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through the interconnection channel between them; The first FD processing unit executes the corresponding multicast replication process under the trigger of signal S21, which carries the multicast FD.

[0060] The primary FD processing unit refers to the FD processing unit that initiates the processing of multicast FDs and serves as the unified entry point for multicast FDs. The first FD processing unit, as the primary FD processing unit, always acquires / receives the multicast FD first and reads the multicast replication table entry of the multicast FD. The acquired multicast FDs can belong to the same multicast group or different multicast groups.

[0061] The process of the first FD processing unit processing multicast FD includes: (1) A table entry read request signal S22 is sent to the high-speed storage unit 203, corresponding to Figure 4 Pull the read enable signal (read_en) high, and at the same time output the physical address (read_addr) of the starting multicast replication entry in the multicast FD on the address bus.

[0062] (2) After experiencing the fixed delay of reading data returned by the high-speed storage unit 203, the high-speed storage unit sends signal S23 to the first FD processing unit to return the table entry reading result. The high-speed storage unit 203 retrieves the content of the corresponding multicast copy table entry according to the received read address and returns the table entry content to the first FD processing unit.

[0063] The fixed read latency is the number of clock cycles N between the FD processing unit initiating a read request and receiving the read result of the table entry, such as... Figure 4 For example, with a fixed delay of 4 clock cycles, after the first FD processing unit (FDP0) initiates a read request for the physical address a0 of the multicast FD0 starting entry, it can only receive the read entry data on the data bus after a fixed delay.

[0064] (3) The first FD processing unit parses the read table entry data, and on the one hand, executes the partial multicast replication processing steps corresponding to the read multicast replication table entry (such as the generation and editing of the message header), and then sends the remaining multicast replication processing related information to the replica processing unit (corresponding signal S24-2); on the other hand, it determines whether the FD processing unit responsible for processing the next table entry is itself according to the FD identifier of the next table entry. If it is, it initiates a read request for the next table entry to the high-speed storage unit 203 according to the physical address of the next table entry (corresponding signal S24-1). If it is not, it sends the multicast FD and the physical address of the next table entry to the second FD processing unit through the interconnection channel (corresponding signal S25).

[0065] The auxiliary FD processing unit is relative to the main FD processing unit, and refers to the FD processing unit that does not first receive the multicast FD and initially read and process the multicast replication table entries of the multicast FD.

[0066] The second FD processing unit 202 (FDP1), as an auxiliary FD processing unit, is used to cooperate with the main FD processing unit in time slot multiplexing to read the remaining multicast replication entries of the multicast FD and execute the corresponding multicast replication processing steps. Figure 3 The interaction signals S32, S33, S34-1, and S34-2 between the second processing unit 202 and the high-speed storage unit 203 are similar to those of the first processing unit 201, and will not be described again here.

[0067] The primary FD processing unit and the secondary FD processing units are connected via an interconnection channel to enable information exchange. When the device includes multiple secondary FD processing units, the secondary FD processing units can also send multicast replication-related information of the next entry to other secondary FD processing units based on the FD identifier field of the next entry in the multicast replication entry that has been read.

[0068] High-speed storage unit 203 is used to store multicast replication entries; The high-speed storage unit can be made of high-speed storage media such as Static Random Access Memory (SRAM) or Ternary Content Addressable Memory (TCAM). Preferably, the high-speed storage unit supports multi-bank cross-parallel access capability. The core feature of this capability is that it distributes the contiguous storage address space across multiple independent storage banks, thereby improving the overall storage bandwidth by accessing multiple storage banks in parallel.

[0069] The replica processing unit 204 (entry_mux) is used to receive the remaining multicast replication processing related information (such as multicast FD and table information required for the remaining multicast replication processing steps) sent by each FD processing unit after completing the partial multicast replication processing steps corresponding to the multicast replication table entries it has read. It coordinates with each FD processing unit to execute the subsequent multicast replication processing steps corresponding to the multicast replication table entries it has read, and finally replicates the multicast packet replicas corresponding to the multicast replication table entries to the corresponding outgoing port queues in sequence.

[0070] The replica processing unit 204 cooperates with each FD processing unit to execute the multicast replication processing steps in a coordinated manner. Each unit handles a portion of the multicast replication processing steps, which can improve the efficiency of multicast replication processing to a certain extent. The remaining multicast replication processing steps can be common processing steps for each entry, such as inserting accompanying information and replicating the final packet to the port queue.

[0071] The output port unit 205 may include multiple output port queues for receiving multicast message copies sent by the copy processing unit and sending multicast message copies to external systems through the corresponding output port queues.

[0072] This embodiment utilizes a time-slot multiplexing architecture with primary and secondary dual FD processing units. Without altering the physical access timing of high-speed storage units, it inserts a second read request using the spare time slots within the fixed latency of a single entry read, nearly doubling the entry read throughput per unit time and effectively compressing the total multicast replication time. Simultaneously, through the binding configuration of the output port and the FD processing unit, combined with the sequential traversal and handover mechanism of the linked list entries, it ensures that all message replicas of the same multicast FD are output in order.

[0073] Table 2 illustrates a multicast replication table stored in a linked list structure. This multicast replication table includes four linked lists of multicast FDs (FD0~FD3) belonging to different multicast groups. Each multicast FD corresponds to a linked list consisting of six multicast replication entries: multicast FD0 corresponds to entries a0~a5, multicast FD1 corresponds to entries a6~a11, multicast FD2 corresponds to entries a12~a17, and multicast FD3 corresponds to entries a18~a23. The four multicast FDs from different multicast groups have a total of 24 multicast replication entries (e.g., ...). Figure 4 (a0~a23).

[0074] It should be noted that multicast replication entries corresponding to multicast FDs belonging to the same multicast group will form the same linked list because the forwarding rules of the corresponding outgoing ports are the same (for example, the four multicast FDs of the same multicast group in Table 1 correspond to the same linked list). Multicast replication entries corresponding to multicast FDs belonging to different multicast groups may have different outgoing ports, and even if the ports are the same, the forwarding rules may be different. Therefore, the linked lists formed by the corresponding multicast replication entries will also be different (for example, FD0 and FD1 in Table 2 correspond to two different linked lists).

[0075] Table 2 uses four multicast FDs from different multicast groups as examples to illustrate this, in order to... Figure 4 This paper clearly describes the processing sequence of multicast replication entries corresponding to multicast FDs in different multicast groups. Those skilled in the art will understand that the multicast replication engine sequentially sends the generated multicast FDs to the main FD processing unit for processing. These multicast FDs can belong to the same multicast group or different multicast groups. With a unified entry point for multicast FDs (i.e., the initial FD processing unit for multicast FDs in the same multicast group is consistent) and a dual guarantee mechanism based on sequential processing of multicast replication entries using a linked list, the technical solution of this application can fully guarantee that multicast packet replicas for the same multicast port in the same multicast group are output in order. Furthermore, the parallel processing architecture based on time slot multiplexing can improve the overall multicast replication efficiency.

[0076] Table 2

[0077] It should be noted that, for the sake of simplicity, the multicast replication table in Table 2 only shows a few fields directly relevant to this application; other fields related to the multicast replication processing steps are not shown here. The fields in the example table 2 are explained below: The Entry_Addr (EA) field is the physical storage address of the multicast replicated entry in the high-speed storage unit. The FD processing unit can read the entry content through the multicast replicated entry address carried in the multicast FD. This field may not be used as the actual stored entry field; it is only used to identify the entry. The initial multicast FD will carry the physical address of the first entry in the linked list.

[0078] Valid bit field (Entry_Vld, EV): Used to identify whether the current multicast replication entry is valid. If it is valid, the multicast replication processing steps corresponding to the entry will be executed; if it is invalid, the multicast replication processing steps corresponding to the entry will not be processed. Queue Identifier Field (Queue_ID, QID): Each queue identifier in this field is uniquely mapped to the sending queue of a physical output port. Multicast message copies are copied to the output port queue corresponding to the identifier and are eventually sent from the corresponding physical port. The physical output ports in the forwarding chip of this application are bound to the FD processing unit. Only FD processing units with a binding relationship can be responsible for processing the multicast copy entries corresponding to the physical output ports they are bound to.

[0079] The Next Entry Physical Address field (Next_Entry_Addr, NEA) indicates the physical storage address of the next multicast replication entry in the same multicast FD. This field is empty for the last multicast replication entry in the same multicast FD, indicating that all entries in the current multicast FD have been traversed. The Next Entry FD Identifier field (Next_Entry_FD_Process_ID, NEFDPID) indicates the FD processing unit responsible for processing the next multicast replication entry. Each FD processing unit corresponds to a unique identifier. This field is set to empty for the last multicast replication entry of the same multicast FD.

[0080] In the example in Table 2, physical output ports can be divided into port domains through a configuration interface, and these port domains can be bound to FD processing units. For instance, if the six physical output ports correspond to queue identifiers 0-5 respectively, they can be divided into two port domains. The ports corresponding to queue identifiers ranging from 0-2 are designated as the first port domain and bound to the first FD processing unit (FDP0); the ports corresponding to queue identifiers ranging from 3-5 are designated as the second port domain and bound to the second FD processing unit (FDP1). Based on this binding relationship, in the six multicast replication entries (a0-a5) of multicast FD0, the entries with queue identifier field values ​​of 0-2 are processed by the first FD processing unit (FDP0), and the entries with queue identifier field values ​​of 3-5 (a3-a5) are processed by the second FD processing unit (FDP1). Similarly, entries with physical addresses a6-a8 in FD1 are processed by the first FD processing unit (FDP0), entries with physical addresses a9-a11 in FD1 are processed by the second FD processing unit (FDP1), and so on. FD binding based on port domains reduces the handover of processing rights for the same multicast FD entry between FD processing units, thereby improving processing efficiency.

[0081] Figure 4 Based on Figure 3 The dual-FD processing unit structure reads multicast replication entries in time-slot multiplexing mode, as shown in the signal timing diagram. Based on Table 2, the processing timing of 24 multicast replication entries by the dual-FD processing unit reflects the following pattern: (1) The multicast replication entries of any multicast FD are read sequentially in time. This is determined by the mechanism by which multiple FD processing units process entries sequentially based on the linked list structure of the entries. For example, the six multicast replication entries a0-a5 of FD0 and the six entries a6-a11 of FD1 are read sequentially in time. For each output port / output port queue, the processing order of the multicast replication entries corresponding to each output port is consistent with the receiving and processing order of the multicast FD.

[0082] (2) The two FD processing units (FDP0 and FDP1) cooperate with each other in timing and read the table entries in a time-slot multiplexing mode, reusing the time slots in the fixed delay of the read table entries of the high-speed storage unit 203, thereby improving the reading efficiency of the FD processing unit.

[0083] Figure 4This design visually illustrates the signal timing relationship and pipelined operation characteristics of the high-speed memory cell 203 read operation. It utilizes a time-slot multiplexing mechanism to offset the inherent read latency of the high-speed memory cell, thereby improving table traversal performance. Specifically, the clock signal clk provides a global operating clock signal for each hardware unit; a high level read enable signal read_en corresponds to a table read request; the read address signal read_addr changes synchronously with read_en, identifying the physical address of the table entry corresponding to this read request; and the read data signal read_data is the read return data signal, carrying the content of the multicast copy table entry read. It has a fixed delay of 4 clock cycles relative to the corresponding read request signal, determined by the inherent read characteristics of the high-speed memory cell.

[0084] From the timing distribution of the read address signals of the four multicast FDs (FD0-FD3), the second FD processing unit FDP1 begins to cross-cooperate with FDP0 to read the table entry in time slot multiplexing mode after the first FD processing unit FDP0 initiates a read request for the FD1 a6 table entry. FDP1 multiplexes one of the three time slots in the fixed read delay of FDP0. In the figure, the third time slot is used to initiate the read request, but the second or fourth time slot can also be used, which is not limited in this application. If other embodiments of this application add three FD processing units, the three FD processing units can also multiplex all three spare time slots.

[0085] From the timing distribution of the read data signals of the four multicast FDs, the overall layout is a continuous pipeline with no gaps. The read data signals of FDP0 and FDP1 are seamlessly connected, and there are no idle clock cycles in the read data signals throughout the process. The average number of time slots occupied by the read data signals of each entry is close to half. Compared with the traditional single FD processing unit serial read table architecture, the architecture provided in this application breaks through the physical access timing constraints of the storage medium of the high-speed storage unit and greatly improves the traversal reading efficiency of the entries.

[0086] This application binds the output port to the FD processing unit, distributes the multicast replication entries of each multicast FD to different FD processing units for processing, and uses time slot multiplexing to start reading the next entry during the reading of the previous entry. The two FD processing units run back and forth alternately, which improves the efficiency of entry reading, improves multicast performance, and ensures the order of message output.

[0087] Taking the example of four FDs (Function Controllers) with six entries each in Table 2, the traditional scheme requires 96 clock cycles (clk), while the time-slot multiplexing scheme in this application takes only 62 clock cycles, reducing the time to approximately 65% ​​of the original. As the number of packets gradually increases, theoretically, the total time for reading entries can be reduced to nearly half that of the traditional scheme, as shown in the test data example in Table 3. When the processing capacity of a single FD processing unit is 512Gb, time-slot multiplexing can increase it to approximately 1Tb.

[0088] Table 3

[0089] The following describes in detail the process of the dual FD processing unit performing multicast replication processing steps in time slot multiplexing mode, with reference to the above-mentioned figures and Table 2.

[0090] Step 501: The first FD processing unit sequentially acquires multicast FD0-FD3; The first FD processing unit, as the main FD processing unit, is the unified entry point for multicast FD. (Refer to Table 2 and...) Figure 4 For example, the multicast FDs and corresponding entries obtained sequentially by the first FD processing unit are: FD0 (a0-a5), FD1 (a6-a11), FD2 (a12-a17), and FD3 (a18-a23). The configuration of the FD identifier field value in the next entry shows that the output ports corresponding to queue identifiers 0-2 are bound to the first FD processing unit FDP0, and the output ports corresponding to queue identifiers 3-5 are bound to the second FD processing unit FDP1.

[0091] Step 502: The first FD processing unit reads multicast replication entries a0-a2 sequentially from the starting physical address a0 of the multicast replication entry in FD0 and performs the corresponding multicast replication processing steps in coordination with the replication processing unit; when entry a2 is read, based on the FD identifier of the next entry of entry a2, it transmits information such as multicast FD and the physical address of the next entry to the second FD processing unit through the interconnection channel; The first FD processing unit reads the first entry based on the starting address a0 of the multicast replication entry in FD0, determines the entry is valid based on the valid bit EV=1, executes the corresponding multicast replication processing steps handled by the first FD processing unit, and then transmits the multicast FD and the entry information required for subsequent steps to the replica processing unit. The replica processing unit, in coordination with the first FD processing unit, executes the remaining multicast replication processing steps corresponding to entry a0. With the assistance of the replica processing unit, the multicast packet replica corresponding to entry a0 of multicast FD0 is copied to the outgoing port queue with QID 0, and at the same time, a read request is initiated based on the physical address a1 of the next entry.

[0092] As shown in Table 2 and Figure 4 As an example of the timing diagram, this embodiment uses the method of binding the output port domain to the FD processing unit to balance the load of the two FD processing units. The half of the ports with the lower identifier number is divided into an output port domain and bound to the first FD processing unit, and the half of the ports with the higher identifier number is divided into an output port domain and bound to the second FD processing unit. The two FD processing units cooperate and run in parallel to share the multicast replication task of each multicast group in a time slot multiplexing manner, thereby improving the overall multicast replication efficiency.

[0093] While completing the multicast replication processing steps for entry a2, the first FD processing unit can transmit FD0 and the address of the next entry a3 to the second FD processing unit via the interconnection channel.

[0094] Step 503: After completing the multicast replication processing steps corresponding to entry a2 of FD0 and sending FD0 and the address a3 of the next entry to the second FD processing unit, the first FD processing unit starts processing FD1. Based on the starting physical address a6 of the multicast replication entry in FD1, it sequentially reads multicast replication entries a6-a8 and executes the corresponding multicast replication processing steps. When entry a8 is read, based on the FD identifier of the next entry of entry a8, it transmits FD1 and the entry address a9 to the second FD processing unit through the interconnection channel. Step 504: The second FD processing unit starts reading entries a3-a5 sequentially based on the received FD0 and entry address a3 and executes the corresponding multicast replication processing steps; when entry a5 is read, the multicast replication processing steps of multicast FD0 are terminated based on the condition that the physical address field of the next entry of entry a5 is empty. like Figure 4 For example, after receiving multicast replication-related information from the first FD processing unit, the second FD processing unit multiplexes the third time slot in the fixed delay of the read entry to read the next entry. Figure 4 It can be seen that starting from entry a6, the first FD processing unit and the second FD processing unit begin to execute in parallel and interleaved. While the first FD processing unit processes the first 3 entries of FD1, the second FD processing unit uses the spare time slots with fixed delays to process the 3 entries of FD0 in parallel. Although the processing of entries of FD0 and FD1 is interleaved, the timing of the processing of entries for each output port is correct.

[0095] It should be noted that in the scheme provided in this application, the number of FD processing units is related to the fixed delay of the high-speed memory unit. When the number of fixed delay clock cycles is N, the number of FD processing units is less than or equal to N, that is, the number of FD processing units cannot exceed the number of time slots with the fixed delay. For example, when N=4, in addition to the main FD processing unit, a maximum of 3 more FD processing units can be added to reuse the 3 spare time slots. When adding multiple auxiliary FD processing units, interconnection channels also need to be established between the auxiliary FD processing units for transmitting table entry copying information.

[0096] Referring to steps 502-504 above, the two FD processing units sequentially complete the reading of all multicast FD entries and the copying of the corresponding multicast packets according to the same process, which will not be repeated here.

[0097] Example 2: Multicast FD Processing Architecture with Pre-Agency Arbitration Figure 5 This is a schematic diagram of a three-FD processing unit processing device for accelerating multicast FD processing according to another embodiment of this application. This embodiment includes three FD processing units, which also adopt a parallel processing pipeline architecture to achieve efficient reading of multicast replication entries in a time slot multiplexing mode.

[0098] Unlike the previous embodiments, this embodiment also includes a front-end arbitration unit 300. The front-end arbitration unit serves as the unified entry point for multicast FDs. It is responsible for sequentially acquiring multicast FDs to be processed. Based on the multicast physical output ports of different multicast groups, the binding relationship between each FD processing unit and the physical output port, and the current load of each FD processing unit, the front-end arbitration unit selects the FD processing unit responsible for the initial processing of each acquired multicast FD, thereby achieving load balancing of the multicast replication processing steps performed on multiple FD processing units for multicast FDs of different multicast groups.

[0099] For example, when the output ports of different multicast groups are unevenly distributed, such as when the forwarding chip is configured with 32 output ports, corresponding to output port queue identifiers 0-31, the first FD processing unit is bound to the first output port field 0-9, the second FD processing unit is bound to the second output port field 10-20, and the third FD processing unit is bound to the third output port field 21-31. Assuming that the multicast output ports of the first multicast group are mainly concentrated in the first output port field, the multicast output ports of the second multicast group are mainly concentrated in the second output port field, and the multicast output ports of the third multicast group are mainly concentrated in the third output port field, the front-end arbitration unit can allocate all the multicast FDs of the first multicast group to the first FD processing unit for processing, allocate all the multicast FDs of the second multicast group to the second FD processing unit for processing, and allocate all the multicast FDs of the third multicast group to the third FD processing unit for processing, thereby balancing the load of each FD processing unit through port binding relationships.

[0100] Each FD processing unit can feed back its own load status signal to the front-end arbitration unit. The front-end arbitration unit will then distribute subsequent multicast FDs to the FD processing units with lighter loads and more balanced output port distribution based on the real-time load feedback from the FD processing units. For example, when the first FD processing unit and the second FD processing unit are bound to the same output port domain, and the current load of the first FD processing unit is significantly less than that of the second FD processing unit, the front-end arbitration unit can allocate subsequent multicast FDs with the same output port binding relationship to the first FD processing unit with the lower load to avoid load imbalance among the FD processing units.

[0101] Each FD processing unit can be configured with a bidirectional interconnection channel, and the FD processing units can transfer the processing rights of a table entry based on the FD identifier of the next table entry.

[0102] Another difference from the aforementioned embodiments is that this embodiment does not include a replica processing unit. In this embodiment, each FD processing unit is fully connected to the output ports in the output port unit. After obtaining the multicast replication entry, each FD processing unit independently processes the complete multicast replication processing steps corresponding to the multicast replication entry, directly replicating the multicast packet copy corresponding to the entry sequentially into the corresponding output port queue. This design reduces the complexity of the entire processing framework.

[0103] This embodiment uses a pre-arbitration unit for load balancing scheduling, which can adapt to business scenarios with uneven distribution of multicast ports, avoid the problem of some FD processing units being overloaded and some units being idle and wasting resources, and further improve the overall utilization of time slot resources. At the same time, it adopts a fully connected direct output port architecture, which eliminates the output arbitration link, reduces the logical latency on the forwarding path, and further improves the throughput performance of multicast forwarding.

[0104] The functions of each module / unit and their interactions in this embodiment can be found in the aforementioned embodiments and method steps, and will not be repeated here.

[0105] The device embodiments described above are merely illustrative. The modules / units described as separate components may or may not be physically separate. The components presented as modules / units may or may not be physical modules. They may be located on one physical chip or distributed across multiple physical chips. Those skilled in the art can understand and implement this without any creative effort.

[0106] The foregoing has described exemplary embodiments of this specification. It should be understood that in some cases, the modules / units described in this specification may be divided in a manner different from that in the embodiments, and the described actions or steps may be performed in a different order than that in the embodiments, while still achieving the desired result. Furthermore, the processes depicted in the accompanying drawings do not necessarily require a specific or sequential order to achieve the desired result. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0107] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.

Claims

1. A method for accelerating multicast replication, characterized in that, The method includes: Obtain the multicast message descriptor (FD); Multiple FD processing units share the read table access channel of the high-speed storage unit in a time-slot multiplexing manner, reuse the fixed delay time slot of the high-speed storage unit's read table, read the multicast replication table entries of the multicast FD from the high-speed storage unit, and execute the corresponding multicast replication processing steps according to the read multicast replication table entries. In this multicast group, one multicast message corresponds to one multicast FD, one multicast FD corresponds to multiple multicast replication entries stored in the form of a linked list, and each multicast replication entry corresponds to one physical output port of the multicast group; the physical output port and the FD processing unit have a preset binding relationship, and the multicast replication entry corresponding to the physical output port is read and processed by the bound FD processing unit; the fixed read delay refers to the number of clock cycles N between the FD processing unit initiating a read request and obtaining the read result of the entry.

2. The method according to claim 1, characterized in that, The multiple FD processing units are distinguished into main FD processing units and auxiliary FD processing units; The main FD processing unit, as the unified entry point for multicast FDs, is responsible for acquiring multicast FDs and starting to read multicast replication entries based on the address of the initial multicast replication entry in the multicast FD. The multiple FD processing units determine the FD processing unit responsible for processing the next entry based on the FD identifier field of the next entry in the multicast replication entry they read, and hand over the processing right to the corresponding FD processing unit. They also send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through the interconnection channel between them. The auxiliary FD processing unit is responsible for receiving the multicast FD and the address of the next entry sent by the main FD processing unit or other auxiliary FD processing units, and cooperating with the main FD processing unit in a time-slot multiplexing manner to process the multicast replication processing steps corresponding to the remaining multicast replication entries of the multicast FD.

3. The method according to claim 1, characterized in that, The front-end arbitration unit, as the unified entry point for multicast FDs, is responsible for acquiring multicast FDs; The front-end arbitration unit selects the FD processing unit responsible for the initial processing of each multicast FD obtained based on the multicast physical output port of different multicast groups, the binding relationship between each FD processing unit and the physical output port, and the current load of each FD processing unit, so as to achieve load balancing of the multicast FD of different multicast groups performing multicast replication processing steps on multiple FD processing units. The multiple FD processing units send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through their interconnection channels.

4. The method according to claim 2 or 3, characterized in that, After reading the multicast replication entry, each of the multiple FD processing units executes the partial multicast replication processing steps corresponding to the multicast replication entry it reads. Then, it sends the remaining multicast replication processing information to the replica processing unit, which coordinates with each FD processing unit to execute the subsequent multicast replication processing steps. Finally, the multicast packet replicas corresponding to the multicast replication entries are copied sequentially to the egress port queue of the corresponding physical egress port.

5. The method according to claim 2 or 3, characterized in that, The plurality of FD processing units are fully connected to each physical output port in the output port unit; After each of the multiple FD processing units reads a multicast replication entry, each FD processing unit executes all the multicast replication processing steps corresponding to the read multicast replication entry, directly copying the multicast packet copy corresponding to each multicast replication entry sequentially to the egress port queue of the corresponding physical egress port.

6. The method according to claim 1, characterized in that, The number of the multiple FD processing units is related to the fixed read latency of the high-speed storage unit; The number of FD processing units is less than or equal to the number of clock cycles N.

7. The method according to claim 1, characterized in that, The physical output port is pre-divided into output port domains, and the FD processing unit is bound to the output port domains by a preset binding relationship.

8. An apparatus for accelerating multicast replication, characterized in that, The device includes a high-speed storage unit, multiple FD processing units, and an output port unit: The multiple FD processing units share the read table access channel of the high-speed storage unit in a time-slot multiplexing manner, multiplexing the fixed delay time slot of the high-speed storage unit's read table, reading multicast replication entries of the multicast FD from the high-speed storage unit, and performing corresponding multicast replication processing steps according to the read multicast replication entries; wherein, one multicast message of a multicast group corresponds to one multicast FD, one multicast FD corresponds to multiple multicast replication entries stored in the form of a linked list, and each multicast replication entry corresponds to one physical output port of the multicast group; the physical output port has a preset binding relationship with the FD processing unit, and the multicast replication entries corresponding to the physical output port are read and processed by the bound FD processing unit; the fixed delay of the read table refers to the number of clock cycles N between the FD processing unit initiating a read request and obtaining the read result of the entry; The high-speed storage unit is used to store multicast replication entries; The output port unit includes an output port queue with multiple physical output ports, used to output multicast message copies to the outside world.

9. The apparatus according to claim 8, characterized in that, The plurality of FD processing units are divided into main FD processing units and auxiliary FD processing units; The main FD processing unit serves as the unified entry point for multicast FDs, and is used to sequentially acquire multicast FDs and start reading and processing multicast replication entries based on the address of the starting multicast replication entry in the multicast FD. The plurality of FD processing units are also used to determine the FD processing unit responsible for processing the next entry based on the FD identifier field of the next entry in the multicast replication entry and to hand over the processing right to the corresponding FD processing unit, and to send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through the interconnection channel between them. The auxiliary FD processing unit is responsible for receiving the multicast FD and the address of the next entry sent by the main FD processing unit or other auxiliary FD processing units, and cooperating with the main FD processing unit in a time-slot multiplexing manner to read the remaining multicast replication entries of the multicast FD and the multicast replication processing steps corresponding to the processing entries.

10. The apparatus according to claim 8, characterized in that, The device also includes a front-end arbitration unit: The preceding arbitration unit serves as the unified entry point for multicast FDs and is used to acquire multicast FDs. The front-end arbitration unit is also used to select the FD processing unit responsible for the initial processing of each multicast FD based on the multicast physical output port of different multicast groups, the binding relationship between each FD processing unit and the physical output port, and the current load of each FD processing unit, so as to achieve load balancing of the multicast FDs of different multicast groups performing multicast replication processing steps on multiple FD processing units. The multiple FD processing units send the multicast FD and the address of the next entry to the FD processing unit responsible for processing the next entry through their interconnection channels.

11. The apparatus according to claim 9 or 10, characterized in that, The device also includes a copy processing unit: The replica processing unit is used to receive the remaining multicast replication processing information sent by each FD processing unit after completing the partial multicast replication processing steps corresponding to the multicast replication entries it has read. It coordinates with each FD processing unit to execute the subsequent multicast replication processing steps corresponding to the multicast replication entries it has read, and finally replicates the multicast message replicas corresponding to the multicast replication entries to the corresponding physical output port queue in sequence.

12. The apparatus according to claim 9 or 10, characterized in that, The plurality of FD processing units are fully connected to each physical output port in the output port unit; After each of the multiple FD processing units reads a multicast replication entry, each FD processing unit executes all the multicast replication processing steps corresponding to the read multicast replication entry, directly copying the multicast packet copy corresponding to each multicast replication entry sequentially to the egress port queue of the corresponding physical egress port.

13. A repeater chip, characterized in that, The forwarding chip includes at least multiple FD processing units, a high-speed storage unit, and an output port unit. The multiple FD processing units share the read table access channel of the high-speed storage unit in a time-slot multiplexing manner, and multiplex the read table fixed delay time slot of the high-speed storage unit to perform the method of any one of claims 1 to 7.

Citation Information

Patent Citations

  • Multicast service processing method and device, cloud platform, equipment and readable storage medium

    CN110798412A

  • Multicast message forwarding processing method, device and equipment and storage medium

    CN112202674A