Method and apparatus for transmitting data

By converting the data transmission channel with the access network device as the anchor point, the continuity problem of media transfer in a multi-device environment is solved, achieving seamless data transmission and improving the user experience.

CN115708369BActive Publication Date: 2026-04-10HUAWEI TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
HUAWEI TECH CO LTD
Filing Date
2021-11-02
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

How to efficiently transfer media from one electronic device to another when a user has multiple electronic devices, while ensuring data transmission continuity and user experience?

Method used

By using access network equipment as an anchor point and changing the data transmission channel between the access network equipment and the terminal, media can be transferred from one terminal to another. This includes information interaction and context modification between the terminal and the access network equipment, ensuring the continuity of data transmission.

Benefits of technology

It enables seamless media transfer, ensures the continuity of data transmission, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115708369B_ABST
    Figure CN115708369B_ABST
Patent Text Reader

Abstract

The application provides a method and a communication device for transmitting data. In the method, when transferring a first media from a first terminal to a second terminal, a data transmission channel between an access network device and the terminal can be changed with the first access network device as an anchor point, that is, the data transmission channel between an application server and the first access network device is kept unchanged, and the data transmission between the access network device and the terminal is converted from the first access network device to the first terminal to the first access network device to the second terminal, so that the first media is transferred from the first terminal to the second terminal. In addition, in the method, after the first media is transferred, the first terminal can exit or maintain the data transmission of the first media, so that the data transmission of the first media is ensured not to be interrupted, and user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

[0001] This application claims priority from the Chinese patent application No. 202110959130.8 filed on August 20, 2021, and entitled "Method for Moving Media in Device", the content of which is incorporated herein by reference in its entirety. TECHNICAL FIELD

[0002] The present application relates to the field of communication, and more particularly, to a method and apparatus for transmitting data. BACKGROUND

[0003] With the development of electronic technology, the number of electronic devices that a user owns or uses at the same time is increasing, for example, a user can own or use a mobile phone, a tablet computer, a television, a computer, or a watch, etc. electronic devices with communication capabilities. In this case, the user will have the need to transfer a certain media from one electronic device to another electronic device. In response to this need, how to transfer media from one electronic device to another electronic device becomes a problem that needs to be solved urgently. SUMMARY

[0004] The present application provides a method and apparatus for transmitting data, which can take an access network device as an anchor point, change the data transmission channel between the access network device and the terminal, and realize the transfer of media of one terminal to another terminal.

[0005] In a first aspect, the present application provides a method for transmitting data, the method comprising: a first terminal determining to transfer a first media to a second terminal; the first terminal sending first information to a first access network device, the first information being used to request to transfer the first media to the second terminal, the first information comprising an identifier of the second terminal, an identifier of a first session of the first terminal, and an identifier of a first quality of service (QoS) flow of the first session, the first session and the first QoS flow being used for the first terminal to transmit data of the first media.

[0006] In the above technical solution, when the first terminal transfers the first media to the second terminal, the first terminal sends the identifier of the second terminal, and the identifier of the first session of the first terminal used to transmit data of the first media and the identifier of the first QoS flow of the first session to the first access network device, so that the first access network device can modify the context of the first terminal and the context of the second terminal according to the received information, thereby realizing the conversion of the data transmission channel of the first QoS of the first session of the first terminal from the first access network device to the first terminal to the first access network device to the second terminal, and realizing the transfer of the first media from the first terminal to the second terminal.

[0007] In addition, in the technical solution, after the first media transfer is completed, the first terminal can quit or maintain the data transmission of the first media, which can ensure that the data transmission of the first media is not interrupted, and helps to improve the user experience.

[0008] With reference to the first aspect, in a possible implementation, the method further includes: the first terminal sending second information to the second terminal, the second information being used for requesting to transfer media to the second terminal; and the first terminal receiving third information from the second terminal, the third information including at least one of the following: an identifier of a cell where the second terminal is located, an identifier of the second terminal, and an identifier of a second session allocated by the second terminal, the second session being used for the second terminal to transmit data of the first media.

[0009] Optionally, the first terminal sends the second information to the second terminal after sending the first information to the first access network device.

[0010] In the technical solution, the first terminal can obtain information required for transferring the first media from the second terminal, and then send the first information to the first access network device according to the obtained information, so as to realize the transfer of the first media from the first terminal to the second terminal.

[0011] With reference to the first aspect or any of the implementation forms thereof, in another possible implementation, the identifier of the second session is encrypted.

[0012] In the technical solution, the identifier of the second session is encrypted, which can improve the legality of transferring the first media to the second terminal.

[0013] With reference to the first aspect or any of the implementation forms thereof, in another possible implementation, when the third information includes the identifier of the second session, the first information further includes the identifier of the second session.

[0014] In other words, the second terminal allocates a session identifier, and the corresponding session of the session identifier is used for the second terminal to transmit data of the first media transferred from the first terminal to the second terminal.

[0015] With reference to the first aspect or any of the implementation forms thereof, in another possible implementation, when the third information includes the identifier of the cell where the second terminal is located, the method further includes: the first terminal determining, according to the identifier of the cell where the second terminal is located, that the second terminal camps on the first access network device.

[0016] In the foregoing technical solution, the first terminal determines that the first terminal and the second terminal reside in the same access network device according to the identifier of the cell where the second terminal resides, which can avoid transfer failure caused by the first terminal and the second terminal residing in different access network devices.

[0017] With reference to the first aspect or any possible implementation manner thereof, in a possible implementation manner, the second information further includes an identifier of the first media.

[0018] With reference to the first aspect or any possible implementation manner thereof, in a possible implementation manner, the first information further includes an identifier of the first media.

[0019] With reference to the first aspect or any possible implementation manner thereof, in a possible implementation manner, the first terminal sends the first information to the first access network device, including that the first terminal sends the first information to the first access network device through an access and mobility management function (AMF) that provides service for the first terminal.

[0020] In a second aspect, a method for transmitting data is provided, including: a second terminal obtaining first uplink data of a first media, the first media being a media transferred from a first terminal to the second terminal; the second terminal determining to send the first uplink data through a second QoS flow of a second session according to context information of the second QoS flow of the second session; and the second terminal sending the first uplink data to a first access network device through a second data radio bearer (DRB) according to a first correspondence relationship, wherein the first correspondence relationship includes a correspondence relationship between the second QoS flow of the second session and the second DRB, the context information of the second session is determined according to context information of a first session of the first terminal, the context information of the second QoS flow is determined according to context information of a first QoS flow of the first session, and the first session and the first QoS flow are used for the first terminal to transmit data of the first media.

[0021] In a possible implementation manner, the second terminal determines to send the first uplink data through a second QoS flow of a second session according to a QoS rule in context information of the second QoS flow of the second session.

[0022] In the technical solution, the second terminal transmits the data of the first media by using the second QoS flow of the second session. Since the context of the second session is determined according to the context information of the first session of the first terminal used for transmitting the data of the first media, and the context of the second QoS flow is determined according to the context information of the first QoS flow of the first session, the second terminal can correctly transmit the data of the first media, thereby realizing the transfer of the first media from the first terminal to the second terminal.

[0023] With reference to the second aspect, in a possible implementation, the method further includes: obtaining, by the second terminal, fourth information from the first access network device, the fourth information including: an identifier of the second session, an identifier of the second QoS flow, the context information of the first session, and the context information of the first QoS flow; and determining, by the second terminal, the context information of the second session and the context information of the second QoS flow according to the fourth information, and generating the first correspondence.

[0024] It should be noted that the context of the second session and the context of the second QoS flow can be generated locally by the second terminal, or can be configured for the second terminal by the first access network device, which is not limited in the present application.

[0025] With reference to the second aspect or any possible implementation of the second aspect, in another possible implementation, the method further includes: receiving, by the second terminal, second information from the first terminal, the second information being used for requesting to transfer the media to the second terminal; and sending, by the second terminal, third information to the first terminal, the third information including at least one of the following information: an identifier of a cell where the second terminal is located, an identifier of the second terminal, and an identifier of the second session.

[0026] In the technical solution, the first terminal can obtain the information required for transferring the first media from the second terminal, and then send the first information to the first access network device according to the obtained information, thereby realizing the transfer of the first media from the first terminal to the second terminal.

[0027] With reference to the second aspect or any possible implementation of the second aspect, in another possible implementation, the second information further includes an identifier of the first media.

[0028] With reference to the second aspect or any possible implementation of the second aspect, in another possible implementation, the fourth information further includes at least one of the following information: context information of the second DRB, and an identifier of the first media.

[0029] With reference to the second aspect or any possible implementation manner thereof, in a possible implementation manner, the method further includes: receiving, by the second terminal, fifth information, the fifth information being used to inquire whether to agree to transfer the first media to the second terminal; and sending, by the second terminal, sixth information, the sixth information being used to indicate that the first media is agreed to be transferred to the second terminal.

[0030] In the above technical solution, by inquiring whether the second terminal agrees to transfer the first media from the first terminal to the second terminal, it is helpful to avoid the influence of the misoperation of the first terminal on the second terminal, so as to make the first media transfer process more accurate.

[0031] With reference to the second aspect or any possible implementation manner thereof, in a possible implementation manner, the receiving, by the second terminal, of the fifth information includes: receiving, by the second terminal, the fifth information from the first access network device; or receiving, by the second terminal, the fifth information from a first access and mobility management function (AMF) that provides services for the first terminal.

[0032] With reference to the second aspect or any possible implementation manner thereof, in a possible implementation manner, the sixth information further includes an identifier of the second session.

[0033] In other words, the second terminal can provide the identifier of the second session to the first access network device or the first AMF in the inquiry process of the first access network device or the first AMF.

[0034] With reference to the second aspect or any possible implementation manner thereof, in a possible implementation manner, the identifier of the second session is encrypted.

[0035] In the above technical solution, the identifier of the second session is encrypted, which can improve the legality of transferring the first media to the second terminal.

[0036] With reference to the second aspect or any possible implementation manner thereof, in a possible implementation manner, when the second terminal enters a coverage of a second access network device from a coverage of the first access network device, or the first terminal enters a coverage of a third access network device from the coverage of the first access network device, the method further includes: the second terminal obtaining second uplink data of the first media; the second terminal determining to send the second uplink data through a third QoS flow of a third session according to context information of the third QoS flow of the third session; and the second terminal sending the second uplink data to the first access network device through a third DRB according to a second correspondence relationship, where the second correspondence relationship includes a correspondence relationship between the third QoS flow of the third session and the third DRB, and the context information of the third session is determined according to the context information of the first session, the context information of the third QoS flow is determined according to the context information of the first QoS flow, and the context information of the third DRB is determined according to the context information of the second DRB.

[0037] In a possible implementation manner, the second terminal determines to send the second uplink data through the third QoS flow of the third session according to a QoS rule in the context information of the third QoS flow of the third session.

[0038] In the above technical solution, after the first media is transferred from the first terminal to the second terminal, if the first terminal or the second terminal leaves the coverage of the first access network device, the second terminal can transmit data of the first media through a third QoS flow of a third session between the second terminal and the application server, thereby ensuring uninterrupted transmission of the data of the first media.

[0039] With reference to the second aspect or any possible implementation manner thereof, in a possible implementation manner, the method further includes: the second terminal determining the context information of the third session according to the context information of the second session, and / or the second terminal determining the context information of the third QoS flow according to the context information of the second QoS flow, and / or the second terminal determining the context information of the third DRB according to the context information of the second DRB; and the second terminal generating the second correspondence relationship.

[0040] In the technical solution, the context information of the third session is determined according to the context information of the second session, the context information of the third QoS is determined according to the context information of the second QoS, the context of the second session is determined according to the context information of the first session of the first terminal for transmitting the data of the first media, and the context of the second QoS flow is determined according to the context information of the first QoS flow of the first session. Therefore, the second terminal can correctly transmit the data of the first media, so that the transmission of the data of the first media is not interrupted.

[0041] With reference to the second aspect or any possible implementation manner thereof, in a possible implementation manner, before the second terminal determines the third session context information according to the context information of the second session, and / or the second terminal determines the third QoS flow context information according to the context information of the second QoS flow, and / or the second terminal determines the third DRB context information according to the context information of the second DRB, the method further includes: the second terminal determining that the third session and / or the third QoS flow and / or the third DRB does not exist.

[0042] In the technical solution, the second terminal determines whether the third session and / or the third QoS flow and / or the third DRB exists, and only when the third session is not established, the third QoS flow of the third session is not established, or the third DRB is not configured, the session establishment process, the QoS flow establishment process, or the DRB configuration process is performed. Therefore, the signaling overhead and resource waste can be reduced.

[0043] With reference to the second aspect or any possible implementation manner thereof, in a possible implementation manner, the method further includes: the second terminal sending seventh information to the first access network device, where the seventh information is used to indicate that the second DRB corresponds to the third QoS flow of the third session of the second terminal.

[0044] In a third aspect, a method for transmitting data is provided, which includes: a first access network device receiving first downlink data of a first media through a first quality of service (QoS) flow of a first session of a first terminal, the first media being media transferred from the first terminal to a second terminal; and the first access network device sending the first downlink data to the second terminal through a second data radio bearer (DRB) of the second terminal according to a third correspondence relationship, where the third correspondence relationship includes a correspondence relationship between the first QoS flow of the first session of the first terminal and the second DRB of the second terminal.

[0045] In the technical solution, the first access network device is used as an anchor point to change the data transmission channel between the access network device and the terminal, that is, the data transmission channel between the application server and the first access network device is kept unchanged, and the data transmission between the access network device and the terminal is converted from the first access network device to the first terminal to the first access network device to the second terminal, so that the first media is transferred from the first terminal to the second terminal.

[0046] In addition, in the technical solution, after the first media is transferred, the first terminal can exit or maintain the data transmission of the first media, so that the data transmission of the first media is not interrupted, and the user experience is improved.

[0047] With reference to the third aspect, in a possible implementation manner, the method further includes: receiving, by the first access network device, first uplink data of the first media sent by the second terminal through the second DRB; and sending, by the first access network device, the first uplink data through the first QoS flow of the first session of the first terminal according to a fourth correspondence relationship, wherein the fourth correspondence relationship includes a correspondence relationship between the second DRB of the second terminal and the first QoS flow of the first session of the first terminal.

[0048] With reference to the third aspect or any of the implementation manners of the third aspect, in another possible implementation manner, the method further includes: receiving, by the first access network device, first information from the first terminal, the first information being used to request to transfer the first media to the second terminal, and the first information including an identifier of the second terminal, an identifier of the first session, and an identifier of the first QoS flow; and generating, by the first access network device, the third correspondence relationship in a context of the first terminal and / or generating the fourth correspondence relationship in a context of the second terminal according to the first information.

[0049] In the technical solution, when the first terminal transfers the first media to the second terminal, the first terminal sends the identifier of the second terminal, the identifier of the first session of the first terminal used to transmit the data of the first media, and the identifier of the first QoS flow of the first session to the first access network device, and the first access network device can modify the context of the first terminal and the context of the second terminal according to the received information, so as to convert the data transmission channel of the first QoS flow of the first session of the first terminal from the first access network device to the first terminal to the first access network device to the second terminal, and to transfer the first media from the first terminal to the second terminal.

[0050] In a possible implementation of the third aspect or any of the first implementation of the third aspect, the first access network device receives the first information from the first terminal, including: the first access network device receives the first information through a first AMF serving the first terminal.

[0051] In a possible implementation of the third aspect or any of the first implementation of the third aspect, the method further includes: the first access network device obtaining eighth information, the eighth information including context information of the first session and context information of the first QoS flow; and the first access network device sending fourth information to the second terminal, the fourth information including: an identifier of a second session, an identifier of a second QoS flow of the second session, the context information of the first session, and the context information of the first QoS flow, wherein the second QoS flow of the second session is used for the second terminal to transmit data of the first media, the context information of the first session is used for the second terminal to determine a context of the second session, and the context information of the first QoS flow is used for the second terminal to determine a context of the second QoS flow.

[0052] In the above technical solution, the first access network device provides the second terminal with information used for determining a context of a second session and a context of a second QoS flow, and the second session and the second QoS flow are used for transmitting data of the first media, so that the second terminal can complete packetization and transmission of the data of the first media.

[0053] In a possible implementation of the third aspect or any of the first implementation of the third aspect, the first access network device obtains the eighth information, including: the first access network device obtains the eighth information from a first AMF serving the first terminal.

[0054] In a possible implementation of the third aspect or any of the first implementation of the third aspect, the fourth information further includes at least one of the following information: context information of the second DRB, and an identifier of the first media.

[0055] In a possible implementation of the third aspect or any of the first implementation of the third aspect, the first information further includes at least one of the following information: an identifier of the second session, and an identifier of the first media.

[0056] With reference to the third aspect or any possible implementation of the third aspect, in a possible implementation, the method further includes: sending, by the first access network device, fifth information to the second terminal, the fifth information being used to inquire whether to agree to transfer the first media to the second terminal; and receiving, by the first access network device, sixth information from the second terminal, the sixth information being used to indicate the agreement to transfer the first media to the second terminal.

[0057] In the technical solution described above, by inquiring whether the second terminal agrees to transfer the first media from the first terminal to the second terminal, it is helpful to avoid the influence of the misoperation of the first terminal on the second terminal, so as to make the first media transfer process more accurate.

[0058] With reference to the third aspect or any possible implementation of the third aspect, in a possible implementation, the sixth information further includes an identifier of the second session.

[0059] With reference to the third aspect or any possible implementation of the third aspect, in a possible implementation, the identifier of the second session is processed by encryption.

[0060] In the technical solution described above, the identifier of the second session is processed by encryption, which can improve the legality of transferring the first media to the second terminal.

[0061] With reference to the third aspect or any possible implementation of the third aspect, in a possible implementation, when the first terminal enters the coverage of a third access network device from the coverage of the first access network device, the method further includes: receiving, by the first access network device, second downlink data of the first media through a third QoS flow of a third session of the second terminal; and sending, by the first access network device, the second downlink data to the second terminal through a third DRB of the second terminal according to a fifth correspondence relationship, wherein the fifth correspondence relationship includes a correspondence relationship between the third QoS flow of the third session of the second terminal and the third DRB of the second terminal; wherein the context information of the third session is determined according to the context information of the first session, the context information of the third QoS flow is determined according to the context information of the first QoS flow, and the context information of the third DRB is determined according to the context information of the second DRB.

[0062] In the technical solution described above, after the first media is transferred from the first terminal to the second terminal, if the first terminal or the second terminal leaves the coverage of the first access network device, the first access network device can transmit the data of the first media through a third QoS flow of a third session between the second terminal and the application server, so as to ensure that the transmission of the data of the first media is not interrupted.

[0063] With reference to the third aspect or any possible implementation of the third aspect, in a possible implementation, when the first terminal enters a coverage of a third access network device from the coverage of the first access network device, the method further includes: receiving, by the first access network device, second uplink data of the first media sent by the second terminal through the third DRB; and sending, by the first access network device, the second uplink data through the third QoS flow of the third session of the second terminal according to a fifth correspondence relationship, wherein the fifth correspondence relationship includes a correspondence relationship between the third QoS flow of the third session of the second terminal and the third DRB of the second terminal.

[0064] In the above technical solution, after the first media is transferred from the first terminal to the second terminal, if the first terminal or the second terminal leaves the coverage of the first access network device, the first access network device can transmit data of the first media through the third QoS flow of the third session between the second terminal and the application server, so as to ensure uninterrupted transmission of the data of the first media.

[0065] With reference to the third aspect or any possible implementation of the third aspect, in a possible implementation, when the second terminal enters a coverage of a second access network device from the coverage of the first access network device, or the first terminal enters a coverage of a third access network device from the coverage of the first access network device, the method further includes: determining, by the first access network device, a context of the third session and / or a context of a third QoS flow according to context information of a second session of the second terminal and / or context information of a second QoS flow of the second session, wherein the second session and the second QoS flow are used for the second terminal to transmit data of the first media, the context information of the second session is determined according to the context information of the first session, and the context of the second QoS flow is determined according to the context information of the first QoS flow; and determining, by the first access network device, context information of the third DRB according to context information of the second DRB.

[0066] With reference to the third aspect or any possible implementation of the third aspect, in a possible implementation, the method further includes: receiving, by the first access network device, seventh information from the second terminal, wherein the seventh information is used to indicate that the second DRB corresponds to the third QoS flow of the third session of the second terminal.

[0067] With reference to the third aspect or any possible implementation manner thereof, in a possible implementation manner, the method further includes: sending, by the first access network device, tenth information to a second access and mobility management function (AMF) serving the second terminal, the tenth information being used to request that an Internet protocol (IP) address of data corresponding to the first QoS flow of the first session be modified to an IP address of the third session.

[0068] In the technical solution described above, the first access network device requests that the IP address of the data corresponding to the first QoS flow of the first session be modified to the IP address of the third session, so that the data corresponding to the first QoS flow of the first session can be transmitted through the third session.

[0069] With reference to the third aspect or any possible implementation manner thereof, in a possible implementation manner, when the second terminal enters the coverage of the second access network device from the coverage of the first access network device, the method further includes: receiving, by the first access network device, third downlink data of the first media through the first QoS flow of the first session; and sending, by the first access network device, the third downlink data to the second access network device through a first forwarding tunnel according to a sixth correspondence relationship, wherein the sixth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the first forwarding tunnel.

[0070] In the technical solution described above, when the second terminal enters the coverage of the second access network device from the coverage of the first access network device, the first access network device can forward the received data of the first media to the second access network device through the forwarding tunnel between the first access network device and the second access network device, and then the second access network device further sends the data to the second terminal, so as to ensure that the transmission of the data of the first media is uninterrupted.

