Industrial equipment communication method based on local network and network

By enhancing the function of UPF in the 5G local network, the problem of multicast message forwarding between heterogeneous connected devices is solved, seamless communication and high-security data transmission between industrial devices are achieved, and the interconnection of multi-vendor devices is supported. Interoperability.

CN118842818APending Publication Date: 2024-10-25SHENZHEN AI LINK CO LTD
View PDF 0 Cites 3 Cited by

Patent Information

Application Number
CN202410842493.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

The existing 5G local network cannot forward multicast messages between heterogeneously connected industrial devices, and cannot support multicast forwarding of automation bus standard frame broadcast messages with special formats.

Method used

By adding the function of UPF to the local network, it has the capabilities of routing judgment, data forwarding and data encapsulation processing, and forwarding according to the session tunnel type and physical characteristics of the received packets to realize packets between heterogeneous connection devices. Multicast forwarding, and supports multicast forwarding of automation bus standard frames.

Benefits of technology

It achieves seamless communication between heterogeneously connected industrial equipment, meets the high security requirements of industrial networks and the interconnection and interoperability of multi-vendor equipment, and supports existing industrial equipment discovery protocols such as MachineExpect protocol and multicast forwarding of PROFINET frames.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118842818A_ABST
    Figure CN118842818A_ABST
Patent Text Reader

Abstract

The invention provides an industrial equipment communication method based on a local network and a network. In the method provided by the invention, the UPF in the local network analyzes and forwards the messages received from different types of session tunnels. For the message received from the IP type session tunnel, the UPF encapsulates the message into an Ethernet message by using the network configuration information pre-sent by the network management module, and performs multicast forwarding in the virtual local area network group, so that the multicast forwarding of the message between the industrial devices in heterogeneous connection is realized. For a message received from an Ethernet type session tunnel, the UPF determines whether the received message is an automatic bus standard frame or not by identifying the Ethernet frame type of the message, if yes, information needed by forwarding is read based on the data format of the automatic bus standard frame, multicast forwarding or unicast forwarding is conducted on the message, and therefore the message is forwarded in a multicast mode or a unicast mode. A local network seamlessly supports an existing communication protocol, and multicast forwarding of an automatic bus standard frame is met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a local network-based industrial equipment communication method and network. Background Art

[0002] With the development of the fifth generation (5G) mobile communication technology and local network networking technology, 5G local network has been proposed. 5G local network is also called private 5G network or 5G private network. It uses 5G technology to create a private network at the local user site. The network has unified connectivity, optimized services and secure communication methods in a specific area, and provides high transmission speed, low latency and massive connections supported by 5G technology. In the scenario of industrial Internet of Things, 5G local network can be used to connect a large number of industrial equipment and build an industrial network. For example, sensors can be installed in factories to monitor environmental conditions, support quality control and customized manufacturing. Through the 5G local network, sensor data can be collected and analyzed to finely control all aspects of factory operations. It can transmit the analysis results to intelligent robots through the 5G local network to support product manufacturing or factory goods transportation. With the help of 5G local network, workers can wear lightweight augmented reality devices and complete equipment operations through a virtual environment.

[0003] 5G Local Area Network (LAN) is a widely used local network networking technology. 5GLAN can provide Internet Protocol (IP) type or non-IP type (such as Ethernet type) communication services for a specific terminal group (Virtual Network group, VN group or VN group), and the terminal devices that have signed up for the same VN group belong to the same 5G LAN. The terminal devices in the VN group can communicate with each other, which has the characteristics of LAN communication.

[0004] Based on this, when building an industrial network using the VN group mechanism of the 5G local network, different types of industrial equipment may access the local network with different types of sessions. However, the current 5G local network does not consider the heterogeneous connections between different types of industrial equipment, which results in the 5G local network being unable to forward multicast messages between different types of sessions. Summary of the invention

[0005] The present application provides an industrial equipment communication method and network based on a local network to solve the problem that in a scenario where an industrial network is built based on a local network, the local network cannot forward multicast messages between heterogeneously connected industrial equipment and cannot support multicast forwarding of automation bus standard frame broadcast messages with a special format.

[0006] In a first aspect, the present application provides a local network-based industrial device communication method, the method being applied to a local network, the method comprising:

[0007] The user plane function in the local network receives a first message sent by a first terminal through a first session tunnel; the first session tunnel is a session tunnel between the first terminal device and the user plane function; the first terminal is connected to a first industrial device; the first message is sent by the first industrial device to the first terminal;

[0008] In the case where the first session tunnel is an Internet Protocol (IP) session tunnel, the user plane function uses the pre-stored first network configuration information to encapsulate the first message to obtain a second message, and multicast forwards the second message in the virtual LAN group indicated by the second virtual LAN group identifier; wherein the message format of the second message is an Ethernet message, the destination media access control (Media Access Contro, MAC) address carried by the second message is a broadcast address, the second virtual LAN group identifier carried by the second message is the virtual LAN group identifier included in the first network configuration information, and the virtual LAN group identifier included in the first network configuration information indicates the virtual LAN group to which the first industrial device belongs;

[0009] When the first session tunnel is an Ethernet session tunnel, detecting an Ethernet frame type of the first message;

[0010] Wherein, when the Ethernet frame type is an automation bus standard broadcast frame, the first virtual local area network group identifier carried by the first message is read, and the first message is multicast forwarded in the virtual local area network group indicated by the first virtual local area network group identifier;

[0011] When the Ethernet frame type is an automation bus standard unicast frame or a non-automation bus standard Ethernet frame, the first message is forwarded according to the Ethernet frame type of the first message and the destination MAC address carried by the first message.

[0012] In some embodiments, the user plane function encapsulates the first message using the pre-stored first network configuration information to obtain the second message, including:

[0013] The user plane function performs a matching query in the first mapping information table according to the source IP address of the first message; wherein the source IP address carried by the first message is the IP address of the first industrial device; the first mapping information table includes network configuration information of at least one industrial device, the at least one industrial device belongs to at least one virtual LAN group, and the network configuration information of the industrial device includes an IP address pre-assigned by the first network to the industrial device and a virtual LAN group identifier pre-assigned by the first network to the industrial device;

[0014] When the first network configuration information is successfully matched, the user plane function adds the virtual LAN group identifier in the first network configuration information to the first message, and updates the source MAC address in the first message to the MAC address of the user plane function to obtain the second message.

[0015] In some embodiments, forwarding the first message according to the Ethernet frame type of the first message and the destination MAC address carried by the first message includes:

[0016] When the Ethernet frame type is an automation bus standard unicast frame, the user plane function determines the target Ethernet session tunnel based on the destination MAC address carried by the first message;

[0017] The user plane function sends the first message to the second terminal corresponding to the target MAC address through the target Ethernet session tunnel, so that the second terminal sends the first message to a second industrial device connected to the second terminal.

[0018] In some embodiments, forwarding the first message according to the Ethernet frame type of the first message and the destination MAC address carried by the first message includes:

[0019] When the Ethernet frame type is a non-automation bus standard Ethernet frame, the user plane function determines whether the destination MAC address carried by the first message is consistent with the MAC address of the user plane function;

[0020] When the MAC addresses are consistent, the user plane function uses the destination IP address of the first message to perform a match query in the second mapping information table; when there is a matching record, the first message is encapsulated using the MAC address and the virtual LAN group identifier in the matching record to obtain a third message in IP format, and the third message is multicast forwarded in the virtual LAN group indicated by the third virtual LAN group identifier according to the destination MAC address and the third virtual LAN group identifier carried by the third message;

[0021] In the case of inconsistent MAC addresses, if the destination MAC address carried by the first message indicates that the first message is a non-automation bus standard unicast frame, determining a target Ethernet session tunnel based on the destination MAC address carried by the first message; sending the first message to a second terminal corresponding to the destination MAC address carried by the first message through the target Ethernet session tunnel, so that the second terminal forwards the first message to a connected industrial device or industrial software;

[0022] In the case of inconsistent MAC addresses, if the destination MAC address carried by the first message indicates that the first message is a non-automation bus standard broadcast frame, the virtual LAN group identifier carried by the first message is read, and the first message is multicast forwarded in the virtual LAN group indicated by the second virtual LAN group identifier.

[0023] In some embodiments, before the user plane function in the local network receives the first message sent by the first terminal from the first session tunnel, the method further includes:

[0024] The network management module of the local network creates a virtual local area network group for the first industrial device connected to the first terminal through a unified data management function (Unified Data Management, UDM), and allocates a virtual local area network group identifier to the virtual local area network group to which the first industrial device belongs;

[0025] Therefore, the network management module of the local network sends the network configuration information corresponding to the multiple industrial devices to the user plane function, so that the user plane function generates the first mapping information table; wherein the multiple industrial devices are industrial devices to be added to the virtual local area network group to which the first industrial device belongs; the first mapping information table also includes: the network configuration information of the first industrial device; the network configuration information corresponding to the multiple industrial devices includes: the IP addresses pre-assigned by the local network to the multiple industrial devices, and the virtual local area network group identifiers pre-assigned by the local network to the multiple industrial devices;

[0026] For each of the multiple industrial devices, the user plane function sends a first request to the industrial device, and receives a first response sent by the industrial device; the first request is used to query the MAC address of the industrial device; the first response carries the IP address of the industrial device and the MAC address of the industrial device;

[0027] The user plane function sends the first response and the tunnel identifier to the network management module, so that the network management module adds the terminal connected to the industrial device to the virtual local area network group to which the first industrial device belongs according to the tunnel identifier and the MAC address of the industrial device carried in the first response; wherein the tunnel identifier is used to identify the session tunnel between the industrial device and the user plane function;

[0028] Until all the terminals respectively connected to the plurality of industrial devices join the virtual local area network group to which the first industrial device belongs, the networking is completed.

[0029] In some embodiments, the user plane function sends the first response and the tunnel identifier to the network management module, including:

[0030] The user plane function determines whether to allow forwarding of the first response according to the data frame type of the first response and the tunnel identifier;

[0031] If forwarding is allowed, the user plane function sends the first response and the tunnel identifier to the network management module.

[0032] In some embodiments, the user plane function determines whether to allow forwarding of the first response according to the data frame type of the first response and the tunnel identifier, including:

[0033] The Ethernet type session tunnel module of the user plane function generates a notification message based on the source MAC address and the tunnel identifier in the first response, and sends the notification message to the external data forwarding module of the user plane function;

[0034] The Ethernet type session tunnel module forwards the first response and the tunnel identifier to the external data forwarding module through the internal data forwarding module of the user plane function;

[0035] The external data forwarding module of the user plane function matches the source MAC address in the first response with all received notification messages;

