Method and device for using 5G wireless network as backup link under wired ring network

By employing VXLAN technology and RSTP protocol under a wired ring network, a large Layer 2 network was established and a switching network was formed, which solved the backup link problem of 5G wireless network under wired ring network, realized the link backup of 5G wireless network to wired ring network, and improved network redundancy and reliability.

CN117081986BActive Publication Date: 2026-05-29GUANGZHOU TONGKANG CHUANGZHI SOFTWARE CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GUANGZHOU TONGKANG CHUANGZHI SOFTWARE CO LTD
Filing Date
2022-08-09
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing technologies cannot effectively utilize 5G wireless networks as backup links in wired ring networks, and cannot meet the link backup requirements of industrial scenarios.

Method used

A large Layer 2 network is established using VXLAN technology, and a switching network is constructed based on the RSTP protocol. Through the switching network of 5G industrial gateway and wired ring network, a backup link is built between the 5G wireless network and PLC equipment and DCS system.

Benefits of technology

This technology enables the use of 5G wireless networks as backup links in wired ring networks, thereby improving network redundancy and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117081986B_ABST
    Figure CN117081986B_ABST
Patent Text Reader

Abstract

The application discloses a method and device for taking 5G wireless network as a backup link under a wired ring network. The method is based on industrial data communication networking, and establishes a VXLAN tunnel between each first 5G industrial gateway and a second 5G industrial gateway by adopting a VXLAN technology, and adds all LAN ports of each first 5G industrial gateway and interfaces corresponding to the VXLAN tunnel in a same bridging group, so that each first 5G industrial gateway and the wired ring network form a large two-layer network. Based on an RSTP protocol, each first 5G industrial gateway exchanges networking with the wired ring network through the large two-layer network, and builds a backup link of the 5G wireless network and each PLC device and each DCS system, so that the 5G wireless network can be taken as the backup link under the wired ring network, and the wired ring network can be backed up by the 5G wireless network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data transmission technology, and in particular to a method and apparatus for using a 5G wireless network as a backup link in a wired ring network. Background Technology

[0002] In recent years, with the continuous development of 5G wireless communication technology, there has been a demand for using 5G wireless networks as backup links in traditional industrial scenarios (wired ring networks).

[0003] Currently, the main technologies for implementing link backup are LACP (Link Aggregation Control Protocol) and VRRP (Virtual Router Redundancy Protocol). LACP, based on the IEEE 802.3ad standard, is a protocol for dynamic link aggregation. Devices running this protocol exchange link aggregation information via LACPDU (Link Aggregation Control Protocol Data Unit). After adding member interfaces to an LACP-mode Eth-Trunk, these interfaces will advertise their system priority, MAC address, interface priority, interface number, and operation key to the peer via LACPDU. Upon receiving this information, the peer compares it with the information stored in its own interfaces to select interfaces that can be aggregated. Both parties agree on which interfaces can become active interfaces, thus determining the active link. LACP supports Layer 2 and Layer 3 aggregation. VRRP adds a group of routers capable of acting as gateways to the backup group, forming a virtual router. The VRRP election mechanism determines which router undertakes the forwarding task, and hosts within the local area network only need to configure the virtual router as the default gateway. The VRRP protocol only supports link backup for Layer 3 NAT routers. Existing technologies can only achieve link aggregation or backup within the same network layer and type. However, wired ring networks are Layer 2 switching networks, while 5G wireless networks are Layer 3 routing networks. Existing technologies are not suitable for this scenario and cannot meet the requirement of using 5G wireless networks as backup links in a wired ring network. Summary of the Invention

[0004] To overcome the shortcomings of the prior art, the present invention provides a method and apparatus for using a 5G wireless network as a backup link in a wired ring network, which can realize the use of a 5G wireless network as a backup link in a wired ring network to perform link backup of the wired ring network.

[0005] To address the aforementioned technical problems, in a first aspect, an embodiment of the present invention provides a method for using a 5G wireless network as a backup link in a wired ring network, applicable to industrial data communication networks. The industrial data communication network includes several PLC devices, several DCS systems, several first 5G industrial gateways, second 5G industrial gateways, a wired ring network, and a 5G wireless network. Each PLC device is connected to the wired ring network through a first 5G industrial gateway, each DCS system is connected to the wired ring network, each first 5G industrial gateway is connected to the 5G wireless network, and the wired ring network is connected to the 5G wireless network through a second 5G industrial gateway.

[0006] The method includes:

[0007] Using VXLAN technology, VXLAN tunnels are established between each of the first 5G industrial gateways and the second 5G industrial gateways. All LAN ports of each of the first 5G industrial gateways and the interfaces that connect to the corresponding VXLAN tunnels are added to the same bridging group, so that each of the first 5G industrial gateways and the wired ring network form a large Layer 2 network.

[0008] Based on the RSTP protocol, each of the first 5G industrial gateways is connected to the wired ring network through the large Layer 2 network to establish a backup link between the 5G wireless network and each of the PLC devices and each of the DCS systems.

[0009] Furthermore, the step of adding all LAN ports of each first 5G industrial gateway and the interface corresponding to the VXLAN tunnel to the same bridging group, so that each first 5G industrial gateway and the wired ring network form a large Layer 2 network, specifically involves:

[0010] For each of the first 5G industrial gateways, the interface of the first 5G industrial gateway connecting to the VXLAN tunnel between it and the second 5G industrial gateway is used as the interface, and all LAN ports of the first 5G industrial gateway and the interface are added to the same bridging group, so that each of the first 5G industrial gateways and the wired ring network form a large Layer 2 network.

