Method and equipment for realizing three-layer forwarding of multicast data message
By setting up layer three multicast forwarding information and multicast replication information in ultra-low delay switches, splitting hardware table entries and using member port mapping, multi-forwarding channel replication and forwarding of multicast data packets is achieved, solving ultra-low The delay switch cannot effectively handle multicast data packets, which improves the service capabilities and delay performance of the switching network.
Patent Information
- Application Number
- CN202411216791.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2024-12-24
- Estimated Expiration
- 2044-08-30
AI Technical Summary
Ultra-low-latency switches only have one layer of forwarding function, and cannot effectively realize the replication and forwarding of multicast data packets, which limits their application in high-frequency trading systems.
By setting the three-layer multicast forwarding information and multicast replication information in the switching unit, splitting the multicast hardware table entry into the channel forwarding information table entry and the multicast member replication table entry, realizing the three-layer multicast data of multiple forwarding channels Message replication and forwarding, data transmission is carried out using member port mapping and internal forwarding ports.
It realizes multi-forwarding channel replication and forwarding of multicast data packets by ultra-low-latency switches, reduces switching delays, and expands the service types of ultra-low-latency switching networks.
Smart Images

Figure CN119182744A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to communication technology, and in particular to a method and device for ultra-low latency switching and forwarding, and specifically to a method and device for implementing layer-3 forwarding of multicast data messages. Background Art
[0002] At present, the financial securities industry has an increasingly strong demand for high-frequency trading, and there has been a spurt in demand for ultra-fast trading systems composed of ultra-low latency switches. It is under this demand background that ultra-low latency switches are born with advantages such as extremely low latency and extremely simple functions. Ultra-low latency switches have only one layer of forwarding function, which can achieve ultra-low latency forwarding.
[0003] In an ultra-low latency switching network, it is necessary to implement ultra-low latency switches to copy and forward multicast messages. Summary of the invention
[0004] The purpose of the present application is to provide a method and device for implementing layer-3 forwarding of multicast data packets, so as to realize layer-3 replication and forwarding of multicast data packets by an ultra-low latency switch.
[0005] To achieve the above-mentioned purpose, the present application provides a method for realizing three-layer forwarding of multicast data packets, wherein a switching unit sets the three-layer multicast forwarding information and the three-layer multicast replication information set by the configuration unit as the three-layer multicast hardware table item of the multicast replication unit; the three-layer multicast forwarding table item records the multicast source IP address, the VLAN to which the multicast source belongs, and more than one three-layer multicast member replication information corresponding to the multicast group IP address; the three-layer multicast member replication information records a member port and its member port VLAN; the multicast replication unit splits the three-layer multicast hardware table item into a channel forwarding information table item and the channel multicast pointed to by the multicast member replication table entry; searching for multiple channel forwarding information tables according to the forwarded layer-3 multicast data message; finding more than one matching channel layer-3 multicast forwarding information table entry, reading more than one layer-3 multicast member replication information from the channel multicast member replication table entry pointed to by the found layer-3 multicast forwarding information table entry; sending a replicated layer-3 multicast data message with the member port VLAN through the first diversion port mapped by the member port; the switching unit receives the replicated layer-3 multicast data message through the internal forwarding port directly connected to the first diversion port; sending the replicated layer-3 multicast data message through the member port corresponding to the internal forwarding port.
[0006] To achieve the above-mentioned purpose, the present application also provides a device for implementing layer-3 forwarding of multicast data packets, which can be applied to an ultra-low latency switch, the device comprising: a configuration unit, which is used to configure layer-3 multicast forwarding information and layer-3 multicast replication information on a 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 more than one multicast group member that has joined the multicast group IP address; the layer-3 multicast member replication information records a member port and its member port VLAN; the switching unit is used to provide a layer-3 multicast hardware table entry for the multicast replication unit; the layer-3 multicast forwarding table entry records the multicast source IP address, the VLAN to which the multicast source belongs, and the multicast group IP address P address corresponding to more than one three-layer multicast member replication information; the multicast replication unit splits the three-layer multicast hardware table item into a channel forwarding information table item and the channel multicast member replication table item it points to; searches for multiple channel forwarding information tables according to the forwarded three-layer multicast data message; finds more than one matching channel three-layer multicast forwarding information table item, and reads more than one three-layer multicast member replication information from the channel multicast member replication table item pointed to by the found three-layer multicast forwarding information table item; sends a copy of the three-layer multicast data message with the member port VLAN through the first diversion port mapped by the member port; the switching unit receives the copy of the three-layer multicast data message through the internal forwarding port directly connected to the first diversion port; sends the copy of the three-layer multicast data message through the member port corresponding to the internal forwarding port
[0007] The beneficial effect of the present application is to achieve the replication and forwarding of three-layer multicast messages with multiple forwarding channels for ultra-low latency switches through multicast replication units, thereby expanding the types of services within the ultra-low latency switching network. BRIEF DESCRIPTION OF THE DRAWINGS
[0008] Figure 1 A flowchart of an embodiment of a method for implementing layer 3 forwarding of multicast data packets provided by the present application;
[0009] Figure 2 A schematic diagram of querying layer 3 multicast members provided in an embodiment of the present application;
[0010] Figure 3 A schematic diagram of setting software layer 3 multicast member information provided in an embodiment of the present application;
[0011] Figure 4 A schematic diagram of triggering hardware layer 3 multicast group members based on multicast data packets provided in an embodiment of the present application;
[0012] Figure 5a-5b A schematic diagram of setting a channel forwarding information table entry and a channel multicast member replication table entry provided in an embodiment of the present application;
[0013] Figure 6 A schematic diagram of forwarding a layer 3 multicast data message 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 the present application. DETAILED DESCRIPTION
[0015] The present invention will be described in detail with multiple examples shown in multiple figures. In the following detailed description, multiple specific details are used to provide a comprehensive understanding of the present application. Known methods, steps, components and circuits are not described in detail in the examples to avoid making these examples difficult to understand.
[0016] Among the terms used, the term "include" means including but not limited to; the term "contain" means including but not limited to; the terms "above", "within" and "below" are inclusive of the number; the terms "greater than" and "less than" are exclusive of the number. The term "based on" means based on at least a part thereof.
[0017] Figure 1 The flowchart of an embodiment of a method for implementing layer 3 forwarding of multicast data packets provided by the present application is shown; the method comprises the following steps:
[0018] Step 101, based on the layer 3 multicast forwarding information and the layer 3 multicast replication information, setting the layer 3 multicast hardware entry of the multicast replication unit;
[0019] Step 102, splitting the layer 3 multicast hardware entry into a channel forwarding information entry and a channel multicast member replication entry to which it points;
[0020] Step 103, searching multiple channel forwarding information tables according to the forwarded layer-3 multicast data message;
[0021] Step 104, reading the layer 3 multicast member replication information from the channel multicast member replication table entry pointed to by the found layer 3 multicast forwarding information table entry;
[0022] Step 105, sending 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 replicated layer-3 multicast data message is received through the internal forwarding port directly connected to the traffic diversion port, and the replicated layer-3 multicast data message is sent through the member port corresponding to the internal forwarding port.
[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, and the multicast replication unit 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 the present application, the forwarding ports p21-p40 of the switch chip 21 are set as internal forwarding ports and mapped to the forwarding ports p1-p20 of the switch chip 21; the forwarding ports p21-p40 of the switch chip 21 are directly connected to the ports C21-C40 of the FPGA chip 22. The ports C21-C40 of the FPGA chip 22 are used as diversion ports to transmit protocol / data messages to the internal forwarding ports of the 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 in 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 makes a copy of the IGMP query message 201 and sends it to the CPU 23 .
[0030] The CPU 23 identifies the VLAN 1 - VLAN 4 to be forwarded, and notifies the FGPA chip 22 to send within the VLAN 1 - VLAN 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 of VLAN2; ports p5 and p6 of VLAN3; and ports p7 and p8 of VLAN4.
[0032] FPGA chip 22 sends the IGMP query message 2011 with VLAN1 through diversion ports c21 and c22, and sends the IGMP query message 2012 with VLAN2 through diversion ports c23 and c24; sends the IGMP query message 2013 with VLAN3 through diversion ports c25 and c26, and sends the IGMP query message 2015 with VLAN4 through diversion ports c27 and c28.
[0033] After receiving the above IGMP query messages 2011-2014 through the internal forwarding ports p21-p28, the switch chip 21 sends them 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 receiving port P2 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 VLAN1 to the processor 23 .
[0037] Processor 23 does not find the software layer 3 multicast member information matching the multicast group IP address G1 in the software layer 3 multicast member information table, and records the software layer 3 multicast member information 23a: G1->(port2,VLAN1); wherein the multicast group IP address G1 of the IGMP message 301 corresponds to the member port port2 of the IGMP report message 301 and its member VLAN1.
[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 receiving port P3 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 the 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 the 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 receiving port P6 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 VLAN6 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 the 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 the IGMP report message 303 and its member VLAN3.
[0044] Figure 4 A schematic diagram of triggering hardware layer-3 multicast group members 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 unknown layer-3 multicast data message 4011, and finds software layer-3 multicast member information 23a based on the multicast source IP address S1, multicast source VLAN 1000 and multicast group IP address G1 of the layer-3 multicast data message 4011.
[0048] CPU 23 records the layer 3 multicast software table entry 23b in the software layer 3 multicast table: (S1, VLAN 1000, G1)->(port 2, VLAN 1), (port 3, VLAN 2), (port 6, VLAN 3).
[0049] CPU23 sets the three-layer multicast forwarding information 21a in the multicast forwarding information table of the switching chip 21 according to the three-layer multicast software table entry 23b: (S1, VLAN1000, G1); sets the three-layer multicast replication information 21b (port2, VLAN1), (port3, VLAN2), (port6, VLAN3) in the multicast replication table; the three-layer multicast forwarding information 21a points to the three-layer multicast replication information 21b, that is, the hash value calculated by S1, VLAN1000, 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 a three-layer multicast hardware table entry 500 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: (S1, VLAN1000, G1)->(port2, VLAN1), (port3, VLAN2), (port6, VLAN3); three-layer multicast member replication information (port2, VLAN1), (port3, VLAN2), (port6, VLAN3); and records a member port and its member port VLAN respectively.
[0051] Figure 5a-5b A schematic diagram of setting channel forwarding information table entries and channel multicast member replication table entries provided in an embodiment of the present application.
[0052] Figure 5a In the embodiment, the FPGA chip 22 splits the layer-3 multicast hardware entry 550 into the channel forwarding information entry of each channel and the channel multicast member copy entry it points to according to the channel where the member port is located, and records them in the channel layer-3 multicast forwarding table 22b.
[0053] FPGA chip 22 identifies member port port 2 of layer 3 multicast member replication information (port2, VLAN1) in the first forwarding channel; sets channel layer 3 multicast forwarding information entry 5011 in the channel forwarding information table 501 of the first forwarding channel to record (S1, VLAN1000, G1); sets channel multicast member replication entry 5012 in the channel forwarding information table 501 of the first forwarding channel to record layer 3 multicast member replication information (port2, VLAN1); layer 3 multicast forwarding information entry 5011 points to channel multicast member replication entry 5012; that is, the hash value calculated by S1, VLAN1000, and G1 of layer 3 multicast forwarding information entry 5011 points to the storage address of channel multicast member replication entry 5012.
[0054] FPGA chip 22 identifies 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 layer 3 multicast member replication information (port6, VLAN3) in the second forwarding channel; sets channel layer 3 multicast forwarding information entry 5021 in the channel forwarding information table 502 of the second forwarding channel to record (S1, VLAN1000, G1); sets channel multicast member replication entry 5022 in the channel forwarding information table 502 of the second forwarding channel to record layer 3 multicast member replication information (port6, VLAN3); layer 3 multicast forwarding information entry 5021 points to channel multicast member replication entry 5022.
[0056] In the embodiment of the present application, two forwarding channels and each forwarding channel includes four forwarding ports 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 sets the number of forwarding channels and the number of forwarding ports of each forwarding channel according to the layout of the forwarding ports and the business scenario without restriction, and the three-layer multicast forwarding information table items and channel multicast member replication table items of each forwarding channel can be split based on the implementation method disclosed in the embodiment of the present application.
[0057] After the FGPA chip 22 completes splitting the layer-3 multicast forwarding information table entries and the channel multicast member replication table entries of each forwarding channel, the layer-3 multicast hardware table entry 500 is cleared, 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] The FPGA chip 22 performs forwarding for the cached layer 3 multicast data message 401, and searches the channel forwarding information tables 501 and 502 simultaneously according to the layer 3 multicast data message 401; and finds matching channel layer 3 multicast forwarding information table entries 5011 and 5021.
[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 replicated three-layer multicast data messages 4012, 4013, 4014 through the internal forwarding ports P22, P23, and P26 of the directly connected diversion ports C22, C23, and C26, respectively; and sends the replicated three-layer multicast data messages 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 layer 3 multicast data message 401 received by the switching unit 21 through the diversion port c39, and searches the channel forwarding information tables 501 and 502 in the channel layer 3 multicast forwarding table 22b at the same time; Figure 6 The implementation shown in the figure can be 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 Figure 5a-5b The channel forwarding information table entries of each forwarding channel and the channel multicast member replication table entries they point to are split to complete the refresh of these table entries.
[0064] Figure 7A schematic diagram of an embodiment of a device for implementing layer 3 multicast data message 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 a control unit 721 and a configuration unit 722 by running processor executable instructions in the memory 72.
[0065] Configuration unit 722 is used to configure three-layer multicast forwarding information and three-layer multicast replication information on 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 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 items into channel forwarding information table items and the channel multicast member replication table items pointed to by them; 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 items, and reads one or more three-layer multicast member replication information from the channel multicast member replication table items pointed to by the found three-layer multicast forwarding information table items; 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; wherein 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 its 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 the new three-layer multicast forwarding information and the 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 its 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 substitutions, 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 forwarding entry records the multicast source IP address, the VLAN to which the multicast source belongs, and more than one layer 3 multicast member replication information corresponding to the multicast group IP address; the layer 3 multicast member replication information records a member port and its member port VLAN; By means of the multicast replication unit, the three-layer multicast hardware table entry is split into a channel forwarding information table entry and a channel multicast member replication table entry pointed to by the multicast replication unit; multiple channel forwarding information tables are searched according to the forwarded three-layer multicast data message; Find one or more matching channel layer 3 multicast forwarding information table entries, read one or more layer 3 multicast member replication information from the channel multicast member replication table entries pointed to by the found layer 3 multicast forwarding information table entries; send a replicated layer 3 multicast data message with the member port VLAN through the first diversion port mapped by the member port; The internal forwarding port directly connected to the first diversion port receives the replicated layer-3 multicast data message through the switching unit; and the replicated layer-3 multicast data message is sent through the member port corresponding to the internal forwarding port.
2. The method according to claim 1, characterized in that The three-layer multicast hardware entry is split into a channel forwarding information entry and a channel multicast member replication entry pointed to by the multicast replication unit, including: Identify, by the multicast replication unit, a forwarding channel where the member port of the layer-3 multicast member replication information is located; Setting 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.
3. The method according to claim 1, characterized in that The method further comprises, The received Internet Group Management Protocol (IGMP) query message is sent to the control unit through the multicast replication unit; one or more designated VLANs are obtained from the control unit for broadcasting the IGMP query message; a copy of the IGMP query message is sent through the second diversion port mapped by the forwarding port of one or more designated VLANs; The internal forwarding port directly connected to the second diversion port receives the IGMP query message through the switching unit; and the IGMP query message is sent through the forwarding ports of one or more designated VLANs.
4. The method according to claim 1, characterized in that: The method further comprises, By means of the control unit, software layer 3 multicast member information is maintained according to Internet Group Management Protocol IGMP report messages; The software layer 3 multicast member information records that the multicast group IP address carried by the IGMP report message corresponds to the receiving member port and VLAN of the IGMP report message.
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; By means of the control unit, the software layer 3 multicast member information is matched based on the multicast group IP address of the unknown layer 3 multicast data message; Generate 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 of the unknown three-layer multicast data message, the multicast source VLAN, and the receiving member port and its VLAN of the multicast group IP address corresponding to the IGMP report message; 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, configured to configure layer 3 multicast forwarding information and layer 3 multicast replication information on a 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 message; the layer 3 multicast replication information records the layer 3 multicast member replication information of more than one multicast group member that has joined the multicast group IP address; the layer 3 multicast member replication information records a member port and its member port VLAN; The switching unit is used for a layer 3 multicast hardware table entry of a multicast replication unit; the layer 3 multicast forwarding table entry records the multicast source IP address, the VLAN to which the multicast source belongs, and the replication information of one or more layer 3 multicast members corresponding to the multicast group IP address; 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 to by the same; searches for multiple channel forwarding information tables according to the forwarded three-layer multicast data message; Find one or more matching channel layer 3 multicast forwarding information table entries, read one or more layer 3 multicast member replication information from the channel multicast member replication table entries pointed to by the found layer 3 multicast forwarding information table entries; send a replicated layer 3 multicast data message with the member port VLAN through the first diversion port mapped by 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 used to identify the forwarding channel where the member port of the three-layer multicast member replication information is located; set 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 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 through the second diversion port mapped by the forwarding port of one or more designated VLANs; 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 Internet Group Management Protocol IGMP report messages; wherein the software layer 3 multicast member information records the receiving member port and VLAN of the IGMP report message corresponding to the multicast group IP address carried by the IGMP report message.
10. The device according to claim 9, characterized in that The method 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 message; Generate 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 of the unknown three-layer multicast data message, the multicast source VLAN, and the receiving member port and its VLAN of the multicast group IP address corresponding to the IGMP report message; 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
Multicasting forwarding method on router and forwarding router thereof
CN101917351A
Method for forwarding multicast data message and provider edge
CN102025626A
Multicast message transmission method and device
CN104618247A
Method and device for forwarding message
CN106375219A
Message forwarding method and device
CN110445702A
