Data forwarding method, apparatus, device, and readable storage medium

By setting up a first interface between the base station and the application server and utilizing routing rules to directly forward data, the problem of data transmission delay in vertical applications is solved, and low-latency transmission is achieved.

CN117676765BActive Publication Date: 2026-11-27CHINA MOBILE COMM LTD RES INST +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202211032794.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-26
Publication Date
2026-11-27
Estimated Expiration
2042-08-26

AI Technical Summary

Technical Problem

In existing technologies, data from vertical applications cannot be directly transmitted from the application server to the terminal and needs to be forwarded through User Plane Functions (UPF), resulting in long data transmission latency.

Method used

A primary interface is set up between the base station and the application server to directly forward data through routing rules, avoiding the use of the UPF and utilizing the base station's computing resources for data processing and forwarding.

Benefits of technology

It achieves low-latency data transmission, reduces data relay links in the core network, and improves data transmission efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117676765B_ABST
    Figure CN117676765B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a data forwarding method, device and equipment and readable storage medium, the method comprising: receiving first data, the first data comprising data corresponding to a service application; determining a receiving end and a sending end of the first data according to the first data; forwarding the first data to the receiving end according to the receiving end and the sending end of the first data and a routing rule, wherein the routing rule is used to indicate forwarding the first data to an application server or to indicate forwarding the first data to a terminal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, specifically to a data forwarding method, apparatus, device, and readable storage medium. Background Technology

[0002] For vertical applications, such as applications in factories and industrial parks, data sent from application servers to terminals (e.g., user equipment (UE)) cannot be directly connected to the base station. Instead, it needs to be forwarded to the base station through the user plane function (UPF), which makes it impossible to guarantee low-latency data transmission. Summary of the Invention

[0003] This application provides a data forwarding method, apparatus, device, and readable storage medium to address the problem of ensuring low-latency data transmission.

[0004] Firstly, a data forwarding method is provided, applied to a base station, including:

[0005] Receive first data, which includes data corresponding to the business application;

[0006] Based on the first data, determine the receiving end and the sending end of the first data;

[0007] Based on the receiving end and sending end of the first data, as well as the routing rules, the first data is forwarded to the receiving end;

[0008] The routing rules are used to instruct the first data to be forwarded to the application server, or to instruct the first data to be forwarded to the terminal.

[0009] Optionally, before receiving the first data, the method further includes:

[0010] Receive second data, which is the first packet of data transmitted between the business application and the terminal;

[0011] Based on the second data, obtain the TEID, source IP address, and destination IP address of the second data;

[0012] Based on the TEID of the second data, the relevant information of the target terminal is determined. The relevant information of the target terminal includes at least one of the following: the terminal's external network IP address, the terminal's external network port, and the terminal's identifier.

[0013] The source IP address, the destination IP address, the base station external network IP address, the terminal external network IP address, the terminal external network port, and the terminal identifier are all included.

[0014] Optionally, the terminal identifier includes at least one of the following: an identifier used to distinguish the terminal on the base station side, an identifier used to distinguish the terminal on the core network side, and a C-RNTI.

[0015] Optionally, before forwarding the first data to the receiving end based on the receiving end and sending end of the first data, and the routing rules, the method further includes:

[0016] Based on the sender and receiver of the first data and the routing rules, determine whether to forward the first data according to the routing rules;

[0017] If it is determined that the first data is to be forwarded on the wireless network side, then the step of forwarding the first data to the receiving end is performed according to the receiving end and sending end of the first data, as well as the routing rules.

[0018] Optionally, based on the receiving end and sending end of the first data, and the routing rules, the first data is forwarded to the receiving end, including:

[0019] Based on the receiving end and sending end of the first data, as well as the routing rules, the first data is processed according to the first rule;

[0020] The processed first data is directly forwarded to the application server;

[0021] The first rule includes at least one of the following:

[0022] Replace the source IP address of the first data with the external IP address of the base station corresponding to the source IP address;

[0023] Replace the source IP address of the first data with the external IP address of the terminal corresponding to the source IP address;

[0024] Replace the source port of the first data with the terminal's external network port.

[0025] Optionally, based on the receiving end and sending end of the first data, and the routing rules, the first data is forwarded to the receiving end, including:

[0026] Based on the receiving and sending ends of the first data, and the routing rules, the first data is processed according to the second rule;

[0027] The processed first data is forwarded to the terminal;

[0028] The second rule includes at least one of the following:

[0029] If the destination IP address is the base station's external network IP address, then replace the destination IP address of the first data with the terminal IP address;

[0030] Replace the destination port of the first data with the terminal's external network port.

[0031] Optionally, the computing resources allocated to the base station include: wireless computing resources used by the base station and wireless computing resources that the base station can share, and the service application is deployed on the wireless computing resources that the base station can share.

[0032] Secondly, a data forwarding device is provided, applied to a base station, comprising:

[0033] The first receiving module is used to receive first data, which includes data corresponding to the business application.

[0034] The first determining module is used to determine the receiving end and the sending end of the first data based on the first data;

[0035] The forwarding module is used to forward the first data to the receiving end based on the receiving end and the sending end of the first data, as well as the routing rules.

