Data communication method, device and storage medium based on virtual extensible local area network

By using the cache table and device address list in the user plane function UPF, the existing technology problems of high deployment cost and complex configuration of virtual LAN communication systems are solved, efficient communication system deployment and maintenance are achieved, and communication delays are reduced. time and error probability.

CN115915162BActive Publication Date: 2024-10-01SHENZHEN AI LINK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211577862.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-09
Publication Date
2024-10-01
Estimated Expiration
2042-12-09

AI Technical Summary

Technical Problem

When building an existing virtual LAN based on VXLAN and 5G technology, additional configuration hosts need to be introduced, resulting in high data communication system deployment and maintenance costs, extended communication links, and a cumbersome and error-prone configuration process.

Method used

Using a data communication method based on virtual extensible LAN, through the cache table and device address list in the user plane function UPF, flexible communication between industrial devices can be achieved without additional host configuration, reducing deployment costs and maintenance costs, and simplifying configuration process, shortening communication links.

Benefits of technology

It realizes a communication system that does not require additional host configuration, reduces deployment and maintenance costs, shortens communication delays, improves deployment efficiency, and reduces the probability of errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115915162B_ABST
    Figure CN115915162B_ABST
Patent Text Reader

Abstract

The present application provides a data communication method, device and storage medium based on a virtual extensible local area network, and relates to the field of communication technology. The method is applied to UPF, and UPF includes a cache table and a device address list. The method includes: receiving a VXLAN message sent by a target terminal, and the VXLAN message is obtained by encapsulating a target message sent by a target industrial device by the target terminal; extracting a target message from the VXLAN message, and the target message includes any of the following: a layer 2 frame, an ARP message, and an IP message; extracting a destination address in the target message, and determining the communication network identifier to which the destination address belongs according to the cache table; forwarding the target message to the target device indicated by the destination address based on the communication network identifier to which the destination address belongs, so as to realize flexible communication between various industrial devices in the communication system without introducing an additional configuration host, and can reduce the deployment cost and maintenance cost of the data communication system.
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 data communication method, device and storage medium based on a virtual extensible local area network. Background Art

[0002] VXLAN is a network virtualization technology that can improve the scalability of large-scale cloud computing deployments and is an extension of VLAN. VXLAN is a powerful tool that can penetrate the Layer 3 network to extend the Layer 2 network.

[0003] Existing, when building a virtual LAN based on VXLAN and the fifth generation mobile communication technology (5th generation mobile networks or 5th generation wireless systems, 5th-Generation, referred to as 5G or 5G technology), it is often necessary to introduce a special configuration host to configure the tunnel endpoint through the configuration host, so that a second-layer Ethernet network tunnel can be established on the basis of a three-layer network, thereby realizing cross-regional second-layer interconnection.

[0004] However, when implemented based on the existing solution, since an additional configuration host needs to be introduced, the existing data communication system has the problem of high deployment cost and maintenance cost. Summary of the invention

[0005] The purpose of this application is to address the deficiencies in the above-mentioned prior art and provide a data communication method, device and storage medium based on a virtual scalable local area network, which can reduce the deployment cost and maintenance cost of the communication system.

[0006] To achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:

[0007] In a first aspect, the present invention provides a data communication method based on a virtual extensible local area network, which is applied to a user plane function UPF, wherein the UPF includes a cache table and a device address list, wherein the cache table is created by the UPF according to a detection result sent by a target terminal, and the detection result is obtained by the target terminal detecting each industrial device in the device address list according to the device address list sent by the UPF, wherein the device address list includes an IP address of at least one industrial device, a communication network identifier corresponding to each of the industrial devices, and a virtual local area network identifier corresponding to each of the industrial devices, and the method includes:

[0008] Receiving a virtual extensible local area network (VXLAN) message sent by a target terminal, wherein the VXLAN message is obtained by encapsulating a target message sent by a target industrial device by the target terminal, and the target industrial device and the target terminal are in the same virtual local area network;

[0009] Extracting a target message from the VXLAN message, wherein the target message includes any one of the following: a layer 2 frame, an ARP message, or an IP message;

[0010] Extracting the destination address in the target message, and determining the communication network identifier to which the destination address belongs according to the cache table;

[0011] Based on the communication network identifier to which the destination address belongs, the target message is forwarded to the target device indicated by the destination address.

[0012] In an optional implementation manner, forwarding the target message to a target device indicated by the destination address based on a communication network identifier to which the destination address belongs includes:

[0013] If the communication network identifier to which the destination address belongs indicates that the destination address is a wired side address, the VXLAN message is decapsulated, and the decapsulated message is forwarded to the target device indicated by the destination address through the N6 interface of the UPF, where the N6 interface is a data communication interface between the UPF and the data network DN;

[0014] If the communication network identifier to which the destination address belongs indicates that the destination address is a wireless side address, the VXLAN message is reset to reset the source address and destination address of the VXLAN message to the address of the UPF and the terminal address corresponding to the destination address, respectively, and the reset VXLAN message is forwarded to the target device indicated by the destination address through the N3 interface of the UPF. The N3 interface is the data communication interface between the UPF and the access network AN.

[0015] In an optional implementation, the cache table includes: a layer 2 cache table and a layer 3 cache table, the layer 2 cache table includes: a MAC address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device; the layer 3 cache table includes: an IP address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device;

[0016] The extracting the destination address in the target message and determining the communication network identifier to which the destination address belongs according to the cache table includes:

[0017] If the target message includes: an ARP message, updating the layer 2 cache table and / or the layer 3 cache table according to a first source address in the ARP message, wherein the first source address includes: a first source IP address and a first source MAC address;

[0018] Extract the first destination IP address in the ARP message, and find out whether the first destination IP address is included in the three-layer cache table. If included, determine the communication network identifier to which the first destination IP address belongs based on the communication network identifier corresponding to each industrial device in the three-layer cache table.

[0019] In an optional implementation manner, extracting the destination address in the target message and determining the communication network identifier to which the destination address belongs according to the cache table includes:

[0020] If the target message includes: a layer 2 frame or an IP message, determining whether the sending mode corresponding to the layer 2 frame or the IP message is a multicast mode according to a preset identifier in the layer 2 frame or the IP message;

[0021] If not, then searching whether the second layer cache table or the third layer cache table includes the second destination address of the second layer frame or IP message, and if included, determining the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second layer cache table or the third layer cache table;

[0022] If so, traverse the second-layer cache table or the third-layer cache table, copy multiple second-layer frames or IP packets according to the entries in the second-layer cache table or the third-layer cache table, and determine the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second-layer cache table or the third-layer cache table.

[0023] In an optional embodiment, the method further comprises:

[0024] Receive a device address list request message sent by a target terminal;

[0025] Return a device address list to the target terminal according to the device address list request message, so that the target terminal generates a detection list according to the device address list, polls the detection list to determine the target industrial device that is communicatively connected to the target terminal, and returns the detection result to the UPF, wherein the detection result includes: the IP address of the target terminal, the device information of the target industrial device, and the device information of the target industrial device includes: the MAC address of the target industrial device and the IP address of the target industrial device;

