Data communication method, device, equipment and medium
By modifying the context information of the private network terminal and using local area network equipment to transmit uplink data, the problem of service interruption after the base station and 5G core network breakdown in 5G private network communication is solved, and the service continuity and network reliability are improved.
Patent Information
- Application Number
- CN202411204292.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-11-19
AI Technical Summary
In the industrial scenario of 5G private network communication, after the base station and the 5G core network are broken, the signal is interrupted, and the terminal is unable to communicate with the base station, which seriously affects production and security, and it is difficult for the existing technology to ensure business continuity.
After the private network base station enters the inertial operation mode, the context information of the private network terminal is modified so that its destination IP is the gateway IP of the local area network device, and the uplink data is transmitted to the external network through the local area network device to form a backup communication link to ensure continuous service sex.
After the base station is disconnected from the 5G core network, a backup communication link is formed through the local area network equipment to reduce service interruptions and losses, improve network reliability and flexibility, and without changing network deployment or laying additional infrastructure.
Smart Images

Figure CN118984473A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of communication technology, and in particular, relates to a data communication method, device, equipment and medium. Background Art
[0002] From the perspective of data security, many enterprises build 5G private networks for data transmission based on LAN (Wireless Local Area Network) equipment and 5G (5th Generation Mobile Communication Technology) private network base stations within the campus. Local diversion is a technology that implements data diversion between private network data and public network data within the local campus between private network base stations and 5G core networks. Based on local diversion technology, private network data does not need to be transmitted through the 5G core network in a roundabout way, but is directly diverted to the private network channel established between the local LAN and the private network terminal. At the same time, the public network data transmitted through the 5G core network is transmitted along the original route.
[0003] In industrial scenarios where 5G private network communications are applied, such as ports, mines, and fisheries, there are usually problems with line fragility in industrial parks due to the harsh production environment. If the line is damaged and the private network base station and the 5G core network are disconnected, the 5G signal will be interrupted, and the terminal will be unable to communicate with the base station, resulting in the inability to transmit private network data and all public network data transmitted through the 5G core network, which seriously affects production and safety. In related technologies, when the base station and the 5G core network are disconnected, the base station will turn on the inertial operation mode. In the inertial operation mode, the base station does not shut down the cell service and does not release the PDU (Protocol Data Unit) session information of the downstream terminal, which means that after the link is disconnected, the downstream terminal can continue to use the PDU session resources provided by the base station for data carrying and transmission, that is, the data sent by the terminal can be temporarily cached by the base station and transmitted after the link is restored.
[0004] Therefore, how to ensure uninterrupted services after the base station and 5G core network are disconnected has become an urgent problem to be solved. Summary of the invention
[0005] In response to the above problems, the present application provides a data communication method, apparatus, equipment and medium for ensuring business continuity after a base station and a 5G core network are disconnected.
[0006] In a first aspect, the present application provides a data communication method, which is applied to a local distribution device, and the method includes:
[0007] After determining that the private network base station enters the inertial operation mode, modifying the destination IP (Internet Protocol) in the context information of the private network terminal to the gateway IP of the local area network device, wherein the context information is obtained by parsing the uplink and downlink data packets of the user plane interaction when the connection state between the private network base station and the core network device is normal;
[0008] After receiving the uplink data sent by the private network terminal in the user plane data from the private network base station, based on the context information, the uplink data is sent to the local area network device, so that the local area network device sends the public network data in the uplink data to the external network, and / or based on the context information, the downlink data received from the local area network device is transmitted to the private network base station, so that the private network base station sends the downlink data to the private network terminal.
[0009] In the data communication method provided in the embodiment of the present application, after the private network base station is disconnected from the core network device, the uplink data in the user plane data is transmitted to the local area network device by combining the inertial operation mode and changing the diversion strategy of the local diversion device, and then communicated with the external network through the export of the local area network device, forming a backup communication link to ensure business continuity after the link is broken, reducing business interruptions and losses caused by emergencies, and improving network reliability and flexibility, without changing the network deployment and requiring additional infrastructure.
[0010] In a possible implementation manner, the public network data in the uplink data includes data service traffic and / or voice service traffic; and sending the public network data in the uplink data to an external network includes:
[0011] Routing the data traffic to the Internet via the LAN device; and / or
[0012] The voice service traffic is routed to the IP Multimedia Subsystem IMS (IP Multimedia Subsystem) through the local area network device.
[0013] The above method sends both the data service traffic and the voice service traffic in the uplink public network data to the local area network device, thereby routing the data service traffic to the Internet through the local area network device, and routing the voice service traffic to the IMS through the local area network device, ensuring that the transmission of the data service traffic and the voice service traffic is not interrupted due to link disconnection.
[0014] In a possible implementation, the method further includes:
[0015] In response to the context information maintenance instruction, setting a maintenance duration threshold of the context information, wherein the context information maintenance instruction carries the expected duration of the inertial operation of the private network base station, and the maintenance duration threshold is not less than the expected duration;
[0016] Before sending the uplink data to the local area network device based on the context information, and / or transmitting the downlink data received from the local area network device to the private network base station based on the context information, the method further includes:
[0017] It is determined that the maintenance time of the context information does not exceed the maintenance time threshold.
[0018] The above method sets a maintenance duration threshold that is not less than the expected duration for the modified context information, thereby ensuring that the communication service continuity of all private network terminals is not affected before the private network base station restores the connection with the core network device.
[0019] In a possible implementation, the method further includes:
[0020] When it is determined that the maintenance duration of the context information exceeds the maintenance duration threshold, the context is cleared, or the uplink and downlink data packets of the user plane interaction are parsed to obtain the context information of the current private network terminal, and it is determined whether the context information of the current private network terminal is the same as the context information of the private network terminal obtained from the base station last time. If so, the maintenance duration of the context information is restarted; otherwise, the context information is updated to the context information of the current private network terminal.
[0021] In the above method, each time after determining that the maintenance time of the context information exceeds the maintenance time threshold, you can choose to clear the context to avoid using outdated or invalid context information for communication; or you can choose to judge whether the context information of the private network terminal obtained by each analysis is the same as the context information obtained last time. If so, it means that the private network base station is still in the inertial operation mode, so the maintenance time of the context information is restarted. If not, it means that the private network base station has restored the connection with the core network device and exited the inertial operation mode. Therefore, the context information stored in the private network diversion device is updated to the context information obtained by this analysis, so as to ensure that the communication service continuity of all private network terminals is not affected before the private network base station restores the connection with the core network device, and restore the normal local diversion strategy after the private network base station restores the connection with the core network device.
[0022] In a possible implementation, the method further includes:
[0023] In response to the local diversion recovery instruction sent by the private network base station, the uplink and downlink data packets of the user plane interaction are parsed to obtain the context information of the current private network terminal, and the context information is updated to the context information of the current private network terminal.
[0024] The above method, after confirming that the local diversion recovery instruction has been received, represents that the private network base station has restored the connection with the core network device and exited the inertial operation mode. Therefore, the context information stored in the private network diversion device is updated to the context information obtained by parsing, so that after the private network base station restores the connection with the core network device, the normal local diversion strategy is restored.
[0025] In a second aspect, the present application provides a data communication method, which is applied to a private network base station; the method comprises:
[0026] After confirming that the core network equipment is disconnected, enter the inertial operation mode;
[0027] After entering the inertial operation mode, notify the local diversion device to change the destination IP in the context information of the private network terminal stored in itself to the gateway IP of the local area network device, and send the uplink data sent by the private network terminal to the local area network device based on the context information, and / or transmit the downlink data received from the local area network device to the private network base station based on the context information.
[0028] In the data communication method provided in the embodiment of the present application, after the private network base station is disconnected from the core network device, the local diversion device is notified to change the diversion strategy, so that the local diversion device combines the inertial operation mode to transmit all uplink data in the user plane data to the local area network device, and then communicates with the external network through the export of the local area network device, forming a backup communication link to ensure business continuity after the link is broken, reducing business interruptions and losses caused by emergencies, and improving network reliability and flexibility, without changing the network deployment and requiring no additional infrastructure.
[0029] In a possible implementation, the method further includes:
[0030] After the connection status with the core network device returns to normal and the context information of the private network terminal is updated, the local diversion device is notified so that the local diversion device updates the context information to the current context information of the private network terminal.
[0031] The above method, after confirming that the private network base station has restored the connection with the core network device and exited the inertial operation mode, notifies the local diversion device to update the context information of the private network terminal stored therein, thereby restoring the normal local diversion strategy after the private network base station restores the connection with the core network device.
[0032] In a third aspect, the present application provides a data communication device, the device comprising:
[0033] A context modification module, configured to modify the destination IP in the context information of the private network terminal to the gateway IP of the local area network device after determining that the private network base station has entered the inertial operation mode, wherein the context information is obtained by parsing the uplink and downlink data packets of the user plane interaction when the connection state between the private network base station and the core network device is normal;
[0034] A data forwarding module is used to, after receiving the uplink data sent by the private network terminal in the user plane data from the private network base station, send the uplink data to the local area network device based on the context information, so that the local area network device sends the public network data in the uplink data to the external network, and / or based on the context information, transmit the downlink data received from the local area network device to the private network base station, so that the private network base station sends the downlink data to the private network terminal.
[0035] In a fourth aspect, the present application provides an electronic device, including:
[0036] A memory for storing program instructions;
[0037] A processor is used to call the program instructions stored in the memory, and execute the steps included in the method of any one of the first aspects or the steps included in the method of any one of the second aspects according to the obtained program instructions.
[0038] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes any one of the methods in the first aspect, or executes any one of the methods in the second aspect.
[0039] In a sixth aspect, the present application provides a computer program product, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the method described in any one of the first aspect, or to execute the method described in any one of the second aspect.
[0040] The technical effects brought about by any implementation method in the third to sixth aspects can refer to the technical effects brought about by the corresponding implementation methods in the first and second aspects, and will not be repeated here.
[0041] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments of the present application will be briefly introduced below. Obviously, the drawings introduced below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0043] Figure 1 A schematic diagram of the architecture of a communication system provided in an embodiment of the present application;
[0044] Figure 2 A schematic diagram of a data communication method flow chart applied to a local traffic distribution device provided in an embodiment of the present application;
[0045] Figure 3 A schematic diagram of a public network traffic path when a link is broken provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of a data / voice service traffic path when a link is broken provided in an embodiment of the present application;
[0047] Figure 5 A schematic diagram of a data communication device provided in an embodiment of the present application;
[0048] Figure 6 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] In order to make the purpose, technical scheme and advantages of the present application clearer, the technical scheme in the embodiment of the present application will be clearly and completely described below in conjunction with the drawings in the embodiment of the present application. Obviously, the described embodiment is only a part of the embodiment of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application. In the absence of conflict, the embodiments in the present application and the features in the embodiments can be arbitrarily combined with each other. In addition, although the logical order is shown in the flow chart, in some cases, the steps shown or described can be performed in an order different from that here.
[0050] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive protection. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but optionally also includes steps or units that are not listed, or optionally also includes other steps or units inherent to these processes, methods, products or devices. "Multiple" in the present application can mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
[0051] The following is a description of exemplary embodiments of the present application in conjunction with the accompanying drawings, including various details of the embodiments of the present application to facilitate understanding, which should be considered as merely exemplary. Therefore, those of ordinary skill in the art should recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope of the present application. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description. It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, which should be considered as exemplary, and their purpose is only to illustrate the feasibility of the implementation of the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0052] In the technical solution of this application, the acquisition, transmission, storage, and use of data are in compliance with the requirements of relevant national laws and regulations.
[0053] Before introducing the data communication method provided by the embodiment of the present application, in order to facilitate understanding, the technical background of the embodiment of the present application is first introduced in detail below.
[0054] From the perspective of data security, many enterprises build 5G private networks for data transmission based on LAN (Wireless Local Area Network) equipment and 5G (5th Generation Mobile Communication Technology) private network base stations within the campus. Local diversion is a technology that implements data diversion between private network data and public network data within the local campus between private network base stations and 5G core networks. Based on local diversion technology, private network data does not need to be transmitted through the 5G core network in a roundabout way, but is directly diverted to the private network channel established between the local LAN and the private network terminal. At the same time, the public network data transmitted through the 5G core network is transmitted along the original route.
[0055] In industrial scenarios where 5G private network communications are applied, such as ports, mines, and fisheries, there are usually problems with line fragility in industrial parks due to the harsh production environment. If the line is damaged and the private network base station and the 5G core network are disconnected, the 5G signal will be interrupted, and the terminal will be unable to communicate with the base station, resulting in the inability to transmit private network data and all public network data transmitted through the 5G core network, which seriously affects production and safety. In related technologies, when the base station and the 5G core network are disconnected, the base station will turn on the inertial operation mode. In the inertial operation mode, the base station does not shut down the cell service and does not release the PDU (Protocol Data Unit) session information of the downstream terminal, which means that after the link is disconnected, the downstream terminal can continue to use the PDU session resources provided by the base station for data carrying and transmission, that is, the data sent by the terminal can be temporarily cached by the base station and transmitted after the link is restored.
[0056] Therefore, how to ensure uninterrupted services after the base station and 5G core network are disconnected has become an urgent problem to be solved.
[0057] In view of this, in order to ensure business continuity after the base station and the 5G core network are disconnected, the embodiments of the present application provide a data communication method, device, equipment and medium. The following describes some preferred embodiments of the present application in conjunction with the drawings of the specification.
[0058] Embodiment 1:
[0059] In order to ensure service continuity after the base station and the 5G core network are disconnected, an embodiment of the present application provides a communication system, wherein: Figure 1 FIG. 1 shows a schematic diagram of the architecture of the communication system. Figure 1 As shown, the communication system includes: a first terminal 101, a second terminal 102, a private network base station 103, a private network diversion device 104, a local area network (Wireless Local Area Network, LAN) device 105 and a 5G (5th Generation Mobile Communication Technology, fifth generation mobile communication technology) core network device 106.
[0060] In this network architecture, the first terminal 101 and the second terminal 102 are both private network terminals, that is, the downband terminals of the private network base station 103. When there is no link break between the private network base station 103 and the 5G core network or in the inertial operation mode, the context information between all downband terminals and the 5G core network can be maintained, and communication with the downband terminals can be maintained. The N2 interface is the reference point of the Access and Mobility Management Function (AMF) network element in the private network base station 103 and the 5G core network device 106, which is used for the transmission of non-access layer signaling (NAS) messages, etc.; the N3 interface is the reference point between the User Plane Function (UPF) network element in the private network base station 103 and the 5G core network device 106, which is used for transmitting user plane data, etc.
[0061] In an embodiment of the present application, the private network traffic diversion device 104 can be integrated into the private network base station 103 or deployed between the private network base station 103 and the 5G core network device 106 (such as an access layer device).
[0062] When the private network base station 103 and the 5G core network device 106 are normally connected, the private network diversion device 104 is used to forward the identified private network traffic (the traffic sent from the private network terminal to the LAN device 105) to the LAN device 105, and is also used to receive the traffic sent from the LAN device 105 to the private network terminal, package it and send it to the private network base station 103, and the private network base station 103 sends it to the private network terminal to realize the diversion of the private network traffic, so that the private network traffic does not pass through the 5G core network for roundabout transmission, thereby increasing data security and reducing transmission delay.
[0063] Specifically, referring to the scenario in the background technology, the private network terminal of the enterprise in the park can access the public network through the local area network device 105, or directly access the public network through the private network base station 103.
[0064] The difference between private network traffic and public network traffic in the embodiments of the present application is described in detail below.
[0065] As mentioned above, local traffic diversion is a technology that realizes data diversion between private network data and public network data within a local campus.
[0066] In the embodiment of the present application, the private network data includes local uplink data (referred to as uplink private network data in the embodiment of the present application) and local downlink data (referred to as downlink private network data in the embodiment of the present application). The local uplink data is the data sent by the private network terminal to the local area network device 105, and the local downlink data is the data sent by the local area network device 105 to the private network terminal. When there is no link break between the base station and the 5G core network, the private network data is transmitted through Figure 1 The private network traffic is transmitted along the private network traffic path shown in .
[0067] Exemplarily, for a scenario where a private network terminal (such as the first terminal 101) accesses the public network through the local area network device 105: when the first terminal 101 accesses the question-and-answer website A through the local local area network, the transmission path of the generated private network data is from the first terminal 101 to the private network base station 103, and then to the private network diversion device 104 to be diverted to the local area network device 105 (the type of data transmitted in this process is the uplink private network data), and then the local area network device 105 accesses the question-and-answer website A; and the response data of the question-and-answer website A received by the local area network device 105 is returned to the first terminal 101 through the same path (the type of data transmitted in this process is the downlink private network data). In addition, the first terminal 101 and the second terminal 102 in the park can also communicate according to the aforementioned process, and the communication data between the two is routed by the local area network device 105 without passing through the 5G core network.
[0068] In the embodiment of the present application, the public network data includes the data sent by the private network terminal to the 5G core network (referred to as uplink public network data in the embodiment of the present application) and the data sent by the 5G core network to the private network terminal (referred to as downlink public network data in the embodiment of the present application). Figure 1 The public network traffic path shown in is used for transmission.
[0069] Exemplarily, for a scenario in which a private network terminal (such as the first terminal 101) accesses the public network through the private network base station 103, such as when the first terminal 101 accesses the question-and-answer website A through the private network base station 103, the transmission path of the public network data is from the first terminal 101 to the private network base station 103, and then directly transmitted to the 5G core network device 106 through the private network diversion device 104 (the type of data transmitted in this process is the uplink public network data), and then the 5G core network device 106 accesses the question-and-answer website A; thereafter, the response data of the question-and-answer website A is returned to the private network terminal through the same path (the type of data transmitted in this process is the downlink public network data).
[0070] It should be noted that the first terminal 101 and the second terminal 102 in the embodiment of the present invention can both be user equipment (UE), a handheld terminal, a laptop computer, a cellular phone, a smart phone, a tablet computer, a handheld device, an augmented reality (AR) device, a virtual reality (VR) device, a machine type communication terminal or other device that can access the network, and the embodiment of the present invention does not impose any restrictions on this.
[0071] In addition, the private network base station 103 in the embodiment of the present invention is a 5G base station. For example, the private network base station 103 can be a next-generation base station (g-node-B, the next Generation Node B, gNB); the first terminal 101 in the embodiment of the present invention and the private network base station 103 can communicate with each other using a certain air interface technology (such as the new air interface (New Radio, NR); the second terminal 102 in the embodiment of the present invention and the private network base station 103 can also communicate with each other using a certain air interface technology (such as the new air interface (New Radio, NR).
[0072] For example Figure 1 The communication system shown in the figure can realize data communication in the following manner. Figure 2 As shown, a data communication method flow chart provided in some embodiments of the present application is applied to a local distribution device, and the flow chart includes the following steps:
[0073] S201: After determining that the private network base station enters the inertial operation mode, modify the destination IP in the context information of the private network terminal to the gateway IP of the local area network device.
[0074] Among them, the above context information is obtained by the local offload device parsing the uplink and downlink data packets of the user plane interaction when the connection status between the private network base station and the core network device is normal. The local offload device routes and forwards the received user plane data based on its stored context information.
[0075] In the specific implementation, the local diversion device can obtain QFI (QoS Flow Identifier) and context-related information of the terminal under the private network base station (such as N3 interface IP on the gNB side, GTP (General Packet Radio Service Tunnelling Protocol) TEID on the gNB side, N3 interface IP on the UPF side, GTP TEID on the UPF side, terminal IP, destination IP, etc.) by monitoring and parsing the uplink and downlink data packets interacting between the signaling plane (N2 interface) and the user plane (N3 interface).
[0076] Exemplarily, the context information of the private network terminal stored in the local traffic distribution device may be presented in the form of a list. Table 1 is a list of context information of the private network terminal stored in the local traffic distribution device:
[0077]
[0078] Table 1
[0079] Exemplarily, modifying the destination IP in the context information of the private network terminal to the gateway IP of the local area network device may be modifying the destination IP in the context information of all terminals in Table 1 to 0.0.0.0 / 0 or :: / 128.
[0080] In the embodiment of the present application, after the private network base station enters the inertial operation mode, the private network traffic sent by the private network terminal that has been connected to the private network base station before the link is disconnected can still be sent to the local diversion device and can still rely on Figure 1 The private network traffic path when the link is not broken is transmitted within the park, and the public network traffic of all private network terminals that have been connected to the private network base station can also be sent to the local diversion device, but it cannot be relied on Figure 1 The public network traffic path is used for transmission when the link is not broken.
[0081] Therefore, in order to ensure business continuity after the base station is disconnected from the 5G core network, this application changes the local diversion device diversion strategy after determining that the private network base station enters the inertial operation mode. Specifically, the destination IP in the context information of the private network terminal stored in the local diversion device is modified to the gateway IP of the local area network device, so that the uplink data in the user plane data can be subsequently transmitted to the local area network device.
[0082] It should be noted that when changing the diversion strategy of the local diversion device, in addition to modifying the context information of the private network terminal stored in the local diversion device, other measures can also be adopted to transmit all uplink data in the user plane data to the local area network device.
[0083] S202: After receiving the uplink data sent by the private network terminal in the user plane data from the private network base station, based on the context information, the uplink data is sent to the local area network device, so that the local area network device sends the public network data in the uplink data to the external network, and / or based on the context information, the downlink data received from the local area network device is transmitted to the private network base station, so that the private network base station sends the downlink data to the private network terminal.
[0084] It can be seen from the above-mentioned embodiments that the uplink data sent by the private network terminal in the above-mentioned user plane data includes uplink public network data and / or uplink private network data.
[0085] In a specific implementation, after the private network base station enters the inertial operation mode, the private network base station processes the original message received from the private network terminal based on the context information of the private network terminal maintained by it, and then sends it to the local diversion device. Specifically, the private network base station uses GTP to process the original message and adds a header to the original message. Correspondingly, the local diversion device uses GTP to process the received uplink data, removes the header to obtain the original message, and based on the currently stored context information, sends all the obtained original messages to the local area network device; then the local area network device processes the private network traffic in the original message according to the method when the link is not disconnected, and the public network data in the original message is sent to the external network.
[0086] like Figure 3 As shown, a schematic diagram of the data transmission path of public network traffic after a link is broken is provided in some embodiments of the present application. It can be seen that after the link is broken, a backup communication link is opened for the public network traffic by combining the inertial operation mode and changing the diversion strategy of the local diversion device. Based on the backup communication link, even if the private network base station is disconnected from the core network device, the public network traffic can also be transmitted via the local area network device.
[0087] Optionally, the method further includes:
[0088] In response to the local offload recovery instruction sent by the private network base station, the uplink and downlink data packets of the user plane interaction are parsed to obtain the context information of the current private network terminal, and the context information is updated to the context information of the current private network terminal.
[0089] The above method, after confirming that the local diversion recovery instruction has been received, represents that the private network base station has restored the connection with the core network device and exited the inertial operation mode. Therefore, the context information stored in the private network diversion device is updated to the context information obtained by parsing, so that after the private network base station restores the connection with the core network device, the normal local diversion strategy is restored.
[0090] In the data communication method provided in the embodiment of the present application, after the private network base station is disconnected from the core network device, by combining the inertial operation mode and changing the diversion strategy of the local diversion device, the uplink data in the user plane data can be transmitted to the local area network device, and then communicated with the external network through the export of the local area network device, forming a backup communication link to ensure business continuity after the link is broken, reducing business interruptions and losses caused by emergencies, and improving network reliability and flexibility, without changing the network deployment and requiring additional infrastructure construction.
[0091] In the above communication system, the local diversion service is independent of the 5G core network. Combined with the inertial operation function of the base station, it can operate normally after the base station and the 5G core network are disconnected, which solves the problem of interruption of local data diversion service after the base station and the 5G core network are disconnected. It is beneficial to low latency, high reliability, and high data privacy requirements in industry. The data communication method provided in the embodiment of the present application is transparent to the 5G network. The solution only needs to be deployed on equipment (local diversion equipment) operating in harsh environments without additional data interaction with external networks. The deployment cost is low, the deployment difficulty is low, and no additional infrastructure is required. It can adapt well to the frequent movement of 5G network equipment, which is beneficial to industrial scenarios with harsh operating environments, closed operating data interactions, harsh working environments, difficult 5G network deployment, and fragile equipment, such as meeting the control needs of ports, coal mines, and offshore fisheries.
[0092] Embodiment 2:
[0093] In some embodiments, the public network data in the uplink data sent by the above-mentioned private network terminal includes data service traffic and / or voice service traffic. In order to further ensure the service continuity after the base station and the 5G core network are disconnected, on the basis of the above-mentioned embodiment, in the embodiment of the present application, the public network data in the uplink data is sent to the external network, including:
[0094] Routing data traffic through LAN equipment to the Internet; and / or
[0095] The voice service traffic is routed to the IP Multimedia Subsystem (IMS) through the LAN equipment.
[0096] like Figure 4 , which is a schematic diagram of the data / voice service traffic transmission path provided in an embodiment of the present application.
[0097] The above method sends both the data service traffic and the voice service traffic in the uplink public network data to the local area network device, thereby routing the data service traffic to the Internet through the local area network device, and routing the voice service traffic to the IMS through the local area network device, ensuring that the transmission of the data service traffic and the voice service traffic is not interrupted due to link disconnection.
[0098] Embodiment 3:
[0099] In order to further ensure the service continuity after the base station and the 5G core network are disconnected, based on the above embodiment, in the embodiment of the present application, the method further includes:
[0100] In response to the context information maintenance instruction, setting a context information maintenance time threshold, wherein the context information maintenance instruction carries the expected time of inertial operation of the private network base station, and the maintenance time threshold is not less than the expected time;
[0101] Based on the context information, the uplink data is sent to the local area network device, and / or based on the context information, before the downlink data received from the local area network device is transmitted to the private network base station, the method further includes:
[0102] It is determined that the maintenance time of the context information does not exceed the maintenance time threshold.
[0103] The above method sets a maintenance duration threshold that is not less than the expected duration for the modified context information, thereby ensuring that the communication service continuity of all private network terminals is not affected before the private network base station restores the connection with the core network device.
[0104] It should be noted that the above-mentioned expected duration is obtained based on historical experience, and can also be evaluated in real time based on existing algorithms and real-time parameters, or can be pre-set, and this application does not limit this.
[0105] In a possible implementation, the method further includes:
[0106] When it is determined that the maintenance time of the context information exceeds the maintenance time threshold, the context is cleared, or the uplink and downlink data packets of the user plane interaction are parsed to obtain the context information of the current private network terminal;
[0107] Determine whether the context information of the current private network terminal is the same as the context information of the private network terminal obtained from the base station last time. If so, restart the timing of the maintenance time of the context information. If not, update the context information to the context information of the current private network terminal.
[0108] In the above method, the private network traffic distribution device 104 may choose to clear the context each time it determines that the maintenance time of the context information exceeds the maintenance time threshold, thereby avoiding the use of outdated or invalid context information for communication; or
[0109] Select to determine whether the context information of the private network terminal obtained by each analysis is the same as the context information obtained last time. If so, it means that the private network base station is still in the inertial operation mode, so the maintenance time of the context information starts again. If not, it means that the private network base station has restored the connection with the core network device and exited the inertial operation mode. Therefore, the context information stored in the private network diversion device is updated to the context information obtained by this analysis, so as to ensure that the communication service continuity of all private network terminals is not affected before the private network base station restores the connection with the core network device, and restore the normal local diversion strategy after the private network base station restores the connection with the core network device.
[0110] Embodiment 4:
[0111] Based on the same technical concept, on the basis of the above embodiments, in an embodiment of the present application, a data communication method is provided, which is applied to a private network base station; the method includes:
[0112] S301, after determining to disconnect from the core network device, enter the inertial operation mode;
[0113] S302, after entering the inertial operation mode, notifies the local diversion device to modify the destination IP in the context information of the private network terminal stored in itself to the gateway IP of the local area network device, and sends the uplink data sent by the private network terminal to the local area network device based on the context information, and / or transmits the downlink data received from the local area network device to the private network base station based on the context information.
[0114] In the data communication method provided in the embodiment of the present application, after the private network base station is disconnected from the core network device, the local diversion device is notified to change the diversion strategy, so that the local diversion device combines the inertial operation mode to transmit all uplink data in the user plane data to the local area network device, and then communicates with the external network through the export of the local area network device, forming a backup communication link to ensure business continuity after the link is broken, reducing business interruptions and losses caused by emergencies, and improving network reliability and flexibility, without changing the network deployment and requiring no additional infrastructure.
[0115] In a possible implementation, the method further includes:
[0116] After the connection status with the core network device returns to normal and the context information of the private network terminal is updated, the local diversion device is notified so that the local diversion device updates the context information to the current context information of the private network terminal.
[0117] The above method, after confirming that the private network base station has restored the connection with the core network device and exited the inertial operation mode, notifies the local diversion device to update the context information of the private network terminal stored therein, thereby restoring the normal local diversion strategy after the private network base station restores the connection with the core network device.
[0118] Embodiment 5:
[0119] Based on the same technical concept and on the basis of the above embodiments, a data communication device is provided in an embodiment of the present application. Figure 5 This is a schematic diagram of the structure of a data communication device provided in an embodiment of the present application. Figure 5 As shown, the device comprises:
[0120] The context modification module 501 is used to modify the destination IP in the context information of the private network terminal to the gateway IP of the local area network device after determining that the private network base station enters the inertial operation mode, wherein the context information is obtained by parsing the uplink and downlink data packets of the user plane interaction when the connection state between the private network base station and the core network device is normal;
[0121] The data forwarding module 502 is used to send the uplink data to the local area network device based on the context information after receiving the uplink data sent by the private network terminal in the user plane data from the private network base station, so that the local area network device sends the public network data in the uplink data to the external network, and / or based on the context information, transmit the downlink data received from the local area network device to the private network base station, so that the private network base station sends the downlink data to the private network terminal.
[0122] The specific implementation of the above modules can refer to the above embodiments and will not be described again here.
[0123] Embodiment 6:
[0124] Based on the same technical concept, on the basis of the above embodiments, in the embodiment of the present application, an electronic device 600 is further provided, such as Figure 6 As shown, it includes at least one processor 602; and a memory 601 that is communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data communication method applied to the local diversion device as described in the aforementioned embodiment or execute the data communication method applied to the private network base station as described in the aforementioned embodiment.
[0125] The memory 601 is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory 601 may be a volatile memory, such as a random-access memory (RAM); or a non-volatile memory, such as a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of any one or more of the above volatile memories and non-volatile memories.
[0126] The processor 602 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP. It may also be a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0127] In an embodiment of the present application, after the private network base station is disconnected from the core network device, by combining the inertial operation mode and changing the diversion strategy of the local diversion device, the uplink data in the user plane data is transmitted to the local area network device, and then communicated with the external network through the export of the local area network device, forming a backup communication link to ensure business continuity after the link is broken, reducing business interruptions and losses caused by emergencies, and improving network reliability and flexibility without changing the network deployment and laying additional infrastructure.
[0128] Embodiment 7:
[0129] Based on the same technical concept, an embodiment of the present application also provides a computer-readable storage medium, which stores a computer program, and the computer program includes program instructions. When the program instructions are executed by a computer, the computer executes the data communication method applied to the local diversion device as described in the above embodiment or executes the data communication method applied to the private network base station as described in the above embodiment.
[0130] The above-mentioned computer-readable storage medium can be any available medium or data storage device that can be accessed by the processor in the electronic device, including but not limited to magnetic storage such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical storage such as CD, DVD, BD, HVD, etc., and semiconductor storage such as ROM, EPROM, EEPROM, non-volatile memory (NANDFLASH), solid-state drive (SSD), etc.
[0131] Embodiment 8:
[0132] Based on the same inventive concept, the embodiment of the present application further provides a computer program product, which includes: computer program code, when the computer program code is run on a computer, the computer executes any of the data communication methods discussed above. Since the principle of solving the problem by the above computer program product is similar to that of the data communication method, the implementation of the above computer program product can refer to the implementation of the method, and the repeated parts will not be repeated.
[0133] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and modules can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0134] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules 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 an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0135] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0136] In addition, each functional module in each embodiment of the present application can be integrated into a processing module, or each module can exist physically separately, or two or more modules can be integrated into one module. The above-mentioned integrated module can be implemented in the form of hardware or in the form of a software functional module. If the integrated module is implemented in the form of a software functional module and sold or used as an independent product, it can be stored in a computer-readable storage medium.
[0137] In the above embodiments, all or part of the embodiments may be implemented by software, hardware, firmware or any combination thereof. When implemented by software, all or part of the embodiments may be implemented in the form of a computer program product.
[0138] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, a computer, a server, or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server, or data center. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or a data center that includes one or more available media integrations. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid state drive (SSD)), etc.
[0139] The technical solution provided by the present application is introduced in detail above. The principles and implementation methods of the present application are explained by using specific examples in the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
[0140] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0141] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0144] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A data communication method, characterized in that: Applied to local diversion equipment; the method comprises: After determining that the private network base station enters the inertial operation mode, modify the destination IP in the context information of the private network terminal to the gateway IP of the local area network device, wherein the context information is obtained by parsing the uplink and downlink data packets of the user plane interaction when the connection state between the private network base station and the core network device is normal; After receiving the uplink data sent by the private network terminal in the user plane data from the private network base station, based on the context information, the uplink data is sent to the local area network device, so that the local area network device sends the public network data in the uplink data to the external network, and / or based on the context information, the downlink data received from the local area network device is transmitted to the private network base station, so that the private network base station sends the downlink data to the private network terminal.
2. The method according to claim 1, characterized in that The public network data in the uplink data includes data service traffic and / or voice service traffic; and sending the public network data in the uplink data to an external network includes: Routing the data traffic to the Internet via the LAN device; and / or The voice service traffic is routed to the IP Multimedia Subsystem IMS through the local area network device.
3. The method according to claim 1, characterized in that The method further comprises: In response to the context information maintenance instruction, setting a maintenance duration threshold of the context information, wherein the context information maintenance instruction carries the expected duration of the inertial operation of the private network base station, and the maintenance duration threshold is not less than the expected duration; Before sending the uplink data to the local area network device based on the context information, and / or transmitting the downlink data received from the local area network device to the private network base station based on the context information, the method further includes: It is determined that the maintenance time of the context information does not exceed the maintenance time threshold.
4. The method according to claim 3, characterized in that The method further comprises: When it is determined that the maintenance duration of the context information exceeds the maintenance duration threshold, the context is cleared, or the uplink and downlink data packets of the user plane interaction are parsed to obtain the context information of the current private network terminal, and it is determined whether the context information of the current private network terminal is the same as the context information of the private network terminal obtained from the base station last time. If so, the maintenance duration of the context information is restarted; otherwise, the context information is updated to the context information of the current private network terminal.
5. The method according to claim 1, characterized in that The method further comprises: In response to the local diversion recovery instruction sent by the private network base station, the uplink and downlink data packets of the user plane interaction are parsed to obtain the context information of the current private network terminal, and the context information is updated to the context information of the current private network terminal.
6. A data communication method, characterized in that: Applied to a private network base station; the method comprises: After confirming that the connection with the core network equipment is disconnected, enter the inertial operation mode; After entering the inertial operation mode, notify the local diversion device to change the destination IP in the context information of the private network terminal stored in itself to the gateway IP of the local area network device, and send the uplink data sent by the private network terminal to the local area network device based on the context information, and / or transmit the downlink data received from the local area network device to the private network base station based on the context information.
7. The method according to claim 6, characterized in that The method further comprises: After the connection status with the core network device returns to normal and the context information of the private network terminal is updated, the local diversion device is notified so that the local diversion device updates the context information to the current context information of the private network terminal.
8. A data communication device, characterized in that: include: A context modification module, configured to modify the destination IP in the context information of the private network terminal to the gateway IP of the local area network device after determining that the private network base station has entered the inertial operation mode, wherein the context information is obtained by parsing the uplink and downlink data packets of the user plane interaction when the connection state between the private network base station and the core network device is normal; A data forwarding module is used to, after receiving the uplink data sent by the private network terminal in the user plane data from the private network base station, send the uplink data to the local area network device based on the context information, so that the local area network device sends the public network data in the uplink data to the external network, and / or based on the context information, transmit the downlink data received from the local area network device to the private network base station, so that the private network base station sends the downlink data to the private network terminal.
9. An electronic device, characterized in that: include: A memory for storing program instructions; A processor, configured to call program instructions stored in the memory, and execute the steps included in the method of any one of claims 1 to 5 according to the obtained program instructions, or execute the steps included in the method of any one of claims 6 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method according to any one of claims 1 to 5, or executes the method according to any one of claims 6 to 7.