[0036] The routing rules are used to instruct the first data to be forwarded to the application server, or to instruct the first data to be forwarded to the terminal.

[0037] Optionally, the device further includes:

[0038] The second receiving module is used to receive the second data, which is the first packet of data transmitted between the business application and the terminal.

[0039] The second acquisition module is used to acquire the TEID, source IP address and destination IP address of the second data based on the second data.

[0040] The storage module is used to determine the relevant information of the target terminal based on the TEID of the second data. The relevant information of the target terminal includes at least one of the following: the terminal's external network IP address, the terminal's external network port, and the terminal's identifier; and to store at least one of the following: the source IP address, the destination IP address, the base station's external network IP address, the terminal's external network IP address, the terminal's external network port, and the terminal's identifier.

[0041] Optionally, the device further includes:

[0042] The judgment module is used to determine whether to forward the first data according to the routing rules based on the sending end and receiving end of the first data and the routing rules.

[0043] Optionally, the forwarding module is further configured to:

[0044] Based on the receiving end and sending end of the first data, as well as the routing rules, the first data is processed according to the first rule;

[0045] The processed first data is directly forwarded to the application server;

[0046] The first rule includes at least one of the following:

[0047] Replace the source IP address of the first data with the external IP address of the base station corresponding to the source IP address;

[0048] Replace the source IP address of the first data with the external IP address of the terminal corresponding to the source IP address;

[0049] Replace the source port of the first data with the terminal's external network port.

[0050] Optionally, the forwarding module is further configured to:

[0051] Based on the receiving and sending ends of the first data, and the routing rules, the first data is processed according to the second rule;

[0052] The processed first data is forwarded to the terminal;

[0053] The second rule includes at least one of the following:

[0054] If the destination IP address is the base station's external network IP address, then replace the destination IP address of the first data with the terminal IP address;

[0055] Replace the destination port of the first data with the terminal's external network port.

[0056] Thirdly, a communication device is provided, including a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps as described in the first aspect.

[0057] Fourthly, a readable storage medium is provided, on which a program or instructions are stored, which, when executed by a processor, implement the steps as described in the first aspect.

[0058] In this embodiment of the application, for a service application, its data interaction with the terminal can bypass the core network forwarding. Instead, the base station forwards the data related to the service application according to the routing rules, thereby enabling the service application to transmit data directly with the base station and reducing latency. Attached Figure Description

[0059] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the scope of this application. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings:

[0060] Figure 1 This is a flowchart of a data forwarding method provided in an embodiment of this application;

[0061] Figure 2 This is a schematic diagram of a wireless computing network architecture provided in an embodiment of this application;

[0062] Figure 3 This is a schematic diagram illustrating the establishment of a bearer according to an embodiment of this application;

[0063] Figure 4 This is a schematic diagram illustrating the information acquisition and configuration in the routing rules provided in an embodiment of this application;

[0064] Figure 5 This is a flowchart of cross-base station forwarding provided in an embodiment of this application;

[0065] Figure 6 This is a schematic diagram of a data forwarding device provided in an embodiment of this application;

[0066] Figure 7 This is a schematic diagram of a communication device provided in an embodiment of this application;

[0067] Figure 8 This is a schematic diagram of the header of the first data in an embodiment of this application;

[0068] Figure 9 This is a schematic diagram illustrating the configuration of routing rules in an embodiment of this application;

[0069] Figure 10 This is a schematic diagram of data forwarding in an embodiment of this application. Detailed Implementation

[0070] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0071] The term "comprising," and any variations thereof, used in the specification and claims of this application, is intended to cover a non-exclusive inclusion. For example, a process, manner, system, product, or apparatus that includes a series of steps or units is not necessarily limited to those explicitly listed, but may include other steps or units not explicitly listed or inherent to such process, manner, product, or apparatus. Furthermore, the use of "and / or" in the specification and claims indicates at least one of the connected objects, such as A and / or B, indicating the inclusion of A alone, B alone, or both A and B.

[0072] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0073] The terminals involved in this application can be mobile phones, tablet computers, laptop computers (also known as notebook computers), personal digital assistants (PDAs), handheld computers, netbooks, ultra-mobile personal computers (UMPCs), mobile internet devices (MIDs), augmented reality (AR) / virtual reality (VR) devices, robots, wearable devices, vehicle-mounted devices (VUEs), pedestrian terminals (PUEs), smart home devices (home appliances with wireless communication capabilities, such as refrigerators, televisions, washing machines, or furniture), game consoles, personal computers (PCs), ATMs, or self-service machines, etc. Wearable devices include: smartwatches, smart bracelets, smart headphones, smart glasses, smart jewelry (smart bracelets, smart chains, smart rings, smart necklaces, smart anklets, smart anklets, etc.), smart wristbands, smart clothing, etc. It should be noted that the specific type of terminal is not limited in the embodiments of this application.

[0074] The computing network (also referred to as computing network) involved in this application is a high degree of collaboration between computing and network, embedding computing units and computing capabilities into the network to achieve efficient collaboration of "cloud, pipe, edge, and terminal" and improve the utilization rate of computing resources.

[0075] The external network involved in this application can also be called a wide area network (WAN) or a public network.

