Data transmission method and apparatus

By encapsulating the UPF identification information and network address in the data packet, the problem that the private IP address of the terminal device cannot be identified is solved, achieving smooth transmission of data and improving efficiency.

WO2024188068A1PCT designated stage expired Publication Date: 2024-09-19HUAWEI TECH CO LTD

Patent Information

Application Number
PCT/CN2024/079488
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-03-14
Filing Date
2024-03-01
Publication Date
2024-09-19

AI Technical Summary

Technical Problem

In a personal IoT network, the private IP address of the terminal device cannot be recognized by the operator's UPF, causing data transmission failure and affecting data transmission efficiency.

Method used

The first UPF receives the identification information in the data packet, determines the destination UPF of the data packet, and encapsulates the network address and identification information of the destination UPF in the outer layer of the data packet to ensure that the data packet can be successfully transmitted.

Benefits of technology

In the case where UPF cannot identify the IP address of the terminal device, the smooth transmission of data is achieved, the data transmission efficiency is improved, and data transmission failure is avoided.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024079488_19092024_PF_FP_ABST
    Figure CN2024079488_19092024_PF_FP_ABST
Patent Text Reader

Abstract

The present application provides a data transmission method and apparatus, which facilitate smooth transmission of data under the condition that a UPF cannot identify an IP address of a terminal device, thereby improving the data transmission efficiency. The method comprises: a first UPF receives a first data packet from a first terminal device, the first data packet carrying identification information of a second UPF and a network address of a second terminal device; and the first UPF sends a second data packet to the second UPF on the basis of the identification information of the second UPF, the second UPF being a UPF serving the second terminal device, and the second data packet carrying identification information of the first UPF and the network address of the second terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Data transmission method and device

[0001] This application claims priority to the Chinese patent application filed with the State Intellectual Property Office of China on March 14, 2023, with application number 202310269116.4 and application name “Data Transmission Method and Device”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of communication technology, and in particular to a data transmission method and device. Background Art

[0003] In some scenarios, multiple devices may form a group. For example, in consumer-oriented services, various devices in a user's home may form a group; in business-oriented services, employees' devices may form a group. A group consisting of multiple devices can be called a personal IoT network (PIN).

[0004] When cross-domain intercommunication is required between terminal devices in a group, a connection between the terminal devices needs to be established. For example, in a PIN network composed of multiple terminal devices, in order to achieve cross-domain intercommunication between PIN network members (i.e., terminal devices), the core network side stores member information belonging to the same PIN network (e.g., member identification information). When different members are connected to different user plane functions (UPFs), a general packet radio service tunneling protocol for the user plane (GTP-U) tunnel is established between the above-mentioned different UPFs. After the GTP-U tunnels between different UPFs are established, the session management function (SMF) network element configures the routing policy on each UPF. The routing policy includes the Internet Protocol (IP) address of the user terminal device and its corresponding GTP-U tunnel information. When forwarding a data packet from a terminal device, the UPF can determine the corresponding GTP-U tunnel information based on the IP address of the destination terminal device of the data packet, and continue to transmit the data packet through the above-mentioned GTP-U tunnel.

[0005] However, if the IP address of the destination terminal device is provided by the campus service provider, that is, the IP address of the terminal device belongs to the IP address of a private network terminal device, and the IP address of the private network terminal device does not want to be recognized by the operator's UPF, the UPF cannot recognize the IP address of the private network terminal device, resulting in the UPF being unable to continue transmitting data packets.

[0006] Summary of the Invention

[0007] The present application provides a data transmission method and apparatus, which facilitates smooth data transmission and improves data transmission efficiency when the UPF cannot identify the IP address of the terminal device.

[0008] In a first aspect, a data transmission method is provided, which is executed by a first UPF and includes: the first UPF receives a first data packet from a first terminal device, the first data packet carries identification information of a second UPF and the network address of the second terminal device; the first UPF sends a second data packet to a second UPF based on the identification information of the second UPF, the second UPF is a UPF serving the second terminal device, and the second data packet carries the identification information of the first UPF and the network address of the second terminal device.

[0009] It should be understood that there is a correspondence between the identification information of each UPF and the network address of the corresponding UPF. The first UPF can determine that the first data packet is sent to the second UPF based on the identification information of the second UPF carried in the first data packet, and send the second data packet to the second UPF based on the network address of the second UPF. The second data packet can be the network address of the second UPF and the identification information of the first UPF encapsulated in the outer layer of the first data packet, and optionally, the identification information of the second UPF in the first data packet is deleted.

[0010] The data transmission method of an embodiment of the present application utilizes a first UPF to identify identification information in a received data packet to determine the destination UPF of the data packet, thereby enabling the destination UPF to send the data packet to the destination terminal device. This avoids data transmission failures caused by the first UPF's inability to identify the IP address of the destination terminal device in the data packet. In the event that the UPF cannot identify the IP address of the terminal device, this embodiment of the present application facilitates smooth data transmission and improves data transmission efficiency.

[0011] In combination with the first aspect, in some implementations of the first aspect, the first terminal device and the second terminal device belong to the same personal internet of things network PIN network.

[0012] It should be understood that a PIN network is a group or subnet composed of multiple terminal devices. A PIN network can also be called a PIN group.

[0013] In combination with the first aspect, in certain implementations of the first aspect, before the first UPF receives the first data packet from the first terminal device, the above method also includes: the first UPF receives a third data packet from the second UPF, the third data packet carries the identification information of the second UPF and the network address corresponding to the destination UPF, the destination address of the third data packet is the network address corresponding to the destination UPF, and the destination UPF includes the first UPF; the first UPF sends a fourth data packet to the first terminal device, and the fourth data packet carries the identification information of the second UPF.

[0014] It should be understood that the third data packet is sent by the second UPF to the destination UPF in the form of a broadcast, and the first UPF is one of the destination UPFs. The network address corresponding to the destination UPF can be a specific network address for broadcast or multicast. By identifying the specific network address for broadcast or multicast, the second UPF can send the third data packet to multiple destination UPFs corresponding to the specific network address. In addition, the network address corresponding to the destination UPF can also be the network address of a UPF. Exemplarily, if the network address corresponding to the destination UPF is the network address of the first UPF, the second UPF will send the third data packet to the first UPF, and the terminal device served by the above-mentioned destination UPF and the second UPF belongs to the same PIN group.

[0015] In combination with the first aspect, in some implementations of the first aspect, the first data packet and the second data packet include the same data content.

[0016] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: the first UPF receives at least one of the identification information of the first UPF, the identification information of other UPFs, and routing policy information from the SMF, the first UPF and the other UPFs serve the same PIN network, the routing policy information includes first routing policy information and / or second routing policy information, the first routing policy information is used to indicate that the first UPF carries the identification information of the first UPF in the uplink data packet, and the second routing policy information is used to indicate that the first UPF carries the identification information of other UPFs in the downlink data packet.

[0017] It should be understood that the identification information of other UPFs can be obtained by SMF through NRF. NRF has a storage function and can store the network address of UPF and the identification information of UPF. There is a correspondence between the identification information of each UPF and the network address of the corresponding UPF. The other UPFs can be one or more. The identification information of each UPF can be unique in the entire network or unique in the PIN network. When it is unique in the PIN network, NRF stores the correspondence between the PIN identification of the PIN network and the UPF network address and the UPF identification information. The PIN identification of the PIN network can be a PIN network identification (PIN identity, PIN ID) or a PIN network name, etc., which is not limited in the embodiments of the present application.

[0018] It should also be understood that the SMF can send the identification information of the first UPF, the identification information of other UPFs, and the routing policy information to the first UPF through different messages. For example, the SMF can send the routing policy information and the identification information of the first UPF to the first UPF through a first message (such as a packet forwarding control protocol update request message), and send the identification information of other UPFs to the first UPF through a second message. If the first UPF already stores the identification information of other UPFs serving the same PIN network and there is no update to the other UPFs, the SMF does not need to send the identification information of the other UPFs to the first UPF again; if there is an update to other UPFs serving the same PIN network (for example, a newly added UPF), the identification information of the newly added UPF is sent to the first UPF.

[0019] In combination with the first aspect, in certain implementations of the first aspect, the identification information of the first UPF is included in any of the following headers of the second data packet: an Internet Protocol (IP) header, a virtual extensible local area network (VXLAN) header, a General Packet Radio Tunneling Protocol (GTP-U) header, or an Internet Protocol Security (IPSec) header.

[0020] It should be understood that the first UPF can carry the identification information of the first UPF in the option parameters of the IP header, for example, carry the identification information of the first UPF in the routing option parameters, or carry the identification information of the first UPF in the flow identification parameters. When the first UPF encapsulates data content in a VXLAN manner, it can encapsulate the VXLAN header, user datagram UDP header and IP header in the outer layer of the data content, and carry the identification information of the first UPF in the VXLAN header. When the first UPF uses the GTP-U channel to transmit data packets, it can encapsulate the GTP-U header, UDP header and IP header outside the data content, and carry the identification information of the first UPF in the GTP-U header. When the first UPF performs IPSec encapsulation on the data content, it can carry the identification information of the first UPF in the encapsulating security payload (ESP) header of IPSec or carry the identification information of the first UPF in the IP header.

[0021] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: the first UPF receives a fifth data packet from the first terminal device, the fifth data packet carries the network address of the second terminal device; the first UPF sends a sixth data packet to the destination UPF, the sixth data packet carries the identification information of the first UPF, the network address corresponding to the destination UPF and the network address of the second terminal device, and the network address corresponding to the destination UPF is the destination address of the sixth data packet.

[0022] It should be understood that the network address corresponding to the destination UPF is a specific broadcast or multicast network address. The first UPF can identify the specific broadcast or multicast network address and send the sixth data packet to multiple UPFs corresponding to the specific network address. The terminal devices served by these multiple UPFs and the first terminal device belong to the same PIN group. After receiving the sixth data packet, the multiple UPFs identify the network address of the second terminal device, and the UPF serving the second terminal device sends the sixth data packet to the second terminal device.

[0023] In combination with the first aspect, in certain implementations of the first aspect, the above method also includes: the first UPF receives the seventh data packet from the first terminal device; the first UPF determines, based on the seventh data packet, that the seventh data packet is a broadcast packet or a multicast packet; the first UPF sends the eighth data packet to the destination UPF, and the eighth data packet carries the identification information of the first UPF and the network address corresponding to the destination UPF, and the network address corresponding to the destination UPF is the destination address of the eighth data packet.

[0024] In one possible implementation, the seventh data packet is a multicast packet or a broadcast packet, and the destination network address (e.g., IP address or MAC address) of the broadcast packet or multicast packet is a specific multicast or broadcast network address different from that of a unicast packet. The first UPF can determine that the seventh data packet is a broadcast or multicast packet based on the destination network address of the seventh data packet, copy the seventh data packet multiple times, and encapsulate the multiple copies of the seventh data packet separately, that is, encapsulate the network address of one UPF in the destination UPF and the identification information of the first UPF in the outer layer of each copy of the seventh data packet, thereby obtaining multiple copies of the eighth data packet. The terminal devices corresponding to the above-mentioned destination UPFs belong to the same PIN group as the first terminal device. The first UPF sends the above-mentioned multiple copies of the eighth data packet to the corresponding destination UPF. When the multiple UPFs receive the corresponding eighth data packet, each UPF decapsulates the corresponding eighth data packet and, by identifying the specific multicast or broadcast network address, sends the corresponding decapsulated data packet to the corresponding terminal device in the same PIN group. Exemplarily, the second terminal device corresponding to the second UPF belongs to the same PIN group as the first terminal device. The first UPF encapsulates the network address of the second UPF and the identification information of the first UPF in the first seventh data packet to obtain an eighth data packet. The network address of the second UPF is the destination address of the eighth data packet. Upon receiving the eighth data packet, the second UPF decapsulates the eighth data packet, thereby removing the network address of the second UPF. The second UPF then sends the decapsulated data packet to the second terminal device by identifying the specific network address of the broadcast or multicast packet.

