Data transmission method, link quality detection method, communication device, and storage medium

The method provides reliable end-to-end QoS in 5G networks by inserting link quality information into data transmission between terminals connected to different UPFs, addressing the challenge of inconsistent QoS across multiple UPFs.

JP7534029B2Active Publication Date: 2024-08-14HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
JP2023517664
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-09-17
Filing Date
2021-09-06
Publication Date
2024-08-14
Estimated Expiration
2041-09-06

AI Technical Summary

Technical Problem

5G networks struggle to provide overall end-to-end quality of service (QoS) guarantees when two terminals are connected to different user plane functions (UPFs), limiting reliable data transmission between them.

Method used

A data transmission method that involves a first user plane function receiving data from a first terminal, transmitting it via a first QoS flow to a second user plane function corresponding to a second terminal, and inserting link quality information into the data to ensure reliable QoS across the entire transmission path.

Benefits of technology

Ensures reliable end-to-end QoS guarantees for data transmission between terminals connected to different UPFs by using link quality information to select appropriate transmission paths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007534029000005
    Figure 0007534029000005
  • Figure 0007534029000016
    Figure 0007534029000016
  • Figure 0007534029000013
    Figure 0007534029000013
Patent Text Reader

Abstract

The present application discloses a data transmission method, a link quality detection method, a communication device, and a storage medium, which relate to the field of communications. The data transmission method includes: a first user plane function receiving data from a first terminal, the data being data to be transmitted to a second terminal; and the first user plane function transmitting the data to a second user plane function via a first QoS flow, the second user plane function being a user plane function corresponding to the second terminal. In the data transmission method, data transmission is performed between the first user plane function and the second user plane function via the first QoS flow. Data transmission can also be performed between the first terminal and the first user plane function and between the second terminal and the second user plane function based on the QoS flow, thereby providing reliable QoS guarantees for data transmitted by the first terminal to the second terminal along the entire transmission path from the first terminal to the second terminal.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] This application claims priority to Chinese Patent Application No. 202010981900.4, entitled “DATA TRANSMISSION METHOD, LINK QUALITY DETECTION METHOD, COMMUNICATION APPARATUS, AND STORAGE MEDIUM”, filed with the State Intellectual Property Office of the People's Republic of China on September 17, 2020, which is incorporated herein by reference in its entirety.

[0002] [Technical field] TECHNICAL FIELD The embodiments of the present application relate to the field of communications, and in particular to a data transmission method, a link quality detection method, a communication device, and a storage medium. [Background technology]

[0003] A fifth-generation (5G) mobile communication network may provide end-to-end service data transmission between two terminals. For example, a terminal 1 may transmit service data to a terminal 2 by using a 5G network.

[0004] In one possible scenario in which end-to-end service data transmission is realized by using a 5G network, two terminals share the same user plane network element (user plane function, UPF), and service data between the two terminals is transferred by using the shared UPF. For example, when terminal 1 and terminal 2 share the same UPF, terminal 1 can first transmit service data to the UPF, and the UPF can forward the received service data to terminal 2 to realize the transmission of service data from terminal 1 to terminal 2. In another possible scenario in which end-to-end service data transmission is realized by using a 5G network, two terminals are respectively connected to different UPFs, and service data between the two terminals is transferred by using the UPFs respectively connected to the two terminals. For example, when terminal 1 is connected to UPF1 and terminal 2 is connected to UPF2, terminal 1 can first send service data to UPF1, UPF1 can forward the received service data to UPF2, and UPF2 can then forward the received service data to terminal 2, thereby realizing the transmission of service data from terminal 1 to terminal 2.

[0005] In a 5G network, data transmission is performed between a terminal and a UPF based on a quality of service (QoS) flow. Therefore, in the above scenario where two terminals share the same UPF, the 5G network can provide end-to-end QoS guarantees for service data transmission between the two terminals. However, in the above scenario where two terminals are respectively connected to different UPFs, the 5G network can only provide QoS guarantees for service data transmission between each terminal and its corresponding UPF, but cannot provide overall end-to-end QoS guarantees between the two terminals. Summary of the Invention

[0006] SUMMARY OF THE DISCLOSURE The embodiments of the present application provide a data transmission method, a link quality detection method, a communication device, and a storage medium for providing overall end-to-end QoS guarantee between two terminals.

[0007] According to a first aspect, an embodiment of the present application provides a data transmission method, the method including: a first user plane function receiving data from a first terminal, the data being data to be transmitted to a second terminal, the first user plane function transmitting the data to a second user plane function via a first quality of service flow, the second user plane function being a user plane function corresponding to the second terminal.

[0008] In the method, data is transmitted between a first user plane function and a second user plane function via a first quality of service flow, and data can also be transmitted between the first terminal and the first user plane function and between the second terminal and the second user plane function based on the quality of service flow, thus providing a reliable quality of service guarantee for data transmitted by the first terminal to the second terminal along the entire transmission path from the first terminal to the second terminal.

[0009] In one possible design, the data includes a link detection indication, and the method further includes the first user plane function inserting link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function into the data based on the link detection indication.

[0010] For example, when the first terminal directly accesses the core network, the first user plane function inserts link quality information of a transmission path from the first terminal to the first user plane function into the data. When the first terminal accesses the core network by using an access network device, the first user plane function inserts link quality information of a transmission path from the access network device of the first terminal to the first user plane function into the data.

[0011] Optionally, any device in the transmission path from the first terminal to the second terminal, for example, the access network device of the first terminal, the first user plane function, the second user plane function, and the access network device of the second terminal, may insert link quality information of the transmission path from the previous transmission device to the device into the data based on the link detection indication, for example, for the second user plane function, the previous transmission device is the first user plane function.

[0012] In this design, the first terminal may finally obtain link quality information of the entire transmission path from the first terminal to the second terminal, and then select an appropriate transmission path based on the link quality information of the entire transmission path from the first terminal to the second terminal to transmit data to the second terminal. The second terminal may finally obtain link quality information of the entire transmission path from the second terminal to the first terminal, and then select an appropriate transmission path based on the link quality information of the entire transmission path from the second terminal to the first terminal to transmit data to the first terminal.

[0013] In one possible design, the method further includes the first user plane function sending a first link detection request to the first terminal, the first user plane function receiving from the first terminal link quality information of a transmission path from the first user plane function to the first terminal.

[0014] In this design, the first user plane function may obtain link quality information of a transmission path from the first user plane function at the first terminal side to the first terminal.

[0015] Similarly, the second user plane function can also send a link detection request to the second terminal to obtain link quality information of the transmission path from the second user plane function on the second terminal side to the second terminal.

[0016] In one possible design, the method further includes the first user plane function receiving a second link detection request from a second user plane function, the first user plane function transmitting to the second user plane function link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function.

[0017] In this design, the second user plane function may obtain link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function.

[0018] Similarly, the first user plane function may alternatively send a link detection request to the second user plane function to obtain link quality information of a transmission path from the second user plane function to the second terminal and link quality information of a transmission path from the first user plane function to the second user plane function.

[0019] For example, in one possible design, the method further includes the first user plane function sending a third link detection request to the second user plane function, the first user plane function receiving from the second user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal.

[0020] The first user plane function can obtain link quality information of a transmission path from the first terminal to the first user plane function. Thus, the first user plane function can transmit to the first terminal the link quality information of the transmission path from the first terminal to the first user plane function, the link quality information of the transmission path from the first user plane function to the second user plane function, and the link quality information of the transmission path from the second user plane function to the second terminal.

[0021] In this design, the first terminal can finally obtain link quality information of the entire transmission path from the first terminal to the second terminal, and then select a suitable transmission path based on the link quality information of the entire transmission path from the first terminal to the second terminal to transmit data to the second terminal.

[0022] Similarly, the second user plane function can obtain link quality information of a transmission path from the second terminal to the second user plane function. As described above, the second terminal can also obtain link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function. Thus, the second user plane function can transmit link quality information of a transmission path from the second terminal to the second user plane function to the second terminal, link quality information of a transmission path from the second user plane function to the first user plane function, and link quality information of a transmission path from the first user plane function to the first terminal.

[0023] In this case, the second terminal can finally obtain link quality information of the entire transmission path from the second terminal to the first terminal, and then select an appropriate transmission path based on the link quality information of the entire transmission path from the second terminal to the first terminal to transmit data to the first terminal.

[0024] In one possible design, the link quality information of the transmission path from the first user plane function to the second user plane function includes a timestamp of when the second user plane function received the third link discovery request and a timestamp of when the second user plane function sent the link quality information. The method further includes the first user plane function determining a link quality of the transmission path from the first user plane function to the second user plane function based on the link quality information of the transmission path from the first user plane function to the second user plane function.

[0025] In one possible design, the first user plane function receiving data from the first terminal includes the first user plane function receiving data from the first terminal via a second quality of service flow, and the method includes the first user plane function determining a first quality of service flow corresponding to the second quality of service flow based on a correspondence between the second quality of service flow and the first quality of service flow.

[0026] The correspondence between the second quality of service flow and the first quality of service flow is determined based on the QoS requirements (also called QoS capabilities) that can be satisfied by the second quality of service flow and the QoS requirements that can be satisfied by the first quality of service flow.

[0027] In one possible design, the method further includes the first user plane function receiving first configuration information from a first session management function, the first configuration information being for indicating a correspondence between the second quality of service flow and the first quality of service flow.

[0028] In this design, the correspondence between the second quality of service flow and the first quality of service flow may be configured for the first user plane function by a session management function corresponding to the first user plane function.

[0029] In one possible design, the first configuration information includes identifier information of the second quality of service flow and identifier information of the first quality of service flow corresponding to the second quality of service flow.

[0030] For example, the identifier information of the second quality of service flow and the identifier information of the first quality of service flow corresponding to the second quality of service flow may be a QFI.

[0031] In one possible design, the first configuration information further includes identifier information of a first interface, the first interface being an interface between a first user plane function and a second user plane function, and the first configuration information is for instructing the first user plane function to transmit data to the second user plane function on the first interface via a first quality of service flow.

[0032] In one possible design, the identifier information of the second quality of service flow is the same as the identifier information of the first quality of service flow.

[0033] In one possible design, the first user plane function receiving data from the first terminal includes the first user plane function receiving data from the first terminal via a second quality of service flow, the method including the first user plane function determining, based on a correspondence between the second quality of service flow and the first interface, a first interface corresponding to the second quality of service flow and determining the first quality of service flow corresponding to the first interface, the first interface being an interface between the first user plane function and the second user plane function.

[0034] A correspondence between the second quality of service flow and the first interface is determined based on a QoS requirement that can be satisfied by the second quality of service flow and a QoS requirement that can be satisfied by the first interface.

[0035] In one possible design, the method further includes the first user plane function receiving first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the second quality of service flow and the first interface.

[0036] In this design, the correspondence between the second quality of service flow and the first quality of service flow may be further configured, for the first user plane function, by a session management function corresponding to the first user plane function.

[0037] In one possible design, the first configuration information includes identifier information of the second quality of service flow and identifier information of a first interface corresponding to the second quality of service flow.

[0038] In yet another possible design, the method further includes the first user plane function determining a first quality of service flow corresponding to the data characteristics based on a correspondence between the data characteristics of the data and the first quality of service flow.

[0039] In one possible design, the first user plane function receives first configuration information from the first session management function, the first configuration information being for indicating a correspondence between data characteristics and the first quality of service flow.

[0040] In one possible design, the first configuration information includes a data characteristic and identifier information of a first quality of service flow corresponding to the data characteristic.

[0041] In one possible design, the first configuration information further includes identifier information of a first interface, the first interface being an interface between a first user plane function and a second user plane function, and the first configuration information is for instructing the first user plane function to transmit data to the second user plane function on the first interface via a first quality of service flow.

[0042] In yet another possible design, the method further includes the first user plane function determining a first interface corresponding to a data characteristic of the data based on the correspondence between the data characteristic and the first interface, and determining a first quality of service flow corresponding to the first interface, the first interface being an interface between the first user plane function and a second user plane function.

[0043] In one possible design, the method further includes the first user plane function receiving first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the data characteristics and the first interface.

[0044] In one possible design, the first configuration information includes a data feature and identifier information of a first interface corresponding to the data feature.

[0045] In one possible design, the data includes a user tunnel identifier, the user tunnel identifier for indicating that the data is data sent by the first terminal to the second terminal.

[0046] In this design, a user tunnel identifier is added to the data sent by the first terminal to the second terminal, so that the first UPF can determine the end-to-end forwarding service based on the user tunnel identifier in the received data and distinguish the end-to-end forwarding service from the 5G LAN service. The packets of the 5G LAN service are forwarded based on the destination address in the packet. However, in the embodiment of the present application, the end-to-end service is forwarded based on the flow, and the UPF does not recognize the destination address in the packet.

[0047] According to a second aspect, an embodiment of the present application provides a communication device, the device having a function for performing the aforementioned method in the first aspect. The function may be implemented by hardware, or by executing corresponding software by the hardware. The hardware or software includes one or more units or modules corresponding to the functions of the method in the first aspect, such as a receiving unit and a transmitting unit.

[0048] The receiving unit is configured to receive data from a first terminal, the data being data to be transmitted to a second terminal, and the transmitting unit is configured to transmit the data to a second user plane function via a first quality of service flow, the second user plane function being a user plane function corresponding to the second terminal.

[0049] In one possible design, the data includes a link detection indication, and the transmitting unit is further configured to insert link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function into the data based on the link detection indication.

[0050] In one possible design, the transmitting unit is further configured to transmit a first link detection request to the first terminal, and the receiving unit is further configured to receive from the first terminal link quality information of a transmission path from the first user plane function to the first terminal.

[0051] In one possible design, the receiving unit is further configured to receive a second link detection request from the second user plane function, and the transmitting unit is further configured to transmit to the second user plane function link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function.

[0052] In one possible design, the transmitting unit is further configured to transmit a third link detection request to the second user plane function, the receiving unit is further configured to receive from the second user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal, and the transmitting unit is further configured to transmit to the first terminal link quality information of the transmission path from the first terminal to the first user plane function, link quality information of the transmission path from the first user plane function to the second user plane function, and link quality information of the transmission path from the second user plane function to the second terminal.

[0053] In one possible design, the link quality information of the transmission path from the first user plane function to the second user plane function includes a timestamp of when the second user plane function received the third link detection request and a timestamp of when the second user plane function sent the link quality information. The apparatus further includes a processing unit configured to determine a link quality of the transmission path from the first user plane function to the second user plane function based on the link quality information of the transmission path from the first user plane function to the second user plane function.

[0054] In one possible design, the receiving unit is specifically configured to receive data from the first terminal via a second quality of service flow, and the apparatus further includes a processing unit configured to determine a first quality of service flow corresponding to the second quality of service flow based on a correspondence between the second quality of service flow and the first quality of service flow.

[0055] In one possible design, the receiving unit is further configured to receive first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the second quality of service flow and the first quality of service flow.

[0056] In one possible design, the first configuration information includes identifier information of the second quality of service flow and identifier information of the first quality of service flow corresponding to the second quality of service flow.

[0057] In one possible design, the first configuration information further includes identifier information of the first interface, and the first configuration information is for instructing the transmitting unit to transmit data to a second user plane function on the first interface via the first quality of service flow.

[0058] In one possible design, the identifier information of the second quality of service flow is the same as the identifier information of the first quality of service flow.

[0059] In another possible design, the receiving unit is specifically configured to receive data from the first terminal via a second quality of service flow, and the apparatus further includes a processing unit configured to determine a first interface corresponding to the second quality of service flow and to determine a first quality of service flow corresponding to the first interface based on a correspondence between the second quality of service flow and the first interface.

[0060] In one possible design, the receiving unit is further configured to receive first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the second quality of service flow and the first interface.

[0061] In one possible design, the first configuration information includes identifier information of the second quality of service flow and identifier information of a first interface corresponding to the second quality of service flow.

[0062] In yet another possible design, the apparatus further includes a processing unit configured to determine a first quality of service flow corresponding to the data feature based on a correspondence between the data feature and the first quality of service flow.

[0063] In one possible design, the receiving unit is further configured to receive first configuration information from the first session management function, the first configuration information for indicating a correspondence between the data characteristics and the first quality of service flow.

[0064] In one possible design, the first configuration information includes a data characteristic and identifier information of a first quality of service flow corresponding to the data characteristic.

[0065] In one possible design, the first configuration information further includes identifier information of the first interface, and the first configuration information is for instructing the transmitting unit to transmit data to a second user plane function on the first interface via the first quality of service flow.

[0066] In yet another possible design, the apparatus further includes a processing unit configured to determine a first interface corresponding to a data characteristic of the data based on the correspondence between the data characteristic and the first interface, and to determine a first quality of service flow corresponding to the first interface.

[0067] In one possible design, the receiving unit is further configured to receive first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the data characteristics and the first interface.

[0068] In one possible design, the first configuration information includes a data feature and identifier information of a first interface corresponding to the data feature.