[0076] See Figure 1 The embodiments of this application provide a data forwarding method applied to a base station. Optionally, the base station can be deployed in a wireless computing network, in which the base station is allocated computing resources. The method includes steps 101, 102 and 103.

[0077] Step 101: Receive first data, which includes data corresponding to the business application;

[0078] Optionally, the business application in step 101 can be a business application deployed at the edge.

[0079] Existing base stations are implemented based on dedicated hardware, and the dedicated hardware and base station software functions cannot be decoupled. This results in the dedicated hardware and its possible operating system being incompatible with the deployment of service applications. In the embodiments of this application, optionally, the base station is allocated computing resources to incorporate wireless computing resources and data forwarding into the computing network. The computing resources allocated to the base station may include: wireless computing resources used by the base station and wireless computing resources that the base station can share. By deploying service applications on the wireless computing resources that the base station can share, the dedicated hardware of the base station can be decoupled from the base station software functions deployed on the wireless computing resources used by the base station. By adjusting the wireless computing resources that the base station can share, it can be made compatible with service applications. Furthermore, the service applications can be placed closer to the base station, thereby bringing the service applications closer to the user and realizing the decentralization of service applications.

[0080] Optionally, one implementation of step 101 includes: the base station receiving first data from the terminal, or the base station receiving first data from an application server deployed at the edge of the base station, wherein a first interface can be set between the base station and the application server, so that the base station can communicate directly with the application server through the first interface.

[0081] Optionally, another implementation of step 101 includes: the base station receiving first data from an application server deployed at the edge of another base station. For example, a wireless computing network is deployed with base station 1 and base station 2. Base station 2 is equipped with an application server deployed at the edge. A first interface can be set between the application servers deployed at the edge of base station 1 and base station 2. Base station 1 receives the first data sent by the application server deployed at the edge of base station 2.

[0082] In this embodiment, the first interface has the following characteristics:

[0083] (1) The implementation form, deployment location, and other physical form of the first interface are not restricted;

[0084] (2) The first interface provides the shortest logical path between the base station and the application server for the data of the business application, and does not affect the existing functions of other existing interfaces.

[0085] In other words, the first data can be data from business applications, including vertical applications of 5G technology, such as applications in business scenarios including but not limited to autonomous driving and virtual reality (VR).

[0086] (3) The first interface can be implemented in the data forwarding layer above the base station protocol stack layer 2. The messages sent by the Packet Data Convergence Protocol (PDCP) layer are forwarded through the wireless computing network.

[0087] The data sent from the existing application server to the terminal cannot be directly connected to the base station. It still needs to be forwarded to the base station through the User Plane Function (UPF). The reasons are: (1) The base station does not provide data input that is not received by UPF. It cannot process data input that is not received by UPF and cannot associate it with the destination terminal. (2) Before the service application data enters the base station, it needs to be encapsulated by the User Plane Part of GPRS Tunnel Protocol (GTP-U) through UPF. The destination IP address of the terminal and the source IP address of the application server need to be encapsulated into the GTP-U tunnel message format. The source IP address of the terminal and the source IP address of the application server are identified by the Tunnel Endpoint Identifier (TEID).

[0088] In the embodiments of this application, the purpose of setting up a first interface between the base station and the application server is to build a data path between the application server and the base station, forming the shortest logical "direct" path, avoiding the "indirect" path where the data of the business application first goes to the UPF and then is forwarded by the UPF to the base station, effectively improving the low latency advantage of the business application.

[0089] In the embodiments of this application, in order to identify the data that needs to be forwarded through the first interface, routing rules can be configured for the base station, so that the base station can forward or pass through the received first data according to the information in the routing rules.

[0090] The first data involved in this application may also be referred to as the first data packet or the first data message, and the application server involved in this application may also be referred to as the business application server.

[0091] Step 102: Based on the first data, determine the receiving end and the sending end of the first data;

[0092] For example, the receiver and sender of the first data can be determined based on the source IP address and destination IP address of the first data.

[0093] Step 103: Based on the receiving end and sending end of the first data, and the routing rules, forward the first data to the receiving end;

[0094] The routing rules are used to instruct the first data to be forwarded to the application server, or to instruct the first data to be forwarded to the terminal.

[0095] Optionally, the routing rule can be implemented using a routing table, which can also be called a forwarding table or a forwarding table related to wireless communication.

[0096] In one embodiment of this application, prior to step 101, the method may further include:

[0097] Receive second data, which is the first packet of data transmitted between the business application and the terminal. That is, the second data can be the first packet of data sent by the business application to the terminal, or the second data can be the first packet of data sent by the terminal to the business application. The format of the second data can be GTP-U format.

[0098] Based on the second data, obtain the tunnel endpoint identifier (TEID), source IP address, and destination IP address of the second data;

[0099] Based on the TEID of the second data, the relevant information of the target terminal is determined. The relevant information of the target terminal includes at least one of the following: the terminal's external network IP address, the terminal's external network port, and the terminal's identifier.

[0100] Save at least one of the following to the routing rule: the source IP address, the destination IP address, the base station external network IP address, the terminal external network IP address, the terminal external network port, and the terminal identifier.