[0011] Furthermore, based on the RSTP protocol, each of the first 5G industrial gateways exchanges and networks with the wired ring network through the large Layer 2 network, establishing backup links between the 5G wireless network and each of the PLC devices and each of the DCS systems, specifically as follows:

[0012] For each of the first 5G industrial gateways, when the wired optical network of the first 5G industrial gateway is normal, configure the wired optical network port of the first 5G industrial gateway to enable RSTP service, set the priority of the wired optical network port of the first 5G industrial gateway, and enable the first 5G industrial gateway to exchange RST BPDU messages with the root switch in the wired ring network to change the port role of the wired optical network port of the first 5G industrial gateway to a root port and change the port state of the wired optical network port of the first 5G industrial gateway to a forwarding state.

[0013] The interface of the first 5G industrial gateway connecting to the VXLAN tunnel between it and the second 5G industrial gateway is used as the interface. The interface is configured to enable RSTP service and the priority of the interface is set so that the first 5G industrial gateway and the root switch can exchange RST BPDU messages to change the port role of the interface to an alternative port and change the port state of the interface to a blocked state.

[0014] All LAN ports of the first 5G industrial gateway connected to the PLC device are converted to edge ports, and all edge ports are configured to start the RST BPDU protection service.

[0015] When the wired optical network of the first 5G industrial gateway is abnormal, aging processing is performed to change the port status of the alternative port to the forwarding state, so as to establish a backup link between the 5G wireless network and each of the PLC devices and each of the DCS systems.

[0016] Furthermore, the wired optical network port of the first 5G industrial gateway and the docking interface have lower priorities than the wired optical network port of the root switch.

[0017] Furthermore, each of the PLC devices is connected to the wired ring network via a first 5G industrial gateway, each of the DCS systems is connected to the wired ring network, each of the first 5G industrial gateways is connected to the 5G wireless network, and the wired ring network is connected to the 5G wireless network via a second 5G industrial gateway, specifically:

[0018] Each PLC device is connected to a first 5G industrial gateway via a network cable, each first 5G industrial gateway is connected to the wired ring network via an optical fiber, each DCS system is connected to the wired ring network via an optical fiber, each first 5G industrial gateway is connected to the 5G wireless network, the wired ring network is connected to a second 5G industrial gateway via an optical fiber, and the second 5G industrial gateway is connected to the 5G wireless network.

[0019] Secondly, one embodiment of the present invention provides a device for using a 5G wireless network as a backup link in a wired ring network, suitable for industrial data communication networking. The industrial data communication network includes a plurality of PLC devices, a plurality of DCS systems, a plurality of first 5G industrial gateways, second 5G industrial gateways, a wired ring network, and a 5G wireless network. Each PLC device is connected to the wired ring network through a first 5G industrial gateway, each DCS system is connected to the wired ring network, each first 5G industrial gateway is connected to the 5G wireless network, and the wired ring network is connected to the 5G wireless network through a second 5G industrial gateway.

[0020] The device includes:

[0021] The large Layer 2 network construction module is used to establish VXLAN tunnels between each of the first 5G industrial gateways and the second 5G industrial gateways using VXLAN technology, and to add all LAN ports of each of the first 5G industrial gateways and the interfaces that connect to the corresponding VXLAN tunnels to the same bridging group, so that each of the first 5G industrial gateways and the wired ring network form a large Layer 2 network.

[0022] The backup link establishment module is used to enable each of the first 5G industrial gateways to exchange and network with the wired ring network through the large Layer 2 network based on the RSTP protocol, and to establish a backup link between the 5G wireless network and each of the PLC devices and each of the DCS systems.

[0023] Furthermore, the large Layer 2 network construction module is specifically used to, for each of the first 5G industrial gateways, use the interface of the first 5G industrial gateway that connects to the VXLAN tunnel between the first 5G industrial gateway and the second 5G industrial gateway as the interface, and add all the LAN ports of the first 5G industrial gateway and the interface to the same bridging group, so that each of the first 5G industrial gateways and the wired ring network form a large Layer 2 network.

[0024] Furthermore, the backup link establishment module is specifically used for:

[0025] For each of the first 5G industrial gateways, when the wired optical network of the first 5G industrial gateway is normal, configure the wired optical network port of the first 5G industrial gateway to enable RSTP service, set the priority of the wired optical network port of the first 5G industrial gateway, and enable the first 5G industrial gateway to exchange RST BPDU messages with the root switch in the wired ring network to change the port role of the wired optical network port of the first 5G industrial gateway to a root port and change the port state of the wired optical network port of the first 5G industrial gateway to a forwarding state.

[0026] The interface of the first 5G industrial gateway connecting to the VXLAN tunnel between it and the second 5G industrial gateway is used as the interface. The interface is configured to enable RSTP service and the priority of the interface is set so that the first 5G industrial gateway and the root switch can exchange RST BPDU messages to change the port role of the interface to an alternative port and change the port state of the interface to a blocked state.

[0027] All LAN ports of the first 5G industrial gateway connected to the PLC device are converted to edge ports, and all edge ports are configured to start the RST BPDU protection service.

[0028] When the wired optical network of the first 5G industrial gateway is abnormal, aging processing is performed to change the port status of the alternative port to the forwarding state, so as to establish a backup link between the 5G wireless network and each of the PLC devices and each of the DCS systems.