[0026] The detection result sent by the target terminal is received, and a layer 2 cache table and a layer 3 cache table are created according to the detection result.

[0027] In an optional embodiment, the method further comprises:

[0028] In response to the update operation of the device address list, sending a synchronization message to the target terminal, so that the target terminal generates a synchronization response according to the synchronization message, and returns the synchronization response to the UPF;

[0029] The layer 2 cache table and the layer 3 cache table are updated according to the synchronization response sent by the target terminal.

[0030] In an optional implementation, in response to the update operation on the device address list, sending a synchronization message to the target terminal so that the target terminal generates a synchronization response according to the synchronization message, and returns the synchronization response to the UPF, including:

[0031] In response to a new addition operation on the device address list, a first synchronization message is sent to the target terminal, so that the target terminal sends a detection message to the newly added industrial device corresponding to the new addition operation according to the first synchronization message, receives the device address information returned by the newly added industrial device, and sends the device address information to the UPF;

[0032] In response to a deletion operation on at least one industrial device to be deleted in the device address list, the device address list, the second-layer cache table and the third-layer cache table in the UPF are updated, and a second synchronization message is sent to the target terminal so that the target terminal deletes the detection table entry corresponding to at least one second industrial device to be deleted in the detection list.

[0033] In a second aspect, the present invention provides a data communication device based on a virtual extensible local area network, which is applied to a user plane function UPF, wherein the UPF includes a cache table and a device address list, wherein the cache table is created by the UPF according to a detection result sent by a target terminal, and the detection result is obtained by the target terminal detecting each industrial device in the device address list according to the device address list sent by the UPF, wherein the device address list includes an IP address of at least one industrial device, a communication network identifier corresponding to each of the industrial devices, and a virtual local area network identifier corresponding to each of the industrial devices, and the data communication device includes:

[0034] A receiving module, used for receiving a virtual extensible local area network VXLAN message sent by a target terminal, wherein the VXLAN message is obtained by encapsulating a target message sent by a target industrial device by the target terminal, and the target industrial device and the target terminal are in the same virtual local area network;

[0035] An extraction module, used to extract a target message from the VXLAN message, wherein the target message includes any one of the following: a layer 2 frame, an ARP message, or an IP message;

[0036] A determination module, used to extract the destination address in the target message, and determine the communication network identifier to which the destination address belongs according to the cache table;

[0037] A forwarding module is used to forward the target message to the target device indicated by the destination address based on the communication network identifier to which the destination address belongs.

[0038] In an optional implementation, the forwarding module is specifically used to decapsulate the VXLAN message if the communication network identifier to which the destination address belongs indicates that the destination address is a wired side address, and forward the decapsulated message through the N6 interface of the UPF to the target device indicated by the destination address, wherein the N6 interface is a data communication interface between the UPF and the data network DN;

[0039] If the communication network identifier to which the destination address belongs indicates that the destination address is a wireless side address, the VXLAN message is reset to reset the source address and destination address of the VXLAN message to the address of the UPF and the terminal address corresponding to the destination address, respectively, and the reset VXLAN message is forwarded to the target device indicated by the destination address through the N3 interface of the UPF. The N3 interface is the data communication interface between the UPF and the access network AN.

[0040] In an optional implementation, the cache table includes: a layer 2 cache table and a layer 3 cache table, the layer 2 cache table includes: a MAC address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device; the layer 3 cache table includes: an IP address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device;

[0041] The determination module is specifically configured to update the layer 2 cache table and / or the layer 3 cache table according to a first source address in the ARP message if the target message includes: an ARP message, wherein the first source address includes: a first source IP address and a first source MAC address;

[0042] Extract the first destination IP address in the ARP message, and find out whether the first destination IP address is included in the three-layer cache table. If included, determine the communication network identifier to which the first destination IP address belongs based on the communication network identifier corresponding to each industrial device in the three-layer cache table.

[0043] In an optional implementation, the determination module is specifically used to determine whether the sending mode corresponding to the layer 2 frame or the IP message is a multicast mode according to a preset identifier in the layer 2 frame or the IP message if the target message includes: a layer 2 frame or an IP message;

[0044] If not, then searching whether the second layer cache table or the third layer cache table includes the second destination address of the second layer frame or IP message, and if included, determining the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second layer cache table or the third layer cache table;

[0045] If so, traverse the second-layer cache table or the third-layer cache table, copy multiple second-layer frames or IP packets according to the entries in the second-layer cache table or the third-layer cache table, and determine the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second-layer cache table or the third-layer cache table.

[0046] In an optional implementation, the data communication apparatus further includes: a creation module, configured to receive a device address list request message sent by a target terminal;

[0047] Return a device address list to the target terminal according to the device address list request message, so that the target terminal generates a detection list according to the device address list, polls the detection list to determine the target industrial device that is communicatively connected to the target terminal, and returns the detection result to the UPF, wherein the detection result includes: the IP address of the target terminal, the device information of the target industrial device, and the device information of the target industrial device includes: the MAC address of the target industrial device and the IP address of the target industrial device;

[0048] The detection result sent by the target terminal is received, and a layer 2 cache table and a layer 3 cache table are created according to the detection result.

[0049] In an optional embodiment, the data communication apparatus further includes: an update module, configured to send a synchronization message to the target terminal in response to an update operation on the device address list, so that the target terminal generates a synchronization response according to the synchronization message, and returns the synchronization response to the UPF;

[0050] The layer 2 cache table and the layer 3 cache table are updated according to the synchronization response sent by the target terminal.

[0051] In an optional implementation, the update module is specifically used to send a first synchronization message to the target terminal in response to a new operation on the device address list, so that the target terminal sends a detection message to the newly added industrial device corresponding to the newly added operation according to the first synchronization message, receives the device address information returned by the newly added industrial device, and sends the device address information to the UPF;

[0052] In response to a deletion operation on at least one industrial device to be deleted in the device address list, the device address list, the second-layer cache table and the third-layer cache table in the UPF are updated, and a second synchronization message is sent to the target terminal so that the target terminal deletes the detection table entry corresponding to at least one second industrial device to be deleted in the detection list.

[0053] In a third aspect, the present invention provides an electronic device, comprising: a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the data communication method based on a virtual extensible local area network as described in any of the aforementioned implementations.

[0054] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the data communication method based on a virtual extensible local area network as described in any of the aforementioned implementation modes are executed.

[0055] The beneficial effects of this application are:

[0056] The data communication method, device and storage medium based on virtual extensible local area network provided in the embodiment of the present application are applied to the user plane function UPF, the UPF includes a cache table and a device address list, the cache table is created by the UPF according to the detection result sent by the target terminal, the detection result is obtained by the target terminal detecting each industrial device in the device address list according to the device address list sent by the UPF, the device address list includes at least one IP address of an industrial device, a communication network identifier corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device, the method includes: receiving a virtual extensible local area network VXLAN message sent by the target terminal, the VXLAN message is obtained by the target terminal encapsulating a target message sent by the target industrial device, the target industrial device and the target terminal are in the same Virtual local area network; extracting a target message from a VXLAN message, the target message including any of the following: a layer 2 frame, an ARP message, an IP message; extracting a destination address from the target message, and determining a communication network identifier to which the destination address belongs according to a cache table; forwarding the target message to a target device indicated by the destination address based on the communication network identifier to which the destination address belongs. By applying the embodiments of the present application, flexible communication between industrial devices in a communication system can be achieved without introducing an additional configuration host, thereby reducing the deployment cost and maintenance cost of a data communication system. In addition, since no additional bridge is required for transit, the communication link can be shortened and the communication delay can be reduced. Furthermore, the communication method of the embodiments of the present application can simplify the configuration process, improve the deployment efficiency of the communication system, and reduce the probability of errors. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0058] Figure 1 is a schematic diagram of a network architecture applicable to the method provided in the embodiment of the present application;

[0059] Figure 2 A flow chart of a data communication method based on a virtual extensible local area network provided in an embodiment of the present application;

[0060] Figure 3 A flowchart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application;

[0061] Figure 4 A flowchart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application;

[0062] Figure 5 A flowchart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application;

[0063] Figure 6 A flowchart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application;

[0064] Figure 7 A flowchart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application;

[0065] Figure 8 A schematic diagram of functional modules of a data communication device based on a virtual extensible local area network provided in an embodiment of the present application;

[0066] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0067] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0068] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0069] It should be noted that similar reference numerals and letters denote similar items in the following drawings, and therefore, once an item is defined in one drawing, further definition and explanation thereof is not required in subsequent drawings.

[0070] The technical solutions of the embodiments of the present application can be applied to various local communication systems, such as: global system for mobile communications (GSM) system, code division multiple access (CDMA) system, wideband code division multiple access (WCDMA) system, general packet radio service (GPRS), long term evolution (LTE) system, LTE frequency division duplex (FDD) system, LTE time division duplex (TDD), universal mobile telecommunication system (UMTS), worldwide interoperability for microwave access (WiMAX) communication system, fifth generation (5G) communication system or future new radio access technology (NR), etc.

[0071] Figure 1 Schematic diagram of a network architecture applicable to the method provided in the embodiment of the present application. Figure 1As shown, the network architecture may be, for example, a non-roaming architecture. The network architecture may specifically include the following network elements:

[0072] 1. User equipment (UE): 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 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.

[0073] 2. Access network (AN): provides network access functions for authorized users in a specific area, and can use transmission tunnels of different qualities according to the user level, business requirements, etc. The access network can be an access network that uses different access technologies. There are currently two types of wireless access technologies: 3rd generation partnership project (3GPP) access technology (such as the wireless access technology used in 3G, 4G or 5G systems) and non-3GPP access technology. 3GPP access technology refers to access technology that complies with 3GPP standards and specifications. The access network that uses 3GPP access technology is called a radio access network (RAN), where the access network equipment in the 5G system is called the next generation Node Base station (gNB). Non-3GPP access technology refers to access technology that does not comply with 3GPP standards and specifications, for example, air interface technology represented by access points (APs) in WIFI.

[0074] An access network that implements access network functions based on wireless communication technology can be called a radio access network (RAN). The radio access network can manage wireless resources, provide access services to terminals, and then complete the forwarding of control signals and user data between terminals and the core network.

[0075] The access network equipment may include equipment in the access network that communicates with the wireless terminal over the air interface through one or more sectors. The access network system may be used to convert received air frames to and from Internet Protocol (IP) packets, acting as a router between the wireless terminal and the rest of the access network, which may include an IP network. The wireless access network system may also coordinate the management of attributes of the air interface. It should be understood that the access network equipment includes but is not limited to: evolved node B (eNB), radio network controller (RNC), node B (NB), base station controller (BSC), base transceiver station (BTS), home base station (for example, home evolved node B, or homenode B, HNB), base band unit (BBU), access point (AP) in wireless fidelity (WIFI) system, wireless relay node, wireless backhaul node, transmission point (TRP or transmission point, TP), etc., and can also be a gNB in ​​5G, such as NR, system, or a transmission point (TRP or TP), one or a group of (including multiple antenna panels) antenna panels of a base station in a 5G system, or, it can also be a network node constituting a gNB or a transmission point, such as a baseband unit (BBU)), or a distributed unit (DU), etc.

[0076] In some deployments, the gNB may include a centralized unit (CU) and a DU. The gNB may also include a radio unit (RU). The CU implements some functions of the gNB, and the DU implements some functions of the gNB, for example, the CU implements the functions of the radio resource control (RRC) and packet data convergence protocol (PDCP) layers, and the DU implements the functions of the radio link control (RLC), media access control (MAC) and physical (PHY) layers. Since the information of the RRC layer will eventually become the information of the PHY layer, or be converted from the information of the PHY layer, therefore, under this architecture, high-level signaling, such as RRC layer signaling, can also be considered to be sent by the DU, or by the DU+CU. It can be understood that the access network device can be a CU node, a DU node, or a device including a CU node and a DU node. In addition, the CU may be classified as an access network device in a radio access network (RAN), or the CU may be classified as an access network device in a core network (CN), and no limitation is made here.

[0077] 3. Access and mobility management function (AMF) entity: mainly used for mobility management and access management, etc., and can be used to implement other functions of the mobility management entity (MME) except session management, such as lawful interception or access authorization (or authentication). In the embodiment of the present application, it can be used to implement the functions of the access and mobility management network element.

[0078] 4. Session management function (SMF) entity: mainly used for session management, UE Internet Protocol (IP) address allocation and management, selection of endpoints for manageable user plane functions, policy control, or charging function interfaces, and downlink data notification, etc. In the embodiment of the present application, it can be used to implement the function of the session management network element.

[0079] 5. User Plane Function (UPF) entity: i.e., data plane gateway. It can be used for packet routing and forwarding, or quality of service (QoS) processing of user plane data, etc. User data can be accessed to the data network (DN) through this network element. In the embodiment of the present application, it can be used to implement the function of the user plane gateway.

[0080] 6. Policy control function (PCF) entity: a unified policy framework used to guide network behavior and provide policy rule information to control plane functional network elements (such as AMF, SMF network elements, etc.).

[0081] 7. Unified data management (UDM) entity: used to process user identification, access authentication, registration, or mobility management, etc.

[0082] 8. N3IWF (Non-3GPP Inter Working Function): Responsible for connecting untrusted non-3GPP access networks (such as Wi-Fi) to the 5G core network. The UE establishes an IPsec tunnel with the N3IWF, and the N3IWF accesses the control plane and user plane of the 5G core network through the N2 interface and the N3 interface respectively.

