5G industrial gateway rapid networking method and system
By synchronizing the link-state database and executing the shortest path first algorithm among industrial gateways, server modules, and core network modules, an optimal IP routing table is generated, solving the problems of poor network flexibility and high operation and maintenance costs, and achieving accurate dynamic addressing.
Patent Information
- Application Number
- CN202511626513.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-07
- Publication Date
- 2025-12-12
AI Technical Summary
In existing technologies, the routing network segment is made consistent with the DHCP network segment of the industrial gateway after manual static configuration of the UDM, resulting in poor network flexibility, high operation and maintenance costs, and inability to meet the dynamic addressing needs of industrial networks.
Dynamic addressing is achieved by establishing routing protocol neighbor relationships between industrial gateways, server modules, and core network modules, synchronizing the link-state database, and executing the shortest path first algorithm to generate the optimal IP routing table.
It achieves precise addressing without relying on static manual configuration, reduces maintenance costs, and supports dynamic addressing in industrial networks.
Smart Images

Figure CN121125599A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of 5G network, and particularly relates to a 5G industrial gateway rapid networking method and system. BACKGROUND
[0002] In the industrial internet, the industrial gateway can be hung with various network device forms, such as programmable logic controllers, virtual machines, etc., and can allocate IP addresses for the hung devices through the DHCP service function of the industrial gateway. When the 5G industrial gateway accesses the 5G system, the hung devices can access the application server in the one-way access DN (Date Network) after obtaining the IP address, and the application server returns information according to the accessed link. At this time, since the 5G core network cannot perceive the existence of the hung devices, and has no table item information of any hung device, if the DN unilaterally accesses the hung devices, when the 5G core network receives the message sent by the DN, only the message with the destination address of the IP address of the industrial gateway can be forwarded, and the message with the destination address of the hung device of the industrial gateway cannot be forwarded, and the message will be discarded.
[0003] In order to solve the problem of the DN active access to the hanging device, the industry proposes a post-routing method, so that the application server in the DN can access the hanging device to enhance the application scenario of 5G. The method first adds a post-routing strategy to the 5G core network, wherein the post-routing strategy includes the network segment address allocated by the industrial gateway to the hanging device, and the post-routing strategy is associated with the IMSI (International Mobile Subscriber Identity) number allocated by the UDM (Unified Data Management) function. After the industrial gateway accesses the 5G core network, it will send a PDU (Protocol Data Unit) session establishment request. The SMF (Session Management Function) on the 5G core network side first obtains the subscription information from the UDM according to the request sent by the industrial gateway, and the subscription information includes the post-routing strategy under the IMSI of the industrial gateway. After the SMF obtains the post-routing strategy, it sends it to the UPF (User Plane Function) through the PFCP (Packet Forwarding Control Protocol) message, and at the same time, the SMF allocates an IP address to the industrial gateway. The UPF receives the PFCP message sent by the SMF, and saves the IP address allocated to the industrial gateway and the IP network segment address in the routing table. Subsequently, the AMF (Access and Mobility Management Function) sends a PDU session establishment completion message to the industrial gateway, which includes the IP address allocated to the industrial gateway. Finally, after the industrial gateway obtains the 5G core network IP address (i.e. the IP address allocated to the industrial gateway), it allocates a DHCP service IP address to the hanging device through the DHCP service. At this time, it is necessary to manually ensure that the DHCP service IP address segment set on the industrial gateway is the same as the IP network segment address set in the post-routing strategy. After the hanging device obtains the DHCP service IP address, it communicates with the application server in the core network DN.
[0004] However, the general post-routing technical solution has the problem of inflexible device address under the industrial gateway. The UDM post-routing network segment needs to be strictly consistent with the DHCP network segment set by the industrial gateway, otherwise the communication problem occurs. However, in the face of a large number of distributed and scattered industrial gateway devices, manual setting is prone to errors, which will inevitably cause factory communication failure. In addition, when facing virtualization technology, with a large number of virtual machines and containers address isolation, not only a large number of routes need to be added or deleted manually on the industrial gateway, but also the IP address allocated by the industrial gateway DHCP server is not the IP address of the virtual machine or container. At this time, the problem of DN addressing the industrial gateway under-hanging device cannot be solved by making the UDM post-routing network segment consistent with the DHCP network segment of the industrial gateway. Therefore, relying on manual static configuration of the UDM post-routing network segment consistent with the DHCP network segment of the industrial gateway requires a large amount of manpower maintenance, resulting in poor network flexibility, high operation and maintenance cost, and cannot meet the dynamic industrial network addressing requirements. SUMMARY
[0005] The embodiments of the present application provide a 5G industrial gateway rapid networking method and system, which aims to solve the problem of relying on manual static configuration of the UDM post-routing network segment consistent with the DHCP network segment of the industrial gateway, which requires a large amount of manpower maintenance, resulting in poor network flexibility, high operation and maintenance cost, and cannot meet the dynamic industrial network addressing requirements.
[0006] In a first aspect, the embodiments of the present application provide a 5G industrial gateway rapid networking method applied to a 5G industrial gateway rapid networking system, the 5G industrial gateway rapid networking system comprising an industrial gateway, a hardware access module, a server module, a base station, a private network bearer network, a core network module and a data network module; the method comprises: The industrial gateway establishes a routing protocol neighbor relationship with the server module and the core network module, and synchronizes a link state database; The industrial gateway, the server module and the core network module respectively execute a shortest path first algorithm, calculate the shortest path from each node to other nodes according to the link state database, and generate a corresponding optimal IP routing table; If the industrial gateway receives a first data packet, the industrial gateway forwards the first data packet to the base station according to the optimal IP routing table in the industrial gateway and the target IP address in the first data packet; wherein the first data packet is a data packet uploaded by the hardware access module or a data packet encapsulated by a virtualization module based on the optimal IP routing table in the server module; The base station transmits the first data packet to the core network module through the private network bearer network; The core network module forwards the first data packet to the data network module based on its internal optimal IP routing table and the destination IP address in the first data packet.
[0007] Secondly, embodiments of the present invention also provide a 5G industrial gateway rapid networking system, including: an industrial gateway, a hardware access module, a server module, a base station, a private network bearer network, a core network module, and a data network module. The industrial gateway is communicatively connected to the hardware access module and the server module. The industrial gateway is communicatively connected to the core network module through the base station and the private network bearer network. The core network module is communicatively connected to the data network module. The industrial gateway is used to establish routing protocol neighbor relationships with the server module and the core network module, and to synchronize the link state database. The industrial gateway, the server module, and the core network module are used to execute the shortest path first algorithm respectively, calculate the shortest path to other nodes according to the link state database, and generate their respective optimal IP routing tables. The industrial gateway is further configured to, upon receiving a first data packet, forward the first data packet to the base station according to its internal optimal IP routing table and the target IP address in the first data packet; wherein the first data packet is a data packet uploaded by the hardware access module or a data packet encapsulated by the virtualization module and forwarded by the server module based on its internal optimal IP routing table. The base station is used to transmit the first data packet to the core network module through the private network bearer network; The core network module is also used to forward the first data packet to the data network module according to its internal optimal IP routing table and the destination IP address in the first data packet.
[0008] This invention provides a method and system for rapid networking of 5G industrial gateways. The method includes establishing routing protocol neighbor relationships between the industrial gateway, server module, and core network module, and synchronizing the link-state database. Each of the three modules executes a shortest path first (SLF) algorithm, calculating the shortest path to other nodes based on the link-state database to generate its own optimal IP routing table. When the industrial gateway receives the first data packet, it forwards the packet through the base station and private network to the core network module based on its internal optimal IP routing table and the destination IP address in the packet. The core network module then forwards the packet to the data network module based on its internal optimal IP routing table and the destination IP address. This invention synchronizes the link-state databases of the industrial gateway, server module, and core network module via routing protocols, enabling each device to understand the overall network topology and effectively supporting dynamic addressing in industrial networks. Attached Figure Description
[0009] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the following description of the embodiments will be briefly introduced. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0010] Figure 1 This is a flowchart illustrating a method for rapid networking of a 5G industrial gateway according to an embodiment of the present invention. Figure 2 This is a schematic diagram of a sub-process of a rapid networking method for 5G industrial gateways provided in an embodiment of the present invention; Figure 3 This is a schematic block diagram of a 5G industrial gateway rapid networking system provided in an embodiment of the present invention. Detailed Implementation
[0011] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0012] It should be understood that, when used in this specification and the appended claims, the terms "comprising" and "including" indicate the presence of the described features, integrals, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.
[0013] It should also be understood that the terminology used in this specification is for the purpose of describing particular embodiments only and is not intended to limit the invention. As used in this specification and the appended claims, the singular forms “a,” “an,” and “the” are intended to include the plural forms unless the context clearly indicates otherwise.
[0014] It should also be further understood that the term "and / or" as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.
[0015] The 5G industrial gateway rapid networking method provided in this embodiment of the invention is applied to a 5G industrial gateway rapid networking system. The 5G industrial gateway rapid networking system includes an industrial gateway, a hardware access module, a server module, a base station, a private network bearer network, a core network module, and a data network module. The industrial gateway is communicatively connected to the hardware access module and the server module. The industrial gateway is communicatively connected to the core network module through the base station and the private network bearer network. The core network module is communicatively connected to the data network module. Specifically, the industrial gateway is a 5G industrial gateway, and the core network module is a 5G core network. The hardware access module includes devices that directly connect to the industrial gateway, such as PLCs and PCs. These devices communicate using IP addresses assigned by the industrial gateway's DHCP server. The server module deploys a virtualization module and a private cloud for managing the virtualization environment. The virtualization module is a virtual machine or a container. The number of server modules can be one or more, and is not specifically limited here. Figure 1 As shown, Figure 1 This is a flowchart illustrating a method for rapid networking of a 5G industrial gateway according to an embodiment of the present invention. The method includes the following steps S11 to S15: S11. The industrial gateway establishes a routing protocol neighbor relationship with the server module and the core network module, and synchronizes the link state database.
[0016] In this embodiment, the industrial gateway establishes routing protocol neighbor relationships with its connected server module and core network module based on a dynamic routing protocol. The industrial gateway, server module, and core network module exchange and synchronize link-state information, ultimately ensuring that their link-state databases remain consistent. This enables the dynamic announcement of the IP addresses of virtualization modules within the server module to the industrial gateway and core network module. The link-state database describes the network topology of the entire autonomous system, allowing the industrial gateway, server module, and core network module to understand the overall network topology. Specifically, the industrial gateway, server module, and core network module dynamically deploy an SDK (Software Development Kit) containing the dynamic routing protocol to distribute, add, delete, and update the dynamic routing protocol, thereby enabling them to synchronize the link-state database.
[0017] In one embodiment, step S11 includes: The first routing module in the industrial gateway establishes a routing protocol neighbor relationship with the second routing module in the server module and the third routing module in the SMF network element of the core network module; The first routing module synchronizes the local link state information in its internal link state database and the acquired link state information to the second routing module and the third routing module according to the routing protocol neighbor relationship.
[0018] In this embodiment, a first routing module is deployed in the industrial gateway, a second routing module is deployed in the server module, and a third routing module is deployed in the SMF network element within the core network module. The first routing module establishes a routing protocol neighbor relationship with the second and third routing modules based on a dynamic routing protocol, wherein the dynamic routing protocol is a link-state routing protocol (i.e., OSPF routing protocol). The first routing module, based on the routing protocol neighbor relationship, sends Link State Request (LSA) messages to the second and third routing modules to request each other's Link State Information (LSA information). The first routing module aggregates the LSA information of all routes in the multi-access network and synchronizes its local LSA information (i.e., the LSA information of the industrial gateway) and the LSA information obtained from the second routing module (i.e., the LSA information of the server module) in its LSA database to the third routing module. The third routing module synchronizes its local LSA information and the LSA information obtained from the third routing module (i.e., the LSA information of the core network module) in its LSA database to the second routing module, thereby synchronizing the LSA information. The LSA databases of all three modules contain the LSA information of the industrial gateway, the LSA information of the server module, and the LSA information of the core network module, ensuring that the LSA databases of the three modules are consistent. Among them, LSA information describes the network topology around the routing module, the LSA information of the industrial gateway describes the network segment to which its directly connected hardware access module belongs, the LSA information of the server module describes the network segment to which its internal virtualization module belongs, the LSA information of the core network module describes the network segment to which its directly connected data network module belongs, and the link state database describes the network topology of the entire autonomous system.
[0019] S12. The industrial gateway, the server module, and the core network module respectively execute the shortest path first algorithm to calculate the shortest path to other nodes based on the link state database, so as to generate their respective optimal IP routing tables.
[0020] In this embodiment, after the link-state databases of the industrial gateway, server module, and core network module are synchronized, the first routing module in the industrial gateway, the second routing module in the server module, and the third routing module in the SMF network element of the core network module each execute the Shortest Path First (SPF) algorithm. Each of these routing modules calculates its distance to each destination using itself as the root. Based on the SPF algorithm, each routing module calculates a loop-free topology map according to the unified link-state database to describe the shortest paths it knows to reach each node in the autonomous system. It then stores the routes in the topology map into its own routing table, thereby generating its own optimal IP routing table to ensure that data can be forwarded through the optimal path. The industrial gateway, server module, and core network module all calculate the path to the destination network based on the SPF algorithm, rather than obtaining routing information from routing advertisements. They forward data based on their own optimal IP routing tables, eliminating the need for pre-configured static address ranges, enabling accurate addressing, and reducing maintenance costs.
[0021] Furthermore, the first routing module in the industrial gateway will send its optimal IP routing table to the industrial gateway kernel or a dedicated forwarding chip, and the second routing module in the server module will also send its optimal IP routing table to the server module kernel or a dedicated forwarding chip for Layer 3 routing forwarding of data. The core network module involves GTP-U tunnel transparent routing protocol messages established between the base station and the private network bearer network. At this time, it is necessary to associate the tunnel session information and its related modules with the routing information. Since the SMF network element involves session management and policy control, it is necessary to merge the third routing module in the SMF network element with the session module and policy module, and then send the merged optimal IP routing table to the UPF.
[0022] S13. If the industrial gateway receives the first data packet, it forwards the first data packet to the base station according to its internal optimal IP routing table and the target IP address in the first data packet; wherein, the first data packet is a data packet uploaded by the hardware access module or a data packet encapsulated by the virtualization module forwarded by the server module based on its internal optimal IP routing table.
[0023] In this embodiment, if the hardware access module or virtualization module needs to send data to the application server in the data network module, the hardware access module directly uses the IP address assigned by the industrial gateway's DHCP server to upload the encapsulated data packet to the industrial gateway. The virtualization module uploads the encapsulated data packet to the second routing module in its server module. The second routing module in the server module forwards the packet to the industrial gateway based on its internal optimal IP routing table. During uplink communication, if the industrial gateway receives the first data packet (which can be understood as a data packet sent to the industrial gateway by the hardware access module or server module), the industrial gateway forwards the first data packet according to its own optimal IP routing table and the destination IP address in the first data packet. This forwards the first data packet to the base station, and then, through the base station and the private network bearer network, forwards the first data packet to the core network module.
[0024] S14. The base station transmits the first data packet to the core network module through the private network bearer network.
[0025] In this embodiment, the private network bearer network is responsible for connecting the base station and the core network module through the switching network. After receiving the first data packet, the base station transmits the first data packet to the core network module through the private network bearer network.
[0026] In one embodiment, step S14 includes: The base station encapsulates the first data packet into a GTP-U tunnel to obtain a GTP-U data packet, and then transmits the GTP-U data packet through the VPN tunnel in the private network bearer network to the UPF network element in the core network module.
[0027] In this embodiment, the base station and the private network bearer network transmit data in a tunneled manner. The first data packet is encapsulated with a GTP-U tunnel on the base station to form a GTP-U data packet. The GTP-U data packet enters the private network bearer network and is transmitted through a VPN tunnel to reach the UPF network element in the core network module, thereby achieving secure and efficient data transmission.
[0028] S15. The core network module forwards the first data packet to the data network module according to its internal optimal IP routing table and the destination IP address in the first data packet.
[0029] In this embodiment, after the core network module receives the first data packet, it also forwards the first data packet according to its own optimal IP routing table and the target IP address in the first data packet, so as to forward the first data packet to the corresponding application server in the data network module through the optimal path, thereby completing the data forwarding of the uplink communication.
[0030] In one embodiment, step S15 includes: When the UPF network element in the core network module receives the GTP-U data packet, it searches for a PFCP session that matches the GTP-U data packet and decapsulates the GTP-U data packet according to the preset packet inspection rules in the PFCP session to obtain the first data packet. The UPF network element in the core network module forwards the first data packet to the data network module according to the optimal IP routing table issued by the third routing module and the destination IP address in the first data packet.
[0031] In this embodiment, the UPF network element in the core network module is responsible for authentication of the forwarding plane. When the UPF network element receives a GTP-U data packet sent by the base station through the private network bearer, it checks the relevant PFCP session. If a PFCP session matching the GTP-U data packet is found, the UPF network element decapsulates the GTP-U data packet according to the preset packet inspection rules in the PFCP session, stripping the GTP-U tunnel information from the GTP-U data packet to obtain the first data packet. Then, the UPF network element parses the destination IP address in the first data packet and forwards the first data packet to the data network module based on the optimal IP routing table issued by the third routing module in the SMF network element.
[0032] In one embodiment, see Figure 2 , Figure 2 This is a schematic diagram of a sub-process of a rapid networking method for 5G industrial gateways provided in an embodiment of the present invention. After step S12, it further includes: S21. If the core network module receives the second data packet sent by the data network module, it forwards the second data packet according to its internal optimal IP routing table and the target IP address in the second data packet, and forwards the second data packet to the industrial gateway through the base station and the private network bearer network. S22. The industrial gateway forwards the second data packet to the hardware access module or the virtualization module in the server according to its internal optimal IP routing table and the target IP address in the second data packet.
[0033] In this embodiment, during downlink communication, if the UPF network element in the core network module receives a second data packet sent by the data network module, the UPF network element parses the destination IP address in the second data packet and forwards the second data packet according to the optimal IP routing table issued by the third routing module in the SMF network element, so as to forward the second data packet to the private network bearer network. The private network bearer network and the base station transmit the second data packet to the industrial gateway in a tunneled manner. The industrial gateway forwards the second data packet according to its own optimal IP routing table and the destination IP address in the second data packet. Specifically, if the destination IP address in the second data packet is the IP address of the hardware access module, the industrial gateway forwards the second data packet to the hardware access module according to its own optimal IP routing table and the destination IP address; if the destination IP address in the second data packet is the IP address of the virtualization module, the industrial gateway forwards the second data packet to the server according to its own optimal IP routing table and the destination IP address, and the server forwards the second data packet to its internal virtualization module.
[0034] In one embodiment, after step S12, the method further includes: The server module announces the routing identifier of the identification routing module configured in its internal virtualization module to the core network module through the link-state routing protocol; The core network module generates an identification routing table based on the obtained routing identifier, and associates the identification routing table with a preset QoS policy set. If the core network module receives a third data packet, it performs fine-grained control based on the QoS policy associated with the routing identifier in the third data packet in the QoS policy set, and forwards the third data packet according to its internal optimal IP routing table and the destination IP address in the third data packet.
[0035] In this embodiment, for multi-traffic scenarios under a single virtualization module, the UPF network element in the core network module only has the virtualization module address and cannot perform accurate traffic classification and matching, thus failing to complete differentiated scheduling and control of data. Therefore, an identification routing module is deployed in the virtualization module within the server module to achieve fine-grained management of data flows based on the identification routing module. Specifically, the identification routing module sends its routing identifier to the server module. After the server module announces it through the link-state routing protocol, it announces the routing identifier of the identification routing module to the industrial gateway, and then to the SMF network element in the core network module through the industrial gateway. The SMF network element in the core network module generates an identification routing table based on the obtained routing identifier, associates the identification routing table with a preset QoS policy set, and then sends it to the UPF network element. This associates the routing identifier in the identification routing table with the corresponding QoS policy, thereby enabling fine-grained routing policy management and traffic control for different data flows of the virtualization module through the routing identifier and QoS policy. If a UPF element in the core network module receives a third data packet containing a routing identifier, it parses the routing identifier and destination IP address in the third data packet. It then performs fine-grained control based on the QoS policy associated with the routing identifier, and forwards the third data packet according to its own optimal IP routing table and the destination IP address. Specifically, if the destination IP address in the third data packet is the IP address of a hardware access module or virtualization module, the UPF element in the core network module sends the third data packet to the private network bearer network according to its own optimal IP routing table and the destination IP address. The private network bearer network and base station then forward the third data packet to the industrial gateway, which finally forwards it to the hardware access module or virtualization module. If the destination IP address in the third data packet is the IP address of a data network module, the UPF element in the core network module forwards the third data packet to the data network module according to its own optimal IP routing table and the destination IP address.
[0036] In one embodiment, the structure of the third data packet includes an IP layer, a UDP layer, an identification layer, and bearer data; wherein, the IP layer contains a source IP address and a destination IP address, the UDP layer contains a source port number and a destination port number of the data transmission protocol, the identification layer contains a routing identifier, and the bearer data contains the application data to be transmitted.
[0037] In this embodiment, the third data packet has a multi-layered structure, including an IP layer, a UDP layer, an identification layer, and bearer data. The IP layer contains the source and destination IP addresses, indicating the origin and destination of the data. The UDP layer contains the source and destination port numbers of the data transmission protocol. The identification layer contains a routing identifier, and the bearer data contains the application data to be transmitted. By encapsulating the routing identifier within the identification layer following the UDP layer, different data streams can be distinguished, facilitating fine-grained control over these streams.
[0038] The 5G industrial gateway rapid networking method provided in this invention synchronizes the link-state databases of the industrial gateway, server module, and core network module through a routing protocol, enabling each device to grasp the entire network topology. Furthermore, the industrial gateway, server module, and core network module each execute the shortest path first algorithm, calculating the shortest path to other nodes based on the link-state database to generate their respective optimal IP routing tables. Data is then forwarded through these optimal IP routing tables, ensuring that data can be forwarded via the optimal path. This eliminates the need for pre-configured static address ranges, achieving precise addressing and reducing maintenance costs.
[0039] This invention also provides a 5G industrial gateway rapid networking system, which is used to execute any of the aforementioned 5G industrial gateway rapid networking methods. Specifically, please refer to... Figure 3 , Figure 3 This is a schematic block diagram of a 5G industrial gateway rapid networking system provided in an embodiment of the present invention. The 5G industrial gateway rapid networking system provided in this embodiment includes: an industrial gateway 1, a hardware access module 2, a server module 3, a base station 4, a private network bearer network 5, a core network module 6, and a data network module 7. The industrial gateway 1 is communicatively connected to the hardware access module 2 and the server module 3. The industrial gateway 1 is communicatively connected to the core network module 6 through the base station 4 and the private network bearer network 5. The core network module 6 is communicatively connected to the data network module 7. The industrial gateway 1 is a 5G industrial gateway, and the core network module 6 is a 5G core network. The hardware access module 2 includes devices that directly connect to the industrial gateway 1, such as PLCs and PCs. The devices in the hardware access module 2 communicate using IP addresses assigned by the DHCP server of the industrial gateway 1. The server module 3 deploys a virtualization module 31 and a private cloud for managing the virtualization environment. The virtualization module 31 is a virtual machine or a container. The number of server modules 3 can be one or more, and is not specifically limited here. Detailed description follows: The industrial gateway 1 is used to establish routing protocol neighbor relationships with the server module 3 and the core network module 6, and to synchronize the link state database.
[0040] In this embodiment, industrial gateway 1 establishes routing protocol neighbor relationships with its connected server module 3 and core network module 6 based on a dynamic routing protocol. Industrial gateway 1, server module 3, and core network module 6 exchange and synchronize link-state information, ultimately ensuring that their link-state databases remain consistent. This allows the IP address of the virtualization module 31 within server module 3 to be dynamically advertised to industrial gateway 1 and core network module 6. The link-state database describes the network topology of the entire autonomous system. Industrial gateway 1, server module 3, and core network module 6 can grasp the overall network topology through the link-state database. Specifically, industrial gateway 1, server module 3, and core network module 6 dynamically deploy an SDK (Software Development Kit) containing the dynamic routing protocol to distribute, add, delete, and update the dynamic routing protocol, thereby gaining the ability to synchronize the link-state database.
[0041] In one embodiment, when the industrial gateway 1 performs the steps of establishing routing protocol neighbor relationships with the server module 3 and the core network module 6, and synchronizing the link state database, it includes: The first routing module 11 in the industrial gateway 1 establishes a routing protocol neighbor relationship with the second routing module 32 in the server module 3 and the third routing module 611 in the SMF network element 61 of the core network module 6; The first routing module 11 synchronizes the local link state information in the internal link state database and the acquired link state information to the second routing module 32 and the third routing module 611 according to the routing protocol neighbor relationship.
[0042] In this embodiment, a first routing module 11 is deployed in the industrial gateway 1, a second routing module 32 is deployed in the server module 3, and a third routing module 611 is deployed in the SMF network element 61 within the core network module 6. The first routing module 11 establishes a routing protocol neighbor relationship with the second routing module 32 and the third routing module 611 based on a dynamic routing protocol, wherein the dynamic routing protocol is a link-state routing protocol (i.e., OSPF routing protocol). According to the routing protocol neighbor relationship, the first routing module 11 sends link state request messages to the second routing module 32 and the third routing module 611 to request the link state information (i.e., LSA information) of the neighbors. The first routing module 11 summarizes the link state information of all routes in the multi-access network, and synchronizes the local link state information (i.e., LSA information of industrial gateway 1) in its link state database and the link state information obtained from the second routing module 32 (i.e., LSA information of server module 3) to the third routing module 611. The first routing module 11 synchronizes the local link state information in its link state database and the link state information obtained from the third routing module 611 (i.e., LSA information of core network module 6) to the second routing module 32, thereby synchronizing the link state information. The link state databases of the three modules all contain the LSA information of industrial gateway 1, server module 3, and core network module 6, so that the link state databases of the three modules are consistent. Among them, LSA information describes the network topology around the routing module. The LSA information of industrial gateway 1 describes the network segment to which its directly connected hardware access module 2 belongs. The LSA information of server module 3 describes the network segment to which its internal virtualization module 31 belongs. The LSA information of core network module 6 describes the network segment to which its directly connected data network module 7 belongs. The link state database describes the network topology of the entire autonomous system.
[0043] The industrial gateway 1, the server module 3, and the core network module 6 are used to execute the shortest path first algorithm respectively, calculate the shortest path to other nodes according to the link state database, and generate their respective optimal IP routing tables.
[0044] In this embodiment, after the link-state databases of industrial gateway 1, server module 3, and core network module 6 are synchronized, the first routing module 11 in industrial gateway 1, the second routing module 32 in server module 3, and the third routing module 611 in the SMF network element 61 of core network module 6 respectively execute the shortest path first (SPF) algorithm. Each of these three routing modules calculates its distance to each destination using itself as the root. Based on the SPF algorithm, each routing module calculates a loop-free topology map according to the unified link-state database to describe the shortest paths it knows to reach each node in the autonomous system. It then stores the routes in the topology map into its own routing table, thereby generating its own optimal IP routing table to ensure that data can be forwarded through the optimal path. Industrial gateway 1, server module 3, and core network module 6 all calculate the path to the destination network according to the SPF algorithm, rather than obtaining routing information from routing advertisements. They forward data based on their own optimal IP routing tables, eliminating the need for pre-configured static address ranges, achieving accurate addressing, and reducing maintenance costs.
[0045] Furthermore, the first routing module 11 in industrial gateway 1 will send its optimal IP routing table to the kernel of industrial gateway 1 or the dedicated forwarding chip, and the second routing module 32 in server module 3 will also send its optimal IP routing table to the kernel of server module 3 or the dedicated forwarding chip to perform Layer 3 routing forwarding of data; the core network module 6 involves the GTP-U tunnel transparent routing protocol messages established between base station 4 and private network bearer network 5. At this time, it is necessary to associate the tunnel session information and its related modules with the routing information. Since the SMF network element 61 involves session management and policy control, it is necessary to merge the third routing module 611 in the SMF network element 61 with the session module and policy module, and then send the merged optimal IP routing table to the UPF.
[0046] The industrial gateway 1 is further configured to, upon receiving a first data packet, forward the first data packet to the base station 4 according to its internal optimal IP routing table and the target IP address in the first data packet; wherein the first data packet is a data packet uploaded by the hardware access module 2 or a data packet encapsulated by the virtualization module 31 and forwarded by the server module 3 based on its internal optimal IP routing table.
[0047] In this embodiment, if the hardware access module 2 or the virtualization module 31 needs to send data to the application server in the data network module 7, the hardware access module 2 directly uses the IP address assigned by the DHCP server of the industrial gateway 1 to upload the encapsulated data packet to the industrial gateway 1. The virtualization module 31 uploads the encapsulated data packet to the second routing module 32 in its server module 3. The second routing module 32 in the server module 3 forwards the packet to the industrial gateway 1 based on its internal optimal IP routing table. During uplink communication, if the industrial gateway 1 receives the first data packet, which can be understood as a data packet sent to the industrial gateway 1 by the hardware access module 2 or the server module 3, the industrial gateway 1 forwards the first data packet according to its own optimal IP routing table and the destination IP address in the first data packet, so that the first data packet is forwarded to the base station 4, and then forwarded to the core network module 6 through the base station 4 and the private network bearer network 5.
[0048] The base station 4 is used to transmit the first data packet to the core network module 6 through the private network bearer network 5.
[0049] In this embodiment, the private network bearer network 5 is responsible for connecting the base station 4 and the core network module 6 through the exchange network. After receiving the first data packet, the base station 4 transmits the first data packet to the core network module 6 through the private network bearer network 5.
[0050] In one embodiment, when the base station 4 performs the step of transmitting the first data packet to the core network module 6 through the private network bearer network 5, it includes: The base station 4 encapsulates the first data packet into a GTP-U tunnel to obtain a GTP-U data packet, and then transmits the GTP-U data packet through the VPN tunnel in the private network bearer network 5 to the UPF network element 62 in the core network module 6.
[0051] In this embodiment, base station 4 and private network bearer network 5 transmit data in a tunneled manner. The first data packet is encapsulated with a GTP-U tunnel on base station 4 to form a GTP-U data packet. The GTP-U data packet enters private network bearer network 5 and is transmitted through VPN tunnel to reach UPF network element 62 in core network module 6, thereby achieving secure and efficient data transmission.
[0052] The core network module 6 is also used to forward the first data packet to the data network module 7 according to its internal optimal IP routing table and the target IP address in the first data packet.
[0053] In this embodiment, after receiving the first data packet, the core network module 6 also forwards the first data packet according to its own optimal IP routing table and the target IP address in the first data packet, so as to forward the first data packet to the corresponding application server in the data network module 7 through the optimal path, thereby completing the data forwarding of the uplink communication.
[0054] In one embodiment, when the core network module 6 performs the step of forwarding the first data packet to the data network module 7 based on its internal optimal IP routing table and the destination IP address in the first data packet, it includes: When the UPF network element 62 in the core network module 6 receives the GTP-U data packet, it searches for a PFCP session that matches the GTP-U data packet and decapsulates the GTP-U data packet according to the preset packet inspection rules in the PFCP session to obtain the first data packet. The UPF network element 62 in the core network module 6 forwards the first data packet to the data network module 7 according to the optimal IP routing table issued by the third routing module 611 and the destination IP address in the first data packet.
[0055] In this embodiment, the UPF network element 62 in the core network module 6 is responsible for authentication of the forwarding plane. When the UPF network element 62 receives a GTP-U data packet sent by the base station 4 through the private network bearer network 5, it checks the relevant PFCP session. If a PFCP session matching the GTP-U data packet is found, the UPF network element 62 decapsulates the GTP-U data packet according to the preset packet inspection rules in the PFCP session, stripping the GTP-U tunnel information from the GTP-U data packet to obtain the first data packet. Then, the UPF network element 62 parses the destination IP address in the first data packet and forwards the first data packet to the data network module 7 based on the optimal IP routing table issued by the third routing module 611 in the SMF network element 61.
[0056] In one embodiment, after the industrial gateway 1, the server module 3, and the core network module 6 respectively execute the shortest path first algorithm to calculate their respective shortest paths to other nodes based on the link state database, and generate their respective optimal IP routing tables: The core network module 6 is also used to forward the second data packet according to its internal optimal IP routing table and the target IP address in the second data packet if it receives the second data packet sent by the data network module 7, and forward the second data packet to the industrial gateway 1 through the base station 4 and the private network bearer network 5; The industrial gateway 1 is also used to forward the second data packet to the hardware access module 2 or the virtualization module 31 in the server according to its internal optimal IP routing table and the target IP address in the second data packet.
[0057] In this embodiment, during downlink communication, if the UPF network element 62 in the core network module 6 receives the second data packet sent by the data network module 7, the UPF network element 62 parses the destination IP address in the second data packet and forwards the second data packet according to the optimal IP routing table issued by the third routing module 611 in the SMF network element 61, so as to forward the second data packet to the private network bearer network 5. The private network bearer network 5 and the base station 4 transmit the second data packet to the industrial gateway 1 in a tunneled manner. The industrial gateway 1 forwards the second data packet according to its own optimal IP routing table and the destination IP address in the second data packet. If the destination IP address in the second data packet is the IP address of the hardware access module 2, the industrial gateway 1 forwards the second data packet to the hardware access module 2 according to its own optimal IP routing table and the destination IP address; if the destination IP address in the second data packet is the IP address of the virtualization module 31, the industrial gateway 1 forwards the second data packet to the server according to its own optimal IP routing table and the destination IP address, and the server forwards the second data packet to the virtualization module 31 inside it.
[0058] In one embodiment, after the industrial gateway 1, the server module 3, and the core network module 6 respectively execute the shortest path first algorithm to calculate their respective shortest paths to other nodes based on the link state database, and generate their respective optimal IP routing tables: The server module 3 is also used to announce the routing identifier of the identification routing module configured in its internal virtualization module 31 to the core network module 6 through the link-state routing protocol; The core network module 6 is also used to generate an identification routing table based on the obtained routing identifier, and associate the identification routing table with a preset QoS policy set. The core network module 6 is further configured to, if a third data packet is received, perform fine-grained control according to the QoS policy associated with the routing identifier in the third data packet in the QoS policy set, and forward the third data packet according to its internal optimal IP routing table and the destination IP address in the third data packet.
[0059] In this embodiment, for a multi-traffic scenario under a single virtualization module 31, the UPF network element 62 in the core network module 6 only has the address of the virtualization module 31 and cannot perform accurate traffic classification and matching, thus failing to complete differentiated scheduling and control of data. Therefore, an identification routing module is deployed in the virtualization module 31 within the server module 3 to achieve fine-grained management of data flows based on the identification routing module. Specifically, the identification routing module sends its routing identifier to the server module 3. After the server module 3 announces it through the link-state routing protocol, it announces the routing identifier of the identification routing module to the industrial gateway 1, and then through the industrial gateway 1 to the SMF network element 61 in the core network module 6. The SMF network element 61 in the core network module 6 generates an identification routing table based on the obtained routing identifier, associates the identification routing table with a preset QoS policy set, and then sends it to the UPF network element 62. This associates the routing identifier in the identification routing table with the corresponding QoS policy, thereby enabling fine-grained routing policy management and traffic control for different data flows of the virtualization module 31 through the routing identifier and QoS policy. If the UPF element 62 in core network module 6 receives a third data packet containing a routing identifier, it parses the routing identifier and destination IP address in the third data packet, performs fine-grained control based on the QoS policy associated with the routing identifier, and then forwards the third data packet according to its own optimal IP routing table and the destination IP address. Specifically, if the destination IP address in the third data packet is the IP address of hardware access module 2 or virtualization module 31, the UPF element 62 in core network module 6 sends the third data packet to the private network bearer network 5 according to its own optimal IP routing table and the destination IP address. The private network bearer network 5 and base station 4 then transmit the third data packet to industrial gateway 1, and finally, industrial gateway 1 forwards the third data packet to hardware access module 2 or virtualization module 31. If the destination IP address in the third data packet is the IP address of data network module 7, the UPF element 62 in core network module 6 forwards the third data packet to data network module 7 according to its own optimal IP routing table and the destination IP address.
[0060] In one embodiment, the structure of the third data packet includes an IP layer, a UDP layer, an identification layer, and bearer data; wherein, the IP layer contains a source IP address and a destination IP address, the UDP layer contains a source port number and a destination port number of the data transmission protocol, the identification layer contains a routing identifier, and the bearer data contains the application data to be transmitted.
[0061] In this embodiment, the third data packet has a multi-layered structure, including an IP layer, a UDP layer, an identification layer, and bearer data. The IP layer contains the source and destination IP addresses, indicating the origin and destination of the data. The UDP layer contains the source and destination port numbers of the data transmission protocol. The identification layer contains a routing identifier, and the bearer data contains the application data to be transmitted. By encapsulating the routing identifier within the identification layer following the UDP layer, different data streams can be distinguished, facilitating fine-grained control over these streams.
[0062] The 5G industrial gateway rapid networking system provided in this invention is used to execute any embodiment of the aforementioned 5G industrial gateway rapid networking method. It synchronizes the link-state databases of industrial gateway 1, server module 3, and core network module 6 through a routing protocol, enabling each device to grasp the overall network topology. Furthermore, industrial gateway 1, server module 3, and core network module 6 each execute the shortest path first algorithm, calculating their respective shortest paths to other nodes based on the link-state database to generate their respective optimal IP routing tables. Data is then forwarded through these optimal IP routing tables, ensuring that data can be forwarded via the optimal path. This eliminates the need for pre-configured static address ranges, enabling precise addressing and reducing maintenance costs.
[0063] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for rapid networking of 5G industrial gateways, characterized in that, An application is made to a 5G industrial gateway rapid networking system, the 5G industrial gateway rapid networking system comprising an industrial gateway, a hardware access module, a server module, a base station, a private network bearer network, a core network module, and a data network module; the method includes: The industrial gateway establishes routing protocol neighbor relationships with the server module and the core network module, and synchronizes the link state database; The industrial gateway, the server module, and the core network module each execute the shortest path first algorithm to calculate their respective shortest paths to other nodes based on the link state database, so as to generate their respective optimal IP routing tables. If the industrial gateway receives the first data packet, it forwards the first data packet to the base station according to its internal optimal IP routing table and the target IP address in the first data packet; wherein, the first data packet is a data packet uploaded by the hardware access module or a data packet encapsulated by the virtualization module and forwarded by the server module based on its internal optimal IP routing table. The base station transmits the first data packet to the core network module through the private network bearer network; The core network module forwards the first data packet to the data network module based on its internal optimal IP routing table and the destination IP address in the first data packet.
2. The 5G industrial gateway rapid networking method according to claim 1, characterized in that, After the industrial gateway, the server module, and the core network module respectively execute the shortest path first algorithm to calculate their respective shortest paths to other nodes based on the link state database, and generate their respective optimal IP routing tables, the method further includes: If the core network module receives the second data packet sent by the data network module, it forwards the second data packet according to its internal optimal IP routing table and the target IP address in the second data packet, and forwards the second data packet to the industrial gateway through the base station and the private network bearer network. The industrial gateway forwards the second data packet to the hardware access module or the virtualization module in the server based on its internal optimal IP routing table and the destination IP address in the second data packet.
3. The method for rapid networking of 5G industrial gateways according to claim 1, characterized in that, After the industrial gateway, the server module, and the core network module respectively execute the shortest path first algorithm to calculate their respective shortest paths to other nodes based on the link state database, and generate their respective optimal IP routing tables, the method further includes: The server module announces the routing identifier of the identification routing module configured in its internal virtualization module to the core network module through the link-state routing protocol; The core network module generates an identification routing table based on the obtained routing identifier, and associates the identification routing table with a preset QoS policy set. If the core network module receives a third data packet, it performs fine-grained control based on the QoS policy associated with the routing identifier in the third data packet in the QoS policy set, and forwards the third data packet according to its internal optimal IP routing table and the destination IP address in the third data packet.
4. The rapid networking method for 5G industrial gateways according to claim 3, characterized in that, The structure of the third data packet includes an IP layer, a UDP layer, an identification layer, and bearer data; wherein, the IP layer contains the source IP address and the destination IP address, the UDP layer contains the source port number and the destination port number of the data transmission protocol, the identification layer contains the routing identifier, and the bearer data contains the application data to be transmitted.
5. The method for rapid networking of 5G industrial gateways according to claim 1, characterized in that, The industrial gateway establishes routing protocol neighbor relationships with the server module and the core network module, and synchronizes the link state database, including: The first routing module in the industrial gateway establishes a routing protocol neighbor relationship with the second routing module in the server module and the third routing module in the SMF network element of the core network module; The first routing module synchronizes the local link state information in its internal link state database and the acquired link state information to the second routing module and the third routing module according to the routing protocol neighbor relationship.
6. The method for rapid networking of 5G industrial gateways according to claim 5, characterized in that, The base station transmits the first data packet to the core network module through the private network bearer network, including: The base station encapsulates the first data packet into a GTP-U tunnel to obtain a GTP-U data packet, and then transmits the GTP-U data packet through the VPN tunnel in the private network bearer network to the UPF network element in the core network module.
7. The rapid networking method for 5G industrial gateways according to claim 6, characterized in that, The core network module forwards the first data packet to the data network module based on its internal optimal IP routing table and the destination IP address in the first data packet, including: When the UPF network element in the core network module receives the GTP-U data packet, it searches for a PFCP session that matches the GTP-U data packet and decapsulates the GTP-U data packet according to the preset packet inspection rules in the PFCP session to obtain the first data packet. The UPF network element in the core network module forwards the first data packet to the data network module according to the optimal IP routing table issued by the third routing module and the destination IP address in the first data packet.
8. A 5G industrial gateway rapid networking system, characterized in that, include: The system includes an industrial gateway, a hardware access module, a server module, a base station, a private network bearer network, a core network module, and a data network module. The industrial gateway is communicatively connected to the hardware access module and the server module. The industrial gateway is communicatively connected to the core network module through the base station and the private network bearer network. The core network module is communicatively connected to the data network module. The industrial gateway is used to establish routing protocol neighbor relationships with the server module and the core network module, and to synchronize the link state database. The industrial gateway, the server module, and the core network module are used to execute the shortest path first algorithm respectively, calculate the shortest path to other nodes according to the link state database, and generate their respective optimal IP routing tables. The industrial gateway is further configured to, upon receiving a first data packet, forward the first data packet to the base station according to its internal optimal IP routing table and the target IP address in the first data packet; wherein the first data packet is a data packet uploaded by the hardware access module or a data packet encapsulated by the virtualization module and forwarded by the server module based on its internal optimal IP routing table. The base station is used to transmit the first data packet to the core network module through the private network bearer network; The core network module is also used to forward the first data packet to the data network module according to its internal optimal IP routing table and the destination IP address in the first data packet.
9. The 5G industrial gateway rapid networking system according to claim 8, characterized in that, After the industrial gateway, the server module, and the core network module each execute the shortest path first algorithm to calculate their respective shortest paths to other nodes based on the link state database, and generate their respective optimal IP routing tables: The core network module is also configured to, if it receives a second data packet sent by the data network module, forward the second data packet according to its internal optimal IP routing table and the target IP address in the second data packet, and forward the second data packet to the industrial gateway through the base station and the private network bearer network; The industrial gateway is also used to forward the second data packet to the hardware access module or the virtualization module in the server according to its internal optimal IP routing table and the target IP address in the second data packet.
10. The 5G industrial gateway rapid networking system according to claim 8, characterized in that, After the industrial gateway, the server module, and the core network module each execute the shortest path first algorithm to calculate their respective shortest paths to other nodes based on the link state database, and generate their respective optimal IP routing tables: The server module is also used to announce the routing identifier of the identification routing module configured in its internal virtualization module to the core network module through the link-state routing protocol; The core network module is also used to generate an identification routing table based on the obtained routing identifier, and associate the identification routing table with a preset QoS policy set. The core network module is further configured to, if a third data packet is received, perform fine-grained control according to the QoS policy associated with the routing identifier in the third data packet in the QoS policy set, and forward the third data packet according to its internal optimal IP routing table and the destination IP address in the third data packet.
Citation Information
Cited By
Industrial gateway-oriented multi-protocol data security forwarding method and system
CN121814589A
A multi-protocol data security forwarding method and system for industrial gateway
CN121814589B