[0069] In one possible design, the data includes a user tunnel identifier, where the user tunnel identifier is for indicating that the data is data sent by the first terminal to the second terminal.

[0070] According to a third aspect, an embodiment of the present application further provides a communication device, the communication device including a processor configured to execute computer instructions stored in a memory, the computer instructions, when executed, enabling the device to perform a method according to the first aspect or any one of possible designs of the first aspect.

[0071] According to a fourth aspect, an embodiment of the present application further provides a communication device including a processor and an interface circuit, the processor configured to communicate with another device by using the interface circuit and to perform the method according to the first aspect or any one of the possible designs of the first aspect.

[0072] The communication device according to the second to fourth aspects can be applied to a first user plane function.

[0073] According to a fifth aspect, an embodiment of the present application further provides a computer readable storage medium comprising computer software instructions, which when executed on an electronic device, such as a core network device or a chip integrated in the core network device, enables the core network device to execute a method according to the first aspect or any one of the possible designs of the first aspect.

[0074] The beneficial effects that can be achieved in the second to tenth aspects can be understood to refer to the beneficial effects in the first aspect and any one of the possible designs of the first aspect, and the details will not be described again here.

[0075] According to a sixth aspect, an embodiment of the present application provides a data transmission method, the method including: a second user plane function receiving data from a first user plane function via a first quality of service flow, the first user plane function being a user plane function corresponding to a first terminal, the data being data to be transmitted to a second terminal; and the second user plane function transmitting the data to the second terminal.

[0076] In the method, data is transmitted between a first user plane function and a second user plane function via a first quality of service flow, and data can also be transmitted between the first terminal and the first user plane function and between the second terminal and the second user plane function based on the quality of service flow, thus providing a reliable quality of service guarantee for data transmitted by the first terminal to the second terminal along the entire transmission path from the first terminal to the second terminal.

[0077] In one possible design, the data includes a link detection indication, and the method further includes the second user plane function inserting link quality information of a transmission path from the first user plane function to the second user plane function into the data based on the link detection indication.

[0078] In one possible design, the method further includes the second user plane function sending a second link discovery request to the first user plane function. The second user plane function receives from the first user plane function link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function. The second user plane function sends to the second terminal the link quality information of the transmission path from the first user plane function to the first terminal, the link quality information of the transmission path from the second user plane function to the first user plane function, and the link quality information of the transmission path from the second terminal to the second user plane function.

[0079] In one possible design, the method further includes the second user plane function receiving a third link detection request from the first user plane function, the second user plane function sending to the first user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal.

[0080] In one possible design, the method further includes the second user plane function sending a fourth link detection request to the second terminal, the second user plane function receiving from the second terminal link quality information of a transmission path from the second user plane function to the second terminal.

[0081] In one possible design, the method further includes the second user plane function sending a link detection request to the first user plane function. The second user plane function receives link quality information from the first user plane function, the link quality information including a timestamp of when the first user plane function received the link detection request and a timestamp of when the first user plane function sent the link quality information. The second user plane function determines a link quality of a transmission path from the second user plane function to the first user plane function based on the link quality information.

[0082] In one possible design, the second user plane function transmitting data to the second terminal includes the second user plane function transmitting data to the second terminal via a third quality of service flow, the method further including the second user plane function determining a third quality of service flow corresponding to the first quality of service flow based on the correspondence between the first quality of service flow and the third quality of service flow.

[0083] A correspondence between the first quality of service flow and the third quality of service flow is determined based on a QoS requirement that can be satisfied by the first quality of service flow and a QoS requirement that can be satisfied by the third quality of service flow.

[0084] In one possible design, the method further includes the second user plane function receiving second configuration information from the second session management function, the second configuration information being for indicating a correspondence between the first quality of service flow and the third quality of service flow.

[0085] In this design, the correspondence between the first quality of service flow and the third quality of service flow may be configured for the second user plane function by a session management function corresponding to the second user plane function.

[0086] In one possible design, the second configuration information includes identifier information of the first quality of service flow and identifier information of a third quality of service flow corresponding to the first quality of service flow.

[0087] In one possible design, the identifier information of the first quality of service flow is the same as the identifier information of the third quality of service flow.

[0088] In another possible design, the second user plane function receiving data from the first user plane function via the first quality of service flow includes the second user plane function receiving data from the first user plane function via the first quality of service flow on the first interface. The second user plane function transmitting data to the second terminal includes the second user plane function transmitting data to the second terminal via a third quality of service flow. The method further includes the second user plane function determining a third quality of service flow corresponding to the first interface based on the correspondence between the first interface and the third quality of service flow.

[0089] A correspondence between the first interface and the third quality of service flow is determined based on a QoS requirement that can be satisfied by the first interface and a QoS requirement that can be satisfied by the third quality of service flow.

[0090] In one possible design, the method further includes the second user plane function receiving second configuration information from the second session management function, the second configuration information being for indicating a correspondence between the first interface and a third quality of service flow.

[0091] In one possible design, the second configuration information includes identifier information of the first interface and identifier information of a third quality of service flow corresponding to the first interface.

[0092] In one possible design, the data includes a user tunnel identifier, where the user tunnel identifier is for indicating that the data is data sent by the first terminal to the second terminal.

[0093] In the sixth aspect, the beneficial effects of some design matters are the same or similar to those in the first aspect, and the details will not be described again.

[0094] According to a seventh aspect, an embodiment of the present application provides a communication device, the device having a function of performing the aforementioned method in the sixth aspect. The function may be implemented by hardware, or by executing corresponding software by the hardware. The hardware or software includes one or more units or modules corresponding to the functions of the method in the sixth aspect, such as a receiving unit and a transmitting unit.

[0095] The receiving unit is configured to receive data from a first user plane function via a first quality of service flow, the first user plane function being a user plane function corresponding to the first terminal, and the data being data to be transmitted to the second terminal. The transmitting unit is configured to transmit the data to the second terminal.

[0096] In one possible design, the data includes a link detection indication, and the transmitting unit is further configured to insert link quality information of a transmission path from the first user plane function to the second user plane function into the data based on the link detection indication.

[0097] In one possible design, the transmitting unit is further configured to transmit a second link detection request to the first user plane function, the receiving unit is further configured to receive from the first user plane function link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function, and the transmitting unit is further configured to transmit to the second terminal link quality information of the transmission path from the first user plane function to the first terminal, link quality information of the transmission path from the second user plane function to the first user plane function, and link quality information of the transmission path from the second terminal to the second user plane function.

[0098] In one possible design, the receiving unit is further configured to receive a third link detection request from the first user plane function, and the transmitting unit is further configured to transmit to the first user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal.

[0099] In one possible design, the transmitting unit is further configured to transmit a fourth link detection request to the second terminal, and the receiving unit is further configured to receive from the second terminal link quality information of a transmission path from the second user plane function to the second terminal.

[0100] In one possible design, the transmitting unit is further configured to send a link detection request to the first user plane function, the receiving unit is further configured to receive link quality information from the first user plane function, the link quality information including a timestamp at which the first user plane function received the link detection request and a timestamp at which the first user plane function sent the link quality information, and the apparatus further includes a processing unit configured to determine a link quality of a transmission path from the second user plane function to the first user plane function based on the link quality information.

[0101] In one possible design, the transmitting unit is specifically configured to transmit data to the second terminal via a third quality of service flow, and the apparatus further includes a processing unit configured to determine a third quality of service flow corresponding to the first quality of service flow based on a correspondence between the first quality of service flow and the third quality of service flow.

[0102] In one possible design, the receiving unit is further configured to receive second configuration information from a second session management function, the second configuration information for indicating a correspondence between the first quality of service flow and a third quality of service flow.

[0103] In one possible design, the second configuration information includes identifier information of the first quality of service flow and identifier information of a third quality of service flow corresponding to the first quality of service flow.

[0104] In one possible design, the identifier information of the first quality of service flow is the same as the identifier information of the third quality of service flow.

[0105] In another possible design, the receiving unit is specifically configured to receive data from a first user plane function on the first interface via a first quality of service flow, and the transmitting unit is specifically configured to transmit data to a second terminal via a third quality of service flow, and the apparatus further includes a processing unit configured to determine a third quality of service flow corresponding to the first interface based on a correspondence between the first interface and the third quality of service flow.

[0106] In one possible design, the receiving unit is further configured to receive second configuration information from a second session management function, the second configuration information for indicating a correspondence between the first interface and a third quality of service flow.

[0107] In one possible design, the second configuration information includes identifier information of the first interface and identifier information of a third quality of service flow corresponding to the first interface.

[0108] In one possible design, the data includes a user tunnel identifier, where the user tunnel identifier is for indicating that the data is data sent by the first terminal to the second terminal.

[0109] According to an eighth aspect, an embodiment of the present application further provides a communication device, the communication device including a processor configured to execute computer instructions stored in a memory, the computer instructions, when executed, enabling the device to execute a method according to the sixth aspect or any one of possible designs of the sixth aspect.

[0110] According to a ninth aspect, an embodiment of the present application further provides a communication device including a processor and an interface circuit, the processor configured to communicate with another device via the interface circuit and to perform a method according to the sixth aspect or any one of the possible designs of the sixth aspect.

[0111] The communication device according to the seventh to ninth aspects can be applied to a second user plane function.

[0112] According to a tenth aspect, an embodiment of the present application further provides a computer readable storage medium comprising computer software instructions, which when executed on an electronic device, such as a core network device or a chip integrated in the core network device, enables the core network device to execute a method according to the sixth aspect or any one of the possible designs of the sixth aspect.

[0113] The beneficial effects that can be achieved in the seventh to tenth aspects can be understood to refer to the beneficial effects in the sixth aspect and any one of the possible designs of the sixth aspect, and the details will not be described again here.

[0114] According to an eleventh aspect, an embodiment of the present application provides a link quality detection method, the method including: a first terminal transmitting, to a second terminal, a link detection indication and link quality information of a transmission path from the second terminal to the first terminal; and the first terminal receiving, from the second terminal, the link quality information of the transmission path from the first terminal to the second terminal.

[0115] In this method, the first terminal can send a link detection indication to the second terminal to instruct the second terminal to return link quality information of the transmission path from the first terminal to the second terminal to the first terminal.

[0116] For example, the first terminal may separately transmit the link detection indication to the second terminal by using a detection packet, eg, the link detection indication may be carried within the detection packet.

[0117] In addition, the first terminal may also transmit link quality information of the transmission path from the second terminal to the first terminal to the second terminal. For example, the second terminal may transmit a link detection indication to the first terminal. After receiving the link detection indication, the first terminal may transmit link quality information of the transmission path from the second terminal to the first terminal to the second terminal.

[0118] In one possible design, the link quality information of the transmission path from the first terminal to the second terminal includes link quality information of the transmission path from the first terminal to the first user plane function, link quality information of the transmission path from the first user plane function to the second user plane function, and link quality information of the transmission path from the second user plane function to the second terminal.

[0119] In one possible design, the link quality information of the transmission path from the first terminal to the first user plane function includes link quality information of the transmission path from the first terminal to an access network device of the first terminal and link quality information of the transmission path from the access network device of the first terminal to the first user plane function.

[0120] In this design, the first terminal accesses the core network by using an access network device of the first terminal.

[0121] In one possible design, the link quality information of the transmission path from the second user plane function to the second terminal includes link quality information of the transmission path from the second user plane function to an access network device of the second terminal and link quality information of the transmission path from the access network device of the second terminal to the second terminal.

[0122] In this design, the second terminal accesses the core network by using an access network device of the second terminal.

[0123] In one possible design, the link detection indication is specifically for conveying the link detection indication and for instructing to detect link quality information of a quality of service flow in a transmission path from the first terminal to the second terminal.

[0124] In another possible design, the link detection indication includes identifier information of the one or more quality of service flows.

[0125] The one or more quality of service flow identifier information includes quality of service flow identifier information between a first terminal and a first user plane function, quality of service flow identifier information between the first user plane function and a second user plane function, and quality of service flow identifier information between the second user plane function and a second terminal.

[0126] In one possible design, the method further includes the first terminal determining a quality of service flow carrying the data based on link quality information of a transmission path from the first terminal to the second terminal and a quality of service requirement of the data that needs to be transmitted to the second terminal.

[0127] According to a twelfth aspect, an embodiment of the present application provides a communication device, the device having a function for performing the aforementioned method in the eleventh aspect. The function may be implemented by hardware, or by executing corresponding software by the hardware. The hardware or software includes one or more units or modules corresponding to the functions of the method in the eleventh aspect, such as a receiving unit and a transmitting unit.

[0128] The transmitting unit is configured to transmit to the second terminal the link detection indication and link quality information of the transmission path from the second terminal to the first terminal, and the receiving unit is configured to receive from the second terminal the link quality information of the transmission path from the first terminal to the second terminal.

[0129] In one possible design, the link quality information of the transmission path from the first terminal to the second terminal includes link quality information of the transmission path from the first terminal to the first user plane function, link quality information of the transmission path from the first user plane function to the second user plane function, and link quality information of the transmission path from the second user plane function to the second terminal.

[0130] In one possible design, the link quality information of the transmission path from the first terminal to the first user plane function includes link quality information of the transmission path from the first terminal to an access network device of the first terminal and link quality information of the transmission path from the access network device of the first terminal to the first user plane function.

[0131] In one possible design, the link quality information of the transmission path from the second user plane function to the second terminal includes link quality information of the transmission path from the second user plane function to an access network device of the second terminal and link quality information of the transmission path from the access network device of the second terminal to the second terminal.

[0132] In one possible design, the link detection indication is specifically for conveying the link detection indication and for instructing to detect link quality information of a quality of service flow in a transmission path from the first terminal to the second terminal.

[0133] In another possible design, the link detection indication includes identifier information of the one or more quality of service flows.

[0134] The one or more quality of service flow identifier information includes quality of service flow identifier information between a first terminal and a first user plane function, quality of service flow identifier information between the first user plane function and a second user plane function, and quality of service flow identifier information between the second user plane function and a second terminal.

[0135] In one possible design, the apparatus further includes a processing unit configured to determine a quality of service flow carrying the data based on link quality information of a transmission path from the first terminal to the second terminal and a quality of service requirement of the data that needs to be transmitted to the second terminal.

[0136] According to a thirteenth aspect, an embodiment of the present application further provides a communication device, the communication device including a processor configured to execute computer instructions stored in a memory, the computer instructions, when executed, enabling the device to execute a method according to the eleventh aspect or any one of possible designs of the eleventh aspect.

[0137] According to a fourteenth aspect, an embodiment of the present application further provides a communication device including a processor and an interface circuit, the processor configured to communicate with another device by using the interface circuit and to perform a method according to the eleventh aspect or any one of the possible designs of the eleventh aspect.

[0138] The communication device according to the twelfth to fourteenth aspects can be applied to a first terminal.

[0139] According to a fifteenth aspect, an embodiment of the present application further provides a computer readable storage medium comprising computer software instructions, which when executed on an electronic device such as a first terminal or is a chip integrated in the first terminal, enables the first terminal to execute a method according to the eleventh aspect or any one of the possible designs of the eleventh aspect.

[0140] The beneficial effects that can be achieved in the twelfth to fifteenth aspects can be understood to refer to the beneficial effects in the eleventh aspect and any one of the possible designs of the eleventh aspect, and the details will not be described again here.

[0141] According to a sixteenth aspect, an embodiment of the present application provides a link quality detection method, the method including: a first user plane function sending a first link detection request to a first terminal, the first user plane function receiving from the first terminal link quality information of a transmission path from the first user plane function to the first terminal.

[0142] In one possible design, the method further includes the first user plane function receiving a second link detection request from a second user plane function, the first user plane function transmitting link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function to the second user plane function.

[0143] In this design, the second user plane function may obtain link quality information of a transmission path from the second user plane function to the first terminal. The second user plane function may further obtain link quality information of a transmission path from the second terminal to the second user plane function. Thus, the second user plane function may obtain link quality information of the entire transmission path from the second terminal to the first terminal. The second user plane function may then transmit the link quality information of the entire transmission path from the second terminal to the first terminal to the second terminal.

[0144] In one possible design, the method further includes the first user plane function sending a third link discovery request to the second user plane function. The first user plane function receives from the second user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal. The first user plane function sends to the first terminal the link quality information of the transmission path from the first terminal to the first user plane function, the link quality information of the transmission path from the first user plane function to the second user plane function, and the link quality information of the transmission path from the second user plane function to the second terminal.

[0145] In this design, the first terminal may obtain link quality information for the entire transmission path from the first terminal to the second terminal.

[0146] In the sixteenth aspect, the link quality detection process may be initiated by a user plane function corresponding to each of the first terminal and / or the second terminal. The effect of the link quality detection process is similar to that in the eleventh aspect. The details are not described again.

[0147] According to a seventeenth aspect, an embodiment of the present application provides a communication device, the device having a function for performing the aforementioned method in the sixteenth aspect. The function may be implemented by hardware, or by executing corresponding software by the hardware. The hardware or software includes one or more units or modules corresponding to the functions of the method in the sixteenth aspect, such as a receiving unit and a transmitting unit.