[0083] In this network architecture, the N1 interface is the reference point between the terminal and the AMF entity; the N2 interface is the reference point between the AN and the AMF entity, and is used for sending non-access stratum (NAS) messages, etc.; the N3 interface is the reference point between the (R)AN and the UPF entity, and carries the user plane data transmission function from the (R)AN to the UPF; the N4 interface is the reference point between the SMF entity and the UPF entity, and is used to transmit information such as the tunnel identification information of the N3 connection, data cache indication information, and downlink data notification messages; the N6 interface is the reference point between the UPF entity and the DN, and carries the user plane data transmission function from the UPF to the wired network.

[0084] It should be understood that the above-mentioned network architecture applied to the embodiments of the present application is merely an example of a network architecture described from the perspective of a traditional point-to-point architecture and a service-oriented architecture. The network architecture applicable to the embodiments of the present application is not limited to this. Any network architecture that can realize the functions of the above-mentioned network elements is applicable to the embodiments of the present application.

[0085] It should also be understood that Figure 1The AMF entity, SMF entity, UPF entity, PCF entity, and UDM entity shown in the figure can be understood as network elements used to implement different functions in the core network, for example, they can be combined into network slices as needed. These core network network elements can be independent devices or integrated into the same device to implement different functions, which is not limited in this application.

[0086] In the following text, for the sake of convenience, the entity used to implement AMF will be denoted as AMF, and the entity used to implement PCF will be denoted as PCF. It should be understood that the above naming is only used to distinguish different functions, and does not mean that these network elements are independent physical devices. The present application does not limit the specific form of the above network elements. For example, they can be integrated in the same physical device, or they can be different physical devices. In addition, the above naming is only for the convenience of distinguishing different functions, and should not constitute any limitation on the present application. The present application does not exclude the possibility of using other names in 5G networks and other future networks. For example, in a 6G network, some or all of the above network elements may use the terminology in 5G, or other names may be used. A unified explanation is given here, and no further details will be given below.

[0087] It should also be understood that Figure 1 The interface name between the network elements is only an example. The interface name in the specific implementation may be other names, and this application does not specifically limit this. In addition, the name of the message (or signaling) transmitted between the above network elements is only an example and does not constitute any limitation on the function of the message itself.

[0088] In the prior art, when building a virtual LAN based on VXLAN technology and 5G technology, it is often necessary to introduce an additional configuration host to open up communication links between multiple virtual LANs by configuring different bridges in the configuration host.

[0089] It can be seen that the existing communication system has the problem of high deployment and maintenance costs due to the need to introduce additional configuration hosts. Here, the communication between virtual LANs needs to be transferred through a bridge, the network communication link is lengthened, and the communication delay between devices increases. Furthermore, when the configuration is performed through the configuration host, the configuration process is cumbersome, there are many devices in the communication system, and it is easy to make mistakes when there is a need for configuration or the device network is changed.

[0090] In view of this, the present application provides a data communication method based on a virtual scalable local area network, which can reduce the deployment cost and maintenance cost of the communication system. In addition, it can simplify network deployment, optimize network latency, and improve deployment efficiency.

[0091] Figure 2A flow chart of a data communication method based on a virtual extensible local area network provided in an embodiment of the present application, the execution subject of the method may be a user plane function UPF in a local communication system, referring to the above Figure 1 It can be seen that UPF can be connected to at least one terminal (for example, the first terminal UE1 and the second terminal UE2) through AN based on the N3 interface, and each terminal can be connected to at least one industrial device through VXLAN technology. For example, the first terminal UE1 can communicate with the first industrial device through VXLAN technology in the first VXLAN local area network, and the second terminal UE2 can communicate with the second industrial device through VXLAN technology in the second VXLAN local area network; In addition, UPF can be connected to at least one industrial device through DN based on the N6 interface. For example, UPF can be connected to the third industrial device and the fourth industrial device through DN based on the N6 interface. Optionally, each industrial device can be a programmable logic controller (PLC), a sensor, etc., and the type of industrial device is not limited here.

[0092] Based on the above network architecture, in addition, the UPF may include a cache table, wherein the cache table is created by the UPF according to the detection results sent by the target terminal, and the detection results are obtained by the target terminal detecting each industrial device in the device address list according to the device address list sent by the UPF. Optionally, the target terminal may be any terminal in the above network architecture, for example, it may be the first terminal UE1, which is not limited here; a device address list may also be pre-stored in the UPF, and the device address list may include at least one IP address of an industrial device, a communication network identifier corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device, wherein the communication network identifier corresponding to each industrial device may be used to indicate the communication mode to which the industrial device belongs, for example, a wireless communication mode or a wired communication method.

[0093] Among them, Figure 2 As shown, the data communication method of the virtual extensible local area network provided in the embodiment of the present application may include:

[0094] S101. Receive a virtual extensible local area network (VXLAN) message sent by a target terminal. The VXLAN message is obtained by encapsulating a target message sent by a target industrial device by the target terminal. The target industrial device and the target terminal are in the same virtual local area network.

[0095] Optionally, the target terminal can be any terminal connected to the UPF, and the target industrial device is a device mounted on the target terminal. In the data communication process, the target industrial device can send the generated target message to the target terminal through the virtual local area network technology. After receiving the target message, the target terminal can encapsulate it to obtain a VXLAN message and send it to the UPF, requesting to communicate with other industrial devices in the network architecture through the UPF.

[0096] S102. Extract a target message from the VXLAN message, where the target message includes any one of the following: a layer 2 frame, an ARP message, or an IP message.

[0097] After receiving the VXLAN message sent by the above-mentioned target terminal, UPF can identify the target message in the VXLAN message, wherein the target message can be any one of a layer 2 frame, an ARP message, and an IP message, which is not limited here and may vary according to the actual application scenario.

[0098] S103: extract the destination address in the target message, and determine the communication network identifier to which the destination address belongs according to the cache table.

[0099] After obtaining the target message, UPF can extract the destination address from the target message, and determine the communication network identifier to which the destination address belongs through a pre-stored cache table search, so that it can be determined through the search whether the above-mentioned VXLAN message needs to be forwarded from the N3 interface of UPF or from the N6 interface.

[0100] S104: Forward the target message to the target device indicated by the destination address based on the communication network identifier to which the destination address belongs.

[0101] Based on the above description, after determining the communication network identifier to which the target address belongs, the UPF can forward the target message to the target device indicated by the destination address through the corresponding data communication interface based on the communication network identifier. Optionally, the target device can be any device in the above network architecture. For example, the target industrial device can be the first industrial device, and the target device can be the second industrial device. By applying the embodiments of the present application, flexible communication between the industrial devices in the network architecture can be achieved, and the communication purpose can be achieved without introducing an additional configuration host during the communication process. Therefore, compared with the prior art, the deployment cost and maintenance cost of the data communication system can be reduced.