[0101] See Figure 9 The specific steps are as follows:

[0102] Step 1: The base station receives the second data sent by the application server. The format of the second data can be GTP-U format.

[0103] The second data mentioned above can also be referred to as GTP-U data.

[0104] Step 2: The base station obtains the TEID, source IP address, and destination IP address of the second data. The base station queries the forwarding record in the routing rules based on the TEID of the second data. If no corresponding forwarding record is found, the base station obtains relevant information of the target terminal through the TEID, such as the terminal's external IP address, the terminal's external port, and the terminal identifier (such as C-RNTI, RAN-UE-NGAP-ID, and / or AMF-UE-NGAP-ID).

[0105] Step 3: Save at least one of the following to the routing rule: the source IP address, the destination IP address, the base station external network IP address, the terminal external network IP address, the terminal external network port, and the terminal identifier;

[0106] Step 4: The base station sends the second data to the target terminal. In the embodiments of this application, by configuring routing rules in the base station, the base station is equipped with a forwarding function, and the forwarding function extends the unique fields of wireless side communication to construct routing rules related to wireless communication.

[0107] Optionally, the source IP address can be the terminal IP address and the destination IP address can be the application server IP address, or the source IP address can be the application server IP address and the destination IP address can be the terminal IP address. The application server IP address can be configured by a configurator (e.g., an operation administration and maintenance management system or a smart controller).

[0108] Optionally, the external IP address of the terminal is configured in the core network.

[0109] Considering the risks (e.g., security) of base stations obtaining terminal IP addresses, the terminal's IP address can be replaced with its identifier. That is, the source IP address or destination IP address in the routing rules can use the terminal identifier. Specifically, if the source IP address in the header of the first data contains the terminal identifier, the base station can interpret it as data sent by the terminal corresponding to that identifier. Similarly, if the destination IP address in the header of the first data contains the terminal identifier, the base station can forward data based on that identifier, avoiding the base station directly interpreting the terminal's IP address in the first data.

[0110] Optionally, the terminal identifier may include at least one of the following: RAN-UE-NGAP-ID, AMF-NGAP-UE-ID, and Cell-Radio Network Temporary Identifier (C-RNTI).

[0111] The RAN-UE-NGAP-ID is a unique identifier for a UE on the N2 interface between the base station and the AMF. Its purpose is to enable the base station to identify the terminal. Considering that the signaling elements when the base station and AMF establish a service session include the terminal's identifier, the information used to construct routing rules can include the RAN-UE-NGAP-ID. Using this method, the RAN-UE-NGAP-ID will change during UE handover and reconnection, requiring updates to the RAN-UE-NGAP-ID in the routing rules.

[0112] The AMF-NGAP-UE-ID is a unique UE identifier between the core network and the gNB on the N2 interface. It is the identifier used by the core network to identify the terminal on the N2 interface. Within the core network, the AMF-NGAP-UE-ID can be associated with other identifiers of the terminal, such as the 5G-Globally Unique Temporary Identifier (5G-GUTI).

[0113] Table 1: Information in the routing rules.

[0114]

[0115] The first interface context has a corresponding TEID. The first interface context is stored in the routing rules. The first interface is the communication interface between the base station and the application server. The first interface context includes at least one of the following: the base station's external IP address, the terminal's external IP address, the terminal's external port, and the terminal's identifier.

[0116] Optionally, the source IP address in the routing rule can also be an AMF address or a UPF address, and the destination IP address can also be an AMF address or a UPF address.

[0117] The base station can receive the first data sent from the terminal or other network devices, query the routing rules, and process or pass through the data according to the destination IP address.

[0118] Alternatively, the base station receives the first data sent by the application server or other network devices, queries the routing rules, and processes or transmits the data according to the destination IP address.

[0119] See Figure 8 The diagram illustrates the structure of the first data, which includes a header and a data portion. The base station can obtain the source IP address and destination IP address from the header of the first data.

[0120] The base station determines whether the source IP address and destination IP address in the first data match the configuration entries in the routing rules, for example:

[0121] a) When the source IP address matches the source IP address in the routing rule, but the destination IP address does not match the destination IP address in the routing rule, the first data is forwarded through the N3 interface.

[0122] b) If the source IP address matches the source IP address in the routing rule and the destination IP address matches the destination IP address in the routing rule, then the first data will not be forwarded through the N3 interface.

[0123] c) When the RAN-UE-NGAP-ID, AMF-UE-NGAP-ID and / or C-RNTI of the UE match the terminal identifier in the routing rules, the base station can forward the first data to the corresponding application server according to the routing rules.

[0124] In the embodiments of this application, the base station can perform operations such as adding, deleting, modifying or querying routing rules, so that the base station can accurately match the wireless side path to the received first data.

[0125] In the embodiments of this application, the base station can perform statistics on the data forwarded by the first interface. For example, the statistical information may include, but is not limited to, at least one of the following: the number of data received by the first interface, the number of data sent, the number of lost packets, the number of erroneous packets, and latency jitter, so that the base station meets the statistical or billing requirements.

[0126] In one embodiment of this application, before forwarding the first data to the receiving end based on the receiving end and the sending end of the first data, and the routing rules, the method further includes:

[0127] Based on the sender and receiver of the first data and the routing rules, determine whether to forward the first data according to the routing rules;

[0128] If so, the step of forwarding the first data to the receiving end according to the receiving end and sending end of the first data and the routing rules is executed; otherwise, the base station does not use the routing rules to forward the first data, but can use the transparent transmission method to transmit the first data, that is, the base station does not process the first data, and transparently transmits the first data to the AMF or UPF through the N2 interface or N3 interface according to the destination IP address in the first data.

[0129] In one embodiment of this application, forwarding the first data to the receiving end based on the receiving end and the sending end of the first data, as well as routing rules, includes:

[0130] Based on the receiving end and sending end of the first data, as well as the routing rules, the first data is processed according to the first rule;

[0131] The processed first data is directly forwarded to the application server;

[0132] The first rule includes at least one of the following:

[0133] Replace the source IP address of the first data with the external IP address of the base station corresponding to the source IP address;

[0134] Replace the source IP address of the first data with the external IP address of the terminal corresponding to the source IP address.

[0135] Replace the source port of the first data with the terminal's external network port.

[0136] In one embodiment of this application, forwarding the first data to the receiving end based on the receiving end and the sending end of the first data, as well as routing rules, includes:

[0137] Based on the receiving and sending ends of the first data, and the routing rules, the first data is processed according to the second rule;

[0138] The processed first data is forwarded to the terminal;

[0139] The second rule includes at least one of the following:

[0140] If the destination IP address is the base station's external network IP address, then replace the destination IP address of the first data with the terminal IP address;

[0141] Replace the destination port of the first data with the terminal's external network port.

[0142] In this embodiment of the application, for a service application, its data interaction with the terminal can bypass the core network forwarding. Instead, the base station forwards the data related to the service application according to the routing rules, thereby enabling the service application to transmit data directly with the base station and reducing latency.

[0143] like Figure 2 The diagram illustrates a wireless computing network provided in an embodiment of this application. The base station receives service data from an application service via a first interface, or sends service data to an application server via the first interface. The base station's control plane is connected to the AMF via the N2 interface. The base station's user plane is connected to the UPF via the N3 interface.

[0144] Furthermore, the wireless computing network has the capability to share wireless computing resources. The computing resources in the wireless network include: wireless computing resources used by the base station and computing resources shared by the base station. The computing resources shared by the base station are computing resources shared by the base station and provided to the application server. This allows wireless computing resources and data forwarding to be incorporated into the wireless computing network.

[0145] Furthermore, when the base station determines to forward the first data to the AMF based on the receiving end and the sending end of the first data, the base station can forward the first data to the AMF through the N2 interface; or when the base station determines to forward the first data to the UPF based on the receiving end and the sending end of the first data, the base station can forward the first data to the UPF through the N3 interface.

[0146] Example 1: The base station receives the first data sent by the terminal.

[0147] The base station receives the first data sent by the terminal and, according to the information in the routing rules:

[0148] (1) Parse the destination IP address of the first data and determine whether the first data is forwarded through the first interface, the N2 interface, or the N3 interface.

[0149] (2) If it is determined that the first data is forwarded through the first interface, then use method 1 or method 2 to replace the source IP address and / or source port of the first data. After replacing the source IP address and / or source port of the first data, the terminal's internal network IP address is effectively protected, and the risk of network security is reduced.

[0150] If method 1 is used, the source IP address of the first data is replaced with the external IP address of the base station, and the source port is replaced with the external port of the terminal. In this way, after the base station forwards the first data to the application server, the application server can determine that the first data was sent to the base station by the terminal, and the application server can provide feedback on the first data sent by the terminal.

[0151] If method 2 is used, the source IP address of the first data (which is the internal IP address of the core network terminal) is replaced with the external IP address of the terminal. Optionally, the source port is replaced with the external port of the terminal. In this way, after the base station forwards the first data to the application server, the application server can determine that the first data was sent to the base station by the terminal, and the application server can provide feedback on the first data sent by the terminal.

[0152] The external network port of the terminal involved in this application may be assigned by the base station or by the core network, and the core network notifies the base station.

[0153] (3) The base station forwards the first data.

[0154] Example 2: The base station receives the first data sent by the application server.

[0155] The base station receives the first data sent by the application server and, based on the information in the routing rules:

[0156] (1) Resolve the destination IP address of the first data;

[0157] (2) Query the routing rules by destination IP address.

[0158] If the destination IP address is the base station's external network IP address, then replace the destination IP address of the first data with the terminal's IP address. Optionally, replace the destination port of the first data with the terminal's external network port.

[0159] (3) The base station forwards the first data.

[0160] See Figure 10 Taking access to services within the campus as an example, the UE's IP address is the internal network IP address 192.168.10.1 assigned by the core network, while the application server's IP address is the external network IP address 10.10.10.3. UE data packets accessing service applications do not pass through the N3 interface to the UPF; instead, they access the service applications directly within the campus. In the forwarding table configured on the base station, the base station's external network IP address is 10.10.10.1.

[0161] Configure routing rules, where the IP address of the service server is 10.10.10.3, the external IP address of the base station is 10.10.10.1, RAN_UE_NGAP_ID is 1, AMF_UE_NGAP_ID is 1, and optionally, the external port of the terminal is 36001.