[0148] The transmitting unit is configured to transmit a first link detection request to the first terminal, and the receiving unit is configured to receive from the first terminal link quality information of a transmission path from the first user plane function to the first terminal.

[0149] In one possible design, the receiving unit is further configured to receive a second link detection request from the second user plane function, and the transmitting unit is further configured to transmit to the second user plane function link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function.

[0150] In one possible design, the transmitting unit is further configured to transmit a third link detection request to the second user plane function, the receiving unit is further configured to receive from the second user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal, and the transmitting unit is further configured to transmit to the first terminal the link quality information of the transmission path from the first terminal to the first user plane function, the link quality information of the transmission path from the first user plane function to the second user plane function, and the link quality information of the transmission path from the second user plane function to the second terminal.

[0151] According to an eighteenth aspect, an embodiment of the present application further provides a communication device, the communication device including a processor configured to execute computer instructions stored in a memory, the computer instructions, when executed, enabling the device to execute a method according to the sixteenth aspect or any one of possible designs of the sixteenth aspect.

[0152] According to a nineteenth aspect, an embodiment of the present application further provides a communication device including a processor and an interface circuit, the processor configured to communicate with another device via the interface circuit and to perform a method according to the sixteenth aspect or any one of the possible designs of the sixteenth aspect.

[0153] The communication device according to the seventeenth to nineteenth aspects can be applied to a first user plane function.

[0154] According to a twentieth aspect, an embodiment of the present application further provides a computer readable storage medium comprising computer software instructions, which when executed on an electronic device, such as a core network device or a chip integrated in the core network device, enables the core network device to execute a method according to the sixteenth aspect or any one of possible designs of the sixteenth aspect.

[0155] The beneficial effects achievable in the seventeenth to twentieth aspects may be understood to refer to the beneficial effects in the sixteenth aspect and any one of the possible designs of the sixteenth aspect, and the details will not be described again here.

[0156] According to a twenty-first aspect, an embodiment of the present application further provides a communication device. The communication device includes a transceiver unit and a processing unit. The transceiver unit may be configured to transmit and receive information or to communicate with another network element. The processing unit may be configured to process data. For example, the device may implement the method according to any one of the first, sixth, eleventh, and sixteenth aspects by using the transceiver unit and the processing unit.

[0157] According to a twenty-second aspect, an embodiment of the present application further provides a computer program product, which, when executed, may perform a method according to any one of the first, sixth, eleventh and sixteenth aspects.

[0158] According to a twenty-third aspect, an embodiment of the present application further provides a chip system, the chip system being applied to a core network device. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected by lines. The processor receives and executes computer instructions from a memory of the electronic device by using the interface circuits to implement the method according to any one of the first aspect, the sixth aspect, and the sixteenth aspect.

[0159] According to a twenty-fourth aspect, an embodiment of the present application further provides a chip system. The chip system is applied to a terminal. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected by lines. The processor receives and executes computer instructions from a memory of an electronic device by using the interface circuits to implement the method according to the eleventh aspect.

[0160] According to a twenty-fifth aspect, an embodiment of the present application further provides a communication system, the communication system including at least a first user plane function and a second user plane function, the first user plane function configured to perform the method according to the first aspect, and the second user plane function configured to perform the method according to the sixth aspect.

[0161] It can be understood that the beneficial effects achievable in the 21st to 25th aspects provided above refer to the beneficial effects in the 1st, 6th, 11th, 16th aspects, etc. Details will not be described again here. [Brief description of the drawings]

[0162] [Figure 1] 1 is a schematic diagram of a 5G network architecture. [Diagram 2] FIG. 2 is a schematic diagram of the transmission of service data between two terminals; [Diagram 3] FIG. 2 is another schematic diagram of the transmission of service data between two terminals; [Figure 4] FIG. 1 is a schematic diagram of an application scenario according to an embodiment of the present application. [Diagram 5] FIG. 2 is a schematic configuration diagram of a terminal according to an embodiment of the present application. [Figure 6A] 1 is a schematic flowchart of a data transmission method according to an embodiment of the present application; [Figure 6B] 4 is a schematic flowchart of establishing QoS flow correspondence according to an embodiment of the present application; [Figure 7] 4 is another schematic flowchart of a data transmission method according to an embodiment of the present application. [Figure 8] 4 is yet another schematic flowchart of a data transmission method according to an embodiment of the present application. [Figure 9] 4 is yet another schematic flowchart of a data transmission method according to an embodiment of the present application. [Figure 10]FIG. 1 is a schematic diagram of a system for end-to-end transmission in a wide area network scenario. [Figure 11] 1 is a schematic flowchart of a link quality detection method according to an embodiment of the present application; [Figure 12] 4 is another schematic flowchart of a link quality detection method according to an embodiment of the present application; [Figure 13] 1 is a schematic diagram of the structure of a communication device according to an embodiment of the present application; [Figure 14] FIG. 2 is another schematic diagram of the structure of a communication device according to an embodiment of the present application; [Figure 15] FIG. 2 is yet another schematic diagram of the structure of a communication device according to an embodiment of the present application; [Figure 16] FIG. 2 is yet another schematic diagram of the structure of a communication device according to an embodiment of the present application; [Figure 17] FIG. 2 is yet another schematic diagram of the structure of a communication device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0163] To address the challenges of wireless broadband technology and maintain the key advantages of the 3rd generation partnership project (3GPP) network, the 3GPP standards group is formulating a next-generation mobile communications network architecture (next generation system), also known as the 5th-generation (5G) mobile communications network architecture. Figure 1 is a schematic diagram of the 5G network architecture.

[0164] As shown in Figure 1, the 5G network architecture may include a terminal, an access network (AN), a core network, and a data network (DN). In one implementation, the terminal can access the core network by using an access network device, and then access the DN by using the core network. In another implementation, the terminal can access the core network in a fixed access manner to access the DN.

[0165] The terminal may also be called user equipment (UE), mobile station (MS), or mobile terminal (MT). In some embodiments, a terminal may be a device that provides voice and / or data connectivity to a user, such as a mobile telephone ("cellular" telephone), a mobile phone, a computer, a cordless phone, a session initiation protocol (SIP) phone, a wireless local loop (WLL) station, a personal digital assistant (PDA), a laptop computer, a handheld communications device, a handheld computing device, a satellite radio device, a wireless modem card, a television set-top box (STB), a customer premise equipment (CPE), a wearable device (such as a smart watch, a smart band, or a pedometer), an in-vehicle device (such as a car, a bicycle, an electric vehicle, an airplane, a ship, a train, a high-speed train, etc.), a virtual reality (VR) device, an augmented reality (AR) device, a wireless terminal in industrial control, a smart home device (such as a refrigerator, a television, an air conditioner, an electricity meter), a smart robot, a workshop device, a self-driving car (self-driving car), a smart home device (such as a refrigerator, a television, an air conditioner, an electricity meter, etc.), a smart robot, a workshop device, a self-driving car (self-driving car), a smart home device (such as a smart home device ... The terminal may be a wireless terminal in a smart driving system, or a wireless terminal in a remote medical surgery system, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, an aerial device (e.g., a smart robot, a hot air balloon, an unmanned aerial vehicle, or an airplane), or another device used for communication in a wireless system. The present application is not limited to a particular representation of the terminal.

[0166] The AN mainly includes an AN device. The AN device may also be called a radio access network (RAN) device or a next-generation radio access network device. A terminal may communicate with the AN device. The AN device may provide functional services such as radio resource management, quality of service management, data encryption and compression, etc. to the terminal. Different AN devices may communicate with each other via an Xn interface.

[0167] In some embodiments, the AN device may be a next generation node B (gNB), evolved Node B (eNB), next generation evolved node B (ng-eNB), a transmission and reception point (transmission reception point, TRP), a radio network controller (RNC), a base station controller (BSC), a base transceiver station (BTS), a home base station (e.g., a home evolved Node B, or home Node B, HNB), a base band unit (BBU), or a wireless fidelity (Wi-Fi) access point (AP), or a central unit (CU), a distributed unit (DU), a central unit-control plane (CU-CP), a central unit-user plane (CU-UP), or the like.

[0168] The gNB provides new radio (NR) control plane and / or user plane protocols and functions to the terminal 310 and can access a 5G core network (5th generation core, 5GC). The ng-eNB provides evolved universal terrestrial radio access (E-UTRA) control plane and / or user plane protocols and functions to the terminal 310 and can access the 5GC. The CU mainly includes the RRC layer, service data adaptation protocol (SDAP) layer, and packet data convergence protocol (PDCP) layer of the gNB, or the RRC layer and PDCP layer of the ng-eNB. The DU mainly includes the radio link control (RLC) layer, medium access control (MAC) layer, and physical layer of the gNB or ng-eNB. The CU-CP mainly includes the control plane of the RRC layer and the PDCP layer in the gNB-CU or ng-eNB-CU, and the CU-UP mainly includes the user plane of the SDAP layer and the PDCP layer in the gNB-CU or ng-eNB-CU.

[0169] Network elements in the core network mainly include user plane network elements and control plane network elements, and devices configured to support the user plane network elements and the control plane network elements are called core network devices.

[0170] The user plane network element may be a user plane function (UPF), which is mainly responsible for externally connecting to the DN, routing and forwarding user plane data packets, filtering packets, performing quality of service (QoS) control related functions, collecting billing information statistics, etc.

[0171] The control plane network element is mainly responsible for service procedure interaction, data packet forwarding policy, and QoS control policy delivery to the UPF, etc. For example, the control plane network element may include multiple functional units such as an access and mobility management function (AMF), a session management function (SMF), an authentication server function (AUSF), a policy control function (PCF), an application function (AF), a unified data management function (UDM), and a network slice selection function (NSSF).

[0172] The AMF is mainly responsible for services such as mobility management and access management. The SMF is mainly responsible for session management, UE address management and allocation, dynamic host configuration protocol function, user plane function selection and control, etc. The AUSF is mainly responsible for the function of authenticating terminal devices. The PCF is mainly responsible for providing a unified policy framework for network behavior management, providing policy rules for control plane functions, obtaining registration information related to policy decisions, etc. The AF is configured to provide service requirements such as routing rules and processing policies to the 3GPP core network.

[0173] It should be noted that the network elements of the core network may operate independently or may be combined to implement several control functions, such as access control and mobility management functions such as terminal access authentication, security encryption, and location registration, as well as session management functions such as establishment, release, and modification of user plane transmission paths.

[0174] The DN is mainly configured to provide multiple data services to a terminal device.

[0175] The network elements in the 5G network architecture shown in FIG. 1 can communicate with each other by using next generation network (NG) interfaces. For example, with continued reference to FIG. 1, the communication interface between the terminal and the control plane of the core network may be an NG interface 1, or N1 interface for short, configured to carry network attached storage (NAS) signaling. The communication interface between the AN and the control plane of the core network (e.g., AMF) may be an N2 interface. The communication interface between the AN and the UPF may be an N3 interface, configured to carry user data. The communication interface between the SMF and the UPF may be an N4 interface, used by the SMF to perform policy configuration on the UPF. The UPF can exchange user plane data with the DN via the N6 interface.

[0176] It should be noted that the above is merely an example for describing the 5G network architecture, and is not intended to limit the 5G network architecture. For example, the 5G network architecture shown in Figure 1 further includes a network repository function (NRF), a network exposure function (NEF), etc. This is not limited in this specification.

[0177] Furthermore, it can be understood that the 5G network architecture shown in Figure 1 is a 5G network architecture based on a service-based interface scenario. Specifically, the service-based interface is used when several core network control plane network elements are interconnected by a bus. For example, the AUSF is connected to the bus via a Nausf interface, the AMF is connected to the bus via a Namf interface, the SMF is connected to the bus via a Nsmf interface, the AF is connected to the bus via a Naf interface, the UDM is connected to the bus via a Nudm interface, the PCF network element is connected to the bus via a Npcf interface, the NRF is connected to the bus via a Nnrf interface, the NEF is connected to the bus via a Nnef interface, and the NSSF is connected to the bus via a Nnssf interface.

[0178] However, it should be further noted that in another embodiment, the 5G network architecture may be a reference point-based network architecture, which is also not limited herein.

[0179] For any two terminals that access the 5G network by using the above-mentioned 5G network architecture, the 5G network can provide end-to-end transmission of service data between the two terminals. For example, terminal 1 can send service data to terminal 2 by using the 5G network.

[0180] In one possible scenario in which end-to-end service data transmission is realized by using a 5G network, two terminals share the same UPF, and the service data between the two terminals is transferred by using the shared UPF. For example, Figure 2 is a schematic diagram of service data transmission between two terminals.

[0181] Take an example in which terminal 1 sends service data to terminal 2, as shown in Figure 2. When terminal 1 and terminal 2 share the same UPF, terminal 1 can first send service data to the UPF, and the UPF can forward the received service data to terminal 2 to realize the transmission of service data from terminal 1 to terminal 2.

[0182] In another possible scenario in which end-to-end service data transmission is realized by using a 5G network, two terminals are respectively connected to different UPFs, and the service data between the two terminals is transferred by using the UPFs respectively connected to the two terminals. For example, Figure 3 is another schematic diagram of the transmission of service data between two terminals.

[0183] 3, terminal 1 sending service data to terminal 2 is further taken as an example. When terminal 1 is connected to UPF1 and terminal 2 is connected to UPF2, terminal 1 can first send service data to UPF1, UPF1 can forward the received service data to UPF2, and UPF2 can then forward the received service data to terminal 2 to realize the transmission of service data from terminal 1 to terminal 2.

[0184] The communication interface between different UPFs (eg, the communication interface between UPF1 and UPF2) may be an N9 interface and is configured to transmit user data.

[0185] In addition, in the above two scenarios in which end-to-end service data transmission is realized by using a 5G network, it can be understood that when the terminal accesses the core network in a fixed access manner, the service data may be directly transmitted between the terminal and the UPF. When the terminal accesses the core network by using an access network device (e.g., a base station), the transmission of service data between the terminal and the UPF may be realized through forwarding by the access network device.

[0186] Currently, in the aforementioned scenario where end-to-end service data transmission is realized by using 5G network, a 5G QoS model based on QoS flow is proposed to ensure the end-to-end service quality of the service. The 5G QoS model includes guaranteed bit rate QoS flow (GBR QoS flow) and non-guaranteed bit rate QoS flow (Non-GBR QoS flow). The same transmission process (such as scheduling and admission threshold) is performed for data packets included in the same QoS flow. A terminal can establish one or more packet data unit (PDU) sessions with a 5G system, and one or more QoS flows can be established in each PDU session. Each QoS flow has one QoS flow identifier (QFI), and the QFI can uniquely identify one QoS flow in a PDU session.

[0187] It can be learned that in a scenario where two terminals share the same UPF, data transmission is performed between the terminal and the UPF based on the QoS flow in the 5G network, thereby providing end-to-end QoS guarantees for the transmission of service data between the two terminals. However, in the aforementioned scenario where two terminals are respectively connected to different UPFs, the 5G network can only provide QoS guarantees for the transmission of service data between each terminal and its corresponding UPF, but cannot provide overall end-to-end QoS guarantees between the two terminals.

[0188] Based on this, an embodiment of the present application provides a data transmission method that can be applied to a scenario in which end-to-end transmission of service data between two terminals is realized by using a 5G network when the two terminals are respectively connected to different UPFs. The method includes the steps of receiving data from a first terminal by a first UPF, where the data is data to be transmitted by the first terminal to a second terminal, and transmitting the data by the first UPF to a second UPF via a first QoS flow, where the second UPF is a UPF corresponding to the second terminal. The second UPF transmits the data to the second terminal.

[0189] In the method, data transmission is performed between the first UPF and the second UPF via a first QoS flow, and data transmission can also be performed between the first terminal and the first UPF and between the second terminal and the second UPF based on the QoS flow. Thus, reliable QoS guarantees can be provided for data transmitted by the first terminal to the second terminal in the entire transmission path from the first terminal to the second terminal. Similarly, the method can provide reliable QoS guarantees for data transmitted by the second terminal to the first terminal. Thus, the method can provide an overall end-to-end QoS guarantee between the first terminal and the second terminal.

[0190] DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS The following describes a data transmission method provided in an embodiment of the present application by using examples with reference to the accompanying drawings.

[0191] It should be noted that in the description of the present application, words such as "first" and "second" are used merely for distinction and explanation, and are not used to specifically limit features. In the description of the embodiments of the present application, the term "and / or" represents an association relationship between associated objects, and indicates that three relationships may exist. For example, A and / or B may indicate three cases: only A exists, both A and B exist, and only B exists. The character " / " generally indicates an "or" relationship between associated objects. In the present application, "at least one" means one or more, and "multiple" means two or more.

[0192] 4 is a schematic diagram of an application scenario according to an embodiment of the present application. As shown in FIG. 4, the application scenario in an embodiment of the present application includes at least a first terminal, a first UPF, a second terminal, and a second UPF.

[0193] The first UPF is a user plane network element serving the first terminal, and the second UPF is a user plane network element serving the second terminal, for example, the first UPF may be an anchor UPF, an intermediate UPF, an offloading node, etc. of the first terminal.

[0194] Optionally, the first UPF and the second UPF may have respective corresponding control plane network elements (SMFs), for example, the control plane network element corresponding to the first UPF is a first SMF (not shown), the control plane network element corresponding to the second UPF is a second SMF (not shown), the first SMF serves a session of a first terminal, and the second SMF serves a session of a second terminal.

[0195] Alternatively, the first UPF and the second UPF may correspond to the same control plane network element SMF, and the SMF may provide the session of the first terminal and the session of the second terminal separately, which is not limited in this application.

[0196] For specific connection relationships, communication interfaces, etc. between network elements (such as a first terminal, a first UPF, a second terminal, a second UPF, and an SMF) in the scenario shown in Figure 4, please refer to the 5G network architecture shown in Figure 1. Details will not be described again here.

[0197] It can be understood that the application scenario shown in Figure 4 is merely intended to more clearly describe the technical solutions in the embodiments of the present application, and does not constitute a limitation of the technical solutions provided in the embodiments of the present application. For example, the application scenario may further include another device or network element, such as a network control device or another network element in the 5G network architecture shown in Figure 1.

[0198] Furthermore, those skilled in the art may learn that the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems when network architectures evolve and new service scenarios emerge.

[0199] Fig. 5 is a schematic configuration diagram of a terminal according to an embodiment of the present application. The terminal may be the first terminal or the second terminal in the application scenario shown in Fig. 4. As shown in Fig. 5, the terminal may include at least one processor 51, a memory 52, a communication interface 53, and a bus 54.

[0200] The following provides a detailed introduction to the components of the terminal with reference to Figure 5.

[0201] The processor 51 is the control center of the terminal and may refer to one processor or a plurality of processing elements collectively. For example, the processor 51 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or may be configured as one or more integrated circuits implementing embodiments of the present application, such as one or more microprocessors (digital signal processors, DSPs) or one or more field programmable gate arrays (FPGAs).

[0202] The processor 51 runs or executes software programs stored in the memory 52 and accesses data stored in the memory 52 to perform various functions of the terminal.

[0203] In a particular implementation, in one embodiment, the processor 51 may include one or more CPUs, such as CPU0 and CPU1 shown in FIG.

[0204] In a particular implementation, in one embodiment, a network device may include multiple processors, such as processor 51 and processor 55 shown in Figure 5. Each of the processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). A processor herein may be one or more devices, circuits, and / or processing cores configured to process data (e.g., computer program instructions).