[0102] In summary, the data communication method based on the virtual extensible local area network provided in the embodiment of the present application is applied to the user plane function UPF, the UPF includes a cache table and a device address list, the cache table is created by the UPF according to the detection result sent by the target terminal, the detection result is obtained by the target terminal according to the device address list sent by the UPF. The device address list includes the IP address of at least one industrial device, the communication network identifier corresponding to each industrial device, and the virtual local area network identifier corresponding to each industrial device. The method includes: receiving a virtual extensible local area network VXLAN message sent by the target terminal, the VXLAN message is obtained by the target terminal encapsulating the target message sent by the target industrial device, and the target industrial device and the target terminal are in the same virtual local area network. Domain network; extracting a target message from a VXLAN message, the target message including any of the following: a layer 2 frame, an ARP message, an IP message; extracting a destination address from the target message, and determining a communication network identifier to which the destination address belongs according to a cache table; forwarding the target message to a target device indicated by the destination address based on the communication network identifier to which the destination address belongs. By applying the embodiments of the present application, flexible communication between various industrial devices in a communication system can be achieved without introducing an additional configuration host, thereby reducing the deployment cost and maintenance cost of a data communication system. In addition, since no additional bridge is required for transit, the communication link can be shortened and the communication delay can be reduced. Furthermore, the communication method of the embodiments of the present application can simplify the configuration process, improve the deployment efficiency of the communication system, and reduce the probability of errors.

[0103] Optionally, the forwarding of the target message to a target device indicated by the destination address based on the communication network identifier to which the destination address belongs includes:

[0104] If the communication network identifier to which the destination address belongs indicates that the destination address is a wired side address, the VXLAN message is decapsulated and forwarded to the target device indicated by the destination address through the N6 interface of the UPF. The N6 interface is the data communication interface between the UPF and the data network DN.

[0105] In some embodiments, if the destination address is a wired side address, UPF can decapsulate the VXLAN message, remove the header of the VXLAN message, and obtain the decapsulated message; forward the decapsulated message to the target device through the N6 interface of UPF, thereby realizing data communication between the target industrial device and the target device.

[0106] For example, in the embodiment of the present application, the target industrial device may be the first industrial device, and the target device indicated by the destination address may be the fourth industrial device, that is, the application of the embodiment of the present application can realize data communication between the first industrial device and the fourth industrial device.

[0107] If the communication network identifier to which the destination address belongs indicates that the destination address is a wireless side address, the VXLAN message is reset to reset the source address and destination address of the VXLAN message to the address of the UPF and the terminal address corresponding to the destination address respectively, and the reset VXLAN message is forwarded to the target device indicated by the destination address through the N3 interface of the UPF. The N3 interface is the data communication interface between the UPF and the access network AN.

[0108] In some embodiments, if the destination address is a wireless side address, the UPF can reset the header of the VXLAN message to reset the source address and destination address of the VXLAN message to the address of the UPF and the terminal address corresponding to the destination address, respectively. Through the reset operation, the UPF can further forward the VXLAN message to the terminal corresponding to the destination address through the N3 interface. It can be understood that during the forwarding process, it can be forwarded to the terminal corresponding to the destination address first, and then the terminal corresponding to the destination address can further forward the VXLAN message to the target device indicated by the destination address.

[0109] For example, in the embodiment of the present application, the target industrial device may be a first industrial device, and the target device indicated by the destination address may be a second industrial device, that is, the application of the embodiment of the present application can realize data communication between the first industrial device and the second industrial device.

[0110] In summary, it can be seen that the embodiments of the present application can realize flexible communication between various industrial devices in the network architecture, and can improve the applicability of the method of the present application.

[0111] Optionally, the cache table includes: a layer 2 cache table and a layer 3 cache table, the layer 2 cache table includes: a MAC address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual LAN identifier corresponding to each industrial device; the layer 3 cache table includes: an IP address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual LAN identifier corresponding to each industrial device. In some embodiments, the layer 2 cache table and the layer 3 cache table can be generated by the configuration personnel of the UPF according to the industrial devices connected to the network architecture and imported into the UPF.

[0112] In some embodiments, for the target industrial device, if the target industrial device only knows the IP address of the communication counterpart (for example, the target terminal), therefore, before the target industrial device communicates with the target terminal, it is necessary to initiate an ARP process to find the MAC address of the next hop (for example, the target terminal) to fill in the MAC header of the message. After querying the MAC address of the next hop, the formal IP message communication can be initiated.

[0113] Figure 3A flowchart of another data communication method based on a virtual extensible local area network provided by an embodiment of the present application. Based on the above description, if the target industrial device initiates an ARP process to the target terminal, then the target message will include an ARP message, such as Figure 3 As shown, the above-mentioned extraction of the destination address in the target message and determining the communication network identifier to which the destination address belongs according to the cache table includes:

[0114] S201. If the target message includes: an ARP message, update the layer 2 cache table and / or the layer 3 cache table according to the first source address in the ARP message.

[0115] The first source address includes: a first source IP address and a first source MAC address. In this scenario, since the ARP message carries content related to the address, the layer 2 cache table and / or layer 3 cache table can be updated accordingly to achieve full utilization of the ARP message.

[0116] Optionally, in some scenarios, the ARP message can be further identified. If the message type of the ARP message is gratitious arp or arp reply, the first source IP address and the first source MAC address in the ARP message can be extracted, and the relevant content in the second-layer cache table and / or the third-layer cache table can be updated according to the first source IP address and the first source MAC address. How to achieve timely updating of the second-layer cache table and the third-layer cache table.

[0117] S202, extracting the first destination IP address in the ARP message, and searching whether the first destination IP address is included in the three-layer cache table, and if included, determining the communication network identifier to which the first destination IP address belongs according to the communication network identifiers corresponding to each industrial device in the three-layer cache table.

[0118] Among them, after extracting the first destination IP address in the ARP message, it can be compared with the IP addresses stored in the three-layer cache table to determine whether the three-layer cache table includes the first target IP address. If included, the communication network identifier to which the first destination IP address belongs can be further determined through the three-layer cache table.

[0119] It should be noted that if the first destination IP address is not included in the three-layer cache table, it means that the first destination IP address may be invalid. In this case, the target message can be discarded.

[0120] Figure 4 A flowchart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application. Figure 4 As shown, the above-mentioned extraction of the destination address in the target message and determining the communication network identifier to which the destination address belongs according to the cache table includes:

[0121] S301. If the target message includes: a layer 2 frame or an IP message, determine whether the sending mode corresponding to the layer 2 frame or the IP message is a multicast mode according to a preset identifier in the layer 2 frame or the IP message.

[0122] S302. If not, check whether the second destination address of the second layer frame or IP message is included in the second layer cache table or the third layer cache table. If included, determine the communication network identifier to which the second destination address belongs based on the communication network identifier corresponding to each industrial device in the second layer cache table or the third layer cache table.

[0123] S303. If yes, traverse the second-layer cache table or the third-layer cache table, copy multiple second-layer frames or IP packets according to the entries in the second-layer cache table or the third-layer cache table, and determine the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second-layer cache table or the third-layer cache table.