[0025] In another possible implementation, the seventh data packet is a multicast packet or a broadcast packet. The destination network address of the broadcast packet or multicast packet is a specific network address different from that of the unicast packet. The first UPF can determine that the seventh data packet is a broadcast packet or a multicast packet based on the destination network address of the seventh data packet. The first UPF obtains the eighth data packet by encapsulating the seventh data packet, that is, encapsulating the network address corresponding to the destination UPF and the identification information of the first UPF in the outer layer of the seventh data packet. The network address corresponding to the destination UPF is also the specific network address corresponding to the broadcast packet or the multicast packet. The first UPF can send the eighth data packet to the corresponding multiple UPFs by identifying the network address corresponding to the destination UPF. The terminal devices served by the above-mentioned first UPF and multiple UPFs belong to the same PIN group. After receiving the eighth data packet, the multiple UPFs decapsulate it respectively, that is, delete the network address corresponding to the destination UPF, and send the decapsulated data packet to the corresponding terminal devices in the same PIN group by identifying the specific multicast or broadcast network address corresponding to the seventh data packet.

[0026] In combination with the first aspect, in certain implementations of the first aspect, the first UPF determines the network address of the destination UPF and / or the identification information of the destination UPF based on the PIN identification of the PIN network.

[0027] It should be understood that the first UPF can receive a data packet from the first terminal device, which is sent to the first UPF by the first terminal device through a protocol data unit (PDU) session corresponding to the PIN group. Therefore, after the first UPF receives the data packet, it can determine the PIN group corresponding to the data packet and determine the network address and / or identification information of other UPFs serving this PIN network / group based on the identifier of the PIN group (such as PIN ID or PIN group name, etc.). The embodiment of the present application is not limited to this. In addition, the first UPF can also determine the network address and / or identification information of other UPFs serving this PIN network based on the unique special data network name corresponding to the PIN group. The above-mentioned other UPFs can be the destination UPF. In the process of the first terminal device establishing a PDU session connection with the first UPF through the SMF, the SMF carries the PIN group information corresponding to this PDU session, such as the PIN ID, or the data network name (DNN) and / or slice information corresponding to the above-mentioned PIN group, in the packet forwarding control protocol (PFCP) session request message sent to the first UPF. Therefore, the first UPF can determine the PIN group corresponding to the data packet by identifying the PDU session in which the data packet is transmitted.

[0028] In a second aspect, a data transmission method is provided, which is executed by SMF and includes: SMF obtains identification information of a first UPF; SMF sends identification information of the first UPF, identification information of other UPFs and at least one of routing policy information to the first UPF, the first UPF and other UPFs serve the same PIN network, the routing policy information includes first routing policy information and / or second routing policy information, the first routing policy information is used to indicate that the first UPF carries the identification information of the first UPF in an uplink data packet, and the second routing policy information is used to indicate that the first UPF carries the identification information of other UPFs in a downlink data packet.

[0029] It should be understood that the identification information is used to identify the UPF. Each UPF corresponds to unique identification information, which can also be called a tag. It should also be understood that there are multiple ways for the SMF to obtain the first UPF. For example, the SMF can determine the identification information for the first UPF itself, obtain the identification information of the first UPF through the NRF connected to it, or receive the identification information reported by the first UPF, etc. This embodiment of the present application is not limited to this.

[0030] In combination with the second aspect, in some implementations of the second aspect, the identification information of the first UPF is determined by one of the SMF, the NRF or the first UPF.

[0031] The method in which the identification information of the first UPF is determined by the SMF is as follows:

[0032] In one possible implementation, during the process of establishing a PDU session connection between the first terminal device and the first UPF through the SMF, after the SMF determines that the first UPF serves the first terminal device, the SMF assigns identification information to the first UPF.

[0033] Another possible implementation method is that when the SMF establishes a connection with the first UPF for the first time, the SMF allocates identification information to the first UPF.

[0034] The method by which the identification information of the first UPF is determined by the NRF is:

[0035] During the process of the first terminal device establishing a PDU call connection with the first UPF through SMF, the SMF can send a request message to the NRF connected to the SMF after determining that the first UPF serves the first terminal device. The message carries the network address of the first UPF or the fully qualified domain name (FQDN) of the first UPF or the device name of the first UPF. After receiving the request message, the NRF searches for or allocates the identification information of the first UPF based on the network address or FQDN or device name of the first UPF, and sends the identification information to the SMF.

[0036] The method in which the identification information of the first UPF is determined by the first UPF is as follows:

[0037] One possible implementation method is that when the first terminal device establishes a PDU session connection with the first UPF through SMF, after the SMF determines that the first UPF serves the first terminal device, the SMF needs to send a PFCP session request message to the first UPF. After receiving the message, the first UPF determines its own identification information and carries its own identification information in the response message to the SMF.

[0038] Another possible implementation method is that when the first UPF establishes a connection with the SMF for the first time, the first UPF determines its own identification information and sends its own identification information to the SMF.

[0039] In combination with the second aspect, in certain implementations of the second aspect, the above method also includes: the SMF sends a first correspondence to the first terminal device, the first correspondence including the correspondence between the identification information of at least one UPF and the network address of at least one terminal device served by the UPF.

[0040] It should be understood that the first correspondence is sent to the SMF by the NRF connected to the SMF. The NRF has a storage function and can store the network address or FQDN or device name of the UPF, the identification information of the UPF, and the network address of at least one terminal device served by the UPF (or the network address segment corresponding to the terminal device served by the UPF). There is a first correspondence between the identification information of the UPF and the network address of at least one terminal device served by the UPF. The network address of the terminal device can be allocated by the SMF or by the UPF. When the network address of the terminal device is allocated by the UPF, the UPF sends the allocated network address to the SMF connected to it.

[0041] In a third aspect, a data transmission method is provided, which is executed by a first terminal device and includes: the first terminal device receives a ninth data packet, which carries the network address of the second terminal device; the first terminal device sends a first data packet to the first UPF, which carries the identification information of the second UPF and the network address of the second terminal device.

[0042] It should be understood that the first terminal device can encapsulate the data content to obtain a first data packet, the destination address of which is the network address of the second terminal device. The above encapsulation process can encapsulate the identification information of the second UPF in the data content.

[0043] In combination with the third aspect, in certain implementations of the third aspect, before the first terminal device sends the first data packet to the first UPF, the above method also includes: the first terminal device determines the identification information of the second UPF corresponding to the destination address of the first data packet.

[0044] In combination with the third aspect, in certain implementations of the third aspect, the first terminal device determines the identification information of the second UPF corresponding to the destination address of the first data packet, including: the first terminal device determines the identification information of the second UPF based on a first correspondence, and the first correspondence includes the correspondence between the identification information of at least one UPF and the network address of at least one terminal device served by the UPF.

[0045] In combination with the third aspect, in some implementations of the third aspect, the above method also includes: the first terminal device receives a first corresponding relationship from the SMF.

[0046] In combination with the third aspect, in certain implementations of the third aspect, the ninth data packet carries identification information of the second UPF.

[0047] In combination with the third aspect, in certain implementations of the third aspect, the identification information of the second UPF is included in any of the following headers of the first data packet: an Ethernet header, an Internet Protocol IP header, or a Packet Data Convergence Protocol (PDCP) header.

[0048] It should be understood that if the PDU session established between the first terminal device and the first UPF is an IP type session, the identification information of the second UPF can be carried in the IP header of the first data packet. If the PDU session established between the first terminal device and the first UPF is an Ethernet type session, the identification information of the second UPF can be carried in the Ethernet header of the first data packet. If the PDU session established between the first terminal device and the first UPF is an unstructured type session, a new layer of protocol header can be added, and the identification information of the second UPF can be carried in the new header. In addition, the label can also be carried in the PDCP header of the first data packet. After receiving the first data packet, the access network device obtains the identification information of the second UPF carried in the PDCP header, and carries the above-mentioned second UPF identification information in the GTP-U header and sends it to the first UPF.

[0049] In a fourth aspect, a data transmission method is provided, which is applied to a system including an SMF, a first terminal device, a first UPF and a second UPF, and the method includes: the SMF obtains identification information of the first UPF; the SMF sends the identification information of the first UPF, identification information of other UPFs and at least one of routing policy information to the first UPF, the first UPF and other UPFs serve the same PIN network, the routing policy information includes first routing policy information and / or second routing policy information, the first routing policy information is used to indicate that the first UPF carries the identification information of the first UPF in the uplink data packet, and the second routing policy information is used to indicate that the first UPF carries the identification information of other UPFs in the downlink data packet; the first terminal device receives a ninth data packet, and the ninth data packet carries the network address of the second terminal device; the first terminal device sends a first data packet to the first UPF, and the first data packet carries the identification information of the second UPF and the network address of the second terminal device; the first UPF receives the first data packet; the first UPF sends a second data packet to the second UPF based on the identification information of the second UPF, the second UPF is the UPF serving the second terminal device, and the second data packet carries the identification information of the first UPF and the network address of the second terminal device.

[0050] In combination with the fourth aspect, in certain implementations of the fourth aspect, the above method also includes: the second UPF receives the second data packet; the second UPF sends the tenth data packet to the second terminal device based on the network address of the second terminal device, the tenth data packet carries the identification information of the first UPF, and the second terminal device receives the tenth data packet.

[0051] It should be understood that the tenth data packet is obtained by the second UPF decapsulating the second data packet, that is, deleting the network address of the second UPF in the second data packet.

[0052] In a fifth aspect, a data transmission device is provided for executing the method in any possible implementation of the first to third aspects. Specifically, the data transmission device includes a module for executing the method in any possible implementation of the first to third aspects.

[0053] In one design, the data transmission device may include a module that executes the methods / operations / steps / actions described in the first to third aspects above. The module may be a hardware circuit, software, or a combination of hardware circuit and software.

[0054] In another design, the data transmission device is a communication chip, which may include an input circuit or interface for sending messages or data, and an output circuit or interface for receiving messages or data.

[0055] In another design, the data transmission device may be a communication device, which may include a transmitter for sending messages or data and a receiver for receiving messages or data.

[0056] In a sixth aspect, another data transmission device is provided, comprising a processor and a memory. The processor is configured to read instructions stored in the memory and receive signals via a receiver and transmit signals via a transmitter to execute the method of any possible implementation of the first to third aspects.

[0057] Optionally, there are one or more processors and one or more memories.

[0058] Optionally, the memory may be integrated with the processor, or the memory may be provided separately from the processor.

[0059] In the specific implementation process, the memory can be a non-transitory memory, such as a read-only memory (ROM), which can be integrated with the processor on the same chip or can be set on different chips. The embodiments of the present application do not limit the type of memory and the setting method of the memory and the processor.

[0060] It should be understood that related data interaction processes, such as sending indication information, can be the process of outputting indication information from the processor, and receiving capability information can be the process of receiving input capability information from the processor. Specifically, the output data of the processing can be output to the transmitter, and the input data received by the processor can come from the receiver. The transmitter and receiver can be collectively referred to as a transceiver.

[0061] The data transmission device in the above-mentioned sixth aspect can be a chip, and the processor can be implemented by hardware or by software. When implemented by hardware, the processor can be a logic circuit, an integrated circuit, etc.; when implemented by software, the processor can be a general-purpose processor, which is implemented by reading the software code stored in the memory. The memory can be integrated in the processor or can be located outside the processor and exist independently.