[0162] Example 1, taking the process of UE-base station-application server transmitting the first data as an example.

[0163] 1. The UE sends the first data to the base station.

[0164] 2. The base station receives the first data. The source IP address of the first data is 192.168.10.1, and the destination IP address is 10.10.10.3.

[0165] 3. The base station queries the routing rules to confirm that 192.168.10.1 and 10.10.10.3 exist in the routing rules.

[0166] 4. The base station replaces the UE's internal network IP address in the source IP address of the header of the first data with the base station's external network IP address 10.10.10.1.

[0167] If the UE's external network port is not configured in the routing rules, the base station can allocate an unused port and fill it into the source port in the header of the first data.

[0168] If the routing rule configures the external network port of the terminal, then the source port in the header of the first data is replaced with the configured external network port of the terminal (e.g., 36001).

[0169] 5. The base station forwards the updated first data to the application server.

[0170] 6. After receiving the first data, the application server can provide feedback.

[0171] Example 2, taking the process of application server-base station-UE transmitting the first data as an example.

[0172] 1. The application server configures the source IP address of the application server (10.10.10.3) in the header of the first data, the destination IP address (the external IP address of the base station, 10.10.10.1), and the destination port (36001).

[0173] 2. After receiving the first data, the base station resolves the source IP address to 10.10.10.3, which is the IP address of the application server; resolves the destination IP address to 10.10.10.1, which is the external IP address of the base station; and resolves the destination port to 36001, which is the external port of the terminal.

[0174] 3. Based on the above information, the base station queries the routing rules and determines that the IP address of the UE corresponding to "36001" is 192.168.10.1, the RAN-UE-NGAP-ID is 1, and the AMF-UE-NGAP-ID is 1. Based on the results of querying the routing rules, the base station can determine the target UE.

[0175] 4. Based on the determined target UE, the base station replaces the destination IP address in the header of the first data with the IP address of the target UE, and sends the first data to the target UE.

[0176] Example 3

[0177] Scenario: Application servers are deployed in a decentralized manner, and terminals send data packets to the application servers and receive data from the application servers.

[0178] The network elements involved include: terminals, base stations, AMF, UPF, and application servers.

[0179] 1. For the host establishment process, please refer to [link / reference]. Figure 3 :

[0180] By establishing a dedicated bearer for the terminal, the base station obtains the TEID and RAN-NGAP-UE-ID from the first interface context.

[0181] 2. For the routing rule configuration process of the wireless computing network, please refer to [link / reference]. Figure 4 :

[0182] Obtain the RAN-NGAP-UE-ID and AMF-UE-NGAP-ID configured on the base station side.

[0183] The configurator (e.g., network management system, intelligent controller) configures the IP address of the application server, and the base station configures this information into the routing rules.

[0184] Optionally, the core network can configure the external IP address of the terminal, and the base station can configure this information into the routing rules.

[0185] The terminal sends the second data to the application server (that is, the first data packet sent by the terminal to the application server). The base station parses the second data, obtains the TEID, and uses the TEID to address the routing rules. It then adds the terminal's IP address (i.e., the source IP address), the application server's IP address (i.e., the destination IP address), the terminal identifier, the terminal's external IP address, and the terminal's external port to the routing rules. Since the destination IP address of the second data is the application server's IP address, the base station can forward the data packet using either method 1 or method 2.

[0186] 3. The forwarding process of the first data from the base station:

[0187] (1) The process of the terminal forwarding the first data to the application server:

[0188] 1) Configure routing rules: application server IP address.

[0189] 2) Parse the first data and obtain the source IP address and destination IP address of the first data.

[0190] 3) Configure routing rules: source IP address, destination IP address, base station external IP address, terminal external IP address, RAN-UE-NGAP-ID, AMF-UE-NGAP-ID.

[0191] 4) Construct complete routing rules. Based on the destination IP address of the first data, determine whether to access the application server. If:

[0192] a. If yes, then process and send via method 1 or 2.

[0193] Method 1: Replace the source IP address of the first data with the external IP address of the base station, and replace the source port with the external port of the terminal;

[0194] Method 2: Replace the source IP address of the first data with the terminal's external IP address. Optionally, replace the source port with the terminal's external port.

[0195] b. If not, then the first data is transmitted through the N3 interface.

[0196] (2) For the cross-base station forwarding process, see Figure 5 :

[0197] 1) The application server deployed near the cloud base station 2 with the forwarding module sends the first data to the cloud base station 1 with the forwarding module through a switch or router.

[0198] 2) The cloud-based base station 1 with a forwarding module resolves the destination IP address of the first data.

[0199] 3) The cloud-based base station 1 with a forwarding module queries the routing rules by the destination IP address.

[0200] a. Since the first data is forwarded by the application server to the terminal in the intranet through the cloud base station 1, if the destination IP address is the external IP address of the base station, the destination IP address of the first data is replaced with the address of the terminal IP (i.e., the internal IP address of the terminal). Optionally, the destination port is replaced with the external port of the terminal.