[0071] With reference to the third aspect or any possible implementation manner thereof, in a possible implementation manner, when the second terminal enters the coverage of the second access network device from the coverage of the first access network device, the method further includes: receiving, by the first access network device, third uplink data of the first media sent by the second access network device through the first forwarding tunnel; and sending, by the first access network device, the third uplink data through the first QoS flow of the first session of the first terminal according to a sixth correspondence relationship, wherein the sixth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the first forwarding tunnel.

[0072] In the technical solution, when the second terminal enters the coverage of the second access network device from the coverage of the first access network device, the first access network device can transmit the data of the first media received through the forwarding tunnel between the first access network device and the second access network device to the user plane function network element, thereby ensuring uninterrupted transmission of the data of the first media.

[0073] With reference to the third aspect or any possible implementation manner thereof, in a possible implementation manner, the fourth correspondence further includes a correspondence between the second DRB and a second QoS flow of a second session of the second terminal, and the method further includes: establishing, by the first access network device, the first forwarding tunnel according to the fourth correspondence, and generating the sixth correspondence in the context of the first terminal.

[0074] With reference to the third aspect or any possible implementation manner thereof, in a possible implementation manner, when the first terminal enters the coverage of a third access network device from the coverage of the first access network device, the method further includes: receiving, by the first access network device, fourth downlink data of the first media transmitted by the third access network device through a second forwarding tunnel; and transmitting, by the first access network device, the fourth downlink data to the second terminal through the second DRB according to a seventh correspondence, wherein the seventh correspondence includes a correspondence between the second forwarding tunnel and the second DRB.

[0075] In the technical solution, when the first terminal enters the coverage of a third access network device from the coverage of the first access network device, the first access network device can transmit the data of the first media received through the forwarding tunnel between the first access network device and the third access network device to the second terminal, thereby ensuring uninterrupted transmission of the data of the first media.

[0076] With reference to the third aspect or any possible implementation manner thereof, in a possible implementation manner, when the first terminal enters the coverage of a third access network device from the coverage of the first access network device, the method further includes: receiving, by the first access network device, fourth uplink data of the first media transmitted by the second terminal through the second DBR; and transmitting, by the first access network device, the fourth uplink data to the third access network device through the second forwarding tunnel according to a seventh correspondence, wherein the seventh correspondence includes a correspondence between the second forwarding tunnel and the second DRB.

[0077] In the technical solution, when the first terminal enters the coverage of the third access network device from the coverage of the first access network device, the first access network device can forward the data of the first media from the second terminal to the third access network device through the forwarding tunnel between the first access network device and the third access network device, and then send the data to the user plane function network element through the third access network device, so that the transmission of the data of the first media is not interrupted.

[0078] With reference to the third aspect or any possible implementation manner thereof, in another possible implementation manner, the method further includes: establishing, by the first access network device, the second forwarding tunnel according to the fourth correspondence relationship, and generating the seventh correspondence relationship in the context of the second terminal.

[0079] In a fourth aspect, the present application provides a method for transmitting data, which includes: when a second terminal enters the coverage of a second access network device from the coverage of a first access network device, the second access network device receives third downlink data of a first media sent by the first access network device through a first forwarding tunnel, the first media being a media transferred from a first terminal to the second terminal, and the first terminal camping on the first access network device; and the second access network device sends the third downlink data to the second terminal through a third data radio bearer (DRB) according to an eighth correspondence relationship, wherein the eighth correspondence relationship includes the correspondence relationship between the first forwarding tunnel and the third DRB.

[0080] In the technical solution, when the second terminal enters the coverage of the second access network device from the coverage of the first access network device, the second access network device can send the data of the first media received through the forwarding tunnel between the first access network device and the second access network device to the second terminal, so that the transmission of the data of the first media is not interrupted.

[0081] With reference to the fourth aspect, in a possible implementation manner, the method further includes: receiving, by the second access network device, third uplink data of the first media sent by the second terminal through the third DRB; and sending, by the second access network device, the third uplink data to the first access network device through the first forwarding tunnel according to the eighth correspondence relationship.

[0082] In the technical solution, when the second terminal enters the coverage of the second access network device from the coverage of the first access network device, the second access network device can send the data of the first media from the second terminal to the first access network device through the forwarding tunnel between the first access network device and the second access network device, and then send the data to the user plane function network element through the first access network device, so that the transmission of the data of the first media is not interrupted.

[0083] With reference to the fourth aspect or any possible implementation of the fourth aspect, in another possible implementation, the method further includes: establishing, by the second access network device, the first forwarding tunnel; and generating, by the second access network device, the eighth correspondence in a context of the second terminal.

[0084] In a fifth aspect, the present application provides a method for transmitting data, the method comprising: when a first terminal enters a coverage of a third access network device from a coverage of a first access network device, receiving, by the third access network device, fourth downlink data of a first media through a first quality of service (QoS) flow of a first session of the first terminal, the first media being a media transferred from the first terminal to a second terminal; and sending, by the third access network device, the fourth downlink data to the first access network device through a second forwarding tunnel according to a ninth correspondence, wherein the ninth correspondence comprises a correspondence between the first QoS flow of the first session of the first terminal and the second forwarding tunnel, and the second terminal resides in the first access network device.

[0085] In the above technical solution, when the first terminal enters the coverage of the third access network device from the coverage of the first access network device, the third access network device can forward the received data of the first media to the first access network device through the forwarding tunnel between the third access network device and the first access network device, and then the first access network device can send the data to the second terminal, so that the transmission of the data of the first media is not interrupted.

[0086] With reference to the fifth aspect, in a possible implementation, the method further includes: receiving, by the third access network device, fourth uplink data of the first media sent by the first access network device through the second forwarding tunnel; and sending, by the third access network device, the fourth uplink data through the first QoS flow of the first session of the first terminal according to the ninth correspondence.

[0087] In the above technical solution, when the first terminal enters the coverage of the third access network device from the coverage of the first access network device, the third access network device can forward the received data of the first media to the user plane function network element through the forwarding tunnel between the third access network device and the first access network device, so that the transmission of the data of the first media is not interrupted.

[0088] With reference to the fifth aspect or any possible implementation of the fifth aspect, in another possible implementation, the method further includes: establishing, by the third access network device, the second forwarding tunnel; and generating, by the third access network device, the ninth correspondence in a context of the first terminal.

[0089] In a sixth aspect, the present application provides a method for transmitting data, the method comprising: receiving, by a second access and mobility management function (AMF), tenth information from a first access network device when a second terminal enters a coverage of the second access network device from a coverage of the first access network device, the tenth information being used to request to modify an Internet Protocol (IP) address of data corresponding to a first quality of service (QoS) flow of a first session of a first terminal to an IP address of a third session, the first QoS flow of the first session being used for the first terminal to transmit data of a first media, the first media being a media transferred from the first terminal to the second terminal, the second terminal being served by the second AMF; obtaining, by the second AMF, the IP address of the third session; and sending, by the second AMF, eleventh information to a first AMF serving the first terminal, the eleventh information being used to request to modify the IP address of the data corresponding to the first QoS flow of the first session of the first terminal to the IP address of the third session, the eleventh information comprising the IP address of the third session.

[0090] In the above technical solution, the second AMF requests to modify the IP address of the data corresponding to the first QoS flow of the first session to the IP address of the third session, so that the data corresponding to the first QoS flow of the first session can be transmitted through the third session.

[0091] In a seventh aspect, the present application provides a method for transmitting data, the method comprising: receiving, by a first access and mobility management function (AMF), eleventh information from a second AMF, the eleventh information being used to request to modify an Internet Protocol (IP) address of data corresponding to a first quality of service (QoS) flow of a first session of a first terminal to an IP address of a third session, the eleventh information comprising the IP address of the third session; and sending, by the first AMF, the eleventh information to a first UPF.

[0092] In the above technical solution, the first AMF requests to modify the IP address of the data corresponding to the first QoS flow of the first session to the IP address of the third session, so that the data corresponding to the first QoS flow of the first session can be transmitted through the third session.

[0093] In an eighth aspect, the present application provides a communication apparatus, which is configured to perform the method of any one of the above aspects or implementation manners thereof. Specifically, the apparatus can comprise units and / or modules for performing the method of any one of the above aspects or implementation manners thereof, such as a processing unit and / or a communication unit.

[0094] In an implementation form, the apparatus is the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF. When the apparatus is the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF, the communication unit can be a transceiver, or an input / output interface; the processing unit can be at least one processor. Optionally, the transceiver is a transceiver circuit. Optionally, the input / output interface is an input / output circuit.

[0095] In another implementation form, the apparatus is a chip, a chip system or a circuit for the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF. When the apparatus is a chip, a chip system or a circuit for the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF, the communication unit can be an input / output interface, an interface circuit, an output circuit, an input circuit, a pin or related circuitry on the chip, the chip system or the circuit, etc.; the processing unit can be at least one processor, a processing circuit or a logic circuit, etc.

[0096] In a ninth aspect, the present application provides a communication apparatus, comprising: a memory for storing programs; at least one processor for executing computer programs or instructions stored in the memory to perform the method provided in any of the above aspects or implementation forms.

[0097] In an implementation form, the apparatus is the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF.

[0098] In another implementation form, the apparatus is a chip, a chip system or a circuit for the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF.

[0099] In a tenth aspect, the present application provides a processor for executing the method provided in the above aspects.

[0100] For the sending and obtaining / receiving operations of the processor, if there is no special description, or if it does not contradict the actual role or inherent logic in the related description, it can be understood as the processor output and receive, input, etc. operations, and can also be understood as the sending and receiving operations performed by the radio frequency circuit and the antenna, which are not limited by the present application.

[0101] In an eleventh aspect, the present application provides a computer readable storage medium storing program codes for execution by an apparatus, the program codes comprising instructions for performing the method provided by any of the above aspects or implementation manners thereof.

[0102] In a twelfth aspect, the present application provides a computer program product containing instructions which, when the computer program product is executed on a computer, cause the computer to perform the method provided by any of the above aspects or implementation manners thereof.

[0103] In a thirteenth aspect, the present application provides a chip, the chip comprising a processor and a communication interface, the processor reading instructions stored on a memory through the communication interface, and performing the method provided by any of the above aspects or implementation manners thereof.

[0104] Optionally, as an implementation manner, the chip further comprises a memory, the memory storing a computer program or instructions, and the processor is configured to execute the computer program or instructions stored on the memory, and when the computer program or instructions are executed, the processor is configured to perform the method provided by any of the above aspects or implementation manners thereof.

[0105] In a fourteenth aspect, the present application provides a communication system, comprising the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF described above. BRIEF DESCRIPTION OF DRAWINGS

[0106] Figure 1 A schematic diagram of a network architecture is shown.

[0107] Figure 2 is a schematic diagram of the method 200 for transmitting data provided by the embodiments of the present application.

[0108] Figure 3 is a schematic diagram of the method 300 for transmitting data provided by the embodiments of the present application.

[0109] Figure 4 is a schematic diagram of the method 400 for transmitting data provided by the embodiments of the present application.

[0110] Figure 5 is a schematic diagram of the method 500 for transmitting data provided by the embodiments of the present application.

[0111] Figure 6 is a schematic diagram of the method 600 for transmitting data provided by the embodiments of the present application.

[0112] Figure 7 is a variation of the transmission path of the data of the first media.

[0113] Figure 8is one example of the method for transmitting data provided by the present application.

[0114] Figure 9 is another example of the method for transmitting data provided by the present application.

[0115] Figure 10 is another example of the method for transmitting data provided by the present application.

[0116] Figure 11 is another example of the method for transmitting data provided by the present application.

[0117] Figure 12 Another variation of the transmission path of the data of the first media.

[0118] Figure 13 is another example of the method for transmitting data provided by the present application.

[0119] Figure 14 Another variation of the transmission path of the data of the first media.

[0120] Figure 15 is another example of the method for transmitting data provided by the present application.

[0121] Figure 16 Another variation of the transmission path of the data of the first media.

[0122] Figure 17 is another example of the method for transmitting data provided by the present application.

[0123] Figure 18 Another variation of the transmission path of the data of the first media.

[0124] Figure 19 is another example of the method for transmitting data provided by the present application.

[0125] Figure 20 is another example of the method for transmitting data provided by the present application.

[0126] Figure 21 is another example of the method for transmitting data provided by the present application. DETAILED DESCRIPTION

[0127] The technical solutions in the present application will be described below with reference to the accompanying drawings.

[0128] In order to facilitate understanding of the technical solutions of the present application, the following points are explained.

[0129] First, in the present application, "for" can be understood as "enable", and "enable" can include direct enablement and indirect enablement. When describing that certain information is used to enable A, it can include that the information directly enables A or indirectly enables A, and it does not mean that A must be carried in the information.

[0130] Second, the first, second and various numbers shown in the present application (for example, "#1", "#2", etc.) are only convenient for description, and are used to distinguish objects, and do not limit the scope of the embodiments of the present application. For example, different information is distinguished. It is not used to describe a specific order or sequence. It should be understood that the objects thus described can be interchanged under appropriate circumstances, so as to be able to describe solutions other than the embodiments of the present application.

[0131] Third, in the present application, "predefined" can include predefinition, for example, protocol definition. Among them, "predefinition" can be realized by pre-saving corresponding codes, tables or other ways that can be used to indicate related information in the device (for example, including terminal or network device), and the specific implementation of the present application is not limited.

[0132] Fourth, the "protocol" involved in the embodiments of the present application can refer to the standard protocol in the communication field, which can include the fifth generation (5th generation, 5G), new radio (new radio, NR) protocol and related protocol applied to future communication system, which is not limited by the present application.

[0133] The technical solutions provided by the present application can be applied to various communication systems, such as: fifth generation (5th generation, 5G) or new radio (new radio, NR) system, long term evolution (long term evolution, LTE) system, LTE frequency division duplex (frequency division duplex, FDD) system, LTE time division duplex (time division duplex, TDD) system, etc. The technical solutions provided by the present application can also be applied to future communication systems, such as the sixth generation mobile communication system. The technical solutions provided by the present application can also be applied to device to device (device to device, D2D) communication, vehicle to everything (vehicle-to-everything, V2X) communication, machine to machine (machine to machine, M2M) communication, machine type communication (machine type communication, MTC), and internet of things (internet of things, IoT) communication system or other communication system.

[0134] First, briefly introduce the network architecture applicable to the present application.

[0135] As an example, Figure 1 A schematic diagram of a network architecture is shown.

[0136] As Figure 1 shown, the network architecture takes the 5G system (5GS) as an example. The network architecture can include three parts, which are a user equipment (UE) part, a data network (DN) part and an operator network part. Among them, the operator network can include one or more of the following network elements: (radio) access network ((R)AN) device, user plane function (UPF) network element, AMF network element, session management function (SMF) network element, and unified data management (UDM) network element. Among the above operator network, except for the (R)AN part, the part can be referred to as the core network part. In this application, the user equipment, the (radio) access network device, the UPF network element, the AMF network element, the SMF network element and the UDM network element are simply referred to as UE, (R)AN device, UPF, AMF, SMF and UDM respectively.

[0137] The network elements involved in Figure 1 will be briefly described below.

[0138] 1、UE

[0139] The UE mainly accesses the 5G network through the wireless air interface and obtains services. The UE interacts with the RAN through the air interface and interacts with the AMF of the core network through non-access layer signaling (NAS).

[0140] The UE in the embodiments of the present application can also be referred to as a terminal device, a user, an access terminal, a subscriber unit, a subscriber station, a mobile station, a mobile, a remote station, a remote terminal, a mobile device, a user terminal, a terminal, a wireless communication device, a user agent, or a user equipment. The UE can be a cellular phone, a smart watch, a wireless data card, a handset, a tablet computer, a personal digital assistant (PDA) computer, a wireless modem, a handheld device, a laptop computer, a machine type communication (MTC) terminal, a computer with wireless transceiver function, an internet of things terminal, a virtual reality terminal device, an augmented reality terminal device, a wearable device, a vehicle, a terminal in device-to-device (D2D) communication, a terminal in vehicle to everything (V2X) communication, a terminal in machine type communication (MTC), a terminal in internet of things (IOT), a terminal in smart office, a terminal in industrial control, a terminal in unmanned flight, a terminal in remote surgery, a terminal in smart grid, a terminal in transportation safety, a terminal in smart city, a terminal in smart home, a terminal in satellite communication (for example, a satellite phone or a satellite terminal), and the like. The UE can also be a customer premises equipment (CPE), a phone, a router, a network switch, a residential gateway (RG), a set-top box, a fixed mobile convergence product, a home network adapter, and an internet access gateway.

[0141] The embodiments of the present application do not limit specific technologies and specific device forms adopted by the UE.

[0142] 2, (R)AN device

[0143] The (R)AN device can provide the function of providing access to the communication network for authorized users in a specific area, and can specifically include a wireless network device in a 3rd generation partnership project (3GPP) network, and can also include an access point in a non-3GPP (non-3GPP) network. The following is for convenience of description, and the AN device is used to represent.

[0144] AN device can be of different radio access technologies. There are two types of current radio access technologies: 3GPP access technology (e.g., the radio access technology adopted in the third generation (3rd generation, 3G), fourth generation (4th generation, 4G) or 5G system) and non-3GPP (non-3GPP) access technology. The 3GPP access technology refers to the access technology conforming to the 3GPP standard specification, for example, the access network device in the 5G system is called the next generation Node Base station (gNB) or RAN device. The non-3GPP access technology can include air interface technologies represented by access points (APs) in wireless fidelity (WiFi), worldwide interoperability for microwave access (WiMAX), code division multiple access (CDMA), etc. The AN device can allow the terminal device and the 3GPP core network to be interconnected and communicated by using non-3GPP technology.

[0145] The AN device can be responsible for functions such as radio resource management on the air interface side, quality of service (QoS) management, data compression and encryption, etc. The AN device provides access services for the terminal device, and then completes the forwarding of control signals and user data between the terminal and the core network. For example, the AN device communicates with the UE through the air interface, and communicates with the UPF through the tunnel for data transmission and reception.

[0146] The AN device may include, but is not limited to, a macro base station, a micro base station (also referred to as a small station), a radio network controller (RNC), a Node B (NB), a base station controller (BSC), a base transceiver station (BTS), a home base station (for example, a home evolved NodeB or home Node B, HNB), a baseband unit (BBU), an AP in a WiFi system, a base station (BS) in WiMAX, a wireless relay node, a wireless backhaul node, a transmission point (TP), or a transmission and reception point (TRP), and the like, and can also be a gNB or a transmission point (TRP or TP) in a 5G (for example, NR) system, one or a group of (including multiple antenna panels) antenna panels of a base station in a 5G system, or a network node constituting a gNB or a transmission point, such as a distributed unit (DU), or a base station in a next-generation communication 6G system, and the like.

[0147] The embodiments of the present application do not limit the specific technology and specific device form adopted by the AN device.

[0148] For the sake of convenience, the (R)AN device is referred to as a base station hereinafter.

[0149] 3、UPF

[0150] The UPF is a core network entity, and mainly provides user plane functions such as forwarding and processing of user plane data, connection with a DN, session anchor, quality of service (QoS) policy implementation, and the like. For example, the UPF can receive user plane data from the DN and send the user plane data to the base station through a tunnel between the UPF and the base station. The UPF can also receive user plane data sent by the base station through a tunnel between the UPF and the base station, and forward the user plane data to the DN.

[0151] 4、DN

[0152] The DN is mainly an operator network for providing data services for the UE. For example, the Internet, a third-party service network, an IP multi-media service (IMS) network, and the like. An application server (AS) can belong to a part of the DN network.

[0153] 5、AMF

[0154] AMF is a core network entity, used for managing the registration process, mobility process, and reachability of the UE.

[0155] 6、SMF

[0156] SMF is a core network entity, used for managing the protocol data unit (PDU) session of the UE, including the establishment, modification, and deletion of the PDU session, the establishment, modification, and deletion of the quality of service (QoS) flow within the PDU session, and the like.

[0157] 7、UDM

[0158] UDM is a core network entity, used for managing the subscription data of the user. The UDM is similar to the home subscriber server (HSS) function in 4G. Figure 1 The UDM in the above can also be understood as a combination of the UDM and HSS functions.

[0159] In the network architecture shown in Figure 1 In the network architecture shown in

[0160] It should be understood that the network architecture shown above is only illustrative, and the network architecture to which the embodiments of the present application are applicable is not limited thereto. Any network architecture capable of realizing the functions of the above-mentioned network elements is applicable to the embodiments of the present application.

[0161] It should also be understood that Figure 1 The AMF, SMF, UPF, UDM, and the like functions or network elements shown in the above can be understood as network elements for realizing different functions, for example, can be combined into network slices as needed. These network elements can be independent devices, can be integrated into the same device to realize different functions, or can be network elements in a hardware device, or software functions running on a dedicated hardware, or virtualized functions instantiated on a platform (e.g., a cloud platform), and the present application does not limit the specific form of the above-mentioned network elements.

[0162] It should also be understood that the above naming is only defined for the purpose of distinguishing different functions, and should not constitute any limitation on the present application. The present application does not exclude the possibility of using other names in 6G networks and other future networks. For example, in 6G networks, part or all of the above-mentioned network elements can use the terminology in 5G, or other names, and the like.

[0163] For the convenience of understanding the embodiments of the present application, the terms or technologies involved in the present application are briefly explained.

[0164] 1、Media