[0205] The memory 52 is configured to store software programs that execute the method steps executed by the terminal in the solution of the present application, and the processor 51 controls the execution. The memory 52 may be a read-only memory (ROM) or another type of static storage device capable of storing static information and instructions, or a random access memory (RAM) or another type of dynamic storage device capable of storing information and instructions, or may be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other compact disc storage, an optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disc storage medium or another magnetic storage device, or any other medium that can be used to carry or store expected program code having instructions or data structure format and that can be accessed by a computer, but this is not limited in this specification.

[0206] The memory 52 may exist independently and is connected to the processor 51 by a bus 54. Alternatively, the memory 52 may instead be integrated with the processor 51. This is not a limitation herein.

[0207] The communication interface 53 is configured to communicate with another device or another communication network by using any transceiver type device. The communication interface 53 may be an Ethernet interface, a radio access network (RAN) interface, a wireless local area network (WLAN) interface, etc. The communication interface 53 may include a receiving unit for implementing a receiving function and a transmitting unit for implementing a transmitting function.

[0208] The bus 54 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an extended industry standard architecture (EISA) bus, etc. A bus may be classified as an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used to represent a bus in FIG. 5, but this does not mean that there is only one bus or only one type of bus.

[0209] Although a bus 54 is used in FIG. 5, it can be understood that the bus 54 may be replaced by other types of connections and is not limited to the bus itself.

[0210] Optionally, in the application scenario shown in Fig. 4, the structure of the core network device used to support the first UPF and / or the second UPF may also include some structures similar to those of the terminal shown in Fig. 5, such as a processor, a memory, a communication interface, a bus, etc., to implement various functions corresponding to the first UPF or the second UPF. Details will not be described again here.

[0211] 6A is a schematic flowchart of a data transmission method according to an embodiment of the present application. As shown in FIG. 6A, the data transmission method can include S6A01-S6A05. The data transmitted in S6A01-S6A05 is service data sent by a first terminal to a second terminal.

[0212] S6A01: A first terminal transmits data to a first UPF via a second QoS flow.

[0213] Correspondingly, the first UPF receives data from the first terminal via the second QoS flow.

[0214] The first terminal establishes a PDU session in advance by using a corresponding SMF (e.g., the first SMF), and in the process of establishing the PDU session, creates one or more QoS flows, hereinafter referred to as second QoS flows, i.e., the PDU session of the first terminal includes one or more second QoS flows.

[0215] When the first terminal needs to transmit data to the first UPF, the first terminal can select a second QoS flow that satisfies the QoS requirement from the second QoS flows included in the PDU session based on the QoS requirement of the data that needs to be transmitted. Then, the first terminal can transmit data to the first UPF via the second QoS flow that satisfies the QoS requirement.

[0216] For example, the QoS requirement may include 5QI information, where the 5QI is a scalar for indexing a corresponding 5G QoS feature value, including a standardized 5QI, a pre-configured 5QI, and a dynamically allocated 5QI.

[0217] S6A02: The first UPF determines a first QoS flow corresponding to the second QoS flow based on the correspondence between the second QoS flow and the first QoS flow.

[0218] The correspondence between the second QoS flow and the first QoS flow is determined based on the QoS requirements that can be satisfied by the second QoS flow and the QoS requirements that can be satisfied by the first QoS flow.

[0219] In some embodiments, the correspondence between the second QoS flow and the first QoS flow may be configured for the first UPF by an SMF corresponding to the first UPF, For example, the first UPF may receive first configuration information from the first SMF, where the first configuration information is to indicate the correspondence between the second QoS flow and the first QoS flow.

[0220] Optionally, the first configuration information includes second QoS flow identifier information and first QoS flow identifier information corresponding to the second QoS flow, where the second QoS flow identifier information and the first QoS flow identifier information may be the aforementioned QFI.

[0221] In some implementations, the identifier information of the second QoS flow may be the same as the identifier information of the first QoS flow. Alternatively, in another implementation, the identifier information of the second QoS flow may be different from the identifier information of the first QoS flow. This is not limited herein in this application.

[0222] Optionally, the first configuration information may further include first interface identifier information, the first interface identifier information for instructing the first UPF to send data to the second UPF on the first interface via the first QoS flow.

[0223] The first interface may be an N9 interface or a tunnel between the first UPF and the second UPF, such as a general packet radio service tunneling protocol-U (GTP-U) tunnel.

[0224] It should be understood that the first configuration information is a forwarding rule configured by the first SMF for the first UPF. The forwarding rule includes a packet detection rule (PDR) and a forwarding action rule (FAR). The PDR is for matching packets, and the FAR is for instructing the processing of packets. Thus, in the first configuration information, the PDR configured by the first SMF for the first UPF includes identifier information of a second QoS flow, and the FAR includes identifier information of a first QoS flow corresponding to the second QoS flow and identifier information of a first interface.

[0225] S6A03: The first UPF sends data to the second UPF via the first QoS flow.

[0226] Correspondingly, the second UPF receives data from the first UPF via the first QoS flow.

[0227] S6A04: The second UPF determines a third QoS flow corresponding to the first QoS flow based on the correspondence between the first QoS flow and the third QoS flow.

[0228] The correspondence between the first QoS flow and the third QoS flow is determined based on the QoS requirements that can be satisfied by the first QoS flow and the QoS requirements that can be satisfied by the third QoS flow.

[0229] In some embodiments, the correspondence between the first QoS flow and the third QoS flow may be configured for the second UPF by an SMF corresponding to the second UPF, For example, the second UPF may receive second configuration information from the second SMF, where the second configuration information is to indicate the correspondence between the first QoS flow and the third QoS flow.

[0230] It can be understood that when the first UPF and the second UPF correspond to the same SMF, the SMF configures first configuration information for the first UPF and configures second configuration information for the second UPF.

[0231] Optionally, the second configuration information includes a first QoS flow identifier information and a third QoS flow identifier information corresponding to the first QoS flow. The third QoS flow identifier information may also be the aforementioned QFI.

[0232] In some implementations, the identifier information of the first QoS flow may be the same as the identifier information of the third QoS flow. Alternatively, in another implementation, the identifier information of the first QoS flow may be different from the identifier information of the third QoS flow. This is not limited herein in this application.

[0233] It should be further understood that the second configuration information is a forwarding rule configured by the second SMF for the second UPF. Thus, in the second configuration information, the PDR configured by the second SMF for the second UPF includes identifier information of the first QoS flow, and the FAR includes identifier information of the third QoS flow corresponding to the first QoS flow.

[0234] From the perspective of the overall transmission path from the first terminal to the second terminal, it can be learned that there is a correspondence between the second QoS flow and the first QoS flow, and there is a correspondence between the first QoS flow and the third QoS flow.

[0235] In one possible implementation, for a second QoS flow, the identifier information of the first QoS flow corresponding to the second QoS flow is the same as the identifier information of the second QoS flow, and the identifier information of the third QoS flow corresponding to the first QoS flow is the same as the identifier information of the first QoS flow. In other words, the second QoS flow, the first QoS flow, and the third QoS flow that have consecutive correspondence may have the same identifier information.

[0236] S6A05: The second UPF transmits data to the second terminal via the third QoS flow.

[0237] Correspondingly, the second terminal receives data from the second UPF via a third QoS flow.

[0238] In the following, the process shown in FIG. 7 will be described with reference to the process of UE1 transmitting a packet P to UE2, using an example in which the first terminal is UE1, the second terminal is UE2, the first UPF is UPF1, and the second UPF is UPF2.

[0239] UE1 may first determine a second QoS flow, for example, QoS flow 3, based on the QoS requirement of packet P, and send packet P to UPF1 via the second QoS flow. After receiving packet P, UPF1 may determine a first QoS flow, for example, QoS flow 3, corresponding to the second QoS flow, and send packet P to UPF2 via the first QoS flow. After receiving packet P, UPF2 may determine a third QoS flow, for example, QoS flow 3, corresponding to the first QoS flow, and send packet P to UE2 via the third QoS flow. In this way, UE1 sends packet P to UE2.

[0240] From the above, it can be learned that in the embodiment shown in Figure 6A, data transmission is performed between the first terminal and the first UPF via the second QoS flow, data transmission is performed between the first UPF and the second UPF via the first QoS flow, and data transmission is performed between the second UPF and the second terminal via the third QoS flow. Thus, a reliable QoS guarantee can be provided for the data transmitted by the first terminal to the second terminal in the entire transmission path from the first terminal to the second terminal.

[0241] With reference to FIG. 6B, the following describes a process for establishing a correspondence between the second QoS flow and the first QoS flow, and between the first QoS flow and the third QoS flow, as described in the embodiment shown in FIG. 6A.

[0242] 6B is a schematic flow chart of establishing QoS flow correspondence according to an embodiment of the present application. As shown in FIG. 6B, for example, a first UPF and a second UPF have respective corresponding control plane network elements SMF. The control plane network element corresponding to the first UPF is a first SMF, and the control plane network element corresponding to the second UPF is a second SMF. In one possible design, the correspondence between the second QoS flow and the first QoS flow, and the correspondence between the first QoS flow and the third QoS flow may be determined in the manners shown in S6B01-S6B04.

[0243] S6B01: The second SMF obtains information regarding the first SMF in which the session of the first terminal is located.

[0244] For example, when determining that a link is created between the second terminal and the first terminal, the second SMF can obtain information about the first SMF where the session of the first terminal is located. In one implementation, in the process of creating a session of the second terminal, the second SMF obtains from the subscription data an identifier of the first terminal and a requirement for creating a link from the first terminal to the second terminal to determine that a link needs to be created between the second terminal and the first terminal. Alternatively, in another implementation, when determining that a link needs to be created between the second terminal and the first terminal, a control plane network element (e.g., AF) sends a message to the second SMF, the message including an identifier of the first terminal and an instruction to create the link. The second SMF can then obtain information about the first SMF where the session of the first terminal is located via a query from the control plane of the network in which the first terminal is located.

[0245] S6B02: The second SMF and the second UPF determine identifier information of the first interface and identifier information of the first QoS flow on the first interface corresponding to the third QoS flow.

[0246] The first interface is an interface on the second UPF and receives data from the first UPF. For example, in a GTP-U tunnel, the identifier information of the first interface includes an IP address and a tunnel endpoint identifier (TEID) of the second UPF. The third QoS flow is a QoS flow in a session of the second terminal. For example, to obtain a correspondence between the first QoS flow and the third QoS flow, the identifier information of the first QoS flow corresponding to the third QoS flow can be determined based on the QoS requirement of the transmission of service data from the first terminal to the second terminal. For the first QoS flow, the third QoS flow corresponding to the first QoS flow, the first QoS flow, and the second QoS flow corresponding to the first QoS flow and determined in the subsequent step S6B04 can satisfy the QoS requirement of the transmission of service data from the first terminal to the second terminal.

[0247] Optionally, the second SMF and the second UPF determining the identifier information of the first interface through which the second UPF receives data from the first UPF and the identifier information of the first QoS flow on the first interface corresponding to the third QoS flow in the session of the second terminal may refer to the second SMF determining the identifier information and then sending it to the second UPF, or the second UPF determining the identifier information and then sending it to the second SMF, or each of the second SMF and the second UPF determining a part of the identifier information. For example, the second SMF determines the identifier information of the first interface through which the second UPF receives data from the first UPF and then sends the identifier information to the second UPF, and then the second UPF determines the identifier information of the first QoS flow on the first interface corresponding to the third QoS flow in the session of the second terminal. Alternatively, the second UPF determines identifier information of the first interface for receiving data from the first UPF, and then sends the identifier information to the second SMF. The second SMF then determines identifier information of the first QoS flow on the first interface corresponding to the third QoS flow in the session of the second terminal.

[0248] S6B03: The second SMF sends to the first SMF identifier information of the first interface and identifier information of the first QoS flow on the first interface corresponding to the third QoS flow.

[0249] The second SMF sending the identifier information of the first interface and the identifier information of the first QoS flow on the first interface corresponding to the third QoS flow to the first SMF means that the second SMF sends the correspondence between the first QoS flow and the third QoS flow to the first SMF. For example, the second SMF may send the above information to the first SMF by using an Nsmf_PDUSession_Update message. Alternatively, the above information is sent to the first SMF via a PCF. The information sent by the second SMF to the first SMF further includes the third QoS flow and QoS requirements corresponding to the first QoS flow.

[0250] S6B04: The first SMF and the first UPF determine identifier information of a second QoS flow corresponding to the first QoS flow based on identifier information of the first interface and identifier information of a first QoS flow on the first interface corresponding to the third QoS flow.

[0251] For example, the first SMF and the first UPF determine, based on the identifier information of the first interface through which the second UPF receives data from the first UPF, the identifier information of the first QoS flow on the first interface corresponding to the third QoS flow in the session of the second terminal, and the QoS requirements corresponding to the first QoS flow, the first SMF and the first UPF obtain the correspondence between the second QoS flow and the first QoS flow.

[0252] Regarding the processes shown in S6B01 to S6B04, when the first UPF and the second UPF correspond to the same control plane network element SMF, S6B03 does not exist. Other processes are similar, and the details will not be described again.

[0253] According to the process shown in S6B01-S6B04, it may be determined that there is a correspondence between the second QoS flow and the first QoS flow, and that there is a correspondence between the first QoS flow and the third QoS flow. In other words, the second QoS flow, the first QoS flow, and the third QoS flow have a sequential correspondence. The second QoS flow, the first QoS flow, and the third QoS flow having the correspondence can satisfy an end-to-end QoS requirement of a data flow between a first terminal and a second terminal. For example, the bandwidth of the second QoS flow, the first QoS flow, and the third QoS flow is equal to or greater than the bandwidth requirement of the data flow, and the sum of the respective delays of the second QoS flow, the first QoS flow, and the third QoS flow is equal to or less than the delay requirement of the data flow.

[0254] 6A, it may be learned that a correspondence exists between the second QoS flow and the first QoS flow, and a correspondence exists between the first QoS flow and the third QoS flow. In another possible design, a correspondence may exist between the second QoS flow and the first interface, and a correspondence may exist between the first interface and the third QoS flow.

[0255] For example, an embodiment of the present application further provides a data transmission method. Figure 7 is another schematic flowchart of the data transmission method according to an embodiment of the present application. As shown in Figure 7, the data transmission method can include S701 to S705. The data transmitted in S701 to S705 is service data sent by a first terminal to a second terminal.