[0029] Furthermore, the wired optical network port of the first 5G industrial gateway and the docking interface have lower priorities than the wired optical network port of the root switch.

[0030] Furthermore, each of the PLC devices is connected to the wired ring network via a first 5G industrial gateway, each of the DCS systems is connected to the wired ring network, each of the first 5G industrial gateways is connected to the 5G wireless network, and the wired ring network is connected to the 5G wireless network via a second 5G industrial gateway. Specifically, each PLC device is connected to a first 5G industrial gateway via a network cable, each of the first 5G industrial gateways is connected to the wired ring network via an optical fiber, each of the DCS systems is connected to the wired ring network via an optical fiber, each of the first 5G industrial gateways is connected to the 5G wireless network, the wired ring network is connected to the second 5G industrial gateway via an optical fiber, and the second 5G industrial gateway is connected to the 5G wireless network.

[0031] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0032] This industrial data communication network is formed by connecting several PLC devices to a wired ring network via a first 5G industrial gateway, several DCS systems to the wired ring network, several first 5G industrial gateways to a 5G wireless network, and the wired ring network to a 5G wireless network via a second 5G industrial gateway. By employing VXLAN technology, VXLAN tunnels are established between each first 5G industrial gateway and the second 5G industrial gateway. All LAN ports of each first 5G industrial gateway and the interfaces connecting to the corresponding VXLAN tunnels are added to the same bridging group, enabling each first 5G industrial gateway and the wired ring network to form a large Layer 2 network. Based on the RSTP protocol, each first 5G industrial gateway exchanges with the wired ring network through the large Layer 2 network, establishing backup links between the 5G wireless network and each PLC device and DCS system. This allows the 5G wireless network to serve as a backup link within the wired ring network, providing link backup for the wired ring network. Attached Figure Description

[0033] Figure 1 This is a flowchart illustrating a method for using a 5G wireless network as a backup link in a wired ring network according to the first embodiment of the present invention.

[0034] Figure 2 This is a schematic diagram of the industrial data communication network structure exemplified in the first embodiment of the present invention;

[0035] Figure 3 This is a schematic diagram illustrating the structure of adding a 5G wireless network backup link in an industrial data communication network, as exemplified in the first embodiment of the present invention.

[0036] Figure 4 This is a data flow diagram of the interaction between the first 5G industrial gateway and the root switch in the first embodiment of the present invention.

[0037] Figure 5 This is a schematic diagram illustrating a wired optical network anomaly in the first 5G industrial gateway in an industrial data communication network as exemplified in the first embodiment of the present invention.

[0038] Figure 6 This is a schematic diagram illustrating the configuration of port roles and port statuses in an industrial data communication network, as exemplified in the first embodiment of the present invention.

[0039] Figure 7 This is a schematic diagram illustrating data exchange using a 5G wireless network backup link in an industrial data communication network, as exemplified in the first embodiment of the present invention.

[0040] Figure 8 This is a schematic diagram of a device in the second embodiment of the present invention that uses a 5G wireless network as a backup link in a wired ring network. Detailed Implementation

[0041] The technical solutions of this invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this invention, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.

[0042] It should be noted that the step numbers in this document are only for the convenience of explaining the specific embodiments and are not intended to limit the order in which the steps are executed. The method provided in this embodiment can be executed by relevant terminal devices, and the following description uses a processor as the execution subject.

[0043] like Figure 1-2 As shown, the first embodiment provides a method for using a 5G wireless network as a backup link in a wired ring network, applicable to industrial data communication networks. The industrial data communication network includes several PLC devices 101, several DCS systems 102, several first 5G industrial gateways 103, second 5G industrial gateways 104, a wired ring network 105, and a 5G wireless network 106. Each PLC device 101 is connected to the wired ring network 105 through a first 5G industrial gateway 103, each DCS system 102 is connected to the wired ring network 105, each first 5G industrial gateway 103 is connected to the 5G wireless network 106, and the wired ring network 105 is connected to the 5G wireless network 106 through a second 5G industrial gateway 104.

[0044] The method includes steps S1 to S2:

[0045] S1. Using VXLAN technology, establish VXLAN tunnels between each first 5G industrial gateway 103 and the second 5G industrial gateway 104, and add all LAN ports of each first 5G industrial gateway 103 and the interfaces connected to the corresponding VXLAN tunnels to the same bridging group, so that each first 5G industrial gateway 103 and the wired ring network 105 form a large Layer 2 network.

[0046] S2. Based on the RSTP protocol, each first 5G industrial gateway 103 is connected to the wired ring network 105 through a large Layer 2 network to form a network, and a backup link is established between the 5G wireless network 106 and each PLC device 101 and each DCS system 102.

[0047] In a preferred embodiment, each PLC device 101 is connected to a wired ring network 105 via a first 5G industrial gateway 103, each DCS system 102 is connected to the wired ring network 105, each first 5G industrial gateway 103 is connected to a 5G wireless network 106, and the wired ring network 105 is connected to the 5G wireless network 106 via a second 5G industrial gateway 104. Specifically, each PLC device 101 is connected to a first 5G industrial gateway 103 via a network cable, each first 5G industrial gateway 103 is connected to the wired ring network 105 via an optical fiber, each DCS system 102 is connected to the wired ring network 105 via an optical fiber, each first 5G industrial gateway 103 is connected to the 5G wireless network 106, the wired ring network 105 is connected to the second 5G industrial gateway 104 via an optical fiber, and the second 5G industrial gateway 104 is connected to the 5G wireless network 106.