[0062] In the seventh aspect, a computer-readable storage medium is provided, which stores a computer program (also referred to as code, or instructions). When the computer-readable storage medium is run on a computer, the computer executes the method in any possible implementation of the first to third aspects above.

[0063] In an eighth aspect, a computer program product is provided, which includes: a computer program (also referred to as code, or instructions), which, when executed, enables a computer to execute a method in any possible implementation of the first to third aspects above. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] FIG1 is a schematic diagram of a network architecture of a communication system provided in an embodiment of the present application;

[0065] FIG2 is a schematic diagram of a network architecture of another communication system provided in an embodiment of the present application;

[0066] FIG3 is a schematic diagram of an application scenario provided by an embodiment of the present application;

[0067] FIG4 is a schematic flow chart of a data transmission method provided in an embodiment of the present application;

[0068] FIG5 is a schematic flow chart of another data transmission method provided in an embodiment of the present application;

[0069] FIG6 is a schematic flow chart of another data transmission method provided in an embodiment of the present application;

[0070] FIG7 is a schematic block diagram of a data transmission device provided in an embodiment of the present application;

[0071] FIG8 is a schematic block diagram of another data transmission device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0072] The technical solution in this application will be described below with reference to the accompanying drawings.

[0073] In the embodiments of this application, terms such as "first" and "second" are used to distinguish between identical or similar items with substantially the same functions and effects. For example, the terms "first chip" and "second chip" are used solely to distinguish between different chips and do not define their order. Those skilled in the art will understand that terms such as "first" and "second" do not define the quantity or execution order, and do not necessarily define differences.

[0074] It should be noted that in the embodiments of this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design described in this application as "exemplary" or "for example" should not be construed as being preferred or advantageous over other embodiments or designs. Rather, the use of words such as "exemplarily" or "for example" is intended to present the relevant concepts in a concrete manner.

[0075] In the embodiments of the present application, "at least one" refers to one or more, and "more" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following items" or similar expressions refers to any combination of these items, including any combination of single items or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, a--c, bc, or abc, where a, b, c can be single or multiple.

[0076] To meet the challenges of wireless broadband technology and maintain the leading edge of the 3rd Generation Partnership Project (3GPP) network, the 3GPP standards group developed the next-generation mobile communication network architecture (next generation system), called the 5th generation mobile communication technology (5G) network architecture, at the end of 2016.

[0077] Figure 1 is a schematic diagram of the network architecture 100 of a 5G communication system, which includes terminal equipment, access network equipment, core network elements and data networks.

[0078] The terminal device in the embodiments of the present application may also be referred to as user equipment (UE), mobile station (MS), mobile terminal (MT), access terminal, subscriber unit, subscriber station, mobile station, mobile station, remote station, remote terminal, mobile device, user terminal, terminal, wireless communication device, user agent or user device, etc. In FIG1 , the terminal device is user equipment (UE) as an example.

[0079] The terminal device may be a device that provides voice / data connectivity to users, such as a handheld device or vehicle-mounted device with wireless connection function. At present, some examples of terminals are: mobile phones, tablet computers, laptop computers, PDAs, mobile internet devices (MIDs), wearable devices, virtual reality (VR) devices, augmented reality (AR) devices, wireless terminals in industrial control, wireless terminals in self-driving, wireless terminals in remote medical surgery, wireless terminals in smart grids, wireless terminals in transportation safety, wireless terminals in smart cities, wireless terminals in smart homes, cellular phones, cordless phones, session initiation protocol (SIP) phones, wireless local loop (WLL) stations, personal digital assistants (PDAs), handheld devices with wireless communication capabilities, computing devices or other processing devices connected to wireless modems, vehicle-mounted devices, wearable devices, terminal devices in 5G networks or future evolved public land mobile networks (PLMNs), The terminal equipment in the network (PLMN), etc., is not limited to this in the embodiments of the present application.

[0080] As an example and not a limitation, in the embodiment of the present application, the terminal device may also be a wearable device. Wearable devices may also be called wearable smart devices, which are a general term for wearable devices that are intelligently designed and developed using wearable technology for daily wear, such as glasses, gloves, watches, clothing, and shoes. A wearable device is a portable device that is worn directly on the body or integrated into the user's clothes or accessories. Wearable devices are not only hardware devices, but also achieve powerful functions through software support, data interaction, and cloud interaction. Broadly speaking, wearable smart devices include those that are fully functional, large in size, and can achieve complete or partial functions without relying on smartphones, such as smart watches or smart glasses, as well as those that only focus on a certain type of application function and need to be used in conjunction with other devices such as smartphones, such as various smart bracelets and smart jewelry for vital sign monitoring.

[0081] In addition, in the embodiment of the present application, the terminal device can also be a terminal device in the Internet of Things (IoT) system. IoT is an important part of the future development of information technology. Its main technical feature is to connect objects to the network through communication technology, thereby realizing an intelligent network of human-machine interconnection and object-to-object interconnection.

[0082] In addition, the access network device (AN) in the embodiment of the present application can be a device for communicating with the terminal device. The access network device can also be called a radio access network device (RAN), a transmission reception point (TRP), an evolved NodeB (eNB or eNodeB) in the LTE system, a home base station (for example, home evolved nodeB, or home node B, HNB), a baseband unit (BBU), or a wireless controller in a cloud radio access network (CRAN) scenario, or the access network device can be a relay station, an access point, a vehicle-mounted device, a wearable device, a network device in a 5G network, or a network device in a future evolved PLMN network, etc., can be an access point (AP) in a WLAN, can be a gNB in ​​a new radio (NR) system, can be a satellite base station in a satellite communication system, etc., and the embodiment of the present application is not limited.

[0083] In a network structure, the access network device may include a centralized unit (CU) node, a distributed unit (DU) node, or a RAN device including a CU node and a DU node, or a RAN device including a control plane CU node (CU-CP node) and a user plane CU node (CU-UP node) and a DU node.

[0084] The access network equipment provides services for the cell, and the terminal device communicates with the cell through the transmission resources (for example, frequency domain resources, or spectrum resources) allocated by the access network equipment. The cell can belong to a macro base station (for example, macro eNB or macro gNB, etc.) or a base station corresponding to a small cell. The small cells here can include: metro cells, micro cells, pico cells, femto cells, etc. These small cells have the characteristics of small coverage and low transmission power, and are suitable for providing high-speed data transmission services.

[0085] Data network (DN): provides services to user devices, such as mobile operator services, Internet services, or third-party services.

[0086] In addition, the core network functions of the network architecture 100 are divided into user plane functions (UPF) and control plane functions (CP). The user plane functions are mainly responsible for packet forwarding, quality of service (QoS) control, billing information statistics, etc. The control plane functions are mainly responsible for user registration and authentication, mobility management, and issuing packet forwarding policies and QoS control policies to the user plane (UPF). The control plane function network elements include but are not limited to the access and mobility management function (AMF) network element, the session management function (SMF) network element, the authentication server function (AUSF) network element, the network slice selection function (NSSF) network element, the network exposure function (NEF) network element, the network repository function (NRF) network element, the policy control function (PCF) network element, the unified data management (UDM) network element, and the application function (AF) network element.

[0087] The following describes in detail the functions of each network element in the network architecture 100 shown in Figure 1. Since the relevant functions of UE, (R)AN and DN have been introduced in the previous text, the following focuses on the functions of each core network element.

[0088] UPF network element: User plane functional entity. As the interface with the data network, the UPF performs functions such as user plane data forwarding, session / flow-level billing and statistics, and bandwidth limiting. Specifically, the UPF forwards user data packets based on the routing rules of the SMF. For example, uplink data is sent to the DN or other UPFs, and downlink data is forwarded to other UPFs or the RAN.

[0089] AUSF network element: Mainly responsible for authenticating user equipment and determining the legitimacy of user equipment.

[0090] AMF network element: Mainly responsible for mobility management and access management. Specifically, the AMF is responsible for the user registration process during access and location management during user mobility. The UE and AMF can communicate through N1 non-access stratum (NAS) messages or through N2 messages from the RAN.

[0091] SMF network element: responsible for establishing the corresponding session connection on the network side when the user initiates the service, providing specific services to the user, especially sending data packet forwarding strategies, QoS strategies, etc. to UPF based on the NG4 interface between SMF and UPF.

[0092] NSSF network element: Determines the network slice instance that the UE is allowed to access based on the UE's slice selection auxiliary information, subscription information, etc.

[0093] NEF network element: Responsible for managing externally exposed network data. All external applications that want to access data within the 5G core network must go through the NEF. The NEF provides security guarantees to ensure the secure access of external applications to the 3GPP network. It offers features such as QoS customization for external applications, subscription to mobility status events, and AF request distribution.

[0094] NRF network element: Network repository function, responsible for network function service registration and status monitoring, etc., to achieve automatic management, selection and scalability of network function services, and allow each network function to discover the services provided by other network functions.

[0095] PCF network element: provides service-related policy rule information to control plane function network elements (such as AMF, SMF network elements, etc.).

[0096] UDM network element: unified user data management, mainly used to store user device subscription data.

[0097] AF network element: Sends application-related requirements to PCF, enabling PCF to generate corresponding policies.

[0098] For the convenience of description, the UPF network element, AUSF network element, AMF network element, SMF network element, NSSF network element, NEF network element, NRF network element, PCF network element, UDM network element and AF network element are referred to as: UPF, AUSF, AMF, SMF, NSSF, NEF, NRF, PCF, UDM and AF.

[0099] In the network architecture 100, the N1 interface is the signaling plane interface between the UE and the AMF, which is used to exchange signaling messages between the core network and the UE, such as UE registration, UE establishment of protocol data unit (PDU) session, and network side configuration of UE policies.

[0100] The N2 interface is the interface between the (R)AN and the AMF, and is used to transmit radio bearer control information from the core network to the RAN.

[0101] The N3 interface is the interface between (R)AN and UPF, and is used to transmit user plane service data, etc. between RAN and UPF.

[0102] The N4 interface is the interface between SMF and UPF, used to transmit information between the control plane and the user plane, and is used to transmit information such as tunnel identification information of the N3 connection, data cache indication information, and downlink data notification messages, as well as the control plane terminal equipment to complete the network access operation according to the contract information with the operator.

[0103] The N6 interface is the interface between UPF and DN, used to transmit UE service data between UPF and DN.

[0104] The 5G network architecture not only supports wireless technologies defined by the 3GPP standards group to access the core network side, but also supports non-3GPP (N3G) access technologies to access the core network side through the non-3GPP interworking function (N3IWF) or the next generation packet data gateway (ngPDG).

[0105] When the 5G core network supports untrusted non-3GPP access, the network architecture is shown in Figure 2. N3IWF is the untrusted non-3GPP access gateway, and the untrusted non-3GPP access network can be an untrusted wireless local area network (WLAN) access network.

[0106] In addition, the 5G core network also supports trusted non-3GPP access and / or wired network access. Among them, trusted non-3GPP networks include trusted WLAN networks, and wired networks include fixed home network access, etc. The network side architecture is similar to the non-trusted non-3GPP access architecture. The non-trusted non-3GPP access gateway (N3IWF in Figure 2) is replaced by a trusted WLAN access gateway (trusted non-3GPP gateway function, TNGF), or replaced by a wired network access gateway (wireline access gateway function, W-AGF). The access network equipment between the UE and the above-mentioned access gateway includes wireless local area network access point (WLAN AP), wired network access network equipment (fixed access network, FAN), switches, routers, etc.

[0107] In summary, N3G access technologies include trusted WLAN access, untrusted WLAN access, and wired access. For both trusted and untrusted non-3GPP access, the core network can use a point-to-point interface protocol as shown in Figure 2, or a service-based interface consistent with the 3GPP access core network architecture shown in Figure 1 above.