[0256] S701: A first terminal transmits data to a first UPF via a second QoS flow.

[0257] Correspondingly, the first UPF receives data from the first terminal via the second QoS flow.

[0258] For a specific description of S701, please refer to S6A01 above. The details will not be described again.

[0259] S702: The first UPF determines a first interface corresponding to the second QoS flow and determines a first QoS flow corresponding to the first interface based on a correspondence between the second QoS flow and the first interface.

[0260] The correspondence between the second QoS flow and the first interface is determined based on the QoS requirements that can be satisfied by the second QoS flow and the QoS requirements that can be satisfied by the first interface. The first QoS flow corresponding to the first interface is the first QoS flow on the first interface.

[0261] In some embodiments, the correspondence between the second QoS flow and the first interface may be further configured, for the first UPF, by an SMF corresponding to the first UPF. For example, the first UPF may receive first configuration information from the first SMF, where the first configuration information is to indicate the correspondence between the second QoS flow and the first interface.

[0262] Optionally, the first configuration information includes a second QoS flow identifier information and a first interface identifier information corresponding to the second QoS flow, where the second QoS flow identifier information may be the aforementioned QFI, and the first interface identifier information may be an interface identifier of the N9 interface or the aforementioned TEID of the GTP-U tunnel.

[0263] S703: The first UPF sends data to the second UPF via the first QoS flow.

[0264] In other words, the first UPF sends data to the second UPF via a first QoS flow on the first interface.

[0265] Correspondingly, the second UPF receives data from the first UPF via the first QoS flow.

[0266] S704: The second UPF determines, based on the correspondence between the first interface and the third QoS flow, a third QoS flow corresponding to the first interface.

[0267] The correspondence between the first interface and the third QoS flow is determined based on the QoS requirements that can be satisfied by the first interface and the QoS requirements that can be satisfied by the third QoS flow.

[0268] In some embodiments, the correspondence between the first interface and the third QoS flow may be further configured, for the second UPF, by an SMF corresponding to the second UPF. For example, the second UPF may receive second configuration information from the second SMF, where the second configuration information is to indicate the correspondence between the first interface and the third QoS flow.

[0269] Furthermore, it can be understood that when the first UPF and the second UPF correspond to the same SMF, the SMF configures first configuration information for the first UPF and configures second configuration information for the second UPF.

[0270] Optionally, the second configuration information includes identifier information of the first interface and identifier information of a third QoS flow corresponding to the first interface. The identifier information of the third QoS flow may also be the aforementioned QFI.

[0271] From the perspective of the overall transmission path from the first terminal to the second terminal, it can be learned that there is a correspondence between the second QoS flow and the first interface, and there is a correspondence between the first interface and the third QoS flow.

[0272] S705: The second UPF sends data to the second terminal via the third QoS flow.

[0273] Correspondingly, the second terminal receives data from the second UPF via a third QoS flow.

[0274] In the following, the process shown in Figure 7 will be described further using an example in which the first terminal is UE1, the second terminal is UE2, the first UPF is UPF1, and the second UPF is UPF2. This should refer to the process of UE1 sending a packet P to UE2.

[0275] UE1 may first determine a second QoS flow, e.g., QoS flow 3, based on the QoS requirement of packet P, and send packet P to UPF1 via the second QoS flow. After receiving packet P, UPF1 may determine a first interface corresponding to the second QoS flow, and send packet P to UPF2 via the first QoS flow on the first interface. For example, packet P may be QoS flow 4. After receiving packet P, UPF2 may determine a third QoS flow, e.g., QoS flow 5, corresponding to the first interface, and send packet P to UE2 via the third QoS flow. In this way, UE1 sends packet P to UE2.

[0276] From the above, it can be learned that in the embodiment shown in Figure 7, data transmission is performed between the first terminal and the first UPF via the second QoS flow, data transmission is performed between the first UPF and the second UPF via a first QoS flow on the first interface corresponding to the second QoS flow, and data transmission is performed between the second UPF and the second terminal via a third QoS flow corresponding to the first interface. Thus, a reliable QoS guarantee can be further provided for the data transmitted by the first terminal to the second terminal in the entire transmission path from the first terminal to the second terminal.

[0277] Furthermore, it should be noted that in the embodiment of Fig. 7, the specific method for configuring the first configuration information and the second configuration information is the same as or similar to the configuration rules of the PDR and FAR in the embodiment shown in Fig. 6A, and the details will not be described again. Furthermore, the process of establishing the correspondence between the second QoS flow and the first interface, and the correspondence between the first interface and the third QoS flow is similar to the process of establishing the correspondence between the second QoS flow and the first QoS flow, and the correspondence between the first QoS flow and the third QoS flow shown in Fig. 6B. The details will not be described again here.

[0278] Optionally, in an embodiment of the present application, the data sent by the first terminal to the second terminal further includes a user tunnel identifier, and the user tunnel identifier is for indicating that the data is data sent by the first terminal to the second terminal. For example, when receiving data from the first terminal, the first UPF can determine that the data is data sent by the first terminal to the second terminal based on the user tunnel identifier in the data, and send the data to a second UPF corresponding to the second terminal.

[0279] Optionally, the user tunnel identifier may be some field that is added to the data by the first terminal and can identify the transmission path from the first terminal to the second terminal. For example, the field may be added to the GTP-U header, or may be added to the GTP-U upper layer, which is not limited in this specification.

[0280] The user tunnel identifier is added to the data sent by the first terminal to the second terminal, so that the first UPF can determine the end-to-end forwarding service based on the user tunnel identifier in the received data, and distinguish the end-to-end forwarding service from the 5G LAN service. The packets of the 5G LAN service are forwarded based on the destination address in the packet. However, in the embodiment of the present application, the end-to-end service is forwarded based on the flow, and the UPF does not recognize the destination address in the packet.

[0281] It can be learned that in the embodiment of Figure 7, there is a correspondence between the second QoS flow and the first interface, and there is a correspondence between the first interface and the third QoS flow. Different from the embodiments shown in Figures 6A and 7, in yet another possible design, the first UPF and the second UPF may not forward data sent by the first terminal to the second terminal based on the correspondence.

[0282] For example, an embodiment of the present application further provides a data transmission method. Figure 8 is yet another schematic flowchart of the data transmission method according to an embodiment of the present application. As shown in Figure 8, the data transmission method can include S801 to S804. The data transmitted in S801 to S804 is service data sent by a first terminal to a second terminal.

[0283] S801: A first terminal transmits data to a first UPF.

[0284] Correspondingly, the first UPF receives data from the first terminal.

[0285] S802: A first UPF determines a first QoS flow corresponding to the data characteristic based on the correspondence between the data characteristic and the first QoS flow of the data.

[0286] For example, the data may be a packet and the data characteristics may be packet characteristics, such as a packet 5-tuple including an IP address, a source port, a destination IP address, a destination port, and a transport layer protocol.

[0287] In some embodiments, the correspondence between the data feature and the first QoS flow may be further configured, for the first UPF, by an SMF corresponding to the first UPF, For example, the first UPF may receive first configuration information from the first SMF, where the first configuration information is to indicate the correspondence between the data feature and the first QoS flow.

[0288] Optionally, the first configuration information includes a data characteristic and a first QoS flow identifier information corresponding to the data characteristic. The first QoS flow identifier information may be the aforementioned QFI.

[0289] Optionally, the first configuration information further includes first interface identifier information, the first interface identifier information for instructing the first UPF to transmit data to the second user plane function via a first QoS flow on the first interface corresponding to the first interface identifier information.

[0290] When the first configuration information does not include the first interface identifier information, the first UPF may send the first interface identifier information to the first interface according to a local policy. For example, different first interfaces have different link attributes, and the determined first QoS flow has a specific link attribute requirement. Therefore, the first UPF may send the first interface identifier information to the first interface that meets the link attribute requirement of the first QoS flow.

[0291] S803: The first UPF sends data to the second UPF via the first QoS flow.

[0292] Correspondingly, the second UPF receives data from the first UPF via the first QoS flow.

[0293] S804: The second UPF transmits data to the second terminal.

[0294] Correspondingly, the second terminal receives data from the second UPF.

[0295] Optionally, in the embodiment shown in Figure 8, when the first terminal sends data to the first UPF, or when the second UPF sends data to the second terminal, a corresponding second QoS flow or a third QoS flow may be determined based on the data characteristics. Details will not be described again here.

[0296] From the above, it can be learned that in the embodiment shown in Fig. 8, data transmission between the first UPF and the second UPF is performed through a first QoS flow corresponding to a data feature. Therefore, a reliable QoS guarantee can be provided for the transmission path from the first UPF to the second UPF. However, the data transmission between the first terminal and the first UPF, and between the second UPF and the second terminal are also based on the QoS flow. Therefore, the entire transmission path from the first terminal to the second terminal can provide a reliable QoS guarantee for the data transmitted by the first terminal to the second terminal.

[0297] Furthermore, it should be noted that in the embodiment shown in Fig. 8, the specific method for configuring the first configuration information and the second configuration information is the same as or similar to the configuration rules of the PDR and the FAR in the embodiment shown in Fig. 6A, and the details will not be described again. For example, the data feature is configured in the PDR, and the identifier information of the first QoS flow corresponding to the data feature of the data is configured in the FAR.

[0298] Different from the embodiment shown in Fig. 8, an embodiment of the present application further provides a data transmission method. Fig. 9 is another schematic flowchart of the data transmission method according to an embodiment of the present application. As shown in Fig. 9, the data transmission method can include S901-S904. The data transmitted in S901-S904 is service data sent by a first terminal to a second terminal.

[0299] S901: A first terminal transmits data to a first UPF.

[0300] Correspondingly, the first UPF receives data from the first terminal.

[0301] S902: A first UPF determines a first interface corresponding to a data characteristic of the data based on a correspondence between the data characteristic and the first interface, and determines a first QoS flow corresponding to the first interface.

[0302] For related descriptions of data features, please refer to the descriptions in the embodiment shown in FIG.

[0303] In some embodiments, the correspondence between the data feature and the first interface may be further configured, for the first UPF, by an SMF corresponding to the first UPF. For example, the first UPF may receive first configuration information from the first SMF, where the first configuration information is to indicate the correspondence between the data feature and the first interface.

[0304] Optionally, the first configuration information includes a data feature and a first interface identifier information corresponding to the data feature. The first interface identifier information may be an interface identifier of an N9 interface or the aforementioned TEID of a GTP-U tunnel.

[0305] Because the determined first interface satisfies the data characteristics of the data, the first QoS flow corresponding to the first interface also satisfies the data characteristics of the data.

[0306] S903: The first UPF sends data to the second UPF via the first QoS flow.

[0307] Correspondingly, the second UPF receives data from the first UPF via the first QoS flow.

[0308] In other words, the second UPF can receive data from the first UPF on the determined first interface via the first QoS flow.

[0309] S904: The second UPF sends data to the second terminal.

[0310] Correspondingly, the second terminal receives data from the second UPF.

[0311] Optionally, in the embodiment shown in Figure 9, when the first terminal sends data to the first UPF, or when the second UPF sends data to the second terminal, a corresponding second QoS flow or a third QoS flow may be determined based on the data characteristics. Details are not described again here.

[0312] From the above, it can be learned that in the embodiment shown in Fig. 9, data transmission is performed between the first UPF and the second UPF via a first QoS flow on a first interface corresponding to a data characteristic. Therefore, a reliable QoS guarantee can be further provided for the transmission path from the first UPF to the second UPF. However, the data transmission between the first terminal and the first UPF, and between the second UPF and the second terminal are also based on the QoS flow. Therefore, the entire transmission path from the first terminal to the second terminal can further provide a reliable QoS guarantee for the data transmitted by the first terminal to the second terminal.

[0313] Furthermore, it should be noted that in the embodiment of Figure 9, the specific method for configuring the first configuration information and the second configuration information is the same as or similar to the configuration rules of the PDR and FAR in the embodiment shown in Figure 6A, and the details are not described again.

[0314] With reference to Figures 8 and 9, in an embodiment of the present application, it can be learned that the data characteristics include QoS requirements (e.g., delay requirements) for data transmission, and the first UPF can determine a first interface and / or a first QoS flow for data forwarding based on the QoS requirements of the data and the link quality of the first interface and / or the QoS flow.

[0315] Optionally, in the embodiment shown in FIG. 8 and / or FIG. 9, the data sent by the first terminal to the second terminal may further include a user tunnel identifier, where the user tunnel identifier is the same as that described in the previous embodiment and will not be described again here.

[0316] Although the data transmission method described in the embodiment shown in Figures 6A to 9 of the present application is described using a process of a first terminal transmitting data to a second terminal, it can be understood that the data transmission method may be further extended to a process of transmitting data from a second terminal to a first terminal. In other words, the data transmission method of the present application is applicable to a process of transmitting service data between any two terminals. According to the data transmission method, a forwarding path between UPFs serving a user can be created, and the service data is forwarded to the UPF serving a peer user by using an appropriate forwarding path based on the QoS requirements of the user.

[0317] Furthermore, the data transmission method provided in the embodiments of the present application can also be extended to end-to-end transmission in a wide area network scenario. At present, end-to-end transmission in a WAN scenario is realized based on software-defined wide area network (SD-WAN) technology. SD-WAN is a service that applies software-defined network (SDN) technology to a wide area network scenario. The service aims to connect enterprise networks, data centers, Internet applications, and cloud services across a wide geographic area, reduce wide area network expenditures, and improve network connection flexibility. SD-WAN is cost-effective, easy to use, and supports scalable deployment and assured security.

[0318] FIG. 10 is a schematic diagram of a system for end-to-end transmission in a wide area network scenario. As shown in FIG. 10, SD-WAN is implemented through a tunnel. Multiple links, such as a wired link (cable) and a digital subscriber line (DSL), are included between an SD-WAN application device at a transmitting end and an SD-WAN application device at a receiving end. The SD-WAN application device at the transmitting end can obtain link quality information, such as delay, packet loss rate, and jitter of each link through frequent link quality detection, and transmit user service data at the transmitting end to the SD-WAN application device at the receiving end through different links based on service requirements and the link quality information. The SD-WAN application device at the receiving end can forward the received user service data to the receiving end.

[0319] However, in the above-mentioned processing of end-to-end transmission in a wide area network scenario based on SD-WAN technology, link quality assurance can only be provided for the transmission link between the SD-WAN application device at the transmitting end and the SD-WAN application device at the receiving end, and reliable end-to-end wide area link quality assurance cannot be provided for the entire link from the transmitting end to the receiving end.

[0320] However, in the data transmission method provided in the embodiment of the present application, the transmission path from the first UPF to the second UPF replaces the transmission link between the SD-WAN application device at the sending end and the SD-WAN application device at the receiving end in a wide area network scenario based on SD-WAN technology, and can provide a reliable end-to-end wide area link quality guarantee for the entire link from the sending end to the receiving end. In addition, in the forwarding process, instead of sensing the destination address in the packet, the UPF can forward the packet based on the correspondence between the session and the flow, thereby reducing the forwarding requirements in the UPF and not limiting the number of user addresses, thereby improving the flexibility of network deployment on the user side. In addition, compared with SD-WAN, in the data transmission method provided in the embodiment of the present application, the terminal does not need to implement a tunneling protocol.

[0321] Optionally, in an embodiment of the present application, the first terminal may further initiate link quality detection to the second terminal to obtain the link quality of the end-to-end forwarding path created in the foregoing embodiment, so that the first terminal can determine a QoS flow for delivering packets based on the detected link quality.

[0322] For example, in one possible design, the data sent by the first terminal to the second terminal includes a link detection indication. When receiving the data, the first UPF can insert first detection information into the data based on the link detection indication. The first detection information may be included in a GTP-U header or may be included in a GTP-U upper layer. The first detection information includes one or more of information, such as an uplink bandwidth, a downlink bandwidth, an uplink packet loss statistic (packet loss rate), a downlink packet loss statistic (packet loss rate), a packet received timestamp, a packet transmitted timestamp, and an uplink / downlink air interface delay of the first terminal corresponding to a QoS flow in a transmission path from the first terminal to the first UPF.

[0323] In this case, it can be understood that when the second UPF receives the data, the data includes the first detection information and the link detection indication. When the data is received, the second UPF can insert the second detection information into the data based on the link detection indication. Similar to the first detection information, the second detection information may include one or more of the following information corresponding to the QoS flow in the transmission path from the first UPF to the second UPF: uplink bandwidth, downlink bandwidth, uplink packet loss statistics (packet loss rate), downlink packet loss statistics (packet loss rate), timestamp of receiving the packet, timestamp of transmitting the packet, and uplink / downlink air interface delay of the first terminal. The type of the second detection information may be the same as or different from the type of the first detection information.

[0324] In other words, the link detection instruction is to instruct the first UPF to insert first detection information into the data, and to instruct the second UPF to insert second detection information into the data.