[0124] In some scenarios, the target message may also include a layer 2 frame or an IP message, wherein, for a layer 2 frame, the UPF may determine whether the transmission mode corresponding to the layer 2 frame is multicast according to a preset identifier in the layer 2 frame, and if so, it may traverse the layer 2 cache table and copy multiple layer 2 frames according to the table entries in the layer 2 cache table, wherein the second destination address of each layer 2 frame is determined according to the address of the industrial equipment in each table entry; after copying multiple layer 2 frames, the communication network identifier to which each second destination address belongs may be determined according to the communication network identifier corresponding to each industrial equipment. The above-mentioned preset identifier may be a preset forwarding identifier.

[0125] In addition, if it is determined that the transmission mode corresponding to the second layer frame is unicast, it is possible to check whether the second destination address is included in the second layer cache table. If included, the communication network identifier to which the second destination address belongs can be further determined through the second layer cache table.

[0126] Among them, for IP packets, UPF can determine whether the sending mode corresponding to the IP packet is multicast according to the preset identifier in the IP packet. If so, it can traverse the three-layer cache table and copy multiple IP packets according to the table entries in the three-layer cache table, wherein the second destination address of each IP packet is determined according to the address of the industrial equipment in each table entry; after copying multiple IP packets, the communication network identifier to which each second destination address belongs can be determined according to the communication network identifier corresponding to each industrial equipment, and further forwarded through the corresponding data communication interface.

[0127] In summary, by applying the embodiments of the present application, by querying the second-layer cache table information, the unicast or multicast second-layer frames for communication between industrial equipment can be directly forwarded on the UPF; by querying the third-layer cache table information, the third-layer penetration of specific IP multicast can be achieved on the UPF, which can improve the applicability of the method of the present application.

[0128] In addition, it is worth noting that each entry in the layer 2 cache table or the layer 3 cache table corresponds to a terminal, that is, the number of replicated layer 2 frames or IP packets is determined according to the number of terminal IPs stored in the layer 2 cache table or the layer 3 cache table. Of course, in some embodiments, multiple entries in the layer 2 cache table or the layer 3 cache table may also correspond to one terminal, which is not limited here.

[0129] Figure 5 A flowchart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application. Figure 5 As shown, the above method also includes:

[0130] S401: Receive a device address list request message sent by a target terminal.

[0131] Among them, the target terminal can send a device address list request message to the UPF each time it is started to request the current device address list from the UPF.

[0132] S402. Return the device address list to the target terminal according to the device address list request message, so that the target terminal generates a detection list according to the device address list, polls the detection list to determine the target industrial device that is communicatively connected to the target terminal, and returns the detection result to the UPF.

[0133] The detection result includes: the IP address of the target terminal and the device information of the target industrial device. The device information of the target industrial device includes: the MAC address of the target industrial device and the IP address of the target industrial device.

[0134] After receiving the device address list request message, UPF can return the device address list to the target terminal. The target terminal can generate a detection list based on the device address list and save it locally. The content of the detection list can be the same as the content of the device address list. The target terminal can send detection messages to each industrial device in the detection list in turn, and determine the target industrial device connected to it through the detection message, that is, its downstream industrial equipment can be determined through the detection message, and the detection result can be returned to UPF based on the determination result.

[0135] S403: Receive the detection result sent by the target terminal, and create a layer 2 cache table and a layer 3 cache table according to the detection result.

[0136] In combination with the above description, after receiving the detection result, UPF can create a second-layer cache table and a third-layer cache table based on the detection result and in combination with the device address list.

[0137] It should be noted that, for the target terminal, the implementation of its specific functions can be achieved through a preset terminal program deployed on the target terminal.

[0138] Figure 6 A flowchart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the above method also includes:

[0139] S501. In response to an update operation on a device address list, a synchronization message is sent to a target terminal, so that the target terminal generates a synchronization response according to the synchronization message and returns the synchronization response to the UPF.

[0140] In some scenarios, if the device address list in the UPF is updated, in response to the update operation, the UPF can send a synchronization message to the target terminal, and the synchronization message can include the updated industrial equipment information, such as the IP address of the industrial equipment, the communication network identifier corresponding to the industrial equipment, and the virtual local area network identifier corresponding to the industrial equipment, which is not limited here; for the target terminal, after receiving the synchronization message, the target terminal can refer to the above step S402 to generate a synchronization response and return it to the UPF. Among them, the update operation of the device address list in the UPF can specifically be an operation of adding to the device address list, or a deletion operation, which is not limited here.

[0141] S502: Update the layer 2 cache table and the layer 3 cache table according to the synchronization response sent by the target terminal.

[0142] After receiving the synchronization response, the UPF may update the existing layer 2 cache table and layer 3 cache table accordingly.

[0143] By applying the embodiments of the present application, real-time updates of the second and third layer cache tables on the UPF can be achieved, the network links can be dynamically adaptive, and various industrial equipment can be plug-and-play. That is, there is no need to manually modify the system deployment when various industrial equipment is online or offline or the network location changes. This can simplify the configuration process and improve deployment efficiency.

[0144] Figure 7 A flow chart of another data communication method based on a virtual extensible local area network provided in an embodiment of the present application is shown in FIG. Figure 7 As shown, in response to the update operation of the device address list, a synchronization message is sent to the target terminal so that the target terminal generates a synchronization response according to the synchronization message and returns the synchronization response to the UPF, including:

[0145] S601. In response to a new operation on the device address list, a first synchronization message is sent to the target terminal, so that the target terminal sends a detection message to the new industrial equipment corresponding to the new operation according to the first synchronization message, receives the device address information returned by the new industrial equipment, and sends the device address information to the UPF.

[0146] Among them, if the above-mentioned update operation is a new operation, UPF can send a first synchronization message to the target terminal, and the first synchronization message can include the equipment information of the newly added industrial equipment; the target terminal can send a detection message to the newly added industrial equipment according to the equipment information of the newly added industrial equipment in the first synchronization message, and after the newly added industrial equipment receives the detection message, it can return the IP address and MAC address of the newly added industrial equipment to the target terminal; after the target terminal obtains the IP address and MAC address of the newly added industrial equipment, it can further forward it to UPF.

[0147] Optionally, the device information of the newly added industrial equipment may include: an IP address of the newly added industrial equipment, a communication network identifier corresponding to the newly added industrial equipment, a virtual local area network identifier corresponding to the newly added industrial equipment, etc.

[0148] S602. In response to a deletion operation on at least one industrial device to be deleted in the device address list, the device address list, the second-layer cache table, and the third-layer cache table in the UPF are updated, and a second synchronization message is sent to the target terminal so that the target terminal deletes the detection table entry corresponding to at least one second industrial device to be deleted in the detection list.

[0149] Among them, if the above-mentioned update operation is a deletion operation, UPF can delete the relevant table entries of the industrial equipment to be deleted in the device address list, the second-layer cache table and the third-layer cache table, and send a second synchronization message to the target terminal. After receiving the second synchronization message, the target terminal can further delete the detection table entry corresponding to the second industrial equipment to be deleted in the detection list, that is, it can delete the relevant information corresponding to the second industrial equipment to be deleted in the detection list.