[0108] The above describes the network architecture for a single terminal device accessing the 5G core network via 3GPP or non-3GPP access technologies. In some scenarios, multiple terminal devices may form a group. For example, in consumer-to-consumer services, various terminal devices in a user's home may form a group; in business-to-business services, terminal devices used by enterprise employees may form a group. The following describes how data transmission between terminal devices is performed, using a PIN network composed of multiple UEs as an example. This PIN network can be a subnet composed of devices in a user's home or a subnet composed of terminal devices in an enterprise.

[0109] In order to establish a connection between different members (i.e., terminal devices) in a group, the 5G core network side stores member information (such as the IP address of the terminal device) in the same PIN network. When different members connect from different UPFs, GTP-U tunnels are established between different UPFs. Different GTP-U tunnels can be established for different PIN networks. Different terminal devices belonging to the same PIN network can share the same GTP-U channel. After the GTP-U tunnels between different UPFs are established, the SMF configures the routing policy to the above-mentioned UPF. The specific routing policy includes the IP address of the terminal device and its corresponding GTP-U tunnel information, and the GTP-U tunnel information may include the network address of the above-mentioned UPF. When forwarding a data packet from a terminal device, the UPF can determine the corresponding GTP-U tunnel based on the IP address of the destination terminal device of the data packet, and continue to transmit the data packet through the above-mentioned GTP-U tunnel.

[0110] However, the premise of the above method is that the SMF needs to configure the correspondence between the terminal device's IP address and the tunnel on the UPF side, that is, the UPF needs to identify the IP address of the destination terminal device and route the data packet according to the IP address of the terminal device. However, in some scenarios, such as when the terminal device accesses from the campus, the IP address of the destination terminal device is provided by the campus service provider, that is, the IP address of the terminal device belongs to the IP address of the private network terminal device, and the IP address of the private network terminal device does not want to be recognized by the operator's UPF, resulting in the UPF being unable to continue transmitting data due to the inability to identify the IP address of the destination terminal device.

[0111] In view of this, the present application proposes a data transmission method in which a first UPF identifies identification information in a received data packet to determine the destination UPF of the data packet, thereby enabling the destination UPF to send the data packet to the destination terminal device. This avoids data transmission failures caused by the first UPF's inability to identify the IP address of the destination terminal device in the data packet. This application facilitates smooth data transmission and improves data transmission efficiency even when the UPF cannot identify the IP address of the terminal device.

[0112] FIG3 is a schematic diagram of an application scenario 300 provided in an embodiment of the present application. The application scenario 300 is introduced below.

[0113] Scenario 300 includes three areas: campus A, public area B, and public area C. Campus A includes UE1, UE3, local UPF (L-UPF) A, local SMF (L-SMF) A, and multiple other SMFs. Multiple SMFs can be referred to as an SMF set. L-UPF A is the local UPF corresponding to campus A. UE1 establishes a PDU session connection with L-UPF A, and UE3 establishes a PDU session connection with L-UPF A. L-UPF A and L-SMF can communicate with each other. Public area C includes UE2, UPF C, and multiple SMFs. UPF C is the UPF corresponding to campus C. UE2 establishes a PDU session with UPF C, and UPF C and SMF C can communicate with each other. L-UPF A in campus A and UPF C in public area C can be connected via the N6 or N19 channel. L-SMF A in Campus A and SMF C in Campus C can communicate with NRF / G-SMF. UPF C can send data packets from UE2 to L-UPF A. After receiving the data packets, L-UPF A sends the data packets to UE1. Similarly, L-UPF A can send data from UE1 to UE2.

[0114] Optionally, a GTP-U tunnel can be formed between L-UPF A and UPF C.

[0115] Optionally, a relay-UPF (initial UPF, I-UPF) may be included between UE1 and L-UPF A, between UE3 and L-UPF A, and between UE2 and UPF C.

[0116] It should be understood that in the above scenario, only Park A and Public Area C are used as examples. The above Public Area C can also be Park C, and Park A can also be Public Area B. This application does not limit this. It should also be understood that there can be multiple terminal devices, UPFs, SMFs, and NRFs, and this embodiment of the application does not limit this.

[0117] It should be understood that Figure 3 is only a schematic diagram, and the application scenario may also include other network devices, such as AMF, base station, and wireless relay equipment, which are not shown in Figure 3.

[0118] The various embodiments provided in this application will be described in detail below.

[0119] The embodiments of the present application are described using the first terminal device, the second terminal device, the SMF, the first UPF, and the second UPF as examples. It should be understood that the terminal device can be replaced by a device or chip that can implement functions similar to those of the terminal device, the SMF can be replaced by a device or chip that can implement functions similar to those of the SMF, and the first UPF and the second UPF can be replaced by devices or chips that can implement functions similar to those of the first UPF and the second UPF. The embodiments of the present application do not limit their names.

[0120] FIG4 is a schematic flow chart of a data transmission method 400 provided in an embodiment of the present application. This method can be applied to the aforementioned scenario 300. The first terminal device may be UE1 in scenario 300, the second terminal device may be UE2 in scenario 300, the SMF may be L-SMF A in scenario 300, the first UPF may be L-UPF A in scenario 300, and the second UPF may be UPF C in scenario 300. The method 400 includes the following steps:

[0121] S401, SMF obtains the identification information of the first UPF.

[0122] It should be understood that identification information is used to identify the UPF. Each UPF corresponds to unique identification information. Identification information can also be called a label. Identification information can include data and / or a string, etc. For example, the label of the first UPF is: 37598312a. It should also be understood that there are many ways for the SMF to obtain the identification information of the first UPF. For example, the SMF can determine the identification information for the first UPF itself (for example, determine the identification information of the first UPF based on static configuration), or obtain the identification information of the first UPF through the NRF connected to it, or receive identification information reported by the first UPF, etc. This embodiment of the present application is not limited to this.

[0123] S402: The SMF sends at least one of the identification information of the first UPF, the identification information of other UPFs, and routing policy information to the first UPF. The first UPF and the other UPFs serve the same PIN network. The routing policy information includes first routing policy information and / or second routing policy information. The first routing policy information is used to instruct the first UPF to carry the identification information of the first UPF in uplink data packets, and the second routing policy information is used to instruct the first UPF to carry the identification information of other UPFs in downlink data packets. Correspondingly, the first UPF receives at least one of the identification information of the first UPF, the identification information of other UPFs, and routing policy information.

[0124] It should be understood that a PIN network is a group or subnet composed of multiple terminal devices. For example, a PIN network can be a subnet composed of home user devices or a subnet composed of enterprise user devices. A PIN network can also be called a PIN group.

[0125] It should be understood that the identification information of other UPFs can be obtained by the SMF through the NRF. The NRF has a storage function and can store the network address of the UPF and the identification information of the UPF. There is a correspondence between the identification information of each UPF and the network address of the corresponding UPF. There can be one or more other UPFs. The identification information of each UPF can be unique in the entire network or unique in the PIN network. When it is unique in the PIN network, the NRF stores the correspondence between the identification of the PIN network and the UPF network address and the identification information of the UPF. The identification of the PIN network can be a PIN ID or a PIN network name, etc., which is not limited in the embodiments of the present application.

[0126] For example, when NRF receives a request message from SMF, it can query the network address of the UPF corresponding to the PIN network and the identification information of the corresponding UPF based on the PIN ID carried in the request message, and send the network address of the UPF corresponding to the PIN network and the identification information of the corresponding UPF to SMF.

[0127] It should also be understood that the SMF can send the identification information of the first UPF, the identification information of other UPFs, and the routing policy information to the first UPF through different messages. For example, the SMF can send the routing policy information and the identification information of the first UPF to the first UPF through a first message (such as a PFCP update request message), and send the identification information of other UPFs to the first UPF through a second message. If the first UPF already stores the identification information of other UPFs serving the same PIN network and there is no update to the other UPFs, the SMF does not need to send the identification information of the other UPFs to the first UPF again; if there is an update to other UPFs serving the same PIN network (for example, a newly added UPF), the identification information of the newly added UPF is sent to the first UPF.

[0128] S403: The first terminal device receives a ninth data packet, which carries the network address of the second terminal device.

[0129] Exemplarily, the ninth data packet is sent by the second UPF, which serves the second terminal device. The data content in the ninth data packet is sent by the second terminal device. The source network address of the data content is the network address of the second terminal device, and the destination network address is the network address of the first terminal device.

[0130] S404: The first terminal device sends a first data packet to the first UPF, where the first data packet carries identification information of the second UPF and the network address of the second terminal device. Correspondingly, the first UPF receives the first data packet.

[0131] It should be understood that the first terminal device can encapsulate the data content to obtain a first data packet, the destination address of which is the network address of the second terminal device. The above encapsulation process can include the identification information of the second UPF in the header of the encapsulated data packet, that is, the header of the first data packet carries the identification information of the second UPF.

[0132] S405, the first UPF sends a second data packet to the second UPF based on the identification information of the second UPF, where the second UPF is the UPF serving the second terminal device, and the second data packet carries the identification information of the first UPF and the network address of the second terminal device.

[0133] It should be understood that the first data packet and the second data packet include the same data content.

[0134] It should be understood that in S402, the SMF sends the identification information of other UPFs to the first UPF. There is a correspondence between the identification information of each UPF and the network address of the corresponding UPF. The first UPF can determine that the first data packet is sent to the second UPF based on the identification information of the second UPF carried in the first data packet, and send the second data packet to the second UPF based on the network address of the second UPF. The second data packet can be the network address of the second UPF and the identification information of the first UPF encapsulated in the outer layer of the first data packet, and optionally, the identification information of the second UPF in the first data packet is deleted. The above processing facilitates the second terminal device to carry the identification information of the first UPF when sending a reply data packet to the first terminal device. When the second UPF corresponding to the second terminal device receives the reply data packet, it can determine to send the reply data packet to the first UPF by identifying the identification information of the first UPF.

[0135] The data transmission method of an embodiment of the present application utilizes a first UPF to identify identification information in a received data packet to determine the destination UPF of the data packet, thereby enabling the destination UPF to send the data packet to the destination terminal device. This avoids data transmission failures caused by the first UPF's inability to identify the IP address of the destination terminal device in the data packet. In the event that the UPF cannot identify the IP address of the terminal device, this embodiment of the present application facilitates smooth data transmission and improves data transmission efficiency.

[0136] Optionally, the first terminal device and the second terminal device belong to the same PIN network.

[0137] It should be understood that the PIN network may also include other terminal devices.

[0138] Furthermore, the above method 400 may further include the following steps:

[0139] S406: The second UPF receives the second data packet and sends a tenth data packet to the second terminal device based on the network address of the second terminal device. The tenth data packet carries the identification information of the first UPF. Correspondingly, the second terminal device receives the tenth data packet.

[0140] It should be understood that the tenth data packet is obtained by decapsulating the second data packet by the second UPF, i.e., removing the network address of the second UPF from the second data packet. Furthermore, the decapsulation process may also include parsing, where the second UPF may parse the second data packet to obtain identification information of the first UPF, and then encapsulate the identification information of the first UPF in the header of the tenth data packet.

[0141] Optionally, the identification information of the first UPF in S401 is determined by one of the SMF, the NRF or the first UPF.

[0142] The method in which the identification information of the first UPF is determined by the SMF is as follows:

[0143] In one possible implementation, during the process of establishing a PDU session connection between the first terminal device and the first UPF through the SMF, after the SMF determines that the first UPF serves the first terminal device, the SMF assigns identification information to the first UPF.

[0144] Another possible implementation method is that when the SMF establishes a connection with the first UPF for the first time, the SMF allocates identification information to the first UPF.

[0145] The method by which the identification information of the first UPF is determined by the NRF is:

[0146] During the process of the first terminal device establishing a PDU session connection with the first UPF through SMF, the SMF can send a request message to the NRF connected to the SMF after determining that the first UPF serves the first terminal device. The message carries the network address of the first UPF or the FQDN of the first UPF or the device name of the first UPF. After receiving the request message, the NRF searches for or allocates the identification information of the first UPF based on the network address, FQDN or device name of the first UPF, and sends the identification information to the SMF.

[0147] The method in which the identification information of the first UPF is determined by the first UPF is as follows:

[0148] One possible implementation method is that when the first terminal device establishes a PDU session connection with the first UPF through SMF, after the SMF determines that the first UPF serves the first terminal device, the SMF needs to send a PFCP session request message to the first UPF. After receiving the message, the first UPF determines its own identification information and carries its own identification information in the response message to the SMF.

[0149] Another possible implementation method is that when the first UPF establishes a connection with the SMF for the first time, the first UPF determines its own identification information and sends its own identification information to the SMF.

[0150] As an optional embodiment, the method 400 further includes: the SMF sending a first correspondence to the first terminal device, where the first correspondence includes a correspondence between identification information of at least one UPF and a network address of at least one terminal device served by the UPF. Correspondingly, the first terminal device receives the first correspondence from the SMF.

[0151] It should be understood that the first correspondence is sent to the SMF by the NRF connected to the SMF. The NRF has a storage function and can store the network address or FQDN or device name of the UPF, the identification information of the UPF, and the network address of at least one terminal device served by the UPF (or the network address segment corresponding to the terminal device served by the UPF). There is a first correspondence between the identification information of the UPF and the network address of at least one terminal device served by the UPF. The network address of the terminal device can be allocated by the SMF or by the UPF. When the network address of the terminal device is allocated by the UPF, the UPF sends the allocated network address to the SMF connected to it.

[0152] Exemplarily, the first correspondence may include a correspondence between the identification information of the second UPF and the second terminal device network address served by the second UPF. The first correspondence may include a correspondence between the identification information of the second UPF and the second terminal device network address served by the second UPF and the third terminal device network address. The first correspondence may include a correspondence between the identification information of the second UPF and the second terminal device network address served by the second UPF and the third terminal device network address, and also include a correspondence between the identification information of the third UPF and the fourth terminal device network address served by the third UPF.

[0153] It should be understood that the first terminal device can, based on the first correspondence, determine the UPF identification information corresponding to the destination terminal device network address of the data content to be sent by identifying the destination terminal device network address, and encapsulate the corresponding UPF identification information in the data content. For example, the first terminal device identifies the destination address of the data content to be sent: the second terminal device network address, determines the identification information of the second UPF based on the first correspondence, and encapsulates the identification information of the second UPF in the data content to be sent.

[0154] Optionally, before the first UPF receives the first data packet from the first terminal device in S404, the above method also includes: the first UPF receives a third data packet from the second UPF, the third data packet carries the identification information of the second UPF and the network address corresponding to the destination UPF, the destination address of the third data packet is the network address corresponding to the destination UPF, and the destination UPF includes the first UPF; the first UPF sends a fourth data packet to the first terminal device, and the fourth data packet carries the identification information of the second UPF.

[0155] It should be understood that the third data packet can be sent by the second UPF to the destination UPF in the form of a broadcast, and the first UPF is one of the destination UPFs. The network address corresponding to the destination UPF can be a specific network address for broadcast or multicast. By identifying the specific network address for broadcast or multicast, the second UPF can send the third data packet to multiple destination UPFs corresponding to the specific network address. In addition, the network address corresponding to the destination UPF can also be the network address of a UPF. Exemplarily, if the network address corresponding to the destination UPF is the network address of the first UPF, the second UPF will send the third data packet to the first UPF, and the terminal device served by the above-mentioned destination UPF and the second UPF belongs to the same PIN group.

[0156] It should also be understood that after the first UPF receives the third data packet from the second UPF, it decapsulates the third data packet to obtain a fourth data packet. The decapsulation process includes deleting the network address corresponding to the destination UPF in the third data packet and / or parsing the third data packet to obtain identification information of the second UPF, and then encapsulating the identification information of the second UPF in the fourth data packet. The fourth data packet and the third data packet include the same data content. The data content is sent by the second terminal device. The data content can be sent by the second terminal device to the first terminal device, or the data content can be sent by the second terminal device to each terminal device in the PIN network (including the first terminal device). When the data content is sent by the second terminal device to the first terminal device, the network address of the destination terminal device corresponding to the data content is the network address of the first terminal device, and the first UPF can send the fourth data packet to the first terminal device based on the network address of the first terminal device. When the data content is sent by the second terminal device to each terminal device in the PIN network, the network address of the destination terminal device corresponding to the data content is a specific multicast or broadcast network address, and the first UPF can send the fourth data packet to the first terminal device based on the specific multicast or broadcast network address.

[0157] Optionally, before the first terminal device sends the first data packet to the first UPF in S404, the method further includes: the first terminal device determines identification information of the second UPF corresponding to the destination address of the first data packet.

[0158] The first terminal device may determine the identification information of the second UPF corresponding to the destination address of the first data packet in the following two ways:

[0159] A possible implementation method: The first terminal device determines the identification information of the second UPF based on the first correspondence, and the first correspondence includes the correspondence between the identification information of at least one UPF and the network address of at least one terminal device served by the UPF.

[0160] Optionally, the first corresponding relationship is that the first terminal device receives from the SMF.

[0161] Exemplarily, the first correspondence includes a correspondence between the identification information of the second UPF and the network address of the second terminal device served by the second UPF. The first terminal device identifies the destination address of the first data packet: the network address of the second terminal device, and based on the first correspondence, determines that the destination address of the first data packet corresponds to the identification information of the second UPF.

[0162] Another possible implementation manner: the ninth data packet carries identification information of the second UPF.

[0163] Exemplarily, the ninth data packet may be sent by the second terminal device to the first terminal device through the second UPF and the first UPF. When the ninth data packet passes through the second UPF, the second UPF encapsulates the label of the second UPF in the header of the ninth data packet and sends it to the first UPF, and then sends it to the first terminal device via the first UPF. The first data packet may be a reply data packet sent by the first terminal device to the second terminal device. The reply data packet carries: source network address: first terminal device and destination network address: second terminal device. When the first terminal device sends a reply data packet to the second terminal device, it can determine the identification information of the second UPF corresponding to the destination address of the first data packet, and carry the identification information of the second UPF in the reply data packet.

[0164] Optionally, the first data packet in the above S404 carries identification information of the second UPF, and the identification information of the second UPF is included in any of the following headers of the first data packet: an Ethernet header, an Internet Protocol IP header, or a Packet Data Convergence Protocol PDCP header.

[0165] It should be understood that if the PDU session established between the first terminal device and the first UPF is an IP type session, the identification information of the second UPF can be carried in the IP header of the first data packet. If the PDU session established between the first terminal device and the first UPF is an Ethernet type session, the identification information of the second UPF can be carried in the Ethernet header of the first data packet. If the PDU session established between the first terminal device and the first UPF is an unstructured type session, a new layer of protocol header can be added, and the identification information of the second UPF can be carried in the new header. In another possible implementation, the label can be carried in the PDCP header of the first data packet. After receiving the first data packet, the access network device obtains the identification information of the second UPF carried in the PDCP header, and carries the above-mentioned second UPF identification information in the GTP-U header and sends it to the first UPF.

[0166] In the above S405, the second data packet carries the identification information of the first UPF and the network address of the second terminal device.

[0167] Optionally, the identification information of the first UPF is included in any of the following headers of the second data packet: an Internet Protocol (IP) header, a Virtual Extended Local Area Network (VXLAN) header, a General Packet Radio Tunneling Protocol-User Plane (GTP-U) header, or an IP Security (IPSec) header.

[0168] It should be understood that the first UPF can carry the identification information of the first UPF in the option parameters of the IP header, for example, carry the identification information of the first UPF in the routing option parameters, or carry the identification information of the first UPF in the flow identification parameters. When the first UPF encapsulates data content in a VXLAN manner, it can encapsulate the VXLAN header, user datagram UDP header and IP header in the outer layer of the data content, and carry the identification information of the first UPF in the VXLAN header. When the first UPF uses the GTP-U channel to transmit data packets, it can encapsulate the GTP-U header, UDP header and IP header outside the data content, and carry the identification information of the first UPF in the GTP-U header. When the first UPF performs IPSec encapsulation on the data content, it can carry the identification information of the first UPF in the ESP header of IPSec or carry the identification information of the first UPF in the IP header.

[0169] Optionally, the identification information of the first UPF may also be included in a general routing encapsulation (GRE) protocol header of the second data packet, for example, a GRE keyword (GRE key for short) is set as the identification information of the first UPF.

[0170] As an optional embodiment, the second data packet in the above S405 carries the identification information of the second UPF and the network address of the second terminal device.

[0171] It should be understood that the identification information of the second UPF in the first data packet does not need to be deleted, and the identification information of the first UPF does not need to be encapsulated in the outer layer of the first data packet. Only the network address of the second UPF is encapsulated in the outer layer of the first data packet to obtain the second data packet, so that the second data packet still carries the identification information of the second UPF.

[0172] As an optional embodiment, the second data packet in the above S405 carries the network address of the second terminal device.

[0173] It should be understood that the identification information of the second UPF in the first data packet can be deleted, and the identification information of the first UPF is not encapsulated in the outer layer of the first data packet. Only the network address of the second UPF is encapsulated in the outer layer of the first data packet to obtain the second data packet, so that the second data packet does not carry the identification information of any UPF.

[0174] Optionally, the above method also includes: the first UPF receives a fifth data packet from the first terminal device, the fifth data packet carries the network address of the second terminal device; the first UPF sends a sixth data packet to the destination UPF, the sixth data packet carries the identification information of the first UPF, the network address corresponding to the destination UPF and the network address of the second terminal device, and the network address corresponding to the destination UPF is the destination address of the sixth data packet.

[0175] It should be understood that the network address corresponding to the destination UPF is a specific broadcast or multicast network address. The first UPF can identify the specific broadcast or multicast network address and send the sixth data packet to multiple UPFs corresponding to the specific network address. The terminal devices served by these multiple UPFs and the first terminal device belong to the same PIN group. After receiving the sixth data packet, the multiple UPFs identify the network address of the second terminal device, and the UPF serving the second terminal device sends the sixth data packet to the second terminal device.

[0176] Optionally, the above method also includes: the first UPF receives the seventh data packet from the first terminal device; the first UPF determines that the seventh data packet is a broadcast packet or a multicast packet based on the seventh data packet; the first UPF sends the eighth data packet to the destination UPF, and the eighth data packet carries the identification information of the first UPF and the network address corresponding to the destination UPF, and the network address corresponding to the destination UPF is the destination address of the eighth data packet.

[0177] In one possible implementation, the seventh data packet is a multicast packet or a broadcast packet, and the destination network address (e.g., IP address or MAC address) of the broadcast packet or multicast packet is a specific multicast or broadcast network address different from that of a unicast packet. The first UPF can determine that the seventh data packet is a broadcast or multicast packet based on the destination network address of the seventh data packet, copy the seventh data packet multiple times, and encapsulate the multiple copies of the seventh data packet separately, that is, encapsulate the network address of one UPF in the destination UPF and the identification information of the first UPF in the outer layer of each copy of the seventh data packet, thereby obtaining multiple copies of the eighth data packet. The terminal devices corresponding to the above-mentioned destination UPFs belong to the same PIN group as the first terminal device. The first UPF sends the above-mentioned multiple copies of the eighth data packet to the corresponding destination UPF. When the multiple UPFs receive the corresponding eighth data packet, each UPF decapsulates the corresponding eighth data packet and, by identifying the specific multicast or broadcast network address, sends the corresponding decapsulated data packet to the corresponding terminal device in the same PIN group. Exemplarily, the second terminal device corresponding to the second UPF belongs to the same PIN group as the first terminal device. The first UPF encapsulates the network address of the second UPF and the identification information of the first UPF in the first seventh data packet to obtain an eighth data packet. The network address of the second UPF is the destination address of the eighth data packet. Upon receiving the eighth data packet, the second UPF decapsulates the eighth data packet, thereby removing the network address of the second UPF. The second UPF then sends the decapsulated data packet to the second terminal device by identifying the specific network address of the broadcast or multicast packet.