[0325] When the second UPF forwards the data to the second terminal, the second terminal can determine link quality information of the entire transmission path from the first terminal to the second terminal by referring to the third detection information for the transmission path from the second UPF to the second terminal acquired by the second terminal and the first detection information and the second detection information included in the data. The second terminal can then return the link quality information of the entire transmission path from the first terminal to the second terminal to the first terminal, so that the first terminal can determine a QoS flow for transmitting a data packet to the second terminal based on the link quality information of the entire transmission path from the first terminal to the second terminal.

[0326] In another possible design, the first terminal may alternatively send the link detection indication to the second terminal separately by using a detection packet. For example, the link detection indication may be carried in the detection packet. For example, an embodiment of the present application further provides a link quality detection method. FIG. 11 is a schematic flowchart of the link quality detection method according to an embodiment of the present application. As shown in FIG. 11, the link quality detection method may include S1101 to S1109. S1101 to S1109 are processes in which the first terminal sends a link detection indication to the second terminal and receives a link detection indication returned by the second terminal.

[0327] S1101: A first terminal sends a detection packet to a first UPF, where the detection packet includes a link detection indication.

[0328] Correspondingly, the first UPF receives a detection packet from the first terminal.

[0329] S1102: The first UPF generates first detection information and inserts the first detection information into a detection packet.

[0330] S1103: The first UPF sends a detection packet to the second UPF, where the detection packet includes the first detection information and a link detection indication.

[0331] In response, the second UPF receives a detection packet from the first UPF.

[0332] S1104: The second UPF generates second detection information and inserts the second detection information into the detection packet.

[0333] S1105: The second UPF sends a detection packet to the second terminal, where the detection packet includes the first detection information, the second detection information, and a link detection indication.

[0334] In response, the second terminal receives a detection packet from the second UPF.

[0335] S1106: The second terminal generates third detection information.

[0336] S1107: A second terminal sends link quality information to a second UPF, where the link quality information includes the first detection information, the second detection information, and the third detection information.

[0337] The link quality information is link quality information of a transmission path from a first terminal to a second terminal. The first detection information is link quality information of a transmission path from the first terminal to a first UPF, the second detection information is link quality information of a transmission path from the first UPF to a second UPF, and the third detection information is link quality information of a transmission path from the second UPF to the second terminal.

[0338] In response, the second UPF receives the link quality information.

[0339] S1108: The second UPF sends link quality information to the first UPF.

[0340] In response, the first UPF receives the link quality information.

[0341] S1109: The first UPF sends link quality information to the first terminal.

[0342] In response, the first terminal receives the link quality information.

[0343] In one implementation, the link detection indication is specifically for instructing to detect link quality information of a QoS flow that carries the link detection indication and is in a transmission path from the first terminal to the second terminal. In other words, when a QoS flow is used to carry a detection packet that includes the link detection indication, the link detection indication is specifically for indicating the link quality information of the corresponding QoS flow.

[0344] In another implementation, the link detection indication includes one or more QoS flow identifier information, in which case the link quality information is specifically for indicating link quality information of the QoS flow corresponding to the QoS flow identifier information included in the link detection indication.

[0345] Optionally, in an embodiment of the present application, the first terminal and the second terminal may send link detection indications to each other periodically (for example, the periodicity may be 5 ms, 10 ms, or 100 ms, which is not limited in this specification), so that both the first terminal and the second terminal can obtain link quality information from the local end to the peer end terminal (for example, when the first terminal is the local end, the second terminal is the peer end terminal) within one-way delay. When sending the link detection indication, the first terminal and the second terminal may further send the link quality information previously received from the peer end terminal in the link detection indication, so that the peer end terminal can obtain more accurate link quality information (for example, the above-mentioned delay information). For example, the first terminal sends a link detection indication to the second terminal, and sends the link quality information of the transmission path from the second terminal to the first terminal to the second terminal.

[0346] In some embodiments, different types of link quality information may be further obtained in different processes, for example, delay is first obtained in one detection process, and then delay information and available bandwidth information are inserted in the next detection process to ensure the accuracy of delay detection.

[0347] In one possible design, the link quality detection method further includes determining, by the first terminal, a quality of service flow carrying the data based on link quality information of a transmission path from the first terminal to the second terminal and a quality of service requirement of the data that needs to be transmitted to the second terminal. For example, the first terminal may determine the detected link quality based on the link quality information of the transmission path from the first terminal to the second terminal. The first terminal may then determine a QoS flow for delivering the data (e.g., a packet) based on the QoS requirement of the data that needs to be transmitted to the second terminal and the detected link quality.

[0348] Optionally, in the embodiment of the present application, when the terminal determines the QoS flow to be used for transmitting the packet based on the link quality of the QoS flow, the manner of acquiring the link quality is not limited. For example, the link quality may be acquired by the method of link quality detection described in the above embodiment, or may be acquired from the control plane when the flow is created, which is not limited in this specification.

[0349] The above embodiment shown in Figure 11 is a process in which a first terminal initiates link quality detection, and the link quality of the transmission path from the first terminal to the second terminal is detected. Similarly, the second terminal may also initiate a link quality detection process, and correspondingly, the link quality of the transmission path from the second terminal to the first terminal is detected.

[0350] In some other possible designs, the link quality detection process may also be initiated by the first UPF or the second UPF.

[0351] For example, the first UPF can send a first link detection request to the first terminal, and the first terminal can return link quality information of the transmission path from the first UPF to the first terminal to the first UPF based on the first link detection request. Correspondingly, the first UPF receives link quality information of the transmission path from the first UPF to the first terminal from the first terminal. The second UPF can send a second link detection request to the first UPF. Correspondingly, the first UPF receives a second link detection request from the second UPF. Then, the first UPF can return link quality information of the transmission path from the first UPF to the first terminal and link quality information of the transmission path from the second UPF to the first UPF to the second UPF based on the second link detection request. In this case, the second UPF can learn the link quality information of the transmission path from the second UPF to the first terminal. Since the second UPF can more easily learn the link quality information of the transmission path from the second terminal to the second UPF, the second UPF can determine the link quality information of the transmission path from the second terminal to the first terminal and return the link quality information to the terminal, so that the second terminal can obtain the link quality information of the transmission path from the second terminal to the first terminal. In this way, the second terminal can determine a QoS flow for transmitting a data packet to the first terminal based on the link quality information of the entire transmission path from the second terminal to the first terminal.

[0352] Similarly, the first UPF can also obtain link quality information of the transmission path from the first terminal to the second terminal and send the link quality information to the first terminal, so that the first terminal can determine a QoS flow for sending a data packet to the second terminal based on the link quality information of the entire transmission path from the first terminal to the second terminal.

[0353] For example, the first UPF may send a link detection request to the second UPF to request the second UPF to obtain link quality information of the transmission path from the first UPF to the second terminal. This link detection request may be referred to as a third link detection request. The link quality information of the transmission path from the first UPF to the second terminal includes link quality information of the transmission path from the first UPF to the second UPF generated by the second UPF and link quality information of the transmission path from the second UPF to the second terminal sent by the second terminal to the second UPF. For the second terminal sending the link quality information of the transmission path from the second UPF to the second terminal to the second UPF, refer to the above-mentioned process of the first terminal sending the link quality information of the transmission path from the first UPF to the first terminal to the first UPF. For example, the second UPF can send a fourth link detection request to the second terminal, and the second terminal can return link quality information of the transmission path from the second UPF to the second terminal to the second UPF. Furthermore, the first UPF can acquire link quality information of the transmission path from the first terminal to the first UPF. Thus, the first UPF can acquire link quality information of the transmission path from the first terminal to the second terminal. The first UPF can transmit the acquired link quality information of the transmission path from the first terminal to the second terminal to the first terminal, so that the first terminal can determine a QoS flow for transmitting a packet to the second terminal based on the link quality information of the entire transmission path from the first terminal to the second terminal.

[0354] For example, the first UPF obtains link quality information of a transmission path from the first terminal to the second terminal, and sends the link quality information to the first terminal. Figure 12 is another schematic flowchart of a link quality detection method according to an embodiment of the present application. As shown in Figure 12, the link quality detection method may include S1201 to S1204.

[0355] S1201: A first UPF sends a link quality detection request to a second UPF.

[0356] The link quality detection request sent by the first UPF to the second UPF is the third link detection request mentioned above.

[0357] In response, the second UPF receives a link quality detection request.

[0358] S1202: The second UPF sends link quality information of the transmission path from the first UPF to the second terminal to the first UPF.

[0359] Correspondingly, the first UPF receives link quality information of a transmission path from the first UPF to the second terminal.

[0360] S1203: The first UPF obtains link quality information of a transmission path from the first terminal to the first UPF.

[0361] In this case, the first UPF can obtain link quality information of the transmission path from the first terminal to the second terminal based on link quality information of the transmission path from the first UPF to the second UPF, link quality information of the transmission path from the first terminal to the first UPF, and link quality information of the transmission path from the second UPF to the second terminal.

[0362] S1204: The first UPF sends link quality information of the transmission path from the first terminal to the second terminal to the first terminal.

[0363] Correspondingly, the first terminal receives link quality information of a transmission path from the first terminal to the second terminal.

[0364] The link quality information referred to in the embodiment shown in Fig. 12 refers to the type of the first detection information etc. in the embodiment shown in Fig. 11. Details will not be described again here.

[0365] Optionally, in the embodiments shown in Figures 11 and / or 12, when a first terminal accesses the core network by using an access network device, the link quality information of the transmission path from the first terminal to the first UPF includes link quality information of the transmission path from the first terminal to the access network device of the first terminal and link quality information of the transmission path from the access network device of the first terminal to the first UPF, and / or when a second terminal accesses the core network by using an access network device, the link quality information of the transmission path from the second UPF to the second terminal includes link quality information of the transmission path from the second UPF to the access network device of the second terminal and link quality information of the transmission path from the access network device of the second terminal to the second terminal.

[0366] For example, in the embodiment shown in Figure 11, when a first terminal accesses a core network by using an access network device, and data sent by the first terminal and received by the access network device of the first terminal includes a link quality detection indication, the detection information of the transmission path from the first terminal to the access network device of the first terminal is inserted once, which is called the fourth detection information. When receiving the data forwarded by the access network device of the first terminal, the first UPF inserts the detection information from the access network device of the first terminal to the first UPF once, which is called the fifth detection information. In other words, the first detection information includes the fourth detection information and the fifth detection information.

[0367] Optionally, when both the third detection information and the fourth detection information include uplink bandwidth information, and the uplink bandwidth information in the fourth detection information is smaller than the uplink bandwidth information in the third detection information, only the uplink bandwidth information in the fourth detection information is retained.

[0368] As mentioned above, in the embodiment of the present application, the first UPF can obtain link quality information of the transmission path from the first terminal to the second terminal. The determining by the first SMF a correspondence between the second QoS flow and the first QoS flow or the first interface, or determining a correspondence between the data feature and the first QoS flow or the first interface, mentioned in the above embodiment, may also include: after the link quality information of the transmission path from the first terminal to the second terminal is obtained, the first UPF sends the link quality information to a control plane network element (e.g., the first SMF), and the control plane network element determines the correspondence based on the link quality information. For example, after obtaining the link quality information of the transmission path from the first terminal to the second terminal, the first UPF can send the link quality information to the first SMF. The first SMF may determine, based on the QoS requirements of the data, a first QoS flow to be used when the first UPF forwards the data to the second UPF, and configure, for the first UPF, a correspondence between the second QoS flow and the first QoS flow between the first terminal and the first UPF. Alternatively, a correspondence between the data characteristics and the first QoS flow is configured for the first UPF, etc.

[0369] In some other embodiments, when the first UPF sends a link detection request (e.g., a third link detection request) to the second UPF, the second UPF can return link quality information to the first UPF, including a timestamp at which the second UPF received the link detection request and a timestamp at which the second UPF sent the link quality information. For example, the first UPF can send a detection packet to the second UPF via the first interface, and the first UPF can insert the link detection request into the detection packet. The second UPF then sends link quality information to the first UPF, including a timestamp at which the second UPF received the detection packet (i.e., a timestamp at which the link detection request was received) and a timestamp at which the second UPF sent the link quality information. The first UPF can determine the link quality of the transmission path from the first UPF to the second UPF based on the received link quality information. For example, the first UPF may determine a link delay of the transmission path from the first UPF to the second UPF based on a timestamp at which the second UPF receives the detection packet and a timestamp at which the second UPF transmits the link quality information. The link delay is the link quality. For example, if the timestamp at which the second UPF receives the detection packet is 5 milliseconds earlier than the timestamp at which the second UPF transmits the link quality information, the first UPF can determine that the link delay of the transmission path from the first UPF to the second UPF is 5 milliseconds. Indeed, it can be understood that 5 milliseconds is just an example for explanation.

[0370] The first UPF and a control plane network element (e.g., a first SMF) can then determine a maximum delay from the first terminal to the second terminal based on a maximum delay budget from the first terminal to the first UPF, a link quality from the first UPF to the second UPF, and a maximum delay budget from the second UPF to the second terminal, to determine a first QoS flow for delivering packets when the first UPF forwards data to the second UPF. Alternatively, when it is determined that data is forwarded between another terminal and the terminal, a first interface and / or a first QoS flow between the first UPF and the second UPF is used to forward the data packets.

[0371] Similarly, when the second UPF can send a link detection request to the first UPF, the first UPF can return link quality information to the second UPF, including a timestamp at which the first UPF received the link detection request and a timestamp at which the first UPF sent the link quality information. The second UPF can determine a link quality of a transmission path from the second UPF to the first UPF based on the timestamp at which the first UPF received the link detection request and the timestamp at which the first UPF sent the link quality information. Then, the second UPF and a control plane network element (e.g., a second SMF) can determine a maximum delay from the second terminal to the first terminal based on a maximum delay budget from the second terminal to the second UPF, a link quality from the second UPF to the first UPF, and a maximum delay budget from the first UPF to the first terminal, to determine a first QoS flow for delivering packets when the second UPF forwards data to the first UPF.

[0372] The above mainly describes the solutions provided in the embodiments of the present application from the perspective of interactions between network elements. It can be understood that, to implement the above functions, each network element, such as a first user plane network element, a second user plane network element, a first terminal, or a second terminal, includes a corresponding hardware structure and / or software module for performing each function.

[0373] For example, an embodiment of the present application may further provide a communication device that can be applied to the first user plane function. Figure 13 is a schematic diagram of a structure of a communication device according to an embodiment of the present application. As shown in Figure 13, the communication device includes a receiving unit 1301 and a transmitting unit 1302.

[0374] The receiving unit 1301 is configured to receive data from a first terminal, the data being data to be transmitted to a second terminal. The transmitting unit 1302 is configured to transmit data to a second user plane function via a first QoS, the second user plane function being a user plane function corresponding to the second terminal.

[0375] In one possible design, the data includes a link detection indication, which is for instructing the transmitting unit 1302 to insert link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function into the data based on the link detection indication.

[0376] In one possible design, the transmitting unit 1302 is further configured to transmit a first link detection request to the first terminal, and the receiving unit 1301 is further configured to receive, from the first terminal, link quality information of a transmission path from the first user plane function to the first terminal.

[0377] In one possible design, the receiving unit 1301 is further configured to receive a second link detection request from a second user plane function, and the transmitting unit 1302 is further configured to transmit link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function to the second user plane function.

[0378] In one possible design, the transmitting unit 1302 is further configured to transmit a third link detection request to the second user plane function, the receiving unit 1301 is further configured to receive from the second user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal, and the transmitting unit 1302 is further configured to transmit to the first terminal the link quality information of the transmission path from the first terminal to the first user plane function, the link quality information of the transmission path from the first user plane function to the second user plane function, and the link quality information of the transmission path from the second user plane function to the second terminal.

[0379] 13 , in one possible design, the link quality information of the transmission path from the first user plane function to the second user plane function includes a timestamp at which the second user plane function received the third link detection request and a timestamp at which the second user plane function sent the link quality information. The apparatus further includes a processing unit 1303 configured to determine a link quality of the transmission path from the first user plane function to the second user plane function based on the link quality information.

[0380] 13 , in one possible design, the receiving unit 1301 is specifically configured to receive data from the first terminal via a second QoS flow, and the apparatus further includes a processing unit 1303 configured to determine a first QoS flow corresponding to the second QoS flow based on a correspondence between the second QoS flow and the first QoS flow. The correspondence between the second QoS flow and the first QoS flow is determined based on a QoS requirement that can be satisfied by the second QoS flow and a QoS requirement that can be satisfied by the first QoS flow.

[0381] In one possible design, the receiving unit 1301 is further configured to receive first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the second QoS flow and the first QoS flow.

[0382] In one possible design, the first configuration information includes identifier information of the second QoS flow and identifier information of the first QoS flow corresponding to the second QoS flow.

[0383] In one possible design, the first configuration information further includes identifier information of the first interface, and the first configuration information is for instructing the transmitting unit 1302 to transmit data to a second user plane function on the first interface via the first QoS flow.