[0036] If there is a matching record, determining that forwarding the first response is allowed;

[0037] If there is no matching record, it is determined that forwarding the first response is not allowed.

[0038] In some embodiments, the network management module adds the terminal connected to the industrial device to the virtual local area network group to which the first industrial device belongs according to the tunnel identifier and the MAC address of the industrial device carried in the first response, including:

[0039] The network management module uses the IP address carried in the first response to perform a match query in the first mapping information table, and generates a second information record according to the successfully matched network configuration information, the received tunnel identifier and the first response; the second information record includes: the tunnel identifier, the source MAC address and IP address carried in the first response, and the virtual local area network group identifier in the successfully matched network configuration information;

[0040] The network management module obtains a subscription permanent identifier of the terminal corresponding to the tunnel identifier;

[0041] The network management module performs a user subscription data modification operation based on the subscription permanent identifier of the terminal corresponding to the tunnel identifier to add the terminal corresponding to the tunnel identifier to the virtual local area network group corresponding to the virtual local area network group identifier to which the first industrial device belongs.

[0042] In a second aspect, the present application provides a communication device, comprising: a module for executing the operations performed by the user plane function in the aforementioned first aspect and any one of the methods of the first aspect.

[0043] In a third aspect, the present application provides a communication device, comprising: a module for executing the operations performed by the network management module in the aforementioned first aspect and any one of the methods described in the first aspect.

[0044] In a fourth aspect, the present application provides a local network, including: a UPF, a network management module, and a first network;

[0045] The terminal connected to the industrial equipment is connected to the UPF through the first network; the network management module is connected to the user plane function through the first network;

[0046] The user plane function is used to perform the operations performed by the user plane function in the aforementioned first aspect and any one of the methods of the first aspect;

[0047] The network management module is used to execute the operations performed by the network management module in the aforementioned first aspect and any one of the methods of the first aspect.

[0048] In a fifth aspect, the present application provides an industrial network, comprising: at least one industrial device, at least one terminal device, and the local network as described in the fourth aspect; the at least one industrial device is connected to the at least one terminal device in a one-to-one correspondence;

[0049] Wherein, the terminal device is connected to the UPF in the local network through an IP type session or an Ethernet type session; the network management module in the local network is connected to the UPF;

[0050] The UPF is used to perform the operations performed by the UPF in the first aspect and any one of the methods described in the first aspect;

[0051] The network management module is used to execute the operations performed by the network management module in the aforementioned first aspect and any one of the methods of the first aspect.

[0052] In a sixth aspect, the present application provides an electronic device, including: a memory and a processor;

[0053] The memory is configured to store computer program instructions;

[0054] The processor is configured to run the computer program instructions so that the electronic device implements the operations performed by the UPF in the first aspect, or implements the operations performed by the network management module in the first aspect.

[0055] In a seventh aspect, the present application provides a computer program product, and an electronic device runs the computer program product so that the electronic device implements the operations performed by the UPF in the first aspect, or implements the operations performed by the network management module in the first aspect.

[0056] The embodiment of the present application provides a local network-based industrial equipment communication method and network. In the method of the present application, the UPF in the local network analyzes and forwards the messages received from different types of session tunnels. Among them, for the messages received from the IP type session tunnel, the UPF uses the network configuration information sent in advance by the network management module to encapsulate the message into an Ethernet message, and multicast forwards it in the virtual local area network group, thereby realizing the multicast forwarding of messages between heterogeneously connected industrial devices. For the messages received from the Ethernet type session tunnel, the UPF determines whether the received message is an automation bus standard frame by identifying the Ethernet frame type of the message. If so, the information required for forwarding is read based on the data format of the automation bus standard frame, and the message is multicast forwarded or unicast forwarded. In this way, the local network seamlessly supports the existing communication protocol and meets the multicast forwarding of the automation bus standard frame. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 is a schematic diagram of a 5G local network in the related art;

[0058] Figure 2 Schematic diagram of the scenario of traffic forwarding for 5G local network;

[0059] Figure 3 Schematic diagram of another scenario of traffic forwarding for 5G local network;

[0060] Figure 4A A schematic diagram of an existing industrial network exemplified for this application;

[0061] Figure 4B for Figure 4A The flowchart of device discovery in the industrial network shown;

[0062] Figure 5A A schematic diagram of an existing industrial network exemplified for this application;

[0063] Figure 5B for Figure 5A The flowchart of device discovery in the industrial network shown;

[0064] Figure 6 This is a schematic diagram of the structure of an industrial network exemplified in this application;

[0065] Figure 7 A flowchart of a local network-based industrial device communication method provided by an embodiment of the present application;

[0066] Figure 8 A flowchart of a local network-based industrial device communication method provided by another embodiment of the present application;

[0067] Fig. 9 A flowchart of a local network-based industrial device communication method provided by another embodiment of the present application;

[0068] Fig.10 A flowchart of a local network-based industrial device communication method provided by another embodiment of the present application;

[0069] Fig.11 A flow chart of a communication device provided in one embodiment of the present application;

[0070] Fig.12 A structural diagram of an electronic device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0071] In this application, "at least one" means one or more, and "plurality" means two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the associated objects before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c alone can represent: a, b, c, a and b, a and c, or a, b, and c, where a, b, and c can be single or multiple. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.

[0072] The terms "connected" and "connected" should be understood in a broad sense. For example, the "connected" or "connected" of a circuit structure can refer to not only physical connection, but also electrical connection or signal connection. For example, it can be directly connected, that is, physically connected, or indirectly connected through at least one intermediate element, as long as the circuit is connected, or it can be the internal connection of two elements; signal connection can refer to signal connection through a circuit or through a media medium, such as radio waves. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.

[0073] 5G local networks are built on 5G devices, including 5G terminal equipment (UE), 5G wireless base stations and 5G core network equipment. They are exclusive to network owners, namely local users, and can be managed independently and are easy to deploy. 5G local networks can eliminate the dependence on wired devices such as Ethernet, which are not only expensive and bulky, but also unable to connect a large number of mobile devices and personnel.

[0074] Figure 1 This is a schematic diagram of a 5G local network shown in an embodiment of the present application. Figure 1As shown, the 5G local network includes: Network Slice Selection Function (NSSF), Network Exposure Function (NEF), Network Data Repository Function (NRF), Policy Control Function (PCF), Unified Data Management Function (UDM), Application Function (AF), Authentication Server Function (AUSF), Access and Mobility Management Function (AMF), Session Management Function (SMF), 5G Radio Access Network (NG-RAN), User Plane Function (UPF), Data Network (DN) and UE.

[0075] It should be noted that Figure 1 The 5G local network shown is only an example. In actual scenarios, the 5G local network may include more or fewer network functional entities.

[0076] The network function entities in the 5G local network can communicate through the service interface. Specifically, the terminal device communicates with NG-RAN through the Uu interface (the Uu interface is not shown in the figure), and the terminal device communicates with AMF through the N1 interface. AMF communicates with NG-RAN through the N2 interface. NG-RAN communicates with UPF through the N3 interface. SMF communicates with UPF through the N4 interface. UPF communicates with DN through the N6 interface. NSSF, NEF, NRF, PCF, UDM, AF, AUSF, AMF, and SMF are respectively connected to the communication bus through their respective service interfaces. These network function entities can communicate with each other through their corresponding service interfaces and communication buses. Figure 1 The service interfaces provided by different network function entities are distinguished by the subscript of N, where the subscript is the name of the network function entity that provides the service interface.

[0077] 5G local networks can be configured locally, and the network owner has full control over the network, such as security, network resource usage, etc. The network owner can assign higher priority to critical devices to use network resources. Based on the advantages of 5G local networks, 5G local networks are widely used in various fields. And 5G local networks can be deployed in almost any park, enterprise building or public place, especially in specific areas where public 5G networks are deployed slowly, 5G local networks can be deployed quickly. For example, in the Industrial Internet of Things (IIoT) scenario, sensors will be installed in factories to monitor environmental conditions, support quality control and customized manufacturing. Through the 5G local network, sensor data can be collected and analyzed to finely control all aspects of factory operations. It can transmit the analysis results to intelligent robots through the 5G local network to support product manufacturing or transportation of items in the factory area. With the help of 5G local networks, workers can wear lightweight augmented reality devices to complete equipment operations through virtual environments.

[0078] 5G LAN-type Services, that is, LAN-type services built on 5G networks, can provide IP-type or Ethernet-type communication services for specific VNs. The communication between terminals that have signed contracts for the same VN group and are in the same 5G LAN has the characteristics of LAN communication.

[0079] The 5G VN group contains the following three parts:

[0080] (1) 5G VN group identifier: used to identify the 5G VN group, including external group identifier and internal group identifier. The external group identifier is used to interact with AF in the network capability exposure scenario; the internal group identifier is used to interact with the internal network function entity. The external group identifier and the internal group identifier are stored in a corresponding relationship in the UDM.

[0081] (2) 5G VN group members: 5G VN group members are uniquely identified by a general public subscription identifier (GPSI) and generated by a contract.

[0082] (3) 5G VN group data: 5G VN group data may include the following parameters: protocol data unit (PDU) session type, data network name (DNN), independent network slice selection auxiliary information (S-NSSAI) and application descriptor, information related to secondary authentication / authorization (for example, IP address allocation for enabling DN-AAA [authentication, authorization, accounting]). 5G VN group data can be dynamically configured according to business needs.

[0083] The VN mechanism based on 5G LAN can support tens of thousands of terminal devices. Unicast, multicast, and broadcast private communications can be established on demand between terminal devices in the same VN group. Terminal devices can belong to different PLMNs, and their access rights to 5G LAN can be restricted based on their locations.

[0084] The management of 5G VN groups mainly involves two aspects: adding, deleting, and modifying VN group members, and configuring VN group data. There are also two management methods: management through the internal OAM platform, or opening the management capability to the external AF through NEF.

[0085] The members of the same VN group can communicate with each other. Currently, 5G VN allows the use of three types of traffic forwarding strategies:

[0086] (1) Traffic forwarding strategy based on N6

[0087] That is, the uplink service data or downlink service data of 5G VN communication is sent to DN or forwarded from DN through N6 interface. Figure 1 As shown, the N6 interface is the communication interface between the UPF and the DN.

[0088] Among them, this traffic forwarding strategy can meet the needs of terminal devices in the local area network to access external data networks.

[0089] (2) Traffic forwarding strategy based on N19

[0090] The uplink or downlink communication of the 5G VN group communication is forwarded between the PSA UPF of the PDU session through the N19 interface. Among them, the PSA (PDU Session Anchor) UPF is a UPF with routing judgment and forwarding capabilities. Traffic forwarding based on N19 generally occurs in cross-regional 5G LAN VN communication scenarios, and the sending and receiving users belong to UPFs in different regions.