[0048] As an example, such as Figure 2 As shown, in the industrial data communication network, each PLC device 101 is connected to a first 5G industrial gateway 103 via a network cable, each first 5G industrial gateway 103 is connected to a wired ring network 105 via an optical fiber, each DCS system 102 is connected to the wired ring network 105 via an optical fiber, each first 5G industrial gateway 103 is connected to a 5G wireless network 106, the wired ring network 105 is connected to a second 5G industrial gateway 104 via an optical fiber, and the second 5G industrial gateway 104 is connected to the 5G wireless network 106.

[0049] Based on the physical topology of the industrial data communication network, the first 5G industrial gateway 103 carrying PLC device 101 and DCS system 102 are directly connected to the wired ring network 105 via optical fiber. The 5G wireless network 106 needs to dial up to the 5G base station and then to the core network. The operator can only provide a three-layer routing network. The wireless access of the first 5G industrial gateway 103 and the second 5G industrial gateway 104 is in the three-layer switch routing network of the core network. The 5G wireless network 106 is networked through the edge MEC. IPs under the 5G wireless network 106 can access each other, but IPs under the 5G wireless network cannot directly access IPs under the wired ring network 105.

[0050] Based on industrial data communication networking, a method is applied to a wired ring network 105 using a 5G wireless network 106 as a backup link, namely:

[0051] In step S1, by using VXLAN technology, VXLAN tunnels are established between each first 5G industrial gateway 103 and the second 5G industrial gateway 104, resulting in VXLAN tunnels between each first 5G industrial gateway 103 and the second 5G industrial gateway 104. All LAN ports of each first 5G industrial gateway 103 and the interfaces connected to the corresponding VXLAN tunnels are added to the same bridging group, so that each first 5G industrial gateway 103 and the wired ring network 105 form a large Layer 2 network.

[0052] Understandably, in order to use the 5G wireless network 106 as a backup link, the DCS system 102 and the PLC device 101 must belong to the same subnet, and the 5G wireless network 106 must build a large Layer 2 network for backup. Therefore, VXLAN technology is adopted to form a large Layer 2 network by connecting each first 5G industrial gateway 103 with the wired ring network 105.

[0053] In step S2, based on the RSTP protocol, each first 5G industrial gateway 103 is connected to the wired ring network 105 via a large Layer 2 network to establish a backup link between the 5G wireless network 106 and each PLC device 101 and each DCS system 102. Thus, when the wired optical networks of all first 5G industrial gateways 103 are normal, the DCS system 102 accesses all PLC devices 101 through the wired ring network 105. When the wired optical networks of one or more first 5G industrial gateways 103 are abnormal, the DCS system 102 accesses the specified PLC device 101 through the 5G wireless network 106 (5G backup link).

[0054] Understandably, although Layer 2 interconnection is implemented for the 5G wireless network 106, the newly added redundant links in the large Layer 2 network will bring loop risks to the switching network, easily leading to problems such as broadcast storms and unstable MAC address tables. Therefore, it is necessary to use the first 5G industrial gateway 103 to implement RSTP protocol for switching and networking with the wired ring network 105, realizing functions such as address learning, frame forwarding / filtering, and loop prevention in the Layer 2 switching network. At this time, the second 5G industrial gateway 104, based on the RSTP protocol, switches the PLC device 101, which is disconnected from the wired optical network, to the wired ring network 105 via a 5G backup link.

[0055] This embodiment enables the use of 5G wireless network 106 as a backup link under wired ring network 105, and utilizes 5G wireless network 106 to perform link backup for wired ring network 105.

[0056] In a preferred embodiment, the step of adding all LAN ports and interfaces connecting to the corresponding VXLAN tunnels of each first 5G industrial gateway 103 to the same bridging group, so that each first 5G industrial gateway 103 and the wired ring network 105 form a large Layer 2 network, specifically involves: for each first 5G industrial gateway 103, using the interface of the first 5G industrial gateway 103 connecting to the VXLAN tunnel between it and the second 5G industrial gateway 104 as the interface, and adding all LAN ports and interfaces of the first 5G industrial gateway 103 to the same bridging group, so that each first 5G industrial gateway 103 and the wired ring network 105 form a large Layer 2 network.

[0057] As an example, the specific execution process of using VXLAN technology to form a large Layer 2 network from each of the first 5G industrial gateways 103 and the wired ring network 105 is as follows:

[0058] 1. Establish a VXLAN tunnel between the first 5G industrial gateway 103 and the second 5G industrial gateway 104. The tunnel interface is vxlan1. The operation command is as follows:

[0059] ip link add vxlan1 type vxlan id 1remote 172.10.1.100dstport 1701 deveth0;

[0060] 2. Add all LAN ports of the first 5G industrial gateway 103 and the VXLAN tunnel interface vxlan1 to the same bridging group, so that the first 5G industrial gateway 103 can access the second 5G industrial gateway 104 through the VXLAN tunnel. VXLAN technology is used here. VXLAN is based on IP networks and uses a Layer 2 VPN technology with "MAC in UDP" encapsulation. VXLAN implements an IP network based on 5G wireless connections, providing Layer 2 interconnection for each access point. This achieves communication between two Layer 2 networks connected via a Layer 3 network ("L2 over L3"). The operation commands are as follows:

[0061] brctl addlif br0 vxlan1;

[0062] 3. Repeat the above operation for the remaining first 5G industrial gateways 103 to realize that all first 5G industrial gateways 103 form a large Layer 2 network with the wired ring network 105 through VXLAN.

[0063] The final network structure is as follows Figure 3As shown, the upper-layer Layer 2 network is a backup link, while the lower-layer physical network remains unchanged. Thus, all first 5G industrial gateways 103 are connected to the second 5G industrial gateway 104 at Layer 2 via the 5G wireless network 106. The second 5G industrial gateway 104 is then connected to the wired ring network 105 at Layer 2, thereby achieving the Layer 2 connection effect between PLC device 101 and wired ring network 105 via the backup link of the 5G wireless network 106.

[0064] In a preferred embodiment, the step of establishing a backup link between the 5G wireless network 106 and each PLC device 101 and each DCS system 102 based on the RSTP protocol specifically involves: for each first 5G industrial gateway 103, when the wired optical network of the first 5G industrial gateway 103 is normal, configuring the wired optical network port of the first 5G industrial gateway 103 to enable RSTP service, setting the priority of the wired optical network port of the first 5G industrial gateway 103, and enabling the first 5G industrial gateway 103 to interact with the root switch in the wired ring network 105 via RST. The BPDU message is used to change the port role of the wired optical network port of the first 5G industrial gateway 103 to a root port and change the port status of the wired optical network port of the first 5G industrial gateway 103 to a forwarding state; the interface of the first 5G industrial gateway 103 connecting to the VXLAN tunnel between it and the second 5G industrial gateway 104 is designated as the docking interface, the docking interface is configured to enable RSTP service, the priority of the docking interface is set, and the first 5G industrial gateway 103 exchanges RST BPDU messages with the root switch to change the port role of the docking interface to a substitute port and change the port status of the docking interface to a blocked state; the port role of all LAN ports of the first 5G industrial gateway 103 connected to PLC device 101 is changed to edge port, and all edge ports are configured to start RST BPDU protection service; when the wired optical network of the first 5G industrial gateway 103 is abnormal, aging processing is performed to change the port status of the substitute port to a forwarding state, so as to establish a backup link between the 5G wireless network 106 and each PLC device 101 and each DCS system 102.

[0065] In a preferred embodiment, the wired optical network port and the interface of the first 5G industrial gateway 103 have lower priorities than the wired optical network port of the root switch.

[0066] Understandably, the RSTP protocol provides fast spanning tree convergence by assigning port roles and learning dynamic topology. There are six roles for ports: Disabled Port, Root Port, Designated Port, and Alternate Port, Backup Port, and Edge Port, which are added to support the fast features of RSTP.

[0067] This embodiment mainly uses replacement ports and edge ports to build backup links for the 5G wireless network 106.

[0068] As an example, based on the RSTP protocol, the specific execution process of establishing backup links between each first 5G industrial gateway 103 and the wired ring network 105 through a large Layer 2 network to build a 5G wireless network 106 and each PLC device 101 and each DCS system 102 is as follows:

[0069] 1. When the wired optical network of the first 5G industrial gateway 103 is normal, the wired optical network port of the first 5G industrial gateway 103 is used as the switching port first. The wired optical network port of the first 5G industrial gateway 103 is configured to enable RSTP service. The priority of the wired optical network port of the first 5G industrial gateway 103 is set to be lower than that of the wired optical network port of the root switch. This ensures that the first 5G industrial gateway 103 receives RST BPDU messages from the root switch in the wired ring network 105, and sends RST messages containing its own information to the root switch every Hello Time specified. Even when the first 5G industrial gateway 103 interacts with the root switch in the wired ring network 105, the root switch performs fast spanning tree calculation to obtain the spanning tree topology of the wired optical network, so as to convert the port role of the wired optical network port of the first 5G industrial gateway 103 to the root port and convert the port state of the wired optical network port of the first 5G industrial gateway 103 to the forwarding state.

[0070] 2. Use the interface of the VXLAN tunnel between the first 5G industrial gateway 103 and the second 5G industrial gateway 104 as the docking interface, configure the docking interface to enable RSTP service, set the priority of the docking interface, the priority of the docking interface is lower than the priority of the wired optical network port of the root switch, so that the first 5G industrial gateway 103 and the root switch exchange RST BPDU messages to change the port role of the docking interface to a substitute port and change the port status of the docking interface to a blocked state.

[0071] Therefore, the first 5G industrial gateway 103, acting as an RSTP switch, uses two different port roles to achieve redundancy. When the current path to the root bridge fails, the alternative port, acting as the root port, provides an alternative switchable path from a switch to the root bridge.

[0072] 3. Convert all LAN ports of the first 5G industrial gateway 103 connected to the PLC device 101 to edge ports, so that RSTP only forwards data to the edge ports and does not perform RSTP protocol exchange. Configure all edge ports to start the RST BPDU protection service. After the RST BPDU protection service is started, even if the edge port receives an RST BPDU message, it will not change the edge attribute and will directly discard the RST BPDU message.

[0073] 4. If the designated port does not receive an RST BPDU message from the root switch within 3 consecutive Hello Time periods, the first 5G industrial gateway 103 will consider that its link with the upstream root switch has failed. When the wired optical network of the first 5G industrial gateway 103 is abnormal, aging processing is performed to change the port status of the replacement port to the forwarding state in order to build a backup link between the 5G wireless network 106 and each PLC device 101 and each DCS system 102.