[0178] In another possible implementation, the seventh data packet is a multicast packet or a broadcast packet. The destination network address of the broadcast packet or multicast packet is a specific network address different from that of the unicast packet. The first UPF can determine that the seventh data packet is a broadcast packet or a multicast packet based on the destination network address of the seventh data packet. The first UPF obtains the eighth data packet by encapsulating the seventh data packet, that is, encapsulating the network address corresponding to the destination UPF and the identification information of the first UPF in the outer layer of the seventh data packet. The network address corresponding to the destination UPF is also the specific network address corresponding to the broadcast packet or the multicast packet. The first UPF can send the eighth data packet to the corresponding multiple UPFs by identifying the network address corresponding to the destination UPF. The terminal devices served by the above-mentioned first UPF and multiple UPFs belong to the same PIN group. After receiving the eighth data packet, the multiple UPFs decapsulate it respectively, that is, delete the network address corresponding to the destination UPF, and send the decapsulated data packet to the corresponding terminal devices in the same PIN group by identifying the specific multicast or broadcast network address corresponding to the seventh data packet.

[0179] Optionally, the above method also includes: the first UPF determines the network address of the destination UPF and / or the identification information of the destination UPF based on the PIN identification of the PIN network.

[0180] It should be understood that the first UPF can receive a data packet from the first terminal device, and the data packet is sent to the first UPF by the first terminal device through the PDU session corresponding to the PIN group. Therefore, after the first UPF receives the data packet, it can determine the PIN group corresponding to the data packet, and determine the network address and / or identification information of other UPFs serving this PIN network based on the identifier of the PIN group (such as PIN ID or PIN group name, etc.). The embodiment of the present application is not limited to this. In addition, the first UPF can also determine the network address and / or identification information of other UPFs serving this PIN network based on the unique special data network name corresponding to the PIN group. The above-mentioned other UPFs can be the destination UPF. In the process of the first terminal device establishing a PDU session connection with the first UPF through the SMF, the SMF carries the PIN group information corresponding to this PDU session, such as the PIN ID, or the data network name (DNN) and / or slice information corresponding to the above-mentioned PIN group in the PFCP session request message sent to the first UPF. Therefore, the first UPF can determine the PIN group corresponding to the data packet by identifying the PDU session transmitted by the data packet.

[0181] The following describes a data transmission method 500 of the present application, taking the case where the first terminal device and the second terminal device belong to the same PIN network and the identification information of the UPF as a tag as an example, in conjunction with FIG5 . This method can be applied to the above scenario 300. The first terminal device can be UE1 in scenario 300, the second terminal device can be UE2 in scenario 300, the first SMF can be L-SMF A in scenario 300, the second SMF can be SMF C in scenario 300, the first UPF can be L-UPF A in scenario 300, and the second UPF can be UPF C in scenario 300. Method 500 includes the following steps:

[0182] S501: A first terminal device sends a PDU session establishment request to a first AMF. This session establishment request is used to request establishment of a PDU session connection for the first terminal device. The session establishment request carries a PIN ID, which is identification information of the PIN network to which the first and second terminal devices belong. Correspondingly, the first AMF receives the PDU session establishment request from the first terminal device.

[0183] It should be understood that the PDU session establishment request can be carried by an uplink non-access layer transmission message, and the non-access layer transmission message can also carry at least one of a PIN ID, a data network name, and a network slice. The data network name or the network slice can also be used to determine the PIN group corresponding to the above-mentioned PDU session. For example, the PIN ID is determined based on the network name or the network slice. The embodiment of the present application only takes the session establishment request message carrying the PIN ID as an example, and the embodiment of the present application is not limited to this. The following PIN IDs can all be replaced with the data network name and / or network slice information.

[0184] S502: The first AMF determines the first SMF based on the PIN ID.

[0185] It should be understood that the AMF stores the correspondence between the PIN ID and the SMF, and the AMF can select the first SMF based on the PIN ID. The first AMF can also determine the SMF based on the data network name or network slice.

[0186] S503: The first AMF sends the PDU session establishment request to the first SMF. The PDU session establishment request carries the PIN ID. Correspondingly, the first SMF receives the PDU session establishment request.

[0187] S504: The first SMF determines the first UPF based on the PIN ID.

[0188] It should be understood that the first SMF stores the network address of the UPF corresponding to the PIN ID, and the first SMF can select and determine the first UPF in the UPF corresponding to the PIN ID. When the UPF corresponding to the PIN ID is not available (for example, the UPF and the SMF belong to different areas), the SMF can also select a local UPF. It should also be understood that the network address of the UPF can be an IP address or the domain name of the UPF. In addition, the first SMF can also send a request message to the NRF, and the request message carries the PIN ID. In the case where the NRF stores the network address of the UPF corresponding to the PIN ID, the NRF determines the first UPF based on the PIN ID, and sends the network address of the first UPF to the SMF. In the case where the NRF does not store the network address of the UPF corresponding to the PIN ID, the NRF can determine the first UPF based on the data network name and / or network slice corresponding to the PIN group, and send the network address of the first UPF to the first SMF.

[0189] S505: The first SMF sends a PFCP session request message to the first UPF, where the PIN ID and the network address of the first terminal device are carried in the session request message. Correspondingly, the first UPF receives the PFCP session request message.

[0190] S506: The first UPF sends a response message 1 to the first SMF. Correspondingly, the first SMF receives the response message 1.

[0191] S507: The first SMF sends a request message 1 to the NRF, where the request message 1 includes the PIN ID and the network address of the first UPF, where the network address of the first UPF includes the IP address of the first UPF. Correspondingly, the NRF receives the request message 1 from the first SMF.

[0192] S508, the NRF stores the above PIN ID and the network address of the first UPF, and searches for other UPF network addresses and labels corresponding to the PIN ID based on the PIN ID, and the NRF determines the label of the first UPF.

[0193] Optionally, the NRF may not determine the label of the first UPF.

[0194] S509: The NRF sends a response message 2 to the first SMF. The response message 2 includes the PIN ID, the tag of the first UPF, and the network addresses and tags of other UPFs corresponding to the PIN ID. The network addresses of other UPFs corresponding to the PIN ID constitute a UPF network address list. In response, the first SMF receives the response message 2.

[0195] It should be understood that if the NRF does not determine the label of the first UPF, the NRF sends a response message 2 to the first SMF. The response message 2 includes: the PIN ID, the network address and label of the other UPF corresponding to the PIN ID. Correspondingly, the first SMF receives the response message 2, determines the label of the first UPF, and sends the label of the first UPF to the NRF.

[0196] S510: The first SMF sends a PFCP session update request message to the first UPF. The PFCP session update request message includes: a routing policy, a label of the first UPF, a UPF network address list, and labels of each UPF in the UPF network address list. Correspondingly, the first UPF receives the PFCP session update request message.

[0197] It should be understood that the routing policy information includes first routing policy information and second routing policy information. The first routing policy information is used to indicate that the first UPF carries the label of the first UPF in the uplink data packet, and the second routing policy information is used to indicate that the first UPF carries the labels of other UPFs in the downlink data packet.

[0198] It should be understood that if the first UPF has already stored the UPF network address list corresponding to the PIN network and the labels of each UPF in the UPF network address list, the first SMF does not need to send the UPF network address list and the labels of each UPF in the UPF network address list to the first UPF. If the UPF network address list is updated, the first SMF also needs to send the corresponding update information to the first UPF.

[0199] S511: The first UPF sends a response message 3 to the first SMF. Correspondingly, the first SMF receives the response message 3.

[0200] S512, the first SMF sends a PDU session response message to the first terminal device.

[0201] It should be understood that the PDU session established between the first terminal device and the first UPF is a PDU session corresponding to the PIN group.

[0202] S513 to S524 is the process of establishing a PDU session for the second terminal device. The process of establishing a PDU session for the second terminal device is consistent with the process from S501 to S512. To avoid repetition, it will not be repeated here.

[0203] It should be understood that the first SMF corresponding to S501 to S512 and the second SMF corresponding to S513 to S524 may be different SMFs or the same SMF.

[0204] S525: The second terminal device sends a data packet 1 including data content 1 to the second UPF. The data packet 1 is a broadcast packet, and the destination address of the data packet 1 is a specific network address corresponding to the broadcast packet. Correspondingly, the second UPF receives the data packet 1.

[0205] It should be understood that the destination address of data packet 1 is the destination address of data content 1.

[0206] S526, the second UPF determines that data packet 1 is a broadcast packet based on the destination address of data packet 1, copies data packet 1 to obtain multiple copies of data packet 1, and encapsulates each copy of data packet 1 separately, that is, encapsulates the network address of a UPF in the destination UPF, the network address of the second UPF and the label of the second UPF in the outer layer of each data packet 1 to obtain multiple copies of data packet 2, the network address of the second UPF is used as the source address of data packet 2, the network address of a UPF in the above-mentioned destination UPF is the destination address of data packet 2, and the UPF network address list includes the first UPF.

[0207] It should be understood that the destination UPF is the UPF in the network address list, that is, the UPF corresponding to other terminal devices in the PIN network. It should also be understood that Data Packet 1 is sent by the second terminal device to the second UPF via the PDU session corresponding to the PIN group. Therefore, after receiving Data Packet 1, the second UPF can determine the PIN group corresponding to Data Packet 1 and, based on the PIN ID corresponding to the PIN group, determine the network address list corresponding to the PIN group. Data Packet 1 and Data Packet 2 contain the same data content 1.

[0208] S527: The second UPF sends the data packet 2 to each UPF in the UPF network address list according to the destination UPF address in each data packet 2. Correspondingly, each UPF in the UPF network address list receives the data packet 2.

[0209] S528, after the first UPF receives data packet 2 from the second UPF, it decapsulates data packet 2, i.e. deletes the source address of data packet 2: the network address of the second UPF and the destination address of data packet 2: the network address of the first UPF, and obtains the label and data content 1 of the second UPF.

[0210] It should be understood that the first UPF is one of the ones in the network address list, and other UPFs in the network address list can also receive the data packet 2.

[0211] S529: The first UPF sends data packet 3 to the first terminal device based on the destination address corresponding to data content 1, i.e., the specific network address corresponding to the broadcast packet. Data packet 3 includes data content 1 and the label of the second UPF. Correspondingly, the first terminal device receives data packet 3.

[0212] At step S530, the first terminal device sends data packet 4 to the first UPF. Data packet 4 includes data content 2, which is the reply data content of data content 1, and a tag for the second UPF. The destination address of data packet 4 is the network address of the second terminal device. In response, the first UPF receives data packet 4.

[0213] It should be understood that data content 2 is the reply data content of data content 1. Therefore, the first terminal device carries the label of the second UPF in data packet 4.

[0214] S531, the first UPF encapsulates data packet 4 according to the label of the second UPF carried in data packet 4 to obtain data packet 5. The encapsulation process includes encapsulating the network address of the first UPF, the network address of the second UPF and the label of the first UPF in the outer layer of data packet 4, and deleting the label of the second UPF carried in data packet 4. The network address of the first UPF is used as the source address of data packet 5, and the network address of the second UPF is used as the destination address of data packet 5.