[0091] For example, see Figure 2 In the scenario shown, UE1 accesses 5G wireless access network 1, which is connected to PSAUPF1 via N3; UE2 accesses 5G wireless access network 2, which is connected to PSAUPF2 via N3; PSAUPF1 and PSA UPF2 communicate via N19. Figure 2 In the illustrated embodiment, UE1 and UE2 may belong to different 5G LANVNs to achieve cross-regional communication.

[0092] It should be noted that in Figure 2In the scenario shown, UPF1 can also be set between the 5G wireless access network 1 and PSA UPF1, and UPF1 is used to forward traffic between the 5G wireless access network 1 and PSA UPF1; UPF2 can also be set between the 5G wireless access network 2 and PSA UPF2, and UPF2 is used to forward traffic between the 5G wireless access network 2 and PSA UPF2.

[0093] (3) Process forwarding strategy based on local switch

[0094] If the UPF is a common PSA UPF for different PDU sessions of the same 5G VN group, the traffic is forwarded locally by a single UPF. Traffic forwarding based on local switches generally occurs in scenarios where enterprises need dedicated UPFs to be deployed in campuses and hope that data does not leave the campus. In other scenarios, SMF will try to select the same PSA UPF for both communicating parties to achieve local switching.

[0095] For example, see Figure 3 As shown, UE1 accesses 5G wireless access network 1, and 5G wireless access network 1 is connected to PSAUPF through N3 interface; UE2 accesses 5G wireless access network 2, and 5G wireless access network 2 is connected to PSA UPF through N3 interface; UE1 and UE2 belong to the same 5G VN group, and Figure 3 The PSA UPF shown in FIG. 1 is a common PSA UPF for the PDU session of UE1 and the PDU session of UE2, and can realize local switching between UE1 and UE2.

[0096] The several traffic forwarding strategies shown above are determined by the PDU session policy, which is executed by the SMF. The SMF receives the PDU session policy associated with the UE of the VN group from the PCF, including the user route selection policy (UE Route Selection Policy, URSP). The PDU session policy is generated by the PCF based on the AF request conversion and is applicable to the 5G VN group policy. The AF request can be considered as the customer's request for traffic identification and routing forwarding strategy for the 5G LAN VN based on the actual business model, and the ability to dynamically update the policy can be opened to the AF through the NEF.

[0097] In VN communication session management, all PDU sessions of a 5G VN group communication are managed by a dedicated SMF, and the same SMF is always selected during the session. SMF retrieves SM subscription data related to 5G LAN type services from UDM as part of the UE subscription data of DNN.

[0098] During the establishment of the PDU session, secondary authentication is performed to authenticate and authorize the UE to access the DNN associated with the 5G VN group (the DNN is signed in the VN group data). Authentication and authorization of the DNN using secondary authentication (bidirectional authentication) means authenticating and authorizing the associated 5G VN group. The PDU session provides access to one and only one 5G VN group. The UE provides the DNN associated with the 5G VN group and uses the PDU session establishment process to access the 5G LAN type services of the 5G VN.

[0099] The session management related policy control for DNN and S-NSSAI applies to the DNN and S-NSSAI associated with the 5G VN group. This also includes the use of URSP so that the UE determines how to route outgoing traffic to the PDU session of the DNN and S-NSSAI associated with the 5G VN group.

[0100] The PDU session provides unicast, broadcast, and multicast communications for the DNN and S-NSSAI associated with the 5G VN group. The PSA UPF determines whether the communication is for unicast, broadcast, or multicast based on the destination address of the received data, and performs unicast, broadcast, or multicast communication processing.

[0101] 5G VN group data can be stored in UDM and meet the following characteristics:

[0102] NEF provides UDM with external group identity, 5G VN group member information and 5G VN group data.

[0103] If necessary, the UDM updates the internal group ID list of the corresponding UE's subscription data in the UDR.

[0104] If necessary, the UDM updates the group identifier translation in the group subscription data with the internal group identifier, external group identifier, and group member list.

[0105] UDM stores and updates 5G V-group data in UDR, such as PDU session type, DNN and S-NSSAI, application descriptor, and information related to secondary authentication / authorization.

[0106] In industrial scenarios, industrial equipment often forms an industrial network by connecting to Ethernet, so that industrial equipment can communicate with each other through Ethernet. Figure 4A , Figure 4B , Figure 5A and Figure 5B The architecture and working process of an industrial network formed based on Ethernet are exemplified. Figure 4B and Figure 5B The following uses the device discovery scenario as an example.

[0107] See also Figure 4A As shown, the industrial network 40 includes: configuration software, at least one PLC and Ethernet, and the configuration software and at least one PLC are connected to the Ethernet through terminal devices respectively. After the configuration software is started, the MachineExpect protocol is used to detect the surviving PLCs in the industrial network. Figure 4A The dashed line indicates that the two communicate via the Machine Expect protocol.

[0108] See also Figure 4B As shown, Figure 4A The device discovery of the industrial network 40 shown may include the following steps:

[0109] Step 41: The configuration software sends the encrypted broadcast field in the form of a UDP message. Accordingly, the PLCs in the same network segment can receive the encrypted broadcast field.

[0110] Step 42: The PLC returns device information via a multicast message, wherein the device information includes: the MAC address, IP address, firmware version, project file, device name, model, and other information of the PLC.

[0111] Accordingly, the configuration software receives the multicast message sent by the PLC.

[0112] Step 43: The configuration software saves the device information of the PLC in the device list.

[0113] Step 44: The configuration software initiates a connection to the PLC according to the MAC address or IP address in the device information.

[0114] In this way, the surviving PLC in the industrial network was successfully detected through the above process configuration software.

[0115] See also Figure 5A As shown, the industrial network 50 includes: a master PLC (also called a PLC master device or a PLC master station), at least one slave PLC (also called a PLC slave device or a PLC slave station) and Ethernet, and the PLC master station and at least one PLC slave station are respectively connected to the Ethernet through UE. Figure 5A The dotted line connecting the PLC master device and the PLC slave device indicates that the two communicate using the DCP protocol.

[0116] See also Figure 5B As shown, Figure 5A The device discovery of the industrial network 50 shown may include the following steps:

[0117] Step 51, the PLC master device uses the DCP Identify command in the DCP protocol to find the IP address of the target slave device. The device name of the target slave device is "abcc40pir". The DCP Identify command is transmitted on the network using a PROFINET broadcast frame. The PROFINET broadcast frame carries FrameID=0xFEFE.

[0118] Step 52, the PLC slave device responds. Specifically, after receiving the DCP Identify broadcast frame, the PLC slave device responds, using PROFINET unicast frames (FrameID = 0xFEFF) for transmission, and its target address is the MAC address of the PLC master device. The response information includes the device name (abcc40pir) of the PLC slave device, IP address (0.0.0.0), vendor identification information VendorID, device ID and device type. It should be noted that the IP address fed back by the PLC slave device during the response is an invalid address and cannot be used for normal communication.

[0119] Step 53: The PLC master device sends an Address Resolution Protocol (ARP) request to detect whether the IP address set inside the PLC master device is used by other devices to avoid IP address conflicts on the network.

[0120] ARP requests are sent in broadcast form.

[0121] After multiple ARP broadcast detections, the PLC master device did not detect that there were other devices on the network using the IP address set by the machine, so the PLC master device confirmed that the IP address set by the machine was available.

[0122] Step 54: After ensuring that there is no IP address conflict, the PLC master device sets the IP address for the PLC slave device using the DCP Set command. The DCP Set command is transmitted via a PROFINET unicast frame (FrameID=0xFEFD).

[0123] Step 55: After receiving the DCP Set command, the PLC slave device returns a PLC DCP Set response to the PLC master device to confirm that the IP address is set successfully.

[0124] Step 56: After the PLC master device confirms again through ARP detection that the IP address allocated to the PLC slave device does not cause an IP address conflict, it communicates with the PLC slave device using the IP address set by DCP Set as the destination address.

[0125] This indicates that the PLC master device successfully discovers the surviving PLC slave devices in the industrial network.

[0126] With the rapid development of communication technology, the solution of building industrial networks using 5G local networks has been proposed. However, there are the following problems:

[0127] 1. The existing 5G local network does not take into account the heterogeneous connection between the configuration software and the PLC, resulting in the inability to forward multicast messages. Specifically, the terminal device running the configuration software (such as a laptop) mainly accesses the 5G local network through a 5G USB dongle (USB network card) in the form of an IP type session, and the PLC can access the 5G local network through a 5G gateway in the form of an Ethernet type session. However, combined with the above Figures 1 to 3 In the illustrated embodiment, the UPF in the 5G local network can implement the layer 2 switching function but cannot implement the layer 3 switching function. Therefore, the 5G local network can support IP sessions but cannot support Ethernet sessions. However, PLC communication via Ethernet requires layer 3 switching. Therefore, multicast message forwarding between different types of sessions cannot be achieved using the existing 5G local network.

[0128] The above-mentioned layer 2 and layer 3 switching problems are usually solved by adding switches to the network. Specifically, the switch is used to encapsulate IP packets (i.e., packets in IP format) into Ethernet packets for transmission. However, the switch will subsequently transmit the packets in a flooding manner, which cannot meet the high security requirements of industrial networks.

[0129] 2. The existing 5G local network does not consider how to seamlessly support existing industrial equipment discovery protocols (for example, MachineExpect protocol, DCP protocol). Among them, the DCP protocol uses PROFINET frames for data transmission. Due to the special encapsulation format of PROFINET frames, it is impossible to use the VN group mechanism of 5G private networks to implement message multicast.

[0130] There is currently a lack of feasible solutions to the message multicast problem that exists when building industrial networks using 5G local networks.

[0131] Based on this, the present application provides an industrial equipment communication method, communication device and network based on a local network. By increasing the function of UPF in the local network, UPF has the ability of routing judgment, data forwarding and data encapsulation processing. In this way, UPF forwards messages according to the session tunnel type of the received message to be transmitted and the physical characteristics of the message, thereby meeting the multicast forwarding requirements of the message to be transmitted.

[0132] Next, the local network-based industrial equipment communication method provided by the present application is described in detail through some embodiments and in combination with the accompanying drawings.

[0133] Figure 6A schematic diagram of an industrial network formed based on a local network provided in an embodiment of the present application. Figure 6 As shown, the industrial network 60 includes: a local network 61, multiple industrial devices 64 and multiple terminals 65, and the multiple industrial devices 64 correspond one to one with multiple UEs 65. Among them, the local network 61 includes: a first network, a network management module 62 and UPF63, and the first network includes network function entities in the local network 61 except the network management module 62 and UPF63.