[0201] b. Since the first data is forwarded by the application server to the terminal in the intranet through the cloud base station 1, if the destination IP address is the terminal's external IP address, then the destination IP address of the first data is replaced with the terminal's IP address (i.e., the terminal's intranet IP address). Optionally, the destination port is replaced with the terminal's external port.

[0202] 4) The cloud-based base station 1 with a forwarding module continues to process the first data.

[0203] 5) The cloud-based base station 1 with a forwarding module sends the first data to the terminal.

[0204] See Figure 6 This application provides a data forwarding apparatus for use in a base station. The apparatus 600 includes:

[0205] The first receiving module 601 is used to receive first data, the first data including data corresponding to the business application;

[0206] The first determining module 602 is used to determine the receiving end and the sending end of the first data based on the first data;

[0207] The forwarding module 603 is used to forward the first data to the receiving end according to the receiving end and the sending end of the first data, as well as the routing rules;

[0208] The routing rules are used to instruct the first data to be forwarded to the application server, or to instruct the first data to be forwarded to the terminal.

[0209] In one embodiment of this application, the apparatus further includes:

[0210] The second receiving module is used to receive the second data, which is the first packet of data transmitted between the business application and the terminal.

[0211] The second acquisition module is used to acquire the TEID, source IP address and destination IP address of the second data based on the second data.

[0212] The storage module is used to determine the relevant information of the target terminal based on the TEID of the second data. The relevant information of the target terminal includes at least one of the following: the terminal's external network IP address, the terminal's external network port, and the terminal's identifier; and to store at least one of the following: the source IP address, the destination IP address, the base station's external network IP address, the terminal's external network IP address, the terminal's external network port, and the terminal's identifier.

[0213] In one embodiment of this application, the IP address of the application server is configured by a configurator, or the external IP address of the terminal is configured by the core network.

[0214] In one embodiment of this application, the identifier of the terminal includes at least one of the following: an identifier used to distinguish the terminal on the base station side, an identifier used to distinguish the terminal on the core network side, and C-RNTI.

[0215] In one embodiment of this application, the apparatus further includes:

[0216] The judgment module is used to determine whether to forward the first data according to the routing rules based on the sending end and receiving end of the first data and the routing rules.

[0217] In one embodiment of this application, the forwarding module 603 is further configured to:

[0218] Based on the receiving end and sending end of the first data, as well as the routing rules, the first data is processed according to the first rule;

[0219] The processed first data is directly forwarded to the application server;

[0220] The first rule includes at least one of the following:

[0221] Replace the source IP address of the first data with the external IP address of the base station corresponding to the source IP address;

[0222] Replace the source IP address of the first data with the external IP address of the terminal corresponding to the source IP address;

[0223] Replace the source port of the first data with the terminal's external network port.

[0224] In one embodiment of this application, the forwarding module 603 is further configured to:

[0225] Based on the receiving and sending ends of the first data, and the routing rules, the first data is processed according to the second rule;

[0226] The processed first data is forwarded to the terminal;

[0227] The second rule includes at least one of the following:

[0228] If the destination IP address is the base station's external network IP address, then replace the destination IP address of the first data with the terminal IP address;

[0229] Replace the destination port of the first data with the terminal's external network port.

[0230] The apparatus provided in this application embodiment can achieve... Figure 1 The various processes implemented in the illustrated embodiments achieve the same technical effect, and will not be described again here to avoid repetition.

[0231] like Figure 7 As shown, this application embodiment also provides a communication device 700, including a processor 701, a memory 702, and a program or instructions stored in the memory 702 and executable on the processor 701. When the program or instructions are executed by the processor 701, they implement the above-mentioned... Figure 1 The various processes in the illustrated embodiments achieve the same technical effect. To avoid repetition, they will not be described again here.

[0232] This application embodiment also provides a readable storage medium storing a program or instructions that, when executed by a processor, implement the above-described functionality. Figure 1 The various processes in the illustrated embodiments can achieve the same technical effect, and will not be described again here to avoid repetition.

[0233] The processor mentioned above is the processor in the terminal described in the above embodiments. The readable storage medium includes computer-readable storage media, such as computer read-only memory (ROM), random access memory (RAM), magnetic disk, or optical disk.

[0234] The steps of the methods or algorithms described in this application can be implemented in hardware or by executing software instructions on a processor. The software instructions can consist of corresponding software modules, which can be stored in RAM, flash memory, ROM, EPROM, EEPROM, registers, hard disk, portable hard disk, read-only optical disk, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can be housed in an ASIC. Alternatively, the ASIC can be housed in a core network interface device. Of course, the processor and storage medium can also exist as discrete components in the core network interface device.

[0235] Those skilled in the art will recognize that, in one or more of the examples above, the functions described in this application can be implemented using hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or code on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any medium that facilitates the transfer of a computer program from one place to another. Storage media can be any available medium accessible to a general-purpose or special-purpose computer.

[0236] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of this application. It should be understood that the above description is only a specific embodiment of this application and is not intended to limit the scope of protection of this application. Any modifications, equivalent substitutions, improvements, etc., made on the basis of the technical solution of this application should be included within the scope of protection of this application.

