A method, apparatus, device, and storage medium for adding components.
By sending the VLAN information of the multicast source to all devices in a redundant network topology, the identity of the multicast source is identified and multicast information is generated, which solves the problem of excessive group joining time caused by multicast source election and improves network communication efficiency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- 北京东土军悦科技有限公司
- Filing Date
- 2023-06-09
- Publication Date
- 2026-05-26
AI Technical Summary
In a dual-redundant network topology, the multicast source election process leads to excessively long multicast regrouping time, affecting network communication efficiency.
By sending broadcast messages containing the VLAN information of the multicast source to devices in the redundant loop, all devices can identify the multicast source and generate and transmit multicast information for group joining operations.
It reduces the time required for multicast regrouping, improves grouping efficiency, and avoids delays in the multicast source election process.
Smart Images

Figure CN116633849B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of network communication technology, and in particular to a grouping method, apparatus, device and storage medium. Background Technology
[0002] Figure 1 This is a schematic diagram of a dual-redundant network topology in existing technology. For example... Figure 1 As shown, a dual-redundant network topology includes 10 switches (SW1 to SW10) and one network management server (IP address 192.168.1.233). Switch SW1 is connected to the network management server, and the 10 switches form a large redundant loop using the DT-RING protocol. Each switch's four ports are divided into two aggregated port-channel 1 and port-channel 2. Between two switches, aggregated port 1 of one switch is connected to aggregated port 2 of the other, forming a small loop. Figure 1 In this context, PtCh1 represents port-channel1. Figure 1 In this context, PtCh2 represents port-channel 2. All switches from SW1 to SW10 are configured with 10 network segments from VLAN 1 to VLAN 10, with IP addresses planned as 192.168.1.1 / 24-192.168.10.10 / 24. Among them, SW1 and SW10 are configured with Layer 3 multicast pim-sm, and all other switches are configured with Layer 2 multicast snooping. SW1 is configured with primary DT-RING, and the other switches are configured with backup DT-RING.
[0003] When any single switch or link in a dual-redundant network topology fails, the DT-RING protocol can quickly detect the fault information and re-determine the multicast source, thereby restoring normal network communication. In existing technologies, when an abnormal link exists, each switch does not know which device is the specific multicast source, requiring a re-election of the multicast source. After determining the multicast source, the multicast information transmission path is then re-determined, resulting in wasted time. For example, in the dual-redundant network topology mentioned above, since Layer 3 multicast PIM-SM is only configured on SW1 and SW10, when an abnormal link exists, SW1 and SW10 will re-elect the multicast source. Only after the multicast source election is complete can an available broadcast path be determined, leading to a longer multicast group joining time. Summary of the Invention
[0004] This invention provides a method, apparatus, device, and storage medium for adding multicast groups, thereby reducing multicast regrouping time and improving grouping efficiency when re-determining multicast sources in a dual-redundant network topology.
[0005] According to one aspect of the present invention, a grouping method is provided for use in a redundant loop, the redundant loop comprising: a multicast source and at least three devices, wherein the multicast source is configured with Layer 3 multicast, at least one device is configured with Layer 3 multicast, and the remaining devices are configured with Layer 2 multicast, the grouping method being executed by the multicast source, the grouping method comprising:
[0006] A broadcast message is sent to a neighboring device so that the neighboring device, upon receiving the broadcast message, forwards the broadcast message to other devices in the redundant loop. The broadcast message includes: VLAN information of the multicast source.
[0007] Receive a group join request sent by the target device based on the VLAN information of the multicast source, and generate multicast information based on the group join request;
[0008] Multicast information is sent to the target device so that the target device can perform a group joining operation based on the multicast information.
[0009] According to another aspect of the present invention, a grouping method is provided for use in a redundant loop, the redundant loop comprising: a multicast source and at least three devices, wherein the multicast source is configured with Layer 3 multicast, at least one device is configured with Layer 3 multicast, and the remaining devices are configured with Layer 2 multicast, the grouping method being executed by a target device, the grouping method comprising:
[0010] Receive broadcast information sent by neighboring devices, wherein the broadcast information includes: VLAN information of the multicast source;
[0011] The multicast source sends a group join request to the multicast source based on the multicast source's VLAN information, so that the multicast source generates multicast information based on the group join request;
[0012] Receive multicast information sent by the multicast source and perform group addition operations based on the multicast information sent by the multicast source.
[0013] According to another aspect of the present invention, a grouping device is provided, the device comprising:
[0014] The first sending module is used to send broadcast information to neighboring devices, so that after receiving the broadcast information, the neighboring devices will send the broadcast information to other devices in the redundant loop. The broadcast information includes: VLAN information of the multicast source.
[0015] The first receiving module is used to receive a group joining request sent by the target device based on the VLAN information of the multicast source, and to generate multicast information based on the group joining request;
[0016] The second sending module is used to send multicast information to the target device so that the target device can perform a group joining operation based on the multicast information.
[0017] According to another aspect of the present invention, a grouping device is provided, the device comprising:
[0018] The second receiving module is used to receive broadcast information sent by adjacent devices, wherein the broadcast information includes: VLAN information of the multicast source;
[0019] The third sending module is used to send a group joining request to the multicast source according to the VLAN information of the multicast source, so that the multicast source generates multicast information according to the group joining request;
[0020] The third receiving module is used to receive multicast information sent by the multicast source and perform grouping operations based on the multicast information sent by the multicast source.
[0021] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0022] At least one processor; and
[0023] A memory communicatively connected to the at least one processor; wherein,
[0024] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the grouping method described in any embodiment of the present invention.
[0025] According to another aspect of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium storing computer instructions for causing a processor to execute and implement the grouping method described in any embodiment of the present invention.
[0026] This invention, through its embodiments, sends broadcast information to neighboring devices. Upon receiving the broadcast information, these neighboring devices then forward it to other devices in the redundant loop. The broadcast information includes: VLAN information of the multicast source; a group joining request sent by the target device based on the VLAN information of the multicast source; multicast information generated based on the request; and the multicast information sent to the target device, enabling the target device to perform a group joining operation based on the multicast information. By using this invention's technical solution, the multicast source sends broadcast information including its VLAN information to all devices in the redundant loop before joining a group. This allows all devices in the redundant loop to clearly identify which device is the multicast source, eliminating the multicast source election time required in existing technologies. Furthermore, it reduces multicast regrouping time and improves group joining efficiency when re-determining the multicast source in a dual-redundant network topology.
[0027] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0028] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0029] Figure 1 This is a schematic diagram of a dual-redundant network topology in the prior art;
[0030] Figure 2 This is a flowchart of a grouping method in an embodiment of the present invention;
[0031] Figure 3 This is a schematic diagram of a dual-redundant network topology in which there is a blocking link between SW1 and SW10.
[0032] Figure 4 This is a schematic diagram of a dual-redundant network topology in which there is a blocking link between SW1 and SW2.
[0033] Figure 5 This is a flowchart of another grouping method in an embodiment of the present invention;
[0034] Figure 6 This is a schematic diagram of the structure of a grouping device in an embodiment of the present invention;
[0035] Figure 7 This is a schematic diagram of another grouping device in an embodiment of the present invention;
[0036] Figure 8 This is a schematic diagram of the structure of an electronic device that implements the grouping method of the present invention. Detailed Implementation
[0037] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0038] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0039] Example 1
[0040] Figure 2 This is a flowchart of a group-adding method according to an embodiment of the present invention. This embodiment is applicable to group-adding situations. The method can be executed by the group-adding device in this embodiment of the present invention. The device can be implemented in software and / or hardware, such as... Figure 2 As shown, the method specifically includes the following steps:
[0041] S101. Send a broadcast message to the adjacent device so that the adjacent device, after receiving the broadcast message, will send the broadcast message to other devices in the redundant loop.
[0042] The technical solution of this invention is applied to redundant loops. The redundant loop can be a loop formed by all switching devices in a dual-redundant network topology, for example... Figure 1 The redundant loop consists of SW1 to SW10. It includes a multicast source and at least three devices. It should be noted that the multicast source can be the switch device configured as the primary DT-RING in the redundant loop, for example... Figure 1 In SW1, the multicast source is configured with Layer 3 multicast PIM-SM, and at least one device in the redundant loop is configured with Layer 3 multicast PIM-SM, for example... Figure 1 SW10 in the list is a device that can be used to replace the original multicast source when the original multicast source fails to function properly. It should be noted that the devices in the redundant loop can be switching devices, and the other devices besides the multicast source are configured with Layer 2 multicast snooping, for example... Figure 1 SW1 can be configured for Layer 3 multicast, while SW2 through SW10 can be configured for Layer 2 multicast. SW10 can also be configured for Layer 3 multicast. The group joining method is executed by the multicast source.
[0043] It should be noted that adjacent devices can be switch devices adjacent to the multicast source in a redundant loop. For example, such as... Figure 1In the redundant loop shown, if SW1 is the multicast source, then the adjacent devices of the multicast source can be SW2 and SW10.
[0044] The broadcast information can be information emitted by a multicast source. The broadcast information includes the VLAN information of the multicast source.
[0045] Specifically, the multicast source sends broadcast information to devices adjacent to it in the redundant loop. Upon receiving the broadcast information, each adjacent device forwards it to other devices adjacent to it, until all devices in the redundant loop have received the broadcast information. The broadcast information includes the multicast source's VLAN information; that is, once all devices in the redundant loop receive the broadcast information, they can clearly identify which device is the multicast source in the loop. For example, such as... Figure 1 In the redundant loop shown, SW1 is the multicast source. The adjacent devices of the multicast source can be SW2 and SW10. SW1 sends broadcast information to SW2 and SW10. After receiving the broadcast information, SW2 and SW10 send the broadcast information to SW3 and SW9, and so on, until every device in the redundant loop receives the broadcast information and SW1 is identified as the multicast source in this redundant loop.
[0046] S102. Receive the group joining request sent by the target device based on the VLAN information of the multicast source, and generate multicast information based on the group joining request.
[0047] It should be noted that the target device can be a switch device in a redundant loop that is to be added to the multicast group.
[0048] Among them, a group joining request can be a request issued by the target device to join a multicast group.
[0049] In this embodiment, the multicast information may be information about the multicast group generated by the multicast source based on the group joining request sent by the target device. For example, the multicast information may include multicast group address information, etc.
[0050] Specifically, the multicast source receives a group join request sent by the target device based on the multicast source's VLAN information, and generates multicast information based on the group join request sent by the target device.
[0051] S103. Send the multicast information to the target device so that the target device can perform a group joining operation based on the multicast information.
[0052] Specifically, the multicast source sends multicast information to the target device, enabling the target device to join the multicast group based on the multicast information.
[0053] This invention, through its embodiments, sends broadcast information to neighboring devices. Upon receiving the broadcast information, these neighboring devices then forward it to other devices in the redundant loop. The broadcast information includes: VLAN information of the multicast source; a group joining request sent by the target device based on the VLAN information of the multicast source; multicast information generated based on the request; and the multicast information sent to the target device, enabling the target device to perform a group joining operation based on the multicast information. By using this invention's technical solution, the multicast source sends broadcast information including its VLAN information to all devices in the redundant loop before joining a group. This allows all devices in the redundant loop to clearly identify which device is the multicast source, eliminating the multicast source election time required in existing technologies. Furthermore, it reduces multicast regrouping time and improves group joining efficiency when re-determining the multicast source in a dual-redundant network topology.
[0054] Optionally, multicast information is sent to the target device so that the target device can join the group based on the multicast information, including:
[0055] The multicast routing table is queried based on the identification information of the target device carried in the group joining request to obtain the multicast information sending path.
[0056] For example, the identification information of the target device may be the name of the target device and / or the IP address of the target device, or other identifying information.
[0057] In this embodiment, the multicast routing table can be a table that records the interaction methods between each switch device in the redundant loop, as well as the path for sending messages between each switch device in the redundant loop. In actual operation, each switch device in the redundant loop stores a multicast routing table. For example, the records in the multicast routing table may include: SW1 and SW2 interact via VLAN1, SW2 and SW3 interact via VLAN2, SW3 and SW4 interact via VLAN3, ..., SW9 and SW10 interact via VLAN9, SW10 and SW1 interact via VLAN10, each device uses a different network connection, and the path for sending messages between each switch device in the redundant loop may be, for example, SW1→SW2→SW3→SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1, etc.
[0058] Among them, the multicast information sending path can be the path through which the multicast source sends multicast information to the target device.
[0059] Specifically, the multicast source queries the multicast routing table based on the target device identification information carried in the received group join request to obtain the multicast information transmission path. For example, such as... Figure 1In the redundant loop shown, SW1 acts as the multicast source, and the target device is SW4. The identification information of the target device can be SW4 and / or SW4's IP address. After receiving the group join request from the target device SW4, the multicast source queries the multicast routing table based on the identification information of the target device SW4. The resulting multicast information transmission path can be SW1→SW2→SW3→SW4, or it can be SW1→SW10→SW9→SW8→SW7→SW6→SW5→SW4.
[0060] Multicast information is sent to the target device according to the multicast information sending path, so that the target device can perform a group joining operation based on the multicast information.
[0061] Specifically, the multicast source sends multicast information to the target device according to the multicast information transmission path, so that the target device can join the multicast group based on the multicast information. For example, multicast source SW1 sends multicast information to neighboring device SW2, SW2 sends multicast information to device SW3, SW3 sends multicast information to target device SW4, and target device SW4 joins the group based on the multicast information.
[0062] Optionally, the multicast routing table can be queried based on the target device's identification information to obtain the multicast information transmission path, including:
[0063] If an abnormal link is detected in the redundant loop, the multicast routing table is updated. The updated multicast routing table is queried based on the identification information of the target device to obtain the multicast information sending path with normal link status.
[0064] In this embodiment, the abnormal link can be a link in a redundant loop that is malfunctioning. Preferably, the abnormal link can be, for example, a blocked link. Figure 3 This is a schematic diagram of a dual-redundant network topology where there is a blocking link between SW1 and SW10, as shown below. Figure 3 As shown, the port-channel 1 connecting SW1's port-channel 2 and SW10 could be a blocking link, meaning that SW1 and SW10 cannot exchange information and cannot communicate; for example... Figure 4 This is a schematic diagram of a dual-redundant network topology where there is a blocking link between SW1 and SW2, as shown below. Figure 4 As shown, the port-channel 2 connecting SW1 and SW2 may be a blocked link, meaning that SW1 and SW2 cannot transmit information and cannot communicate.
[0065] Specifically, if the multicast source detects an abnormal link in the redundant loop, it updates the multicast routing table based on the connection status of each switch device in the redundant loop, resulting in an updated multicast routing table. For example... Figure 4 The abnormal link shown can be updated to SW1→SW10→SW9→SW8→SW7→SW6→SW5→SW4→SW3→SW2, and this link is now in a normal state. The multicast source queries the updated multicast routing table based on the target device identification information carried in the received group join request to obtain the multicast information transmission path with a normal link status.
[0066] Optionally, multicast information is sent to the target device so that the target device can join the group based on the multicast information, including:
[0067] Determine the path for sending the group addition request to the target device.
[0068] It should be noted that the path for sending a group join request can be the path taken by the target device when sending the group join request to the multicast source.
[0069] Specifically, determine the group join request sending path when the target device sends a group join request to the multicast source. For example, such as... Figure 1 In the redundant loop shown, SW1 is the multicast source and the target device is SW4. When the target device SW4 sends a group join request to the multicast source SW1, the group join request sending path can be SW4→SW3→SW2→SW1, and the group join request sending path can also be SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1.
[0070] The multicast information sending path is determined based on the group joining request sending path.
[0071] Specifically, the reverse process of the group join request sending path can be directly determined as the multicast information sending path. That is, if the group join request sending path is SW4→SW3→SW2→SW1, then the multicast information sending path can be SW1→SW2→SW3→SW4.
[0072] Multicast information is sent to the target device according to the multicast information sending path, so that the target device can perform a group joining operation based on the multicast information.
[0073] Specifically, the multicast source sends the multicast information to the target device according to the multicast information sending path, so that the target device can join the multicast group based on the multicast information.
[0074] Optionally, determine the group joining request sending path for the target device, including:
[0075] If an abnormal link is detected in the redundant loop, the transmission path that does not contain the abnormal link is determined as the path for sending the group addition request.
[0076] For example, such as Figure 1In the redundant loop shown, SW1 acts as the multicast source, and the target device is SW4. The identification information of the target device can be SW4 and / or SW4's IP address. After receiving the group join request from the target device SW4, if the multicast source detects an abnormal link in the redundant loop, such as an abnormal link between SW1 and SW10, it can determine the transmission path SW4→SW3→SW2→SW1, which does not contain the abnormal link, as the group join request sending path.
[0077] The multicast information transmission path is determined based on the group join request transmission path, including:
[0078] Use the reverse process of the group request sending path as the multicast information sending path.
[0079] For example, the reverse process of the group join request sending path can be directly determined as the multicast information sending path. That is, when the transmission path SW4→SW3→SW2→SW1 without abnormal links is used as the group join request sending path, the multicast information sending path can be SW1→SW2→SW3→SW4.
[0080] Optionally, determine the group joining request sending path for the target device, including:
[0081] Obtain at least two paths between the target device and the multicast source, determine the shortest path from the at least two paths, and if no abnormal link is detected in the shortest path, use the shortest path as the path to send the group join request.
[0082] For example, such as Figure 1 In the redundant loop shown, SW1 serves as the multicast source, and SW4 is the target device. The paths between the target device and the multicast source can include: SW4→SW3→SW2→SW1 and SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1. It can be seen that SW4→SW3→SW2→SW1 is the shortest path among these two. When no abnormal link is detected in the shortest path SW4→SW3→SW2→SW1, the shortest path SW4→SW3→SW2→SW1 can be directly used as the path for sending group join requests.
[0083] If an abnormal link is detected in the shortest path, then any one or more paths outside the shortest path will be used as the path for sending the group addition request.
[0084] For example, in the above example, if an abnormal link is detected in the shortest path SW4→SW3→SW2→SW1, any one or more paths other than the shortest path can be used as the path for sending the group request. For example, the path SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1 can be used as the path for sending the group request.
[0085] Determining the multicast information transmission path based on the group join request transmission path includes: using the reverse process of the group join request transmission path as the multicast information transmission path.
[0086] For example, if the shortest transmission path SW4→SW3→SW2→SW1 is the group join request sending path, the multicast information sending path can be SW1→SW2→SW3→SW4; if the path SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1 is the group join request sending path, the multicast information sending path can be SW1→SW10→SW9→SW8→SW7→SW6→SW5→SW4.
[0087] The above implementation methods are several ways to determine the multicast information transmission path. By implementing the above implementation methods, it can be ensured that the multicast information can be sent to the target device so that the target device can join the group, avoiding the problem that the multicast information cannot reach the target device due to link abnormalities.
[0088] The technical solution of this invention involves sending broadcast information to neighboring devices, enabling these devices to forward the broadcast information to other devices in a redundant loop upon receipt. The broadcast information includes: VLAN information of the multicast source; a group joining request sent by the target device based on the VLAN information of the multicast source; and multicast information generated based on the group joining request. If an abnormal link is detected in the redundant loop, the multicast routing table is updated. The updated multicast routing table is queried based on the identifier information of the target device to obtain a multicast information transmission path with a normal link status. If an abnormal link is detected in the redundant loop, then... The transmission path without abnormal links is used as the group joining request sending path, and the reverse process of the group joining request sending path is used as the multicast information sending path. At least two paths between the target device and the multicast source are obtained, and the shortest path is determined from these at least two paths. If no abnormal link is detected in the shortest path, the shortest path is used as the group joining request sending path. If an abnormal link is detected in the shortest path, any one or more paths other than the shortest path are used as the group joining request sending path. Multicast information is sent to the target device according to the multicast information sending path, so that the target device can perform a group joining operation based on the multicast information. Through the technical solution of this invention, before joining a group, the multicast source first sends broadcast information including the VLAN information of the multicast source to all devices in the redundant loop. This allows all devices in the redundant loop to clearly identify which device is the multicast source in this redundant loop, saving the time of multicast source election in the prior art. When re-determining the multicast source in a dual-redundant network topology, it reduces the multicast re-joining time and improves joining efficiency.
[0089] Example 2
[0090] Figure 5 This is a flowchart of another grouping method in an embodiment of the present invention. This embodiment is applicable to grouping situations. This method can be executed by the grouping device in the embodiment of the present invention. The device can be implemented in software and / or hardware, such as... Figure 5 As shown, the method specifically includes the following steps:
[0091] S201, Receive broadcast information sent by neighboring devices.
[0092] The broadcast information includes: VLAN information of the multicast source.
[0093] The technical solution of this invention is applied to redundant loops. The redundant loop can be a loop formed by all switching devices in a dual-redundant network topology, for example... Figure 1 The redundant loop consists of SW1 to SW10. It includes a multicast source and at least three devices. It should be noted that the multicast source can be the switch device configured as the primary DT-RING in the redundant loop, for example... Figure 1 In SW1, the multicast source is configured with Layer 3 multicast PIM-SM, and at least one device in the redundant loop is configured with Layer 3 multicast PIM-SM, for example... Figure 1 SW10 in the list is a device that can be used to replace the original multicast source when the original multicast source fails to function properly. It should be noted that the devices in the redundant loop can be switching devices, and the other devices besides the multicast source are configured with Layer 2 multicast snooping, for example... Figure 1 SW1 can be configured for Layer 3 multicast, while SW2 through SW10 can be configured for Layer 2 multicast. SW10 can also be configured for Layer 3 multicast. Joining a multicast group is done by the target device to be added to the multicast.
[0094] Specifically, devices in the redundant loop receive broadcast information sent by neighboring devices. These neighboring devices include multicast sources. The broadcast information includes the VLAN information of the multicast sources.
[0095] In practice, when the target device's neighboring device is a multicast source, the target device directly receives broadcast information sent by the multicast source. For example, such as... Figure 1 In the redundant loop shown, SW1 acts as the multicast source, and SW2 directly receives broadcast information sent by the multicast source SW1. When the target device's neighboring device is not a multicast source, the target device receives broadcast information sent by its neighboring device. The neighboring device then receives broadcast information sent by other devices adjacent to the target device, and so on, until a neighboring device becomes the multicast source. The broadcast information includes the multicast source's VLAN information; that is, once all devices in the redundant loop receive the broadcast information sent by the multicast source, they can clearly identify which device in the redundant loop is the specific multicast source.
[0096] For example, such as Figure 1 In the redundant loop shown, SW1 acts as the multicast source. When device SW4 is selected, the broadcast information received by SW4 can originate from SW3, the broadcast information received by SW3 can originate from SW2, and the broadcast information received by SW2 can originate directly from the multicast source SW1. This continues until every device in the redundant loop receives the broadcast information, thus confirming SW1 as the multicast source in the redundant loop.
[0097] S202. Send the group joining request to the multicast source according to the VLAN information of the multicast source, so that the multicast source can generate multicast information according to the group joining request.
[0098] Specifically, devices in the redundant loop send group join requests to the multicast source based on the multicast source's VLAN information, so that the multicast source generates multicast information based on the group join requests. For example, the process of a target device sending a group join request to the multicast source can be the reverse process of the target device receiving broadcast information; that is, the target device can send the group join request to neighboring devices, which in turn send the group join request to other devices adjacent to the connected device, until the group join request is sent to the multicast source.
[0099] S203. Receive multicast information sent by the multicast source and perform group addition operation according to the multicast information sent by the multicast source.
[0100] Specifically, devices in the redundant loop receive multicast information from the multicast source and join the multicast group based on the multicast information sent by the multicast source.
[0101] This invention, through its embodiments, receives broadcast information sent by neighboring devices. This broadcast information includes the VLAN information of the multicast source. A grouping request is sent to the multicast source based on the VLAN information, causing the multicast source to generate multicast information. The device then receives the multicast information from the multicast source and performs a grouping operation based on it. By using this invention, all devices in the redundant loop receive broadcast information including the VLAN information of the multicast source before grouping. This allows all devices in the redundant loop to clearly identify which device is the multicast source, eliminating the multicast source election time required in existing technologies. Furthermore, it reduces the multicast regrouping time and improves grouping efficiency when re-determining the multicast source in a dual-redundant network topology.
[0102] Optionally, the group join request is sent to the multicast source based on the multicast source's VLAN information, so that the multicast source generates multicast information based on the group join request, including:
[0103] The multicast routing table is queried based on the VLAN information of the multicast source to obtain the path for sending the group joining request.
[0104] Specifically, each switch in the redundant loop stores a multicast routing table. Devices in the redundant loop query the multicast routing table based on the VLAN information of the multicast source to obtain the path for sending the group join request. For example, such as... Figure 1 In the redundant loop shown, SW1 acts as the multicast source. When device SW4 sends a group join request to SW1, it can query the multicast routing table stored in SW4 based on the VLAN information of the multicast source to obtain the group join request sending path. For example, the group join request sending path when device SW4 sends a group join request to multicast source SW1 can be SW4→SW3→SW2→SW1, or it can be SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1.
[0105] The group join request is sent to the multicast source according to the group join request sending path, so that the multicast source can generate multicast information based on the group join request.
[0106] Specifically, the devices in the redundant loop send the group request to the multicast source according to the group request sending path, so that the multicast source can generate multicast information based on the group request.
[0107] Optionally, the group joining request carries the target device's identification information; the multicast information received from the multicast source includes:
[0108] Receive multicast information sent by the multicast source through the multicast information sending path. The multicast information sending path is obtained by the multicast source by querying the multicast routing table based on the identification information.
[0109] Specifically, the device receives multicast information sent by a multicast source through a multicast information transmission path. This multicast information transmission path is obtained by the multicast source by querying the multicast routing table based on its identification information. For example, such as... Figure 1 In the redundant loop shown, SW1 acts as the multicast source, and SW4 is the target device. The target device's identification information can be SW4 and / or its IP address. After receiving a group join request from the target device SW4, the multicast source queries the multicast routing table based on SW4's identification information. The resulting multicast information transmission path can be either SW1→SW2→SW3→SW4 or SW1→SW10→SW9→SW8→SW7→SW6→SW5→SW4. The multicast source sends the multicast information to the target device through this path, and the target device receives the multicast information sent by the multicast source through the same path.
[0110] Optionally, the multicast information received from the multicast source includes:
[0111] Receive multicast information sent by the multicast source through the multicast information sending path. The multicast information sending path is obtained by the multicast source in reverse process of the target device's group joining request sending path.
[0112] Specifically, the target device receives multicast information sent by the multicast source through a multicast information transmission path. This multicast information transmission path is obtained by the multicast source through the reverse process of the target device's group join request transmission path. For example, such as... Figure 1 In the redundant loop shown, SW1 acts as the multicast source, and SW4 is the target device. The identification information of the target device can be SW4 and / or its IP address. The group join request sending path for the target device SW4 could be, for example, SW4→SW3→SW2→SW1. The reverse process of the group join request sending path for the target device SW4 is SW1→SW2→SW3→SW4. The multicast information sending path for the multicast source SW1 can be SW1→SW2→SW3→SW4. The device receives the multicast information sent by the multicast source through the multicast information sending path SW1→SW2→SW3→SW4.
[0113] Optionally, the group request can be sent via the shortest path obtained after querying the multicast routing table.
[0114] Specifically, when the target device sends a group join request to the multicast source, it can first query the multicast routing table to obtain the shortest path among the paths from the device to the multicast source, and then send the group join request to the multicast source through the shortest path. For example, such as... Figure 1 In the redundant loop shown, SW1 acts as the multicast source, and the target device is SW4. The identification information of the target device can be SW4 and / or SW4's IP address. After querying the multicast routing table, it is found that there are two paths for the target device SW4 to send a group join request to the multicast source SW1: SW4→SW3→SW2→SW1 and SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1. It can be seen that SW4→SW3→SW2→SW1 is the shortest of the two paths. Therefore, SW4→SW3→SW2→SW1 can be the path for the target device SW4 to send the group join request to the multicast source SW1.
[0115] Optionally, before querying the multicast routing table based on the VLAN information of the multicast source to obtain the path for sending the group join request, the following steps are also included:
[0116] A multicast routing table is generated based on the link status of redundant loops.
[0117] It should be noted that the link status of a redundant loop can be the link status when all the switching devices in the redundant loop form a loop. For example, the link status of a redundant loop can include: a normal state and a state where there are abnormal links in the redundant loop.
[0118] In this embodiment, the multicast routing table can be a table that records the interaction methods between each switch device in the redundant loop, as well as the path for sending messages between each switch device in the redundant loop. In actual operation, each switch device in the redundant loop stores a multicast routing table. For example, the records in the multicast routing table may include: SW1 and SW2 interact via VLAN 1, SW2 and SW3 interact via VLAN 2, SW3 and SW4 interact via VLAN 3, ..., SW9 and SW10 interact via VLAN 9, SW10 and SW1 interact via VLAN 10, each device uses a different network connection, and when the link status of the redundant loop is normal, the path for sending messages between each switch device in the redundant loop could be, for example, SW1→SW2→SW3→SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1, etc.
[0119] Specifically, devices in the redundant loop generate multicast routing tables based on the link status of the redundant loop and save the generated multicast routing tables.
[0120] If an abnormal link is detected in the redundant loop, the multicast routing table is updated according to the abnormal link.
[0121] Specifically, devices in the redundant loop can monitor the link status of the redundant loop in real time. When an abnormal link is detected in the redundant loop, the multicast routing table is updated according to the abnormal link. For example, when the link status of the redundant loop was normal, the path for sending messages between each switch device in the redundant loop stored in the generated multicast routing table could be SW1→SW2→SW3→SW4→SW5→SW6→SW7→SW8→SW9→SW10→SW1. When an abnormal link is detected, for example, between SW1 and SW2, the multicast routing table updated according to the abnormal link could be SW1→SW10→SW9→SW8→SW7→SW6→SW5→SW4→SW3→SW2.
[0122] The technical solution of this invention involves receiving broadcast information sent by neighboring devices. The broadcast information includes: VLAN information of the multicast source; generating a multicast routing table based on the link status of the redundant loop; updating the multicast routing table based on the abnormal link if an abnormal link is detected in the redundant loop; querying the multicast routing table based on the VLAN information of the multicast source to obtain the group joining request sending path; sending the group joining request to the multicast source according to the group joining request sending path, so that the multicast source generates multicast information based on the group joining request. The group joining request carries the identification information of the target device. The system also receives multicast information sent by the multicast source through the multicast information sending path, which is obtained by the multicast source querying the multicast routing table based on the identification information; and performs a group joining operation based on the multicast information sent by the multicast source through the multicast information sending path, which is obtained by the multicast source through the reverse process of the target device's group joining request sending path. The technical solution of this invention allows all devices in the redundant loop to receive broadcast information including the VLAN information of the multicast source before grouping. This enables all devices in the redundant loop to clearly identify which device is the multicast source in the redundant loop, saving the time of multicast source election in the prior art. When re-determining the multicast source in a dual-redundant network topology, it reduces the multicast regrouping time and improves grouping efficiency.
[0123] Example 3
[0124] Figure 6 This is a schematic diagram of a group-adding device according to an embodiment of the present invention. This embodiment is applicable to group-adding scenarios. The device can be implemented using software and / or hardware, and can be integrated into any device that provides group-adding functionality, such as... Figure 6 As shown, the grouping device specifically includes: a first transmitting module 301, a first receiving module 302, and a second transmitting module 303.
[0125] The first sending module 301 is used to send broadcast information to adjacent devices so that the adjacent devices, after receiving the broadcast information, will send the broadcast information to other devices in the redundant loop. The broadcast information includes: VLAN information of the multicast source.
[0126] The first receiving module 302 is used to receive a group joining request sent by the target device according to the VLAN information of the multicast source, and generate multicast information according to the group joining request;
[0127] The second sending module 303 is used to send multicast information to the target device so that the target device can perform a group joining operation based on the multicast information.
[0128] Optionally, the second transmitting module 303 includes:
[0129] The first query unit is used to query the multicast routing table based on the identification information of the target device carried in the group joining request, and obtain the multicast information sending path.
[0130] The first sending unit is used to send multicast information to the target device according to the multicast information sending path, so that the target device can perform a group joining operation according to the multicast information.
[0131] Optionally, the first query unit includes:
[0132] The query subunit is used to update the multicast routing table if an abnormal link is detected in the redundant loop. It queries the updated multicast routing table based on the identification information of the target device to obtain the multicast information transmission path with normal link status.
[0133] Optionally, the second transmitting module 303 includes:
[0134] The first determining unit is used to determine the group joining request sending path of the target device;
[0135] The second determining unit is used to determine the multicast information sending path based on the group joining request sending path;
[0136] The second sending unit is used to send multicast information to the target device according to the multicast information sending path, so that the target device can perform a group joining operation according to the multicast information.
[0137] Optionally, the first determining unit is specifically used for:
[0138] If an abnormal link is detected in the redundant loop, the transmission path that does not contain the abnormal link is determined as the path for sending the group addition request.
[0139] The second determining unit is specifically used for:
[0140] The reverse process of the group request sending path is used as the multicast information sending path.
[0141] Optionally, the first determining unit is specifically used for:
[0142] At least two paths between the target device and the multicast source are obtained, and the shortest path is determined from the at least two paths. When no abnormal link is detected in the shortest path, the shortest path is used as the path for sending the group join request.
[0143] If an abnormal link is detected in the shortest path, then any one or more paths outside the shortest path will be used as the path for sending the group request.
[0144] The above-mentioned products can perform the grouping method provided in any embodiment of the present invention, and have the corresponding functional modules and beneficial effects of performing the grouping method.
[0145] Example 4
[0146] Figure 7 This is a schematic diagram of another group-adding device in an embodiment of the present invention. This embodiment is applicable to group-adding situations. The device can be implemented using software and / or hardware, and can be integrated into any device that provides group-adding functionality, such as... Figure 7 As shown, the grouping device specifically includes: a second receiving module 401, a third transmitting module 402, and a third receiving module 403.
[0147] The second receiving module 401 is used to receive broadcast information sent by adjacent devices, wherein the broadcast information includes: VLAN information of the multicast source;
[0148] The third sending module 402 is used to send a group joining request to the multicast source according to the VLAN information of the multicast source, so that the multicast source generates multicast information according to the group joining request;
[0149] The third receiving module 403 is used to receive multicast information sent by the multicast source and perform grouping operations based on the multicast information sent by the multicast source.
[0150] Optionally, the third sending module 402 includes:
[0151] The second query unit is used to query the multicast routing table based on the VLAN information of the multicast source to obtain the path for sending the group joining request;
[0152] The third sending unit is used to send the group joining request to the multicast source according to the group joining request sending path, so that the multicast source generates multicast information according to the group joining request.
[0153] Optionally, the group joining request carries the identification information of the target device; the third receiving module 403 includes:
[0154] The first receiving unit is configured to receive the multicast information sent by the multicast source through the multicast information sending path, wherein the multicast information sending path is obtained by the multicast source by querying the multicast routing table based on the identification information.
[0155] Optionally, the third receiving module 403 includes:
[0156] The second receiving unit is used to receive the multicast information sent by the multicast source through the multicast information sending path, wherein the multicast information sending path is obtained by the multicast source according to the reverse process of the target device's group joining request sending path.
[0157] Optionally, the path for sending the group request is the shortest path among the paths obtained after querying the multicast routing table.
[0158] Optionally, the grouping device further includes:
[0159] The generation unit is used to generate a multicast routing table based on the link status of the redundant loop before querying the multicast routing table according to the VLAN information of the multicast source to obtain the group joining request sending path.
[0160] The update unit is used to update the multicast routing table according to the abnormal link if an abnormal link is detected in the redundant loop before querying the multicast routing table according to the VLAN information of the multicast source to obtain the group joining request sending path.
[0161] The above-mentioned products can perform the grouping method provided in any embodiment of the present invention, and have the corresponding functional modules and beneficial effects of performing the grouping method.
[0162] Example 5
[0163] Figure 8 A schematic diagram of an electronic device 50 that can be used to implement embodiments of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0164] like Figure 8 As shown, the electronic device 50 includes at least one processor 51 and a memory, such as a read-only memory (ROM) 52 and a random access memory (RAM) 53, communicatively connected to the at least one processor 51. The memory stores computer programs executable by the at least one processor. The processor 51 can perform various appropriate actions and processes based on the computer program stored in the ROM 52 or loaded into the RAM 53 from storage unit 58. The RAM 53 can also store various programs and data required for the operation of the electronic device 50. The processor 51, ROM 52, and RAM 53 are interconnected via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0165] Multiple components in electronic device 50 are connected to I / O interface 55, including: input unit 56, such as keyboard, mouse, etc.; output unit 57, such as various types of monitors, speakers, etc.; storage unit 58, such as disk, optical disk, etc.; and communication unit 59, such as network card, modem, wireless transceiver, etc. Communication unit 59 allows electronic device 50 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0166] Processor 51 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 51 performs the various methods and processes described above, such as data transfer methods.
[0167] In some embodiments, the data transfer method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 50 via ROM 52 and / or communication unit 59. When the computer program is loaded into RAM 53 and executed by processor 51, one or more steps of the data transfer method described above may be performed. Alternatively, in other embodiments, processor 51 may be configured to perform the data transfer method by any other suitable means (e.g., by means of firmware).
[0168] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0169] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0170] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0171] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0172] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0173] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0174] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0175] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for adding groups, characterized in that, This is applied to redundant loops, where the redundant loop is a loop formed by all switches in a dual-redundant network topology. The redundant loop includes a multicast source and at least three devices. The multicast source is configured with Layer 3 multicast, at least one device is configured with Layer 3 multicast, and the remaining devices are configured with Layer 2 multicast. The grouping method is executed by the multicast source, and the grouping method includes: A broadcast message is sent to a neighboring device so that the neighboring device, upon receiving the broadcast message, forwards the broadcast message to other devices in the redundant loop. The broadcast message includes: VLAN information of the multicast source. Receive a group join request sent by the target device based on the VLAN information of the multicast source, and generate multicast information based on the group join request; Multicast information is sent to the target device so that the target device can perform a group joining operation based on the multicast information; The process of sending multicast information to the target device, so that the target device can perform a group joining operation based on the multicast information, includes: The multicast routing table is queried based on the identification information of the target device carried in the group joining request to obtain the multicast information sending path; the multicast routing table is a table that records the interaction mode between each switch device in the redundant loop, as well as the path for sending messages between each switch device in the redundant loop. The multicast information is sent to the target device according to the multicast information sending path, so that the target device can perform a group joining operation based on the multicast information.
2. The method according to claim 1, characterized in that, The multicast routing table is queried based on the identification information of the target device to obtain the multicast information transmission path, including: If an abnormal link is detected in the redundant loop, the multicast routing table is updated, and the updated multicast routing table is queried according to the identification information of the target device to obtain the multicast information sending path with normal link status.
3. The method according to claim 1, characterized in that, Sending multicast information to the target device so that the target device can perform a group joining operation based on the multicast information includes: Determine the group join request sending path for the target device; Determine the multicast information sending path based on the group join request sending path; The multicast information is sent to the target device according to the multicast information sending path, so that the target device can perform a group joining operation based on the multicast information.
4. The method according to claim 3, characterized in that, Determining the group addition request sending path for the target device includes: If an abnormal link is detected in the redundant loop, the transmission path that does not contain the abnormal link is determined as the path for sending the group addition request. Determining the multicast information transmission path based on the group joining request transmission path includes: The reverse process of the group request sending path is used as the multicast information sending path.
5. The method according to claim 3, characterized in that, Determining the group addition request sending path for the target device includes: At least two paths between the target device and the multicast source are obtained, and the shortest path is determined from the at least two paths. When no abnormal link is detected in the shortest path, the shortest path is used as the path for sending the group join request. If an abnormal link is detected in the shortest path, then any one or more paths outside the shortest path will be used as the path for sending the group request. Determining the multicast information transmission path based on the group joining request transmission path includes: The reverse process of the group request sending path is used as the multicast information sending path.
6. A method for adding groups, characterized in that, This is applied to redundant loops, where the redundant loop is a loop formed by all switches in a dual-redundant network topology. The redundant loop includes a multicast source and at least three devices. The multicast source is configured with Layer 3 multicast, at least one device is configured with Layer 3 multicast, and the remaining devices are configured with Layer 2 multicast. The grouping method is executed by the target device, and the grouping method includes: Receive broadcast information sent by neighboring devices, wherein the broadcast information includes: VLAN information of the multicast source; The multicast source sends a group join request to the multicast source based on the multicast source's VLAN information, so that the multicast source generates multicast information based on the group join request; Receive multicast information sent by the multicast source and perform group addition operation according to the multicast information sent by the multicast source; Specifically, the process involves sending a group join request to the multicast source based on its VLAN information, so that the multicast source generates multicast information according to the request, including: The multicast routing table is queried based on the VLAN information of the multicast source to obtain the path for sending the group joining request; the multicast routing table is a table that records the interaction methods between each switch device in the redundant loop, as well as the path for sending messages between each switch device in the redundant loop. The group joining request is sent to the multicast source according to the group joining request sending path, so that the multicast source generates multicast information based on the group joining request.
7. The method according to claim 6, characterized in that, The group joining request carries the identification information of the target device; the multicast information received from the multicast source includes: The system receives the multicast information sent by the multicast source through the multicast information sending path, wherein the multicast information sending path is obtained by the multicast source by querying the multicast routing table based on the identification information.
8. The method according to claim 6, characterized in that, The multicast information received from the multicast source includes: The system receives the multicast information sent by the multicast source through a multicast information sending path, wherein the multicast information sending path is obtained by the multicast source in reverse process of the group joining request sending path of the target device.
9. The method according to claim 8, characterized in that, The path for sending the group request is the shortest path among the paths obtained after querying the multicast routing table.
10. The method according to any one of claims 6-9, characterized in that, Before querying the multicast routing table based on the VLAN information of the multicast source to obtain the path for sending the group joining request, the process also includes: Generate a multicast routing table based on the link status of redundant loops; If an abnormal link is detected in the redundant loop, the multicast routing table is updated according to the abnormal link.
11. A grouping device, characterized in that, include: The first sending module is used to send broadcast information to neighboring devices, so that after receiving the broadcast information, the neighboring devices will send the broadcast information to other devices in the redundant loop. The broadcast information includes: VLAN information of the multicast source. The first receiving module is used to receive a group joining request sent by the target device based on the VLAN information of the multicast source, and to generate multicast information based on the group joining request; The second sending module is used to send multicast information to the target device so that the target device can perform a group joining operation based on the multicast information; The second sending module includes: The first query unit is used to query the multicast routing table based on the identification information of the target device carried in the group joining request to obtain the multicast information sending path; the multicast routing table is a table that records the interaction mode between each switch device in the redundant loop, as well as the path for sending messages between each switch device in the redundant loop. The first sending unit is used to send multicast information to the target device according to the multicast information sending path, so that the target device can perform a group joining operation according to the multicast information.
12. A grouping device, characterized in that, include: The second receiving module is used to receive broadcast information sent by adjacent devices, wherein the broadcast information includes: VLAN information of the multicast source; The third sending module is used to send a group joining request to the multicast source according to the VLAN information of the multicast source, so that the multicast source generates multicast information according to the group joining request; The third receiving module is used to receive multicast information sent by the multicast source and perform group addition operations based on the multicast information sent by the multicast source. The third sending module includes: The second query unit is used to query the multicast routing table based on the VLAN information of the multicast source to obtain the path for sending the group joining request; the multicast routing table is a table that records the interaction methods between each switch device in the redundant loop, as well as the path for sending messages between each switch device in the redundant loop. The third sending unit is used to send the group joining request to the multicast source according to the group joining request sending path, so that the multicast source generates multicast information according to the group joining request.
13. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor to enable the at least one processor to perform the grouping method according to any one of claims 1-5 or 6-10.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the grouping method according to any one of claims 1-5 or 6-10.