[0074] To more clearly illustrate the method provided in the first embodiment for using a 5G wireless network 106 as a backup link in a wired ring network 105, Figure 5-7 For example, the fiber optic cable between the first 5G industrial gateway 103 and the wired ring network 105 has been disconnected. The first 5G industrial gateway 103 has not received three consecutive RST BPDU messages from the root switch, so it changes the port status of the substitute port to the forwarding state. At this time, PLC node D uses the backup link to exchange data. The data exchange process is ①->②->③->④->⑤.

[0075] After the above configuration, when the wired optical network of the first 5G industrial gateway 103 is normal, its wired optical network port becomes the root port in the spanning tree election, and its port state is in forwarding mode, giving it priority in switching. The VXLAN port under the 5G wireless network 106 becomes the alternative port in the spanning tree election, and its port state is in blocking mode, at which time it does not forward. When the wired optical network of the first 5G industrial gateway 103 is abnormally disconnected, if the current root port of the first 5G industrial gateway 103 does not receive an RST BPDU message from the root switch after waiting for 3 consecutive Hello Time periods, it is considered that its link with the upstream switch has failed, the current root port is aged out, and the VXLAN port is enabled as the root port to officially participate in forwarding. When the wired optical network of the first 5G industrial gateway 103 is restored, the wired optical network port of the first 5G industrial gateway 103 re-elects itself as the root port by sending an RST BPDU message, thereby automatically restoring the main link. This enables the addition of a 5G wireless network 106 as a backup link in the Layer 2 wired ring network 105 scenario, and greatly reduces the convergence time and port switching process by using the Fast Spanning Tree Protocol (RSTP).

[0076] The method for using a 5G wireless network 106 as a backup link in a wired ring network 105, as provided in the first embodiment, has the following advantages:

[0077] 1. This method is not only applicable to 5G wireless network 106 communication scenarios, but also applicable to 4G, WIFI, LoRa and other network technologies as a second network link backup;

[0078] 2. This method uses redundant links in the switching network and employs the RSTP protocol as its implementation. It can also use spanning tree protocols such as RTP and MSTP, depending on the project environment.

[0079] 3. This method uses an additional 5G industrial gateway device for switching networking, or it can use VXLAN multicast or broadcast methods to enable each 5G industrial gateway to participate in the switching networking.

[0080] Based on the same inventive concept as the first embodiment, the second embodiment provides as follows: Figure 8The device shown uses a 5G wireless network 106 as a backup link under a wired ring network 105, and is suitable for industrial data communication networking. The industrial data communication network includes several PLC devices 101, several DCS systems 102, several first 5G industrial gateways 103, second 5G industrial gateways 104, a wired ring network 105, and a 5G wireless network 106. Each PLC device 101 is connected to the wired ring network 105 through a first 5G industrial gateway 103, each DCS system 102 is connected to the wired ring network 105, each first 5G industrial gateway 103 is connected to the 5G wireless network 106, and the wired ring network 105 is connected to the 5G wireless network 106 through a second 5G industrial gateway 104.

[0081] The device includes: a large Layer 2 network construction module 21, used to establish VXLAN tunnels between each first 5G industrial gateway 103 and the second 5G industrial gateway 104 using VXLAN technology, and to add all LAN ports of each first 5G industrial gateway 103 and the interfaces connected to the corresponding VXLAN tunnels to the same bridging group, so that each first 5G industrial gateway 103 and the wired ring network 105 form a large Layer 2 network; and a backup link construction module 22, used to enable each first 5G industrial gateway 103 to exchange and network with the wired ring network 105 through the large Layer 2 network based on the RSTP protocol, and to build backup links between the 5G wireless network 106 and each PLC device 101 and each DCS system 102.

[0082] In a preferred embodiment, the large Layer 2 network building module 21 is specifically used to, for each first 5G industrial gateway 103, use the interface of the first 5G industrial gateway 103 that connects to the VXLAN tunnel between the first 5G industrial gateway 103 and the second 5G industrial gateway 104 as the interface, and add all the LAN ports and interfaces of the first 5G industrial gateway 103 to the same bridging group, so that each first 5G industrial gateway 103 and the wired ring network 105 form a large Layer 2 network.

[0083] In a preferred embodiment, the backup link establishment module 22 is specifically used for: for each first 5G industrial gateway 103, when the wired optical network of the first 5G industrial gateway 103 is normal, configuring the wired optical network port of the first 5G industrial gateway 103 to enable RSTP service, setting the priority of the wired optical network port of the first 5G industrial gateway 103, so that the first 5G industrial gateway 103 interacts with the root switch in the wired ring network 105 with RST BPDU messages, so as to change the port role of the wired optical network port of the first 5G industrial gateway 103 to a root port, and change the port status of the wired optical network port of the first 5G industrial gateway 103 to a forwarding state; using the interface of the first 5G industrial gateway 103 connecting to the VXLAN tunnel between it and the second 5G industrial gateway 104 as the interface, configuring the interface to enable RSTP service, setting the priority of the interface, so that the first 5G industrial gateway 103 interacts with the root switch with RST BPDU messages. BPDU messages are used to change the port role of the interface to a substitute port and the port status of the interface to a blocked state; the port role of all LAN ports of the first 5G industrial gateway 103 connected to PLC devices 101 is changed to edge ports, and all edge ports are configured to start RST BPDU protection service; when the wired optical network of the first 5G industrial gateway 103 is abnormal, aging processing is performed to change the port status of the substitute port to a forwarding state, so as to establish a backup link between the 5G wireless network 106 and each PLC device 101 and each DCS system 102.