[0165] Media can be understood as a certain media of a certain application, for example, a video call of a video application; or, can be understood as all media of a certain application, for example, all media of a video application, including video call, voice call, text transmission, picture transmission, etc.; or, can be understood as a certain application, for example, a video application.

[0166] Media can be identified by an application identifier (APP ID); or, APP ID + media type, wherein the media type can be: video call media, voice call media, text media, picture media, video playing media, or game media, etc.

[0167] In the present application, media can also be replaced by traffic flow, media flow, traffic, data flow, etc.

[0168] Transferring media from a first terminal to a second terminal can be understood as converting the data of the first media received or sent by the first terminal to be received or sent by the second terminal.

[0169] 2、Transmission of media data

[0170] The terminal can transmit media data with the AS through the access network device and the UPF.

[0171] When transmission of data of a media is needed, the terminal can initiate establishment of a PDU session with the AS. Context information of each PDU session includes at least one of the following: an IP address (IP address), a data network name (data network name, DNN), single network slice selection assistance information (single network slice selection assistance information, S-NSSAI), a session and service continuity (SSC) mode (SSC mode), and a session aggregate maximum bit rate (Session AMBR), etc. A protocol data unit (PDU) session can be identified by a PDU session ID (PSI). At least one QoS flow is included in each PDU session. Context information of each QoS flow includes at least one of the following: a 5G quality of service identifier (5G QoS Identifier, 5QI), a guaranteed flow bit rate (GFBR), a maximum flow bit rate (MFBR), and other QoS parameters. A QoS flow can be identified by a QoS flow ID (QFI). The combination of PSI and QFI can uniquely determine a QoS flow.

[0172] When the access network device configures a DRB for the terminal, it needs to carry the PSI and QFI in the configuration information, which is used to indicate that the DRB can be used to transmit data of the QoS flow QFI of the PDU session PSI. The access network device can save the correspondence between the PSI, the QFI, and the DRB in the context of the terminal. The terminal can also save the correspondence between the PSI, the QFI, and the DRB.

[0173] For uplink data of a media, after the APP in the terminal generates data, it matches the data to the corresponding PDU session PSI, and uses the IP address corresponding to the PDU session PSI to form an IP packet. Further, the terminal uses the QoS rule corresponding to the PDU session PSI to match the IP packet to the QoS flow QFI in the PDU session PSI, and uses the DRB corresponding to the QoS flow QFI to transmit the data to the access network device. After the access network device receives the data sent by the terminal through the DRB, it transmits the data through the QoS flow QFI of the PDU session PSI according to the correspondence between the PSI, the QFI, and the DRB.

[0174] For downlink data of the media, after the access network device receives the data from the AS through the PDU session PSI QoS flow QFI, the data is transmitted through the DRB according to the correspondence between the PSI, the QFI and the DRB.

[0175] Herein, the PDU session PSI can be understood as a PDU session indicated by the PSI, or a PDU session corresponding to the PSI, or a PDU session whose identifier is the PSI. The QoS flow QFI can be understood as a QoS flow indicated by the QFI, or a QoS flow corresponding to the QFI, or a QoS flow whose identifier is the QFI.

[0176] It should be noted that the above context information can also be described as configuration information, configuration parameters, parameters, context parameters, corresponding information, etc. For example, the context information of the PDU session can also be replaced by the configuration information of the PDU session, the configuration parameters of the PDU session, the parameters of the PDU session, the context parameters of the PDU session, the information corresponding to the PDU session, etc. For another example, the context information of the QoS flow can also be replaced by the configuration information of the QoS flow, the configuration parameters of the QoS flow, the parameters of the QoS flow, the context parameters of the QoS flow, the information corresponding to the QoS flow, etc.

[0177] With the development of electronic technology, the number of electronic devices owned or used by a user at the same time is increasing, and the user will have the need to transfer a certain media from one electronic device to another electronic device. For the convenience of description, the electronic device transferring out the media is referred to as the first terminal, the electronic device transferring in the media is referred to as the second terminal, and the media being transferred (transfer or move) is referred to as the first media.

[0178] A solution is that the first terminal and the second terminal establish a direct communication path, and the first media is transferred from the first terminal to the second terminal for display. For example, the media of a mobile phone is displayed through a tablet computer. For this solution, the first terminal needs to receive the data of the first media, and further, the received data is transmitted to the second terminal through the direct communication path, so the first terminal needs to participate in the transmission process of the data of the first media all the time. If the first terminal exits the transmission of the data of the first media, the second terminal cannot continue to display the first media. The user experience is poor.

[0179] In another solution, the first terminal obtains the data of the first media through an application server. When the first media is transferred to the second terminal, the second terminal can reestablish a connection with the application server for transmitting the data of the first media, and the first terminal can exit the transmission of the data of the first media. For example, a user watches a video through a first terminal using an account, and then opens a tablet computer to continue watching the video using the same account. Since the last played position is saved on the account, the user can continue watching. For this solution, when the second terminal reestablishes the connection with the application server, there is a long service interruption time, and the user experience is poor.

[0180] Therefore, how to improve the user experience when the media is transferred from the first terminal to the second terminal becomes a problem to be solved.

[0181] To solve the above problems, the present application provides a method and a communication device for transmitting data, which can take an access network device as an anchor point, change the data transmission channel between the access network device and the terminal, realize the transfer of the first media from the first terminal to the second terminal, and after the transfer of the first media is completed, the first terminal can exit or maintain the data transmission of the first media, and ensure that the data transmission of the first media is not interrupted, which helps to improve the user experience.

[0182] To facilitate understanding, first, the scenario to which the technical solution of the present application can be applied is described.

[0183] Scenario 1

[0184] The first terminal transfers the first media to the second terminal. The first terminal and the second terminal are both camped in the first access network device. At this time, the first terminal and the second terminal can be in an idle state or a connected state, that is, the camping here can include camping in an idle state or camping in a connected state.

[0185] As an example, scenario 1 can be that when a user uses a video call application to make a video call through a tablet computer (first terminal) and plays a video through a mobile phone (second terminal), the user can transfer the ongoing video call on the tablet computer (first terminal) to the mobile phone (second terminal).

[0186] It should be noted that the present application does not limit the state of the second terminal, which can be transmitting the media of the second terminal or have no ongoing service.

[0187] Scenario 2

[0188] After the first terminal transfers the first media to the second terminal, the second terminal leaves the coverage range of the first access network device and enters the coverage range of the second access network device.

[0189] As an example, scenario 2 can be: after the user transfers the media of the tablet (the first terminal) to the mobile phone (the second terminal), the user carries the mobile phone (the second terminal) away.

[0190] Scenario 3

[0191] After the first terminal transfers the first media to the second terminal, the first terminal leaves the coverage of the first access network device and enters the coverage of a third access network device.

[0192] As an example, scenario 3 can be: after the user transfers the media of the tablet (the first terminal) to the mobile phone (the second terminal), the user carries the tablet (the first terminal) away.

[0193] Here, entering the coverage of the second access network device can be understood as entering the coverage of the second access network device and camping on the cell of the second access network device; entering the coverage of the third access network device can be understood as entering the coverage of the third access network device and camping on the cell of the third access network device. Details are not described herein.

[0194] The method for transmitting data provided by the present application is described below.

[0195] For the above scenario 1, the present application provides Figure 2 The method shown in the figure.

[0196] Figure 2 is a schematic diagram of the method 200 for transmitting data provided by the embodiments of the present application. The method 200 can include at least part of the following contents.

[0197] Step 201, the first terminal determines to transfer the first media to the second terminal.

[0198] Wherein, the first terminal and the second terminal both camp on the first access network device.

[0199] Before transferring the first media to the second terminal, the first terminal transmits data of the first media through the first DRB of the first terminal and the first QoS flow of the first session of the first terminal.

[0200] For example, after the first terminal generates data of the first media, the data is matched to the first session, and an IP packet is formed using an IP address corresponding to the first session. Further, the first terminal matches the IP packet to a first QoS flow in the first session using a QoS rule corresponding to the first session, and transmits the IP packet to the access network device using a first DRB corresponding to the first QoS flow. After receiving the data sent by the first terminal through the first DRB, the first access network device sends the data through the first QoS flow of the first PDU session according to the correspondence between the first QoS flow of the first session of the first terminal and the first DRB of the first terminal.

[0201] For example, after the first access network device receives data from the AS through the first QoS flow of the first session of the first terminal, the first access network device sends the data to the first terminal through the first DRB of the first terminal according to the correspondence between the first QoS flow of the first session of the first terminal and the first DRB of the first terminal.

[0202] In this application, the first QoS flow of the first session of the first terminal can be understood as the first QoS flow of the first session established between the first terminal and the AS. The first DRB of the first terminal can be understood as the first DRB configured by the access network device for the first terminal. The session, QoS flow and DRB of other terminals (for example, the second QoS flow of the second session of the second terminal, the third QoS flow of the third session of the second terminal, the second DRB of the second terminal, and the third DRB of the second terminal) have the same meaning, which will not be described below.

[0203] In this application, the first QoS flow of the first session of the first terminal can be represented by at least one of the following ways:

[0204] The combination of UE-1ID+PSI-1+QFI-1;

[0205] The combination of PSI-1+QFI-1;

[0206] Three independent fields of UE-1ID, PSI-1, and QFI-1; or

[0207] Two independent fields of PSI-1 and QFI-1.

[0208] Here, "+" represents connection, for example, UE-1ID is 123, PSI-1 is 456, and QFI-1 is 789. Then UE-1ID+PSI-1+QFI-1 is 123456789, or UE ID 123 PSI 456 QFI 789.

[0209] Wherein, UE-1ID is the identifier of the first terminal, PSI-1 is the identifier of the first session, and QFI-1 is the identifier of the first QoS flow.

[0210] In the present application, the first DRB of the first terminal can be represented by at least one of the following ways:

[0211] a combination of UE-1 ID and DRB-1; or,

[0212] two independent fields of UE-1 ID and DRB-1.

[0213] wherein, UE-1 ID is an identifier of the first terminal, and DRB-1 is an identifier of the first DRB.

[0214] It should be noted that the session and QoS flow of other terminals of the present application (for example, the second QoS flow of the second session of the second terminal, the third QoS flow of the third session of the second terminal) can also be represented by the same representation method, which will not be described below. Similarly, the DRB of other terminals of the present application (for example, the second DRB of the second terminal, the third DRB of the second terminal) can also be represented by the same representation method, which will not be described below.

[0215] Step 202, the first terminal sends second information to the second terminal.

[0216] Correspondingly, the second terminal receives the second information from the first terminal.

[0217] wherein, the second information is used to request to transfer media to the second terminal.

[0218] In one possible implementation, the first terminal needs to perform a discovery process of the second terminal before sending the second message to the second terminal, for example, the second terminal broadcasts a discovery message, and the first terminal replies after receiving the discovery message, so that the first terminal can discover the second terminal; or the first terminal broadcasts a request message, and the second terminal replies after receiving the request message, so that the first terminal can discover the second terminal.

[0219] Optionally, the second information can carry the identifier of the media transferred from the first terminal to the second terminal, for example, APP ID.

[0220] Step 203, the second terminal sends third information to the first terminal.

[0221] Correspondingly, the first terminal receives the third information from the second terminal.

[0222] The third information includes at least one of the following: an identity of a cell where the second terminal is located, an identity of the second terminal, and an identity of a second session allocated by the second terminal. The second session is used for the second terminal to transmit data of the first media. The identity of the cell where the second terminal is located can be understood as an identity of a cell where the second terminal is currently camped on, such as an NR cell global identifier (NCGI), an NR physical layer cell ID (PCI), and the like.

[0223] Optionally, the identity of the second session allocated by the second terminal is encrypted. For example, the identity of the second session allocated by the second terminal can be encrypted using an encryption key between the first access network device and the second terminal, such as an encryption key of a packet data convergence protocol (PDCP) layer.

[0224] In a possible implementation, after receiving the second information of the first terminal, the second terminal can determine whether to support or agree to transfer the media to the second terminal by the first terminal. For example, the second terminal can check whether an application corresponding to the media is installed in the second terminal, and when the corresponding application is installed, the second terminal supports or agrees to transfer the media to the second terminal by the first terminal; or the second terminal can insist on a running state of a current service of the second terminal, for example, when the second terminal is currently performing voice call, video call, or real-time game, the second terminal refuses to transfer the media to the second terminal by the first terminal.

[0225] In step 204, the first terminal sends first information to the first access network device.

[0226] Correspondingly, the first access network device receives the first information from the first terminal.

[0227] The first information is used to request to transfer the first media to the second terminal. The first information can include an identity of the second terminal, an identity of a first session of the first terminal, and an identity of a first QoS flow of the first session.

[0228] Optionally, if the third information in step 203 includes the identity of the second session allocated by the second terminal, the first information can further include the identity of the second session.

[0229] Optionally, if the second information in step 202 does not carry the identity of the first media, the first information can further include the identity of the first media, so as to be subsequently sent to the second terminal by the first access network device.

[0230] In a possible implementation, if the third information in step 203 carries the identifier of the cell where the second terminal is located, the first terminal can further determine whether the first terminal and the second terminal are located in the same cell according to the identifier of the cell where the second terminal is located. When the first terminal determines that the first terminal and the second terminal are located in the same cell or the same access network device, the first terminal sends the first information to the first access network device. When the first terminal determines that the first terminal and the second terminal are located in different cells or different access network devices, the first terminal does not send the first information. The identifier of the cell where the terminal is located can be understood as the identifier of the cell where the terminal is located.

[0231] The application does not make specific limitations on the manner in which the first terminal sends the first information to the first access network device. In a possible implementation, the first terminal can directly send the first information to the first access network device. In another possible implementation, the first terminal can send the first information to the first access network device through the first AMF serving the first terminal.

[0232] In step 205, the first access network device generates a third correspondence relationship in the context of the first terminal according to the first information, and / or generates a fourth correspondence relationship in the context of the second terminal.

[0233] The third correspondence relationship includes the correspondence relationship between the first QoS flow of the first session of the first terminal and the second DRB of the second terminal. The fourth correspondence relationship includes the correspondence relationship between the second DRB of the second terminal and the first QoS flow of the first session of the first terminal.

[0234] In some possible implementations, before step 205, steps 206-207 can also be performed.

[0235] In step 206, the first access network device sends fifth information to the second terminal.

[0236] Correspondingly, the second terminal receives the fifth information from the first access network device.

[0237] The fifth information is used to inquire whether to agree to transfer the first media to the second terminal.

[0238] In step 207, the second terminal sends sixth information to the first access network device.

[0239] Correspondingly, the first access network device receives the sixth information from the second terminal.

[0240] The sixth information is used to indicate that the first terminal agrees to transfer the first media to the second terminal.

[0241] In addition, if the second terminal does not support or does not agree to transfer the first media from the first terminal to the second terminal, the second terminal can send rejection information to the first access network device.

[0242] Optionally, if the second information in step 202 does not carry the identifier of the second session allocated by the second terminal, the sixth information can carry the identifier of the second session. Optionally, the identifier of the second session is processed by encryption.

[0243] It should be noted that if the first terminal sends the first information to the first access network device through the first AMF, the fifth information can also be sent by the first AMF to the second terminal through the second AMF serving the second terminal, and the sixth information can be sent by the second terminal to the first AMF through the second AMF.

[0244] In step 208, the first access network device obtains the eighth information.

[0245] The eighth information includes the context information of the first session and the context information of the first QoS flow. The context information of the first session includes at least one of the following: IP address, DNN, S-NSSAI, SSC mode, and session AMBR, etc. The context information of the first QoS flow includes at least one of the following: 5QI, GFBR, MFBR, and other QoS parameters.

[0246] In one possible implementation, the first access network device obtains the eighth information from the first SMF serving the first terminal. For example, the first access network device can obtain the eighth information from the first SMF through the first AMF.

[0247] In another possible implementation, the first access network device obtains the locally stored eighth information. The eighth information can be sent by the first SMF to the first access network device when the first QoS flow of the first session for the first terminal is established.

[0248] It should be noted that the present application does not limit the sequence of step 205 and step 208.

[0249] In step 209, the first access network device sends the fourth information to the second terminal.

[0250] Correspondingly, the second terminal receives the fourth information from the first access network device.

[0251] The fourth information includes: an identifier of the second session, an identifier of the second QoS flow, context information of the first session, and context information of the first QoS flow. The context information of the first session is used by the second terminal to determine the context of the second session. The context information of the first QoS flow is used by the second terminal to determine the context of the second QoS flow. The identifier of the second session can be allocated by the second terminal or preconfigured in the first access network device, for example, a fixed value, such as 0, is used for the identifier of the second session in the first access network device. The identifier of the second QoS flow can be allocated by the first access network device or preconfigured in the first access network device.

[0252] Optionally, if the first information in step 204 carries the identifier of the first media, the fourth information can further include the identifier of the first media.

[0253] Optionally, the fourth information can further include context information of the second DRB, so as to configure the second DRB for the second terminal.

[0254] In step 210, the second terminal determines the context information of the second session and the context information of the second QoS flow according to the fourth information, and generates the first correspondence.

[0255] The first correspondence includes the correspondence between the second QoS flow of the second session of the second terminal and the second DRB of the second terminal.

[0256] In a possible implementation, the second terminal determines the context information of the second session according to the context information of the first session, and determines the context information of the second QoS flow according to the context information of the first QoS flow. As an example, the context information of the second session is the same as the context information of the first session, and / or the context information of the second QoS flow is the same as the context information of the first QoS flow.

[0257] It should be noted that the context of the second session and the context of the second QoS flow can be generated locally by the second terminal or configured for the second terminal by the first access network device, which is not limited in the present application.

[0258] The configuration process of transferring the first media from the first terminal to the second terminal is completed in steps 201-210.

[0259] After the configuration process is completed, the transmission of the downlink data of the first media can be as shown in steps 211-212.

[0260] In step 211, the first access network device receives the first downlink data of the first media through the first QoS flow of the first session of the first terminal.

[0261] In step 212, the first access network device sends the first downlink data to the second terminal through the second DRB of the second terminal according to the third correspondence in the context of the first terminal. The third correspondence can refer to step 205, and will not be repeated here.

[0262] After the configuration process is completed, the uplink data of the first media can be as shown in steps 213-216.

[0263] In step 213, the second terminal obtains the first uplink data of the first media.

[0264] In step 214, the second terminal determines to send the first uplink data through the second QoS flow of the second session according to the context information of the second QoS flow of the second session.

[0265] In a possible implementation, the second terminal determines to send the first uplink data through the second QoS flow of the second session according to the QoS rule in the context information of the second QoS flow of the second session.

[0266] In step 215, the second terminal sends the first uplink data to the first access network device through the second DRB of the second terminal according to the first correspondence. The first correspondence can refer to step 210, and will not be repeated here.

[0267] In step 216, the first access network device sends the first uplink data through the first QoS flow of the first session of the first terminal according to the fourth correspondence in the context of the second terminal. The fourth correspondence can refer to step 205, and will not be repeated here.

[0268] In the above technical solution, when the first media is transferred from the first terminal to the second terminal, the data transmission channel between the access network device and the terminal can be changed with the first access network device as an anchor point, that is, the data transmission channel between the AS and the first access network device is kept unchanged, and the data transmission between the access network device and the terminal is converted from the first access network device to the first terminal to the first access network device to the second terminal, realizing the transfer of the first media from the first terminal to the second terminal. In addition, in this technical solution, the first terminal can exit or maintain the data transmission of the first media, and the data transmission of the first media is ensured not to be interrupted, which helps to improve user experience.

[0269] For the above scenario 2, the present application proposes the method shown in Figure 3 and Figure 4 .

[0270] Figure 3 is a schematic diagram of a method 300 for transmitting data provided by an embodiment of the present application. The method 300 can include at least part of the following content.

[0271] In step 301, the second terminal determines the third session and the third QoS flow according to the context information of the second session and the context information of the second QoS flow.

[0272] In a possible implementation, the second terminal determines whether the third session and the third QoS flow have been established on the second terminal according to the context information of the second session and the context information of the second QoS flow. If the third session and / or the third QoS flow are not established on the second terminal, the second terminal can establish the third session and / or the third QoS flow according to the context information of the second session and / or the context information of the second QoS flow.

[0273] Optionally, the context information of the third session is the same as the context information of the second session, and the context information of the third QoS flow is the same as the context information of the second QoS flow.

[0274] In step 302, the second terminal generates a tenth correspondence.

[0275] The tenth correspondence includes a correspondence between the first QoS flow of the first session of the first terminal, the third QoS flow of the third session of the second terminal, and the second DRB of the second terminal.

[0276] In step 303, the second terminal sends seventh information to the first access network device.

[0277] Correspondingly, the first access network device receives the seventh information sent by the second terminal.

[0278] The seventh information is used to indicate that the second DRB of the second terminal corresponds to the third QoS flow of the third session of the second terminal.

[0279] In step 304, the first access network device generates an eleventh correspondence according to the seventh information.

[0280] The eleventh correspondence includes a correspondence between the second DRB of the second terminal and the third QoS flow of the third session of the second terminal.

[0281] In step 305, the first access network device determines to hand over the second terminal to the second access network device.

[0282] In another description, the first access network device determines that the second terminal leaves the coverage of the first access network device and enters the coverage of the second access network device.

[0283] In a possible implementation, the first access network device determines to hand over the second terminal to the second access network device according to a measurement report from the second terminal.

[0284] It should be noted that step 305 is an optional step. Figure 8Take step 305 as an example.

[0285] Step 306, the first access network device sends tenth information to the first UPF which provides service for the first terminal.