[0134] Among them, the local network 61 can be used Figure 1 It should be understood that with the continuous development of communication technology, the local network used to form the industrial network can also be implemented by the local network of the next generation mobile communication system or other specific networks, and this application does not limit this.

[0135] UE 65: can be called user equipment, terminal, access terminal, user unit, user station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, wireless communication device, user agent or user device. UE 65 can also be a cellular phone, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a handheld device with wireless communication function, a computing device or other processing device connected to a wireless modem, a vehicle-mounted device, a wearable device, a terminal device in a 5G network or a terminal device in a public land mobile communication network (PLMN) to be evolved in the future, etc. It can also be an end device, a logical entity, an intelligent device, such as a mobile phone, an intelligent terminal and other terminal devices, or a server, a gateway, a base station, a controller and other communication devices, or an Internet of Things device, such as a sensor, an electric meter, a water meter and other Internet of Things (IoT) devices. The embodiments of the present application are not limited to this.

[0136] The network management module 62 is connected to the NEF and UPF 63 in the local network 61. The network management module 62 is mainly used to send the network configuration information of the industrial equipment to the UPF 63, and, during the industrial network initialization process, interact with other network function entities in the local network 61 to modify the user contract data of the industrial equipment, thereby realizing automatic networking of the industrial equipment.

[0137] The plurality of industrial devices 64 may include one or more of: PLC, configuration software. Figure 6In the industrial network 60 shown, a PLC master device, a PLC slave device, and a configuration software are used as examples for illustration. It should be understood that in actual industrial scenarios, the number of PLCs and configuration software may be greater. In addition, multiple industrial devices 64 are connected to the wireless access network of the local network through their respective corresponding UEs, such as Figure 6 R(AN) shown in .

[0138] For the UPF in the local network 61, the UPF 63 may include: an IP type session tunnel module, an Ethernet session tunnel module, an internal data forwarding module, and an external data forwarding module. The internal data forwarding module and the external data forwarding module communicate with each other through a message queue.

[0139] Among them, the IP type session tunnel module is used to realize data transmission between UPF 63 and industrial equipment that accesses the local network 61 through IP type sessions.

[0140] The Ethernet type session tunnel is used to implement data transmission between the UPF 63 and the industrial device that accesses the local network 61 through the Ethernet type session.

[0141] The internal data forwarding module and the external data forwarding module are used together to realize data forwarding between IP type sessions and Ethernet type sessions to meet the communication needs of heterogeneously connected industrial equipment; and the external data forwarding module can support multicast forwarding and unicast forwarding of PROFINET frames with special frame formats, realizing the interconnection of industrial equipment from multiple manufacturers through the local network 61.

[0142] In addition, when industrial equipment is networked through the above-mentioned local network, there is no need for tedious manual configuration, and rapid and automatic networking can be achieved.

[0143] Next, through Figures 7 to 9 The embodiment introduces the data interaction process between industrial devices in detail; Fig.10 The illustrated embodiment introduces in detail the initialization process of industrial equipment accessing a local network.

[0144] Figure 7 This is a flowchart of a local network-based industrial device communication method provided by an embodiment of the present application. Figure 7 As shown, the method of this embodiment includes:

[0145] S701. UPF receives a first message sent by a first industrial device through a first session tunnel.

[0146] The first industrial device is connected to the first terminal. The first industrial device can be any one of configuration software, PLC master device and PLC slave device.

[0147] The first message can be any business data message. For example, in the device discovery scenario, when the first industrial device is a configuration software or a PLC master device, the first message is a device discovery request message, which is used to detect surviving industrial devices in the industrial network; when the first industrial device is a PLC slave device, the first message can be a device discovery response message for the device discovery request message, which is used to report the current survival of the industrial device.

[0148] The first session tunnel is a session channel between the first industrial device and the UPF, and is used to transmit data between the first industrial device and the UPF. The first session tunnel can be an IP type session tunnel or an Ethernet type session tunnel, depending on the type of the first industrial device. Exemplarily, when the first industrial device is configuration software, the first session tunnel is an IP type session tunnel; when the first industrial device is a PLC, the first session tunnel is an Ethernet type session tunnel.

[0149] Combination Figure 6 As shown, when business data is exchanged between industrial devices, the first industrial device sends the first message to the wireless access network through the Uu interface through the connected first terminal, and the wireless access network sends the first message to the session tunnel module matching the session type in the user plane function through the N3 interface. For example, when the first industrial device is configuration software, the session tunnel between the configuration software and UPF is an IP type session tunnel, and the configuration software sends the first message to the connected terminal, wherein the terminal accesses the wireless access network through a USB network card; the terminal sends the first message to R(AN) through the USB network card, and R(AN) sends the first message to the IP type session tunnel module of UPF through the N3 interface. For another example, when the first industrial device is a PLC, the session tunnel between the PLC and UPF is an Ethernet type session tunnel; the PLC sends the first message to the connected terminal, the terminal sends the first message to R(AN), and R(AN) sends the first message to the Ethernet type session tunnel module of UPF through the N3 interface.

[0150] The IP type session tunnel module or Ethernet type session tunnel module of UPF forwards the received first message to the internal data forwarding module, and the internal data forwarding module and the external data forwarding module work together to determine whether the first message needs to be looped back inside the UPF or sent to the DN, and determine whether the first message needs to be multicast forwarded or unicast forwarded.

[0151] Among them, if the first session tunnel is an IP type session tunnel, that is, UPF receives the first message through the IP type session tunnel, then execute S702 and S703; if the first session tunnel is an Ethernet type session tunnel, that is, UPF receives the first message through the Ethernet type session tunnel, then execute S704 to S706.

[0152] S702 and the UPF encapsulate the first packet using the pre-stored first network configuration information to obtain a second packet, where the second packet is an IP packet.

[0153] If the configuration software accesses the local network through an IP-type session, then the first packet sent by the terminal connected to the configuration software through the USB network card is an IP packet, but the IP packet cannot be three-layer forwarded. Based on this, the purpose of this step is to encapsulate the IP packet into an Ethernet packet so that the local network can support three-layer forwarding and successfully transmit the packet to the PLC to meet the communication requirements between heterogeneous connected industrial devices.

[0154] Combined with Figure 6 the industrial network shown in the figure, the network management module will pre-send the network configuration information of the industrial devices participating in the network formation to the UPF, so that when the UPF receives an IP-type session tunnel transmission, it can determine the packet forwarding processing method based on the pre-stored network configuration information and provide the relevant information required for encapsulation processing.

[0155] The first network configuration information in this step is the network configuration information corresponding to the first industrial device pre-stored in the UPF. The first network configuration information includes: the IP address pre-allocated by the local network for the first industrial device and the virtual local area network group identifier pre-allocated by the local network for the virtual local area network group to which the first industrial device belongs. In some embodiments, the UPF maintains the network configuration information of a large number of industrial devices. Among them, the manifestation form of the network configuration information can be but not limited to <IP address, VLAN ID>, where the VLAN ID is the virtual local area network group identifier of the virtual local area network group to which the industrial device belongs, and the manifestation form of the first network configuration information is similar to this. When performing data transmission, the UPF can determine the first network configuration information by means of matching query.

[0156] In some embodiments, the forwarding processing methods of the first packet include: encapsulation and forwarding, and discarding.

[0157] Among them, the implementation method for the UPF to determine the forwarding processing method of the first packet is as follows: The UPF uses the IP address carried in the first packet to match the IP addresses in all the network configuration information stored in the UPF; if the first network configuration information is matched, it is determined that the first packet needs to be encapsulated into an Ethernet packet and three-layer forwarded; if the first network configuration information is not matched, the first packet is discarded.

[0158] In some embodiments, the UPF encapsulates the first packet using the first network configuration information, and the implementation method is as follows:

[0159] When UPF determines that the destination MAC address carried by the first message is a broadcast address, UPF determines that the first message needs to be multicast forwarded. Then, UPF adds the virtual LAN group identifier in the first network configuration information as the second virtual LAN group identifier to the first message, and adds the corresponding message header to form a second message.

[0160] It should be noted that the destination MAC address carried by the second message is the broadcast address carried by the first message. In this way, the network device can determine whether the message or the encapsulated message needs to be broadcast based on the broadcast address.

[0161] S703: Multicast forwarding the second message in the virtual local area network group indicated by the second virtual local area network group identifier.

[0162] Among them, UPF sends the first message to DN through the N6 interface, and the network device in DN uses the second virtual LAN group identifier carried by the second message as the external group identifier of the VN group, thereby forwarding the second message to each member in the VN group.

[0163] In this way, multicast forwarding of messages between heterogeneously connected industrial devices in a virtual local area network group is achieved through S702 and S703. It should be noted that the second virtual local area network group identifier carried by the second message is the basis for the network device to determine the forwarding range when multicast forwarding the second message. In this way, it is possible to prevent other devices outside the virtual local area network group to which the first industrial device belongs from obtaining the second message, thereby effectively improving data security.

[0164] S704: Detect the Ethernet frame type of the first message.

[0165] The Ethernet frame types include: PROFINET broadcast frame, PROFINET unicast frame, non-PROFINET broadcast frame and non-PROFINET unicast frame.

[0166] The Ethernet frame type of the first message may be any of the above Ethernet frame types.

[0167] In some embodiments, the first message carries an Ethernet frame type field, and the UPF can determine whether the first message is a PROFINET frame or a non-PROFINET frame by detecting the value of the Ethernet frame type field.

[0168] If the first message is a PROFINET frame, it is necessary to further detect the FrameID value carried by the first message to determine whether the first message is a broadcast frame or a unicast frame. If FrameID = 0xFEFE, the first message is determined to be a PROFINET broadcast frame, and S705 is further executed; if FrameID = 0xFEFF, the first message is determined to be a PROFINET unicast frame, and S706 is further executed.

[0169] If the first message is a non-PROFINET frame, S706 is executed. In the case of a non-PROFINET frame, the first message may be a non-PROFINET broadcast frame or a non-PROFINET unicast frame.

[0170] S705: Read the first virtual local area network group identifier carried in the first message, and multicast forward the first message in the virtual local area network group indicated by the first virtual local area network group identifier.

[0171] The first virtual LAN group identifier carried in the first message indicates the virtual LAN group to which the first industrial device belongs, and the UPF uses the first virtual LAN group identifier as an external group identifier to perform multicast forwarding of the first message to the virtual LAN group.

[0172] In this way, the local network supports multicast forwarding of PROFINET frames.

[0173] S706: Forward the first message according to the Ethernet frame type of the first message and the destination MAC address carried by the first message.