[0384] In one possible design, the second QoS flow and the first QoS flow have the same identifier information.

[0385] In another possible design, the receiving unit 1301 is specifically configured to receive data from the first terminal via a second QoS flow, and the processing unit 1303 is configured to determine a first interface corresponding to the second QoS flow and determine a first QoS flow corresponding to the first interface based on a correspondence between the second QoS flow and the first interface, where the correspondence between the second QoS flow and the first interface is determined based on the QoS requirements that can be satisfied by the second QoS flow and the QoS requirements that can be satisfied by the first interface.

[0386] In one possible design, the receiving unit 1301 is further configured to receive first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the second QoS flow and the first interface.

[0387] In one possible design, the first configuration information includes identifier information of the second QoS flow and identifier information of the first interface corresponding to the second QoS flow.

[0388] In yet another possible design, the processing unit 1303 is configured to determine, based on a correspondence between the data characteristic and the first QoS flow, the first QoS flow corresponding to the data characteristic.

[0389] In one possible design, the receiving unit 1301 is further configured to receive first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the data characteristics and the first QoS flow.

[0390] In one possible design, the first configuration information includes a data characteristic and identifier information of a first QoS flow corresponding to the data characteristic.

[0391] In one possible design, the first configuration information further includes identifier information of the first interface, and the first configuration information is for instructing the transmitting unit 1302 to transmit data to a second user plane function on the first interface via the first QoS flow.

[0392] In yet another possible design, the processing unit 1303 is configured to determine a first interface corresponding to a data characteristic of the data based on the correspondence between the data characteristic and the first interface, and to determine a first QoS flow corresponding to the first interface.

[0393] In one possible design, the receiving unit 1301 is further configured to receive first configuration information from the first session management function, the first configuration information being for indicating a correspondence between the data characteristics and the first interface.

[0394] In one possible design, the first configuration information includes a data feature and identifier information of a first interface corresponding to the data feature.

[0395] In one possible design, the data includes a user tunnel identifier, where the user tunnel identifier is for indicating that the data is data sent by the first terminal to the second terminal.

[0396] An embodiment of the present application further provides a communication device applied to a second user plane network element. Figure 14 is another schematic diagram of the structure of a communication device according to an embodiment of the present application. As shown in Figure 14, the communication device includes a receiving unit 1401 and a sending unit 1402.

[0397] The receiving unit 1401 is configured to receive data from a first user plane function via a first QoS flow, where the first user plane function is a user plane function corresponding to a first terminal, and the data is data to be transmitted to a second terminal. The transmitting unit 1402 is configured to transmit the data to the second terminal.

[0398] In one possible design, the data includes a link detection indication, which is for instructing the transmitting unit 1402 to insert link quality information of a transmission path from a first user plane function to a second user plane function into the data based on the link detection indication.

[0399] In one possible design, the transmitting unit 1402 is further configured to transmit a second link detection request to the first user plane function, the receiving unit 1401 is further configured to receive from the first user plane function link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function, and the transmitting unit 1402 is further configured to transmit to the second terminal the link quality information of the transmission path from the first user plane function to the first terminal, the link quality information of the transmission path from the second user plane function to the first user plane function, and the link quality information of the transmission path from the second terminal to the second user plane function.

[0400] In one possible design, the receiving unit 1401 is further configured to receive a third link detection request from the first user plane function, and the transmitting unit 1402 is further configured to transmit link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal to the first user plane function.

[0401] In one possible design, the transmitting unit 1402 is further configured to transmit a fourth link detection request to the second terminal, and the receiving unit 1401 is further configured to receive link quality information of a transmission path from the second terminal from the second user plane function to the second terminal.

[0402] 14 , in one possible design, the transmitting unit 1402 is further configured to transmit a link detection request to the first user plane function, and the receiving unit 1401 is further configured to receive link quality information from the first user plane function, where the link quality information includes a timestamp at which the first user plane function receives the link detection request and a timestamp at which the first user plane function transmits the link quality information. The apparatus further includes a processing unit 1403 configured to determine a link quality of a transmission path from the second user plane function to the first user plane function based on the link quality information.

[0403] 14 , in one possible design, the sending unit 1402 is specifically configured to send data to the second terminal via a third QoS flow. The apparatus further includes a processing unit 1403 configured to determine a third QoS flow corresponding to the first QoS flow based on a correspondence between the first QoS flow and the third QoS flow. The correspondence between the first QoS flow and the third QoS flow is determined based on a QoS requirement that can be satisfied by the first QoS flow and a QoS requirement that can be satisfied by the third QoS flow.

[0404] In one possible design, the receiving unit is further configured to receive second configuration information from a second session management function, the second configuration information being for indicating a correspondence between the first QoS flow and a third QoS flow.

[0405] In one possible design, the second configuration information includes identifier information of the first QoS flow and identifier information of a third QoS flow corresponding to the first QoS flow.

[0406] In one possible design, the identifier information of the first QoS flow is the same as the identifier information of the third QoS flow.

[0407] In another possible design, the receiving unit 1401 is specifically configured to receive data from a first user plane function on a first interface via a first QoS flow, the sending unit 1402 is specifically configured to send data to a second terminal via a third QoS flow, and the processing unit 1403 is configured to determine a third QoS flow corresponding to the first interface based on a correspondence between the first interface and the third QoS flow. The correspondence between the first interface and the third QoS flow is determined based on a QoS requirement that can be satisfied by the first interface and a QoS requirement that can be satisfied by the third QoS flow.

[0408] In one possible design, the receiving unit 1401 is further configured to receive second configuration information from a second session management function, the second configuration information being for indicating a correspondence between the first interface and a third QoS flow.

[0409] In one possible design, the second configuration information includes identifier information of the first interface and identifier information of a third QoS flow corresponding to the first interface.

[0410] In one possible design, the data includes a user tunnel identifier, where the user tunnel identifier is for indicating that the data is data sent by the first terminal to the second terminal.

[0411] Optionally, an embodiment of the present application further provides a communication device applied to the first terminal. Figure 15 is yet another schematic diagram of the structure of the communication device according to an embodiment of the present application. As shown in Figure 15, the communication device includes a sending unit 1501 and a receiving unit 1502.

[0412] The sending unit 1501 is configured to send a link detection indication and link quality information of a transmission path from the second terminal to the first terminal to the second terminal. The receiving unit 1502 is configured to receive the link quality information of a transmission path from the first terminal to the second terminal from the second terminal.

[0413] In one possible design, the link quality information of the transmission path from the first terminal to the second terminal includes link quality information of the transmission path from the first terminal to the first user plane function, link quality information of the transmission path from the first user plane function to the second user plane function, and link quality information of the transmission path from the second user plane function to the second terminal.

[0414] In one possible design, the link quality information of the transmission path from the first terminal to the first user plane function includes link quality information of the transmission path from the first terminal to an access network device of the first terminal and link quality information of the transmission path from the access network device of the first terminal to the first user plane function.

[0415] In one possible design, the link quality information of the transmission path from the second user plane function to the second terminal includes link quality information of the transmission path from the second user plane function to an access network device of the second terminal and link quality information of the transmission path from the access network device of the second terminal to the second terminal.

[0416] In one possible design, the link detection indication is specifically for conveying the link detection indication and for instructing to detect link quality information of a QoS flow in a transmission path from the first terminal to the second terminal.

[0417] In another possible design, the link detection indication includes identifier information of one or more QoS flows.

[0418] In some other possible designs, the communications device further includes a processing unit (not shown) configured to determine a quality of service flow carrying the data based on link quality information of the transmission path from the first terminal to the second terminal and a quality of service requirement of the data that needs to be transmitted to the second terminal.

[0419] Similarly, the second terminal also has a device similar to that of the first terminal, and is configured to implement the function of sending a link detection indication by the second terminal to the first terminal to obtain link quality information of the transmission path from the second terminal to the first terminal, the details of which will not be described again here.

[0420] Optionally, an embodiment of the present application further provides a communication device applied to the first user plane network element. Figure 16 is yet another schematic diagram of the structure of the communication device according to an embodiment of the present application. As shown in Figure 16, the communication device includes a sending unit 1601 and a receiving unit 1602.

[0421] The transmitting unit 1601 is configured to transmit a first link detection request to a first terminal, and the receiving unit 1602 is configured to receive link quality information of a transmission path from the first terminal to the first terminal from the first user plane function.

[0422] In one possible design, the receiving unit 1602 is further configured to receive a second link detection request from a second user plane function, and the transmitting unit 1601 is further configured to transmit link quality information of a transmission path from the first user plane function to the first terminal and link quality information of a transmission path from the second user plane function to the first user plane function to the second user plane function.

[0423] In one possible design, the transmitting unit 1601 is further configured to transmit a third link detection request to the second user plane function, the receiving unit 1602 is further configured to receive from the second user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal, and the transmitting unit 1601 is further configured to transmit to the first terminal the link quality information of the transmission path from the first terminal to the first user plane function, the link quality information of the transmission path from the first user plane function to the second user plane function, and the link quality information of the transmission path from the second user plane function to the second terminal.

[0424] Similarly, the second user plane function also has an apparatus similar to the first user plane function, and is configured to realize the functions realizable by the second user plane function in the above-mentioned embodiment, such as sending a second link detection request to the first user plane function, sending link quality information of the transmission path from the second terminal to the first terminal to the terminal, receiving a third link detection request from the first user plane function, sending a fourth link detection request to the second terminal, sending link quality information of the transmission path from the second user plane function to the second terminal, etc. to the second user plane function. The specific implementation of the apparatus for the second user plane function will not be described again here using the accompanying drawings.

[0425] Optionally, an embodiment of the present application further provides a communication device. The communication device may be applied to any one of the first user plane network element, the second user plane network element, the first terminal, and the second terminal. Figure 17 is yet another schematic diagram of a structure of a communication device according to an embodiment of the present application. As shown in Figure 17, the communication device may include a transceiver unit 1701 and a processing unit 1702.

[0426] The transceiver unit 1701 may be configured to transmit and receive information or to communicate with another network element. The processing unit 1702 may be configured to process data.

[0427] When the communication device is applied in a first user plane network element, a second user plane network element, a first terminal, or a second terminal, the transceiver unit 1701 and the processing unit 1702 may be configured to implement a method correspondingly performed by the first user plane network element, the second user plane network element, the first terminal, or the second terminal in the aforementioned embodiments.

[0428] It should be understood that the division of units in the device is merely a logical division of functions. During actual implementation, all or part of the units may be integrated into one physical entity or may be physically separated. Furthermore, all units in the device may be implemented in a form in which a processing element calls software, or in a form of hardware, or some units may be implemented in a form in which a processing element calls software, and some units are implemented in a form of hardware.

[0429] For example, the units may be separately located processing elements or may be integrated into a chip of the device for implementation. Furthermore, the units may be stored in a memory in a program form and called by a processing element of the device to execute the functions of the units. Furthermore, such units may be integrated together or implemented individually. The processing element in this specification may also be called a processor and may be an integrated circuit having signal processing capabilities. During implementation, the steps in the aforementioned method or the aforementioned units may be implemented by using hardware integrated logic circuits in the processing element or in a form in which the processing element calls software.

[0430] In one example, any one of the aforementioned units in the apparatus may be one or more integrated circuits configured to perform the aforementioned method, such as one or more ASICs, one or more DSPs, one or more FPGAs, or a combination of at least two of the integrated circuit types.

[0431] As another example, when a unit in the device is implemented in the form of a program called by a processing element, the processing element may be a general-purpose processor, such as a CPU or another processor capable of calling a program. As yet another example, the unit may be integrated and implemented in the form of a system-on-a-chip (SOC).

[0432] The aforementioned unit for receiving is an interface circuit or an input circuit of the device, configured to receive a signal from another device. For example, when the device is implemented by using a chip, the receiving unit is an interface circuit or an input circuit used by the chip to receive a signal from another chip or device. When the communication device includes a unit for transmitting, the unit for transmitting is an interface circuit or an output circuit of the device, configured to transmit a signal to another device. For example, when the device is implemented by using a chip, the transmitting unit is an interface circuit or an output circuit used by the chip to transmit a signal to another chip or device.

[0433] For example, an embodiment of the present application may further provide a communication device, which may be applied to any one of the first user plane network element, the second user plane network element, the first terminal, and the second terminal. The communication device may include a processor and an interface circuit. There may be one or more processors.

[0434] When the communication device is applied in a first user plane network element, a second user plane network element, a first terminal, or a second terminal, the processor is configured to communicate with another device by using the interface circuit, and to perform steps correspondingly performed by the first user plane network element, the second user plane network element, the first terminal, or the second terminal in the aforementioned method.

[0435] In one implementation, the unit used by the first user plane network element, the second user plane network element, the first terminal, or the second terminal to implement the corresponding steps in the aforementioned method may be implemented by using a processing element to schedule a program. For example, the device used by the first user plane network element, the second user plane network element, the first terminal, or the second terminal may include a processing element and a storage element. The processing element calls the program stored in the storage element and executes the method performed by the first user plane network element, the second user plane network element, the first terminal, or the second terminal in the aforementioned method embodiment. The storage element may be a storage element in which the processing element is located on the same chip, i.e., an on-chip storage element.

[0436] In another implementation, the program used to execute the method performed by the first user plane network element, the second user plane network element, the first terminal, or the second terminal in the above-mentioned method may be in a storage element located on a chip different from the chip of the processing element, i.e., an off-chip storage element, in which case the processing element calls or loads the program from the off-chip storage element to the on-chip storage element to call and execute the method performed by the first user plane network element, the second user plane network element, the first terminal, or the second terminal in the above-mentioned method embodiments.

[0437] For example, an embodiment of the present application may further provide a communication device. The communication device may include a processor configured to execute computer instructions stored in the memory. When the computer instructions are executed, the device is enabled to execute a method performed by a first user plane network element, a second user plane network element, a first terminal, or a second terminal. The memory may be located within the communication device or may be located external to the communication device. There are one or more processors.

[0438] In yet another implementation, the units for implementing the steps of the aforementioned method by the first user plane network element, the second user plane network element, the first terminal, or the second terminal may be configured as one or more processing elements. These processing elements may be located in the corresponding first user plane network element, the second user plane network element, the first terminal, or the second terminal. A processing element herein may be an integrated circuit, for example, one or more ASICs, one or more DSPs, one or more FPGAs, or a combination of these semi-integrated circuits. These integrated circuits may be integrated together to form a chip.

[0439] The units for implementing the steps of the aforementioned methods by the first user plane network element, the second user plane network element, the first terminal, or the second terminal may be integrated together and implemented in the form of a SOC. The SOC chip is configured to implement the corresponding method. At least one processing element and a storage element may be integrated into the chip, and the processing element calls a program stored in the storage element to implement the corresponding method. Alternatively, at least one integrated circuit may be integrated into the chip to implement the corresponding method. Alternatively, referring to the aforementioned implementation, some functions of the units may be implemented by calling a program by the processing element, and some functions of the units may be implemented by the integrated circuit.

[0440] As mentioned above, the processing elements herein may be a general purpose processor, e.g., a CPU, or may be one or more integrated circuits configured to perform the methods described above, e.g., one or more ASICs, one or more microprocessors DSPs, one or more FPGAs, or a combination of at least two of the integrated circuits.

[0441] The storage element may be a single memory or may be a collective term for multiple storage elements.

[0442] For example, an embodiment of the present application further provides a chip system. The chip system can be applied to any one of the first user plane network element, the second user plane network element, the first terminal, or the second terminal. The chip system includes one or more interface circuits and one or more processors. The interface circuits and the processors are interconnected by lines. The processor receives and executes computer instructions from a memory of an electronic device by using the interface circuits to implement the method performed by the first user plane network element, the second user plane network element, the first terminal, or the second terminal in the above-mentioned method embodiments.

[0443] From the above description of the implementation, those skilled in the art can understand that for the purpose of simple and concise description, the above division of functional modules is taken as an example for illustration. In actual application, the above functions can be allocated to different modules and implemented according to requirements, that is, the internal structure of the device is divided into different functional modules to implement all or part of the above functions.

[0444] In some embodiments provided in the present application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the described device embodiment is merely an example. For example, the division into modules or units is merely a logical functional division, and other divisions may be used in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not implemented. Furthermore, the shown or discussed mutual couplings or direct couplings or communication connections may be implemented by using some interfaces. Indirect couplings or communication connections between devices or units may be implemented in electronic, mechanical, or other forms.

[0445] The units described as separate parts may or may not be physically separate, and the parts shown as units may be one or more physical units, located in one place or distributed in different places. Some or all of the units may be selected based on actual requirements to achieve the objectives of the solutions of the embodiments.

[0446] Furthermore, the functional units in the embodiments of the present application may be integrated into one processing unit, each of the units may exist physically alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0447] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on such understanding, the technical solution of the embodiments of the present application in essence, or the part contributing to the prior art, or all or part of the technical solution may be implemented in the form of a software product, for example, a program. The software product includes a program product, for example, stored in a computer-readable storage medium, and some instructions for instructing a device (which may be a single-chip microcomputer, chip, etc.) or a processor to execute all or part of the steps of the method described in the embodiments of the present application. The aforementioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.

