Data communication method and apparatus, electronic device, and non-transitory storage medium
By adding a traffic offloading module on the 5G base station side to achieve local traffic offloading function, the problem of enterprise intranet communication interruption caused by uplink bearer network failure between the base station and 5G UPF is solved, ensuring the reliability and service continuity of the 5G private network.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TELECOM CORP LTD
- Filing Date
- 2023-12-05
- Publication Date
- 2026-07-31
AI Technical Summary
In 5G private networks, when the uplink bearer network between the base station and the 5G UPF fails, the enterprise's industrial terminal applications cannot work properly, and existing technologies lack effective solutions.
By adding a traffic offloading module to the 5G base station side, local traffic offloading function is realized, networking capabilities are enhanced, and direct interconnection between the base station side and the enterprise intranet is ensured. The switching mechanism of the first route and the second route is adopted to ensure the reliability of data communication.
Even when the uplink bearer network of the base station fails, the enterprise's intranet communication can still be kept uninterrupted, realizing disaster recovery backup of the 5G private network and avoiding interruption of enterprise applications.
Smart Images

Figure CN117676767B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and more specifically, to a data communication method, apparatus, electronic device, and non-volatile storage medium. Background Technology
[0002] A 5G (Fifth Generation Mobile Network) private network involves multiple components end-to-end, including: base stations, bearer network, core network (5GC), user plane function (UPF) elements, and customer intranet leased lines. The corresponding 5G private network architecture is typically: customer application terminal - 5G terminal - base station - bearer network - 5GC - UPF - leased line - customer intranet - customer application server.
[0003] In related technologies, when both the uplink bearer network between the base station and the 5G UPF fails, enterprise applications based on the 5G private network will be interrupted, causing problems such as the inability of enterprise industrial terminal applications based on intranet communication to work properly.
[0004] There is currently no effective solution to the above problems. Summary of the Invention
[0005] This application provides a data communication method, apparatus, electronic device, and non-volatile storage medium to at least solve the technical problem in the related art where industrial terminal applications based on intranet communication cannot work properly when the uplink bearer network of the base station fails.
[0006] According to one aspect of the embodiments of this application, a data communication method is provided, comprising: obtaining the status of a target route of a traffic splitting module corresponding to a communication base station through an industrial gateway, wherein the target route includes: a first route and a second route, wherein the communication base station is connected to a target intranet through the first route via a user plane function network element, and the communication base station is directly connected to the target intranet through the second route; when the status of the first route is normal, sending an uplink data stream to the target intranet through the first route for data communication; when an abnormality is detected in the status of the first route and the status of the second route is normal, switching the first route to the second route, and sending an uplink data stream to the target intranet through the second route for data communication.
[0007] Optionally, each target route corresponds to an Internet Protocol address, wherein the Internet Protocol address corresponding to the first route is the first address, and the Internet Protocol address corresponding to the second route is the second address; sending an uplink data stream to the target intranet for data communication via the first route includes: sending the uplink data stream to the splitting module, wherein the splitting module, upon detecting that the destination address corresponding to the uplink data stream is the first address, sends the uplink data stream to the target intranet via the first route.
[0008] Optionally, the method further includes: detecting the hardware operating status of the traffic splitting module, wherein the hardware operating status is used to characterize whether the traffic splitting module is working properly; and in the case of abnormal hardware operating status, sending the uplink data stream directly to the user plane function network element through the communication base station, wherein the user plane function network element is used to forward the uplink data stream to the target intranet.
[0009] Optionally, the method further includes: receiving a downlink data stream returned by the target intranet in response to the uplink data stream, wherein, when the communication plugin corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is a first address, and the communication plugin detects that the status of the first route is normal, the downlink data stream is sent from the target intranet to the industrial terminal corresponding to the industrial gateway through the first route, and the source address corresponding to the downlink data stream is the first address; when the communication plugin corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is a second address, and the communication plugin detects that the status of the second route is normal, the downlink data stream is sent from the target intranet to the industrial terminal through the second route, and the source address corresponding to the downlink data stream is the second address.
[0010] Optionally, the method further includes: receiving downlink data streams sent by the target intranet when the number of downlink data streams is greater than the number of uplink data streams, and the difference between the number of uplink data streams and the number of uplink data streams exceeds a preset threshold, wherein the downlink data streams are sent from the target intranet to the industrial terminal via a target route, and the target route used to send the downlink data streams is determined by the communication plug-in corresponding to the target intranet based on the detected status of the target route.
[0011] Optionally, the method further includes: determining the data type of the uplink data stream used for data transmission, wherein the data type includes: signaling stream data and service stream data, the service stream data being data used for service interaction between the industrial terminal and the target intranet, and the signaling stream data including at least one of the following: authentication data, registration data, Internet Protocol address acquisition data, and periodic location update data of the industrial terminal in the communication core network; when the uplink data stream is service stream data, transmitting the uplink data stream through the target route of the splitting module; when the uplink data stream is signaling stream data, transmitting the uplink data stream directly to the communication core network through the communication base station for signaling interaction.
[0012] Optionally, the method further includes: when the state of the first route is detected to have returned to normal, switching the second route back to the first route, and sending an uplink data stream to the target intranet for data communication through the first route.
[0013] According to another aspect of the embodiments of this application, a data communication device is also provided, comprising: a status awareness module, configured to obtain the status of a target route of a traffic splitting module corresponding to a communication base station through an industrial gateway, wherein the target route includes: a first route and a second route, wherein the communication base station is connected to a target intranet through the first route via a user plane function network element, and the communication base station is directly connected to the target intranet through the second route; a data communication module, configured to send an uplink data stream to the target intranet for data communication through the first route when the status of the first route is normal; and a disaster recovery communication module, configured to switch the first route to the second route and send an uplink data stream to the target intranet for data communication through the second route when an abnormality is detected in the status of the first route and the status of the second route is normal.
[0014] According to another aspect of the embodiments of this application, an electronic device is also provided, including: a memory and a processor, the processor being configured to run a program stored in the memory, wherein the program executes a data communication method during runtime.
[0015] According to another aspect of the embodiments of this application, a non-volatile storage medium is also provided, the non-volatile storage medium including a stored computer program, wherein the device where the non-volatile storage medium is located executes a data communication method by running the computer program.
[0016] In this embodiment, the status of the target route of the traffic splitting module corresponding to the communication base station is obtained through an industrial gateway. The target route includes a first route and a second route. The communication base station connects to the target intranet through the first route via user plane function network elements, and the communication base station connects directly to the target intranet through the second route. When the status of the first route is normal, uplink data streams are sent to the target intranet through the first route for data communication. When an abnormality is detected in the status of the first route and the status of the second route is normal, the first route is switched to the second route, and uplink data streams are sent to the target intranet through the second route for data communication. By enhancing the networking capabilities on the base station side while maintaining the existing 5G private network reliability networking scheme, and adding a module that can realize basic local traffic splitting function on the 5G base station side, and by connecting a dedicated line from the base station to the customer's intranet to match the coordination of enterprise applications, the goal of ensuring that the customer's business can continue to operate smoothly through the dedicated line from the base station to the customer's intranet is achieved. This solves the technical problem in related technologies where the industrial terminal applications based on intranet communication cannot work normally when the uplink bearer network of the base station fails. Attached Figure Description
[0017] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0018] Figure 1 This is a hardware structure block diagram of a computer terminal (or electronic device) for implementing a data communication method according to an embodiment of this application;
[0019] Figure 2 This is a schematic diagram of the architecture of a 5G disaster recovery backup system in a related art according to an embodiment of this application;
[0020] Figure 3 This is a schematic diagram of a data communication method flow according to an embodiment of this application;
[0021] Figure 4 This is a schematic diagram of the architecture of a heterogeneous disaster recovery backup system between a 5G base station and a UPF, provided according to an embodiment of this application.
[0022] Figure 5 This is a schematic diagram of the structure of a data communication device according to an embodiment of this application. Detailed Implementation
[0023] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0024] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of this application described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0025] A 5G private network involves multiple components from end to end, including: base stations, the transport network, the core network 5GC, the user plane function network element (UPF), and the leased line from the UPF to the customer's internal network. The corresponding 5G private network architecture is typically: customer's application terminal - 5G terminal - base station - transport network - 5GC - UPF - leased line - customer's internal network - customer's application server, as detailed below. Figure 2 As shown, when any link in the bearer network, 5GC, UPF, and the leased line from UPF to the customer's intranet fails, there are standard disaster recovery backup solutions for the above links in accordance with the 5G private network networking method in relevant technologies.
[0026] However, in related technologies, if the uplink bearer network between the base station and the 5G UPF fails, enterprise applications based on the 5G private network will be interrupted. Even with redundant base station deployments, customer services will still be affected. Furthermore, if enterprises want to achieve disaster recovery backup for the 5G private network with other networks such as industrial Ethernet, the two networks are completely different and have different communication routing methods. Therefore, manual network switching is required, involving the enterprise's application terminals, application systems, and network equipment. Additionally, the base stations in these technologies lack user plane routing capabilities. In the event of uplink bearer failure at the base station, it is impossible to directly interconnect with the enterprise's internal network within the campus using base stations deployed within the enterprise campus, thus failing to meet the enterprise's disaster recovery backup requirements for the 5G private network.
[0027] To address the aforementioned issues, this application provides relevant solutions, which are detailed below.
[0028] According to an embodiment of this application, a method embodiment for data communication is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0029] The methods and embodiments provided in this application can be executed on mobile terminals, computer terminals, or similar computing devices. Figure 1 A hardware structure block diagram of a computer terminal (or electronic device) for implementing a data communication method is shown. Figure 1 As shown, the computer terminal 10 (or electronic device) may include one or more processors 102 (shown as 102a, 102b, ..., 102n in the figure) 102 (processor 102 may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of a BUS bus), a network interface, a power supply, and / or a camera. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the aforementioned electronic device. For example, computer terminal 10 may also include... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0030] It should be noted that the aforementioned one or more processors 102 and / or other data processing circuits are generally referred to herein as "data processing circuits". These data processing circuits may be embodied, in whole or in part, in software, hardware, firmware, or any other combination thereof. Furthermore, the data processing circuits may be a single, independent processing module, or may be integrated, in whole or in part, into any other element within the computer terminal 10 (or electronic device). As involved in the embodiments of this application, the data processing circuits serve as a processor control mechanism (e.g., selection of a variable resistor termination path connected to an interface).
[0031] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the data communication method in this embodiment. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, thereby realizing the aforementioned data communication method. The memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0032] The transmission device 106 is used to receive or send data via a network. Specific examples of the network described above may include a wireless network provided by the communication provider of the computer terminal 10. In one example, the transmission device 106 includes a Network Interface Controller (NIC), which can connect to other network devices via a base station to communicate with the Internet. In another example, the transmission device 106 may be a Radio Frequency (RF) module, used for wireless communication with the Internet.
[0033] The display may be, for example, a touchscreen liquid crystal display (LCD) that allows the user to interact with the user interface of the computer terminal 10 (or electronic device).
[0034] Under the above operating environment, this application provides a data communication method. Figure 3 This is a schematic diagram of a data communication method flow according to an embodiment of this application, such as... Figure 3 As shown, the method includes the following steps:
[0035] Step S302: Obtain the status of the target route of the traffic splitting module corresponding to the communication base station through the industrial gateway. The target route includes: a first route and a second route. The communication base station connects to the target intranet through the first route via the user plane function network element, and the communication base station connects directly to the target intranet through the second route.
[0036] Step S304: If the first route is in normal condition, send an uplink data stream to the target intranet through the first route to perform data communication.
[0037] Step S306: If the status of the first route is detected to be abnormal and the status of the second route is normal, the first route is switched to the second route, and the uplink data stream is sent to the target intranet through the second route for data communication.
[0038] Through the above steps, while maintaining the existing 5G private network reliability network architecture, the networking capabilities are enhanced on the base station side. A traffic offloading module that enables basic local traffic offloading is added to the 5G base station side. Under the premise of implementing 5G user plane routing functions on the base station side, a dedicated line is run from the base station to the customer's internal network to match the coordination of enterprise applications. This achieves the goal of ensuring that the customer's business can continue to operate smoothly through the dedicated line from the base station to the customer's internal network. In turn, it solves the technical problem in related technologies where industrial terminal applications based on internal network communication cannot work normally when the uplink bearer network of the base station fails.
[0039] The data communication method in steps S302 to S306 of the embodiments of this application will be further described below.
[0040] Figure 4 This is a schematic diagram of the architecture of a heterogeneous disaster recovery backup system between a 5G base station and a UPF, according to an embodiment of this application. Figure 4 As shown.
[0041] In this embodiment of the application, an independent module for implementing local service offloading of the 5G communication base station is added to the 5G communication base station side, namely the offloading module mentioned above. This module is deployed on the link between the base station and the core network. Downlink, it connects to the communication base station, and uplink, it connects to both the enterprise intranet (target intranet) and the UPF. In terms of basic user plane service offloading, the function of this offloading module is basically the same as the function of the user plane function network element UPF, as detailed below.
[0042] In this embodiment, the traffic splitting module supports the basic functions of the 5G N3 interface and LAN (Local Area Network), including data transmission and connection management. It can acquire packet information from the N3 interface and analyze and process key routing information of GTPU packets (GPRS Tunneling Protocol User Plane, a protocol used to transmit data on the user plane in mobile communication networks). This key routing information includes, but is not limited to, PLMN (Public Land Mobile Network), slice information, and IP 5-tuples (five information elements uniquely identifying a network connection, including source IP address, destination IP address, source port number, destination port number, and transport protocol). Simultaneously, it can combine routing configuration and routing status to perform subsequent service routing splitting, ensuring data is transmitted according to preset routes. For downlink services from enterprise intranet application systems, the traffic splitting module can encapsulate and perform corresponding routing splitting processing.
[0043] The communication base station and the aforementioned traffic offloading module can interact using standard 3GPP (3rd Generation Partnership Project) messages, meaning the base station treats this module as a UPF (User-Defined Provider) for connection. The base station does not perform any special processing on the signaling plane or user plane, and no special processing such as software version upgrades is required. The enterprise's target intranet can physically connect to the UPF simultaneously, or connect to the base station through this traffic offloading module. This achieves disaster recovery and backup for the heterogeneous system of the 5G private network itself, based on both UPF-based local traffic offloading and base station-based local traffic offloading, thus ensuring the reliability of the 5G private network itself.
[0044] It should be noted that the aforementioned traffic offloading module can physically exist independently or be loaded onto the base station. This is to achieve 5G dedicated line routing based on base station traffic offloading (i.e., the aforementioned second route, using...). Figure 4 Taking route 2 as an example, the network corresponding to it serves as a 5G dedicated line route based on UPF traffic splitting (i.e., the first route mentioned above). Figure 4 (Taking route 1 as an example) The backup network of the corresponding network, the traffic splitting module also needs to support the bearer channel not being released for a long time (e.g., 24 hours, which can be configured according to actual needs) to reserve enough time to handle faults.
[0045] In addition, in order to promptly detect the operation status of the 5G private line route based on UPF local traffic splitting (i.e., the first route mentioned above), and to ensure that in the event of a failure of the first route, the enterprise's uplink and downlink services can quickly and automatically switch to the 5G private line route based on base station traffic splitting (i.e., the second route mentioned above), this application embodiment also adds an APK (Android Package File) plugin to the 5G industrial gateway, and adds a 5G private network routing status judgment and switching logic processing module to the enterprise application system side, namely the industrial gateway corresponding to the industrial equipment and the communication plugin corresponding to the target intranet.
[0046] This application's solution, through the addition of an independent base station offloading module to a conventional 5G base station, enables offloading functionality based on the N3 and N6 interfaces. Figure 4 When route 1 (first route) in the architecture shown is interrupted, the service flow (uplink data flow) from the base station can be diverted to the application system of the target intranet through route 2 (second route) for communication. The transmission process of the uplink data flow from the industrial terminal (equipment) to the application system of the target intranet (enterprise intranet) will be further described below.
[0047] Before uplink data transmission, each target route needs to be configured with an Internet Protocol address. The Internet Protocol address corresponding to the first route is the first address, and the Internet Protocol address corresponding to the second route is the second address. In addition, the traffic splitting module, like the UPF network element, needs to independently establish a service flow carrying channel for the industrial terminal corresponding to the user. That is, the keep-alive period of the newly added traffic splitting module must be configurable.
[0048] In this embodiment, the first route is used as the primary route and the second route is used as the backup route. The specific process is as follows.
[0049] First, the status of the first and second routes is determined by the heartbeat detection through the plug-in in the industrial gateway. If the status of the first route is normal, the destination address in the uplink data stream is the first address (IP1). If the first route is unreachable or its status is abnormal, it will automatically switch to the Internet Protocol address corresponding to the second route. That is, if the status of the first route is abnormal and the status of the second route is normal, the destination address in the uplink data stream is the second address (IP2).
[0050] If the status of the first route is detected to have returned to normal, the second route will be switched back to the first route, and the uplink data stream will be sent to the target intranet through the first route for data communication.
[0051] Then, the operating status of the splitter module itself can be determined, i.e., the Layer 2 link status determination. The specific steps are as follows.
[0052] In some embodiments of this application, the method further includes the following steps: detecting the hardware operating status of the traffic splitting module, wherein the hardware operating status is used to characterize whether the traffic splitting module is working properly; in the case of abnormal hardware operating status, sending the uplink data stream directly to the user plane function network element through the communication base station, wherein the user plane function network element is used to forward the uplink data stream to the target intranet.
[0053] Specifically, if the hardware of the splitter module is operating normally, the uplink data stream will be routed to the splitter module; if the hardware is malfunctioning, the original UPF channel will be used, that is, the uplink data stream will be sent directly to the user plane function network element through the communication base station.
[0054] Assuming the hardware of the traffic splitting module is operating normally and the uplink data stream is sent to the traffic splitting module, the traffic splitting module also needs to make real-time judgments on the link status of the first route and the second route. The specific steps are as follows.
[0055] In some embodiments of this application, sending an uplink data stream to the target intranet via a first route for data communication includes the following steps: sending the uplink data stream to a splitting module, wherein the splitting module, when detecting that the destination address corresponding to the uplink data stream is the first address and the status of the first route is normal, sends the uplink data stream to the target intranet via the first route.
[0056] Specifically, when the traffic splitting module receives an uplink data stream, it first determines whether the destination address is the first address or the second address. If the destination address is the first address and the first route is functioning correctly, the uplink data stream is sent through the first route. If the destination address is the second address and the second route is functioning correctly, the uplink data stream is sent through the second route. Upon receiving a service stream from the first address, the traffic splitting module automatically forwards it to the UPF (User Platform Provider) via the first route, and then the UPF forwards it to the target intranet application system. Similarly, upon receiving a service stream from the second address, it automatically forwards it to the enterprise intranet application system via the second route. Regardless of whether the service stream originates from the first or second route, the enterprise intranet application system can process it normally.
[0057] After receiving the uplink data stream, the corresponding auxiliary communication plugin on the target intranet determines the target route for the uplink data stream based on whether the destination address is the first address or the second address. It then notifies the application system via API, causing the application system to carry different source addresses when sending downlink data streams to the industrial terminals. The enterprise's target intranet system then determines the target route for the downlink data stream based on these different source addresses. The following section further describes the downlink data stream transmission process from the application system on the target intranet to the industrial terminals.
[0058] Before transmitting downlink data streams, the enterprise intranet switches / routers can first determine the link status of the first and second routes. For example, the switches / routers can use Bidirectional Forwarding Detection (BFD) in conjunction with interface status to perform link detection and control the switching of link detection.
[0059] Then, heartbeat detection is performed through the corresponding communication plugin of the target intranet. Combined with the received uplink messages and the link detection results of the switch, the status of the first route and the second route is determined, and the target route for sending downlink data stream is determined.
[0060] When there are more upstream transactions, that is, when the number of upstream data streams is much greater than the number of downstream data streams, whether the downstream needs to use the first route or the second route can be determined based on the destination address of the upstream route. The specific steps are as follows.
[0061] In some embodiments of this application, the method further includes the following steps: receiving a downlink data stream returned by the target intranet in response to the uplink data stream, wherein, when the communication plug-in corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is a first address, and the communication plug-in detects that the status of the first route is normal, the downlink data stream is sent from the target intranet to the industrial terminal corresponding to the industrial gateway through the first route, and the source address corresponding to the downlink data stream is the first address; when the communication plug-in corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is a second address, and the communication plug-in detects that the status of the second route is normal, the downlink data stream is sent from the target intranet to the industrial terminal through the second route, and the source address corresponding to the downlink data stream is the second address.
[0062] Specifically, if the destination address corresponding to the received uplink data stream is the first address, the communication plugin notifies the application system of the target intranet to switch to the first address through the API interface. At the same time, it coordinates with the enterprise intranet's switch / router to monitor the link status and determine that the status of the first route is normal. Then, the downlink data stream is sent from the target intranet to the industrial terminal corresponding to the industrial gateway through the first route. The same applies to the second address.
[0063] When downlink traffic is predominant, i.e., when the number of downlink data streams is greater than the number of uplink data streams, and the difference between the number of uplink data streams and the number of uplink data streams exceeds a preset threshold, the communication plugin can determine the target route that the downlink traffic needs to take. The specific steps are as follows.
[0064] In some embodiments of this application, the method further includes the following steps: when the number of downlink data streams is greater than the number of uplink data streams, and the difference between the number of uplink data streams and the number of uplink data streams exceeds a preset threshold, receiving downlink data streams sent by the target intranet, wherein the downlink data streams are sent from the target intranet to the industrial terminal through a target route, and the target route used to send the downlink data streams is determined by the communication plug-in corresponding to the target intranet based on the detected status of the target route.
[0065] For example, if the communication plugin detects that the target intranet has not received an uplink message (uplink data stream) within 2 minutes (configurable) and detects that the first route is unavailable (abnormal status) within 3 minutes (configurable), it will switch to the second route. The relevant timers can be adjusted according to the application scenario.
[0066] After receiving the downlink data stream sent by the target intranet, the offloading module can encapsulate the corresponding GTPU message and send it directly to the industrial terminal connected to the 5G terminal through the base station.
[0067] Additionally, it should be noted that the uplink and / or downlink data streams processed by the diversion module in this embodiment are all service data streams, and do not involve signaling data streams that interact with the 5G core network. The processes by which industrial terminals interact with the 5G core network through base stations for authentication, registration, obtaining IP addresses, and periodic location updates are all called signaling streams. After obtaining the IP address allocated by the 5G core network, the terminal can perform service interactions and interact with application systems. For example, the processes of communication software applications or data collection by industrial enterprises are all service streams.
[0068] In some embodiments of this application, the method further includes the following steps: determining the data type of the uplink data stream used for data transmission, wherein the data type includes: signaling stream data and service stream data, the service stream data being data used for service interaction between the industrial terminal and the target intranet, and the signaling stream data including at least one of the following: authentication data, registration data, Internet Protocol address acquisition data, and periodic location update data of the industrial terminal in the communication core network; when the uplink data stream is service stream data, transmitting the uplink data stream through the target route of the splitting module; when the uplink data stream is signaling stream data, transmitting the uplink data stream directly to the communication core network through the communication base station for signaling interaction.
[0069] Specifically, the traffic splitting module only handles pure service flow processing and does not perform any signaling processing. That is, signaling interactions (signaling data flows) with the 5GC do not pass through the traffic splitting module; the original network architecture is maintained, with direct interaction between the base station and the 5GC. However, for service data flows, regardless of the availability of the conventional first route in the original network architecture, all service data flows must pass through the traffic splitting module, which then determines whether to use the first or second route. In the event of a traffic splitting module failure, upon detection by the base station, the base station will automatically split the service flow directly through the UPF to ensure uninterrupted service.
[0070] This application adds a module on the base station side that enables basic local traffic offloading. This module is functionally independent of the base station but logically deployed on the link between the base station and the UPF. It can directly establish a dedicated line with the enterprise's intranet to address the issue of user plane services not supporting offloading via 5G base stations in 5G private network applications. Furthermore, it adds logical processing modules on the 5G terminal side and the enterprise application system side to automatically determine the routing status of different 5G private lines (e.g., conventional 5G private lines and 5G private lines via base stations). Without the enterprise's awareness, it can quickly and automatically switch uplink and downlink services to base station-based 5G private line routes in the event of a failure in the 5G private line route based on UPF local offloading. After the primary route based on UPF local offloading recovers, these auxiliary function modules can automatically switch from the backup route based on base station offloading to the primary route based on UPF local offloading. This solves the problem of requiring manual assistance when switching from conventional private lines based on 5G UPF offloading to 5G base station-based local offloading. In addition, this application plan can also be extended to meet the needs of enterprises that do not agree to have the UPF located in the enterprise park but still require that the data not leave the park.
[0071] According to an embodiment of this application, an embodiment of a data communication device is also provided. Figure 5 This is a schematic diagram of the structure of a data communication device according to an embodiment of this application. Figure 5 As shown, the device includes:
[0072] The status awareness module 50 is used to obtain the status of the target route of the traffic splitting module corresponding to the communication base station through the industrial gateway. The target route includes: a first route and a second route. The communication base station connects to the target intranet through the first route via the user plane function network element, and the communication base station connects directly to the target intranet through the second route.
[0073] Data communication module 52 is used to send uplink data streams to the target intranet through the first route to perform data communication when the first route is in normal condition.
[0074] Optionally, each target route corresponds to a first Internet Protocol address, wherein the Internet Protocol address corresponding to the first route is the first address, and the Internet Protocol address corresponding to the second route is the second address; sending an uplink data stream to the target intranet for data communication via the first route includes: sending the uplink data stream to the splitting module, wherein the splitting module, upon detecting that the destination address corresponding to the uplink data stream is the first address, sends the uplink data stream to the target intranet via the first route.
[0075] Optionally, the data communication module 52 is further configured to: detect the hardware operating status of the splitter module, wherein the hardware operating status is used to characterize whether the splitter module is working properly; and in the event of an abnormal hardware operating status, send the uplink data stream directly to the user plane function network element through the communication base station, wherein the user plane function network element is used to forward the uplink data stream to the target intranet.
[0076] Optionally, the data communication module 52 is further configured to: receive a downlink data stream returned by the target intranet in response to the uplink data stream, wherein, when the communication plug-in corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is a first address, and the communication plug-in detects that the status of the first route is normal, the downlink data stream is sent from the target intranet to the industrial terminal corresponding to the industrial gateway through the first route, and the source address corresponding to the downlink data stream is the first address; when the communication plug-in corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is a second address, and the communication plug-in detects that the status of the second route is normal, the downlink data stream is sent from the target intranet to the industrial terminal through the second route, and the source address corresponding to the downlink data stream is the second address.
[0077] Optionally, the data communication module 52 is further configured to: receive downlink data streams sent by the target intranet when the number of downlink data streams is greater than the number of uplink data streams, and the difference between the number of uplink data streams and the number of uplink data streams exceeds a preset threshold, wherein the downlink data streams are sent from the target intranet to the industrial terminal via a target route, and the target route used to send the downlink data streams is determined by the communication plug-in corresponding to the target intranet based on the detected status of the target route.
[0078] Optionally, the data communication module 52 is further configured to: determine the data type of the uplink data stream used for data transmission, wherein the data type includes: signaling stream data and service stream data, the service stream data being data used for service interaction between the industrial terminal and the target intranet, and the signaling stream data including at least one of the following: authentication data, registration data, Internet Protocol address acquisition data, and periodic location update data of the industrial terminal in the communication core network; when the uplink data stream is service stream data, transmit the uplink data stream through the target route of the splitting module; when the uplink data stream is signaling stream data, transmit the uplink data stream directly to the communication core network through the communication base station for signaling interaction.
[0079] The disaster recovery communication module 54 is used to switch the first route to the second route when the status of the first route is detected to be abnormal and the status of the second route is normal, and to send the uplink data stream to the target intranet for data communication through the second route.
[0080] Optionally, the disaster recovery communication module 54 is also used to: switch the second route back to the first route when the status of the first route is detected to have returned to normal, and send an uplink data stream to the target intranet for data communication through the first route.
[0081] It should be noted that each module in the above-mentioned data communication device can be a program module (for example, a set of program instructions that implement a certain function) or a hardware module. For the latter, it can be manifested in the following forms, but is not limited to them: each of the above modules is manifested as a processor, or the functions of each of the above modules are implemented by a processor.
[0082] It should be noted that the data communication device provided in this embodiment can be used to perform... Figure 3 The data communication method shown above is also applicable to the embodiments of this application, and will not be repeated here.
[0083] This application embodiment also provides a non-volatile storage medium, which includes a stored computer program. The device containing the non-volatile storage medium executes the following data communication method by running the computer program: obtaining the status of the target route of the traffic splitting module corresponding to the communication base station through an industrial gateway. The target route includes a first route and a second route. The communication base station connects to the target intranet via the first route through a user plane function network element, and the communication base station connects directly to the target intranet via the second route. If the status of the first route is normal, an uplink data stream is sent to the target intranet via the first route for data communication. If an abnormality is detected in the status of the first route and the status of the second route is normal, the first route is switched to the second route, and an uplink data stream is sent to the target intranet via the second route for data communication.
[0084] The sequence numbers of the embodiments in this application are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0085] In the above embodiments of this application, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0086] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0087] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0088] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0089] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, read-only memory (ROM), random access memory (RAM), portable hard drive, magnetic disk, or optical disk.
[0090] The above description is only a preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications should also be considered within the scope of protection of this application.
Claims
1. A data communication method, characterized in that, include: The status of the target route of the traffic splitting module corresponding to the communication base station is obtained through the industrial gateway. The target route includes: a first route and a second route. The communication base station connects to the target intranet through the first route via the user plane function network element, and the communication base station connects directly to the target intranet through the second route. When the first route is in normal condition, an uplink data stream is sent to the target intranet through the first route to perform data communication. Each target route corresponds to an Internet Protocol (IP) address, wherein the IP address corresponding to the first route is a first address, and the IP address corresponding to the second route is a second address; sending an uplink data stream to the target intranet via the first route for data communication includes: sending the uplink data stream to the splitting module, wherein the splitting module, upon detecting that the destination address corresponding to the uplink data stream is the first address and that the first route is in normal status, sends the uplink data stream to the target intranet via the first route; The method further includes: receiving a downlink data stream returned by the target intranet in response to the uplink data stream, wherein, when the communication plugin corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is the first address, and the communication plugin detects that the status of the first route is normal, the downlink data stream is sent by the target intranet to the industrial terminal corresponding to the industrial gateway through the first route, and the source address corresponding to the downlink data stream is the first address; when the communication plugin corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is the second address, and the communication plugin detects that the status of the second route is normal, the downlink data stream is sent by the target intranet to the industrial terminal through the second route, and the source address corresponding to the downlink data stream is the second address; The method further includes: when the number of downlink data streams is greater than the number of uplink data streams, and the difference between the number of uplink data streams and the number of uplink data streams exceeds a preset threshold, receiving the downlink data stream sent by the target intranet, wherein the downlink data stream is sent by the target intranet to the industrial terminal through the target route, and the target route used to send the downlink data stream is determined by the communication plug-in corresponding to the target intranet based on the detected status of the target route; If an abnormality is detected in the status of the first route and the status of the second route is normal, the first route is switched to the second route, and the uplink data stream is sent to the target intranet through the second route for data communication.
2. The data communication method according to claim 1, characterized in that, The method further includes: The hardware operating status of the traffic splitting module is detected, wherein the hardware operating status is used to characterize whether the traffic splitting module is working properly; In the event of an abnormal hardware operation, the uplink data stream is directly transmitted to the user plane function network element via the communication base station, wherein the user plane function network element is used to forward the uplink data stream to the target intranet.
3. The data communication method according to claim 1, characterized in that, The method further includes: Determine the data type of the uplink data stream used for data transmission, wherein the data type includes: signaling stream data and service stream data, the service stream data is data used for service interaction between the industrial terminal and the target intranet, and the signaling stream data includes at least one of the following: authentication data, registration data, Internet Protocol address acquisition data, and periodic location update data of the industrial terminal in the communication core network; When the uplink data stream is the service stream data, the uplink data stream is transmitted through the target route of the splitting module; When the uplink data stream is the signaling stream data, the uplink data stream is directly transmitted to the communication core network through the communication base station for signaling interaction.
4. The data communication method according to claim 1, characterized in that, The method further includes: If the status of the first route is detected to have returned to normal, the second route is switched back to the first route, and the uplink data stream is sent to the target intranet through the first route for data communication.
5. A data communication device, characterized in that, include: A status awareness module is used to obtain the status of the target route of the traffic splitting module corresponding to the communication base station through the industrial gateway. The target route includes a first route and a second route. The communication base station connects to the target intranet through the first route via the user plane function network element, and the communication base station connects directly to the target intranet through the second route. The data communication module is used to send an uplink data stream to the target intranet through the first route to perform data communication when the first route is in normal condition. Each target route corresponds to an Internet Protocol (IP) address, wherein the IP address corresponding to the first route is a first address, and the IP address corresponding to the second route is a second address; sending an uplink data stream to the target intranet via the first route for data communication includes: sending the uplink data stream to the splitting module, wherein the splitting module, upon detecting that the destination address corresponding to the uplink data stream is the first address and that the first route is in normal status, sends the uplink data stream to the target intranet via the first route; The data communication device is further configured to: receive a downlink data stream returned by the target intranet in response to the uplink data stream, wherein, when the communication plug-in corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is the first address, and the communication plug-in detects that the status of the first route is normal, the downlink data stream is sent by the target intranet to the industrial terminal corresponding to the industrial gateway through the first route, and the source address corresponding to the downlink data stream is the first address; when the communication plug-in corresponding to the target intranet detects that the destination address corresponding to the received uplink data stream is the second address, and the communication plug-in detects that the status of the second route is normal, the downlink data stream is sent by the target intranet to the industrial terminal through the second route, and the source address corresponding to the downlink data stream is the second address; The data communication device is further configured to: receive the downlink data stream sent by the target intranet when the number of downlink data streams is greater than the number of uplink data streams, and the difference between the number of uplink data streams and the number of uplink data streams exceeds a preset threshold, wherein the downlink data stream is sent from the target intranet to the industrial terminal through the target route, and the target route used to send the downlink data stream is determined by the communication plug-in corresponding to the target intranet based on the detected status of the target route; The disaster recovery communication module is used to switch the first route to the second route when the state of the first route is detected to be abnormal and the state of the second route is normal, and to send the uplink data stream to the target intranet for data communication through the second route.
6. An electronic device, characterized in that, include: A memory and a processor, the processor being configured to run a program stored in the memory, wherein the program, when executed, performs the data communication method according to any one of claims 1 to 4.
7. A non-volatile storage medium, characterized in that, The non-volatile storage medium includes a stored computer program, wherein the device containing the non-volatile storage medium executes the data communication method of any one of claims 1 to 4 by running the computer program.