[0174] In some embodiments, if the Ethernet frame type of the first message is a PROFINET unicast frame, the second industrial device is determined based on the destination MAC address carried by the first message, and the first message is forwarded to the second industrial device through the session tunnel between the second terminal corresponding to the second industrial device and the UPF.

[0175] If the Ethernet frame type of the first message is a non-PROFINET frame, determine whether the first message is a broadcast frame or a unicast frame based on the destination MAC address carried by the first message. If it is a broadcast frame, read the first virtual LAN group identifier carried by the first message, and use the first virtual LAN group identifier as the external group identifier to multicast forward the first message in the virtual LAN group indicated by the first virtual LAN group identifier. If it is a unicast frame, determine the second industrial device based on the destination MAC address carried by the first message, and forward the first message to the second industrial device through the session tunnel between the second terminal corresponding to the second industrial device and the UPF.

[0176] The method of this embodiment can realize multicast forwarding of messages between heterogeneously connected industrial devices belonging to the same LAN group through UPF, and can also support multicast and unicast transmission of PROFINET frames with special frame formats, so that industrial equipment from multiple manufacturers can be interconnected through the local network.

[0177] Figure 7The illustrated embodiment may be applicable to a scenario where configuration software sends messages to a PLC slave device, or to a scenario where a PLC slave device sends messages to configuration software, or to a scenario where a PLC master device sends messages to a PLC slave device, or to a scenario where a PLC slave device sends messages to a PLC master device.

[0178] Next, through Figure 8 The illustrated embodiment illustrates how to implement multicast forwarding of messages between heterogeneously connected industrial devices through UPF. Figure 8 In the illustrated embodiment, the first industrial device is configuration software, and the first message is a device discovery request message.

[0179] Figure 8 This is a flowchart of a local network-based industrial device communication method provided by another embodiment of the present application. Figure 8 As shown, the method of this embodiment includes:

[0180] S801. The IP type session tunnel module of UPF receives a device discovery request message sent by the configuration software.

[0181] S802. The IP type session tunnel module of UPF forwards the device discovery request message to the internal data forwarding module of UPF.

[0182] S803. The internal data forwarding module of UPF forwards the device discovery request message to the external data forwarding module of UPF according to a preset forwarding action strategy.

[0183] The forwarding action strategy is sent in advance by the SMF to the UPF, and is used to control the forwarding of IP messages and Ethernet messages. In this embodiment, the forwarding action strategy can be formulated for different industrial devices, or it can be a universal forwarding strategy, which is not limited in this application.

[0184] In some embodiments, in an industrial network where only configuration software accesses the local network through an IP type session and no other industrial devices access the local network through an IP type session, the forwarding action strategy can be configured to uniformly forward IP packets to an external data forwarding module.

[0185] Combination Figure 6 As shown, the internal data forwarding module determines that the device discovery request is an IP message according to the destination IP address and the source IP address in the device discovery request message, and then the internal data forwarding module forwards the device discovery request message to the external data forwarding module through the N6 interface.

[0186] S804. The external data forwarding module of UPF performs a matching query in the first mapping information table according to the source IP address of the first message.

[0187] The source IP address carried in the device discovery request message is the IP address of the first industrial device. The IP address of the first industrial device is the IP address without IP address conflict assigned by the local network to the first industrial device when it accesses the local network for initialization.

[0188] The first mapping information table is a data structure in the UPF used to store the network configuration information of one or more industrial devices participating in the network. Among them, the network configuration information of the industrial device is sent by the network management module to the UPF during the network formation process. The manifestation form of the network configuration information of the industrial device can be but is not limited to <IP address, VLAN ID>. The VLAN ID is the virtual local area network group identifier of the virtual local area network group to which the industrial device belongs, and is pre-assigned by the local network to the virtual local area network group to which the industrial device belongs. Therefore, it can also be understood that it is pre-assigned by the local network to the industrial device. The virtual local area network to which the industrial device belongs can be determined according to the network formation requirements.

[0189] The industrial devices in the above-mentioned first mapping information table can belong to the same virtual local area network group or different virtual local area network groups. For example, there are N industrial devices, the 1st to Mth industrial devices belong to virtual local area network group 1, and the (M + 1)th to Nth industrial devices belong to virtual local area network group 2. Among them, N is greater than M, and N and M are positive integers.

[0190] When the external data forwarding module of the UPF receives the device discovery request message through the N6 interface, it performs the matching query operation shown in S804. Specifically, the external data forwarding module reads the source IP address carried in the device discovery request message, and uses the read source IP address as an index to match the IP addresses in each network configuration information in the first mapping information table. When the match is successful, the matched network configuration information is the first network configuration information corresponding to the first industrial device, which also indicates that the first industrial device is a legal network device for network formation, allowing further encapsulation processing and forwarding of the message, that is, performing S805. When the match fails, it indicates that the first industrial device is not a legal network device for network formation, and the device discovery request message should be discarded to ensure the security of the industrial network.

[0191] S805: The external data forwarding module of the UPF adds the virtual local area network group identifier in the first network configuration information as the second virtual local area network group identifier to the device discovery request message, and updates the source MAC address in the device discovery request message to the MAC address of the external data forwarding module to obtain an Ethernet data frame.

[0192] The Ethernet data frame obtained through the encapsulation process is equivalent to the aforementioned second message.

[0193] The destination MAC address in the Ethernet data frame obtained in S805 is a broadcast address, the source MAC address is the MAC address of the external data forwarding module, and the virtual LAN group identifier is the virtual LAN group identifier in the first network configuration information.

[0194] S806. The external data forwarding module of the UPF multicasts and forwards the Ethernet data frame in the virtual LAN group indicated by the second virtual LAN group identifier.

[0195] Correspondingly, all members in the virtual local area network group indicated by the second virtual local area network group identifier can receive the Ethernet data frame and obtain the information content in the device discovery request message.

[0196] In summary, S801 to S806 describe the process of starting the configuration software and performing device discovery. Through S801 to S806, multicast forwarding of device discovery request messages between heterogeneously connected configuration software and PLC slave devices can be achieved in the scenario of industrial device networking in the local network.

[0197] Optionally, after S806, the following steps may also be included:

[0198] S807. The Ethernet type session tunnel module of UPF receives the device discovery response message sent by PLC.

[0199] It should be noted that, in the response phase shown from S807 to S811, the device discovery response message sent by the PLC is equivalent to the first message.

[0200] In some embodiments, after the PLC receives a device discovery request message from a connected terminal device, it extracts the source MAC address and source IP address in the device discovery request message, generates a device discovery response message, and returns the device discovery request message to the UPF through the Ethernet session tunnel between the PLC and the UPF. In this way, the Ethernet type session tunnel module of the UPF can receive the device discovery response message through the Ethernet session tunnel.

[0201] It should be understood that the device discovery response message is an Ethernet message. In the response phase, the device discovery response message is equivalent to Figure 7 The first message in the illustrated embodiment. The present application does not limit the manner in which the PLC generates a device discovery response message. For example, when the configuration software communicates with the PLC slave device based on the Machine Expect protocol, the device discovery response message may comply with the data format specification of the Machine Expect protocol.

[0202] The internal data forwarding module of S808 and UPF reads the destination MAC address and source MAC address carried in the device discovery response message, and forwards the device discovery response message to the external data forwarding module of UPF according to the forwarding action policy.

[0203] Among them, the SMF pre-downloads the forwarding action policy to the UPF. The forwarding action policy indicates that the message with the destination MAC address being the MAC address of the external data forwarding module needs to be forwarded to the external data forwarding module. Therefore, the internal data forwarding module forwards the device discovery response message to the external data forwarding module.

[0204] S809. The external data forwarding module of UPF reads the destination MAC address in the device discovery response message, and determines whether the message needs to be forwarded at the IP layer according to the destination MAC address in the device discovery response message.

[0205] Among them, the external data forwarding module compares whether the destination MAC address of the device discovery response message is the same as its own MAC address, and determines whether the message needs to be forwarded at the IP layer based on the comparison result. If the MAC addresses are the same, it is determined that the device discovery response message needs to be forwarded at the IP layer, and the device discovery response message is further forwarded to the external data forwarding module, and the external data forwarding module executes S810; if the MAC addresses are different, the message is discarded.

[0206] S810. The external data forwarding module of UPF uses the destination IP address of the device discovery response message to perform a matching query in the second mapping information table.

[0207] Among them, if there is a matching record, S811 is executed; if there is no matching record, further according to the Ethernet frame type of the first message being a non-automation bus standard unicast frame or a broadcast frame, the message is forwarded and processed according to the Ethernet frame type of the message and the destination MAC address carried in the message.

[0208] The second mapping information table is the information record associated with the industrial device generated by the network management module based on the MAC address query result for the industrial device during the process of the industrial device accessing the local network. The following Fig.10 illustrated embodiments will introduce in detail the process of querying the MAC address for the industrial device and generating the above information record.

[0209] In some embodiments, the information record in the second mapping information table is in the form of <IP address, virtual local area network group identifier, tunnel identifier, MAC address>.

[0210] S811, the external data forwarding module of UPF encapsulates the device discovery response message according to the MAC address and virtual LAN group identifier in the matching record to obtain a device discovery response message in IP format, and forwards the device discovery response message according to the destination MAC address and the third virtual LAN group identifier carried by the device discovery response message in IP format.

[0211] In this step, the purpose of the encapsulation process is to encapsulate the device discovery response message into an IP format so that the device discovery response message can be transmitted at the second layer and successfully transmitted to the configuration software.

[0212] The information in the matching record provides information required for encapsulating the device discovery response message. That is, the destination MAC address carried by the third message is the MAC address in the matching record, and the third virtual local area network group identifier carried by the third message is the virtual local area network group identifier in the matching record determined by the matching query in S810.

[0213] The external data forwarding module of UPF sends the device discovery response message in IP format to the internal data forwarding module. The internal data forwarding module extracts the destination MAC address in the device discovery response message from the N6 interface and sends the device discovery response message to the configuration software according to the pre-stored forwarding action strategy.

[0214] In summary, S807 to S8011 describe the process of PLC responding to the device discovery request of the configuration software. Through S807 to S811, the forwarding of the device discovery response message between the heterogeneously connected PLC and the configuration software can be realized in the scenario of industrial device networking in the local network.

[0215] Next, through Fig. 9 The illustrated embodiment illustrates how a local network supports an existing industrial device discovery protocol and satisfies multicast forwarding of PROFINET frames having a special frame format.

[0216] Fig. 9 This is a flowchart of a local network-based industrial device communication method provided by another embodiment of the present application. Fig. 9 , the method of this embodiment specifically includes:

[0217] S901. The Ethernet type session tunnel module of UPF receives the device discovery request message sent by the PLC master device.

[0218] Combination Figure 6 As shown, the PLC master device and the PLC slave device respectively establish Ethernet type session tunnels with the UPF, and the PLC master device and the PLC slave device can transmit device discovery request messages in Ethernet format through the Ethernet type session tunnel.

[0219] S901 to S905 mainly describe the forwarding processing mode of the UPF for the device discovery request message when the PLC master device starts to discover the device, the PLC master device sends a device discovery request message to the PLC slave device. In this scenario, the device discovery request message is equivalent to the first message described above.

[0220] Specifically, in the scenario where the PLC master device performs device discovery, the PLC master device sends a device discovery request message to the wireless access network of the local network through the connected terminal, and the wireless access network forwards the device discovery request message to the Ethernet type session tunnel module of the UPF. In some embodiments, the device discovery request message can also be called a control message, a detection message, or other names, and its purpose is to detect surviving PLC slave devices in the network.

[0221] S902. The Ethernet type session tunnel module of UPF forwards the device discovery request message to the internal data forwarding module of UPF.

[0222] S903. The internal data forwarding module of the UPF determines the Ethernet frame type of the device discovery request message.

[0223] As mentioned above, the Ethernet frame types of the message include: PROFINET broadcast frame, PROFINET unicast frame, non-PROFINET unicast frame, non-PROFINET broadcast frame. The Ethernet frame type of the device discovery request message can be any of the above Ethernet frame types.

[0224] Among them, the non-PROFINET frame can also be called a common Ethernet frame, and the common Ethernet frame can be any Ethernet protocol frame that is different from the automation bus standard.

[0225] In some embodiments, the internal data forwarding module can first determine whether the Ethernet frame type of the device discovery request message is a PROFINET frame or a non-PROFINET frame by detecting the value of the frame type field in the device discovery request message. Further, if it is determined to be a PROFINET frame, it is determined whether the device discovery request message is a unicast frame or a broadcast frame based on the value of FrameID. If it is determined to be a non-PROFINET frame, it is determined whether the device discovery request message is a unicast frame or a broadcast frame based on whether the destination MAC address carried by the message is a broadcast address.

[0226] If the device finds that the Ethernet frame type of the request message is a PROFINET broadcast frame, S904 is executed; if the device finds that the Ethernet frame type of the request message is a PROFINET unicast frame, S905 is executed.

[0227] If the device finds that the Ethernet frame type of the request message is not a PROFINET broadcast frame, S904 is executed; if the device finds that the Ethernet frame type of the request message is not a PROFINET unicast frame, S905 is executed.

[0228] S904. The internal data forwarding module of the UPF reads the virtual LAN group identifier carried in the device discovery request message, and multicast-forwards the device discovery request message in the virtual LAN group indicated by the virtual LAN group identifier.

[0229] Wherein, when the Ethernet frame type of the device discovery request message is a PROFINET broadcast frame, the internal data forwarding module of the UPF reads the virtual LAN group identifier from the field carrying the virtual LAN group identifier according to the data structure of the PROFINET frame.

[0230] Among them, when the Ethernet frame type of the device discovery request message is a non-PROFINET broadcast frame, the internal data forwarding module of the UPF reads the virtual LAN group identifier from the field carrying the virtual LAN group identifier according to the data structure of the non-PROFINET frame.

[0231] When performing multicast forwarding, the first virtual LAN group identifier is the external group identifier of the virtual LAN group, and the device discovery request message will be forwarded to each member of the corresponding virtual LAN group in a multicast manner.

[0232] S905. The internal data forwarding module of UPF determines the target Ethernet session tunnel according to the destination MAC address carried in the device discovery request message; sends the device discovery request message to the PLC slave device corresponding to the target MAC address carried in the device discovery request message through the target Ethernet session tunnel.

[0233] Among them, when the Ethernet frame type of the device discovery request message is a PROFINET unicast frame, the internal data forwarding module of the UPF reads the destination MAC address carried by the device discovery request message from the field carrying the destination MAC address according to the data structure of the PROFINET frame.

[0234] Among them, when the Ethernet frame type of the device discovery request message is a non-PROFINET unicast frame, the internal data forwarding module of the UPF reads the destination MAC address carried by the device discovery request message from the field carrying the destination MAC address according to the data structure of the non-PROFINET frame.

[0235] Since it is an Ethernet unicast frame, the internal data forwarding module of the UPF can determine the target Ethernet session tunnel based on the destination MAC address carried by the device discovery request message. It should be understood that in the scenario where the PLC master device sends a message to the PLC slave device, the PLC slave device is an endpoint of the session tunnel, and the destination MAC address carried by the device discovery request message is the MAC address of the PLC slave device, indicating the endpoint of the session tunnel. Based on this, it can be determined that the target Ethernet session tunnel is the session tunnel between the PLC slave device and the UPF. Next, the internal data forwarding module sends a device discovery response message to the second terminal through the target Ethernet session tunnel, so that the second terminal forwards the message to the connected PLC slave device. The second terminal can be understood as a node on the target Ethernet session tunnel, connected to the PLC slave device at the endpoint of the session tunnel.

[0236] Through S901 to S905, the local network supports multicast forwarding of PROFINET broadcast frames with special formats in the corresponding virtual local area network group, and forwarding of PROFINET unicast frames with special frame formats.

[0237] Optionally, after S905, the following steps may also be included:

[0238] The PLC slave device can receive a device discovery request message from the PLC master device from the connected terminal, and can generate a device discovery response message, wherein the purpose of the device discovery response message is to report to the PLC master device that the PLC slave device is currently alive. Then, the PLC slave device sends the device discovery response message to the UPF through the Ethernet type session tunnel between it and the UPF.

[0239] S906. The Ethernet type session tunnel module of UPF receives the device discovery response message sent by the PLC slave device.

[0240] S907. The Ethernet type session tunnel module of UPF forwards the device discovery response message to the internal data forwarding module of UPF.

[0241] S908. The internal data forwarding module of the UPF determines the Ethernet frame type of the device discovery response message.

[0242] S909. The internal data forwarding module of the UPF reads the virtual LAN group identifier carried in the device discovery response message, and multicast-forwards the device discovery response message in the virtual LAN group indicated by the virtual LAN group identifier.

[0243] S910, UPF's internal data forwarding module determines the target Ethernet session tunnel based on the destination MAC address carried in the device discovery response message; sends the device discovery response message through the target Ethernet session tunnel to the PLC master device corresponding to the target MAC address carried in the device discovery request message.

[0244] It should be noted that the way UPF processes device discovery response messages is similar to the way it processes device discovery request messages. Please refer to the description of S901 to S905. For the sake of brevity, S906 to S910 will not be described in detail.

[0245] In summary, when UPF receives messages through the Ethernet session tunnel, it identifies the Ethernet frame type of the Ethernet message sent by the industrial equipment, and when it identifies the message as a PROFINET broadcast frame or a non-PROFINET broadcast frame, it multicasts the message in the virtual LAN group, and forwards the message based on the MAC address when it identifies the message as a PROFINET unicast frame or a non-PROFINET unicast frame. In this way, the local network can seamlessly support existing industrial equipment discovery protocols, such as the Machine Expect protocol, the DCP protocol, etc., and multicast forwarding of messages in the virtual LAN group can be achieved without protocol conversion.

[0246] Before industrial devices can communicate through the local network, they need to be connected to the local network to complete the networking. Fig.10 The embodiment shown in the figure introduces the networking process of industrial equipment in detail. Figure 6 In the scenario shown, the networking can be initiated by the configuration software or the PLC master device. Fig.10 In the embodiment shown, the first industrial device may be a configuration software or a PLC master device. Fig.10 , the method of this embodiment includes:

[0247] S1001. The network management module creates a virtual LAN group for a first industrial device through the UDM, and allocates a virtual LAN group identifier to the created virtual LAN group.

[0248] Combination Figure 6 As shown, the network management module writes the GPSI identifier of the terminal connected to the first industrial device into the UDM through the NEF, and the UDM creates a virtual LAN group for the terminal, and generates an internal group identifier and an external group identifier of the virtual LAN group; then, the UDM assigns the external group identifier of the virtual LAN group to the first industrial device.

[0249] The above-mentioned creation of a virtual LAN group for the terminal connected to the first industrial device is equivalent to creating a virtual LAN group for the first industrial device.

[0250] S1002: The network management module sends network configuration information corresponding to a plurality of industrial devices to the UPF. Accordingly, the user plane function receives the network configuration information corresponding to the plurality of industrial devices.

[0251] The multiple industrial devices are industrial devices to be added to the virtual local area network group to which the first industrial device belongs. This embodiment does not limit the type and quantity of the multiple industrial devices, which are determined according to actual networking requirements.

[0252] The network configuration information of the industrial device includes: the IP address pre-assigned by the local network to the industrial device and the virtual local area network group identifier pre-assigned by the local network to the industrial device. The representation of the network configuration information can be referred to as shown in the previous text, and will not be repeated here.

[0253] S1003. UPF generates a first mapping information table.

[0254] The first mapping information table is a data structure for storing network configuration information of industrial equipment. The representation of information in the first mapping information table can follow the representation of network configuration information shown in S1002. This application does not limit this.

[0255] The first mapping information table also includes: network configuration information of the first industrial device.

[0256] S1004. UPF sends a first request to multiple industrial devices and the first industrial device respectively.

[0257] The first request is used to query the MAC address of the industrial device to solve the mapping relationship between the IP address and the MAC address of the industrial device, thereby ensuring the correct transmission of the message. The first request can be but is not limited to an ARP request.

[0258] In some embodiments, the external data forwarding module in the UPF sends multiple ARP requests to the internal data forwarding module according to the IP addresses corresponding to each industrial device stored in the first mapping information table, so that the internal data forwarding module sends the multiple ARP requests to the corresponding industrial devices through the session tunnel between the industrial device and the UPF, thereby initiating a MAC address query for all industrial devices in the first mapping information table.

[0259] The IP address of the industrial device for which the mapping relationship needs to be determined is the destination IP address in the ARP request.

[0260] Among them, multiple industrial devices are connected to different terminals through Ethernet cables. Among them, an Ethernet type session is established between the terminal connected to the PLC and the UPF; and an IP type session is established between the terminal connected to the configuration software and the UPF.

[0261] Based on this, the internal data forwarding module determines that the data packet from the external data forwarding module is an ARP request through the Ethernet frame type, and then sends the ARP request to the wireless access network through the Ethernet type session tunnel module. The wireless access network forwards the ARP request to the terminal connected to the PLC, and the terminal forwards the ARP request to the PLC; the internal data forwarding module can also send the ARP request to the wireless access network through the IP type session tunnel module. The wireless access network forwards the ARP request to the terminal connected to the configuration software, and the terminal forwards the ARP request to the configuration software.