[0237] Those skilled in the art will understand that embodiments of this application can be provided as a method, system, or computer program product. Therefore, embodiments of this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, embodiments of this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0238] This application describes embodiments with reference to flowchart illustrations and / or block diagrams of embodiments of the present application, apparatus (systems), and computer program products. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0239] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0240] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0241] Obviously, those skilled in the art can make various modifications and variations to the embodiments of this application without departing from the spirit and scope of this application. Therefore, if these modifications and variations to the embodiments of this application fall within the scope of the claims of this application and their equivalents, this application also intends to include these modifications and variations.

Claims

1. A data forwarding method applied to a base station, characterized in that, include: Receive the second data, which is the first packet of data transmitted between the business application and the terminal; Based on the second data, obtain the TEID, source IP address, and destination IP address of the second data; Based on the TEID of the second data, the relevant information of the target terminal is determined. The relevant information of the target terminal includes at least one of the following: the terminal's external network IP address, the terminal's external network port, and the terminal's identifier. Save at least one of the following to the routing rules: source IP address, destination IP address, base station external network IP address, terminal external network IP address, terminal external network port, and terminal identifier; Receive first data, which includes data corresponding to the business application; Based on the first data, determine the receiving end and the sending end of the first data; Based on the receiving end and sending end of the first data, and the routing rules, the first data is forwarded to the receiving end; Based on the receiving end and sending end of the first data, and the routing rules, forwarding the first data to the receiving end includes: If the routing rule instructs that the first data be forwarded to the application server, then the first data is processed according to the first rule, and the processed first data is directly forwarded to the application server; the first rule includes at least one of the following: replacing the source IP address of the first data with the external network IP address of the base station corresponding to the source IP address; replacing the source IP address of the first data with the external network IP address of the terminal corresponding to the source IP address; replacing the source port of the first data with the external network port of the terminal; or... If the routing rule instructs that the first data be forwarded to the terminal, then the first data is processed according to the second rule, and the processed first data is forwarded to the terminal; the second rule includes at least one of the following: if the destination IP address is the external IP address of the base station, then the destination IP address of the first data is replaced with the terminal IP address; the destination port of the first data is replaced with the external port of the terminal.

2. The method according to claim 1, characterized in that, The terminal identifier includes at least one of the following: an identifier used to distinguish the terminal on the base station side, an identifier used to distinguish the terminal on the core network side, and a cell radio network temporary identifier (C-RNTI).

3. The method according to claim 1, characterized in that, Before forwarding the first data to the receiving end based on the receiving end and sending end of the first data, and the routing rules, the method further includes: Based on the sender and receiver of the first data and the routing rules, determine whether to forward the first data according to the routing rules; If so, then the step of forwarding the first data to the receiving end according to the receiving end and sending end of the first data and the routing rules is executed.

4. The method according to claim 1, characterized in that, The computing resources allocated to the base station include: the wireless computing resources used by the base station and the wireless computing resources that the base station can share, and the service application is deployed on the wireless computing resources that the base station can share.

5. A data forwarding device, applied to a base station, characterized in that, include: The second receiving module is used to receive the second data, which is the first packet of data transmitted between the business application and the terminal. The second acquisition module is used to acquire the TEID, source IP address and destination IP address of the second data based on the second data. The storage module is used to determine the relevant information of the target terminal based on the TEID of the second data. The relevant information of the target terminal includes at least one of the following: the terminal's external IP address, the terminal's external port, and the terminal's identifier; and to save the source IP address, the destination IP address, and at least one of the base station's external IP address, the terminal's external IP address, the terminal's external port, and the terminal's identifier to the routing rules. The first receiving module is used to receive first data, which includes data corresponding to the business application. The first determining module is used to determine the receiving end and the sending end of the first data based on the first data; The forwarding module is used to forward the first data to the receiving end based on the receiving end and the sending end of the first data, as well as the routing rules; Based on the receiving end and sending end of the first data, and the routing rules, forwarding the first data to the receiving end includes: If the routing rule instructs that the first data be forwarded to the application server, then the first data is processed according to the first rule, and the processed first data is directly forwarded to the application server; the first rule includes at least one of the following: replacing the source IP address of the first data with the external network IP address of the base station corresponding to the source IP address; replacing the source IP address of the first data with the external network IP address of the terminal corresponding to the source IP address; replacing the source port of the first data with the external network port of the terminal; or... If the routing rule instructs that the first data be forwarded to the terminal, then the first data is processed according to the second rule, and the processed first data is forwarded to the terminal; the second rule includes at least one of the following: if the destination IP address is the external IP address of the base station, then the destination IP address of the first data is replaced with the terminal IP address; the destination port of the first data is replaced with the external port of the terminal.

6. The apparatus according to claim 5, characterized in that, The device further includes: The judgment module is used to determine whether to forward the first data according to the routing rules based on the sending end and receiving end of the first data and the routing rules.

7. A communication device, characterized in that, It includes a processor, a memory, and a program or instructions stored in the memory and executable on the processor, wherein the program or instructions, when executed by the processor, implement the steps of the method as described in any one of claims 1 to 4.

8. A readable storage medium, characterized in that, The readable storage medium stores a program or instructions that, when executed by a processor, implement the steps of the method as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Data transmission method and device, network device and storage medium

    CN112751871A