[0448] For example, an embodiment of the present application may further provide a computer-readable storage medium including computer software instructions, which, when executed on a core network device or embedded in a chip of the core network device, enables the core network device to execute the method performed by the first user plane network element or the second user plane network element in the above embodiment.

[0449] Alternatively, when the computer software instructions are executed on the terminal or a chip integrated in the terminal, the terminal is enabled to execute the method performed by the first terminal or the second terminal in the above-mentioned embodiments.

[0450] The above description is merely a specific implementation of the present application, and is not intended to limit the protection scope of the present application. Any variation or replacement within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims. According to an example of the present invention, the present application further provides the following embodiments. Embodiment 1: 1. A data transmission method, comprising: receiving data from a first terminal by a first user plane function, the data being data to be transmitted to a second terminal; transmitting, by the first user plane function, the data via a first quality of service flow to a second user plane function, the second user plane function being a user plane function corresponding to the second terminal; The method includes: Embodiment 2: The data includes a link detection indication, the method comprising: inserting, by the first user plane function, link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function into the data based on the link detection indication. 2. The method of embodiment 1, further comprising: Embodiment 3: The method comprises: transmitting a first link detection request to the first terminal by the first user plane function; receiving from the first terminal by the first user plane function link quality information of a transmission path from the first user plane function to the first terminal; 2. The method of embodiment 1, further comprising: Embodiment 4: The method comprises: receiving, by the first user plane function, a second link discovery request from the second user plane function; transmitting, by the first user plane function to the second user plane function, the link quality information of the transmission path from the first user plane function to the first terminal and the link quality information of the transmission path from the second user plane function to the first user plane function; 4. The method of embodiment 3, further comprising: Embodiment 5: The method comprises: sending, by the first user plane function, a third link discovery request to the second user plane function; receiving from the second user plane function by the first user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal; transmitting, by the first user plane function to the first terminal, link quality information of a transmission path from the first terminal to the first user plane function, the link quality information of the transmission path from the first user plane function to the second user plane function, and the link quality information of the transmission path from the second user plane function to the second terminal; 5. The method of embodiment 3 or 4, further comprising: Embodiment 6: the link quality information of the transmission path from the first user plane function to the second user plane function includes a timestamp at which the second user plane function received the third link detection request and a timestamp at which the second user plane function sent the link quality information; The method comprises: determining, by the first user plane function, a link quality of the transmission path from the first user plane function to the second user plane function based on the link quality information of the transmission path from the first user plane function to the second user plane function; 6. The method of embodiment 5, further comprising: Embodiment 7: The step of receiving data from the first terminal by the first user plane function includes: receiving, by the first user plane function, the data from the first terminal over a second quality of service flow; The method includes: determining, by the first user plane function, the first quality of service flow corresponding to the second quality of service flow based on a correspondence between the second quality of service flow and the first quality of service flow. 7. The method of any one of embodiments 1 to 6, further comprising: Embodiment 8: The method comprises: receiving, by the first user plane function, first configuration information from a first session management function, the first configuration information for indicating the correspondence between the second quality of service flow and the first quality of service flow. 8. The method of embodiment 7, further comprising: Embodiment 9: 9. The method of embodiment 8, wherein the first configuration information includes identifier information of the second quality of service flow and identifier information of the first quality of service flow corresponding to the second quality of service flow. Embodiment 10: The method of embodiment 8 or 9, wherein the first configuration information further includes identifier information of a first interface, the first interface being an interface between the first user plane function and the second user plane function, and the first configuration information is for instructing the first user plane function to transmit the data to the second user plane function on the first interface via the first quality of service flow. Embodiment 11: 11. The method of any one of embodiments 7 to 10, wherein the identifier information of the second quality of service flow is the same as the identifier information of the first quality of service flow. Embodiment 12: The method comprises: determining, by the first user plane function, the first quality of service flow corresponding to the data characteristics based on a correspondence between the data characteristics and the first quality of service flow. 7. The method of any one of embodiments 1 to 6, further comprising: Embodiment 13: The method comprises: receiving, by the first user plane function, first configuration information from a first session management function, the first configuration information for indicating the correspondence between the data characteristics and the first quality of service flow. 13. The method of embodiment 12, further comprising: Embodiment 14: 14. The method of embodiment 13, wherein the first configuration information includes the data feature and identifier information of the first quality of service flow corresponding to the data feature. Embodiment 15: The method of embodiment 13 or 14, wherein the first configuration information further includes identifier information of a first interface, the first interface being an interface between the first user plane function and the second user plane function, and the first configuration information is for instructing the first user plane function to transmit the data to the second user plane function on the first interface via the first quality of service flow. Embodiment 16: 16. The method of any one of claims 1 to 15, wherein the data includes a user tunnel identifier, the user tunnel identifier being for indicating that the data is data to be transmitted by the first terminal to the second terminal. Embodiment 17: A link quality detection method, comprising: sending, by a first terminal to a second terminal, a link detection indication and link quality information of a transmission path from the second terminal to the first terminal; receiving, by the first terminal, from the second terminal, link quality information of a transmission path from the first terminal to the second terminal; The method includes: Embodiment 18: The method of embodiment 17, wherein the link detection indication is specifically for instructing to detect link quality information of a quality of service flow that carries the link detection indication and is in a transmission path from the first terminal to the second terminal. Embodiment 19: 18. The method of embodiment 17, wherein the link detection indication includes identifier information of one or more quality of service flows. Embodiment 20: 20. The method of embodiment 19, wherein the identifier information of the one or more quality of service flows includes identifier information of a quality of service flow between the first terminal and a first user plane function, identifier information of a quality of service flow between the first user plane function and a second user plane function, and identifier information of a quality of service flow between the second user plane function and the second terminal. Embodiment 21: The method comprises: determining, by the first terminal, a quality of service flow carrying said data based on said link quality information of said transmission path from said first terminal to said second terminal and on a quality of service requirement of said data that needs to be transmitted to said second terminal; 21. The method of any one of embodiments 17 to 20, further comprising: Embodiment 22: A communications device adapted for a first user plane function, the device comprising: a receiving unit configured to receive data from a first terminal, the data being data to be transmitted to a second terminal; a transmitting unit configured to transmit the data via a first quality of service flow to a second user plane function, the second user plane function being a user plane function corresponding to the second terminal; An apparatus comprising: Embodiment 23: The apparatus of embodiment 22, wherein the data includes a link detection indication, and the transmitting unit is further configured to insert link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function into the data based on the link detection indication. Embodiment 24: The transmitting unit is further configured to transmit a first link detection request to the first terminal; 23. The apparatus of embodiment 22, wherein the receiving unit is further configured to receive, from the first terminal, link quality information of a transmission path from the first user plane function to the first terminal. Embodiment 25: The receiving unit is further configured to receive a second link detection request from the second user plane function; 25. The apparatus of embodiment 24, wherein the transmitting unit is further configured to transmit to the second user plane function the link quality information of the transmission path from the first user plane function to the first terminal and the link quality information of the transmission path from the second user plane function to the first user plane function. Embodiment 26: the transmitting unit is further configured to transmit a third link detection request to the second user plane function; the receiving unit is further configured to receive, from the second user plane function, link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal; The apparatus of embodiment 24 or 25, wherein the transmitting unit is further configured to transmit to the first terminal link quality information of a transmission path from the first terminal to the first user plane function, the link quality information of the transmission path from the first user plane function to the second user plane function, and the link quality information of the transmission path from the second user plane function to the second terminal. Embodiment 27: the link quality information of the transmission path from the first user plane function to the second user plane function includes a timestamp at which the second user plane function received the third link detection request and a timestamp at which the second user plane function sent the link quality information; The apparatus of embodiment 26, further comprising a processing unit configured to determine a link quality of the transmission path from the first user plane function to the second user plane function based on the link quality information of the transmission path from the first user plane function to the second user plane function. Embodiment 28: The receiving unit is specifically configured to receive the data from the first terminal via a second quality of service flow; The apparatus of any one of embodiments 22 to 27, further comprising the processing unit configured to determine the first quality of service flow corresponding to the second quality of service flow based on a correspondence between the second quality of service flow and the first quality of service flow. Embodiment 29: The apparatus of embodiment 28, wherein the receiving unit is further configured to receive first configuration information from a first session management function, the first configuration information being for indicating the correspondence between the second quality of service flow and the first quality of service flow. Embodiment 30: 30. The apparatus of embodiment 29, wherein the first configuration information includes identifier information of the second quality of service flow and identifier information of the first quality of service flow corresponding to the second quality of service flow. Embodiment 31: The apparatus of embodiment 29 or 30, wherein the first configuration information further includes identifier information of a first interface, the first interface being an interface between the first user plane function and the second user plane function, and the first configuration information is for instructing the transmitting unit to transmit the data to the second user plane function on the first interface via the first quality of service flow. Embodiment 32: 32. The apparatus of any one of embodiments 28 to 31, wherein the identifier information of the second quality of service flow is the same as the identifier information of the first quality of service flow. Embodiment 33: The device comprises: 28. The apparatus of any one of embodiments 22 to 27, further comprising the processing unit configured to determine the first quality of service flow corresponding to the data characteristics based on a correspondence between data characteristics of the data and the first quality of service flow. Embodiment 34: The apparatus of embodiment 33, wherein the receiving unit is further configured to receive first configuration information from a first session management function, the first configuration information being for indicating the correspondence between the data characteristics and the first quality of service flow. Embodiment 35: 35. The apparatus of embodiment 34, wherein the first configuration information includes the data feature and identifier information of the first quality of service flow corresponding to the data feature. Embodiment 36: The apparatus of embodiment 34 or 35, wherein the first configuration information further includes identifier information of a first interface, the first interface being an interface between the first user plane function and the second user plane function, and the first configuration information is for instructing the transmitting unit to transmit the data to the second user plane function on the first interface via the first quality of service flow. Embodiment 37: The apparatus of any one of embodiments 22 to 36, wherein the data includes a user tunnel identifier, the user tunnel identifier being for indicating that the data is data to be transmitted by the first terminal to the second terminal. Embodiment 38: A communication device, adapted for a first terminal, comprising: a transmitting unit configured to transmit to a second terminal a link detection indication and link quality information of a transmission path from the second terminal to the first terminal; a receiving unit configured to receive, from the second terminal, link quality information of a transmission path from the first terminal to the second terminal; An apparatus comprising: Embodiment 39: The apparatus of embodiment 38, wherein the link detection indication is specifically for instructing to detect link quality information of a quality of service flow that carries the link detection indication and is in a transmission path from the first terminal to the second terminal. Embodiment 40: 39. The apparatus of embodiment 38, wherein the link detection indication includes identifier information of one or more quality of service flows. Embodiment 41: The apparatus of embodiment 40, wherein the identifier information of the one or more quality of service flows includes identifier information of a quality of service flow between the first terminal and a first user plane function, identifier information of a quality of service flow between the first user plane function and a second user plane function, and identifier information of a quality of service flow between the second user plane function and the second terminal. Embodiment 42: The device comprises: a processing unit configured to determine a quality of service flow carrying said data based on said link quality information of said transmission path from said first terminal to said second terminal and on a quality of service requirement of said data that needs to be transmitted to said second terminal; 42. The device of any one of embodiments 38 to 41, further comprising: Embodiment 43: A computer-readable storage medium containing computer software instructions; A computer-readable storage medium, wherein when the computer software instructions are executed on an electronic device or a chip incorporated in the electronic device, the electronic device is enabled to execute the method according to any one of embodiments 1 to 21.

Claims

1. 1. A data transmission method, comprising: receiving, by a first user plane function, data from a first terminal, the data being data to be transmitted to a second terminal, the data including a link detection indication; inserting, by the first user plane function, link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function into the data based on the link detection indication; a step of transmitting, by the first user plane function, the data including the link detection indication and the inserted link quality information to a second user plane function via a first quality of service flow, the second user plane function being a user plane function corresponding to the second terminal, the link detection indication being for instructing the second user plane function to insert link quality information of a transmission path from the first user plane function to the second user plane function into the data; The method includes:

2. The method comprises: transmitting a first link detection request to the first terminal by the first user plane function; receiving from the first terminal by the first user plane function link quality information of a transmission path from the first user plane function to the first terminal; The method of claim 1 further comprising:

3. The method comprises: receiving, by the first user plane function, a second link detection request from the second user plane function; transmitting, by the first user plane function to the second user plane function, the link quality information of the transmission path from the first user plane function to the first terminal and the link quality information of the transmission path from the second user plane function to the first user plane function; The method of claim 2 , further comprising:

4. The method comprises: sending, by the first user plane function, a third link detection request to the second user plane function; receiving from the second user plane function by the first user plane function link quality information of a transmission path from the first user plane function to the second user plane function and link quality information of a transmission path from the second user plane function to the second terminal; transmitting, by the first user plane function to the first terminal, link quality information of a transmission path from the first terminal to the first user plane function, the link quality information of the transmission path from the first user plane function to the second user plane function, and the link quality information of the transmission path from the second user plane function to the second terminal; The method of claim 2 or 3, further comprising:

5. the link quality information of the transmission path from the first user plane function to the second user plane function includes a timestamp at which the second user plane function received the third link detection request and a timestamp at which the second user plane function sent the link quality information; The method comprises: determining, by the first user plane function, a link quality of the transmission path from the first user plane function to the second user plane function based on the link quality information of the transmission path from the first user plane function to the second user plane function; The method of claim 4 further comprising:

6. The step of receiving data from the first terminal by the first user plane function includes: receiving, by the first user plane function, the data from the first terminal over a second quality of service flow; The method includes: determining, by the first user plane function, the first quality of service flow corresponding to the second quality of service flow based on a correspondence between the second quality of service flow and the first quality of service flow. The method of claim 1 , further comprising:

7. The method comprises: receiving, by the first user plane function, first configuration information from a first session management function, the first configuration information for indicating the correspondence between the second quality of service flow and the first quality of service flow. The method of claim 6 further comprising:

8. The method of claim 7 , wherein the first configuration information includes identifier information for the second quality of service flow and identifier information for the first quality of service flow that corresponds to the second quality of service flow.

9. 9. The method of claim 7 or 8, wherein the first configuration information further comprises identifier information of a first interface, the first interface being an interface between the first user plane function and the second user plane function, and the first configuration information is for instructing the first user plane function to transmit the data to the second user plane function on the first interface via the first quality of service flow.

10. The method comprises: determining, by the first user plane function, the first quality of service flow corresponding to the data characteristics based on a correspondence between the data characteristics and the first quality of service flow. The method of claim 1 , further comprising:

11. A link quality detection method, comprising: transmitting data by a first terminal to a second terminal, the data including a link detection indication and link quality information of a transmission path from the second terminal to the first terminal, the link quality information having been previously received from the second terminal; receiving, by the first terminal, from the second terminal, link quality information of a transmission path from the first terminal to the second terminal based on the link detection indication; Including, The method, wherein the link detection indication is for instructing a first user plane function corresponding to the first terminal to insert link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function based on the link detection indication, and for instructing a second user plane function corresponding to the second terminal to insert link quality information of a transmission path from the first user plane function to the second user plane function into the data.

12. The link detection indication is specifically for instructing to detect link quality information of a quality of service flow that carries the link detection indication and is in a transmission path from the first terminal to the second terminal; or The method of claim 11 , wherein the link detection indication includes identifier information of one or more quality of service flows.

13. A communications device adapted for a first user plane function, the device comprising: a receiving unit configured to receive data from a first terminal, the data being data to be transmitted to a second terminal, the receiving unit including a link detection indication; Inserting link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function into the data based on the link detection indication; a transmitting unit configured to transmit the data including the link detection indication and the inserted link quality information to a second user plane function via a first quality of service flow, the second user plane function being a user plane function corresponding to the second terminal, the link detection indication being for instructing the second user plane function to insert link quality information of a transmission path from the first user plane function to the second user plane function into the data; An apparatus comprising:

14. A communication device adapted for a first terminal, the device comprising: a transmitting unit configured to transmit to a second terminal data including a link detection indication and link quality information of a transmission path from the second terminal to the first terminal previously received from the second terminal; a receiving unit configured to receive, from the second terminal, link quality information of a transmission path from the first terminal to the second terminal based on the link detection indication; Including, The link detection indication is for instructing a first user plane function corresponding to the first terminal to insert, into the data, link quality information of a transmission path from the first terminal to the first user plane function or link quality information of a transmission path from an access network device of the first terminal to the first user plane function based on the link detection indication by the first user plane function, and for instructing a second user plane function corresponding to the second terminal to insert, into the data, link quality information of a transmission path from the first user plane function to the second user plane function.

Citation Information

Patent Citations

  • Service quality monitoring method, system and device

    JP2021532641A

  • Methods and apparatuses for supporting a local area network (LAN)

    WO2020148062A1