[0262] S1005: UPF receives first responses sent by multiple industrial devices respectively, wherein the first responses carry IP addresses and MAC addresses of the industrial devices.

[0263] When the PLC sends the first response to the UPF, the PLC sends the first response to the UPF through the Ethernet session tunnel connected between the UE and the UPF, and the Ethernet type session tunnel module of the UPF receives the first response sent by the PLC.

[0264] When the configuration software sends the first response to the UPF, the configuration software sends the first response to the UPF through the IP session tunnel connected between the UE and the UPF, and the IP type session tunnel module of the UPF receives the first response sent by the configuration software.

[0265] In some embodiments, the first response is an ARP response.

[0266] S1006. UPF sends the first response and the tunnel identifier to the network management module.

[0267] In some embodiments, the UPF determines whether forwarding is allowed based on the data frame type of the first response and the tunnel identifier corresponding to the session tunnel receiving the first response; if forwarding is allowed, the first response and the tunnel identifier are forwarded to the network management module; if forwarding is not allowed, they are discarded.

[0268] Combination Figure 6 As shown, the Ethernet type session tunnel module and the IP type session tunnel module respectively send the first responses they receive to the internal data forwarding module. For the first response forwarded by the Ethernet type session tunnel, the internal data forwarding module determines whether the first response is a response message for the MAC address query by identifying the Ethernet frame type. If so, the first response is forwarded to the external data forwarding module. For the first response forwarded by the IP type session tunnel model, the internal data forwarding module determines whether it is a response message for the MAC address query by identifying the specific field carried by the message. If so, the first response is forwarded to the external data forwarding module, wherein the specific field is a field that characterizes the message type.

[0269] At the same time, the Ethernet type session tunnel module and the IP type session tunnel module generate corresponding notification messages for each message they receive, and forward the notification messages to the external data forwarding module through the message queue. Among them, the notification message carries the MAC address and the tunnel identifier. The MAC address carried by the notification message is the source MAC address carried by the first response, that is, the MAC address of the industrial device; the tunnel identifier carried by the notification message is the identifier of the session tunnel between the industrial device and the UPF, such as TEID.

[0270] After receiving the first response from the N6 interface, the external data forwarding module extracts the source MAC address in the first response, and uses the extracted source MAC address as an index to perform a matching query in all notification messages sent by the internal data forwarding module. If there is a matching message record, it is determined that it is allowed to be forwarded to the network management module, and the matching message record and the first response are forwarded; if there is no matching message record, it is determined that it is not allowed to be forwarded to the network management module.

[0271] S1007. The network management module adds the terminal connected to the industrial device to the virtual LAN group according to the tunnel identifier, the MAC address of the industrial device carried in the first response, and the IP address of the industrial device, until all terminals of multiple industrial devices are successfully added to the virtual LAN group to complete the networking.

[0272] For any industrial device participating in the networking, the network management module generates relevant information records corresponding to the industrial device for controlling message forwarding based on the received information; and performs user data signing operations based on the received messages to add the terminal connected to the industrial device to the virtual local area network group. Through the above operations, the industrial device successfully accesses the local network. When all industrial devices are successfully connected to the local network, the industrial device networking is completed and an industrial network is formed.

[0273] In some embodiments, networking is accomplished by the following steps:

[0274] The network management module receives the message record and the first response from the external data forwarding module, reads the messages respectively, and obtains the tunnel identifier, the MAC address of the industrial device carried in the first response, and the IP address of the industrial device.

[0275] The network management module performs a matching query in the first mapping information table using the read IP address of the industrial device. If a matching record exists, a second message record corresponding to the industrial device is generated. Exemplarily, the form of the second message record is: <IP address, virtual local area network group identifier, tunnel identifier, MAC address>. The IP address in the second message record is the IP address of the industrial device in the first response, the virtual local area network group identifier is the virtual local area network group identifier included in the network configuration information matched in the first mapping information table, the tunnel identifier is the tunnel identifier in the message record sent by the external data forwarding module, and the MAC address is the MAC address of the industrial device carried in the first response.

[0276] The network management module uses the tunnel identifier in the generated second message record as an input parameter to initiate a query request to the NEF, requesting to obtain the Subscription Permanent Identifier (SUPI) of the terminal corresponding to the tunnel identifier. The NEF forwards the query request from the network management module to the SMF. The SUPI is a terminal user identifier defined by the network.

[0277] After receiving the query request from the NEF, the SMF obtains the SUPI of the corresponding terminal by querying the local PDU session context information and returns it to the NEF. The NEF forwards the query response from the SMF to the network management module. Through the interaction among the network management module, NEF, and SMF, the network management module successfully obtains the SUPI of the terminal corresponding to the tunnel identifier.

[0278] The network management module generates a record <virtual local area network group identifier, SUPI> based on the received SUPI of the terminal. Among them, the virtual local area network group identifier in the record is the virtual local area network group identifier in the matched network configuration information.

[0279] The network management module then performs a subscription data modification operation, initiating a user subscription data modification request to the NEF, requesting to add the terminal corresponding to the SUPI to the virtual local area network group corresponding to the virtual local area network group identifier. The subscription data modification request carries the record <virtual local area network group identifier, SUPI> generated in the previous step.

[0280] After receiving the user subscription data modification request from the NEF, the UDM modifies the user subscription data in the UDM and returns the modification result to the NEF. The NEF then forwards the modification result from the UDM to the network management module.

[0281] After the user contract data in UDM is modified, the corresponding PDU session modification process is triggered. SMF notifies the internal data forwarding module in UPF through the N4 interface to establish the corresponding forwarding action rule (Forwarding Action Rule), supporting group communication with the virtual LAN group identifier as the external group identifier.

[0282] Through the above process, the industrial equipment networking is completed, the industrial equipment is successfully connected to the local network, and an industrial network is formed. Industrial equipment can communicate with each other through the local network.

[0283] Fig.11 This is a schematic diagram of the structure of a communication device provided in an embodiment of the present application. Fig.11 As shown, the communication device 1100 of this embodiment includes:

[0284] The communication device 1100 provided in this embodiment can exist independently or be integrated in other devices. It can communicate with the network function entities in the first network mentioned above, and is used to implement the operations corresponding to the UPF or network management module in any of the above method embodiments.

[0285] The communication device 1100 may include: a transceiver module 1101 and a processing module 1102. The processing module 1102 is used to perform data processing, and the transceiver module 1101 may implement corresponding communication functions. The transceiver module 1101 may also be called a communication interface or a communication unit.

[0286] Optionally, the communication device 1100 may also include a storage unit, which can be used to store instructions and / or data, and the processing module 1102 can read the instructions and / or data in the storage unit so that the communication device 1100 implements the operations of the UPF or network management module in the aforementioned method embodiment.

[0287] The transceiver module 1101 is used to perform reception-related operations of the UPF or network management module in the foregoing method embodiment, and the processing module 1102 is used to perform processing-related operations of the UPF network management module in the foregoing method embodiment.

[0288] Optionally, the transceiver module 1101 may include a sending module and a receiving module. The sending module is used to perform the sending operation in the above method embodiment. The receiving module is used to perform the receiving operation in the above method embodiment.

[0289] It should be noted that the communication device 1100 may include a sending module but not a receiving module. Alternatively, the communication device 1100 may include a receiving module but not a sending module. Specifically, it depends on whether the above solution executed by the communication device 1100 includes a sending action and a receiving action.

[0290] As an example, the communication device 1100 is used to execute the above Figure 7 Actions performed by the UPF in the illustrated embodiment.

[0291] The communication device 1100 may include: a transceiver module 1101 and a processing module 1102 .

[0292] The transceiver module 1101 is used to receive a first message sent by a first terminal through a first session tunnel; the first session tunnel is a session tunnel between a first terminal device and a user plane function; the first terminal is connected to a first industrial device, and the first message is sent by the first industrial device to the first terminal.

[0293] The processing module 1102 is used to encapsulate the first message to obtain the second message by utilizing the first network configuration information pre-stored by the user plane function when the first session tunnel is an IP session tunnel, and multicast forward the second message in the virtual LAN group indicated by the second virtual LAN group identifier through the transceiver module 1101; wherein the message format of the second message is an Ethernet message, the destination media access control MAC address carried by the second message is a broadcast address, the second virtual LAN group identifier carried by the second message is the virtual LAN group identifier contained in the first network configuration information, and the virtual LAN group identifier contained in the first network configuration information indicates the virtual LAN group to which the first industrial equipment belongs.

[0294] The processing module 1102 is also used to detect the Ethernet frame type of the first message when the first session tunnel is an Ethernet session tunnel; when the Ethernet frame type is a PROFINET broadcast frame, read the first virtual LAN group identifier carried by the first message, and multicast forward the first message in the virtual LAN group indicated by the first virtual LAN group identifier through the transceiver module 1101; when the Ethernet frame type is a PROFINET unicast frame or a non-PROFINET Ethernet frame, forward the first message through the transceiver module 1101 according to the Ethernet frame type of the first message and the destination media access control MAC address carried by the first message.

[0295] It should be understood that the execution of the above corresponding processes by each module has been described in detail in the above method embodiment, and for the sake of brevity, it will not be repeated here.

[0296] As another example, the communication device 1100 is used to execute the above Fig.10 The network management module in the illustrated embodiment performs actions during the process of industrial equipment accessing the local network.

[0297] The communication device 1101 may include: a transceiver module 1101 and a processing module 1102 .

[0298] The transceiver module 1101 is used to create a virtual LAN group for the first industrial device connected to the first terminal through UDM, and assign a virtual LAN group identifier to the virtual LAN group; and send network configuration information corresponding to multiple industrial devices to the user plane function, so that the user plane function generates the first mapping information table; wherein the network configuration information corresponding to the multiple industrial devices includes: IP addresses pre-assigned by the local network to the multiple industrial devices, and virtual LAN group identifiers pre-assigned by the local network to the multiple industrial devices.

[0299] For each of the multiple industrial devices, after the user plane function sends a first request to the industrial device and receives a first response sent by the industrial device, the transceiver module 1101 is used to receive the first response and the tunnel identifier sent by the UPF.

[0300] The first request is used to query the MAC address of the industrial device; the first response carries the IP address and the MAC address of the industrial device.

[0301] Processing module 1102 is used to add the terminal connected to the industrial device to the virtual LAN group according to the tunnel identifier, the MAC address of the industrial device carried in the first response, and the IP address of the industrial device, until all terminals of multiple industrial devices are successfully added to the virtual LAN group to complete the networking.