[0286] Correspondingly, the first UPF receives the tenth information from the first access network device.

[0287] The tenth information is used to request to modify the IP address of the data corresponding to the first QoS flow of the first session of the first terminal to the IP address of the third session.

[0288] In a possible implementation, the first access network device sends the tenth information to the second AMF which provides service for the second terminal. The second AMF sends the received tenth information to the first AMF. The first AMF sends the received tenth information to the first SMF. The first SMF sends the received tenth information to the first UPF. It should be noted that if the second AMF does not carry the IP address of the third session in the received tenth information, the second AMF can obtain the IP address of the third session from the second SMF which provides service for the second terminal, and send the IP address of the third session to the first UPF along with the tenth information.

[0289] Step 307, the first UPF modifies the IP address of the data of the first QoS flow of the first session of the first terminal to the IP address of the third session.

[0290] Step 308, the first access network device sends eleventh information to the second terminal.

[0291] Correspondingly, the second terminal receives the eleventh information from the first access network device.

[0292] The eleventh information is used to indicate to delete the second session and the second QoS flow.

[0293] Step 309, the second terminal generates a second correspondence relationship according to the eleventh information, and deletes the second session and the second QoS flow.

[0294] The second correspondence relationship includes the correspondence relationship between the third DRB of the second terminal and the third QoS flow of the third session of the second terminal. Here, deleting the second session and the second QoS flow can be understood as deleting the context information of the second session and the context information of the second QoS flow.

[0295] It should be noted that in the case of performing step 305, steps 306 to 309 can be implemented by steps in the process of switching the second terminal to the second access network device. For specific description, please refer to the following Figure 10 In the above-mentioned Figure 8 does not embody the operation of the second access network device when the second terminal is switched to the second access network device.

[0296] After steps 301-309, the transmission of the uplink data of the first media can be as shown in steps 312-315.

[0297] Step 310, the second access network device receives the second downlink data of the first media through the third QoS flow of the third session of the second terminal.

[0298] Wherein, the second terminal is handed over from the first access network device to the second access network device.

[0299] Step 311, the second access network device sends the second downlink data to the second terminal through the third DRB of the second terminal according to the fifth correspondence relationship in the context of the second terminal.

[0300] Wherein, the fifth correspondence relationship includes the correspondence relationship between the third DRB of the second terminal and the third QoS flow of the third session of the second terminal. Wherein, the third DRB is the DRB configured by the second access network device for the second terminal when the second terminal is handed over from the first access network device to the second access network device, and the third DRB can be used to transmit the data of the third QoS flow of the third session of the second terminal.

[0301] After steps 301-309, the uplink data of the first media can be as shown in steps 312-315.

[0302] Step 312, the second terminal obtains the second uplink data of the first media.

[0303] Step 313, the second terminal determines to send the second uplink data through the third QoS flow of the third session according to the context information of the third QoS flow of the third session.

[0304] In one possible implementation, the second terminal determines to send the second uplink data through the third QoS flow of the third session according to the QoS rule in the context information of the third QoS flow of the third session.

[0305] Step 314, the second terminal sends the second uplink data to the second access network device through the third DRB of the second terminal according to the second correspondence relationship. The second correspondence relationship can refer to step 309, which will not be repeated here.

[0306] Step 315, the second access network device sends the second uplink data through the third QoS flow of the third session of the second terminal according to the fifth correspondence relationship in the context of the second terminal.

[0307] It should be noted that, in the case where step 305 is not performed, the second access network device in steps 310-315 described above can be replaced by the first access network device, and the third DRB is a DRB configured by the first access network device for the second terminal, and the third DRB can be used to transmit data of a third QoS flow of a third session of the second terminal.

[0308] Figure 4 FIG. 4 is a schematic diagram of a method 400 for transmitting data provided by an embodiment of the present application. The method 400 can include at least part of the following content.

[0309] Step 401, the first access network device determines to handover the second terminal to the second access network device.

[0310] In another description, the first access network device determines that the second terminal leaves the coverage of the first access network device and enters the coverage of the second access network device.

[0311] In a possible implementation, the first access network device determines to handover the second terminal to the second access network device according to a measurement report from the second terminal.

[0312] Step 402, the first access network device sends thirteenth information to the second access network device according to a fourth correspondence.

[0313] Correspondingly, the second access network device receives the thirteenth information from the first access network device.

[0314] The fourth correspondence includes a correspondence between a second DRB of the second terminal, a second QoS of a second session of the second terminal, and a first QoS flow of a first session of the first terminal.

[0315] The thirteenth information includes first indication information, context information of the second DRB of the second terminal, and first configuration information. The first indication information is used to indicate to establish a first forwarding tunnel for the second DRB of the second terminal. The first configuration information is configuration information of the first access network device for the first forwarding tunnel.

[0316] In a possible implementation, the first access network device sends the thirteenth information to the second access network device through a handover request.

[0317] Step 403, the second access network device generates an eighth correspondence according to the thirteenth information.

[0318] The eighth correspondence includes a correspondence between the first forwarding tunnel and a third DRB of the second terminal.

[0319] Step 404, the second access network device sends fourteenth information to the first access network device.

[0320] Accordingly, the first access network device receives the fourteenth information from the second access network device.

[0321] The fourteenth information includes context information of the third DRB and second configuration information. The context information of the third DRB is used by the first access network device to configure the third DRB for the second terminal. The context information of the third DRB is determined according to the context information of the second DRB, for example, the context information of the third DRB is the same as the context information of the second DRB. The second configuration information is configuration information of the second access network device for the first forwarding tunnel.

[0322] In step 405, the first access network device generates a sixth correspondence relationship in the context of the first terminal.

[0323] The sixth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the first forwarding tunnel.

[0324] In step 406, the first access network device sends the fifteenth information to the second terminal.

[0325] Accordingly, the second terminal receives the fifteenth information from the first access network device.

[0326] The fifteenth information includes context information of the third DRB, an identifier of the second session, and an identifier of the second QoS flow.

[0327] In step 407, the second terminal generates a twelfth correspondence relationship according to the fifteenth information.

[0328] The twelfth correspondence relationship includes a correspondence relationship between the third DRB of the second terminal and the second QoS flow of the second session of the second terminal.

[0329] After steps 401-407, the downlink data of the first media can be as shown in steps 408-410.

[0330] In step 408, the first access network device receives third downlink data of the first media through the first QoS flow of the first session of the first terminal.

[0331] In step 409, the first access network device sends the third downlink data to the second access network device through the first forwarding tunnel according to the sixth correspondence relationship. The sixth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the first forwarding tunnel.

[0332] In step 410, the second access network device sends the third downlink data to the second terminal through the third DRB of the second terminal according to the eighth correspondence relationship.

[0333] After steps 401-407, the uplink data of the first media can be transmitted as shown in steps 411-415.

[0334] Step 411, the second terminal obtains the third uplink data of the first media.

[0335] Step 412, the second terminal determines to send the third uplink data through the second QoS flow of the second session according to the context information of the second QoS flow of the second session.

[0336] In a possible implementation, the second terminal determines to send the third uplink data through the second QoS flow of the second session according to the QoS rule in the context information of the second QoS flow of the second session.

[0337] Step 413, the second terminal sends the third uplink data to the second access network device through the third DRB of the second terminal according to the twelfth correspondence. The twelfth correspondence includes the correspondence between the third DRB of the second terminal and the second QoS flow of the second session of the second terminal.

[0338] Step 414, the second access network device sends the third uplink data to the first access network device through the first forwarding tunnel according to the eighth correspondence.

[0339] Step 415, the first access network device sends the third uplink data through the first QoS flow of the first session of the first terminal according to the sixth correspondence.

[0340] It should be noted that, Figure 4 The steps of switching the second terminal to the second access network device not shown in detail in the foregoing embodiments can refer to the prior art, and will not be described herein.

[0341] For the above scenario 3, the present application provides Figure 5 and Figure 6 The method shown in the method.

[0342] Figure 5 is a schematic diagram of a method 500 for transmitting data provided by an embodiment of the present application. The method 500 can include at least part of the following content.

[0343] Step 501, the second terminal determines the third session and the third QoS flow according to the context information of the second session and the context information of the second QoS flow.

[0344] Step 502, the second terminal generates the tenth correspondence.

[0345] The tenth correspondence includes the correspondence between the first QoS flow of the first session of the first terminal, the third QoS flow of the third session of the second terminal, and the second DRB of the second terminal.

[0346] At step 503, the second terminal sends seventh information to the first access network device.

[0347] Correspondingly, the first access network device receives the seventh information sent by the second terminal.

[0348] The seventh information is used to indicate that the second DRB of the second terminal corresponds to the third QoS flow of the third session of the second terminal.

[0349] At step 504, the first access network device generates an eleventh correspondence relationship according to the seventh information.

[0350] The eleventh correspondence relationship includes the correspondence relationship between the second DRB of the second terminal and the third QoS flow of the third session of the second terminal.

[0351] Steps 501-504 are the same as steps 301-304 in Figure 3 For more details, refer to steps 301-304, which will not be described here.

[0352] At step 505, the first access network device determines to hand over the first terminal to the second access network device.

[0353] Alternatively, the first access network device determines that the first terminal leaves the coverage of the first access network device and enters the coverage of the third access network device.

[0354] In one possible implementation, the first access network device determines to hand over the first terminal to the second access network device according to a measurement report from the first terminal.

[0355] At step 506, the first access network device sends tenth information to a first UPF that provides services for the first terminal.

[0356] Correspondingly, the first UPF receives the tenth information from the first access network device.

[0357] The tenth information is used to request to modify the IP address of the data corresponding to the first QoS flow of the first session of the first terminal to the IP address of the third session.

[0358] At step 507, the first UPF modifies the IP address of the data of the first QoS flow of the first session of the first terminal to the IP address of the third session.

[0359] At step 508, the first access network device sends eleventh information to the second terminal.

[0360] Correspondingly, the second terminal receives the eleventh information from the first access network device.

[0361] The eleventh information is used to indicate to delete the second session and the second QoS flow.

[0362] Steps 506-508 are the same as steps 306-308 in Figure 3 For more details, please refer to steps 306-308, which will not be repeated here.

[0363] In step 509, the second terminal generates a thirteenth correspondence relationship according to the eleventh information, and deletes the second session and the second QoS flow.

[0364] The thirteenth correspondence relationship includes a correspondence relationship between the second DRB of the second terminal and the third QoS flow of the third session of the second terminal.

[0365] After steps 501-509, the transmission of the downlink data of the first media can be as shown in steps 510-511.

[0366] In step 510, the first access network device receives fifth downlink data of the first media through the third QoS flow of the third session of the second terminal.

[0367] In step 511, the first access network device sends the fifth downlink data to the second terminal through the second DRB of the second terminal according to the eleventh correspondence relationship in the context of the second terminal.

[0368] The eleventh correspondence relationship includes a correspondence relationship between the second DRB of the second terminal and the third QoS flow of the third session of the second terminal.

[0369] After steps 501-509, the uplink data of the first media can be as shown in steps 512-515.

[0370] In step 512, the second terminal obtains fifth uplink data of the first media.

[0371] In step 513, the second terminal determines to send the fifth uplink data through the third QoS flow of the third session according to the context information of the third QoS flow of the third session.

[0372] In one possible implementation, the second terminal determines to send the fifth uplink data through the third QoS flow of the third session according to a QoS rule in the context information of the third QoS flow of the third session.

[0373] In step 514, the second terminal sends the fifth uplink data to the first access network device through the second DRB of the second terminal according to the thirteenth correspondence relationship. The thirteenth correspondence relationship includes a correspondence relationship between the second DRB of the second terminal and the third QoS flow of the third session of the second terminal.

[0374] At step 515, the first access network device sends the fifth uplink data through the third QoS flow of the third session of the second terminal according to the eleventh correspondence relationship in the context of the second terminal.

[0375] It should be further noted that if the first access network device configures the second terminal with a new third DRB for transmitting data of the third QoS flow of the third session, the first access network device further generates a fifteenth correspondence relationship, and the second terminal further generates a sixteenth correspondence relationship, where the fifteenth correspondence relationship includes the correspondence relationship between the third DRB of the second terminal and the third QoS flow of the third session of the second terminal. The sixteenth correspondence relationship includes the correspondence relationship between the third DRB of the second terminal and the third QoS flow of the third session of the second terminal. In this way, at step 511, the first access network device sends the fifth downlink data to the second terminal through the third DRB of the second terminal according to the fifteenth correspondence relationship in the context of the second terminal; at step 514, the second terminal sends the fifth uplink data to the first access network device through the third DRB of the second terminal according to the sixteenth correspondence relationship; and at step 515, the first access network device sends the fifth uplink data through the third QoS flow of the third session of the second terminal according to the fifteenth correspondence relationship in the context of the second terminal.

[0376] Figure 6 FIG. 6 is a schematic diagram of a method 600 for transmitting data provided by an embodiment of the present application. The method 600 can include at least part of the following content.

[0377] At step 601, the first access network device determines to hand over the first terminal to the second access network device.

[0378] Alternatively, the first access network device determines that the first terminal leaves the coverage of the first access network device and enters the coverage of the third access network device.

[0379] In one possible implementation, the first access network device determines to hand over the first terminal to the second access network device according to a measurement report from the first terminal.

[0380] At step 602, the first access network device sends sixteenth information to the third access network device according to a fourth correspondence relationship.

[0381] Correspondingly, the third access network device receives the sixteenth information from the first access network device.

[0382] The fourth correspondence relationship includes the correspondence relationship between the second DRB of the first terminal, the second QoS of the second session of the second terminal, and the first QoS flow of the first session of the first terminal.

[0383] The sixteenth information includes third indication information and third configuration information. The third indication information is used to indicate that a second forwarding tunnel is established for a first QoS flow of a first session of the first terminal. The third configuration information is configuration information of the second forwarding tunnel for the first access network device.

[0384] In a possible implementation, the first access network device sends the sixteenth information to the third access network device through a handover request.

[0385] In step 603, the third access network device generates a ninth correspondence relationship according to the sixteenth information.

[0386] The ninth correspondence relationship includes a correspondence relationship between the second forwarding tunnel and the first QoS flow of the first session of the first terminal.

[0387] In step 604, the third access network device sends fourth configuration information to the first access network device.

[0388] Correspondingly, the first access network device receives the fourth configuration information from the third access network device.

[0389] The fourth configuration information is configuration information of the first forwarding tunnel for the third access network device.

[0390] In step 605, the first access network device generates a seventh correspondence relationship in a context of the second terminal.

[0391] The seventh correspondence relationship includes a correspondence relationship between a second DRB of the second terminal and the second forwarding tunnel.

[0392] After steps 601-605, downlink data of the first media can be as shown in steps 606-608.

[0393] In step 606, the third access network device receives fourth downlink data of the first media through the first QoS flow of the first session of the first terminal.

[0394] In step 607, the third access network device sends the fourth downlink data to the first access network device through the second forwarding tunnel according to the ninth correspondence relationship. The ninth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the second forwarding tunnel.

[0395] In step 608, the first access network device sends the fourth downlink data to the second terminal through the second DRB of the second terminal according to the seventh correspondence relationship.

[0396] After steps 601-605, uplink data of the first media can be as shown in steps 609-613.

[0397] Step 609. The second terminal acquires the fourth uplink data of the first media.

[0398] Step 610. The second terminal determines to send the fourth uplink data through the second QoS flow of the second session according to the context information of the second QoS flow of the second session.

[0399] In a possible implementation, the second terminal determines to send the fourth uplink data through the second QoS flow of the second session according to the QoS rule in the context information of the second QoS flow of the second session.

[0400] Step 611. The second terminal sends the fourth uplink data to the first access network device through the second DRB of the second terminal according to the first correspondence relationship. The first correspondence relationship includes a correspondence relationship between the second DRB of the second terminal and the second QoS flow of the second session of the second terminal.

[0401] Step 612. The first access network device sends the fourth uplink data to the third access network device through the second forwarding tunnel according to the seventh correspondence relationship.

[0402] Step 613. The third access network device sends the fourth uplink data through the first QoS flow of the first session of the first terminal according to the ninth correspondence relationship.

[0403] It should be noted that, Figure 6 The steps of switching the first terminal to the third access network device not explicitly shown in the above embodiments can refer to the prior art, and will not be described here.

[0404] The technical solutions of the present application will be described below with reference to the accompanying drawings. Figures 7 to 19 The technical solutions of the present application will be described below with reference to the accompanying drawings. Figures 7 to 19 In the above embodiments, AMF-1, SMF-1, and UPF-1 are core network entities providing services for UE1, and AMF-2 and SMF-2 are core network entities providing services for UE2. Among them, AMF-1 and AMF-2 can be the same or different; SMF-1 and SMF-2 can be the same or different. In the above embodiments, Figures 7 to 19 In the above embodiments, UE1, UE2, base station-A, base station-B, base station-C, AMF-1, SMF-1, UPF-1, AMF-2, and SMF-2 correspond to the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, the first SMF, the first UPF, the second AMF, and the second SMF respectively.

[0405] Example 1

[0406] The method shown in Example 1 can be applied to the above-mentioned scenario 1. For scenario 1, Figure 7A change of the transmission path of the media data of UE-1 after applying the technical solution of the present application is shown. Wherein, AS-1 is the server of the application being used on UE-1, and AS-2 is the server of the application being used on UE-2.

[0407] As shown in Figure 7 , the transmission path of the media data of UE-1 is changed from path 1 to path 2.

[0408] Path 1: UE-1 and UE-2 respectively transmit the media data of each other, UE-1 communicates with AS-1 through base station-A and UPF-1, and UE-2 communicates with AS-2 through base station-A and UPF-1.

[0409] Path 2: for the media data of UE-1, taking base station-A as an anchor point, the data transmission channel of AS-1 to base station-A remains unchanged, and the data transmission channel of base station-A to UE-1 is changed to base station-A to UE-2. After the change, AS-1 transmits the media data of UE-1 to base station-A through the data transmission channel of UE-1, and base station-A transmits the received media data of UE-1 to UE-2 through the data transmission channel of UE-2.

[0410] For scenario 1, the present application provides Figure 8 the method for transmitting data shown in the figure.

[0411] Figure 8 is an example of the method for transmitting data provided by the present application.

[0412] Step 801, UE-1 sends a first request message to UE-2.

[0413] Correspondingly, UE-2 receives the first request message from UE-1.

[0414] The first request message can correspond to the second information described above.

[0415] Wherein, the first request message is used to request to transfer the media of UE-1 to UE-2. The first request message carries the application (APP) identity (ID) corresponding to the media.

[0416] Step 802, UE-2 sends a first response message to UE-1.

[0417] Correspondingly, UE-1 receives the first response message from UE-2.

[0418] The first response message can correspond to the third information described above.

[0419] The first response message includes an identifier of the UE-2, an identifier of a cell where the UE-2 is located, and a PSI-2 allocated to the UE-2.

[0420] The identifier of the UE-2 is information that can uniquely determine the UE-2, for example, the identifier of the UE-2 can be a 5G-GUTI, a TMSI, a C-RNTI, etc. The identifier of the cell where the UE-2 is located is information that can uniquely determine the cell where the UE-2 is located, for example, the identifier of the cell where the UE-2 is located can be an NCGI or a PCI. The PSI-2 is an identifier of a PDU session of the UE-2 for transmitting data of the media transferred from the UE-1 to the UE-2. Optionally, the UE-2 can encrypt the PSI-2, for example, the UE-2 can encrypt the PSI-2 using an encryption key between the base station and the UE-2.

[0421] At step 803, the UE-1 sends a second request message to the base station-A.

[0422] Correspondingly, the base station-A receives the second request message from the UE-1.

[0423] The second request message can correspond to the first information described above.

[0424] The second request message is used to request to transfer the media of the UE-1 to the UE-2. The second request message includes an identifier of the UE-2, a PSI-2 allocated to the UE-2, and information of a QoS flow corresponding to the media. The information of the QoS flow corresponding to the media can include a PSI-1, a QFI-1, and a QoS rule corresponding to the media, wherein the PSI-1 is an identifier of a PDU session of the UE-1 for transmitting data of the media, and the QFI-1 is an identifier of a QoS flow of the UE-1 for transmitting data of the media.

[0425] Optionally, the second request message is a radio resource control (RRC) message.

[0426] Optionally, if the UE-2 encrypts the PSI-2, the base station-A can decrypt the PSI-2 and verify the legality of the UE-1 transferring the media to the UE-2.

[0427] At step 804, the base station-A sends a third request message to the AMF-1.

[0428] Correspondingly, the AMF-1 receives the third request message from the base station-A.

[0429] The third request message is used to request information related to the media. The third request message includes the PSI-1 and the QFI-1.

[0430] Step 805, the AMF-1 sends a fourth request message to the SMF-1.

[0431] Correspondingly, the SMF-1 receives the fourth request message from the AMF-1.

[0432] The fourth request message is used to request the related information of the media. The fourth request message includes the PSI-1 and the QFI-1.

[0433] Step 806, the SMF-1 sends a fourth response message to the AMF-1 according to the fourth request message.

[0434] Correspondingly, the AMF-1 receives the fourth response message from the SMF-1.

[0435] The fourth response message includes the related information of the media. The related information of the media includes the information corresponding to the PSI-1 and the information corresponding to the QFI-1. The information corresponding to the PSI-1 includes at least one of the following information: IP address, DNN, S-NSSAI, SSC mode, session AMBR, and the like. The information corresponding to the QFI-1 includes at least one of the following information: 5QI, GFBR, MFBR, and the like QoS parameters.

