A method and device for implementing multicast datagram forwarding
By setting up multicast forwarding table entries and member port entries in ultra-low latency switches, and utilizing hardware chips to replicate and forward multicast data packets, the limitations of ultra-low latency switches in multicast packet forwarding are overcome, enabling a wider range of services and higher system competitiveness.
Patent Information
- Application Number
- CN202411047013.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2025-11-04
- Estimated Expiration
- 2044-07-31
AI Technical Summary
Existing ultra-low latency switches have limitations in multicast packet forwarding and cannot effectively expand the types of services.
By configuring multicast forwarding table entries and multicast member port entries in the ultra-low latency switch, and utilizing hardware chips to replicate and forward multicast data packets, efficient replication and forwarding of multicast data packets can be achieved.
This enables multicast packet replication and forwarding in ultra-low latency switches, expands the service types of ultra-low latency switching networks, and enhances the system's competitiveness.
Smart Images

Figure CN119071261B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the communication technology field, in particular to a method and device for implementing multicast data packet forwarding. BACKGROUND
[0002] At present, the financial securities industry has an increasing demand for high-frequency trading, and there is an explosive demand growth for an ultrafast trading system composed of ultra-low latency switches. Under this demand background, the ultra-low latency switch is born with the advantages of extremely low latency and extremely simple functions. The ultra-low latency switch only has one layer of forwarding function and can realize ultra-low latency forwarding.
[0003] In the ultra-low latency switching network, it is necessary to realize the replication and forwarding of multicast packets by the ultra-low latency switch. SUMMARY
[0004] The purpose of the present application is to provide a method and device for implementing multicast data packet forwarding, and to realize the replication and forwarding of multicast packets by the ultra-low latency switch.
[0005] To achieve the above purpose, the present application provides a method for implementing multicast data packet forwarding, which is applied to an ultra-low latency switch. The method comprises the following steps: a first hardware chip sets multicast forwarding table items and multicast member port table items in a second hardware chip; the second hardware chip finds the multicast forwarding table items according to the multicast group MAC address and the first virtual local area network of the first multicast data packet; the second hardware chip finds the multicast member port table items according to the multicast member port table item index recorded in the multicast forwarding table items; a copy of the first multicast data packet is made for each multicast member port recorded in the multicast member port table items; one copy of the first multicast data packet is sent to the internal forwarding port of the directly connected first hardware chip through the second hardware chip port mapped by each multicast member port; and the first hardware chip sends the first multicast data packet received by each internal forwarding port through the corresponding forwarding port.
[0006] To achieve the above object, the application further provides a device for realizing multicast data packet forwarding, applied to an ultra-low latency switch, comprising a first hardware chip for setting multicast forwarding table items and multicast member port table items in a second hardware chip; the second hardware chip is used for searching the multicast forwarding table items according to a multicast group MAC address of a first multicast data packet and a first virtual local area network to which the first multicast data packet belongs; searching the multicast member port table items according to a multicast member port table item index recorded in the multicast forwarding table items; copying a first multicast data packet for each multicast member port recorded in the multicast member port table items; searching second hardware chip ports mapped by each multicast member port based on a port mapping table and sending a first multicast data packet to an internal forwarding port of the first hardware chip directly connected to the second hardware chip; the first hardware chip is further used for sending the first multicast data packet received by each internal forwarding port through a corresponding forwarding port.
[0007] The application has the beneficial effect of realizing multicast packet replication and forwarding in an ultra-low latency switch and expanding service types in an ultra-low latency switch network. BRIEF DESCRIPTION OF DRAWINGS
[0008] Figure 1 A flowchart of a method for realizing multicast data packet forwarding provided by the application;
[0009] Figure 2 A schematic diagram of an ultra-low latency switch forwarding a layer 2 multicast group query packet provided by the application;
[0010] Figure 3 A schematic diagram of an ultra-low latency switch setting multicast table items based on a layer 2 multicast group member packet provided by the application;
[0011] Figure 4 A schematic diagram of an ultra-low latency switch forwarding a layer 2 multicast group data packet provided by the application;
[0012] Figure 5 A schematic diagram of an ultra-low latency switch discarding an unknown layer 2 multicast group data packet provided by the application;
[0013] Figure 6 A schematic diagram of an ultra-low latency switch forwarding an unknown layer 2 multicast group data packet provided by the application;
[0014] Figure 7 A schematic diagram of an ultra-low latency switch forwarding an unknown layer 2 multicast group data packet provided by the application;
[0015] Figure 8 A schematic diagram of a device for realizing multicast data packet forwarding provided by the application; DETAILED DESCRIPTION
[0016] Examples will be described in detail with reference to the accompanying drawings. In the following detailed description, numerous specific details are set forth in order to provide a thorough understanding of the present application. Known methods, procedures, components, and circuits have not been described in detail since such are well understood to those of ordinary skill in the art.
[0017] In the use of terms, the term "includes" means includes but not limited to; the term "contains" means includes but not limited to; the term "above", "within" and "below" include the number; the term "greater than", "less than" means not including the number. The term "based on" means at least based on part of it.
[0018] Figure 1 The flow chart of an embodiment of the method for forwarding multicast data packets provided by the present application is shown; Figure 1 The method for multicast data packets applied to ultra-low latency switch includes the following steps:
[0019] Step 101, the first hardware chip sets multicast forwarding table items and multicast member port table items in the second hardware chip;
[0020] Step 102, the second hardware chip finds the multicast forwarding table item according to the multicast group MAC address of the first multicast data packet and the first virtual local area network it belongs to;
[0021] Step 103, the second hardware chip finds the multicast member port table item according to the multicast member port table item index recorded in the multicast forwarding table item; a copy of the first multicast data packet is copied for each multicast member port recorded in the multicast member port table item;
[0022] Step 104, the second hardware chip sends a copy of the first multicast data packet to the internal forwarding port of the directly connected first hardware chip through the second hardware chip port mapped by each multicast member port;
[0023] Step 105, the first hardware chip sends the first multicast data packet received through each internal forwarding port through its corresponding forwarding port.
[0024] Figure 1 The embodiment realizes the forwarding of multicast packets of the ultra-low latency switch, so that the service types of the ultra-low latency switch are wider and more competitive.
[0025] Figure 2 The schematic diagram of the ultra-low latency switch forwarding layer 2 multicast group query packet provided by the embodiment of the present application is shown.
[0026] As Figure 2As shown, the application adds FPGA chip 22 to the ultra-low latency switch 2A to provide multicast data packet replication for the switch (Switch) unit 21a (chip) of the ultra-low latency switch.
[0027] In the application, the forwarding ports 21-40 of the switching unit 21 are set as internal forwarding ports and are mapped to the forwarding ports 1-20 of the switching unit 21; the forwarding ports 21-40 of the switching unit 21 are respectively connected to the ports P21-P40 of the FPGA chip 22.
[0028] The CPU 23 records the correspondence between the forwarding ports 1-20 and the chip ports P21-P40 of the FPGA chip 22 in software, and sets a port mapping table 22a in the FPGA chip 22 to record the mapping relationship between the chip ports P21-P40 and the forwarding ports 1-20 of the VLAN 1000 and the VLAN 2000.
[0029] Figure 2 In the application, the switching unit 21 receives the IGMP query packet 201 through the port 11 and sends the IGMP query packet 201 to the directly connected port p31 of the FPGA chip 22 through the internal forwarding port 31.
[0030] The FPGA chip 22 finds the ports 1-5 belonging to the VLAN 1000 through the port mapping table 22a; copies one IGMP query packet 201 for receiving the multicast group G1 for each of the ports 1-5 of the VLAN 1000, and sends one IGMP query packet 201 through the ports p21-p25 mapped by the ports 1-5 respectively.
[0031] The switching unit 21 respectively receives one IGMP (Internet Group Management Protocol) query packet 201 through the internal forwarding ports 21-25, and sends the IGMP query packet through the mapped ports 1-5.
[0032] Figure 3 The application provides an ultra-low latency switch based on a two-layer multicast group member packet setting multicast table item schematic diagram.
[0033] Figure 3 In the application, the switching unit 21 receives the IGMP report packet 301 for joining the multicast group G1 through the port 2 of the VLAN 1000, and sends the IGMP packet 301, the receiving port 2 and the VLAN 1000 belonging to it to the directly connected port p22 of the FPGA chip 22 through the internal forwarding port 22.
[0034] FPGA chip 22 sends IGMP report message 301 and receiving port information to processor 23; processor 23 sends multicast group MAC address MACG1 of IGMP message 301, receiving port 2 and VLAN 1000 to which port 2 belongs to switching unit 21.
[0035] Switching unit 21 does not find multicast group MAC address MACG1 and VLAN 1000 corresponding multicast table index in multicast soft table item 21a; then applies an idle multicast table index index1 for multicast group MAC address MACG1 and VLAN 1000.
[0036] Switching unit 21 sets multicast forwarding table item 2201 in MAC table 22b, calculates storage position of multicast forwarding table item 2201 based on multicast group MAC address MACG1 and VLAN 1000; writes index1 into the calculated storage position of multicast forwarding table item 2201.
[0037] Switching unit 21 sets multicast member port table item 2202 in two-layer multicast table 22c, calculates storage position of two-layer multicast table 22c based on index1; writes port2 into the storage position of multicast member port table item 2202.
[0038] When switching unit 21 receives IGMP report message 302 of joining multicast group G1 through port 4 of VLAN 1000 again, it sends IGMP message 302 and receiving port 4 and VLAN 1000 to which it belongs to directly connected port p24 of FPGA chip 22 through internal forwarding port 24.
[0039] FPGA chip 22 sends IGMP report message 302 and receiving port information to processor 23.
[0040] Processor 23 sends multicast group MAC address MACG1 of IGMP message 302, receiving port 4 and VLAN 1000 to which port 4 belongs to switching unit 21.
[0041] Switching unit 21 calculates storage position of multicast forwarding table item 2201 based on multicast group MAC address MACG1 and VLAN 1000 in multicast soft table item 21a, finds multicast forwarding table item 2201 corresponding to multicast group MAC address MACG1 and VLAN 1000, and reads multicast table index index1.
[0042] Switching unit 21 calculates storage position according to multicast member port table item index1 in two-layer multicast table 22c, finds multicast member port table item 2202, and writes port4 into multicast member port table item 2202.
[0043] Figure 4 The schematic diagram of the super low latency switch forwarding the data packet of the Layer 2 multicast group provided by the embodiment of the application.
[0044] Figure 4 In the embodiment, the switching unit 21 receives the multicast data packet 401 of the multicast group G1 through the port 12 of the VLAN 1000, and sends the multicast data packet 401, the receiving port 12 and the VLAN 1000 to which the port 12 belongs to the port p32 of the FPGA chip 22 through the internal forwarding port 32.
[0045] The FPGA chip 22 calculates the storage location based on the multicast group address MAC address MAC G1 and the VLAN 1000 to which the multicast data packet 401 belongs, finds the multicast forwarding table item 2201 in the MAC table 22b, and reads the multicast member port table item index index1.
[0046] The FPGA chip 22 calculates the storage location based on the multicast member port table item index index1, finds the multicast member port table item 2202 in the Layer 2 multicast table 22c, and reads the multicast member ports port2 and port4.
[0047] The FPGA chip 22 finds the ports p22 and p24 mapped by the ports 2 and 4 of the VLAN 1000 through the port mapping table 22a (not shown in the embodiment), respectively copies one copy of the multicast data packet 401 for the ports p22 and p24, and respectively sends one copy of the multicast data packet 401 through the ports p22 and p24. Figure 3 、 Figure 4 The FPGA chip 22 finds the ports p22 and p24 mapped by the ports 2 and 4 of the VLAN 1000 through the port mapping table 22a (not shown in the embodiment), respectively copies one copy of the multicast data packet 401 for the ports p22 and p24, and respectively sends one copy of the multicast data packet 401 through the ports p22 and p24.
[0048] The switching unit 21 respectively receives one copy of the multicast data packet 401 through the internal forwarding ports 22 and 24, respectively sends one copy of the multicast data packet 401 through the mapped ports 2 and 4, and sends the multicast data packet 401 to the receiving end of the multicast group G1 of the VLAN 1000.
[0049] Figure 5 The schematic diagram of the super low latency switch discarding the data packet of the unknown Layer 2 multicast group provided by the embodiment of the application.
[0050] When the switch 2A enables the position Layer 2 multicast data packet discarding, the processor 23 applies to designate the multicast table item index, for example, index254.
[0051] The processor 23 sets the multicast member port table item 2203 in the Layer 2 multicast table 22c, calculates the storage location of the Layer 2 multicast table 22c based on the index254, and writes the null as the member port into the multicast member port table item 2203.
[0052] Processor 23 records the entry index 254 of multicast member port table entry 2203 in VLAN table 22d of VLAN 1000 and VLAN table 22e of VLAN 2000, respectively. The VLAN (Virtual Local Area Network) table is used for...
[0053] Figure 5 In the process, the switching unit 21 receives the multicast data packet 501 of the multicast group G2 through port 12 of VLAN 1000, and sends the multicast data packet 501, the receiving port 12 and the VLAN 1000 to the directly connected port p32 through the internal forwarding port 32.
[0054] FPGA chip 22 calculates the storage location in MAC table 22b based on the multicast group address MAC address MAC G2 of multicast data packet 501 and its VLAN 1000. No multicast forwarding table entry is found in the calculated MAC table 22b.
[0055] FPGA chip 22 reads index 254 from VLAN table 22d of VLAN 1000, calculates the storage location based on index 254, finds multicast member port entry 2203 in Layer 2 multicast table 22c, and reads that the multicast member port is null. FPGA chip 22 then discards multicast data packet 501.
[0056] When the ultra-low latency switch 2A receives a multicast data packet through the port of VLAN 2000, and the searched multicast forwarding table entry is not found in MAC table 22b, it proceeds according to... Figure 5 In this embodiment, unknown multicast data packets are discarded.
[0057] Figure 6 This is a schematic diagram illustrating the forwarding of unknown Layer 2 multicast group data packets by an ultra-low latency switch provided in an embodiment of this application.
[0058] When switch 2A enables location Layer 2 multicast data packet forwarding, processor 23 requests a specified multicast table entry index, such as index255.
[0059] The processor 23 sets up a multicast member port entry 2204 in the Layer 2 multicast table 22c, calculates the storage location of the Layer 2 multicast table 22c based on index 255, and writes ports 1-10 of all virtual LANs VLAN1000 and VLAN2000 into the multicast member port entry 2204.
[0060] Processor 23 records the entry index 255 of multicast member port entry 2204 in VLAN table 22d of VLAN 1000 and VLAN table 22e of VLAN 2000 respectively.
[0061] Figure 6 In the embodiment, the switching unit 21 receives the multicast data packet 601 of the multicast group G2 through the port 12 of the VLAN 1000, and sends the multicast data packet 601, the receiving port 12 and the VLAN 1000 to which the receiving port 12 belongs to the directly connected port p32 through the internal forwarding port 32.
[0062] The FPGA chip 22 calculates the storage location in the MAC table 22b based on the multicast group address MAC address MAC G2 and the VLAN 1000 to which the multicast group address MAC address MAC G2 belongs of the multicast data packet 601, and does not find the multicast forwarding table item in the MAC table 22b.
[0063] The FPGA chip 22 reads the index index255 from the VLAN table 22d of the VLAN 1000, calculates the storage location based on the index index255, finds the multicast member port table item 2204 in the layer 2 multicast table 22c, and reads the multicast member ports as the ports 1-ports 10.
[0064] The FPGA chip 22 finds the ports p21-p25 mapped from the ports 1-5 of the VLAN 1000 and finds the ports p26-p30 mapped from the ports 6-10 of the VLAN 2000 through the port mapping table 22a (not shown in the embodiment), respectively copies one copy of the multicast data packet 601 for each of the ports p21-p30, and respectively sends one copy of the multicast data packet 601 through each of the ports p21-p30. Figure 6 The switching unit 21 respectively receives one copy of the multicast data packet 601 through the internal forwarding ports 21-30, respectively sends one copy of the multicast data packet 601 through the forwarding ports 1-ports 10 respectively mapped from the internal forwarding ports 21-30, and sends the multicast data packet 601 in the VLAN 1000 and the VLAN 2000.
[0065] Alternatively, the processor 23 applies one VLAN multicast table item index for each VLAN and respectively stores the VLAN multicast table item index in the VLAN table of each VLAN; and records the forwarding ports in the VLAN or the allowed forwarding ports in the VLAN corresponding to each VLAN multicast table item index in the layer 2 multicast table. These embodiments can be applied to the embodiment shown in the figure.
[0066] Figure 6 The figure shows the schematic diagram of the super low latency switch forwarding unknown layer 2 multicast group data packet provided by the embodiment of the present application.
[0067] Figure 7 When the switch 2A enables the forwarding of the layer 2 multicast data packet, the processor 23 applies a specified multicast table item index, for example, the index index255.
[0068] When the switch 2A enables the forwarding of the layer 2 multicast data packet, the processor 23 applies a specified multicast table item index, for example, the index index255.
[0069] The processor 23 sets the multicast member port table entry 2205 in the two-layer multicast table 22c, calculates the storage location of the two-layer multicast table 22c based on the index 255, and writes the router port 20 into the multicast member port table entry 2205.
[0070] The processor 23 records the index 255 of the multicast member port table entry 2205 in the VLAN table 22d of the VLAN 1000 and the VLAN table 22e of the VLAN 2000, respectively.
[0071] Figure 7 In the case where the switch unit 21 receives the multicast data message 701 of the multicast group G2 through the port 12 of the VLAN 1000, the switch unit 21 sends the multicast data message 701, the receiving port 12, and the VLAN 1000 to which the port 12 belongs to the directly connected port p32 through the internal forwarding port 32.
[0072] The FPGA chip 22 calculates the storage location in the MAC table 22b based on the multicast group address MAC address MAC G2 of the multicast data message 701 and the VLAN 1000 to which the port 12 belongs, and does not find the multicast forwarding table entry in the MAC table 22b.
[0073] The FPGA chip 22 reads the index 255 from the VLAN table 22d of the VLAN 1000, calculates the storage location based on the index 255, finds the multicast member port table entry 2205 in the two-layer multicast table 22c, and reads the multicast member port as the router port 20.
[0074] The FPGA chip 22 finds the port p40 mapped by the router port through the port mapping table 22a (not shown in the figure), and sends the multicast data message 701 through the port p40, respectively. Figure 6 In the case where the switch unit 21 receives the multicast data message 701 of the multicast group G2 through the port 12 of the VLAN 1000, the switch unit 21 sends the multicast data message 701, the receiving port 12, and the VLAN 1000 to which the port 12 belongs to the directly connected port p32 through the internal forwarding port 32.
[0075] When there are other router ports on the switch 2A, these router ports are also written into the multicast member port table entry 2204. The switch 2A can send the multicast data message to the switch unit 21 through the FPGA chip port mapped by the router port based on the port mapping table 22a. Figure 7 The above embodiment copies one multicast data message for each router port, and sends the multicast data message to the switch unit 21 through the FPGA chip port mapped by the router port.
[0076] Figure 8 A schematic diagram of an equipment embodiment for implementing multicast data message forwarding provided by the embodiment of the present application. The equipment 80 comprises a network interface, a first hardware chip, a second hardware chip, a CPU, and a memory. The first hardware chip is a switch chip for performing ultra-low latency forwarding, and the second hardware chip is an FPGA chip for performing multicast replication; the processor executes processor executable instructions in the memory to perform a setting module.
[0077] The first hardware chip is configured to set multicast forwarding table items and multicast member port table items in the second hardware chip; the second hardware chip is configured to search the multicast forwarding table items according to a multicast group MAC address of the first multicast data packet and a first virtual local area network to which the first multicast data packet belongs; search the multicast member port table items according to an index of the multicast member port table items recorded in the multicast forwarding table items; copy one copy of the first multicast data packet for each multicast member port recorded in the multicast member port table items; search second hardware chip ports mapped by each multicast member port based on a port mapping table and send one copy of the first multicast data packet to an internal forwarding port of the first hardware chip directly connected to the second hardware chip; and the first hardware chip is further configured to send the first multicast data packet received by each internal forwarding port through a corresponding forwarding port.
[0078] The setting module is configured to set an allowed forwarding port table item in the second hardware chip and record an index of the allowed forwarding port table item in a virtual local area network table of each virtual local area network of the second hardware chip; the second hardware chip is further configured to not search the multicast forwarding table items according to a multicast group MAC address of the second multicast data packet and a first virtual local area network to which the second multicast data packet belongs; read the index of the allowed forwarding port table item recorded in the virtual local area network table of the first virtual local area network; search the allowed forwarding port table item according to the index of the allowed forwarding port table item; copy one copy of the second multicast data packet for each allowed forwarding port recorded in the allowed forwarding port table item; send one copy of the second multicast data packet through a second hardware chip port mapped by each allowed forwarding member port to an internal forwarding port of the first hardware chip directly connected to the second hardware chip; and the first hardware chip is further configured to send the second multicast data packet received by each internal forwarding port through a corresponding allowed forwarding port.
[0079] The allowed forwarding ports in the allowed forwarding port table item are router ports; or the allowed forwarding ports in the allowed forwarding port table item are forwarding ports of the first hardware chip in each virtual local area network.
[0080] The setting module is further configured to set a forbidden forwarding port table item in the second hardware chip and record an index of the forbidden forwarding table item in a virtual local area network table of each virtual local area network of the second hardware chip; the second hardware chip is further configured to not search the multicast forwarding table items according to a multicast group MAC address of the second multicast data packet and a first virtual local area network to which the second multicast data packet belongs; read the index of the forbidden forwarding table item recorded in the virtual local area network table of the first virtual local area network; search the forbidden forwarding table item corresponding to the index of the forbidden forwarding table item; determine forwarding ports recorded in the forbidden forwarding table item as null; and discard the second multicast data packet.
[0081] The above merely describes preferred embodiments of the present application and is not intended to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for implementing multicast packet forwarding, applied to an ultra-low latency switch, characterized in that, The method comprises, The first hardware chip sets multicast forwarding table item and multicast member port table item in the second hardware chip; The second hardware chip finds the multicast forwarding table item according to the multicast group MAC address of the first multicast data packet and the first virtual local area network to which the first multicast data packet belongs; The second hardware chip finds the multicast member port table item according to the multicast member port table item index recorded in the multicast forwarding table item; a copy of the first multicast data packet is copied for each multicast member port recorded in the multicast member port table item; One copy of the first multicast data packet is sent to the internal forwarding port of the first hardware chip directly connected through the second hardware chip port mapped by each multicast member port found by the port mapping table; The first hardware chip sends the first multicast data packet received through each internal forwarding port through the corresponding forwarding port.
2. The method of claim 1, wherein, The method further comprises, The setting module sets the allowed forwarding port table item in the second hardware chip, and records the allowed forwarding port table item index of the allowed forwarding port table item in the virtual local area network table of each virtual local area network of the second hardware chip; The second hardware chip does not find the multicast forwarding table item according to the multicast group MAC address of the second multicast data packet and the first virtual local area network to which the second multicast data packet belongs; The second hardware chip reads the allowed forwarding port table item index recorded in the virtual local area network table of the first virtual local area network, finds the allowed forwarding port table item according to the allowed forwarding port table item index, copies a copy of the second multicast data packet for each allowed forwarding port recorded in the allowed forwarding port table item, and sends one copy of the second multicast data packet to the internal forwarding port of the first hardware chip directly connected through the second hardware chip port mapped by each allowed forwarding member port; The first hardware chip sends the second multicast data packet received through each internal forwarding port through the corresponding allowed forwarding port.
3. The method of claim 2, wherein, The allowed forwarding port is a router port.
4. The method of claim 2, wherein, The allowed forwarding port is the forwarding port of the first hardware chip in each virtual local area network.
5. The method of claim 1, wherein, The method further comprises, The setting module sets the forbidden forwarding port table item in the second hardware chip, and records the table item index of the forbidden forwarding port table item in the virtual local area network table of each virtual local area network of the second hardware chip; The second hardware chip does not find the multicast forwarding table item according to the multicast group MAC address of the second multicast data packet and the first virtual local area network to which the second multicast data packet belongs; The second hardware chip reads the index of the forbidden forwarding port table item recorded in the virtual local area network table of the first virtual local area network, finds the forbidden forwarding port table item, and determines that the forwarding port recorded in the forbidden forwarding port table item is empty; The second hardware chip discards the second multicast data packet.
6. A device for implementing multicast datagram forwarding, applied to an ultra-low latency switch, characterized in that, The device comprises, The first hardware chip sets multicast forwarding table item and multicast member port table item in the second hardware chip; The second hardware chip is configured to find the multicast forwarding table item according to a multicast group MAC address of the first multicast data packet and a first virtual local area network to which the first multicast data packet belongs; find the multicast member port table item according to an index of the multicast member port table item recorded in the multicast forwarding table item; and copy one of the first multicast data packet for each multicast member port recorded in the multicast member port table item. The second hardware chip port mapped by each multicast member port is found based on a port mapping table, and one of the first multicast data packet is sent to an internal forwarding port of the first hardware chip directly connected through the second hardware chip port. The first hardware chip is further configured to send the first multicast data packet received by each internal forwarding port through a corresponding forwarding port.
7. The apparatus of claim 6, wherein, The device further comprises a setting module. The setting module is configured to set an allowed forwarding port table item in the second hardware chip, and record an index of the allowed forwarding port table item in a virtual local area network table of each virtual local area network of the second hardware chip. The second hardware chip is further configured to find the multicast forwarding table item according to a multicast group MAC address of the second multicast data packet and a first virtual local area network to which the second multicast data packet belongs, read the index of the allowed forwarding port table item recorded in the virtual local area network table of the first virtual local area network, find the allowed forwarding port table item according to the index of the allowed forwarding port table item, and copy one of the second multicast data packet for each allowed forwarding port recorded in the allowed forwarding port table item. One of the second multicast data packet is sent to an internal forwarding port of the first hardware chip directly connected through a second hardware chip port mapped by each allowed forwarding member port. The first hardware chip sends the second multicast data packet received by each internal forwarding port through a corresponding allowed forwarding port.
8. The apparatus of claim 7, wherein, The allowed forwarding port is a router port.
9. The apparatus of claim 7, wherein, The allowed forwarding port is a forwarding port of the first hardware chip in each virtual local area network.
10. The device of claim 7, wherein The setting module is further configured to set a forbidden forwarding port table item in the second hardware chip, and record an index of the forbidden forwarding port table item in a virtual local area network table of each virtual local area network of the second hardware chip. The second hardware chip is further configured to find the multicast forwarding table item according to a multicast group MAC address of the second multicast data packet and a first virtual local area network to which the second multicast data packet belongs, read the index of the forbidden forwarding port table item recorded in the virtual local area network table of the first virtual local area network, find the forbidden forwarding port table item, and determine a forwarding port recorded in the forbidden forwarding port table item to be empty. The second multicast data packet is discarded.
Citation Information
Patent Citations
Multicast implementing method and system based on switching network of high-speed peripheral extended interface
CN101286866A
Two-layer switching equipment and multicast data message forwarding method thereof
CN113472656A