[0215] It should be understood that in S510, the first UPF receives the UPF network address list from the SMF and the labels of each UPF in the UPF network address list, so the first UPF can determine the network address of the second UPF based on the label of the second UPF, and encapsulate the network address of the second UPF in the outer layer of data packet 4.

[0216] S532: The first UPF sends the data packet 5 to the second UPF. Correspondingly, the second UPF receives the data packet 5.

[0217] S533, the second UPF decapsulates the data packet 5 to obtain the data packet 6, which includes: data content 2 and the label of the first UPF. The decapsulation process deletes the network address of the first UPF and the network address of the second UPF, and parses the label of the first UPF from the data packet 5.

[0218] S534, the second UPF sends data packet 6 to the second terminal device according to the network address of the second terminal device.

[0219] It should be understood that the order of execution of the above processes does not necessarily mean the order in which they are executed. The order in which the processes are executed should be determined by their functions and internal logic.

[0220] Below, another data transmission method of the present application is described in conjunction with FIG6 , taking the first terminal device as UE1, the second terminal device as UE2, the first terminal device and the second terminal device as belonging to the same PIN network, and the identification information of the UPF as a tag as an example. This method can be applied to the above-mentioned scenario 300, the first terminal device can be UE1 in the scenario 300, the second terminal device can be UE2 in the scenario 300, the first SMF can be L-SMF A in the scenario 300, the second SMF can be SMF C in the scenario 300, the first UPF can be L-UPF A in the scenario 300, and the second UPF can be UPF C in the scenario 300. Method 600 includes the following steps:

[0221] S601: A first terminal device sends a PDU session establishment request to a first AMF. This session establishment request is used to request establishment of a PDU session connection for the first terminal device. The session establishment request carries a PIN ID, which is identification information of the PIN network to which the first and second terminal devices belong. Correspondingly, the first AMF receives the PDU session establishment request from the first terminal device.

[0222] S602: The first AMF determines the first SMF based on the PIN ID.

[0223] S603: The first AMF sends the PDU session establishment request to the first SMF. The PDU session establishment request carries the PIN ID. Correspondingly, the first SMF receives the PDU session establishment request.

[0224] S604: The first SMF determines the first UPF based on the PIN ID.

[0225] S605: The first SMF sends a PFCP session request message to the first UPF, where the PIN ID and the IP address of the first terminal device are carried in the message. Correspondingly, the first UPF receives the PFCP session request message.

[0226] S606: The first UPF sends a response message 7 to the first SMF. Correspondingly, the first SMF receives the response message 7.

[0227] S607, the first SMF determines the UE IP address segment allocated for the above-mentioned PIN ID, and determines the UE IP address segment corresponding to the first UPF.

[0228] It should be understood that the UE IP address segment corresponding to the first UPF is the IP address segment obtained by the UE connected to the first UPF, that is, the IP address segment of the UE served by the first UPF. It should also be understood that the UE IP address segment corresponding to the above-mentioned PIN ID can also be determined by the first UPF. In the case of determination by the first UPF, the first UPF will send the UE IP address segment allocated for the PIN ID to the first SMF. In addition to being determined by the first SMF, the UE IP address segment corresponding to the first UPF can also be determined by the first UPF. In the case of determination by the first UPF, the first UPF will send the UE IP address segment corresponding to the first UPF to the first SMF. This embodiment of the present application does not limit this.

[0229] S608: The first SMF sends a request message 3 to the NRF, which includes the PIN ID, the network address of the first UPF, and the UE IP address segment corresponding to the first UPF. Correspondingly, the NRF receives the request message 2 from the first SMF.

[0230] S609, NRF stores the above-mentioned PIN ID and the network address of the first UPF, and searches for other UPF network addresses, labels and corresponding UE IP address segments corresponding to the PIN ID based on the PIN ID. NRF determines the label of the first UPF, and the label of the UPF corresponding to the PIN ID and the UE IP address segment corresponding to the UPF form a first corresponding relationship.

[0231] S610: The NRF sends a response message 8 to the first SMF. The response message 8 includes: the PIN ID, the label of the first UPF, the network addresses of other UPFs corresponding to the PIN ID, the label, and the first correspondence. The network addresses of other UPFs corresponding to the PIN ID constitute a UPF network address list. In response, the first SMF receives the response message 8.

[0232] S611: The first SMF sends a PFCP session update request message to the first UPF. The PFCP session update request message includes: a routing policy, a label of the first UPF, a UPF network address list, and labels of each UPF in the UPF network address list. Correspondingly, the first UPF receives the PFCP session update request message.

[0233] It should be understood that the routing policy information may include first routing policy information and second routing policy information. The first routing policy information can be used to indicate that the first UPF carries the label of other UPFs in the uplink data packet, and the second routing policy information can be used to indicate that the first UPF carries the label of the first UPF in the downlink data packet.

[0234] S612: The first UPF sends a response message 9 to the first SMF. Correspondingly, the first SMF receives the response message 9.

[0235] S613, the first SMF sends a PDU session response message to the first terminal device, and the response message includes: a first corresponding relationship.

[0236] S614 to S626 is the process of establishing a PDU session for the second terminal device. The process of establishing a PDU session for the second terminal device is consistent with the process from S601 to S613. To avoid repetition, it will not be repeated here.

[0237] S627, the second terminal device determines that the IP address of the first terminal device falls within the UE IP address segment corresponding to the first UPF based on the destination address of the data packet 7 to be sent: the IP address of the first terminal device, and carries the label of the first UPF in the data packet 7.

[0238] S628: The second terminal device sends data packet 7 to the second UPF. Correspondingly, the second UPF receives the data packet 7.

[0239] S629, the second UPF encapsulates data packet 7 according to the label of the first UPF in data packet 7 to obtain data packet 8. The encapsulation includes encapsulating the network address of the second UPF and the network address of the first UPF in the outer layer of data packet 7. The network address of the second UPF is used as the source address of data packet 8, and the network address of the first UPF is used as the destination address of data packet 8.

[0240] It should be understood that data packet 7 and data packet 8 include the same data content 3. It should also be understood that the second UPF receives the UPF network address list and the labels of each UPF in the UPF network address list from the second SMF. Therefore, the second UPF can determine the network address of the first UPF based on the label of the first UPF and encapsulate the network address of the first UPF in the outer layer of data packet 7.

[0241] S630: The second UPF sends the data packet 8 to the first UPF. Correspondingly, the first UPF receives the data packet 8.

[0242] S631, the first UPF decapsulates the data packet 8, i.e., deletes the network address of the second UPF and the network address of the first UPF in the outer layer, to obtain the above-mentioned data packet 7.

[0243] S632: The first UPF sends the data packet 7 to the first terminal device according to the IP address of the first terminal device in the data packet 7. Correspondingly, the first terminal device receives the data packet 7.

[0244] It should be understood that the order of execution of the above processes does not necessarily mean the order in which they are executed. The order in which the processes are executed should be determined by their functions and internal logic.

[0245] The data transmission method according to the embodiment of the present application is described in detail above in conjunction with FIG. 4 to FIG. 6 . The data transmission device according to the embodiment of the present application will be described in detail below in conjunction with FIG. 7 to FIG. 8 .

[0246] FIG7 shows a data transmission device 700 provided in an embodiment of the present application. The device 700 includes a receiving module 701 and a sending module 702 .

[0247] In a possible implementation, the device 700 is used to implement the steps corresponding to the first UPF in the above method embodiment.

[0248] A receiving module 701 is configured to receive a first data packet from a first terminal device, where the first data packet carries identification information of a second UPF and a network address of the second terminal device;

[0249] The sending module 702 is used to send a second data packet to the second UPF based on the identification information of the second UPF. The second UPF is the UPF serving the second terminal device. The second data packet carries the identification information of the device 700 and the network address of the second terminal device.

[0250] Optionally, the first terminal device and the second terminal device belong to the same personal internet of things network PIN network.

[0251] Optionally, the receiving module 701 is also used to: receive a third data packet from the second UPF, the third data packet carries the identification information of the second UPF and the network address corresponding to the destination UPF, the destination address of the third data packet is the network address corresponding to the destination UPF, and the destination UPF includes the device 700; the sending module 702 is also used to: send a fourth data packet to the first terminal device, the fourth data packet carries the identification information of the second UPF.

[0252] Optionally, the first data packet and the second data packet include the same data content.

[0253] Optionally, the receiving module 701 is also used to: receive at least one of the identification information of the device 700 from the SMF, the identification information of other UPFs, and the routing policy information, the device 700 and the other UPFs serve the same PIN network, the routing policy information includes first routing policy information and / or second routing policy information, the first routing policy information is used to indicate that the device 700 carries the identification information of the device 700 in the uplink data packet, and the second routing policy information is used to indicate that the device 700 carries the identification information of other UPFs in the downlink data packet.

[0254] Optionally, the identification information of the device 700 is included in any of the following headers of the second data packet: an Internet Protocol (IP) header, a Virtual Extended Local Area Network (VXLAN) header, a General Packet Radio Tunneling Protocol-User Plane (GTP-U) header, or an IP Security (IPSec) header.

[0255] Optionally, the receiving module 701 is also used to: receive a fifth data packet from the first terminal device, the fifth data packet carries the network address of the second terminal device; the sending module 702 is also used to: send a sixth data packet to the destination UPF, the sixth data packet carries the identification information of the device 700, the network address corresponding to the destination UPF and the network address of the second terminal device, and the network address corresponding to the destination UPF is the destination address of the sixth data packet.

[0256] Optionally, the receiving module 701 is also used to: receive the seventh data packet from the first terminal device; the device 700 also includes: a processing module, used to determine whether the seventh data packet is a broadcast packet or a multicast packet based on the seventh data packet; the sending module 702 is also used to: send an eighth data packet to the destination UPF, the eighth data packet carries the identification information of the device 700 and the network address corresponding to the destination UPF, and the network address corresponding to the destination UPF is the destination address of the eighth data packet.

[0257] Optionally, the processing module is further used to determine the network address of the destination UPF and / or the identification information of the destination UPF based on the PIN identification of the PIN network.

[0258] In another possible implementation, the device 700 is used to implement the steps corresponding to the SMF in the above method embodiment.

[0259] Receiving module 701, configured to obtain identification information of a first UPF;

[0260] Sending module 702 is used to send at least one of the identification information of the first UPF, the identification information of other UPFs and routing policy information to the first UPF. The first UPF and other UPFs serve the same PIN network. The routing policy information includes first routing policy information and / or second routing policy information. The first routing policy information is used to indicate that the first UPF carries the identification information of the first UPF in the uplink data packet, and the second routing policy information is used to indicate that the first UPF carries the identification information of other UPFs in the downlink data packet.

[0261] Optionally, the identification information of the first UPF is determined by one of the apparatus 700, the NRF or the first UPF.

[0262] Optionally, the sending module 702 is further used to: send a first correspondence to the first terminal device, where the first correspondence includes a correspondence between identification information of at least one UPF and a network address of at least one terminal device served by the UPF.

[0263] In another possible implementation, the apparatus 700 is used to implement the steps corresponding to the first terminal device in the above method embodiment.

[0264] A receiving module 701 is configured to receive a ninth data packet carrying a network address of a second terminal device;

[0265] The sending module 702 is used to send a first data packet to the first UPF, where the first data packet carries the identification information of the second UPF and the network address of the second terminal device.

[0266] Optionally, the device 700 further includes: a processing module, configured to determine identification information of a second UPF corresponding to the destination address of the first data packet.