[0436] Step 807, the AMF-1 sends a third response message to the base station-A.

[0437] Correspondingly, the base station-A receives the third response message from the AMF-1.

[0438] The third response message of the base station-A includes the information corresponding to the PSI-1 and the information corresponding to the QFI-1. The information corresponding to the PSI-1 includes at least one of the following information: IP address, DNN, S-NSSAI, SSC mode, session AMBR, and the like. The information corresponding to the QFI-1 includes at least one of the following information: 5QI, GFBR, MFBR, and the like QoS parameters.

[0439] Step 808, the base station-A sends a first configuration message to the UE-2.

[0440] Correspondingly, the UE-2 receives the first configuration message from the base station-A.

[0441] The first configuration message is used for configuring the UE-2 with the DRB-2, and the DRB-2 is used for transmitting the data of the media transferred from the UE-1 to the UE-2. The first configuration message carries fourth information, and the fourth information includes at least one of the following information: the PSI-2, information corresponding to the PSI-1, the QFI-2, information corresponding to the QFI-1, and a QoS rule corresponding to the media. The QFI-2 is an identifier of a QoS flow of the UE-2 used for transmitting the data of the media transferred from the UE-1 to the UE-2. In a possible implementation, the PSI-2 and the QFI-2 are carried in an SDAP header of the first configuration message.

[0442] Optionally, the QFI-2 is the same as the QFI-1.

[0443] In step 809, the base station-A updates the context of the UE-1 and the context of the UE-2.

[0444] Specifically, the base station-A records a third correspondence relationship in the context of the UE-1 and records a fourth correspondence relationship in the context of the UE-2. The third correspondence relationship is The fourth correspondence relationship is

[0445] It should be noted that the order of steps 808 and 809 is not limited in the present application.

[0446] In step 810, the UE-2 generates a QoS flow parameter corresponding to the DRB-2 according to the first configuration message.

[0447] The QoS flow parameter corresponding to the DRB-2 includes information corresponding to the PSI-2 and information corresponding to the QFI-2. The information corresponding to the PSI-2 includes at least one of the following information: an IP address, a DNN, an S-NSSAI, an SSC mode, and a session AMBR, and the IP address is the IP address of the UE-1. The information corresponding to the QFI-2 includes at least one of the following information: a 5QI, a GFBR, a MFBR, and a QoS parameter such as a QoS rule corresponding to the media.

[0448] Optionally, the UE-2 can save the first correspondence relationship:

[0449] Subsequently, for uplink, when media generation data is generated from UE-1 to UE-2, UE-2 can use the IP address of PSI-2 as the source IP address of the IP packet, map the media generation data to QFI-2 using the QoS rule corresponding to the media, and send to base station-A through DRB-2; base station-A sends the received data to UPF-1 through PSI-1 and QFI-1 according to the fourth correspondence, and then sends to AS-1 by UPF-1. For downlink, when base station-A receives data through PSI-1 and QFI-1, base station-A sends the received data to UE-2 through DRB-2 according to the third correspondence.

[0450] In addition, it should be noted that the first response message in step 802 and the second request message in step 803 can also not carry PSI-2 allocated by UE-2, and an alternative solution is that base station-A can use a preset PSI (for example, 0). In other words, UE-2 can not allocate PSI-2.

[0451] It should also be noted that the first request message in step 801 can also not carry the application identifier corresponding to the media, and an alternative solution is that UE-1 sends the application identifier to base station-A, which is then sent to UE-2 by base station-A, for example, UE-1 can send the application identifier to base station-A through the second request message in step 803, and base station-A can send the application identifier to UE-2 through the first configuration message in step 808.

[0452] It should also be noted that base station-A can also not obtain the related information of the media from the core network, that is, steps 804-807 can not be performed, and an alternative solution is that base station-A obtains and sends the related information of the media according to the QoS profile, wherein the QoS profile can be sent by SMF-1 to base station-A when establishing the QoS flow for UE-1.

[0453] In the above technical solution, base station-A can obtain a virtual PSI-2 and configure DRB-2 for UE-2 according to PSI-2, and at the same time, base station-A can send the IP address of PSI-1, the QoS rule corresponding to the media, the parameters of the PDU session corresponding to PSI-1, and the parameters of the QoS flow corresponding to QFI-1 to UE-2, and UE-2 can construct a virtual PDU session (PSI-2) and a QoS flow (QFI-2) according to the received information, the virtual PDU session uses the IP address of PSI-1, and the virtual QoS flow is based on the QoS rule corresponding to the media. In this way, the media of UE-1 can be transferred to UE-2, and the transmission of the media data can be ensured without interruption. For UE-1, UE-1 can completely exit the transmission of the media data.

[0454] Example 2

[0455] For scenario 1, the present application further provides Figure 9 a method for transmitting data as shown.

[0456] Figure 9 is another example of the method for transmitting data provided by the present application.

[0457] Step 901, UE-1 sends a first request message to UE-2.

[0458] Correspondingly, UE-2 receives the first request message from UE-1.

[0459] The first request message can correspond to the second information described above.

[0460] The first request message is used to request the media of UE-1 to be transferred to UE-2. The first request message carries the application identifier corresponding to the media.

[0461] Step 902, UE-2 sends a first response message to UE-1.

[0462] Correspondingly, UE-1 receives the first response message from UE-2.

[0463] The first response message can correspond to the third information described above.

[0464] The first response message includes the identifier of UE-2, the identifier of the cell where UE-2 is located, and the PSI-2 allocated by UE-2.

[0465] The identifier of UE-2 is information that can uniquely determine UE-2, for example, the identifier of UE-2 can be 5G-GUTI, TMSI, C-RNTI, etc. The identifier of the cell where UE-2 is located is information that can uniquely determine the cell where UE-2 is located, for example, the identifier of the cell where UE-2 is located can be NCGI. PSI-2 is the identifier of the PDU session of UE-2 for transmitting the media transferred from UE-1 to UE-2. Optionally, UE-2 can encrypt PSI-2, for example, UE-2 can encrypt PSI-2 using the encryption key between the base station and UE-2.

[0466] Step 903, UE-1 sends a fifth request message to AMF-1.

[0467] Correspondingly, AMF-1 receives the fifth request message from UE-1.

[0468] The fifth request message is used for requesting to transfer the media of the UE-1 to the UE-2. The fifth request message includes an identifier of the UE-2, the PSI-2 allocated to the UE-2, and information of a QoS flow corresponding to the media. The information of the QoS flow corresponding to the media can include the PSI-1, the QFI-1, and a QoS rule corresponding to the media, wherein the PSI-1 is an identifier of a PDU session of the UE-1 used for transmitting data of the media, and the QFI-1 is an identifier of a QoS flow of the UE-1 used for transmitting data of the media.

[0469] Optionally, the fifth request message is a NAS message.

[0470] The AMF-1 sends a fourth request message to the SMF-1.

[0471] Correspondingly, the SMF-1 receives the fourth request message from the AMF-1.

[0472] The fourth request message is used for requesting information related to the media. The information related to the media can include the second information. The fourth request message includes the PSI-1 and the QFI-1.

[0473] The SMF-1 sends a fourth response message to the AMF-1 according to the fourth request message.

[0474] Correspondingly, the AMF-1 receives the fourth response message from the SMF-1.

[0475] The fourth response message includes the information related to the media. The information related to the media includes information corresponding to the PSI-1 and information corresponding to the QFI-1. The information corresponding to the PSI-1 includes at least one of the following: an IP address, a DNN, an S-NSSAI, an SSC mode, a session AMBR, and the like. The information corresponding to the QFI-1 includes at least one of the following: a 5QI, a GFBR, a MFBR, and the like.

[0476] The AMF-1 sends a sixth request message to the base station-A.

[0477] Correspondingly, the base station-A receives the sixth request message from the AMF-1.

[0478] The sixth request message is used for requesting to transfer the media of the UE-1 to the UE-2. The sixth request message includes an identifier of the UE-2, the PSI-2, information corresponding to the PSI-1, and information corresponding to the QFI-1. The information corresponding to the PSI-1 includes at least one of the following: an IP address, a DNN, an S-NSSAI, an SSC mode, a session AMBR, and the like. The information corresponding to the QFI-1 includes at least one of the following: a 5QI, a GFBR, a MFBR, and the like.

[0479] Optionally, if UE-2 encrypts PSI-2, base station-A can decrypt PSI-2 and verify the legitimacy of UE-1 transferring the media to UE-2.

[0480] At step 907, base station-A sends a first configuration message to UE-2.

[0481] Correspondingly, UE-2 receives the first configuration message from base station-A.

[0482] The first configuration message is used to configure DRB-2 for UE-2, and DRB-2 is used to transmit the data of the media transferred from UE-1 to UE-2. The first configuration message includes fourth information, and the fourth information includes at least one of the following information: PSI-2, information corresponding to PSI-1, QFI-2, information corresponding to QFI-1, and QoS rules corresponding to the media. QFI-2 is an identifier of a QoS flow of UE-2 used to transmit the data of the media transferred from UE-1 to UE-2. In a possible implementation, PSI-2 and QFI-2 are carried in the SDAP header of the first configuration message.

[0483] Optionally, QFI-2 is the same as QFI-1.

[0484] At step 908, base station-A updates the context of UE-1 and the context of UE-2.

[0485] Specifically, base station-A records a third correspondence relationship in the context of UE-1 and records a fourth correspondence relationship in the context of UE-2. The third correspondence relationship is The fourth correspondence relationship is

[0486] It should be noted that the order of steps 907 and 908 is not limited in the present application.

[0487] At step 909, UE-2 generates QoS flow parameters corresponding to DRB-2 according to the first configuration message.

[0488] The QoS flow parameters corresponding to DRB-2 include information corresponding to PSI-2 and information corresponding to QFI-2. The information corresponding to PSI-2 includes at least one of the following information: IP address, DNN, S-NSSAI, SSC mode, and session AMBR, wherein the IP address is the IP address of UE-1. The information corresponding to QFI-2 includes at least one of the following information: 5QI, GFBR, MFBR, and QoS parameters such as QoS rules, wherein the QoS rules are QoS rules corresponding to the media.

[0489] Optionally, UE-2 can save the first correspondence relationship:

[0490] Subsequently, for uplink, when media generation data is generated from UE-1 to UE-2, UE-2 can use the IP address of PSI-2 as the source IP address of the IP packet, use the QoS rule corresponding to the media to map the media generation data to QFI-2, and send to base station-A through DRB-2; base station-A sends the received data to UPF-1 through PSI-1 and QFI-1 according to the fourth correspondence relationship, and then sends to AS-1 by UPF-1. For downlink, when base station-A receives data through PSI-1 and QFI-1, base station-A sends the received data to UE-2 through DRB-2 according to the third correspondence relationship.

[0491] In addition, it needs to be explained that the first response message in step 902, the fifth request message in step 903, and the sixth request message in step 906 can also not carry PSI-2 allocated by UE-2, and an alternative solution is that base station-A can use a preset PSI (for example, 0). In other words, UE-2 can not allocate PSI-2.

[0492] It also needs to be explained that the first request message in step 901 can also not carry the application identifier corresponding to the media, and an alternative solution is that UE-1 sends the application identifier to AMF-1, which is sent to base station-A, and then sent to UE-2 by base station-A, for example, UE-1 can send the application identifier to AMF-1 through the fifth request message in step 903, AMF-1 can send the application identifier to base station-A through the sixth request message in step 906, and base station-A can send the application identifier to UE-2 through the first configuration message in step 907.

[0493] It also needs to be explained that base station-A can also not obtain the related information of the media from the core network, and an alternative solution is that base station-A obtains and sends the related information of the media according to the QoS profile, wherein the QoS profile can be sent by SMF-1 to base station-A when establishing the QoS flow for UE-1.

[0494] In the technical solution, the base station-A can obtain a virtual PSI-2, and configure DRB-2 for UE-2 according to the PSI-2, and meanwhile, the base station-A can send the IP address of the PSI-1, the QoS rule corresponding to the media, the parameters of the PDU session corresponding to the PSI-1, and the parameters of the QoS flow corresponding to the QFI-1 to UE-2, and UE-2 can construct a virtual PDU session (PSI-2) and a QoS flow (QFI-2) according to the received information, the virtual PDU session uses the IP address of the PSI-1, and the virtual QoS flow is based on the QoS rule corresponding to the media. In this way, the media of UE-1 can be transferred to UE-2, and the transmission of the media data can be ensured not to be interrupted. For UE-1, UE-1 can completely exit the transmission of the media data.

[0495] Example 3

[0496] For scenario 1, the application further provides Figure 10 The method for transmitting data is shown.

[0497] Figure 10 The method for transmitting data is shown.

[0498] Step 1001, UE-1 sends a first request message to UE-2.

[0499] Correspondingly, UE-2 receives the first request message from UE-1.

[0500] The first request message is used to request to transfer the media of UE-1 to UE-2. The first request message carries an application identifier corresponding to the media.

[0501] Step 1002, UE-2 sends a first response message to UE-1.

[0502] Correspondingly, UE-1 receives the first response message from UE-2.

[0503] The first response message includes an identifier of UE-2 and an identifier of a cell where UE-2 is located. The detailed description of the identifier of UE-2 and the identifier of the cell where UE-2 is located can be referred to Figure 8 , which will not be repeated here.

[0504] Step 1003, UE-1 sends a second request message to the base station-A.

[0505] Correspondingly, the base station-A receives the second request message from UE-1.

[0506] The second request message is used to request to transfer the media of UE-1 to UE-2. The second request message includes an identity of UE-2 and information of a QoS flow corresponding to the media. The information of the QoS flow corresponding to the media is described in detail with reference to Figure 8 The detailed description is not repeated here.

[0507] Optionally, the second request message is an RRC message.

[0508] At step 1004, the base station-A sends a seventh request message to UE-2 according to the identity of UE-2 in the second request message.

[0509] Correspondingly, UE-2 receives the seventh request message from the base station-A.

[0510] The seventh request message is used to inquire whether UE-2 agrees to transfer the media of UE-1 to UE-2. The seventh request message carries an identity of UE-1.

[0511] At step 1005, UE-2 determines whether to agree to transfer the media of UE-1 to UE-2.

[0512] If UE-2 agrees to transfer the media of UE-1 to UE-2, UE-2 can allocate a PSI-2 and perform step 1006. The PSI-2 is an identity of a PDU session of UE-2 for transmitting data of the media transferred from UE-1 to UE-2. Optionally, UE-2 can encrypt the PSI-2, for example, UE-2 can encrypt the PSI-2 using an encryption key between the base station and UE-2.

[0513] At step 1006, UE-2 sends a seventh response message to the base station-A.

[0514] Correspondingly, the base station-A receives the seventh response message from UE-2.

[0515] The seventh response message is used to indicate that UE-2 agrees to transfer the media of UE-1 to UE-2. The seventh response message carries the PSI-2 allocated by UE-2.

[0516] At step 1007, the base station-A sends a third request message to AMF-1.

[0517] Correspondingly, AMF-1 receives the third request message from the base station-A.

[0518] At step 1008, AMF-1 sends a fourth request message to SMF-1.

[0519] Correspondingly, SMF-1 receives the fourth request message from AMF-1.

[0520] Step 1009, SMF-1 sends a fourth response message to AMF-1 according to the fourth request message.

[0521] Correspondingly, AMF-1 receives the fourth response message from SMF-1.

[0522] Step 1010, AMF-1 sends a third response message to base station-A.

[0523] Correspondingly, the third response message is received from AMF-1.

[0524] Step 1011, base station-A sends a first configuration message to UE-2.

[0525] Correspondingly, UE-2 receives the first configuration message from base station-A.

[0526] Step 1012, base station-A updates the context of UE-1 and the context of UE-2.

[0527] Step 1013, UE-2 generates QoS flow parameters corresponding to DRB-2 according to the first configuration message.

[0528] Subsequently, AS-1 can transmit media generation data transferred from UE-1 to UE-2 to UE-2.

[0529] Steps 1007-1013 are the same as steps 804-810, and the description of steps 804-810 can be referred to, and will not be repeated here.

[0530] In addition, it needs to be explained that the seventh response message in step 1006 can also not carry the PSI-2 allocated by UE-2, and one alternative is to carry the PSI-2 allocated by UE-2 in the first response message in step 1002 and the second request message in step 1003, and another alternative is that base station-A can use a preset PSI (for example, 0).

[0531] It also needs to be explained that the first request message in step 1001 can also not carry the application identifier corresponding to the media, and one alternative is that UE-1 sends the application identifier to base station-A, and then base station-A sends it to UE-2, for example, UE-1 can send the application identifier to base station-A through the second request message in step 1003, and base station-A can send the application identifier to UE-2 through the first configuration message in step 1011.

[0532] It should be further noted that the base station-A can also not obtain the media-related information from the core network, i.e., steps 1007-1010 can not be performed, and an alternative is that the base station-A obtains and sends the media-related information according to a QoS profile, which can be sent by the SMF-1 to the base station-A when the QoS flow is established for the UE-1.

[0533] In the above technical solution, the base station-A can obtain a virtual PSI-2, and configure the DRB-2 for the UE-2 according to the PSI-2, while the base station-A can send the IP address of the PSI-1, the QoS rule corresponding to the media, the PDU session parameter corresponding to the PSI-1, and the parameter of the QoS flow corresponding to the QFI-1, etc. to the UE-2, and the UE-2 can construct a virtual PDU session (PSI-2) and a QoS flow (QFI-2) according to the received information, the virtual PDU session uses the IP address of the PSI-1, and the QoS flow is based on the QoS rule corresponding to the media. In this way, the media of the UE-1 can be transferred to the UE-2, and the transmission of the media data can be ensured not to be interrupted. For the UE-1, the UE-1 can completely exit the transmission of the media data.

[0534] In addition, in the above technical solution, by inquiring whether the UE-2 agrees to transfer the media of the UE-1 to the UE-2 through the base station-A, it is helpful to avoid the influence of the misoperation of the UE-1 on the UE-2, so that the media transfer process is more accurate.

[0535] Example 4

[0536] For scenario 1, the present application also provides Figure 11 The method for transmitting data is shown.

[0537] Figure 11 The method for transmitting data is another example provided by the present application.

[0538] Step 1101, the UE-1 sends a first request message to the UE-2.

[0539] Correspondingly, the UE-2 receives the first request message from the UE-1.

[0540] The first request message is used to request to transfer the media of the UE-1 to the UE-2. The first request message carries an application identifier corresponding to the media.

[0541] Step 1102, the UE-2 sends a first response message to the UE-1.

[0542] Correspondingly, the UE-1 receives the first response message from the UE-2.

[0543] The first response message includes an identifier of UE-2 and an identifier of a cell where UE-2 is located. The identifiers of UE-2 and the cell where UE-2 is located are described in detail in the following. Figure 8 Details are not described herein again.

[0544] At step 1103, UE-1 sends a fifth request message to AMF-1.

[0545] Correspondingly, AMF-1 receives the fifth request message from UE-1.

[0546] The fifth request message is used to request media transfer of UE-1 to UE-2. The fifth request message includes an identifier of UE-2 and information of a QoS flow corresponding to the media. The information of the QoS flow corresponding to the media is described in detail in the following. Figure 8 Details are not described herein again.

[0547] Optionally, the fifth request message is a NAS message.

[0548] At step 1104, AMF-1 sends an eighth request message to AMF-2 according to the identifier of UE-2 in the fifth request message.

[0549] Correspondingly, AMF-2 receives the eighth request message from AMF-1.

[0550] The eighth request message is used to inquire whether UE-2 agrees to media transfer of UE-1 to UE-2. The eighth request message carries an identifier of UE-1 and an identifier of UE-2.

[0551] At step 1105, AMF-2 sends a ninth request message to UE-2 according to the identifier of UE-2 in the eighth request message.

[0552] Correspondingly, UE-2 receives the ninth request message from AMF-2.

[0553] The ninth request message is used to inquire whether UE-2 agrees to media transfer of UE-1 to UE-2. The ninth request message carries an identifier of UE-1.

[0554] At step 1106, UE-2 determines whether to agree to media transfer of UE-1 to UE-2.

[0555] If UE-2 agrees to transfer the media of UE-1 to UE-2, UE-2 can allocate PSI-2 and perform step 1107. Wherein, PSI-2 is an identifier of a PDU session of UE-2 for transmitting data of the media transferred from UE-1 to UE-2, and optionally, UE-2 can encrypt PSI-2, for example, UE-2 can encrypt PSI-2 using an encryption key between the base station and UE-2.

[0556] Step 1107, UE-2 sends a ninth response message to AMF-2.

[0557] Correspondingly, AMF-2 receives the ninth response message from UE-2.

[0558] Wherein, the ninth response message is used to indicate that UE-2 agrees to transfer the media of UE-1 to UE-2. The ninth response message carries PSI-2 allocated by UE-2.

[0559] Step 1108, AMF-2 sends an eighth response message to AMF-1.

[0560] Correspondingly, AMF-1 receives the eighth response message from AMF-2.

[0561] Wherein, the eighth response message is used to indicate that UE-2 agrees to transfer the media of UE-1 to UE-2. The eighth response message carries PSI-2 allocated by UE-2.

[0562] Step 1109, AMF-1 sends a fourth request message to SMF-1.

[0563] Correspondingly, SMF-1 receives the fourth request message from AMF-1.

[0564] Wherein, the fourth request message is used to request the related information of the media. The related information of the media can include the second information above. The fourth request message includes PSI-1 and QFI-1.

[0565] Step 1110, SMF-1 sends a fourth response message to AMF-1 according to the fourth request message.