[0084] In a preferred embodiment, the wired optical network port and the interface of the first 5G industrial gateway 103 have lower priorities than the wired optical network port of the root switch.

[0085] In a preferred embodiment, each PLC device 101 is connected to a wired ring network 105 via a first 5G industrial gateway 103, each DCS system 102 is connected to the wired ring network 105, each first 5G industrial gateway 103 is connected to a 5G wireless network 106, and the wired ring network 105 is connected to the 5G wireless network 106 via a second 5G industrial gateway 104. Specifically, each PLC device 101 is connected to a first 5G industrial gateway 103 via a network cable, each first 5G industrial gateway 103 is connected to the wired ring network 105 via an optical fiber, each DCS system 102 is connected to the wired ring network 105 via an optical fiber, each first 5G industrial gateway 103 is connected to the 5G wireless network 106, the wired ring network 105 is connected to the second 5G industrial gateway 104 via an optical fiber, and the second 5G industrial gateway 104 is connected to the 5G wireless network 106.

[0086] In summary, implementing the embodiments of the present invention has the following beneficial effects:

[0087] Based on an industrial data communication network formed by connecting several PLC devices 101 to a wired ring network 105 via a first 5G industrial gateway 103, connecting several DCS systems 102 to the wired ring network 105, connecting several first 5G industrial gateways 103 to a 5G wireless network 106, and connecting the wired ring network 105 to the 5G wireless network 106 via a second 5G industrial gateway 104, VXLAN tunnels are established between each first 5G industrial gateway 103 and the second 5G industrial gateway 104 using VXLAN technology, and each first 5G industrial gateway 103 is connected to the second 5G industrial gateway 104. All LAN ports of 3 and interfaces corresponding to VXLAN tunnels are added to the same bridging group, enabling each first 5G industrial gateway 103 to form a large Layer 2 network with the wired ring network 105. Based on the RSTP protocol, each first 5G industrial gateway 103 can exchange and network with the wired ring network 105 through the large Layer 2 network, and establish a backup link between the 5G wireless network 106 and each PLC device 101 and each DCS system 102. This enables the 5G wireless network 106 to be used as a backup link under the wired ring network 105, and the 5G wireless network 106 to perform link backup for the wired ring network 105.

[0088] The above description represents the preferred embodiments of the present invention. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of the present invention, and these improvements and modifications are also considered to be within the scope of protection of the present invention.

[0089] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes described in the above embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

Claims

1. A method for using a 5G wireless network as a backup link in a wired ring network, characterized in that, This system is suitable for industrial data communication networking, which includes several PLC devices, several DCS systems, several first 5G industrial gateways, second 5G industrial gateways, a wired ring network, and a 5G wireless network. Each PLC device is connected to the wired ring network through a first 5G industrial gateway, each DCS system is connected to the wired ring network, each first 5G industrial gateway is connected to the 5G wireless network, and the wired ring network is connected to the 5G wireless network through a second 5G industrial gateway. The method includes: Using VXLAN technology, VXLAN tunnels are established between each of the first 5G industrial gateways and the second 5G industrial gateways. All LAN ports of each of the first 5G industrial gateways and the interfaces that connect to the corresponding VXLAN tunnels are added to the same bridging group, so that each of the first 5G industrial gateways and the wired ring network form a large Layer 2 network. Based on the RSTP protocol, each of the first 5G industrial gateways is connected to the wired ring network through the large Layer 2 network to establish a backup link between the 5G wireless network and each of the PLC devices and each of the DCS systems.

2. The method for using a 5G wireless network as a backup link in a wired ring network as described in claim 1, characterized in that, The step involves adding all LAN ports of each first 5G industrial gateway and the interface corresponding to the VXLAN tunnel to the same bridging group, so that each first 5G industrial gateway and the wired ring network form a large Layer 2 network. Specifically: For each of the first 5G industrial gateways, the interface of the first 5G industrial gateway connecting to the VXLAN tunnel between it and the second 5G industrial gateway is used as the interface, and all LAN ports of the first 5G industrial gateway and the interface are added to the same bridging group, so that each of the first 5G industrial gateways and the wired ring network form a large Layer 2 network.

3. The method for using a 5G wireless network as a backup link in a wired ring network as described in claim 1, characterized in that, The RSTP protocol-based approach enables each of the first 5G industrial gateways to exchange and network with the wired ring network through the large Layer 2 network, establishing backup links between the 5G wireless network and each of the PLC devices and each of the DCS systems. Specifically: For each of the first 5G industrial gateways, when the wired optical network of the first 5G industrial gateway is normal, configure the wired optical network port of the first 5G industrial gateway to enable RSTP service, set the priority of the wired optical network port of the first 5G industrial gateway, and enable the first 5G industrial gateway to exchange RST BPDU messages with the root switch in the wired ring network to change the port role of the wired optical network port of the first 5G industrial gateway to a root port and change the port state of the wired optical network port of the first 5G industrial gateway to a forwarding state. The interface of the first 5G industrial gateway connecting to the VXLAN tunnel between it and the second 5G industrial gateway is used as the interface. The interface is configured to enable RSTP service and the priority of the interface is set so that the first 5G industrial gateway and the root switch can exchange RST BPDU messages to change the port role of the interface to an alternative port and change the port state of the interface to a blocked state. All LAN ports of the first 5G industrial gateway connected to the PLC device are converted to edge ports, and all edge ports are configured to start the RST BPDU protection service. When the wired optical network of the first 5G industrial gateway is abnormal, aging processing is performed to change the port status of the alternative port to the forwarding state, so as to establish a backup link between the 5G wireless network and each of the PLC devices and each of the DCS systems.