[0267] Optionally, the processing module is also used to: determine the identification information of the second UPF based on the first corresponding relationship, the first corresponding relationship including the correspondence between the identification information of at least one UPF and the network address of at least one terminal device served by the UPF.

[0268] Optionally, the receiving module 701 receives a first corresponding relationship from the SMF.

[0269] Optionally, the ninth data packet carries identification information of the second UPF.

[0270] Optionally, the identification information of the second UPF is included in any one of the following headers of the first data packet: an Ethernet header, an Internet Protocol IP header, or a Packet Data Convergence Protocol PDCP header.

[0271] It should be understood that the receiving module may also be referred to as a receiving unit, and the sending module may also be referred to as a sending unit, and this application does not limit this.

[0272] It should be understood that the device 700 here is embodied in the form of a functional module. The term "module" here can refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and / or other suitable components that support the described functions. In an optional example, those skilled in the art will understand that the device 700 can be specifically the first UPF, SMF or first terminal device in the above-mentioned embodiment, and the device 700 can be used to execute the various processes and / or steps corresponding to the first UPF, SMF or first terminal device in the above-mentioned method embodiment. To avoid repetition, they will not be described here.

[0273] The apparatus 700 described above has the function of implementing the corresponding steps performed by the first UPF, SMF, or first terminal device in the above-described method. The above-described functions can be implemented via hardware or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions. For example, the receiving module 701 can be used to perform the various steps and / or processes of a receiving action, and the sending module 702 can be used to perform the various steps and / or processes of a sending action. The receiving module 701 can be replaced by a receiver, and the sending module 702 can be replaced by a transmitter, respectively performing the receiving and sending operations and related processing operations in the above-described method embodiments.

[0274] In the embodiment of the present application, the data transmission device 700 in FIG7 may also be a chip or a chip system, such as a system on chip (SOC). Correspondingly, the receiving module 701 and the sending module 702 may be the transceiver circuits of the chip, which is not limited here.

[0275] FIG8 shows another data transmission device 800 provided in an embodiment of the present application, which includes a processor 801, a transceiver 802, and a memory 803. The processor 801, the transceiver 802, and the memory 803 communicate with each other via an internal connection path. The memory 803 is used to store commands, and the processor 801 is used to execute the instructions stored in the memory 803 to control the transceiver 802 to send and / or receive signals.

[0276] It should be understood that the data transmission device 800 can be specifically the first UPF, SMF, or first terminal device in the above-mentioned embodiments, and can be used to execute each step and / or process corresponding to the first UPF, SMF, or first terminal device in the above-mentioned method embodiments. Optionally, the memory 803 may include read-only memory and random access memory, and provide instructions and data to the processor 801. A portion of the memory 803 may also include non-volatile random access memory. For example, the memory 803 may also store device type information. The processor 801 can be used to execute instructions stored in the memory. When the processor 801 executes the instructions stored in the memory, the processor 801 is configured to execute each step and / or process corresponding to the first UPF, SMF, or first terminal device in the above-mentioned method embodiments. The transceiver 802 can include a transmitter and a receiver. The transmitter can be used to implement each step and / or process corresponding to the above-mentioned transceiver for transmitting, and the receiver can be used to implement each step and / or process corresponding to the above-mentioned transceiver for receiving.

[0277] It should be understood that in the embodiment of the present application, the processor 801 may be a central processing unit (CPU), or may be other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor.

[0278] During implementation, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or by instructions in the form of software. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor. The software module can be located in a storage medium mature in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it will not be described in detail here.

[0279] The present application also provides a computer-readable storage medium for storing a computer program for implementing the method corresponding to the first UPF, SMF or first terminal device in the above embodiment.

[0280] The present application also provides a computer program product, which includes a computer program (also referred to as code, or instructions). When the computer program runs on a computer, the computer can execute the method corresponding to the first UPF, SMF or first terminal device shown in the above embodiment.

[0281] Those skilled in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0282] Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0283] In the several embodiments provided in this 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 merely schematic. For example, the division of the modules is merely a logical function division. In actual implementation, there may be other division methods, 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 through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0284] The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules may be selected to achieve the purpose of the present embodiment according to actual needs.

[0285] In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0286] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0287] The above description is merely a specific embodiment of the present application, but the scope of protection of the embodiments of the present application is not limited thereto. Any person skilled in the art can easily conceive of changes or substitutions within the technical scope disclosed in the embodiments of the present application, and such changes or substitutions should be included in the scope of protection of the embodiments of the present application. Therefore, the scope of protection of the embodiments of the present application should be based on the scope of protection of the claims.

Claims

1. A data transmission method, characterized in that: include: The first user plane function UPF receives a first data packet from a first terminal device, where the first data packet carries identification information of a second UPF and a network address of the second terminal device; The first UPF sends a second data packet to the second UPF based on the identification information of the second UPF, where the second UPF is the UPF serving the second terminal device, and the second data packet carries the identification information of the first UPF and the network address of the second terminal device.

2. The method according to claim 1, characterized in that: The first terminal device and the second terminal device belong to the same personal Internet of Things network PIN network.

3. The method according to claim 1 or 2, characterized in that: Before the first UPF receives the first data packet from the first terminal device, the method further includes: The first UPF receives a third data packet from the second UPF, the third data packet carries identification information of the second UPF and a network address corresponding to a destination UPF, the destination address of the third data packet is a network address corresponding to the destination UPF, and the destination UPF includes the first UPF; The first UPF sends a fourth data packet to the first terminal device, and the fourth data packet carries identification information of the second UPF.

4. The method according to any one of claims 1 to 3, characterized in that The first data packet and the second data packet include the same data content.

5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The first UPF receives at least one of the identification information of the first UPF, identification information of other UPFs and routing policy information from the session management function SMF, the first UPF and the other UPF serve the same PIN network, the routing policy information includes first routing policy information and / or second routing policy information, the first routing policy information is used to indicate that the first UPF carries the identification information of the first UPF in an uplink data packet, and the second routing policy information is used to indicate that the first UPF carries the identification information of the other UPF in a downlink data packet.

6. The method according to any one of claims 1 to 5, characterized in that The identification information of the first UPF is included in any of the following headers of the second data packet: Internet Protocol (IP) packet header, Virtual Extended Local Area Network (VXLAN) packet header, General Packet Radio Tunneling Protocol-User Plane (GTP-U) packet header, or IP Security (IPSec) packet header.

7. The method according to any one of claims 1 to 6, characterized in that The method further comprises: The first UPF receives a fifth data packet from the first terminal device, where the fifth data packet carries the network address of the second terminal device; The first UPF sends a sixth data packet to the destination UPF, and the sixth data packet carries the identification information of the first UPF, the network address corresponding to the destination UPF, and the network address of the second terminal device. The network address corresponding to the destination UPF is the destination address of the sixth data packet.

8. The method according to any one of claims 1 to 7, characterized in that The method further comprises: The first UPF receives a seventh data packet from the first terminal device; The first UPF determines, according to the seventh data packet, that the seventh data packet is a broadcast packet or a multicast packet; The first UPF sends an eighth data packet to the destination UPF, and the eighth data packet carries the identification information of the first UPF and the network address corresponding to the destination UPF, and the network address corresponding to the destination UPF is the destination address of the eighth data packet.

9. The method according to claim 7 or 8, characterized in that: The method further comprises: The first UPF determines the network address of the destination UPF and / or the identification information of the destination UPF based on the PIN identifier of the PIN network.

10. A data transmission method, characterized in that: include: The session management function SMF obtains identification information of the first user plane function UPF; The SMF sends at least one of the identification information of the first UPF, the identification information of other UPFs, and routing policy information to the first UPF, the first UPF and the other UPFs serving the same PIN network, the routing policy information including first routing policy information and / or second routing policy information, the first routing policy information being used to indicate that the first UPF carries a packet in an uplink data packet. With the identification information of the first UPF, the second routing policy information is used to instruct the first UPF to carry the identification information of the other UPFs in the downlink data packet.

11. The method according to claim 10, characterized in that The identification information of the first UPF is determined by one of the SMF, the NRF or the first UPF.

12. The method according to claim 10 or 11, characterized in that: The method further comprises: The SMF sends a first correspondence to the first terminal device, where the first correspondence includes a correspondence between identification information of at least one UPF and a network address of at least one terminal device served by the UPF.

13. A data transmission method, characterized in that: include: The first terminal device receives a ninth data packet, where the ninth data packet carries a network address of the second terminal device; The first terminal device sends a first data packet to the first user plane function UPF, where the first data packet carries identification information of the second UPF and the network address of the second terminal device.

14. The method according to claim 13, characterized in that Before the first terminal device sends the first data packet to the first UPF, the method further includes: The first terminal device determines the identification information of the second UPF corresponding to the destination address of the first data packet.

15. The method according to claim 14, characterized in that The first terminal device determines identification information of the second UPF corresponding to the destination address of the first data packet, including: The first terminal device determines the identification information of the second UPF based on a first corresponding relationship, wherein the first corresponding relationship includes a correspondence between the identification information of at least one UPF and the network address of at least one terminal device served by the UPF.

16. The method according to claim 15, characterized in that The method further comprises: The first terminal device receives the first corresponding relationship from the SMF.

17. The method according to claim 14, characterized in that The ninth data packet carries identification information of the second UPF.

18. The method according to any one of claims 13 to 17, characterized in that The identification information of the second UPF is included in any of the following headers of the first data packet: Ethernet header, Internet Protocol IP header, or Packet Data Convergence Protocol PDCP header.

19. A data transmission method, characterized in that: include: The session management function SMF obtains identification information of the first user plane function UPF; The SMF sends at least one of the identification information of the first UPF, the identification information of other UPFs, and the routing policy information to the first UPF, the first UPF and the other UPFs serving the same PIN network, The routing policy information includes first routing policy information and / or second routing policy information, the first routing policy information is used to indicate that the first UPF carries the identification information of the first UPF in the uplink data packet, and the second routing policy information is used to indicate that the first UPF carries the identification information of the other UPF in the downlink data packet; The first terminal device receives a ninth data packet, where the ninth data packet carries a network address of the second terminal device; The first terminal device sends a first data packet to the first UPF, where the first data packet carries identification information of the second UPF and a network address of the second terminal device; The first UPF receives the first data packet; The first UPF sends a second data packet to the second UPF based on the identification information of the second UPF, where the second UPF is the UPF serving the second terminal device, and the second data packet carries the identification information of the first UPF and the network address of the second terminal device.

20. The method according to claim 19, characterized in that The method further comprises: The second UPF receives the second data packet; The second UPF sends a tenth data packet to the second terminal device based on the network address of the second terminal device, where the tenth data packet carries identification information of the first UPF; The second terminal device receives the tenth data packet.

21. A data transmission device, characterized in that: include: A receiving module and a sending module, wherein the receiving module and the sending module are used to execute the method according to any one of claims 1 to 18.

22. A data transmission device, characterized in that: include: A processor, wherein the processor is coupled to a memory, wherein the memory is used to store a computer program, and when the processor calls the computer program, the device is caused to execute the method according to any one of claims 1 to 18.

23. A computer-readable storage medium, characterized in that: Used to store a computer program, the computer program comprising instructions for implementing the method according to any one of claims 1 to 18.

24. A computer program product, characterized in that The computer program product comprises a computer program code, and when the computer program code is executed on a computer, the computer is enabled to implement the method according to any one of claims 1 to 18.

Citation Information

Patent Citations

  • Data transmission method and device

    CN118678496A

  • Message transmission method and device

    CN111031080A

  • Business function implementation method and device and electronic equipment

    CN114745375A

  • Data forwarding method and system and nonvolatile storage medium

    CN114915649A

  • Method and apparatus for inter-device communication

    CN115734173A

Cited By

  • Communication method and communication device

    CN120152060A