[0566] Correspondingly, AMF-1 receives the fourth response message from SMF-1.

[0567] Step 1111, AMF-1 sends a sixth request message to base station-A.

[0568] Correspondingly, the sixth request message is received from AMF-1.

[0569] Step 1112, base station-A sends a first configuration message to UE-2.

[0570] Correspondingly, UE-2 receives the first configuration message from base station-A.

[0571] At step 1113, base station-A updates the context of UE-1 and the context of UE-2.

[0572] At step 1114, UE-2 generates the QoS flow parameter corresponding to DRB-2 according to the first configuration message.

[0573] Subsequently, AS-1 can transmit the media generation data transferred from UE-1 to UE-2 to UE-2.

[0574] Steps 1109-1114 are the same as steps 904-909, and the description of steps 904-909 can be referred to, and will not be repeated here.

[0575] In addition, it needs to be pointed out that the ninth response message in step 1107 and the eighth response message in step 1108 can also not carry the PSI-2 allocated by UE-2, and one alternative is to carry the PSI-2 allocated by UE-2 in the first response message in step 1102, the fifth request message in step 1103, and the sixth request message in step 1111, and another alternative is that base station-A can use a preset PSI (for example, 0).

[0576] It also needs to be pointed out that the first request message in step 1101 can also not carry the application identifier corresponding to the media, and one alternative is that UE-1 sends the application identifier to AMF-1, which is sent to base station-A and then to UE-2 by base station-A, for example, UE-1 can send the application identifier to AMF-1 through the fifth request message in step 1103, AMF-1 can send the application identifier to base station-A through the sixth request message in step 1111, and base station-A can send the application identifier to UE-2 through the first configuration message in step 1112.

[0577] It also needs to be pointed out that base station-A can also not obtain the related information of the media from the core network, and one alternative is that base station-A obtains and sends the related information of the media according to the QoS profile, wherein the QoS profile can be sent by SMF-1 to base station-A when establishing the QoS flow for UE-1.

[0578] In the technical solution, the base station-A can obtain a virtual PSI-2, and configure DRB-2 for UE-2 according to PSI-2, and meanwhile, the base station-A can send the IP address of PSI-1, the QoS rule corresponding to the media, the parameters of the PDU session corresponding to PSI-1, and the parameters of the QoS flow corresponding to QFI-1 to UE-2, and UE-2 can construct a virtual PDU session (PSI-2) and a virtual QoS flow (QFI-2) according to the received information, the virtual PDU session uses the IP address of PSI-1, and the virtual QoS flow is based on the QoS rule corresponding to the media. In this way, the media of UE-1 can be transferred to UE-2, and the transmission of the media data can be ensured without interruption. For UE-1, UE-1 can completely exit the transmission of the media data.

[0579] In addition, in the technical solution, the AMF-2 inquires whether UE-2 agrees to transfer the media of UE-1 to UE-2, which helps to avoid the influence of the misoperation of UE-1 on UE-2, so that the media transfer process is more accurate.

[0580] Example 5

[0581] The method shown in Example 5 can be applied to scenario 2 described above. For scenario 2, Figure 12 A change in the transmission path of the media data of UE-1 after the application of the technical solution of the present application is shown. Wherein, AS-1 is the server of the application being used on UE-1, AS-2 is the server of the application being used on UE-2; UPF-1 is the UPF serving UE-1 and UE-2.

[0582] When UE-2 moves in a larger range and leaves the coverage range of base station-A and enters the coverage range of base station-B, the transmission path of the media data of UE-1 is changed from path 2 to path 3.

[0583] Path 2: for reference can be made to Figure 7 , which will not be repeated here.

[0584] Path 3: for the media data of UE-1, the data transmission channel between UPF-1 of UE-1 and base station-A is changed to the data transmission channel between UPF-1 of UE-2 and base station-B. After the change, AS-1 transmits the media data of UE-1 to UPF-1, UPF-1 transmits the media data of UE-1 to base station-B through the data transmission channel of UE-2, and base station-B transmits the received media data of UE-1 to UE-2 through the data transmission channel of UE-2.

[0585] For scenario 2, the present application provides Figure 13 The method for transmitting data is shown.

[0586] Figure 13 is another example of the method for transmitting data provided by the present application.

[0587] Before performing the method shown in Figure 13 UE-2 generates information corresponding to PSI-2 and information corresponding to QFI-2, and saves the first correspondence relationship before performing the method shown in Base station-A records the third correspondence relationship in the context of UE-1: Records the fourth correspondence relationship in the context of UE-2: It should be noted that the information and correspondence relationship here can be obtained by any one of the methods shown in Figures 8-12

[0588] Step 1301, UE-2 determines whether there is a PDU session PSI-3 corresponding to PSI-2 and whether there is a QoS flow QFI-3 corresponding to QFI-2 according to the information corresponding to PSI-2 and the information corresponding to QFI-2.

[0589] In other words, UE-2 determines whether there is a real PDU session PSI-3 or QoS flow QFI-3 corresponding to virtual PDU session PSI-2 and QoS flow QFI-2 according to the information corresponding to PSI-2 and the information corresponding to QFI-2.

[0590] If UE-2 determines that there is no session PSI-3 corresponding to PSI-2 and / or QoS flow QFI-3 corresponding to QFI-2, UE-2 performs step 1302.

[0591] If UE-2 determines that there is a session PSI-3 corresponding to PSI-2 and / or a QoS flow QFI-3 corresponding to QFI-2, UE-2 performs step 1303, i.e. skips step 1302.

[0592] Step 1302, UE-2 initiates the establishment process of PDU session PSI-3 and / or the establishment process of QoS flow QFI-3.

[0593] Wherein, UE-2 establishes PDU session PSI-3 and / or QoS flow QFI-3 according to the information corresponding to PSI-2 and the information corresponding to QFI-2. In other words, the information corresponding to PSI-3 is the same as the information corresponding to PSI-2, and the information corresponding to QFI-3 is the same as the information corresponding to QFI-2.

[0594] Step 1303, UE-2 generates the tenth correspondence relationship.

[0595] Wherein, the tenth correspondence relationship is: ​

[0596] In a possible implementation, the UE-2 can obtain the tenth correspondence relationship by updating the first correspondence relationship.

[0597] At step 1304, the UE-2 reports the seventh information to the base station-A.

[0598] The seventh information is used to indicate that the DBR-2 corresponds to the PSI-3 and the QFI-3 of the UE-2.

[0599] In a possible implementation, the UE-2 transmits the seventh information through uplink transport.

[0600] At step 1305, the base station-A generates an eleventh correspondence relationship according to the seventh information.

[0601] The eleventh correspondence relationship is as follows:

[0602]

[0603] In a possible implementation, the base station-A can update the fourth correspondence relationship according to the seventh information, and the updated fourth correspondence relationship is the eleventh correspondence relationship.

[0604] At step 1306, the UE-2 reports a measurement report according to the configuration of the base station-A.

[0605] At step 1307, the base station-A determines to initiate a flow of a handover base station according to the measurement report sent by the UE-2.

[0606] At step 1308, the base station-A generates a first handover message according to the eleventh correspondence relationship.

[0607] The first handover message includes the seventh information, the PSI-3, the identifier of the UE-1, the PSI-1, and the QFI-1 (or a QoS rule corresponding to a media).

[0608] In a possible implementation, the first handover message is a handover required, a source-to-target transparent container field contains the seventh information, a PDU session IDs field contains the PSI-3, and the first handover message additionally carries the identifier of the UE-1, the PSI-1, and the QFI-1 (or a QoS rule corresponding to a media).

[0609] At step 1309, the base station-A sends the first handover message to the AMF-2.

[0610] Correspondingly, the AMF-2 receives the first handover message from the base station-A.

[0611] At step 1310, the AMF-2 sends a tenth request message to the AMF-1 according to the identity of the UE-1 in the first handover message.

[0612] Correspondingly, the AMF-1 receives the tenth request message from the AMF-2.

[0613] The tenth request message is used to request to modify the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3. The tenth request message includes the identity of the UE-1, the PSI-1, and the QFI-1 (or the QoS rule corresponding to the media), and the IP address corresponding to the QFI-3 of the UE-2.

[0614] The IP address corresponding to the QFI-3 of the UE-2 can be the IP address of the UE-2 or the IP address of the QFI-3 of the UE-2. The IP address corresponding to the QFI-3 of the UE-2 can be obtained by the AMF-2 from the SMF-2.

[0615] At step 1311, the AMF-1 sends an eleventh request message to the SMF-1.

[0616] Correspondingly, the SMF-1 receives the eleventh request message from the AMF-1.

[0617] The eleventh request message is used to request to modify the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3. The eleventh request message includes the identity of the UE-1, the PSI-1, and the QFI-1 (or the QoS rule corresponding to the media), and the IP address corresponding to the PSI-3.

[0618] At step 1312, the SMF-1 sends a twelfth request message to the UPF-1.

[0619] Correspondingly, the UPF-1 receives the twelfth request message from the SMF-1.

[0620] The twelfth request message is used to request to modify the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3. The twelfth request message includes the identity of the UE-1, the PSI-1, and the QFI-1 (or the QoS rule corresponding to the media), and the IP address corresponding to the PSI-3.

[0621] Step 1313, the UPF-1 modifies the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3 according to the twelfth request message. The data corresponding to the QFI-1 of the PSI-1 can be the data of the QFI-1 of the PSI-1 or the data conforming to the QoS rule corresponding to the media.

[0622] Step 1314, the UE-2, the base station-A, the base station-B, the AMF-1, the AMF-2, the SMF-1, and the SMF-2 complete the subsequent handover process.

[0623] In the above-mentioned subsequent handover process, the base station-B can record the fifth correspondence relationship in the context of the UE-2. The fifth correspondence relationship is:

[0624] Step 1315, the UE-2 deletes the PDU session corresponding to the PSI-2 and the QoS flow corresponding to the QFI-2, and generates a second correspondence relationship.

[0625] The second correspondence relationship is:

[0626] In one possible implementation, the UE-2 can obtain the second correspondence relationship by updating the tenth correspondence relationship.

[0627] Subsequently, for uplink, when the media generation data is generated from the UE-1 to the UE-2, the UE-2 can use the IP address of the PSI-3 as the source IP address of the IP packet, map the media generation data to the QFI-3 using the QoS rule corresponding to the media, and send the data to the base station-B through the DRB-3; the base station-B transmits the received data to the UPF-1 through the PSI-3 and the QFI-3 according to the fifth correspondence relationship, and then the UPF-1 transmits the data to the AS-1. For downlink, when the base station-B receives data through the PSI-3 and the QFI-3, the base station-B transmits the received data to the UE-2 through the DRB-3 according to the fifth correspondence relationship.

[0628] Through the above technical solution, when the media of the UE-1 is transferred to the UE-2 and the UE-2 leaves the coverage range of the base station-A, the service can be ensured not to be interrupted, which helps to improve the user experience.

[0629] Example 6

[0630] The method shown in Example 6 can be applied to the above-mentioned scenario 2. For scenario 2, Figure 14 Another variation of the transmission path of the data of the media of the UE-1 after applying the technical solution of the present application is shown. The AS-1 is the server of the application being used on the UE-1, and the AS-2 is the server of the application being used on the UE-2.

[0631] When the UE-2 moves to a larger range and leaves the coverage of the base station-A and enters the coverage of the base station-B, the transmission path of the media data of the UE-1 is changed from the path 2 to the path 4.

[0632] The path 2 can refer to Figure 7 , which will not be repeated here.

[0633] The path 3: for the media data of the UE-1, the data transmission channel of the AS-1 to the base station-A remains unchanged, and after the media data of the UE-1 is transmitted to the base station-A, the base station-A transmits the media data of the UE-1 to the base station-B through the data transmission channel between the base station-A and the base station-B. After the change, the AS-1 transmits the media data of the UE-1 to the base station-A, the base station-A transmits the media data of the UE-1 to the base station-B, and the base station-B transmits the received media data of the UE-1 to the UE-2 through the data transmission channel of the UE-2.

[0634] For scenario 2, the present application also provides Figure 15 a method for transmitting data.

[0635] Figure 15 is another example of the method for transmitting data provided by the present application.

[0636] Before performing the method shown in Figure 15 , the UE-2 generates information corresponding to the PSI-2 and information corresponding to the QFI-2, and saves the first correspondence relationship: The base station-A records the third correspondence relationship in the context of the UE-1: Records the fourth correspondence relationship in the context of the UE-2: It should be noted that the information and the correspondence relationship here can be obtained by any one of the methods shown in Figures 8 to 11 .

[0637] Step 1501, the UE-2 reports a measurement report according to the configuration of the base station-A.

[0638] Step 1502, the base station-A determines to initiate a handover base station process according to the measurement report sent by the UE-2.

[0639] Step 1503, the base station-A generates a second handover message according to the fourth correspondence relationship.

[0640] The second switching message includes first indication information, second indication information, context information of the DRB-2, and configuration information of the forwarding tunnel of the base station-A for the PSI-2. The first indication information is used to indicate that the forwarding tunnel is established for the PSI-2. The second indication information is used to indicate that the DBR-2 corresponds to the PSI-2 and the QFI-2. For the convenience of distinction, the forwarding tunnel involved herein is referred to as a forwarding tunnel-1.

[0641] In a possible implementation, the second switching message is a handover request.

[0642] In step 1504, the base station-A sends a second switching message to the base station-B.

[0643] Correspondingly, the base station-B receives the second switching message from the base station-A.

[0644] In step 1505, the base station-B generates an eighth correspondence.

[0645] The eighth correspondence is: forwarding tunnel-1 DRB-3.

[0646] In step 1506, the base station-B sends a second switching response message to the base station-A.

[0647] Correspondingly, the base station-A receives the second switching response message from the base station-B.

[0648] The second switching response message includes configuration information of the DRB-3, information indicating that the switching is successful, and configuration information of the forwarding tunnel-1 of the base station-B.

[0649] In a possible implementation, the second switching response message is a handover request acknowledge.

[0650] In step 1507, the base station-A generates a sixth correspondence in the context of the UE-1.

[0651] The sixth correspondence is: PSI-1+QFI-1 forwarding tunnel-1.

[0652] In a possible implementation, the base station-A obtains the sixth correspondence by updating the third correspondence.

[0653] In step 1508, the UE-2, the base station-A, the base station-B, the AMF-1, the AMF-2, the SMF-1, the SMF-2, and the UPF-1 complete a subsequent switching process.

[0654] In step 1509, the UE-2 generates a twelfth correspondence.

[0655] wherein the twelfth correspondence is:

[0656] Subsequently, for uplink, when media generation data is generated from UE-1 to UE-2, UE-2 can use the IP address of PSI-2 as the source IP address of the IP packet, map the media generation data to QFI-2 using the QoS rule corresponding to the media, and send the data to base station-B through DRB-3; base station-B sends the received data to base station-A through forwarding tunnel-1 according to the eighth correspondence, and base station-A sends the data to UPF-1 through PSI-1 and QFI-1 according to the sixth correspondence, and then UPF-1 sends the data to AS-1. For downlink, when base station-A receives data through PSI-1 and QFI-1, base station-A sends the received data to base station-B through forwarding tunnel-1 according to the sixth correspondence, and base station-B sends the received data to UE-2 through DRB-3 according to the eighth correspondence.

[0657] It should be noted that if there is a communication interface between base station-A and base station-B, base station-A and base station-B can communicate through the interface. If there is no communication interface between base station-A and base station-B, base station-A and base station-B can communicate through AMF. Taking the second switching message as an example, base station-A can send the second switching message to AMF-1, which is sent to AMF-2, and then sent to base station-B by AMF-2.

[0658] Through the above technical solution, when the media of UE-1 is transferred to UE-2 and UE-2 leaves the coverage range of base station-A, the service can be ensured not to be interrupted, which helps to improve user experience.

[0659] Example 7

[0660] The method shown in Example 7 can be applied to scenario 3 described above. For scenario 3, Figure 16 A change in the transmission path of the data of the media of UE-1 after applying the technical solution of the present application is shown. Wherein AS-1 is the server of the application being used on UE-1, and AS-2 is the server of the application being used on UE-2.

[0661] When UE-1 has a large range of motion and leaves the coverage range of base station-A and enters the coverage range of base station-C, the transmission path of the data of the media of UE-1 changes from path 2 to path 5.

[0662] Path 2: for reference Figure 7 , which will not be repeated here.

[0663] Path 5: for the data of the media of UE-1, the data transmission channel between UPF-1 of UE-1 and base station-A is changed to the data transmission channel between UPF-1 of UE-2 and base station-A. After the change, AS-1 transmits the data of the media of UE-1 to UPF-1, UPF-1 transmits the data of the media of UE-1 to base station-A through the data transmission channel of UE-2, and base station-A transmits the received data of the media of UE-1 to UE-2 through the data transmission channel of UE-2.

[0664] For scenario 3, the present application provides Figure 17 a method for transmitting data as shown.

[0665] Figure 17 is another example of the method for transmitting data provided by the present application.

[0666] Before performing the method as shown in Figure 17 , UE-2 generates information corresponding to PSI-2 and information corresponding to QFI-2, and saves the first correspondence relationship: Base station-A records the third correspondence relationship in the context of UE-1: records the fourth correspondence relationship in the context of UE-2: It should be noted that the information and correspondence relationship here can be obtained by the method as shown in any one of Figure 8 and Figure 11 .

[0667] Step 1701: UE-2 determines whether there is a PDU session PSI-3 corresponding to PSI-2 and whether there is a QoS flow QFI-3 corresponding to QFI-2 according to the information corresponding to PSI-2 and the information corresponding to QFI-2.

[0668] Step 1702: UE-2 initiates a PDU session PSI-3 establishment process and / or a QoS flow QFI-3 establishment process.

[0669] Step 1703: UE-2 generates the tenth correspondence relationship.

[0670] Step 1704: UE-2 reports the seventh information to base station-A.

[0671] Step 1705: Base station-A generates the eleventh correspondence relationship according to the seventh information.

[0672] Steps 1701-1705 are the same as steps 1301-1305, and the description of steps 1301-1305 can be referred to, which will not be repeated here.

[0673] Step 1706: UE-1 reports a measurement report according to the configuration of base station-A.

[0674] At step 1707, the base station-A determines to initiate the procedure of handover base station according to the measurement report sent by the UE-1.

[0675] At step 1708, the base station-A generates a thirteenth request message according to the eleventh correspondence.

[0676] The thirteenth request message is used to request to modify the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3. The thirteenth request message includes the PSI-3, the identifier of the UE-1, the PSI-1, and the QFI-1 (or the QoS rule corresponding to the media).

[0677] At step 1709, the base station-A sends the thirteenth request message to the AMF-2.

[0678] Correspondingly, the AMF-2 receives the thirteenth request message from the base station-A.

[0679] At step 1710, the AMF-2 sends a fourteenth request message to the SMF-2.

[0680] Correspondingly, the SMF-2 receives the fourteenth request message from the AMF-1.

[0681] The fourteenth request message is used to request to activate the PSI-3 and request the IP address corresponding to the PSI-3.

[0682] In a possible implementation, the fourteenth request message is Nsmf_PDUSession_UpdataSMContextRequest.

[0683] At step 1711, the SMF-2 activates the PSI-3 and sends a fourteenth response message to the AMF-2.

[0684] Correspondingly, the AMF-2 receives the fourteenth response message from the SMF-2.

[0685] The fourteenth response message includes the IP address corresponding to the PSI-3.

[0686] In a possible implementation, the fourteenth response message is Nsmf_PDUSession_UpdataSMContextResponse.

[0687] At step 1712, the AMF-2 sends a fifteenth request message to the AMF-1 according to the identifier of the UE-1 in the thirteenth request message.

[0688] Correspondingly, the AMF-1 receives the fifteenth request message from the AMF-2.

[0689] The fifteenth request message is used to request to modify the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3. The fifteenth request message comprises the identifier of the UE-1, the PSI-1, the QFI-1 (or the QoS rule corresponding to the media), and the IP address corresponding to the PSI-3.

[0690] In step 1713, the AMF-1 sends a sixteenth request message to the SMF-1.

[0691] Correspondingly, the SMF-1 receives the sixteenth request message from the AMF-1.

[0692] The sixteenth request message is used to request to modify the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3. The sixteenth request message comprises the identifier of the UE-1, the PSI-1, and the QFI-1 (or the QoS rule corresponding to the media), and the IP address corresponding to the PSI-3.

[0693] In step 1714, the SMF-1 sends a seventeenth request message to the UPF-1.

[0694] Correspondingly, the UPF-1 receives the seventeenth request message from the SMF-1.

[0695] The seventeenth request message is used to request to modify the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3. The seventeenth request message comprises the identifier of the UE-1, the PSI-1, and the QFI-1 (or the QoS rule corresponding to the media), and the IP address corresponding to the PSI-3.

[0696] In step 1715, the UPF-1 modifies the IP address of the data corresponding to the QFI-1 of the PSI-1 to the IP address corresponding to the PSI-3 according to the seventeenth request message. The data corresponding to the QFI-1 of the PSI-1 can be the data of the QFI-1 of the PSI-1 or the data conforming to the QoS rule corresponding to the media.

[0697] In step 1716, the second AMF sends a thirteenth response message to the base station-A.

[0698] Correspondingly, the base station-A receives the thirteenth response message from the second AMF.

[0699] The thirteenth response message comprises the related information of the PSI-3.

[0700] In step 1717, the base station-A sends a second configuration message to the UE-2 according to the related information of the PSI-3 and the context information of the DRB-2.

