A method and device for implementing three-layer forwarding of multicast data packets
By introducing a multicast replication unit in an ultra-low-latency switch and splitting the multicast hardware table entries, multi-channel replication and forwarding of multicast data packets are achieved, which solves the single-layer limitation of multicast packet forwarding in ultra-low-latency switches, expands service types and reduces switching latency.
Patent Information
- Application Number
- CN202411216791.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2025-10-10
- Estimated Expiration
- 2044-08-30
AI Technical Summary
Existing ultra-low latency switches only have single-layer forwarding capabilities when forwarding multicast packets, and are unable to replicate and forward multi-channel multicast data packets, limiting the expansion of service types.
By introducing a multicast replication unit in the ultra-low latency switch, the three-layer multicast hardware table is split into a channel forwarding information table and the channel multicast member replication table it points to. The multicast replication unit is used to simultaneously initiate replication and forwarding of multicast data on multiple forwarding channels.
It realizes multi-channel replication and forwarding of multicast data packets in ultra-low latency switching networks, reduces switching latency, and expands service types.
Smart Images

Figure CN119182744B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the communication technology field, in particular to a method and device for implementing three-layer forwarding of multicast data packets. BACKGROUND
[0002] At present, the financial securities industry has an increasing demand for high-frequency trading, and an explosive demand growth for an ultra-fast 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 an 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 present application aims to provide a method and device for implementing three-layer forwarding of multicast data packets, and realizes three-layer replication and forwarding of multicast data packets by the ultra-low latency switch.
[0005] To achieve the above-mentioned purpose, the present application provides a method for implementing three-layer forwarding of multicast data packets. A switching unit sets three-layer multicast forwarding information and three-layer multicast replication information set by a configuration unit as three-layer multicast hardware table entries of a multicast replication unit. The three-layer multicast forwarding table entry records one or more three-layer multicast member replication information corresponding to a multicast source IP address, a VLAN to which the multicast source belongs, and a multicast group IP address. The three-layer multicast member replication information records a member port and a member port VLAN thereof. The multicast replication unit splits the three-layer multicast hardware table entry into a channel forwarding information table entry and a channel multicast member replication table entry pointed by the channel forwarding information table entry. According to the forwarded three-layer multicast data packet, one or more channel three-layer multicast forwarding information table entries are found. One or more three-layer multicast member replication information is read from the channel multicast member replication table entry pointed by the found three-layer multicast forwarding information table entry. One copy of the replicated three-layer multicast data packet with the member port VLAN is sent through a first diversion port mapped by the member port. The switching unit receives the replicated three-layer multicast data packet through an internal forwarding port directly connected to the first diversion port. The replicated three-layer multicast data packet is sent through a member port corresponding to the internal forwarding port.
[0006] To achieve the above object, the application further provides a device for implementing three-layer forwarding of multicast data packets, which can be applied to an ultra-low latency switch, comprising a configuration unit configured to configure three-layer multicast forwarding information and three-layer multicast replication information on a switching unit; the three-layer multicast forwarding information records a multicast source IP address, a VLAN to which a multicast source belongs, and a multicast group IP address of a received multicast data packet; the three-layer multicast replication information records three-layer multicast member replication information of one or more multicast group members having joined the multicast group IP address; the three-layer multicast member replication information records a member port and a member port VLAN thereof; the switching unit is configured to provide a three-layer multicast hardware table item for a multicast replication unit; the three-layer multicast forwarding table item records one or more three-layer multicast member replication information corresponding to the multicast source IP address, the VLAN to which the multicast source belongs, and the multicast group IP address; the multicast replication unit splits the three-layer multicast hardware table item into a channel forwarding information table item and a channel multicast member replication table item pointed by the channel forwarding information table item; according to a forwarded three-layer multicast data packet, one or more channel three-layer multicast forwarding information table items are found; one or more three-layer multicast member replication information are read from the channel multicast member replication table item pointed by the found three-layer multicast forwarding information table item; one copy of the replicated three-layer multicast data packet with the member port VLAN is sent through a first diversion port mapped by the member port; the switching unit receives the replicated three-layer multicast data packet through an internal forwarding port directly connected to the first diversion port; and the replicated three-layer multicast data packet is sent through a member port corresponding to the internal forwarding port
[0007] The application has the beneficial effect of providing replication and forwarding of three-layer multicast packets with multiple forwarding channels for an ultra-low latency switch through a multicast replication unit, and expanding service types in an ultra-low latency switching network. BRIEF DESCRIPTION OF DRAWINGS
[0008] Figure 1 A flowchart of a method embodiment for implementing three-layer forwarding of multicast data packets is provided in the application;
[0009] Figure 2 A schematic diagram of querying three-layer multicast members is provided in the application embodiment;
[0010] Figure 3 A schematic diagram of setting software three-layer multicast member information is provided in the application embodiment;
[0011] Figure 4 A schematic diagram of triggering hardware three-layer multicast group members based on multicast data packets is provided in the application embodiment;
[0012] Figures 5a-5b A schematic diagram of setting a channel forwarding information table item and a channel multicast member replication table item is provided in the application embodiment;
[0013] Figure 6 Schematic diagram of forwarding a layer 3 multicast data packet provided in an embodiment of the present application;
[0014] Figure 7 A schematic diagram of an embodiment of a device for implementing layer-3 multicast data message forwarding provided in this application. DETAILED DESCRIPTION
[0015] The present invention will be described in detail with reference to a plurality of examples shown in the accompanying drawings. In the following detailed description, a number of specific details are provided to provide a comprehensive understanding of the present invention. Known methods, steps, components, and circuits are not described in detail in the examples to avoid obscuring the understanding of the examples.
[0016] Among the terms used, the term "including" means including but not limited to; the term "containing" means including but not limited to; the terms "above," "within," and "below" are inclusive; the terms "greater than" and "less than" are exclusive. The term "based on" means based on at least a portion.
[0017] Figure 1 FIG. 1 is a flow chart of an embodiment of a method for implementing Layer 3 forwarding of multicast data packets provided by the present application; the method includes the following steps:
[0018] Step 101: Setting a Layer 3 multicast hardware entry of a multicast replication unit based on Layer 3 multicast forwarding information and Layer 3 multicast replication information.
[0019] Step 102: Split the Layer 3 multicast hardware entry into a channel forwarding information entry and the channel multicast member replication entry it points to.
[0020] Step 103, searching multiple channel forwarding information tables according to the forwarded layer-3 multicast data message;
[0021] Step 104: Read the layer 3 multicast member replication information from the channel multicast member replication entry pointed to by the found layer 3 multicast forwarding information entry.
[0022] Step 105: Send the replicated Layer 3 multicast data message with the member port VLAN through the diversion port mapped by the member port in the Layer 3 multicast member replication information;
[0023] Step 106: The internal forwarding port directly connected to the traffic diversion port receives the duplicated Layer 3 multicast data message, and the member port corresponding to the internal forwarding port sends the duplicated Layer 3 multicast data message.
[0024] The beneficial effect of the present application is that the three-layer multicast hardware table entries are split according to the forwarding channels, so that the replication and forwarding of the three-layer multicast data are initiated simultaneously on different forwarding channels, thereby reducing the exchange delay of the three-layer multicast data packets.
[0025] like Figure 2 As shown, the present application adds a multicast replication unit to the ultra-low latency switch 2A, which is implemented by an FPGA chip 22; the switching unit of the ultra-low latency switch 2A is implemented by a switch chip 21, which receives protocol / data packets; and the multicast data packets after the FPGA chip 22 completes the multicast replication processing are sent through the member port.
[0026] In this application, forwarding ports p21-p40 of switch chip 21 are configured as internal forwarding ports and mapped to forwarding ports p1-p20 of switch chip 21. Forwarding ports p21-p40 of switch chip 21 are directly connected to ports C21-C40 of FPGA chip 22, respectively. Ports C21-C40 of FPGA chip 22 act as traffic diversion ports, transmitting protocol / data packets to and from the internal forwarding ports of switch chip 21.
[0027] The CPU23 software records the correspondence between the forwarding ports p1-p20 and the chip ports C21-C40 of the FPGA chip 22, records the VLAN (Virtual Local Area Network) to which the forwarding ports p1-p20 belong, and sets a port mapping table 22a on the FPGA chip 22 to record the mapping relationship between the chip ports C21-C40 and the forwarding ports p1-p20 in each VLAN.
[0028] Figure 2 In the example, the switch chip 21 receives the IGMP query message 201 through the port p20, and sends it to the port C40 of the directly connected FPGA chip 22 through the internal forwarding port p40.
[0029] The FPGA chip 22 caches the IGMP query message 201 , and copies a copy of the IGMP query message 201 to send to the CPU 23 .
[0030] The CPU 23 identifies the VLANs 1 to 4 to be forwarded, and notifies the FPGA chip 22 to send the data within the VLANs 1 to 4.
[0031] The FPGA chip 22 searches the port mapping table 22a to find ports p1 and p2 belonging to VLAN1; ports p3 and p4 belonging to VLAN2; ports p5 and p6 belonging to VLAN3; and ports p7 and p8 belonging to VLAN4.
[0032] The FPGA chip 22 sends the IGMP query message 2011 with VLAN1 through the diversion ports c21 and c22, and sends the IGMP query message 2012 with VLAN2 through the diversion ports c23 and c24; sends the IGMP query message 2013 with VLAN3 through the diversion ports c25 and c26, and sends the IGMP query message 2015 with VLAN4 through the diversion ports c27 and c28.
[0033] After receiving the IGMP query messages 2011-2014 through the internal forwarding ports p21-p28, the switch chip 21 sends the IGMP query messages 2011-2014 through the corresponding forwarding ports p1-p8.
[0034] Figure 3 A schematic diagram of setting software layer 3 multicast member information provided in an embodiment of the present application;
[0035] The switch chip 21 receives the IGMP report message 301 through the port p2 of VLAN1, and sends the IGMP message 301 and the VLAN1 to which it belongs through the internal forwarding port p22 corresponding to the receiving port P2.
[0036] The FPGA chip 22 receives the IGMP report message 301 through the port c22 and sends the received member port P2 and its member VLAN 1 to the processor 23.
[0037] Processor 23 does not find the software layer 3 multicast member information that matches the multicast group IP address G1 in the software layer 3 multicast member information table, and records software layer 3 multicast member information 23a: G1->(port2,VLAN1); wherein the multicast group IP address G1 of IGMP message 301 corresponds to the member port port2 and its member VLAN1 of IGMP report message 301.
[0038] The switch chip 21 receives the IGMP report message 302 through the port p3 of VLAN2, and sends the IGMP message 302 and the VLAN2 to which it belongs through the internal forwarding port p23 corresponding to the receiving port P3.
[0039] The FPGA chip 22 receives the IGMP report message 302 through the port c23 and sends the received member port P2 and its member VLAN2 to the processor 23.
[0040] Processor 23 searches the software layer 3 multicast member information table for the software layer 3 multicast member information 23a corresponding to the multicast group IP address G1 of IGMP message 302, and refreshes the software layer 3 multicast member information 23a: G1->(port2, VLAN1), (port3, VLAN2); wherein the software layer 3 multicast member information 23a records the member port port3 of IGMP report message 302 and its member VLAN2.
[0041] The switch chip 21 receives the IGMP report message 303 through the port p6 of VLAN3, and sends the IGMP message 303 and the VLAN3 to which it belongs through the internal forwarding port p26 corresponding to the receiving port P6.
[0042] The FPGA chip 22 receives the IGMP report message 303 through the port c26 and sends the received member port P6 and its member VLAN 6 to the processor 23.
[0043] Processor 23 searches the software layer 3 multicast member information table for the software layer 3 multicast member information 23a corresponding to the multicast group IP address G1 of IGMP message 303, and refreshes the software layer 3 multicast member information 23a: G1->(port2, VLAN1), (port3, VLAN2), (port6, VLAN3); wherein the software layer 3 multicast member information 23a records the member port port6 of IGMP report message 303 and its member VLAN3.
[0044] Figure 4 A schematic diagram of triggering hardware layer-3 multicast group membership based on multicast data packets provided in an embodiment of the present application.
[0045] The switch chip 21 receives the layer 3 multicast data message 401 through the forwarding port P19 and sends the layer 3 multicast data message 401 to the FPGA chip 22 through the internal forwarding port p39.
[0046] FPGA chip 22 searches the channel forwarding information table of channel 1 and channel 2 respectively according to the multicast source IP address S1, multicast source VLAN 1000 and multicast group IP address G1 of the three-layer multicast data message 401; no matching channel forwarding information table entry is found; caches the three-layer multicast data message 401, copies a three-layer multicast data message 4011, and sends a copy of the three-layer multicast data message 4011 as an unknown three-layer multicast data message to CPU23.
[0047] CPU 23 receives the unknown three-layer multicast data packet 4011, and based on the multicast source IP address S1, the multicast source VLAN 1000 and the multicast group IP address G1 of the three-layer multicast data packet 4011, finds the software three-layer multicast member information 23a.
[0048] The CPU 23 records the three-layer multicast software table item 23b: (S1, VLAN 1000, G1) -> (port2, VLAN1), (port3, VLAN2), (port6, VLAN3) in the software three-layer multicast table.
[0049] The CPU 23 sets the three-layer multicast forwarding information 21a: (S1, VLAN 1000, G1) in the multicast forwarding information table of the switching chip 21 according to the three-layer multicast software table item 23b, sets the three-layer multicast replication information 21b (port2, VLAN1), (port3, VLAN2), (port6, VLAN3) in the multicast replication table, and the three-layer multicast forwarding information 21a points to the three-layer multicast replication information 21b, that is, the hash value of S1, VLAN 1000 and G1 in the three-layer multicast forwarding information 21a points to the storage address of the three-layer multicast replication information 21b.
[0050] The switching chip 21 sets the three-layer multicast hardware table item 500: (S1, VLAN 1000, G1) -> (port2, VLAN1), (port3, VLAN2), (port6, VLAN3) in the three-layer multicast hardware table 22a of the FPGA chip 22 according to the three-layer multicast forwarding information 21a and the three-layer multicast replication information 21b, and records a member port and its member port VLAN respectively in the three-layer multicast member replication information (port2, VLAN1), (port3, VLAN2), (port6, VLAN3).
[0051] Figures 5a-5b The setting channel forwarding information table item and channel multicast member replication table item provided by the embodiment of the application.
[0052] Figure 5a In the embodiment, the FPGA chip 22 splits the three-layer multicast hardware table item 550 into the channel forwarding information table item and the channel multicast member replication table item pointed by the channel forwarding information table item according to the channel where the member port is located, and records in the channel three-layer multicast forwarding table 22b.
[0053] FPGA chip 22 identifies member port port 2 of the three-layer multicast member replication information (port2, VLAN1) in the first forwarding channel; sets a channel three-layer multicast forwarding information entry 5011 in the channel forwarding information table 501 of the first forwarding channel to record (S1, VLAN1000, G1); sets a channel multicast member replication entry 5012 in the channel forwarding information table 501 of the first forwarding channel to record the three-layer multicast member replication information (port2, VLAN1); the three-layer multicast forwarding information entry 5011 points to the channel multicast member replication entry 5012; that is, the hash value calculated by S1, VLAN1000, and G1 of the three-layer multicast forwarding information entry 5011 points to the storage address of the channel multicast member replication entry 5012.
[0054] FPGA chip 22 identifies the member port port 3 of the three-layer multicast member replication information (port3, VLAN2) in the first forwarding channel; records the three-layer multicast member replication information (port2, VLAN1) and (port3, VLAN2) in the channel multicast member replication table entry 5012; thus, the three-layer multicast forwarding information table entry 5011 points to the three-layer multicast member replication information (port2, VLAN1) and (port3, VLAN2) in the channel multicast member replication table entry 5012.
[0055] FPGA chip 22 identifies member port port 6 of the three-layer multicast member replication information (port6, VLAN3) in the second forwarding channel; sets channel three-layer multicast forwarding information table entry 5021 in the channel forwarding information table 502 of the second forwarding channel to record (S1, VLAN1000, G1); sets channel multicast member replication table entry 5022 in the channel forwarding information table 502 of the second forwarding channel to record the three-layer multicast member replication information (port6, VLAN3); the three-layer multicast forwarding information table entry 5021 points to the channel multicast member replication table entry 5022.
[0056] In the embodiments of this application, two forwarding channels, each containing four forwarding ports, are used as an example; that is, the first forwarding channel includes forwarding ports p1-p4, and the second forwarding channel includes forwarding ports p5-p8. The ultra-low-latency switching switch can set the number of forwarding channels and the number of forwarding ports for each forwarding channel based on the layout of the forwarding ports and the service scenario. The implementation methods disclosed in the embodiments of this application can be used to split the Layer 3 multicast forwarding information table entries and channel multicast member replication table entries for each forwarding channel.
[0057] After the FGPA chip 22 completes splitting the Layer 3 multicast forwarding information entries and the channel multicast member replication entries of each forwarding channel, it clears the Layer 3 multicast hardware entry 500, as shown in FIG5A.
[0058] Figure 6 A schematic diagram of forwarding a layer 3 multicast data message provided in an embodiment of the present application.
[0059] FPGA chip 22 forwards the cached layer 3 multicast data message 401 and searches channel forwarding information tables 501 and 502 simultaneously based on layer 3 multicast data message 401 ; matching channel layer 3 multicast forwarding information table entries 5011 and 5021 are found.
[0060] The FPGA chip 22 reads the layer-3 multicast member replication information (port2, VLAN1) and (port3, VLAN2) from the channel multicast member replication entry 5012 pointed to by the found layer-3 multicast forwarding information entry 5011.
[0061] FPGA chip 22 sends a copy of the three-layer multicast data message 4012 with VLAN1 through the diversion port c22 mapped by the member port port2; sends a copy of the three-layer multicast data message 4013 with VLAN2 through the diversion port c23 mapped by the member port port3; and sends a copy of the three-layer multicast data message 4014 with VLAN3 through the diversion port c26 mapped by the member port port6.
[0062] The switching chip 23 receives the copied three-layer multicast data packets 4012, 4013, and 4014 respectively through the internal forwarding ports P22, P23, and P26 directly connected to the diversion ports C22, C23, and C26; and sends the copied three-layer multicast data packets 4012, 4013, and 4014 through the member ports P2, P3, and P6 corresponding to the internal forwarding ports P22, P23, and P26.
[0063] Subsequently, the FPGA chip 22 receives the three-layer multicast data message 401 received by the switching unit 21 through the diversion port c39, and searches the channel forwarding information table 501 and 502 in the channel three-layer multicast forwarding table 22b at the same time; Figure 6 The implementation shown is forwarded. When new multicast members join, CPU23 Figure 3 、 4 The embodiment shown sets the three-layer multicast forwarding information 21a and the three-layer multicast replication information 21b; the switching chip 21 resets the three-layer multicast hardware table; the FPGA chip 22 Figures 5a-5b The channel forwarding information table entries of each forwarding channel and the channel multicast member replication entries pointed to by the split channel are copied to complete the refresh of these entries.
[0064] Figure 7This is a schematic diagram of an embodiment of a device for implementing Layer 3 multicast data packet forwarding provided by the present application. The device 70 includes a network interface, a processor 71, a memory 72, a switching unit 73, and a multicast replication unit 74. The processor 71 executes the processor-executable instructions in the memory 72 to execute the control unit 721 and the configuration unit 722.
[0065] The configuration unit 722 is used to configure the three-layer multicast forwarding information and the three-layer multicast replication information on the switching unit 73; the three-layer multicast forwarding information records the multicast source IP address, the VLAN to which the multicast source belongs, and the multicast group IP address of the received multicast data message; the three-layer multicast replication information records the three-layer multicast member replication information of more than one multicast group member that has joined the multicast group IP address; the three-layer multicast member replication information records a member port and its member port VLAN; the switching unit 73 is used for the three-layer multicast hardware table entry of the multicast replication unit 74; the three-layer multicast forwarding table entry records the multicast source IP address, the VLAN to which the multicast source belongs, and the more than one three-layer multicast member replication information corresponding to the multicast group IP address; the multicast The replication unit 74 splits the three-layer multicast hardware table entry into the channel forwarding information table entry and the channel multicast member replication table entry to which it points; searches for multiple channel forwarding information tables according to the forwarded three-layer multicast data message; finds one or more matching channel three-layer multicast forwarding information table entries, and reads one or more three-layer multicast member replication information from the channel multicast member replication table entry pointed to by the found three-layer multicast forwarding information table entry; sends a replicated three-layer multicast data message with the member port VLAN through the first diversion port mapped by the member port; the switching unit 73 receives the replicated three-layer multicast data message through the internal forwarding port directly connected to the first diversion port; and sends the replicated three-layer multicast data message through the member port corresponding to the internal forwarding port.
[0066] The multicast replication unit 74 is used to identify the forwarding channel where the member port of the three-layer multicast member replication information is located; set a channel three-layer multicast forwarding information table item in the channel forwarding information table of the identified forwarding channel to record the multicast source IP address, the VLAN to which the multicast source belongs, and the multicast group IP address; set a channel multicast member replication table item in the channel replication information table of the identified forwarding channel to record the three-layer multicast member replication information; the three-layer multicast forwarding information table item points to the channel multicast member replication table item, and splits the three-layer multicast hardware table item into the channel forwarding information table item and the channel multicast member replication table item it points to.
[0067] The multicast replication unit 74 sends the received Internet Group Management Protocol IGMP query message to the control unit 721; obtains one or more designated VLANs from the control unit 721 for broadcasting the IGMP query message; sends an IGMP query message through the second diversion port mapped by the forwarding port of one or more designated VLANs; the switching unit 73 receives the IGMP query message through the internal forwarding port directly connected to the second diversion port; and sends the IGMP query message through the forwarding port of one or more designated VLANs.
[0068] The control unit 721 maintains software layer 3 multicast member information according to Internet Group Management Protocol IGMP report messages. The software layer 3 multicast member information records the multicast group IP address carried in the IGMP report message, corresponding to the receiving member port and its VLAN of the IGMP report message.
[0069] The multicast replication unit 74 sends the unknown three-layer multicast data message to the control unit 721; the control unit 721 matches the software three-layer multicast member information based on the multicast group IP address of the unknown three-layer multicast data message; generates a three-layer multicast software table entry based on the software three-layer multicast member information; the three-layer multicast software table entry records the multicast source IP address, multicast source VLAN and the receiving member port and VLAN of the IGMP report message corresponding to the multicast group IP address of the unknown three-layer multicast data message; the configuration unit 722 sets new three-layer multicast forwarding information and new three-layer multicast replication information on the switching unit 73 according to the three-layer multicast software table entry; the new three-layer multicast forwarding information includes the multicast source IP address, multicast source VLAN and multicast group IP address of the unknown three-layer multicast data message; the new three-layer multicast replication information includes the receiving member port and VLAN of the IGMP report message.
[0070] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.
Claims
1. A method for implementing Layer 3 forwarding of multicast data packets, characterized in that: The method comprises, The switching unit sets the Layer 3 multicast forwarding information and the Layer 3 multicast replication information set by the configuration unit as a Layer 3 multicast hardware entry of the multicast replication unit; the Layer 3 multicast hardware entry records the multicast source IP address, the VLAN to which the multicast source belongs, and one or more Layer 3 multicast member replication information corresponding to the multicast group IP address; the Layer 3 multicast member replication information records a member port belonging to the switching unit and its member port VLAN; Identifying, by the multicast replication unit, a forwarding channel where the member port of the layer-3 multicast member replication information is located, splitting the layer-3 multicast hardware entry into a channel forwarding information entry and a channel multicast member replication entry to which it points; and searching multiple channel forwarding information tables according to the forwarded layer-3 multicast data message; Find one or more matching channel layer 3 multicast forwarding information entries, read one or more layer 3 multicast member replication information from the channel multicast member replication entry pointed to by the found channel layer 3 multicast forwarding information entry; send a replicated layer 3 multicast data message with the member port VLAN through the first diversion port of the multicast replication unit mapped to the member port; The switching unit receives the replicated Layer 3 multicast data message through an internal forwarding port directly connected to the first diversion port; and sends the replicated Layer 3 multicast data message through the member port corresponding to the internal forwarding port.
2. The method according to claim 1, characterized in that The multicast replication unit splits the layer 3 multicast hardware entry into a channel forwarding information entry and a channel multicast member replication entry to which the entry points, including: By the multicast replication unit, setting the channel three-layer multicast forwarding information table entry in the channel forwarding information table of the identified forwarding channel to record the multicast source IP address, the VLAN to which the multicast source belongs, and the multicast group IP address; The channel multicast member replication table entry is set in the channel replication information table of the identified forwarding channel to record the layer-3 multicast member replication information; the layer-3 multicast forwarding information table entry points to the channel multicast member replication table entry.
3. The method according to claim 1, characterized in that The method further comprises, The multicast replication unit sends the received Internet Group Management Protocol (IGMP) query message to the control unit; obtains one or more designated VLANs from the control unit for broadcasting the IGMP query message; and sends a copy of the IGMP query message to the second diversion port of the multicast replication unit mapped to the forwarding port of the one or more designated VLANs of the switching unit; The switching unit receives the IGMP query message through an internal forwarding port directly connected to the second traffic diversion port; and sends the IGMP query message through one or more forwarding ports of the designated VLAN.
4. The method according to claim 1, wherein The method further comprises, Maintaining software layer 3 multicast member information based on Internet Group Management Protocol (IGMP) report messages through the control unit; The software layer 3 multicast member information records the multicast group IP address carried in the IGMP report message, corresponding to the receiving member port of the IGMP report message belonging to the switching unit and its VLAN.
5. The method according to claim 4, characterized in that The method further comprises, Sending the unknown layer-3 multicast data message to the control unit through the multicast replication unit; Matching, by the control unit, the software layer 3 multicast member information based on the multicast group IP address of the unknown layer 3 multicast data packet; Generate a Layer 3 multicast software table entry based on the software Layer 3 multicast member information; the Layer 3 multicast software table entry records the multicast source IP address and multicast source VLAN of the unknown Layer 3 multicast data message, and the receiving member port and VLAN of the IGMP report message corresponding to the multicast group IP address; Through the configuration unit, new three-layer multicast forwarding information and new three-layer multicast replication information are set on the switching unit according to the three-layer multicast software table entry; the new three-layer multicast forwarding information includes the multicast source IP address, multicast source VLAN and multicast group IP address of the unknown three-layer multicast data message; the new three-layer multicast replication information includes the receiving member port and its VLAN of the IGMP report message.
6. A device for implementing Layer 3 forwarding of multicast data packets, characterized in that: The device comprises, A configuration unit is configured to configure Layer 3 multicast forwarding information and Layer 3 multicast replication information on the switching unit; the Layer 3 multicast forwarding information records the multicast source IP address, the VLAN to which the multicast source belongs, and the multicast group IP address of the received multicast data packet; the Layer 3 multicast replication information records the Layer 3 multicast member replication information of one or more multicast group members that have joined the multicast group IP address; the Layer 3 multicast member replication information records a member port belonging to the switching unit and its member port VLAN; The switching unit is used for a three-layer multicast hardware table entry of the multicast replication unit; the three-layer multicast hardware table entry records the multicast source IP address, the VLAN to which the multicast source belongs, and the replication information of one or more three-layer multicast members corresponding to the multicast group IP address; The multicast replication unit identifies the forwarding channel where the member port of the three-layer multicast member replication information is located, splits the three-layer multicast hardware table entry into a channel forwarding information table entry and a channel multicast member replication table entry pointed to by the three-layer multicast data packet; searches multiple channel forwarding information tables according to the forwarded three-layer multicast data packet; Find one or more matching channel layer 3 multicast forwarding information entries, read one or more layer 3 multicast member replication information from the channel multicast member replication entry pointed to by the found channel layer 3 multicast forwarding information entry; send a replicated layer 3 multicast data message with the member port VLAN through the first diversion port of the multicast replication unit mapped to the member port; The switching unit receives the replicated Layer 3 multicast data message through an internal forwarding port directly connected to the first diversion port; and sends the replicated Layer 3 multicast data message through the member port corresponding to the internal forwarding port.
7. The device according to claim 6, characterized in that The multicast replication unit is configured to set the channel layer 3 multicast forwarding information entry in the channel forwarding information table of the identified forwarding channel to record the multicast source IP address, the VLAN to which the multicast source belongs, and the multicast group IP address; The channel multicast member replication table entry is set in the channel replication information table of the identified forwarding channel to record the three-layer multicast member replication information; the three-layer multicast forwarding information table entry points to the channel multicast member replication table entry, and the three-layer multicast hardware table entry is split into the channel forwarding information table entry and the channel multicast member replication table entry it points to.
8. The device according to claim 6, characterized in that The multicast replication unit sends the received Internet Group Management Protocol (IGMP) query message to the control unit; obtains one or more designated VLANs from the control unit for broadcasting the IGMP query message; and sends a copy of the IGMP query message to the second diversion port of the multicast replication unit mapped to the forwarding port of the one or more designated VLANs of the switching unit; The switching unit receives the IGMP query message through an internal forwarding port directly connected to the second traffic diversion port; and sends the IGMP query message through one or more forwarding ports of the designated VLAN.
9. The device according to claim 6, characterized in that The control unit maintains software layer 3 multicast member information according to the Internet Group Management Protocol IGMP report message; wherein the software layer 3 multicast member information records the multicast group IP address carried by the IGMP report message corresponding to the receiving member port and VLAN belonging to the switching unit of the IGMP report message.
10. The device according to claim 9, characterized in that The device further comprises, The multicast replication unit sends the unknown layer-3 multicast data message to the control unit; The control unit matches the software layer 3 multicast member information based on the multicast group IP address of the unknown layer 3 multicast data packet; Generate a Layer 3 multicast software table entry based on the software Layer 3 multicast member information; the Layer 3 multicast software table entry records the multicast source IP address and multicast source VLAN of the unknown Layer 3 multicast data message, and the receiving member port and VLAN of the IGMP report message corresponding to the multicast group IP address; The configuration unit sets new three-layer multicast forwarding information and new three-layer multicast replication information on the switching unit according to the three-layer multicast software table entry; the new three-layer multicast forwarding information includes the multicast source IP address, multicast source VLAN and multicast group IP address of the unknown three-layer multicast data message; the new three-layer multicast replication information includes the receiving member port and its VLAN of the IGMP report message.
Citation Information
Patent Citations
Method and device for forwarding message
CN106375219A
Multicast vlan copying method, device and equipment
CN118264608A