4. The method for using a 5G wireless network as a backup link in a wired ring network as described in claim 3, characterized in that, The wired optical network port of the first 5G industrial gateway and the docking interface have lower priorities than the wired optical network port of the root switch.

5. The method for using a 5G wireless network as a backup link in a wired ring network as described in claim 1, characterized in that, Each of the aforementioned PLC devices is connected to the wired ring network via a first 5G industrial gateway, each of the aforementioned DCS systems is connected to the wired ring network, each of the first 5G industrial gateways is connected to the 5G wireless network, and the wired ring network is connected to the 5G wireless network via a second 5G industrial gateway. Specifically: Each PLC device is connected to a first 5G industrial gateway via a network cable, each first 5G industrial gateway is connected to the wired ring network via an optical fiber, each DCS system is connected to the wired ring network via an optical fiber, each first 5G industrial gateway is connected to the 5G wireless network, the wired ring network is connected to a second 5G industrial gateway via an optical fiber, and the second 5G industrial gateway is connected to the 5G wireless network.

6. A device for using a 5G wireless network as a backup link in a wired ring network, characterized in that, This system is suitable for industrial data communication networking, which includes several PLC devices, several DCS systems, several first 5G industrial gateways, second 5G industrial gateways, a wired ring network, and a 5G wireless network. Each PLC device is connected to the wired ring network through a first 5G industrial gateway, each DCS system is connected to the wired ring network, each first 5G industrial gateway is connected to the 5G wireless network, and the wired ring network is connected to the 5G wireless network through a second 5G industrial gateway. The device includes: The large Layer 2 network construction module is used to establish VXLAN tunnels between each of the first 5G industrial gateways and the second 5G industrial gateways using VXLAN technology, and to add all LAN ports of each of the first 5G industrial gateways and the interfaces that connect to the corresponding VXLAN tunnels to the same bridging group, so that each of the first 5G industrial gateways and the wired ring network form a large Layer 2 network. The backup link establishment module is used to enable each of the first 5G industrial gateways to exchange and network with the wired ring network through the large Layer 2 network based on the RSTP protocol, and to establish a backup link between the 5G wireless network and each of the PLC devices and each of the DCS systems.

7. The apparatus for using a 5G wireless network as a backup link in a wired ring network as described in claim 6, characterized in that, The large Layer 2 network construction module is specifically used to, for each of the first 5G industrial gateways, take the interface of the first 5G industrial gateway that connects to the VXLAN tunnel between the first 5G industrial gateway and the second 5G industrial gateway as the interface, and add all the LAN ports of the first 5G industrial gateway and the interface to the same bridging group, so that each of the first 5G industrial gateways and the wired ring network form a large Layer 2 network.

8. The apparatus for using a 5G wireless network as a backup link in a wired ring network as described in claim 6, characterized in that, The backup link setup module is specifically used for: For each of the first 5G industrial gateways, when the wired optical network of the first 5G industrial gateway is normal, configure the wired optical network port of the first 5G industrial gateway to enable RSTP service, set the priority of the wired optical network port of the first 5G industrial gateway, and enable the first 5G industrial gateway to exchange RST BPDU messages with the root switch in the wired ring network to change the port role of the wired optical network port of the first 5G industrial gateway to a root port and change the port state of the wired optical network port of the first 5G industrial gateway to a forwarding state. The interface of the first 5G industrial gateway connecting to the VXLAN tunnel between it and the second 5G industrial gateway is used as the interface. The interface is configured to enable RSTP service and the priority of the interface is set so that the first 5G industrial gateway and the root switch can exchange RST BPDU messages to change the port role of the interface to an alternative port and change the port state of the interface to a blocked state. All LAN ports of the first 5G industrial gateway connected to the PLC device are converted to edge ports, and all edge ports are configured to start the RST BPDU protection service. When the wired optical network of the first 5G industrial gateway is abnormal, aging processing is performed to change the port status of the alternative port to the forwarding state, so as to establish a backup link between the 5G wireless network and each of the PLC devices and each of the DCS systems.

9. The apparatus for using a 5G wireless network as a backup link in a wired ring network as described in claim 8, characterized in that, The wired optical network port of the first 5G industrial gateway and the docking interface have lower priorities than the wired optical network port of the root switch.

10. The apparatus for using a 5G wireless network as a backup link in a wired ring network as described in claim 6, characterized in that, Each PLC device is connected to the wired ring network via a first 5G industrial gateway, each DCS system is connected to the wired ring network, each first 5G industrial gateway is connected to the 5G wireless network, and the wired ring network is connected to the 5G wireless network via a second 5G industrial gateway. Specifically, each PLC device is connected to a first 5G industrial gateway via a network cable, each first 5G industrial gateway is connected to the wired ring network via an optical fiber, each DCS system is connected to the wired ring network via an optical fiber, each first 5G industrial gateway is connected to the 5G wireless network, the wired ring network is connected to the second 5G industrial gateway via an optical fiber, and the second 5G industrial gateway is connected to the 5G wireless network.