[0701] Accordingly, UE-2 receives the second configuration message from base station-A.

[0702] The second configuration message is used to configure DRB-3.

[0703] In a possible implementation, the second configuration message is an RRC connection reconfiguration message.

[0704] Base station-A can record the fifteenth correspondence in the context of UE-2. The fifteenth correspondence is:

[0705] In step 1718, UE-2 deletes the PDU session corresponding to PSI-2 and the QoS flow corresponding to QFI-2, and generates a sixteenth correspondence.

[0706] The sixteenth correspondence is:

[0707] In a possible implementation, UE-2 can obtain the sixteenth correspondence by updating the tenth correspondence.

[0708] In step 1719, UE-1, base station-A, base station-B, AMF-1, AMF-2, SMF-1, and SMF-2 complete the subsequent handover process.

[0709] Subsequently, for uplink, when media generation data is generated from UE-1 to UE-2, UE-2 can use the IP address of PSI-3 as the source IP address of the IP packet, use the QoS rule corresponding to the media to map the media generation data to QFI-3, and send the data to base station-A through DRB-3; base station-A sends the received data to UPF-1 through PSI-3 and QFI-3 according to the fifteenth correspondence, and then UPF-1 sends the data to AS-1. For downlink, when base station-A receives data through PSI-3 and QFI-3, base station-A sends the received data to UE-2 through DRB-3 according to the fifteenth correspondence.

[0710] Through the above technical solution, when the media of UE-1 is transferred to UE-2 and UE-1 leaves the coverage range of base station-A, the service can be ensured not to be interrupted, which helps to improve user experience.

[0711] Example 8

[0712] The method shown in Example 8 can be applied to scenario 3 described above. For scenario 3, Figure 18Another variation of the transmission path of the media data of UE-1 is shown after the technical solution of the present application is applied. Wherein, AS-1 is the server of the application being used on UE-1, and AS-2 is the server of the application being used on UE-2.

[0713] When the movement range of UE-1 is large, and UE-1 leaves the coverage range of base station-A and enters the coverage range of base station-B, the transmission path of the media data of UE-1 is changed from path 2 to path 5.

[0714] Path 2: for reference Figure 7 , which will not be repeated here.

[0715] Path 3: AS-1 transmits the media data of UE-1 to base station-C, base station-C transmits the media data of UE-1 to base station-A, and base station-A transmits the received media data of UE-1 to UE-2 through the data transmission channel of UE-2.

[0716] For scenario 3, the present application also provides Figure 19 the method for transmitting data shown.

[0717] Figure 19 is another example of the method for transmitting data provided by the present application.

[0718] Before performing the method shown in Figure 19 , UE-2 generates information corresponding to PSI-2 and information corresponding to QFI-2, and saves the first correspondence relationship: Base station-A records the third correspondence relationship in the context of UE-1: Records the fourth correspondence relationship in the context of UE-2: It should be noted that the information and correspondence relationship here can be obtained by any one of the methods shown in Figures 8 to 11 .

[0719] Step 1901, UE-1 reports a measurement report according to the configuration of base station-A.

[0720] Step 1902, base station-A determines to initiate the flow of switching base station according to the measurement report sent by UE-1.

[0721] Step 1903, base station-A generates a third switching message according to the fourth correspondence relationship.

[0722] Wherein, the third switching message includes third indication information and configuration information of the forwarding tunnel of base station-A for QFI-1 of PSI-1. Wherein, the third indication information is used to indicate that a forwarding tunnel is established for QFI-1 of PSI-1. In order to facilitate distinction, the forwarding tunnel involved here will be referred to as forwarding tunnel-2 in the following.

[0723] In a possible implementation, the third handover message is a handover request.

[0724] At step 1904, the base station-A sends a third handover message to the base station-C.

[0725] Correspondingly, the base station-C receives the third handover message from the base station-A.

[0726] At step 1905, the base station-C generates a ninth correspondence relationship.

[0727] The ninth correspondence relationship is: forwarding tunnel-2 PSI-1+QFI-1.

[0728] At step 1906, the base station-C sends a third handover response message to the base station-A.

[0729] Correspondingly, the base station-A receives the third handover response message from the base station-C.

[0730] The third handover response message includes configuration information of the base station-C for the forwarding tunnel-2.

[0731] In a possible implementation, the third handover response message is a handover request acknowledge.

[0732] At step 1907, the base station-A generates a seventh correspondence relationship in the context of the UE-2.

[0733] The seventh correspondence relationship is: forwarding tunnel-2 DRB-2.

[0734] In a possible implementation, the base station-A obtains the seventh correspondence relationship by updating the fourth correspondence relationship.

[0735] At step 1908, the UE-1, the base station-A, the base station-B, the AMF-1, the AMF-2, the SMF-1, the SMF-2, and the UPF-1 complete a subsequent handover process.

[0736] Subsequently, for uplink, when media generation data is generated from UE-1 to UE-2, UE-2 can use the IP address of PSI-2 as the source IP address of the IP packet, map the media generation data to QFI-2 using the QoS rule corresponding to the media, and send to base station-A through DRB-2; base station-A sends the received data to base station-C through forwarding tunnel-2 according to the seventh correspondence, and base station-C sends the data to UPF-1 through PSI-1 and QFI-1 according to the ninth correspondence, and then sends to AS-1 by UPF-1. For downlink, when base station-C receives data through PSI-1 and QFI-1, base station-C sends the received data to base station-A through forwarding tunnel-2 according to the ninth correspondence, and base station-A sends the received data to UE-2 through DRB-2 according to the seventh correspondence.

[0737] It should be noted that if there is a communication interface between base station-A and base station-C, base station-A and base station-C can communicate through the interface. If there is no communication interface between base station-A and base station-C, base station-A and base station-C can communicate through AMF. Taking the third switching message as an example, base station-A can send the third switching message to AMF-1, which is sent to AMF-2, and then sent to base station-C by AMF-2.

[0738] Through the above technical solution, when the media of UE-1 is transferred to UE-2 and UE-1 leaves the coverage range of base station-A, the service can be ensured not to be interrupted, which helps to improve user experience.

[0739] The above describes the method provided by the present application in detail. Figures 2 to 19 The device embodiment of the present application will be described in detail below. Figures 20 to 21 It can be understood that, in order to realize the functions in the above embodiments, Figure 20 or Figure 21 The device in the above embodiments includes the corresponding hardware structure and / or software module for executing each function. Those skilled in the art should easily realize that, in combination with the units and method steps of the examples described in the embodiments disclosed in the present application, the present application can be realized in the form of hardware or a combination of hardware and computer software. Whether a certain function is executed by hardware or computer software driven hardware depends on the specific application scenario and design constraints of the technical solution.

[0740] Figure 20 and Figure 21A possible apparatus structure diagram is provided for the embodiments of the present application. The apparatus can be used to implement the functions of the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF in the above-mentioned method embodiments, and thus the beneficial effects possessed by the above-mentioned method embodiments can also be achieved.

[0741] As shown in Figure 20 The apparatus 2000 includes a transceiver 2010 and a processor 2020.

[0742] When the apparatus 2000 is used to implement the functions of the first terminal in the above-mentioned method embodiments, the processor 2020 is configured to determine to transfer a first media to a second terminal. The transceiver 2010 is configured to: send, by the first access network device, first information used for requesting to transfer the first media to the second terminal, the first information including an identity of the second terminal, an identity of a first session of the first terminal, and an identity of a first quality of service, QoS, flow of the first session, the first session and the first QoS flow being used for the first terminal to transmit data of the first media.

[0743] Optionally, the transceiver 2010 is further configured to: send, to the second terminal, second information used for requesting to transfer media to the second terminal; and receive, from the second terminal, third information including at least one of the following: an identity of a cell where the second terminal is located, an identity of the second terminal, and an identity of a second session allocated by the second terminal, the second session being used for the second terminal to transmit data of the first media.

[0744] Optionally, the identity of the second session is encrypted.

[0745] Optionally, when the third information includes the identity of the second session, the first information further includes the identity of the second session.

[0746] Optionally, when the third information includes the identity of the cell where the second terminal is located, the processor 2020 is further configured to determine, according to the identity of the cell where the second terminal is located, that the second terminal is within a coverage range of the first access network device.

[0747] Optionally, the second information further includes an identity of the first media.

[0748] Optionally, the first information further includes an identity of the first media.

[0749] Optionally, the transceiver 2010 is specifically configured to send, to the first access network device, the first information through a first access and mobility management function, AMF, serving the first terminal.

[0750] When the apparatus 2000 is configured to implement the function of the second terminal in the above-mentioned method embodiments, the processing unit 2020 is configured to: acquire first uplink data of a first media, the first media being a media transferred from the first terminal to a second terminal; and determine, according to context information of a second quality of service (QoS) flow of a second session, that the first uplink data is to be sent through a second QoS flow of the second session. The transceiver 2010 is configured to: send, according to a first correspondence relationship, the first uplink data to a first access network device through a second data radio bearer (DRB), wherein the first correspondence relationship includes a correspondence relationship between the second QoS flow of the second session and the second DRB, the context information of the second session is determined according to context information of a first session of the first terminal, and the context information of the second QoS flow is determined according to context information of a first QoS flow of the first session, the first session and the first QoS flow being used for the first terminal to transmit data of the first media.

[0751] Optionally, the transceiver 2010 is further configured to: acquire fourth information from the first access network device, the fourth information including: an identifier of the second session, an identifier of the second QoS flow, the context information of the first session, and the context information of the first QoS flow. The processing unit 2020 is further configured to: determine, according to the fourth information, the context information of the second session and the context information of the second QoS flow, and generate the first correspondence relationship.

[0752] Optionally, the transceiver 2010 is further configured to: receive second information from the first terminal, the second information being used to request to transfer a media to the second terminal; and send third information to the first terminal, the third information including at least one of the following information: an identifier of a cell where the second terminal is located, an identifier of the second terminal, and an identifier of the second session.

[0753] Optionally, the second information further includes an identifier of the first media.

[0754] Optionally, the fourth information further includes at least one of the following information: context information of the second DRB, and an identifier of the first media.

[0755] Optionally, the transceiver 2010 is further configured to: receive fifth information, the fifth information being used to inquire whether to agree to transfer the first media to the second terminal; and send sixth information, the sixth information being used to indicate that it is agreed to transfer the first media to the second terminal.

[0756] Optionally, the transceiver 2010 is specifically configured to: receive the fifth information from the first access network device; or receive the fifth information from a first access and mobility management function (AMF) serving the first terminal.

[0757] Optionally, the sixth information further comprises an identifier of the second session.

[0758] Optionally, the identifier of the second session is encrypted.

[0759] Optionally, when the second terminal enters a coverage of a second access network device from a coverage of the first access network device, or the first terminal enters a coverage of a third access network device from the coverage of the first access network device, the processing unit 2020 is further configured to: acquire second uplink data of the first media; and determine to send the second uplink data through a third QoS flow of a third session according to context information of the third QoS flow of the third session. The transceiver 2010 is further configured to: send the second uplink data to the first access network device through a third DRB according to a second correspondence relationship, wherein the second correspondence relationship comprises a correspondence relationship between the third QoS flow of the third session and the third DRB, wherein the context information of the third session is determined according to the context information of the first session, the context information of the third QoS flow is determined according to the context information of the first QoS flow, and the context information of the third DRB is determined according to the context information of the second DRB.

[0760] Optionally, the processing unit 2020 is further configured to: determine the context information of the third session according to the context information of the second session, and / or determine the context information of the third QoS flow according to the context information of the second QoS flow, and / or determine the context information of the third DRB according to the context information of the second DRB; and generate the second correspondence relationship.

[0761] Optionally, before the second terminal determines the context information of the third session according to the context information of the second session, and / or the second terminal determines the context information of the third QoS flow according to the context information of the second QoS flow, and / or the second terminal determines the context information of the third DRB according to the context information of the second DRB, the processing unit 2020 is further configured to: determine that the third session and / or the third QoS flow and / or the third DRB do not exist.

[0762] Optionally, the transceiver 2010 is further configured to send, to the first access network device, seventh information indicating that the second DRB corresponds to the third QoS flow of the third session of the second terminal.

[0763] When the apparatus 2000 is configured to implement the functions of the first access network device in the above method embodiments, the transceiver 2010 is configured to receive first downlink data of a first media through a first quality of service, QoS, flow of a first session of a first terminal, the first media being media transferred from the first terminal to a second terminal, and send, to the second terminal, the first downlink data through a second data radio bearer, DRB, of the second terminal according to a third correspondence relationship, wherein the third correspondence relationship comprises a correspondence relationship between the first QoS flow of the first session of the first terminal and the second DRB of the second terminal.

[0764] Optionally, the transceiver 2010 is further configured to receive first uplink data of the first media sent by the second terminal through the second DRB, and send the first uplink data through the first QoS flow of the first session of the first terminal according to a fourth correspondence relationship, wherein the fourth correspondence relationship comprises a correspondence relationship between the second DRB of the second terminal and the first QoS flow of the first session of the first terminal.

[0765] Optionally, the transceiver 2010 is further configured to receive first information from the first terminal, the first information being used to request to transfer the first media to the second terminal, the first information comprising an identifier of the second terminal, an identifier of the first session, and an identifier of the first QoS flow. The processor 2020 is configured to generate the third correspondence relationship in a context of the first terminal and / or generate the fourth correspondence relationship in a context of the second terminal according to the first information.

[0766] Optionally, the transceiver 2010 is specifically configured to receive the first information through a first AMF serving the first terminal.

[0767] Optionally, the transceiver 2010 is further configured to: obtain eighth information, the eighth information comprising context information of the first session and context information of the first QoS flow; and send fourth information to the second terminal, the fourth information comprising: an identifier of a second session, an identifier of a second QoS flow, the context information of the first session, and the context information of the first QoS flow, wherein the second QoS flow of the second session is used for the second terminal to transmit data of the first media, the context information of the first session is used for the second terminal to determine a context of the second session, and the context information of the first QoS flow is used for the second terminal to determine a context of the second QoS flow.

[0768] Optionally, the transceiver 2010 is specifically configured to obtain the eighth information from a first AMF serving the first terminal.

[0769] Optionally, the fourth information further comprises at least one of the following information: context information of the second DRB, and an identifier of the first media.

[0770] Optionally, the first information further comprises at least one of the following information: an identifier of the second session, and an identifier of the first media.

[0771] Optionally, the transceiver 2010 is further configured to: send fifth information to the second terminal, the fifth information being used for inquiring whether to agree to transfer the first media to the second terminal; and receive sixth information from the second terminal, the sixth information being used for indicating an agreement to transfer the first media to the second terminal.

[0772] Optionally, the sixth information further comprises an identifier of the second session.

[0773] Optionally, the identifier of the second session is processed by encryption.

[0774] Optionally, when the first terminal enters a coverage of a third access network device from a coverage of the first access network device, the transceiver 2010 is further configured to: receive second downlink data of the first media through a third QoS flow of a third session of the second terminal; and transmit the second downlink data to the second terminal through a third DRB of the second terminal according to a fifth correspondence relationship, wherein the fifth correspondence relationship comprises a correspondence relationship between the third QoS flow of the third session of the second terminal and the third DRB of the second terminal; wherein the context information of the third session is determined according to the context information of the first session, the context information of the third QoS flow is determined according to the context information of the first QoS flow, and the context information of the third DRB is determined according to the context information of the second DRB.

[0775] Optionally, when the first terminal enters a coverage of a third access network device from a coverage of the first access network device, the transceiver 2010 is further configured to: receive second uplink data of the first media transmitted by the second terminal through the third DRB; and transmit the second uplink data through the third QoS flow of the third session of the second terminal according to a fifth correspondence relationship, wherein the fifth correspondence relationship comprises a correspondence relationship between the third QoS flow of the third session of the second terminal and the third DRB of the second terminal.

[0776] Optionally, when the second terminal enters a coverage of a second access network device from a coverage of the first access network device, or the first terminal enters a coverage of a third access network device from a coverage of the first access network device, the processing unit 2020 is further configured to: determine the context of the third session and / or the context of the third QoS flow according to context information of a second session of the second terminal and / or context information of a second QoS flow of the second session, wherein the second session and the second QoS flow are used for the second terminal to transmit data of the first media, the context information of the second session is determined according to the context information of the first session, and the context of the second QoS flow is determined according to the context information of the first QoS flow; and determine the context information of the third DRB according to the context information of the second DRB.

[0777] Optionally, the transceiver 2010 is further configured to: receive seventh information from the second terminal, the seventh information being used to indicate that the second DRB corresponds to the third QoS flow of the third session of the second terminal.

[0778] Optionally, the transceiver 2010 is further configured to send, to a second access and mobility management function (AMF) that serves the second terminal, tenth information used to request that an Internet Protocol (IP) address of data corresponding to the first QoS flow of the first session is modified to an IP address of the third session.

[0779] Optionally, when the second terminal enters a coverage of a second access network device from a coverage of the first access network device, the transceiver 2010 is further configured to receive third downlink data of the first media through the first QoS flow of the first session, and send, to the second access network device, the third downlink data through a first forwarding tunnel according to a sixth correspondence relationship, where the sixth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the first forwarding tunnel.

[0780] Optionally, when the second terminal enters a coverage of a second access network device from a coverage of the first access network device, the transceiver 2010 is further configured to receive third uplink data of the first media sent by the second access network device through the first forwarding tunnel, and send, to the first terminal, the third uplink data through the first QoS flow of the first session according to a sixth correspondence relationship, where the sixth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the first forwarding tunnel.

[0781] Optionally, the fourth correspondence relationship further includes a correspondence relationship between the second DRB and a second QoS flow of a second session of the second terminal, and the processing unit 2020 is further configured to establish the first forwarding tunnel according to the fourth correspondence relationship, and generate the sixth correspondence relationship in a context of the first terminal.

[0782] Optionally, when the first terminal enters a coverage of a third access network device from a coverage of the first access network device, the transceiver 2010 is further configured to receive fourth downlink data of the first media sent by the third access network device through a second forwarding tunnel, and send, to the second terminal, the fourth downlink data through the second DRB according to a seventh correspondence relationship, where the seventh correspondence relationship includes a correspondence relationship between the second forwarding tunnel and the second DRB.

[0783] Optionally, when the first terminal enters a coverage of a third access network device from a coverage of the first access network device, the transceiver 2010 is further configured to: receive fourth uplink data of the first media sent by the second terminal through the second DBR; and send the fourth uplink data to the third access network device through the second forwarding tunnel according to a seventh correspondence relationship, wherein the seventh correspondence relationship includes a correspondence relationship between the second forwarding tunnel and the second DRB.

[0784] Optionally, the processing unit 2020 is further configured to: establish the second forwarding tunnel according to the fourth correspondence relationship, and generate the seventh correspondence relationship in a context of the second terminal.

[0785] When the apparatus 2000 is configured to implement the functions of the second access network device in the method embodiments, the transceiver 2010 is configured to: when a second terminal enters a coverage of a second access network device from a coverage of a first access network device, receive third downlink data of a first media sent by the first access network device through a first forwarding tunnel, the first media being media transferred from a first terminal to the second terminal, the first terminal being in the coverage of the first access network device and camping on a cell of the first access network device; and send the third downlink data to the second terminal through a third data radio bearer (DRB) according to an eighth correspondence relationship, wherein the eighth correspondence relationship includes a correspondence relationship between the first forwarding tunnel and the third DRB.

[0786] Optionally, the transceiver 2010 is further configured to: receive third uplink data of the first media sent by the second terminal through the third DRB; and send the third uplink data to the first access network device through the first forwarding tunnel according to the eighth correspondence relationship.

[0787] Optionally, the processing unit 2020 is configured to: establish the first forwarding tunnel; and generate the eighth correspondence relationship in a context of the second terminal.

[0788] When the apparatus 2000 is configured to implement the function of the third access network device in the method embodiments described above, the transceiver 2010 is configured to: receive, through a first quality of service, QoS, flow of a first session of a first terminal, fourth downlink data of a first media when the first terminal enters a coverage of a third access network device from a coverage of a first access network device, the first media being media transferred from the first terminal to a second terminal; and send, according to a ninth correspondence relationship, the fourth downlink data to the first access network device through a second forwarding tunnel, wherein the ninth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session of the first terminal and the second forwarding tunnel, and the second terminal resides in the first access network device.

[0789] Optionally, the transceiver 2010 is further configured to: receive fourth uplink data of the first media sent by the first access network device through the second forwarding tunnel; and send, according to the ninth correspondence relationship, the fourth uplink data through the first QoS flow of the first session of the first terminal.

[0790] Optionally, the processing unit 2020 is configured to: establish the second forwarding tunnel; and generate the ninth correspondence relationship in a context of the first terminal.

[0791] When the apparatus 2000 is configured to implement the function of the second AMF in the method embodiments described above, the transceiver 2010 is configured to: receive, from a first access network device, tenth information when a second terminal enters a coverage of a second access network device from a coverage of the first access network device, the tenth information being used to request to modify an internet protocol, IP, address of data corresponding to a first quality of service, QoS, flow of a first session of a first terminal to an IP address of a third session, the first QoS flow of the first session being used for the first terminal to transmit data of a first media, the first media being media transferred from the first terminal to the second terminal, and the second terminal being served by the second AMF; obtain the IP address of the third session; and send, to a first AMF serving the first terminal, eleventh information used to request to modify the IP address of the data corresponding to the first QoS flow of the first session of the first terminal to the IP address of the third session, the eleventh information including the IP address of the third session.