[0150] By applying the embodiments of the present application, when the device address list in the UPF is updated, the second-layer cache table and the third-layer cache table in the UPF can be updated in time, and the detection list in the target terminal can be updated in time, which can improve the applicability of the method of the present application.

[0151] Figure 8A functional module diagram of a data communication device based on a virtual extensible LAN provided in an embodiment of the present application, the device may be the aforementioned UPF, the UPF includes a cache table and a device address list, the cache table is created by the UPF according to the detection result sent by the target terminal, the detection result is obtained by the target terminal detecting each industrial device in the device address list according to the device address list sent by the UPF, the device address list includes at least one IP address of an industrial device, a communication network identifier corresponding to each of the industrial devices, and a virtual LAN identifier corresponding to each of the industrial devices, the basic principle of the device and the technical effects produced are the same as those of the aforementioned corresponding method embodiments, for the sake of brief description, the parts not mentioned in this embodiment may refer to the corresponding contents in the method embodiments. Figure 8 As shown, the data communication device 100 may include:

[0152] A receiving module 110 is used to receive a virtual extensible local area network VXLAN message sent by a target terminal, wherein the VXLAN message is obtained by encapsulating a target message sent by a target industrial device by the target terminal, and the target industrial device and the target terminal are in the same virtual local area network;

[0153] An extraction module 120 is used to extract a target message from the VXLAN message, where the target message includes any one of the following: a layer 2 frame, an ARP message, or an IP message;

[0154] A determination module 130, configured to extract a destination address from the target message and determine a communication network identifier to which the destination address belongs according to the cache table;

[0155] The forwarding module 140 is configured to forward the target message to a target device indicated by the destination address based on a communication network identifier to which the destination address belongs.

[0156] In an optional implementation, the forwarding module 140 is specifically used to decapsulate the VXLAN message if the communication network identifier to which the destination address belongs indicates that the destination address is a wired side address, and forward the decapsulated message through the N6 interface of the UPF to the target device indicated by the destination address, wherein the N6 interface is a data communication interface between the UPF and the data network DN;

[0157] If the communication network identifier to which the destination address belongs indicates that the destination address is a wireless side address, the VXLAN message is reset to reset the source address and destination address of the VXLAN message to the address of the UPF and the terminal address corresponding to the destination address, respectively, and the reset VXLAN message is forwarded to the target device indicated by the destination address through the N3 interface of the UPF. The N3 interface is the data communication interface between the UPF and the access network AN.

[0158] In an optional implementation, the cache table includes: a layer 2 cache table and a layer 3 cache table, the layer 2 cache table includes: a MAC address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device; the layer 3 cache table includes: an IP address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device;

[0159] The determination module 130 is specifically configured to update the layer 2 cache table and / or the layer 3 cache table according to a first source address in the ARP message if the target message includes: an ARP message, wherein the first source address includes: a first source IP address and a first source MAC address;

[0160] Extract the first destination IP address in the ARP message, and find out whether the first destination IP address is included in the three-layer cache table. If included, determine the communication network identifier to which the first destination IP address belongs based on the communication network identifier corresponding to each industrial device in the three-layer cache table.

[0161] In an optional implementation, the determination module 130 is specifically configured to determine whether the sending mode corresponding to the layer 2 frame or the IP message is a multicast mode according to a preset identifier in the layer 2 frame or the IP message if the target message includes: a layer 2 frame or an IP message;

[0162] If not, then searching whether the second layer cache table or the third layer cache table includes the second destination address of the second layer frame or IP message, and if included, determining the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second layer cache table or the third layer cache table;

[0163] If so, traverse the second-layer cache table or the third-layer cache table, copy multiple second-layer frames or IP packets according to the entries in the second-layer cache table or the third-layer cache table, and determine the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second-layer cache table or the third-layer cache table.

[0164] In an optional implementation, the data communication apparatus further includes: a creation module, configured to receive a device address list request message sent by a target terminal;

[0165] Return a device address list to the target terminal according to the device address list request message, so that the target terminal generates a detection list according to the device address list, polls the detection list to determine the target industrial device that is communicatively connected to the target terminal, and returns the detection result to the UPF, wherein the detection result includes: the IP address of the target terminal, the device information of the target industrial device, and the device information of the target industrial device includes: the MAC address of the target industrial device and the IP address of the target industrial device;

[0166] The detection result sent by the target terminal is received, and a layer 2 cache table and a layer 3 cache table are created according to the detection result.

[0167] In an optional embodiment, the data communication apparatus further includes: an update module, configured to send a synchronization message to the target terminal in response to an update operation on the device address list, so that the target terminal generates a synchronization response according to the synchronization message, and returns the synchronization response to the UPF;

[0168] The layer 2 cache table and the layer 3 cache table are updated according to the synchronization response sent by the target terminal.

[0169] In an optional implementation, the update module is specifically used to send a first synchronization message to the target terminal in response to a new operation on the device address list, so that the target terminal sends a detection message to the newly added industrial device corresponding to the new operation according to the first synchronization message, receives the device address information returned by the newly added industrial device, and sends the device address information to the UPF;

[0170] In response to a deletion operation on at least one industrial device to be deleted in the device address list, the device address list, the second-layer cache table and the third-layer cache table in the UPF are updated, and a second synchronization message is sent to the target terminal so that the target terminal deletes the detection table entry corresponding to at least one second industrial device to be deleted in the detection list.

[0171] The above-mentioned device is used to execute the method provided by the aforementioned embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.

[0172] The above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASICs), or one or more microprocessors, or one or more field programmable gate arrays (FPGAs). For another example, when a module is implemented in the form of a processing element scheduling program code, the processing element may be a general-purpose processor, such as a central processing unit (CPU) or other processor that can call program code. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).

[0173] Fig. 9 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device can be the above-mentioned data communication device. Fig. 9 As shown, the electronic device may include: a processor 210, a storage medium 220 and a bus 230, the storage medium 220 stores machine-readable instructions executable by the processor 210, when the electronic device is running, the processor 210 and the storage medium 220 communicate through the bus 230, and the processor 210 executes the machine-readable instructions to perform the steps of the above method embodiment. The specific implementation method and technical effect are similar and will not be repeated here.

[0174] Optionally, the present application further provides a storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method embodiment are executed. The specific implementation method and technical effect are similar and will not be repeated here.

[0175] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0176] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0177] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0178] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor (English: processor) to perform some steps of the methods of each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (English: Read-Only Memory, abbreviated: ROM), random access memory (English: Random Access Memory, abbreviated: RAM), disk or optical disk and other media that can store program codes.

[0179] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0180] The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application. It should be noted that similar numbers and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in subsequent drawings. The above are only preferred embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the scope of protection of the present application.

Claims