[0302] The processing module 1102 in the above embodiment can be implemented by at least one processor or processor-related circuit. The transceiver module 1101 can be implemented by a transceiver or a transceiver-related circuit. The transceiver module 1101 can also be called a communication unit or a communication interface. The storage unit can be implemented by at least one memory.

[0303] Fig.12 This is a structural diagram of an electronic device provided by an embodiment of the present application. Fig.12 As shown, the electronic device 1200 provided in this embodiment includes: a memory 1201 and a processor 1202 .

[0304] The memory 1201 may be an independent physical unit, and may be connected to the processor 1202 via a bus 1203. The memory 1201 and the processor 1202 may also be integrated together and implemented by hardware, etc. The memory 1201 is used to store program instructions, and the processor 1202 calls the program instructions to execute the operations performed by the UPF or network management module of the local network in any of the above method embodiments.

[0305] Optionally, when part or all of the methods of the above embodiments are implemented by software, the electronic device 1200 may also include only a processor 1202. The memory 1201 for storing programs is located outside the electronic device 1200, and the processor 1202 is connected to the memory through circuits / wires to read and execute the programs stored in the memory. The processor 1202 may be a central processing unit (CPU), a network processor (NP) or a combination of a CPU and a NP. The processor 1202 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL) or any combination thereof.

[0306] The memory 1201 may include a volatile memory, such as a random-access memory (RAM); the memory may also include a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); the memory may also include a combination of the above types of memory.

[0307] Exemplarily, the present application provides a chip, comprising: an interface circuit and a logic circuit, wherein the interface circuit is used to receive signals from other chips outside the chip and transmit them to the logic circuit, or to send signals from the logic circuit to other chips outside the chip, and the logic circuit is used to execute the operations performed by the UPF or network management module of the local network in any of the above method embodiments.

[0308] Exemplarily, the present application provides a readable storage medium having computer program instructions stored thereon, and the computer program instructions are executed by a processor of an electronic device so that the electronic device performs the operations performed by the UPF or network management module of the local network in any of the above method embodiments.

[0309] Exemplarily, the present application provides a computer program product, which, when executed on an electronic device, enables the electronic device to execute the operations performed by the UPF or network management module of the local network in any of the above method embodiments.

[0310] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for industrial equipment communication based on a local network, characterized in that: The method is applied to a local network and includes: The user plane function in the local network receives a first message sent by a first terminal through a first session tunnel; the first session tunnel is a session tunnel between the first terminal device and the user plane function; the first terminal is connected to a first industrial device, and the first message is sent by the first industrial device to the first terminal; In a case where the first session tunnel is an Internet Protocol (IP) session tunnel, the user plane function uses the pre-stored first network configuration information to encapsulate the first message to obtain a second message, and multicast forwards the second message in the virtual local area network group indicated by the second virtual local area network group identifier; wherein the message format of the second message is an Ethernet message, the destination media access control MAC address carried by the second message is a broadcast address, the second virtual local area network group identifier carried by the second message is the virtual local area network group identifier included in the first network configuration information, and the virtual local area network group identifier included in the first network configuration information indicates the virtual local area network group to which the first industrial device belongs; In a case where the first session tunnel is an Ethernet session tunnel, detecting an Ethernet frame type of the first message; When the Ethernet frame type is an automation bus standard broadcast frame, the first virtual local area network group identifier carried by the first message is read, and the first message is multicast forwarded in the virtual local area network group indicated by the first virtual local area network group identifier; When the Ethernet frame type is an automation bus standard unicast frame or a non-automation bus standard Ethernet frame, the first message is forwarded according to the Ethernet frame type of the first message and the destination media access control MAC address carried by the first message.

2. The method according to claim 1, characterized in that The user plane function encapsulates the first message using the pre-stored first network configuration information to obtain a second message, including: The user plane function performs a matching query in the first mapping information table according to the source IP address of the first message; wherein the source IP address carried by the first message is the IP address of the first industrial device; the first mapping information table includes network configuration information of at least one industrial device, the at least one industrial device belongs to at least one virtual local area network group, and the network configuration information of the industrial device includes an IP address pre-assigned by the first network to the industrial device and a virtual local area network group identifier pre-assigned by the first network to the industrial device; When the first network configuration information is successfully matched, the user plane function adds the virtual LAN group identifier in the first network configuration information to the first message, and updates the source MAC address in the first message to the MAC address of the user plane function to obtain the second message.

3. The method according to claim 1, characterized in that Forwarding the first message according to the Ethernet frame type of the first message and the destination MAC address carried by the first message, including: When the Ethernet frame type is an automation bus standard unicast frame, the user plane function determines the target Ethernet session tunnel based on the destination MAC address carried by the first message; The user plane function sends the first message to the second terminal corresponding to the target MAC address through the target Ethernet session tunnel, so that the second terminal sends the first message to the second industrial device connected to the second terminal.

4. The method according to claim 1, wherein Forwarding the first message according to the Ethernet frame type of the first message and the destination MAC address carried by the first message, including: When the Ethernet frame type is a non-automation bus standard Ethernet frame, the user plane function determines whether the destination MAC address carried by the first message is consistent with the MAC address of the user plane function; When the MAC addresses are consistent, the user plane function uses the destination IP address of the first message to perform a match query in the second mapping information table; if a matching record exists, encapsulates the first message using the MAC address and virtual local area network group identifier in the matching record to obtain a third message in IP format, and multicast forwards the third message in the virtual local area network group indicated by the third virtual local area network group identifier based on the destination MAC address and the third virtual local area network group identifier carried by the third message; In the event of MAC address inconsistency, if the destination MAC address carried by the first message indicates that the first message is a non-automation bus standard unicast frame, determining a target Ethernet session tunnel based on the destination MAC address carried by the first message; sending the first message through the target Ethernet session tunnel to a second terminal corresponding to the destination MAC address carried by the first message, so that the second terminal forwards the first message to the connected industrial device or industrial software; In the case of MAC address inconsistency, if the destination MAC address carried by the first message indicates that the first message is a non-automation bus standard broadcast frame, the virtual local area network group identifier carried by the first message is read, and the first message is multicast forwarded in the virtual local area network group indicated by the second virtual local area network group identifier.

5. The method according to claim 1, wherein Before the user plane function in the local network receives the first message sent by the first terminal from the first session tunnel, the method further includes: The network management module of the local network creates a virtual local area network group for the first industrial device connected to the first terminal through the UDM, and allocates a virtual local area network group identifier to the virtual local area network group to which the first industrial device belongs; Therefore, the network management module of the local network sends the network configuration information corresponding to the plurality of industrial devices to the user plane function, so that the user plane function generates the first mapping information table; wherein the plurality of industrial devices are industrial devices to be added to the virtual local area network group to which the first industrial device belongs; the first mapping information table also includes: the network configuration information of the first industrial device; the network configuration information corresponding to the plurality of industrial devices includes: the IP addresses pre-assigned by the local network to the plurality of industrial devices, and the virtual local area network group identifiers pre-assigned by the local network to the plurality of industrial devices; For each of the multiple industrial devices, the user plane function sends a first request to the industrial device, and receives a first response sent by the industrial device; the first request is used to query the MAC address of the industrial device; the first response carries the IP address of the industrial device and the MAC address of the industrial device; The user plane function sends the first response and the tunnel identifier to the network management module, so that the network management module adds the terminal connected to the industrial device to the virtual local area network group to which the first industrial device belongs according to the tunnel identifier and the MAC address of the industrial device carried in the first response; wherein the tunnel identifier is used to identify the session tunnel between the industrial device and the user plane function; The networking is completed until all the terminals respectively connected to the plurality of industrial devices join the virtual local area network group to which the first industrial device belongs.

6. The method according to claim 5, characterized in that The user plane function sends the first response and the tunnel identifier to the network management module, including: The user plane function determines whether to allow forwarding of the first response according to the data frame type of the first response and the tunnel identifier; If forwarding is allowed, the user plane function sends the first response and the tunnel identifier to the network management module.

7. The method according to claim 6, characterized in that The user plane function determines whether to allow forwarding of the first response according to the data frame type of the first response and the tunnel identifier, including: The Ethernet type session tunnel module of the user plane function generates a notification message based on the source MAC address and the tunnel identifier in the first response, and sends the notification message to the external data forwarding module of the user plane function; The Ethernet type session tunnel module forwards the first response and the tunnel identifier to the external data forwarding module through the internal data forwarding module of the user plane function; The external data forwarding module of the user plane function matches the source MAC address in the first response with all received notification messages; If there is a matching record, determining to allow forwarding the first response; If there is no matching record, it is determined that forwarding of the first response is not allowed.

8. The method according to claim 5, characterized in that The network management module adds the terminal connected to the industrial device to the virtual local area network group to which the first industrial device belongs according to the tunnel identifier and the MAC address of the industrial device carried in the first response, including: The network management module uses the IP address carried in the first response to perform a matching query in the first mapping information table, and generates a second information record based on the successfully matched network configuration information, the received tunnel identifier, and the first response; the second information record includes: the tunnel identifier, the source MAC address and IP address carried in the first response, and the virtual local area network group identifier in the successfully matched network configuration information; The network management module obtains a subscription permanent identifier of the terminal corresponding to the tunnel identifier; The network management module performs a user subscription data modification operation based on the subscription permanent identifier of the terminal corresponding to the tunnel identifier to add the terminal corresponding to the tunnel identifier to the virtual local area network group corresponding to the virtual local area network group identifier to which the first industrial device belongs.

9. A local network, characterized in that include: User plane function, network management module, first network; A terminal connected to the industrial equipment is connected to the user plane function via the first network; The network management module is connected to the user plane function via the first network; The user plane function is used to perform the operation performed by the user plane function in the method according to any one of claims 1 to 8; The network management module is used to perform the operations performed by the network management module in the method according to any one of claims 1 to 8.

10. An industrial network, characterized in that: include: At least one industrial device, at least one terminal device, and the local network according to claim 9; the at least one industrial device is connected to the at least one terminal device in a one-to-one correspondence; Wherein, the terminal device is connected to the user plane function in the local network through an Internet Protocol IP type session or an Ethernet type session; the network management module in the local network is connected to the user plane function; The UPF is configured to perform the operations performed by the user plane function in the method according to any one of claims 1 to 8; The network management module is used to perform the operations performed by the network management module in the method according to any one of claims 1 to 8.

Citation Information

Cited By

  • Automatic guided vehicle communication method and system

    CN120529274A

  • Data communication method, electronic equipment and storage medium

    CN120980721A

  • PROFINET-based data communication method, equipment and medium

    CN121665372A