[0792] When the device 2000 is used to implement the function of the first AMF in the above method embodiment, the transceiver unit 2010 is used to: receive eleventh information from the second AMF, the eleventh information being used to request that the Internet Protocol IP address of the data corresponding to the first Quality of Service (QoS) flow of the first session of the first terminal be modified to the IP address of the third session, the eleventh information including the IP address of the third session; and send the eleventh information to the first UPF.

[0793] For a more detailed description of the transceiver unit 2010 and the processing unit 2020, please refer to the relevant descriptions in the above method embodiments, which will not be repeated here.

[0794] like Figure 21 As shown, device 2100 includes a processor 2110 and an interface circuit 2120. The processor 2110 and the interface circuit 2120 are coupled to each other. It is understood that the interface circuit 2120 can be a transceiver or an input / output interface. Optionally, device 2100 may further include a memory 2130 for storing instructions executed by the processor 2110, or storing input data required by the processor 2110 to execute instructions, or storing data generated after the processor 2110 executes instructions. When device 2100 is used to implement the method described above, the processor 2110 is used to implement the function of the processing unit 2020, and the interface circuit 2120 is used to implement the function of the transceiver unit 2010.

[0795] When device 2100 is a chip applied to the first terminal, the chip implements the functions of the first terminal in the above method embodiments. The chip receives information from other modules (such as radio frequency modules or antennas) in the first terminal, which is sent to the first terminal by other devices; or, the chip sends information to other modules (such as radio frequency modules or antennas) in the first terminal, which is sent to other devices by the first terminal.

[0796] When device 2100 is a chip applied to a second terminal, the chip implements the functions of the second terminal in the above method embodiments. The chip receives information from other modules (such as radio frequency modules or antennas) in the second terminal, which is sent to the second terminal by other devices; or, the chip sends information to other modules (such as radio frequency modules or antennas) in the second terminal, which is sent to other devices by the second terminal.

[0797] When the apparatus 2100 is a chip applied to the first access network device, the chip implements the functions of the first access network device in the method embodiments. The chip receives information from other modules (such as a radio frequency module or an antenna) in the first access network device, and the information is sent by other devices to the first access network device; or the chip sends information to other modules (such as a radio frequency module or an antenna) in the first access network device, and the information is sent by the first access network device to other devices.

[0798] When the apparatus 2100 is a chip applied to the second access network device, the chip implements the functions of the second access network device in the method embodiments. The chip receives information from other modules (such as a radio frequency module or an antenna) in the second access network device, and the information is sent by other devices to the second access network device; or the chip sends information to other modules (such as a radio frequency module or an antenna) in the second access network device, and the information is sent by the second access network device to other devices.

[0799] When the apparatus 2100 is a chip applied to the third access network device, the chip implements the functions of the third access network device in the method embodiments. The chip receives information from other modules (such as a radio frequency module or an antenna) in the third access network device, and the information is sent by other devices to the third access network device; or the chip sends information to other modules (such as a radio frequency module or an antenna) in the third access network device, and the information is sent by the third access network device to other devices.

[0800] When the apparatus 2100 is a chip applied to the first AMF, the chip implements the functions of the first AMF in the method embodiments. The chip receives information from other modules (such as a radio frequency module or an antenna) in the first AMF, and the information is sent by other devices to the first AMF; or the chip sends information to other modules (such as a radio frequency module or an antenna) in the first AMF, and the information is sent by the first AMF to other devices.

[0801] When the apparatus 2100 is a chip applied to the second AMF, the chip implements the functions of the second AMF in the method embodiments. The chip receives information from other modules (such as a radio frequency module or an antenna) in the second AMF, and the information is sent by other devices to the second AMF; or the chip sends information to other modules (such as a radio frequency module or an antenna) in the second AMF, and the information is sent by the second AMF to other devices.

[0802] The application further provides a communication device, comprising a processor coupled with a memory, the memory being configured to store computer programs or instructions and / or data, and the processor being configured to execute the computer programs or instructions stored in the memory or read the data stored in the memory to perform the method in any of the above method embodiments. Optionally, the processor is one or more. Optionally, the communication device comprises the memory. Optionally, the memory is one or more. Optionally, the memory is integrated with the processor or is separately arranged.

[0803] The application further provides a computer readable storage medium having stored thereon computer instructions for implementing the method performed by the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF in any of the above method embodiments.

[0804] The application further provides a computer program product comprising instructions, which, when executed by a computer, implement the method performed by the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF in any of the above method embodiments.

[0805] The application further provides a communication system comprising the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF in any of the above embodiments.

[0806] The explanations and beneficial effects of the related contents in any of the above devices can refer to the corresponding method embodiments provided above, and will not be repeated here.

[0807] It can be understood that the processor in the embodiments of the application can be a central processing unit (CPU), and can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs) or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. The general-purpose processor can be a microprocessor or any conventional processor.

[0808] The method steps in the embodiments of the present application can be implemented by hardware or by a processor executing software instructions. The software instructions can be composed of corresponding software modules, which can be stored in a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, a register, a hard disk, a mobile hard disk, a CD-ROM, or any other form of storage medium well known in the art. An exemplary storage medium is coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be an integral part of the processor. The processor and the storage medium can be located in an ASIC. In addition, the ASIC can be located in the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF. Of course, the processor and the storage medium can also exist as discrete components in the first terminal, the second terminal, the first access network device, the second access network device, the third access network device, the first AMF, or the second AMF.

[0809] In the above embodiments, all or part of the embodiments can be implemented by software, hardware, firmware, or any combination thereof. When implemented by software, all or part of the embodiments can be implemented in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer programs or instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments are performed. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, user equipment, or other programmable apparatus. The computer programs or instructions can be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another computer-readable storage medium, for example, the computer programs or instructions can be transferred from one website, computer, server, or data center to another website, computer, server, or data center through a wired or wireless manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that integrates one or more available media. The available media can be a magnetic medium, such as a floppy disk, a hard disk, a magnetic tape; an optical medium, such as a digital video disc; or a semiconductor medium, such as a solid-state disk.

[0810] In various embodiments of the present application, the terms and / or descriptions of different embodiments are consistent and can be mutually referred to if there is no special description and no logical conflict. The technical features in different embodiments can be combined to form new embodiments according to their inherent logical relationship.

[0811] It should be understood that the term "at least one" in the present application means one or more, and "multiple" means two or more. "And / or" is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone, where A and B can be singular or plural. In addition, the character " / " in the present application generally represents an "or" relationship between the associated objects before and after it.

[0812] It should be understood that the various numerical numbers involved in the embodiments of the present application are only for convenient differentiation and do not limit the scope of the embodiments of the present application. The size of the serial number of the above processes does not mean the order of execution, and the execution order of the processes should be determined according to its function and inherent logic.

[0813] Unless otherwise specified, all technical and scientific terms used in the embodiments of the present application have the same meaning as understood by those skilled in the art of the present application. The terms used in the present application are only for the purpose of describing the specific embodiments and are not intended to limit the scope of the present application. It should be understood that the above is for illustration, and the examples above are only to help those skilled in the art to understand the embodiments of the present application, and are not intended to limit the embodiments of the application to the specific values or specific scenarios shown. Those skilled in the art can obviously make various equivalent modifications or changes according to the examples given above, and such modifications and changes also fall within the scope of the embodiments of the present application.

[0814] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or replacements within the technical scope disclosed by the present application, which should be covered within the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for transmitting data, characterized by, The method comprises: The first terminal determines to transfer a first media to a second terminal; The first terminal sends first information to a first access network device, the first information being used to request to transfer the first media to the second terminal, the first information comprising an identity of the second terminal, an identity of a first session of the first terminal, and an identity of a first quality of service, QoS, flow of the first session, the first session and the first QoS flow being used for the first terminal to transmit data of the first media, the first information being used for the first access network device to generate a third correspondence, the third correspondence comprising a correspondence between the first QoS flow of the first session of the first terminal and a second data radio bearer, DRB, of the second terminal.

2. The method of claim 1, wherein, The method further comprises: The first terminal sends second information to the second terminal, the second information being used to request to transfer media to the second terminal; The first terminal receives third information from the second terminal, the third information comprising at least one of the following: an identity of a cell where the second terminal is located, an identity of the second terminal, and an identity of a second session allocated by the second terminal, the second session being used for the second terminal to transmit data of the first media.

3. The method of claim 2, wherein, The identity of the second session is processed by encryption.

4. The method of claim 2, wherein, When the third information comprises the identity of the second session, the first information further comprises the identity of the second session.

5. The method of claim 2, wherein, When the third information comprises the identity of the cell where the second terminal is located, the method further comprises: The first terminal determines that the second terminal camps in the first access network device according to the identity of the cell where the second terminal is located.

6. The method of claim 2, wherein, The second information further comprises an identity of the first media.

7. The method of claim 1, wherein, The first information further comprises an identity of the first media.

8. The method according to any one of claims 1 to 7, characterized in that, The first terminal sends first information to a first access network device, comprising: The first terminal sends the first information to the first access network device through a first access and mobility management function, AMF, serving the first terminal.

9. A method for transmitting data, characterized by, The method comprises: The second terminal obtains first uplink data of a first media, the first media being a media transferred from a first terminal to a second terminal; The second terminal determines to send the first uplink data through a second quality of service, QoS, flow of a second session according to context information of the second QoS flow of the second session; The second terminal sends the first uplink data to the first access network device through a second data radio bearer (DRB) according to a first correspondence relationship, wherein the first correspondence relationship includes a correspondence relationship between the second QoS flow of the second session and the second DRB, a correspondence relationship between the first QoS flow of the first session of the first terminal and the second DRB is a fourth correspondence relationship, the fourth correspondence relationship is used for the first access network device to send the first uplink data through the first QoS flow of the first session of the first terminal, the context information of the second session is determined according to the context information of the first session of the first terminal, the context information of the second QoS flow is determined according to the context information of the first QoS flow of the first session, and the first session and the first QoS flow are used for the first terminal to transmit data of the first media.

10. The method of claim 9, wherein, The method further includes: The second terminal obtains fourth information from the first access network device, and the fourth information includes an identifier of the second session, an identifier of the second QoS flow, context information of the first session, and context information of the first QoS flow. The second terminal determines the context information of the second session and the context information of the second QoS flow according to the fourth information, and generates the first correspondence relationship.

11. The method of claim 9, wherein, The method further includes: The second terminal receives second information from the first terminal, and the second information is used to request media transfer to the second terminal. The second terminal sends third information to the first terminal, and the third information includes at least one of the following information: an identifier of a cell where the second terminal is located, an identifier of the second terminal, and an identifier of the second session.

12. The method of claim 11, wherein, The second information further includes an identifier of the first media.

13. The method of claim 10, wherein, The fourth information further includes at least one of the following information: context information of the second DRB, and an identifier of the first media.

14. The method of claim 9, wherein, The method further includes: The second terminal receives fifth information, and the fifth information is used to inquire whether to agree to transfer the first media to the second terminal. The second terminal sends sixth information, and the sixth information is used to indicate that the first media is agreed to be transferred to the second terminal.

15. The method of claim 14, wherein, The second terminal receives the fifth information, including: The second terminal receives the fifth information from the first access network device; or The second terminal receives the fifth information from a first access and mobility management function (AMF) that provides services for the first terminal.

16. The method of claim 14, wherein, The sixth information further includes an identifier of the second session.

17. The method of claim 11, wherein, The identifier of the second session is subjected to encryption processing.

18. The method according to any one of claims 9 to 17, characterized in that, When the second terminal enters a coverage range of a second access network device from a coverage range of the first access network device, or the first terminal enters a coverage range of a third access network device from the coverage range of the first access network device, the method further includes: The second terminal obtains second uplink data of the first media; and The second terminal sends the second uplink data of the first media to the second access network device through a third DRB according to a second correspondence relationship, wherein the second correspondence relationship includes a correspondence relationship between the second QoS flow of the second session and the third DRB, a correspondence relationship between the first QoS flow of the first session of the first terminal and the third DRB is a fifth correspondence relationship, the fifth correspondence relationship is used for the second access network device to send the second uplink data of the first media through the first QoS flow of the first session of the first terminal, the context information of the second session is determined according to the context information of the first session of the first terminal, the context information of the second QoS flow is determined according to the context information of the first QoS flow of the first session, and the first session and the first QoS flow are used for the first terminal to transmit data of the first media. The second terminal determines to send the second uplink data through the third QoS flow of the third session according to context information of the third QoS flow of the third session; The second terminal sends the second uplink data to the first access network device through a third DRB according to a second correspondence relationship, wherein the second correspondence relationship comprises a correspondence relationship between the third QoS flow of the third session and the third DRB, wherein the context information of the third session is determined according to the context information of the first session, the context information of the third QoS flow is determined according to the context information of the first QoS flow, and the context information of the third DRB is determined according to the context information of the second DRB.

19. The method of claim 18, wherein, The method further comprises: The second terminal determines the context information of the third session according to the context information of the second session, and / or the second terminal determines the context information of the third QoS flow according to the context information of the second QoS flow, and / or the second terminal determines the context information of the third DRB according to the context information of the second DRB; The second terminal generates the second correspondence relationship.

20. The method of claim 19, wherein, Before the second terminal determines the context information of the third session according to the context information of the second session, and / or the second terminal determines the context information of the third QoS flow according to the context information of the second QoS flow, and / or the second terminal determines the context information of the third DRB according to the context information of the second DRB, the method further comprises: The second terminal determines that the third session and / or the third QoS flow and / or the third DRB do not exist.

21. The method of claim 19 or 20, wherein, The method further comprises: The second terminal sends seventh information to the first access network device, wherein the seventh information is used to indicate that the second DRB corresponds to the third QoS flow of the third session of the second terminal.

22. A method for transmitting data, characterized by, The method comprises: A first access network device receives first downlink data of a first media through a first quality of service, QoS, flow of a first session of a first terminal, wherein the first media is media transferred from the first terminal to a second terminal; The first access network device sends the first downlink data to the second terminal through a second data radio bearer, DRB, of the second terminal according to a third correspondence relationship, wherein the third correspondence relationship comprises a correspondence relationship between the first QoS flow of the first session of the first terminal and the second DRB of the second terminal.

23. The method of claim 22, wherein, The method further comprises: The first access network device receives first uplink data of the first media sent by the second terminal through the second DRB; The first access network device sends the first uplink data through the first QoS flow of the first session of the first terminal according to a fourth correspondence relationship, wherein the fourth correspondence relationship comprises a correspondence relationship between the second DRB of the second terminal and the first QoS flow of the first session of the first terminal.

24. The method of claim 23, wherein, The method further comprises: The first access network device receives first information from the first terminal, the first information being used for requesting to transfer the first media to the second terminal, the first information comprising an identity of the second terminal, an identity of the first session, and an identity of the first QoS flow; The first access network device generates the third correspondence in a context of the first terminal according to the first information, and / or generates the fourth correspondence in a context of the second terminal.

25. The method of claim 24, wherein, The first access network device receives first information from the first terminal, comprising: The first access network device receives the first information through a first AMF serving the first terminal.

26. The method of claim 25, wherein, The method further comprises: The first access network device obtains eighth information, the eighth information comprising context information of the first session and context information of the first QoS flow; The first access network device sends fourth information to the second terminal, the fourth information comprising: an identity of a second session, an identity of a second QoS flow of the second session, context information of the first session, and context information of the first QoS flow, wherein the second QoS flow of the second session is used for the second terminal to transmit data of the first media, the context information of the first session is used for the second terminal to determine a context of the second session, and the context information of the first QoS flow is used for the second terminal to determine a context of the second QoS flow.

27. The method of claim 26, wherein, The first access network device obtains eighth information, comprising: The first access network device obtains the eighth information from a first AMF serving the first terminal.

28. The method of claim 26, wherein, The fourth information further comprises at least one of the following information: context information of the second DRB, and an identity of the first media.

29. The method of any one of claims 26-28, wherein, The first information further comprises at least one of the following information: the identity of the second session, and the identity of the first media.

30. The method of any one of claims 26-28, wherein, The method further comprises: The first access network device sends fifth information to the second terminal, the fifth information being used for inquiring whether to agree to transfer the first media to the second terminal; The first access network device receives sixth information from the second terminal, the sixth information being used for indicating an agreement to transfer the first media to the second terminal.

31. The method of claim 30, wherein, The sixth information further comprises the identity of the second session.

32. The method of claim 30, wherein, The identity of the second session is processed by encryption.

33. The method of any one of claims 22-28, wherein, When the first terminal enters a coverage range of a third access network device from a coverage range of the first access network device, the method further comprises: The first access network device receives second downlink data of the first media through a third QoS flow of a third session of the second terminal; The first access network device sends the second downlink data to the second terminal through a third DRB of the second terminal according to a fifth correspondence, wherein the fifth correspondence comprises a correspondence between the third QoS flow of the third session of the second terminal and the third DRB of the second terminal; The context information of the third session is determined according to the context information of the first session, the context information of the third QoS flow is determined according to the context information of the first QoS flow, and the context information of the third DRB is determined according to the context information of the second DRB.

34. The method of any one of claims 22-28, wherein, When the first terminal enters the coverage range of a third access network device from the coverage range of the first access network device, the method further includes: The first access network device receives second uplink data of the first media sent by the second terminal through a third DRB; The first access network device sends the second uplink data through a third QoS flow of a third session of the second terminal according to a fifth correspondence relationship, wherein the fifth correspondence relationship includes a correspondence relationship between the third QoS flow of the third session of the second terminal and the third DRB of the second terminal.

35. The method of any one of claims 22-28, wherein, When the second terminal enters the coverage range of a second access network device from the coverage range of the first access network device, or the first terminal enters the coverage range of a third access network device from the coverage range of the first access network device, the method further includes: The first access network device determines the context of a third session and / or the context of a third QoS flow according to the context information of a second session of the second terminal and / or the context information of a second QoS flow of the second session, wherein the second session and the second QoS flow are used for the second terminal to transmit data of the first media, the context information of the second session is determined according to the context information of the first session, and the context of the second QoS flow is determined according to the context information of the first QoS flow; The first access network device determines the context information of a third DRB according to the context information of the second DRB.

36. The method of claim 35, wherein, The method further includes: The first access network device receives seventh information from the second terminal, and the seventh information is used to indicate that the second DRB corresponds to the third QoS flow of the third session of the second terminal.

37. The method of claim 35, wherein, The method further includes: The first access network device sends tenth information to a second access and mobility management function (AMF) serving the second terminal, and the tenth information is used to request that an Internet protocol (IP) address of data corresponding to the first QoS flow of the first session be modified to an IP address of the third session.

38. The method of any one of claims 23-28, wherein, When the second terminal enters the coverage range of a second access network device from the coverage range of the first access network device, the method further includes: The first access network device receives third downlink data of the first media through the first QoS flow of the first session; The first access network device sends the third downlink data to the second access network device through a first forwarding tunnel according to a sixth correspondence relationship, wherein the sixth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the first forwarding tunnel.

39. The method of any one of claims 23-28, wherein, When the second terminal enters the coverage of the second access network device from the coverage of the first access network device, the method further includes: The first access network device receives third uplink data of the first media sent by the second access network device through a first forwarding tunnel; The first access network device sends the third uplink data through the first QoS flow of the first session of the first terminal according to a sixth correspondence relationship, wherein the sixth correspondence relationship includes a correspondence relationship between the first QoS flow of the first session and the first forwarding tunnel.

40. The method of claim 39, wherein, The fourth correspondence relationship further includes a correspondence relationship between the second DRB and a second QoS flow of a second session of the second terminal, and the method further includes: The first access network device establishes the first forwarding tunnel according to the fourth correspondence relationship, and generates the sixth correspondence relationship in the context of the second terminal.

41. The method of any one of claims 23-28, wherein, When the first terminal enters the coverage of a third access network device from the coverage of the first access network device, the method further includes: The first access network device receives fourth downlink data of the first media sent by the third access network device through a second forwarding tunnel; The first access network device sends the fourth downlink data to the second terminal through the second DRB according to a seventh correspondence relationship, wherein the seventh correspondence relationship includes a correspondence relationship between the second forwarding tunnel and the second DRB.

42. The method of claim 41, wherein, When the first terminal enters the coverage of a third access network device from the coverage of the first access network device, the method further includes: The first access network device receives fourth uplink data of the first media sent by the second terminal through the second DRB; The first access network device sends the fourth uplink data to the third access network device through the second forwarding tunnel according to the seventh correspondence relationship, wherein the seventh correspondence relationship includes a correspondence relationship between the second forwarding tunnel and the second DRB.

43. The method of claim 41, wherein, The method further includes: The first access network device establishes the second forwarding tunnel according to the fourth correspondence relationship, and generates the seventh correspondence relationship in the context of the second terminal.

44. A communications device, characterized by Comprise: The processor is configured to execute a computer program stored in the memory, so that the apparatus executes the method of any one of claims 1-43.

45. The device of claim 44, wherein, The apparatus further comprises the memory.

46. A computer-readable storage medium, characterized in that, The computer program stored on the computer readable storage medium, when the computer program runs on the computer, makes the computer execute the method of any one of claims 1-43.

47. A computer program product, characterised in that, The computer program product comprises instructions for executing the method of any one of claims 1-43.

48. A communication system, characterized by Comprise: The first terminal and the second terminal; The first terminal is configured to execute the method of any one of claims 1-8; The second terminal is configured to execute the method of any one of claims 9-21.

Citation Information

Patent Citations

  • Seamless switching method and device for webpage real-time communication session

    CN107979564A

  • Media control method and apparatus for fusion device, and controller, mobile terminal and storage medium

    WO2019144682A1