1. A data communication method based on a virtual extensible local area network, characterized in that: Applied to a user plane function UPF, the UPF includes a cache table and a device address list, the cache table is created by the UPF according to the detection result sent by the target terminal, the detection result is obtained by the target terminal detecting each industrial device in the device address list according to the device address list sent by the UPF, the device address list includes at least one IP address of an industrial device, a communication network identifier corresponding to each of the industrial devices, and a virtual local area network identifier corresponding to each of the industrial devices, the method includes: Receiving a virtual extensible local area network (VXLAN) message sent by a target terminal, wherein the VXLAN message is obtained by encapsulating a target message sent by a target industrial device by the target terminal, and the target industrial device and the target terminal are in the same virtual local area network; Extracting a target message from the VXLAN message, wherein the target message includes any one of the following: a layer 2 frame, an ARP message, or an IP message; Extracting the destination address in the target message, and determining the communication network identifier to which the destination address belongs according to the cache table; forwarding the target message to a target device indicated by the destination address based on a communication network identifier to which the destination address belongs; The forwarding of the target message to the target device indicated by the destination address based on the communication network identifier to which the destination address belongs includes: If the communication network identifier to which the destination address belongs indicates that the destination address is a wired side address, the VXLAN message is decapsulated, and the decapsulated message is forwarded to the target device indicated by the destination address through the N6 interface of the UPF, where the N6 interface is a data communication interface between the UPF and the data network DN; If the communication network identifier to which the destination address belongs indicates that the destination address is a wireless side address, the VXLAN message is reset to reset the source address and destination address of the VXLAN message to the address of the UPF and the terminal address corresponding to the destination address, respectively, and the reset VXLAN message is forwarded to the target device indicated by the destination address through the N3 interface of the UPF. The N3 interface is the data communication interface between the UPF and the access network AN.

2. The method according to claim 1, characterized in that The cache table includes: a layer 2 cache table and a layer 3 cache table, wherein the layer 2 cache table includes: a MAC address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device; the layer 3 cache table includes: an IP address of at least one industrial device, an IP address of a terminal corresponding to each industrial device, and a virtual local area network identifier corresponding to each industrial device; The extracting the destination address in the target message and determining the communication network identifier to which the destination address belongs according to the cache table includes: If the target message includes: an ARP message, updating the layer 2 cache table and / or the layer 3 cache table according to a first source address in the ARP message, wherein the first source address includes: a first source IP address and a first source MAC address; Extract the first destination IP address in the ARP message, and find out whether the first destination IP address is included in the three-layer cache table. If included, determine the communication network identifier to which the first destination IP address belongs based on the communication network identifier corresponding to each industrial device in the three-layer cache table.

3. The method according to claim 2, characterized in that The extracting the destination address in the target message and determining the communication network identifier to which the destination address belongs according to the cache table includes: If the target message includes: a layer 2 frame or an IP message, determining whether the sending mode corresponding to the layer 2 frame or the IP message is a multicast mode according to a preset identifier in the layer 2 frame or the IP message; If not, then searching whether the second layer cache table or the third layer cache table includes the second destination address of the second layer frame or IP message, and if included, determining the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second layer cache table or the third layer cache table; If so, traverse the second-layer cache table or the third-layer cache table, copy multiple second-layer frames or IP packets according to the entries in the second-layer cache table or the third-layer cache table, and determine the communication network identifier to which the second destination address belongs according to the communication network identifier corresponding to each industrial device in the second-layer cache table or the third-layer cache table.

4. The method according to claim 2, characterized in that: The method further comprises: Receive a device address list request message sent by a target terminal; Return a device address list to the target terminal according to the device address list request message, so that the target terminal generates a detection list according to the device address list, polls the detection list to determine the target industrial device that is communicatively connected to the target terminal, and returns the detection result to the UPF, wherein the detection result includes: the IP address of the target terminal, the device information of the target industrial device, and the device information of the target industrial device includes: the MAC address of the target industrial device and the IP address of the target industrial device; The detection result sent by the target terminal is received, and a layer 2 cache table and a layer 3 cache table are created according to the detection result.

5. The method according to claim 4, characterized in that The method further comprises: In response to the update operation of the device address list, sending a synchronization message to the target terminal, so that the target terminal generates a synchronization response according to the synchronization message, and returns the synchronization response to the UPF; The layer 2 cache table and the layer 3 cache table are updated according to the synchronization response sent by the target terminal.

6. The method according to claim 5, characterized in that In response to the update operation of the device address list, sending a synchronization message to the target terminal so that the target terminal generates a synchronization response according to the synchronization message, and returns the synchronization response to the UPF, including: In response to a new addition operation on the device address list, a first synchronization message is sent to the target terminal, so that the target terminal sends a detection message to the newly added industrial device corresponding to the new addition operation according to the first synchronization message, receives the device address information returned by the newly added industrial device, and sends the device address information to the UPF; In response to a deletion operation on at least one industrial device to be deleted in the device address list, the device address list, the second-layer cache table and the third-layer cache table in the UPF are updated, and a second synchronization message is sent to the target terminal so that the target terminal deletes the detection table entry corresponding to at least one second industrial device to be deleted in the detection list.

7. A data communication device based on a virtual scalable local area network, characterized in that: Applied to a user plane function UPF, the UPF includes a cache table and a device address list, the cache table is created by the UPF according to the detection result sent by the target terminal, the detection result is obtained by the target terminal detecting each industrial device in the device address list according to the device address list sent by the UPF, the device address list includes at least one IP address of an industrial device, a communication network identifier corresponding to each of the industrial devices, and a virtual local area network identifier corresponding to each of the industrial devices, and the data communication device includes: A receiving module, used for receiving a virtual extensible local area network VXLAN message sent by a target terminal, wherein the VXLAN message is obtained by encapsulating a target message sent by a target industrial device by the target terminal, and the target industrial device and the target terminal are in the same virtual local area network; An extraction module, used to extract a target message from the VXLAN message, wherein the target message includes any one of the following: a layer 2 frame, an ARP message, or an IP message; A determination module, used to extract the destination address in the target message, and determine the communication network identifier to which the destination address belongs according to the cache table; A forwarding module, configured to forward the target message to a target device indicated by the destination address based on a communication network identifier to which the destination address belongs; The forwarding module is specifically used to decapsulate the VXLAN message if the communication network identifier to which the destination address belongs indicates that the destination address is a wired side address, and forward the decapsulated message to the target device indicated by the destination address through the N6 interface of the UPF, where the N6 interface is a data communication interface between the UPF and the data network DN; If the communication network identifier to which the destination address belongs indicates that the destination address is a wireless side address, the VXLAN message is reset to reset the source address and destination address of the VXLAN message to the address of the UPF and the terminal address corresponding to the destination address, respectively, and the reset VXLAN message is forwarded to the target device indicated by the destination address through the N3 interface of the UPF. The N3 interface is the data communication interface between the UPF and the access network AN.

8. An electronic device, characterized in that: include: A processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the storage medium via the bus, and the processor executes the machine-readable instructions to perform the steps of the data communication method based on a virtual extensible local area network as described in any one of claims 1-6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the data communication method based on a virtual extensible local area network as claimed in any one of claims 1 to 6 are executed.