METHOD AND APPARATUS FOR SWITCHING MEDIA STREAM - Patent application

By enabling access network devices to determine and switch live media streams based on characteristic information, the method addresses delays in live streaming, ensuring smooth and timely delivery, thus improving user experience.

JP7564330B2Active Publication Date: 2024-10-08HUAWEI TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
JP2023506063
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-07-28
Filing Date
2021-07-26
Publication Date
2024-10-08
Estimated Expiration
2041-07-26

AI Technical Summary

Technical Problem

The delay in network transmission of media stream switching requests in live streaming applications, particularly in virtual reality panoramic videos, results in long delays and freezing, adversely affecting user experience.

Method used

An access network device determines the corresponding live media stream based on characteristic information from a terminal device, allowing for timely switching by replicating and delivering the media stream directly, reducing delays through local switching without relying on the application server.

Benefits of technology

This method reduces media stream switching delays, ensuring smooth and timely delivery of live media streams, thereby enhancing user experience by minimizing video freezing during network adjustments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007564330000002
    Figure 0007564330000002
  • Figure 0007564330000003
    Figure 0007564330000003
  • Figure 0007564330000004
    Figure 0007564330000004
Patent Text Reader

Abstract

A media stream switching method and apparatus are provided. The method includes a step in which an access network device receives, from a terminal device, characteristic information of a first live media stream included in a switching request. The access network device or user plane network element determines, based on the characteristic information, a first live media stream corresponding to the characteristic information of the first live media stream. Therefore, the access network device or user plane network element switches a media stream transmitted to the terminal device, specifically, switches the live media stream transmitted to the terminal device from a second live media stream to the first live media stream. Both the second live media stream and the first live media stream correspond to the access network device or user plane network element. According to the method, the media stream switching can be completed at the access network device side or the user plane network element side. This helps to switch media streams in a timely manner and reduce media stream switching delay.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority to Chinese Patent Application No. 202010739547.9, entitled “MEDIA STREAM SWITCHING METHOD AND APPARATUS”, filed with the State Intellectual Property Office of the People's Republic of China on July 28, 2020, the entirety of which is incorporated herein by reference.

[0002] The present application relates to the field of communication technologies, and in particular to a media stream switching method and apparatus. [Background technology]

[0003] At present, the new media industry is developing rapidly. A user can watch live videos using a live streaming application client (e.g., TikTok, Kuaishou, Taobao Live) installed on a terminal such as a mobile phone or tablet. When a user watches a video, the live streaming application client on the terminal can request a live media stream with an appropriate bitrate or resolution from the application server based on the user's video image quality requirements. For virtual reality (VR) panoramic video, the live streaming application client on the terminal can further request a live media stream suitable for the field of view from the application server based on the user's current field of view. Since there is a delay in the network transmission process, it is difficult for the live streaming application client on the terminal to timely send parameter information (such as bitrate value, resolution value, or field of view) of the media stream requested to be switched by the terminal to the application server side. As a result, the media stream switching delay becomes excessively long, the live video freezes, and the user's live video viewing experience is seriously affected. Summary of the Invention [Means for solving the problem]

[0004] The present application provides a media stream switching method and apparatus for determining a live media stream corresponding to characteristic information based on characteristic information of a live media stream in a switching request sent by a terminal device, and delivering the live media stream to the terminal device in a timely manner, so as to reduce media stream switching delay.

[0005] According to a first aspect, an embodiment of the present application provides a communication method applicable to an access network device, the method including:

[0006] The access network device receives the characteristic information of the first live media stream included in the switching request from the terminal device. The access network device determines the first live media stream corresponding to the characteristic information of the first live media stream based on the characteristic information. Thus, the access network device switches the media stream sent to the terminal device, specifically, switches the live media stream sent to the terminal device from the second live media stream to the first live media, and both the second live media stream and the first live media stream correspond to the access network device.

[0007] In this embodiment of the present application, when multiple users served by the same access network device access the same live media stream, the access network device in this method embodiment is eligible to perform switching to help switch media streams in a timely manner and reduce media stream switching delay.

[0008] In a possible design, Scheme 1: The access network device determines first address information corresponding to a first live media stream. Then, the access network device sends the first address information to the terminal device, and the first address information is used to bind to the second address information corresponding to the second live media stream. Scheme 2: The access network device determines first address information corresponding to the first live media stream and second address information corresponding to the second live media stream. The access network device replaces the first address information in a data packet carrying the first live media stream with the second address information. It should be noted that the address information may refer to at least one of IP and port information.

[0009] In this embodiment of the present application, the access network device sends IP / port information corresponding to the characteristic information requested by the terminal device to the terminal device side, so as to ensure that the terminal device side can bind the IP / port information to the original IP / port information, and analyze and apply the corresponding data after receiving the corresponding data.

[0010] In one possible design, the access network device receives a message from a session management function network element or a user plane function network element, the message including first address information corresponding to the first live media stream, and determines the first address information and the second address information corresponding to the first live media stream based on the message.

[0011] In this embodiment of the present application, the session management function network element sends the corresponding address information to the access network device, or the user plane management function network element sends the address information directly to the access network device.

[0012] In a possible design, a manner in which the access network device determines a first live media stream corresponding to the characteristic information of the first live media stream may be as follows: The access network device determines, based on the characteristic information of the first live media stream, that a second active characteristic information set, which includes characteristic information of live media streams of at least one terminal device served by the access network device, includes the characteristic information of the first live media stream; The access network device determines, in the monitored live media streams, a first live media stream that carries the characteristic information of the first live media stream.

[0013] In this embodiment of the present application, the access network device can monitor the media streams served by the access network device to determine the media streams accessed by the terminal devices within the service range of the current access network device. Thus, the corresponding first live media stream can be determined based on the characteristic information.

[0014] In a possible design, the access network device determines, based on the characteristic information of the first live media stream, that the second active characteristic information set does not include the characteristic information of the first live media stream. Thus, the access network device sends response information to the terminal device, and the response message is for notifying the terminal device that the live media stream switching has failed. In this way, after receiving the response message, the terminal device resends the switching request to the application server. In a possible design, the application server may be an edge application server or a central application server. The edge application server is closer to the terminal device than the central application server. The edge application server may also be referred to as a local application server. The central application server may also be referred to as a remote application server.

[0015] In this embodiment of the present application, when it determines that the first live media stream does not currently exist, the access network device can send a response message to the terminal device in a timely manner to avoid a long-term freezing on the terminal device caused by a switching failure.

[0016] In a possible design, the access network device determines based on the characteristic information of the first live media stream that the second active characteristic information set does not include the characteristic information of the first live media stream, and then sends the characteristic information of the first live media stream to the application server via the user plane function network element, i.e., requests the first live media stream from the application server.

[0017] In this embodiment of the present application, when it is determined that the first live media stream does not currently exist, the access network device can timely request the first live media stream from the application server to avoid a long-term freezing on the terminal device caused by a switching failure.

[0018] In a possible design, the second active characteristic information may be generated in the following manner: The access network device sends a live session establishment request message of the terminal device to a session management function network element; The access network device receives a live session establishment completion message and second indication information from the session management function network element; The access network device monitors the live media stream of at least one terminal device served by the access network device based on the second indication information, and creates a second active characteristic information set.

[0019] In a possible design, the access network device can further send a second active characteristic information set to the terminal device. Thus, before sending a switching request, the terminal device can first determine whether the characteristic information of the first live media stream requested to be switched exists in the second active characteristic information set. If the characteristic information of the first live media stream exists in the second active characteristic information set, the terminal device sends a switching request to the access network device. If the characteristic information of the first live media stream does not exist in the second active characteristic information set, the terminal device sends a switching request to the application server.

[0020] In this embodiment of the present application, the access network device can generate a second active characteristic information set according to a GTP layer indication, and send the second active characteristic information set to the terminal device through an RRC message or a PDCP layer extension identifier. When the terminal device side performs media stream switching, the access network device side directly copies / transfers the media stream corresponding to the characteristic information to the DRB corresponding to the terminal device to complete the media stream switching.

[0021] In a possible design, the characteristic information of the first live media stream is a media stream parameter value of the first live media stream or an index value uniquely corresponding to the first live media stream, and the media stream parameter value includes a value of at least one type of parameter of bit rate, resolution, frame rate, or field of view.

[0022] According to a second aspect, an embodiment of the present application provides a media stream switching method. The method is applicable to a terminal device. The terminal device sends characteristic information of a first live media stream to an access network device. The terminal device switches a live media stream received from the access network device from a second live media stream to the first live media stream, where the first live media stream corresponds to the characteristic information of the first live media stream, and both the second live media stream and the first live media stream correspond to the access network device.

[0023] In this embodiment of the present application, when multiple users served by the same access network device or the same user plane function network element access the same live media stream, the access network device or user plane function network element of this method embodiment is eligible to perform switching to help switch media streams in a timely manner and reduce media stream switching delay.

[0024] In a possible design, before the terminal device sends the characteristic information of the first live media stream to the access network device, the method further includes the terminal device sending an establishment request message for the live session to the session management function network element via the access network device. The terminal device receives an establishment request complete message and an initial characteristic information set for the live service from the session management function network element via the access network device, where the initial characteristic information set includes characteristic information of the live media stream corresponding to various media stream parameters. The terminal device determines, in the initial characteristic information set, characteristic information of the first live media stream that corresponds to the current media stream parameter information.

[0025] In this embodiment of the present application, in the process of establishing a PDU session, the delivery of characteristic information of live media streams is completed to ensure media stream switching.

[0026] In a possible design, before the terminal device transmits the characteristic information of the first live media stream to the access network device, the method further includes the terminal device receiving a second active characteristic information set from the access network device. The terminal device determines that the second active characteristic information set includes the characteristic information of the first live media stream. The second active characteristic information set includes the characteristic information of the live media stream of at least one terminal device serviced by the access network device.

[0027] In this embodiment of the present application, the terminal device browses a second active characteristic information set. If the characteristic information corresponding to the requested media stream is not in the second active characteristic information set, the terminal device requests a live media stream corresponding to the characteristic information through an existing application layer interaction process. If the characteristic information corresponding to the requested media stream is in the second active characteristic information set, the terminal device directly sends a live media stream request corresponding to the characteristic information to the access network device.

[0028] In a possible design, the terminal device further receives a first active characteristic information set from the user plane function network element. The first active characteristic information set includes a characteristic information set of a live media stream of at least one terminal device served by the user plane function network element. When the terminal device determines that the first active characteristic information set includes characteristic information of the first live media stream, the terminal device sends a switch request to the user plane function network element via the access network device. When the terminal device determines that the first active characteristic information set does not include characteristic information of the first live media stream, the terminal device sends a switch request to an application server. In a possible design, the application server may be an edge application server or a central application server. The edge application server is closer to the terminal device than the central application server. The edge application server may also be referred to as a local application server. The central application server may also be referred to as a remote application server.

[0029] In this embodiment of the present application, the terminal device browses a first active characteristic information set. If the characteristic information corresponding to the requested media stream is not in the second active characteristic information set, the terminal device requests a live media stream corresponding to the characteristic information through an existing application layer interaction process. If the characteristic information corresponding to the requested media stream is in the first active characteristic information set, the terminal device directly sends a live media stream request corresponding to the characteristic information to a user plane function network element.

[0030] In a possible design, the terminal device further receives first address information corresponding to the first live media stream, The terminal device binds the first address information corresponding to the first live media stream to second address information corresponding to the second live media stream, and analyzes the first live media stream based on the binding relationship.

[0031] In this embodiment of the present application, the access network device sends IP / port information corresponding to the characteristic information requested by the terminal device to the terminal device side, so as to ensure that the terminal device side can bind the IP / port information to the original IP / port information, and analyze and apply the corresponding data after receiving the corresponding data.

[0032] According to a third aspect, an embodiment of the present application further provides a media stream switching method, which is applicable to a user plane function network element. The method includes:

[0033] The user plane function network element receives characteristic information of a first live media stream from the terminal device. The user plane function network element determines a first live media stream corresponding to the characteristic information of the first live media stream. The user plane function network element switches a live media stream sent to the terminal device from a second live media stream to the first live media stream, and both the second live media stream and the first live media stream correspond to the user plane function network element.

[0034] In this embodiment of the present application, when multiple users served by the same user plane function network element access the same live media stream, the user plane function network element of this method embodiment is eligible to perform switching to help switch media streams in a timely manner and reduce media stream switching delay.

[0035] In a possible design, before the user plane function network element switches a live media stream transmitted to the terminal device from the second live media stream to the first live media stream, the user plane function network element determines first address information corresponding to the first live media stream and second address information corresponding to the second live media stream. The user plane function network element replaces the first address information with the second address information in data packets carrying the first live media stream.

[0036] In this embodiment of the present application, it is ensured that the terminal device side can parse and apply the corresponding data by using the original IP / port information.

[0037] In one possible design, the user plane function network element determines first address information corresponding to the first live media stream, and sends the first address information to the terminal device, where the first address information is used to bind to second address information corresponding to the second live media stream.

[0038] In this embodiment of the present application, the user plane function network element sends IP / port information corresponding to the characteristic information requested by the terminal device to the terminal device side, so as to ensure that the terminal device side can bind the IP / port information to the original IP / port information, and parse and apply the corresponding data after receiving the corresponding data.

[0039] In a possible design, the user plane function network element determining the first live media stream corresponding to the characteristic information of the first live media stream includes the user plane function network element determining that a first active characteristic information set includes the characteristic information of the first live media stream. The user plane function network element determines the first live media stream in the currently monitored live media streams that carries the characteristic information of the first live media stream. The first active characteristic information set includes the characteristic information of the live media streams of at least one terminal device served by the user plane function network element.

[0040] In this embodiment of the present application, the user plane function network element can monitor the media streams served by the user plane function network element to determine the media streams being accessed by the terminal devices within the service range of the current user plane function network element. Thus, the corresponding first live media stream can be determined based on the characteristic information.

[0041] In a possible design, the user plane function network element determines that the first active characteristic information set does not include characteristic information of the first live media stream. In this case, the user plane function network element sends a request message to the application server, where the request message includes the characteristic information of the first live media stream, and the request message is for requesting to switch the live media stream sent to the terminal device to the first live media stream. In a possible design, the application server may be an edge application server or a central application server. The edge application server is closer to the terminal device than the central application server. The edge application server may also be referred to as a local application server. The central application server may also be referred to as a remote application server.

[0042] In this embodiment of the present application, when determining that the first live media stream does not currently exist, the user plane function network element sends corresponding media request information to the application server in a timely manner to ensure that the application server responds to the media switching requested by the terminal device.

[0043] In a possible design, the user plane function network element determines that the first active characteristic information set does not include characteristic information of the first live media stream. The user plane function network element sends a response message to the terminal device via the access network device, where the response message is for notifying the terminal device that the live media stream switching has failed. In this way, after receiving the response message, the terminal device resends the switching request to the application server.

[0044] In this embodiment of the present application, when determining that the first live media stream does not currently exist, the user plane function network element can send a response message to the terminal device in a timely manner to avoid a long-term freezing on the terminal device caused by a switching failure.

[0045] In a possible design, before the user plane function network element receives the characteristic information of the first live media stream from the terminal device, the method further includes the user plane function network element receiving a live session establishment completion message and first indication information from the session management function network element, the user plane function network element monitors characteristic information of the live media stream of at least one terminal device served by the user plane function network element based on the first indication information, and creates a first active characteristic information set.

[0046] In this embodiment of the present application, after a PDU session is established, a user plane function network element monitors characteristic information of a live media stream and creates a first active characteristic information set to ensure subsequent media stream switching.

[0047] In a possible design, after detecting that the terminal device is accessing the live streaming service, the user plane function network element sends indication information to the session management network element so that the session management network element informs the application server of the identification information of the user plane function network element and the terminal device, and the application server obtains a first active characteristic information set and sends the first active characteristic information set to the terminal device. Alternatively, in another possible design, the user plane function network element sends the first active characteristic information set to the terminal device.

[0048] In this embodiment of the present application, in the manner described above, the user plane function network element can enable the application server to obtain a first active characteristic information set, so that the application server sends the first active characteristic information set to the terminal device. In this way, the terminal device can determine a media stream switching manner by browsing the first active characteristic information set.

[0049] In a possible design, when the user plane function network element detects that the characteristic information of the live media streams of at least two terminal devices served by the user plane function network element are the same and the live media streams should be sent to the same access network device, the user plane function network element deduplicates the live media streams. The user plane function network element sends the live media streams obtained through deduplication to the access network device, and the characteristic information of different live media streams in the live media streams obtained through deduplication are different from each other.

[0050] In this embodiment of the present application, the user plane function network element transmits a deduplicated media stream between the user plane function network element and the access network device based on the first active characteristic information set and the access network device corresponding to the media stream, to reduce the burden on the transmission network and effectively ensure the user's media viewing experience.

[0051] In a possible design, after detecting that the terminal device is accessing the live streaming service, the user plane function network element sends indication information and address information of the terminal device to the session management function network element, so that the session management function network element sends indication information and address information of the terminal device to the access network device. It should be noted that the address information may refer to at least one of IP and port information.

[0052] In this embodiment of the present application, the session management function network element sends IP / port information to the access network device, so that the access network device sends the IP / port information to the terminal device side to ensure that the terminal device side can bind the IP / port information to the original IP / port information and analyze and apply the corresponding data after receiving the corresponding data.

[0053] According to a fourth aspect, an embodiment of the present application further provides a media stream switching method. The method is applicable to a session management function network element. The method includes: when establishing a live session of a terminal device, the session management function network element obtains an initial characteristic information set from a policy management function network element. The initial characteristic information set includes characteristic information of the live media stream corresponding to various media stream parameters. After establishing the live session, the session management function network element sends first indication information to the user plane function network element and sends the initial characteristic information set to the terminal device. The first indication information instructs the user plane function network element to monitor characteristic information of the live media stream of at least one terminal device served by the user plane function network element.

[0054] In a possible design, the session management function network element can further send third indication information to the terminal device. Upon receiving the third indication information, the terminal device sends characteristic information including the first live media stream according to the above-mentioned method.

[0055] In this embodiment of the present application, in the process of establishing a PDU session, the delivery of characteristic information of live media streams is completed to ensure media stream switching.

[0056] In a possible design, after receiving the indication information from the user plane function network element, the session management function network element sends the identification information of the terminal device and the identification information of the user plane function network element to the application server, so that the application server obtains a first active characteristic information set and sends the first active characteristic information set to the terminal device. In a possible design, the application server may be an edge application server or a central application server. The edge application server is closer to the terminal device than the central application server. The edge application server may also be referred to as a local application server. The central application server may also be referred to as a remote application server.

[0057] In this embodiment of the present application, the terminal device can determine whether the characteristic information of the requested media stream exists in the first active characteristic information set by using the received first active characteristic information set. If the characteristic information corresponding to the requested media stream does not exist in the first active characteristic information set, the terminal device requests a live media stream corresponding to the characteristic information through an existing application layer interaction process. If the characteristic information corresponding to the requested media stream is in the first active characteristic information set, the terminal device directly sends a live media stream request corresponding to the characteristic information to a user plane function network element.

[0058] According to a fifth aspect, an embodiment of the present application further provides a media stream switching method. The method is applicable to an application server. The method includes: an application server determines characteristic information of live media streams corresponding to different media stream parameters. The application server sends an initial characteristic information set to a terminal, where the initial characteristic information set includes characteristic information of the live media streams corresponding to the various media stream parameters. In a possible manner, the application server can send the initial characteristic information set to the terminal device via an application layer message. In another possible manner, the application server can send the initial characteristic information set to a policy control function network element. In a session establishment process, the session management function network element obtains the initial characteristic information set from the policy control function network element, and sends the initial characteristic information set to the terminal device via a user plane function network element or an access network device.

[0059] In this embodiment of the present application, the application server marks the live media streams by informing the policy control function network element of the characteristic information of the live media streams corresponding to different media stream parameters.

[0060] In a possible design, when the application server detects that the characteristic information of the live media streams of at least two terminal devices is the same based on the first active characteristic information set, the application server deduplicates the live media streams, and the application server sends the live media streams obtained through deduplication to a user plane function network element, and the characteristic information of different live media streams in the live media streams obtained through deduplication are different from each other.

[0061] In this embodiment of the present application, in order to reduce the burden on the backbone network and the transmission network and effectively ensure the user's media viewing experience, deduplicated media streams are transmitted between the application server and the user plane function network element.

[0062] In a possible design, the application server may receive identification information of a user plane function network element and a terminal device from the session management network element, determine information regarding live media streams accessed by the corresponding terminal device serviced by the corresponding user plane function network element based on the information, and determine a first active characteristic information set on the user plane function network element.

[0063] In a possible design, the application server obtains a first active characteristic information set from a user plane function network element. The application server sends the first active characteristic information set to the terminal device. The first active characteristic information set includes characteristic information sets of live media streams of at least one terminal device served by the user plane function network element. Thus, the terminal device can determine characteristic information of the first live media stream to be switched based on the first active characteristic information set.

[0064] In this embodiment of the present application, the terminal device further receives a first active characteristic information set from the application server. The first active characteristic information set includes a characteristic information set of at least one live media stream of the terminal device served by the user plane function network element. When the terminal device determines that the first active characteristic information set includes characteristic information of the first live media stream, the terminal device sends a switching request to the access network device. When the terminal device determines that the first active characteristic information set does not include characteristic information of the first live media stream, the terminal device sends a switching request to the application server.

[0065] In a possible design, the application server sends flow description information and media indicator information to the policy control function network element, where the flow description information describes live media stream data characteristics corresponding to the live service, and the media indicator information indicates the core network to perform corresponding optimization for the media service.

[0066] In possible designs, the application server may be an edge application server or a central application server. An edge application server is closer to the terminal device than a central application server. An edge application server may also be referred to as a local application server. A central application server may also be referred to as a remote application server.

[0067] According to a sixth aspect, an embodiment of the present application further provides a media stream switching method. The method is applicable to an edge application server, and the edge application server is a server closer to a terminal device than a central application server. The method includes:

[0068] The edge application server receives characteristic information of the first live media stream from the terminal device. The edge application server determines the first live media stream corresponding to the characteristic information of the first live media stream. The edge application server switches the live media stream sent to the terminal device from the second live media stream to the first live media stream, and both the second live media stream and the first live media stream correspond to the edge application server.

[0069] In this embodiment of the present application, when multiple users served by the same edge application server access the same live media stream, the edge application server of this method embodiment is eligible to perform switching to help switch media streams in a timely manner and reduce media stream switching delay.

[0070] In a possible design, before the edge application server switches a live media stream sent to a terminal device from the second live media stream to the first live media stream, the edge application server determines first address information corresponding to the first live media stream and second address information corresponding to the second live media stream. The edge application server replaces the first address information with the second address information in a data packet carrying the first live media stream.

[0071] In this embodiment of the present application, it is ensured that the terminal device side can parse and apply the corresponding data by using the original IP / port information.

[0072] In a possible design, the edge application server determining the first live media stream corresponding to the characteristic information of the first live media stream includes the edge application server determining that a first active characteristic information set includes the characteristic information of the first live media stream. The edge application server determines the first live media stream in the currently monitored live media streams that carries the characteristic information of the first live media stream. The first active characteristic information set includes characteristic information of the live media streams of at least one terminal device serviced by the edge application server.

[0073] In this embodiment of the present application, the edge application server can monitor the media streams served by the edge application server to determine the media streams accessed by the terminal devices within the service range of the current edge application server. Thus, the corresponding first live media stream can be determined based on the characteristic information.

[0074] In a possible design, the edge application server determines that the first active characteristic information set does not include characteristic information of the first live media stream, in which case the edge application server sends a request message to the central application server, where the request message includes the characteristic information of the first live media stream, and the request message is for requesting to switch the live media stream sent to the terminal device to the first live media stream.

[0075] In this embodiment of the present application, when it determines that the first live media stream does not currently exist, the edge application server sends corresponding media request information to the central application server in a timely manner to ensure that the central application server responds to the media switching requested by the terminal device.

[0076] In a possible design, the edge application server determines that the first active characteristic information set does not include characteristic information of the first live media stream. The edge application server sends a response message to the terminal device through the access network device, and the response message is for notifying the terminal device that the live media stream switching has failed. In this way, after receiving the response message, the terminal device resends the switching request to the central application server.

[0077] In this embodiment of the present application, when it determines that the first live media stream does not currently exist, the edge application server can send a response message to the terminal device in a timely manner to avoid a long-term freezing on the terminal device caused by a switching failure.

[0078] According to a seventh aspect, the present application provides a communication device. The communication device may be an access network device or a chip disposed in the access network device. The communication device has a function for implementing the first aspect. For example, the communication device includes corresponding modules, units, or means for performing steps in the first aspect. The functions, units, or means may be implemented by software or hardware, or may be implemented by hardware executing corresponding software.

[0079] In a possible design, the communication device includes a processing unit and a communication unit. The communication unit may be configured to receive and transmit signals to implement communication between the communication device and another device. For example, the communication unit receives a switching request from a terminal device. The processing unit may be configured to perform some internal operations of the communication device. The functions performed by the processing unit and the communication unit may correspond to steps performed by the access network device in the aforementioned aspects.

[0080] In a possible design, the communication device includes a processor and may further include a transceiver. The transceiver is configured to receive and transmit signals, and the processor executes program instructions to complete the method according to any one of the possible designs or implementations of the first aspect. The communication device may further include one or more memories. The memory is coupled to the processor. The one or more memories may be integrated with the processor or may be located independently of the processor. This is not limited in this application. The memory may store computer programs or instructions necessary to implement the functions in the first aspect. The processor may execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the aforementioned aspect.

[0081] In a possible design, the communication device includes a processor and a memory. The memory can store computer programs or instructions necessary to implement the functions in the first aspect. The processor can execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements a method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0082] In a possible design, the communication apparatus includes at least one processor and an interface circuit, the at least one processor configured to communicate with another apparatus via the interface circuit and to perform a method performed by an access network device according to any one of the possible designs or implementations in the first aspect.

[0083] According to an eighth aspect, the present application provides a communication device. The communication device may be a terminal device or a chip disposed in the terminal device. The communication device has a function for implementing the second aspect. For example, the communication device includes corresponding modules, units, or means for performing steps in the second aspect. The functions, units, or means may be implemented by software or hardware, or may be implemented by hardware executing corresponding software.

[0084] In a possible design, the communication device includes a processing unit and a communication unit. The communication unit may be configured to receive and transmit signals to implement communication between the communication device and another device. For example, the communication unit is configured to receive a first live media stream transmitted by an access network. The processing unit may be configured to perform some internal operations of the communication device. The functions performed by the processing unit and the communication unit may correspond to steps performed by the access network device in the aforementioned aspects.

[0085] In a possible design, the communication device includes a processor and may further include a transceiver. The transceiver is configured to receive and transmit signals, and the processor executes program instructions to complete the method according to any one of the possible designs or implementations of the second aspect. The communication device may further include one or more memories. The memory is coupled to the processor. The one or more memories may be integrated with the processor or may be located independently of the processor. This is not limited in this application. The memory may store computer programs or instructions necessary to implement the functions in the second aspect. The processor may execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0086] In a possible design, the communication device includes a processor and a memory. The memory can store computer programs or instructions necessary to implement the functions in the second aspect. The processor can execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0087] In a possible design, the communication device includes at least one processor and an interface circuit, the at least one processor configured to communicate with another device via the interface circuit and to perform a method performed by a terminal device according to any one of the possible designs or implementations in the second aspect.

[0088] According to a ninth aspect, the present application provides a communication device. The communication device may be a user plane function network element or a chip disposed in the user plane function network element. The communication device has a function implementing the third aspect. For example, the communication device includes corresponding modules, units, or means for performing steps in the third aspect. The functions, units, or means may be implemented by software or hardware, or may be implemented by hardware executing corresponding software.

[0089] In a possible design, the communication device includes a processing unit and a communication unit. The communication unit may be configured to receive and transmit signals to implement communication between the communication device and another device. For example, the communication unit is configured to receive a switching request sent by a terminal device. The processing unit may be configured to perform some internal operations of the communication device. The functions performed by the processing unit and the communication unit may correspond to steps performed by the access network device in the aforementioned aspects.

[0090] In a possible design, the communication device includes a processor and may further include a transceiver. The transceiver is configured to receive and transmit signals, and the processor executes program instructions to complete the method according to any one of the possible designs or implementations of the third aspect. The communication device may further include one or more memories. The memory is coupled to the processor. The one or more memories may be integrated with the processor or located independently of the processor. This is not limited in this application. The memory may store computer programs or instructions necessary to implement the functions in the third aspect. The processor may execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0091] In a possible design, the communication device includes a processor and a memory. The memory can store computer programs or instructions necessary to implement the functions in the third aspect. The processor can execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0092] In a possible design, a communications device includes at least one processor and an interface circuit, the at least one processor configured to communicate with another device via the interface circuit and to perform a method performed by a user plane function network element according to any one of the possible designs or implementations in the third aspect.

[0093] According to a tenth aspect, the present application provides a communication device. The communication device may be a session management function network element or a chip disposed in the session management function network element. The communication device has a function implementing the fourth aspect. For example, the communication device includes corresponding modules, units, or means for performing steps in the fourth aspect. The functions, units, or means may be implemented by software or hardware, or may be implemented by hardware executing corresponding software.

[0094] In a possible design, the communication device includes a processing unit and a communication unit. The communication unit may be configured to receive and transmit signals to implement communication between the communication device and another device. For example, the communication unit is configured to receive a session establishment request sent by a terminal device. The processing unit may be configured to perform some internal operations of the communication device. The functions performed by the processing unit and the communication unit may correspond to steps performed by the access network device in the aforementioned aspects.

[0095] In a possible design, the communication device includes a processor and may further include a transceiver. The transceiver is configured to receive and transmit signals, and the processor executes program instructions to complete the method according to any one of the possible designs or implementations of the fourth aspect. The communication device may further include one or more memories. The memory is coupled to the processor. The one or more memories may be integrated with the processor or may be located independently of the processor. This is not limited in this application. The memory may store computer programs or instructions necessary to implement the functions in the fourth aspect. The processor may execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0096] In a possible design, the communication device includes a processor and a memory. The memory can store computer programs or instructions necessary to implement the functions in the fourth aspect. The processor can execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0097] In a possible design, a communication device includes at least one processor and an interface circuit, the at least one processor configured to communicate with another device through the interface circuit and to perform a method performed by a session management function network element according to any one of the possible designs or implementations in the fourth aspect.

[0098] According to an eleventh aspect, the present application provides a communication device. The communication device may be an application server or a chip disposed in the application server. The communication device has a function implementing the fifth aspect. For example, the communication device includes corresponding modules, units, or means for performing steps in the fifth aspect. The functions, units, or means may be implemented by software or hardware, or may be implemented by hardware executing corresponding software.

[0099] In a possible design, the communication device includes a processing unit and a communication unit. The communication unit may be configured to receive and transmit signals to implement communication between the communication device and another device. For example, the communication unit is configured to receive a session establishment request sent by an application server. The processing unit may be configured to perform some internal operations of the communication device. The functions performed by the processing unit and the communication unit may correspond to steps performed by the access network device in the aforementioned aspects.

[0100] In a possible design, the communication device includes a processor and may further include a transceiver. The transceiver is configured to receive and transmit signals, and the processor executes program instructions to complete the method according to any one of the possible designs or implementations of the fifth aspect. The communication device may further include one or more memories. The memory is coupled to the processor. The one or more memories may be integrated with the processor or located independently of the processor. This is not limited in this application. The memory may store computer programs or instructions necessary to implement the functions in the fifth aspect. The processor may execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0101] In a possible design, the communication device includes a processor and a memory. The memory can store computer programs or instructions necessary to implement the functions in the fifth aspect. The processor can execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements a method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0102] In a possible design, the communication device includes at least one processor and an interface circuit, the at least one processor configured to communicate with another device through the interface circuit and to perform a method performed by the application server according to any one of the possible designs or implementations in the fifth aspect.

[0103] According to a twelfth aspect, the present application provides a communication device. The communication device may be an edge application server or a chip disposed in the edge application server. The communication device has a function implementing the sixth aspect. For example, the communication device includes corresponding modules, units, or means for performing steps in the sixth aspect. The functions, units, or means may be implemented by software or hardware, or may be implemented by hardware executing corresponding software.

[0104] In a possible design, the communication device includes a processing unit and a communication unit. The communication unit may be configured to receive and transmit signals to implement communication between the communication device and another device. For example, the communication unit is configured to receive a session establishment request sent by an edge application server. The processing unit may be configured to perform some internal operations of the communication device. The functions performed by the processing unit and the communication unit may correspond to steps performed by the access network device in the aforementioned aspects.

[0105] In a possible design, the communication device includes a processor and may further include a transceiver. The transceiver is configured to receive and transmit signals, and the processor executes program instructions to complete the method according to any one of the possible designs or implementations of the sixth aspect. The communication device may further include one or more memories. The memory is coupled to the processor. The one or more memories may be integrated with the processor or located independently of the processor. This is not limited in this application. The memory may store computer programs or instructions necessary to implement the functions in the sixth aspect. The processor may execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0106] In a possible design, the communication device includes a processor and a memory. The memory can store computer programs or instructions necessary to implement the functions in the sixth aspect. The processor can execute the computer programs or instructions stored in the memory. When the computer programs or instructions are executed, the communication device implements the method according to any one of the possible designs or implementations of the access network device in the previous aspect.

[0107] In a possible design, the communication device includes at least one processor and an interface circuit, the at least one processor configured to communicate with another device through the interface circuit and to perform a method performed by the edge application server according to any one of the possible designs or implementations in the sixth aspect.

[0108] According to a thirteenth aspect, the present application provides a system including the access network device, the user plane function network element, the application server, the session management function network element, and the terminal device in the above-mentioned method embodiment or apparatus embodiment. Optionally, the system further includes a unified data management function network element and a policy control function network element.

[0109] According to a fourteenth aspect, the present application provides a system including the access network device, the edge application server, the central application server, the session management function network element, and the terminal device in the above-mentioned method embodiment or apparatus embodiment. Optionally, the system further includes a unified data management function network element and a policy control function network element.

[0110] According to a fifteenth aspect, the present application provides a computer-readable storage medium. The computer storage medium stores computer-readable instructions. When the computer-readable instructions are read and executed on a computer, the computer performs a method according to any one of the possible designs in the previous aspects.

[0111] According to a sixteenth aspect, the present application provides a computer program product, which, when read and executed on a computer, causes the computer to execute a method according to any one of the possible designs in the previous aspects.

[0112] According to a seventeenth aspect, the present application provides a chip, the chip including a processor, coupled to a memory, configured to read and execute a software program stored in the memory to implement a method according to any one of the possible designs in the previous aspects. [Brief description of the drawings]

[0113] [Figure 1] FIG. 1 is a schematic diagram of a network architecture according to an embodiment of the present application. [Figure 2A] FIG. 1 is a schematic diagram of a live streaming system according to an embodiment of the present application. [Figure 2B] FIG. 1 is a schematic diagram of a network architecture corresponding to a current live streaming system according to an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram of a session establishment method according to an embodiment of the present application; [Figure 4A] FIG. 2 is a schematic diagram of a data transmission method according to an embodiment of the present application; [Figure 4B] FIG. 2 is a schematic diagram of a media stream switching scenario according to an embodiment of the present application; [Diagram 5] 1 is a schematic diagram of a live media stream switching method according to an embodiment of the present application; [Figure 6A]1 is a schematic diagram of a live media stream switching method according to an embodiment of the present application; [Figure 6B] FIG. 2 is a schematic diagram of a media stream switching scenario according to an embodiment of the present application; [Figure 7A] 1 is a schematic diagram of a live media stream switching method according to an embodiment of the present application; [Figure 7B] 1 is a schematic diagram of a live media stream switching method according to an embodiment of the present application; [Figure 8] 1 is a schematic diagram of the structure of a communication device according to an embodiment of the present application; [Figure 9] 1 is a schematic diagram of the structure of a communication device according to an embodiment of the present application; [Figure 10] 1 is a schematic diagram of the structure of a communication device according to an embodiment of the present application; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0114] In the embodiments of the present application, it is to be understood that "at least one" means one or more, and "multiple" means two or more. The term "and / or" describes the association relationship between the associated objects and represents that three relationships may exist. For example, A and / or B can represent the cases where only A is present, where both A and B are present, and where only B is present. A and B may be singular or plural. The character " / " generally indicates the "or" relationship between the associated objects. At least one of the following moieties (items) or similar expressions indicates any combination of these items, including any combination of single items (moieties) or multiple items (moieties). For example, at least one of a, b, or c may represent a, b, c, a and b, a and c, b and c, or a, b, and c, and each of a, b, and c may be an element or a set including one or more elements.

[0115] In the embodiments of this application, words such as "an example," "in some embodiments," "in another embodiment," and the like are used to denote providing an example, illustration, or explanation. Any embodiment or design scheme described in this application as an "example" should not be described as preferred or having more advantages over another embodiment or design scheme. Rather, the term "example" is used to present concepts in a particular way.

[0116] In embodiments of the present application, "of", "corresponding", "relevant", and "corresponding" may be used interchangeably. It should be noted that the meanings expressed by the terms are consistent when the differences are not emphasized. In embodiments of the present application, communication and transmission may sometimes be used interchangeably. It should be noted that the meanings expressed by the terms are consistent when the differences are not emphasized. For example, transmitting may include sending and / or receiving and may be in the noun form or verb form.

[0117] It should be noted that in the embodiments of the present application, terms such as "first" and "second" are used merely for purposes of distinction in the description and should not be understood as an indication or implication of relative importance or an indication or implication of order.

[0118] The "network element" in the embodiment of the present application may also be referred to as a "device". This is not limited. The network element may be hardware, or software obtained through functional division, or a combination thereof. The network element may include a core network element, an access network element (also referred to as an access network device), etc. The core network element includes, for example, a session management network element or a user plane network element.

[0119] For the problems raised in the background art, the embodiment of the present application provides a media stream switching method. Based on the characteristic information of the live media stream in the switching request sent by the terminal device, the access network device timely determines the live media stream corresponding to the characteristic information, and delivers the live media stream corresponding to the characteristic information to the terminal device to reduce the media stream switching delay. Compared with the prior art, after the access network device receives the switching request, if there is a live media stream corresponding to the characteristic information, the live media stream does not need to be obtained from the application server through the core network element to reduce the media stream switching delay. The media stream obtained through switching can adapt to the change of the network condition. Therefore, when the network condition is good, the user can watch high-quality video in real time on the terminal. When the network condition is worse, the streaming media data with a low bit rate is transmitted. In this way, the possibility of video freezing is reduced when the user watches the video in real time on the terminal, thereby helping to improve the user experience.

[0120] Hereinafter, some terms in the embodiments of the present application will be explained to help those skilled in the art to understand more clearly.

[0121] 1. Media Stream: A media stream can be understood as a video stream in the embodiment of this application, and a video stream can include one or more video frames.

[0122] 2. Media Stream Parameters: The media stream parameters in the embodiments of the present application can indicate the definition of video frame image quality or field of view. For example, the media stream parameters may be field of view, bit rate, resolution, and / or frame rate. For example, the bit rate depends on the resolution and frame rate. For example, bit rate = frame rate * video frame size, and the video frame size depends on the resolution of the video frame and the media encoding technology used. Therefore, there is usually a correspondence between the bit rate, frame rate, and resolution. For example, if the media stream parameter is a bit rate, the frame rate and resolution are adjusted accordingly after the adaptive network adjustment of the bit rate.

[0123] A higher bit rate indicates higher video quality. For example, the image quality of a video with a bit rate of 10 Mbps is higher than the image quality of a video with a bit rate of 5 Mbps. A higher bit rate usually indicates a higher requirement for network bandwidth for transmitting streaming media data. For example, the network bandwidth required for transmitting streaming media data at a bit rate of 10 Mbps is greater than the network bandwidth required for transmitting streaming media data at a bit rate of 5 Mbps.

[0124] In the embodiment of the present application, it should be understood that the media stream parameter identifier is used to indicate the size of the media stream parameter, in other words, the identifiers of media stream parameters having different sizes are different. It should be noted that when the media stream parameter is a bit rate, the media stream parameter identifier can also be referred to as a bit rate identifier. Similarly, when the media stream parameter is a resolution, the media stream parameter identifier can also be referred to as a resolution identifier. When the media stream parameter is a frame rate, the media stream parameter identifier can also be referred to as a frame rate identifier. For example, the media stream parameter is a resolution. For example, the resolution identifier of 360P is 000, the resolution identifier of 720P is 001, and the resolution identifier of 1080P is 010.

[0125] It should be noted that an access network device, a mobility management network element, a session management network element, a user plane network element, and a policy control network element are involved on the network side in performing the media stream switching method provided in this application. The access network device is an access network element. The mobility management network element, the session management network element, the user plane network element, and the policy control network element are core network elements. For example, the access network device is configured to provide wireless communication functions to a terminal. For example, the access network device is a radio access network (RAN) element. The mobility management network element is responsible for mobility management of a terminal. For example, the mobility management network element is a mobility management entity (MME) or an access and mobility management function (AMF) entity. The session management network element is configured to control the establishment, modification, and deletion of a packet data unit (PDU) session. For example, the session management network element is a session management function (SMF) entity. The user plane network element is responsible for connecting to an external network (e.g., a data network (DN)). For example, the user plane network element is a user plane function (UPF) entity. The policy control network element is responsible for policy control, e.g., generating quality of service (QoS) parameter sets. For example, the policy control network element is a policy control function (PCF) entity.

[0126] The terminal and the application server are involved in performing the media stream switching method provided in the present application. It should be understood that in the embodiment of the present application, the terminal may also be referred to as a terminal device, a user equipment, a mobile terminal, a media client, etc., including but not limited to. The application server may also be referred to as a media stream server, etc., including but not limited to. The application server may be an edge application server or a central application server. The edge application server is closer to the terminal device than the central application server. The edge application server may also be referred to as a local application server. The central application server may also be referred to as a remote application server. In the following, the embodiment of the present application is described by using a UE and an application server as an example.

[0127] For example, Figure 1 is a schematic diagram of a network architecture to which an embodiment of the present application is applicable. The network architecture is a 5th generation mobile communication technology (5G) network architecture. The network architecture includes a radio access network (RAN), an AMF network element, an SMF network element, a UPF network element, a PCF network element, a DN, etc. In some embodiments, the network architecture further includes a unified data management (UDM) entity, an authentication server function (AUSF) entity, an application function (AF) entity, a network exposure function (NEF) entity, a network data analytics function (NWDAF) entity, etc.

[0128] The main function of the RAN (which may also be referred to as an access network, AN) is to control the UE to wirelessly access the mobile communication network. The RAN is a part of the mobile communication system. The RAN implements radio access technology. For example, the RAN controls the UE to wirelessly access the mobile communication network through the RAN network element, and the RAN is located between the UE and the core network element. The RAN network elements, also referred to as access network devices, include, but are not limited to, g node B (gNB) in 5G, evolved node B (eNB), radio network controller (RNC), node B (NB), base station controller (BSC), base transceiver station (BTS), home base station (e.g., home evolved node B or home node B, HNB), base band unit (BBU), transmitting and receiving point (TRP), transmitting point (TP), mobile switching center, etc. In addition, the RAN devices may further include wireless fidelity (wifi) access points (APs), etc.

[0129] The AMF network element is responsible for UE access management and mobility management, including user registration management, reachability detection, SMF network element selection, mobility status switch management, etc.

[0130] The SMF network element is mainly responsible for controlling PDU session establishment, modification and deletion, UPF network element selection, etc.

[0131] The UPF network element is primarily responsible for routing and forwarding data packets, providing support in routing service flows to the data network via mobility anchor points and uplink classifiers, supporting multi-homed PDU sessions via branching points, etc.

[0132] The PCF network element serves as a policy decision point and is mainly responsible for providing rules such as service data flow and application discovery rules, gating control rules, QoS rules, and flow-based charging control rules.

[0133] The UDM entity is primarily responsible for storing user subscription data.

[0134] The AUSF entity is primarily configured to provide authentication services.

[0135] The AF entity is primarily configured to interact with a 3rd generation partnership project (3GPP) core network to provide services and influence service flow routing, access network capability disclosure, policy control, and the like.

[0136] The NEF entity is primarily configured to securely expose services and capabilities provided by 3GPP network functions, such as third parties, edge computing, or AFs.

[0137] The DN provides network services to the UE, such as operator services, Internet access, or third-party services.

[0138] NWDAF entities are primarily configured to provide functions such as network data collection and analysis based on technologies such as big data and artificial intelligence.

[0139] In addition, for the sake of brevity, in the following description, the "entity" in each functional entity is omitted. For example, the AMF network element is abbreviated to AMF, and the UPF network element is abbreviated to UPF. The same applies to other entities, and they are not listed one by one.

[0140] In FIG. 1, any two network elements among NWDAF, NEF, NRF, PCF, UDM, AF, AUSF, AMF, and SMF can perform service-oriented communication with each other. For example, the interfaces Nnef and Nausf used for communication between NEF and AUSF are service-oriented interfaces. Similarly, the interfaces Nnwdaf, Nnrf, Npcf, Nudm, Naf, Namf, and Nsmf are service-oriented interfaces. Also, the AMF may communicate with the UE via the N1 interface, the AMF may communicate with the RAN network element via the N2 interface, the RAN network element may communicate with the UPF via the N3 interface, the SMF may communicate with the UPF via the N4 interface, the UE may communicate with the RAN network element via the air interface, the UPF may communicate with the DN via the N6 interface, and the UPF may communicate with each other via the N9 interface. It should be noted that the service-oriented interfaces between the network elements in FIG. 1 may alternatively be replaced with point-to-point interfaces.

[0141] In the network architecture shown in FIG. 1, the network elements relevant to this application are mainly a RAN network element, an AMF network element, an SMF network element, a UPF network element, and a PCF network element.

[0142] It should be understood that the UE in this embodiment of the present application is a device having a wireless transceiver function. The device may be located on land, including an indoor device, an outdoor device, a handheld device, or an in-vehicle device, or may be located on the water surface (e.g., on a ship), or may be located in the air (e.g., on an airplane, a balloon, or a satellite). For example, the UE may be a mobile phone, a tablet computer (pad), a smart screen, a computer with wireless transmission and reception capabilities, a virtual reality (VR) terminal device, an augmented reality (AR) terminal, a wireless terminal in industrial control, a wireless terminal in self driving, a wireless terminal in remote medical, a wireless terminal in a smart grid, a wireless terminal in transportation safety, a wireless terminal in a smart city, a wireless terminal in a smart home, etc.

[0143] It should be noted that Figure 1 is merely an example of a network architecture to which an embodiment of the present application can be applied, and does not constitute any limitation to the embodiment of the present application. The embodiment of the present application may alternatively be applied to another network architecture, for example, a future mobile communication network architecture (e.g., a 6G network architecture).

[0144] 2A is a schematic diagram of a live streaming system according to an embodiment of the present application. Live streaming is a new method of social networking that allows multiple users to watch the same live content simultaneously.

[0145] Specifically, as a new method of social networking, live streaming has the following characteristics: A user may perform operations on a terminal, and the terminal may send a live streaming request to a server. The server creates a live streaming room for the user, where the live streaming room is an online virtual room that provides live audio and video streaming with on-screen comments. The user is the initiator of the live streaming room, that is, the live streamer. The live streamer may display audio and video content, such as songs, games, movies, and TV series, in the live streaming room. Another user as a viewer may also enter the live streaming room through another terminal, and watch the content displayed by the live streamer in the live streaming room, or interact with the live streamer, for example, like the live streamer, may give gifts to the live streamer, may follow or share the live streamer, or may chat with the live streamer.

[0146] As shown in Fig. 1, the live streaming system may include a plurality of terminals and a content delivery network. The plurality of terminals may include a terminal of a live streamer and terminals of n viewers. The content delivery network is configured to provide audio and video services to the plurality of terminals. The terminal of the live streamer may collect audio and video data in the live streaming process of the live streamer, obtain a live media stream based on the audio and video data, and send the live media stream to the content delivery network. The content delivery network transfers the live media stream to the terminals of the n viewers. In this case, the terminals of the viewers can decode and play the live media stream, so that the viewers can watch the live content of the live streamer.

[0147] The terminal of the live streamer may perform live streaming on a live streaming application client on the terminal, or perform live streaming on a portal website. Similarly, the terminals of the n viewers may obtain the live media stream through a live streaming application or a portal website. This is not limited in the embodiment of the present invention.

[0148] It should be noted that the live streaming system may further include a message delivery server. The message relay delivery server does not distinguish whether the terminal is a viewer's terminal or a live streamer's terminal. The message relay delivery server can broadcast a message sent by any terminal to other terminals. In this way, all terminals in the live streaming room can see the message, and the message usually includes interactive content between the viewer and the live streamer. This embodiment of the present invention does not provide further details herein.

[0149] In addition, it should be noted that the live streaming scenario used in the embodiments of the present application is not limited to live streaming, but can be further applied to live broadcast of sports games, live broadcast of major news events, etc. Examples are not described one by one in this specification.

[0150] Figure 2B is a schematic diagram of a network architecture corresponding to a current live streaming system. The network architecture includes a radio access network (RAN), an AMF network element, an SMF network element, a UPF network element, a PCF network element, a DN, etc., as shown in Figure 1. For the specific implementation functions of each network element, please refer to Figure 1. The details will not be described again here.

[0151] In Fig. 2B, each UE separately establishes a data transmission channel with the application server of the live media stream, and requests and transmits live media stream data independently. For example, in Fig. 2B, six UEs (UE1, UE2, UE3, UE4, UE5, and UE6) respectively establish six data transmission channels with the application server of the live media stream. The same live media stream is transmitted through the data transmission channel corresponding to UE1 and UE6. The same live media stream is transmitted through the data transmission channel corresponding to UE2 and UE3. The same live media stream is transmitted through the data transmission channel corresponding to UE4 and UE5. It can be seen that currently, the live media stream with the same content is repeatedly transmitted through the core network element and the access network element. This greatly reduces the resource utilization rate.

[0152] In addition, currently, in live media stream transmission, when the UE switches the view or bit rate, the UE needs to request the live media stream with the switched view or bit rate from the application server. After receiving the request, the application server sends the switched live media stream to the UE. Currently, due to the network delay in this process, the media stream switching delay is too long, and the live video freezes, which seriously affects the user's real-time live video viewing experience.

[0153] Therefore, the present application provides a media stream switching method. According to the method, an access network element or a user plane network element can determine a live media stream corresponding to a live media stream among multiple currently transmitted live media streams based on characteristic information of the live media stream from a terminal device, and deliver a duplicated live media stream to the terminal device to timely switch the media stream and improve the media stream switching delay. In addition, according to the method, de-duplicated transmission of the live media stream between the application server and the access network element is also implemented, thereby reducing the transmission burden between the core network element and the access network element and improving resource utilization.

[0154] In the following embodiments provided in this application, the methods provided in the embodiments of this application are mainly described in detail with reference to the network architecture shown in Figure 1. In the following, it is mainly assumed that the media stream parameters are fields of view. If the media stream parameters are other parameters such as bit rate, resolution, or frame rate, please refer to the methods in which the media stream parameters are fields of view for the session establishment method, data transmission method, and media stream switching method.

[0155] EMBODIMENT 1 This embodiment is a process of establishing a session corresponding to a live service, which aims to complete the delivery of characteristic information of the live media stream in the session establishment process.

[0156] 3 shows a session establishment method according to an embodiment of the present application. Specifically, the method includes the following steps:

[0157] Step 301: An application server marks characteristic information of live media streams and sends an initial characteristic information set to a PCF, where the initial characteristic information set includes characteristic information corresponding to each live media stream.

[0158] Specifically, the application server encapsulates the characteristic information in different live media stream data packets. Typically, the characteristic information is encapsulated at the IP layer of the live media stream data packets. The characteristic information can be a specific media stream parameter value or an index value.

[0159] Case 1: The characteristic information of a live media stream may be a media stream parameter value.

[0160] For example, a panoramic live media stream whose media stream parameter is a field of view is used as an example. The characteristic information of the panoramic live media stream marked by the application server may be a field of view value. For example, when the field of view is 0 degrees, the characteristic information encapsulated by the application server in the live media stream data packet is 0 degrees. When the field of view is 90 degrees, the characteristic information encapsulated by the application server in the live media stream data packet is 90 degrees. When the field of view is 360 degrees, the characteristic information encapsulated by the application server in the live media stream data packet is 360 degrees. The rest can be estimated by analogy. The application server can encapsulate a corresponding field of view value into each live media stream data packet corresponding to (0 degrees, 360 degrees). Here, the initial characteristic information set may be a field of view list including 0 degrees to 180 degrees.

[0161] Case 2: The characteristic information of the live media stream may be an index value that uniquely corresponds to each live media stream.

[0162] For example, a panoramic live media stream whose media stream parameter is field of view is still used as an example. The characteristic information of the panoramic live media stream marked by the application server may be an index value. For example, when the field of view is 0 degrees, the index value encapsulated in the live media stream data packet by the application server is 0X00. When the field of view is 90 degrees, the index value encapsulated in the live media stream data packet by the application server is 0X5A. When the field of view is 360 degrees, the index value encapsulated in the live media stream data packet by the application server is 0168. The rest can be deduced by analogy. The application server can encapsulate a corresponding index value into each live media stream data packet corresponding to (0 degrees, 360 degrees). In this example, the initial characteristic information set may be an index list including 0X00 to 0168.

[0163] In another example, the media stream parameter of a live media stream is a bit rate. It is assumed that the bit rates supported by the application server are 10 Mbps, 5 Mbps, and 2 Mbps. The application server numbers the live media streams having a bit rate of 10 Mbps, the live media streams having a bit rate of 5 Mbps, and the live media streams having a bit rate of 2 Mbps separately. For example, when the bit rate is 10 Mbps, the index value encapsulated by the application server in the live media stream data packet is 000. When the bit rate is 5 Mbps, the index value encapsulated by the application server in the live media stream data packet is 001. When the bit rate is 2 Mbps, the index value encapsulated by the application server in the live media stream data packet is 010. Here, the initial characteristic information set may be an index list including 000, 001, and 010.

[0164] In this step, the application server can further send media indicator information and flow description information to the PCF by using an application request (AF Request) message. Specifically, the media indicator information indicates the core network to perform corresponding optimization for the media service. The flow description information describes the live media stream data characteristics corresponding to the live service. For example, the live media stream data characteristics can include IP 3-tuple information (target IP address, target port, and transport layer protocol) of the live media stream on the AS side. The UPF can determine whether the service is a live media service by checking the header information in the data.

[0165] In some embodiments, the application server can send an initial characteristic information set to the PCF through the AF. In particular, after receiving the initial characteristic information set from the application server, the AF can send the initial characteristic information set to the NEF by using the Nnef_AFsessionWithQoS_Create service. After authentication, the NEF sends the initial characteristic information set to the PCF by using the Npcf_PolicyAuthorization_Create service.

[0166] Step 302: UE1 sends a session establishment request message to the SMF network element.

[0167] Specifically, the session establishment request message is a NAS message. The session establishment request message may be a PDU session establishment request message or a PDU session modification request message.

[0168] Step 303: After receiving the session establishment request message, the SMF network element obtains an initial characteristic information set from the PCF.

[0169] For example, the SMF network element initiates a request to the PCF. After receiving the request, the PCF sends an Npcf_SMPolicyControl_Update / Create to the SMF carrying the initial property information set. In another example, the PCF may instead send a newly defined policy to the SMF carrying the initial property information set.

[0170] In a possible embodiment, the SMF network element may further obtain media indicator information and data flow rules from the PCF.

[0171] Step 304: The SMF network element sends first indication information to the UPF network element.

[0172] The first indication information may be carried in an N4 session establishment message. In other words, after creating a session management policy association between the SMF network element and the PCF, the SMF network element sends an N4 session establishment request carrying the first indication information to the UPF. The first indication information instructs the UPF to monitor the downlink live media stream of the terminal device.

[0173] In a possible embodiment, the SMF network element can further send a packet detection rule (PDR) to the UPF, which can be used to monitor whether the current service is a corresponding live service and to monitor the identification information in the downlink media stream.

[0174] Step 305: The SMF network element further sends the second indication information to the RAN, and sends the third indication information to the UE1.

[0175] The second instruction information instructs the RAN to monitor a downlink live media stream of the terminal device.

[0176] The third indication information indicates to request and receive the media stream based on the initial characteristic information set and subsequent indications from the RAN side.

[0177] If possible, the SMF network element may further send an initial characteristic information set to UE1.

[0178] For example, the SMF network element can send the second indication information (Indicator 2) to the RAN side, and send the third indication information (Indicator 3) and the initial characteristic information set to the RAN side and the UE side by using the Namf_Communication_N1N2MessageTransfer service message.

[0179] Step 306: After the session establishment is completed, the UPF monitors the downlink live media stream sent to UE1 according to the first indication information, acquires the characteristic information in the downlink live media stream data packet, and stores the characteristic information in the first active characteristic information set. Specifically, the characteristic information may be included in the IP / transport / application layer header of the data packet. This is not limited. For example, the UPF acquires through monitoring that the characteristic information in the downlink live media stream data packet sent to UE1 is 90 degrees, and thus stores 90 degrees in the first active characteristic information set. In another example, the UPF acquires through monitoring that the characteristic information in the downlink live media stream data packet sent to UE1 is 001, and thus stores 001 in the first active characteristic information set.

[0180] Step 307: The UPF further encapsulates the characteristic information in the GTP layer (specifically, the GTP-U layer) of the live media stream data packet.

[0181] For example, the UPF encapsulates the characteristic information "90 degrees" in the GTP layer of the live media stream data packets corresponding to "90 degrees" on the N3 link.

[0182] Step 308: After receiving second indication information from the SMF network element, the RAN monitors the GTP layer of the downlink live media stream data packet from the UPF, obtains characteristic information in the downlink live media stream, and stores the characteristic information in a second active characteristic information set.

[0183] For example, the RAN obtains through monitoring that the characteristic information in the downlink live media stream data packet is 90 degrees, and therefore stores 90 degrees in the second active characteristic information set. In another example, the RAN obtains through monitoring that the characteristic information in the downlink live media stream data packet is 001, and therefore stores 001 in the second active characteristic information set.

[0184] In a possible embodiment, the RAN may further create a mapping relationship between the characteristic information and UE1. For example, the RAN creates a mapping relationship between the characteristic information "90 degrees" and UE1. In this way, when multiple UEs access the RAN, the RAN can determine the live media streams corresponding to each UE served by the RAN.

[0185] In another possible embodiment, the RAN can further obtain a QFI and first address information corresponding to UE1 from an SMF network element. The QFI indicates a downlink live media stream to be transmitted to UE1. The first address information may include an IP address and / or a port range. Specifically, the RAN can receive an N2 SM message from the SMF network element, and obtain the QFI and the first address information from the N2 SM message. Thus, the RAN can establish a mapping relationship between UE1 and the first address information.

[0186] Step 309: UE1 receives third indication information from the SMF network element, and stores the third indication information.

[0187] The third indication information indicates to request and receive the media stream based on the initial characteristic information set and subsequent indications from the RAN side.

[0188] In a possible embodiment, UE1 may further receive an initial characteristic information set from an SMF network element. In another possible embodiment, the above method may further include step 310, and UE1 may alternatively learn the initial characteristic information set by interacting with an application layer of an application server.

[0189] In the following, a specific example is provided to illustrate the aforementioned session establishment process.

[0190] Referring to FIG. 2B, UE1-UE6 can establish sessions corresponding to UE1-UE6 according to the method shown in steps 301-309, respectively. If UE1-UE6 are in the same live streaming room, it is very likely that UE1-UE6 all access the same RAN and the same UPF network element, or UE1-UE6 all access the same UPF network element. It is assumed that UE1-UE6 all access the same RAN and the same UPF network element. In this case, the UPF network element monitors six downlink live media streams respectively transmitted to six UEs. Therefore, the first active characteristic information set stored by the UPF network element includes characteristic information of the six downlink live media streams. In addition, the second active characteristic information set stored by the RAN also includes characteristic information of the six downlink live media streams. If possible, the RAN may further send a second active characteristic information set including characteristic information of the six downlink live media streams to UE1-UE6 within the service range of the RAN, so that when it determines that a live media stream needs to be switched, UE1-UE6 search the second active characteristic information set for characteristic information corresponding to the live media stream requested to be switched.

[0191] For example, as shown in Figure 2B, UE1 and UE6 correspond to downlink live media streams with the same content, UE2 and UE3 correspond to downlink live media streams with the same content, and UE4 and UE5 correspond to downlink live media streams with the same content. Therefore, the first active characteristic information set stored by the UPF network element includes 001, 002, and 003. Because UE1 to UE6 also access the same RAN, the second active characteristic information set stored by the RAN also includes 001, 002, and 003.

[0192] It should be noted that if UE1-UE6 all access the same UPF network element, but UE2-UE4 access RAN1 and UE1 and UE6 access RAN2, the second active characteristic information set stored by RAN1 also includes 002 and 003, and the second active characteristic information set stored by RAN1 also includes 001.

[0193] In addition, it should be noted that the first active characteristic information set and the second characteristic information set are not fixed but updated in real time. When a new viewer's UE accesses a live media service, a new PDU session is likely to be established. If the characteristic information of the downlink live media stream carried by the newly established PDU session is 004, the first active characteristic information set includes 001, 002, 003, and 004. On the contrary, if UE1 and UE6 leave the live service, the PDU session corresponding to UE1 and the PDU session corresponding to UE6 are released. In this case, the first active characteristic information set includes 002 and 003.

[0194] 2B , when UE1 to UE6 all access the same RAN network element, after the sessions of UE1 to UE6 are established, the RAN can establish a mapping relationship between the identifier, address information, and characteristic information of the live media stream of each UE according to the method shown in step 208. For example, the mapping relationship is shown in Table 1.

[0195] [Table 1]

[0196] From Table 1, it can be seen that the session in which each UE's live media stream is located has a corresponding IP and port number.

[0197] In this embodiment of the present application, in the user's PDU session establishment process, the SMF network element delivers corresponding instruction information to the UE / RAN / UPF during session establishment, to ensure that the UE / RAN / UPF can quickly perform switching processing in the subsequent data transmission process based on the characteristic information of the live media stream provided by the AF, so as to ensure timely media stream switching.

[0198] EMBODIMENT 2 Based on the delivery of the characteristic information of the live media stream in the session establishment process of embodiment 1, the application server, the core network element, and the access network element can eliminate duplicated media streams between the AS and the UPF network element and between the UPF network element and the RAN by identifying the characteristic information of the live media stream. In addition, according to the present method, de-duplicated transmission of the live media stream between the AS and the RAN is implemented, thereby reducing the transmission burden between the core network element and the access network element and improving resource utilization.

[0199] 4A shows a data transmission method according to an embodiment of the present application. Specifically, the method includes the following steps:

[0200] Step 401: After detecting that at least one UE accesses a live streaming service according to first indication information received from an SMF network element, the UPF network element sends notification information to the SMF network element, the notification information is for notifying the SMF network element of characteristic information of the live media stream accessed by the at least one UE.

[0201] For example, referring to Figure 2B, the UPF network element detects that UE1-UE6 are accessing a live streaming service. Therefore, the UPF network element sends notification information to the SMF network element by using the N4 session reporting procedure. The notification information is to inform the SMF network element that the characteristic information of the live media streams accessed by UE1-UE6 is 001, 002, and 003.

[0202] Step 402: The SMF network element forwards the notification information to the PCF side.

[0203] Specifically, the SMF network element can send notification information to the PCF side by using a session management policy management modification procedure, and the corresponding notification information can include the identity information of the UE and the identity information of the corresponding UPF.

[0204] Step 403: The PCF notifies the AF / AS side of the notification information.

[0205] Specifically, the PCF may notify the AF / AS side of the notification information by using a capability exposure information Npcf_EventExposure_Notify message, or may notify the NEF of the notification information by using a Npcf_EventExposure_Notify message, and then the NEF may notify the AF / AS side of the notification information by using a Nnef_EventExposure_Notify message.

[0206] Step 404: The AF / AS side can determine a characteristic information set of the live media stream accessed by the terminal served by the UPF based on the received notification information. When it is determined that there is duplicated characteristic information in the characteristic information set of the live media stream accessed by the terminal served by the UPF, the AF / AS side removes the duplicated downlink live media stream sent to the UPF network element.

[0207] Step 405: The AS / AF sends the deduplicated downlink live media stream to the UPF network element.

[0208] Step 406: The UPF network element also determines whether the characteristic information of the live media stream arriving at the same RAN is duplicated based on the monitoring result. If there is duplicated characteristic information, the UPF network element removes the duplicated downlink live media stream.

[0209] Specifically, the UPF can determine whether the RAN is the same RAN based on the downlink target IP address of the GTP tunnel.

[0210] Step 407: The UPF network element sends the deduplicated downlink live media stream to the RAN.

[0211] Step 408: The UPF network element may further send address information corresponding to the characteristic information of each deduplicated downlink live media stream to the RAN.

[0212] Specifically, in a possible embodiment, the UPF network element can send address information corresponding to each session to the SMF network element by using N4 session modification information, and then the SMF network element sends the address information to the RAN side by using an N2 SM message.

[0213] In another possible embodiment, the UPF network element can encapsulate the address information of the live media stream in the GTP layer of the downlink live media stream data packet, and send the encapsulated downlink live media stream data to the RAN side.

[0214] Step 409: After receiving the live media stream, the RAN sends corresponding live media stream data and address information corresponding to the live media stream to the served UE based on the mapping relationship between the identifier, address information, and characteristic information of each UE (shown in Table 1), to ensure that the UE can receive and analyze these downlink live media stream data packets.

[0215] The following provides a specific example to illustrate the aforementioned data transmission process.

[0216] Referring to FIG. 2B, UE1 to UE6 are in the same live streaming room. It is assumed that UE1 to UE6 all access the same RAN and the same UPF network element. In this case, the UPF network element monitors six downlink live media streams respectively transmitted to six UEs. Therefore, the UPF network element can obtain the characteristic information of the six downlink live media streams. It is assumed that the characteristic information of the six downlink live media streams is shown in 1. The UPF network element sends notification information to the SMF network element, where the notification information includes the characteristic information of the six downlink live media streams. The SMF network element sends the notification information to the AF / AS via the PCF network element. Based on the received notification information, the AF / AS side determines that UE1 and UE6 correspond to downlink live media streams with the same content, UE2 and UE3 correspond to downlink live media streams with the same content, and UE4 and UE5 correspond to downlink live media streams with the same content. Therefore, the AS / AF removes the duplicated downlink live media streams. Specifically, as shown in Figure 4B, only three quality of service flows (QoS flows) are transmitted between the AS / AF and the UPF network element, which are a downlink live media stream carrying characteristic information 001, a downlink live media stream carrying characteristic information 002, and a downlink live media stream carrying characteristic information 003, respectively. The UPF network element sends the deduplicated downlink live media streams to the RAN, and further sends address information corresponding to the characteristic information of each downlink live media stream to the RAN.After receiving the live media streams, the RAN sends corresponding live media stream data and address information corresponding to the live media streams to the served UE1 to UE6 based on the mapping relationship between the identifier, address information, and characteristic information of each UE (as shown in Table 1), to ensure that the UEs can receive and analyze these downlink live media stream data packets.

[0217] In this embodiment of the present application, the UPF network element monitors and identifies the characteristic information of each live media stream to determine the duplicated media streams between the AS and the UPF network element and between the UPF network element and the RAN, and the deduplication transmission between the AS and the UPF and between the UPF and the RAN is implemented, thereby reducing the burden of the live media streams on the backbone network and the transmission network. In addition, the UPF notifies the RAN side of the address information corresponding to the downlink live media stream through the control plane or the user plane, and the RAN notifies the address information to the corresponding UE to ensure that the UE can still receive and analyze the live media data normally after the deduplication transmission is performed.

[0218] EMBODIMENT 3 This embodiment is a live media stream switching process. Based on the delivery of the characteristic information of the live media stream in the session establishment process of embodiment 1, the RAN can directly determine the live media stream that carries the characteristic information in the currently transmitted live media stream according to the characteristic information in the switching request of the UE, duplicate the live media stream, and send the duplicated live media stream to the UE, thereby implementing fast media stream switching.

[0219] 5 shows a session establishment method according to an embodiment of the present application. Specifically, the method includes the following steps:

[0220] Step 501: A UE sends a switching request message to a RAN, where the switching request message includes characteristic information of a live media stream.

[0221] Specifically, the UE may carry the characteristic information of the live media stream requested to be switched in an RRC message or a PDCP layer extension of uplink data, and send the characteristic information of the live media stream to the RAN side.

[0222] In a possible embodiment, the characteristic information of the live media stream requested to be switched is assumed to be a media stream parameter value, e.g., a viewing angle. In a first possible case, before performing step 501, the UE may obtain a current media stream parameter value, e.g., a viewing angle value, carry characteristic information corresponding to the media stream parameter value in an RRC message or a PDCP layer extension of the uplink data, and send the characteristic information to the RAN side. For example, if the UE is a VR glass, when the head of a user wearing the VR glass rotates, the VR glass may obtain a current viewing angle value of the user and send an RRC message carrying the current viewing angle value to the RAN side. In a second possible case, if the UE has received an initial characteristic information set from an SMF network element in advance, before performing step 501, the UE may search the initial characteristic information set for characteristic information corresponding to the live media stream requested to be switched. In a third possible case, the UE receives a second active characteristic information set from a RAN network element in advance. In this case, before performing step 501, the UE may search the second active characteristic information set for characteristic information corresponding to the live media stream requested to be switched. If there is characteristic information corresponding to the live media stream, step 501 is executed; if there is no characteristic information corresponding to the live media stream, the UE requests the live media stream to be switched to from the application server through an application layer interaction process.

[0223] In another possible embodiment, the characteristic information of the live media stream requested to be switched is assumed to be an index value. For example, when the field of view is 0 degrees, the index value encapsulated in the live media stream data packet by the application server is 0X00. In a first possible case, if the UE has received an initial characteristic information set from the SMF network element beforehand, before performing step 501, the UE may first search the initial characteristic information set for characteristic information (e.g., 0X00) corresponding to the live media stream requested to be switched. In a second possible case, the UE receives a second active characteristic information set from the RAN network element. In this case, before performing step 501, the UE may search the second active characteristic information set for characteristic information corresponding to the live media stream requested to be switched. If characteristic information corresponding to the live media stream exists, step 501 is performed, or if characteristic information corresponding to the live media stream does not exist, the UE requests the live media stream to be switched to from the application server via an application layer interaction process.

[0224] In a possible embodiment, when the UE supports the technique of dynamic adaptive network adjustment of media stream parameters, the terminal sends the adjusted live media stream parameters to the RAN based on the network condition. For example, when the resolution of the streaming media data set by the user on the live streaming application client is adaptive, the terminal dynamically adjusts the bit rate of the streaming media data based on the network condition information such as the packet loss rate and the network throughput of the streaming media data, and then the UE sends the characteristic information corresponding to the adjusted bit rate of the streaming media data to the RAN.

[0225] Case 1 Step 502: After receiving a switching request from the UE, the RAN side determines whether the characteristic information exists in a second active characteristic information set, and if the characteristic information exists, replicates the live media stream carrying the characteristic information.

[0226] Step 503: The RAN sends the replicated live media stream to the UE. In addition, before this step, the RAN can further determine first address information (e.g., an IP address and a port number) corresponding to the characteristic information based on the mapping relationship between the characteristic information and the address information, and send the first address information to the UE.

[0227] Specifically, the RAN forwards the live media data flow carrying the characteristic information to the UE's QoS flow, specifically, to the DRB corresponding to the UE's QoS flow, and discards the media stream data sent to the QoS flow and carrying the original characteristic information on the original interface.

[0228] Step 504: The UE receives live media stream data and first address information from the RAN, and the UE establishes a binding relationship between the first address information and the initially used second address information, and analyzes and applies the received live media stream based on the binding relationship.

[0229] Specifically, the UE establishes a binding relationship between the received IP / port information and the original IP / port information, and after receiving a live media stream data packet, parses the data packet based on the binding relationship, and transmits the media stream data in the received IP / port to an upper layer application corresponding to the original IP / port.

[0230] Case 2 Step 505: After receiving a switching request from the UE, the RAN side determines that the characteristic information does not exist in the second active characteristic information set, and the RAN sends a request response message to the UE, where the request response message is to notify the UE that the switching has failed.

[0231] For example, the UE side does not receive the second active characteristic information set from the RAN, the RAN does not find the characteristic information in the second active characteristic information set, or the RAN determines that there is no live media stream currently including the characteristic information. In this case, the RAN sends a request response message to the UE.

[0232] Step 506: The UE requests, through an application layer interaction process, the live media stream to be switched from the application server.

[0233] In other words, the UE requests a live media stream from the application server via the existing application layer interaction process.

[0234] Case 3 Step 507: After the RAN side receives a switching request from the UE, if the RAN side determines that the characteristic information does not exist in the second active characteristic information set, the RAN side carries the characteristic information in the switching request of the UE in uplink user plane data, and sends the uplink user plane data to the UPF network element.

[0235] Specifically, the RAN may carry the characteristic information in the UE's switching request in the GTP layer of the uplink data, and then send the uplink data to the UPF network element.

[0236] Step 508: After the UPF network element receives uplink user plane data from the RAN side, the UPF encapsulates characteristic information at the IP / transport / application layer (all layers are possible, this is not limited) of the user plane data, and then sends the uplink user plane data to the application server side.

[0237] Step 509: After receiving the uplink user plane data carrying the characteristic information, the AS side adjusts the live media stream to be sent to the UE, and then sends a downlink live media stream to the UE, which carries the characteristic information and corresponds to the characteristic information.

[0238] Case 4 Step 510: After the RAN side receives a switching request from the UE, the RAN side determines that the characteristic information does not exist in the second active characteristic information set. In this case, the RAN side sends an N2 SM message to the SMF network element, including the characteristic information in the switching request of the UE.

[0239] Step 511: After receiving the N2 SM message from the RAN side, the SMF network element initiates a session management policy association modification procedure, and sends the characteristic information in the UE's switching request to the PCF.

[0240] Step 512: The PCF sends the characteristic information in the UE's switching request to the application server side by using a capability disclosure message (for example, by using the Npcf_EventExposure_Notify service).

[0241] Step 513: After receiving the control plane capability publication message, the application server side adjusts the QoS flow sent to the UE, and then sends a downlink live media stream carrying the characteristic information to the UE.

[0242] The following provides a specific example to illustrate the aforementioned media stream switching process.

[0243] Referring to FIG. 2A, it is assumed that UE1-UE6 are VR glasses. There are six viewers in the live streaming room of the soccer game. The video of the soccer game played in the live streaming room is a 360-degree panoramic VR video. It is assumed that when the head of the viewer using UE1 rotates, the field of view of UE1 changes, and the field of view changes from the first field of view to the second field of view. If UE1 stores a second active characteristic information set, UE1 first searches the initial characteristic information set for an index value 002 corresponding to the live media stream of the second field of view, and then searches the second active characteristic information set for an index value 002. If the index value 002 exists, UE1 sends a switching request to the RAN, where the switching request includes the index value 002, and the switching request is for requesting the live media stream of the second field of view. After receiving the switching request, the RAN first searches the second active characteristic information set to determine whether the index value 002 exists. It is assumed that the second active characteristic information set includes 002. In this case, the RAN duplicates the live media stream carrying the index value 002, sends the duplicated live media stream to UE1, and discards the live media stream data packets sent to UE1 on the original interface. It can be found that according to this method, UE1 can timely obtain the downlink live media stream corresponding to the second field of view from the RAN, effectively reducing the media stream switching delay.

[0244] In this embodiment of the present application, the UPF can monitor the live media streams of the terminals within the service range, and the RAN also establishes a second set of active characteristic information for accessing the live media streams within the RAN coverage, and a mapping relationship between the accessed live media streams and the address information corresponding to the media streams. Therefore, when the UE side requests to switch to the live media stream, the RAN can timely switch to and deliver the live media stream based on the local mapping relationship and characteristic information in the switching request message of the UE, so as to ensure the user's live media viewing experience.

[0245] EMBODIMENT 4 This embodiment of the present application is a live media stream switching process. Based on the delivery of the characteristic information of the live media stream in the session establishment process of embodiment 1, the UPF network element can directly determine the live media stream that carries the characteristic information in the currently transmitted live media stream according to the characteristic information in the switching request of the UE, duplicate the live media stream, and send the duplicated live media stream to the UE, thereby implementing fast media stream switching.

[0246] 6A shows a live media stream switching method according to an embodiment of the present application. Specifically, the method includes the following steps:

[0247] Step 601: A UE sends a switching request message to a RAN, where the switching request message includes characteristic information of a live media stream.

[0248] Specifically, the UE may carry the characteristic information of the live media stream requested to be switched in an RRC message or a PDCP layer of uplink data, and send the characteristic information of the live media stream to the RAN side.

[0249] In a possible embodiment, the characteristic information of the requested live media stream to be switched is assumed to be a media stream parameter value, e.g., a viewing angle. In a first possible case, before performing step 601, the UE may obtain a current media stream parameter value, e.g., a viewing angle value, carry the media stream parameter value in an RRC message or a PDCP layer extension of the uplink data, and transmit the media stream parameter value to the RAN side. For example, if the UE is a VR glass, when the head of a user wearing the VR glass rotates, the VR glass may obtain a current viewing angle value of the user and transmit an RRC message carrying the current viewing angle value to the RAN side. In a second possible case, if the UE has received an initial characteristic information set from an SMF network element in advance, before performing step 601, the UE may search the initial characteristic information set for characteristic information corresponding to the requested live media stream to be switched. In a third possible case, the UE receives a second active characteristic information set from a RAN network element or an application server in advance. In this case, before performing step 601, the UE may search the second active characteristic information set for characteristic information corresponding to the requested live media stream to be switched. If there is characteristic information corresponding to the live media stream, step 601 is executed; if there is no characteristic information corresponding to the live media stream, the UE requests the live media stream to be switched to from the application server through an application layer interaction process.

[0250] Specifically, UE1 can obtain a second set of active characteristic information from the application server through the following steps:

[0251] Step a: After detecting that a live media stream corresponding to the UE exists, the UPF network element sends indication information to notify the SMF that a live media stream corresponding to the UE exists via an N4 session reporting procedure.

[0252] Step b: The SMF sends notification information to the PCF side via a session management policy management modification procedure, where the notification information may include the identity information of the UPF and the identity information of the UE.

[0253] Step c: The PCF notifies the AF / AS side of the indication information by using a capability exposure information Npcf_EventExposure_Notify message, or notifies the NEF of the notification information by using a Npcf_EventExposure_Notify message, and then the NEF notifies the AF / AS side of the notification information by using a Nnef_EventExposure_Notify message.

[0254] Step d: After receiving the notification information from the core network, the AS can know the first active characteristic information set corresponding to the UPF.

[0255] Alternatively, the AS may receive the first active characteristic information set from the UPF.

[0256] Step e: The AS / AF sends the first active characteristic information set to the UE side by using application layer information.

[0257] In another possible embodiment, the characteristic information of the live media stream requested to be switched is assumed to be an index value. For example, when the field of view is 0 degrees, the index value encapsulated in the live media stream data packet by the application server is 0X00. In a first possible case, if the UE has received an initial characteristic information set from the SMF network element in advance, before performing step 601, the UE may first search the initial characteristic information set for characteristic information (e.g., 0X00) corresponding to the live media stream requested to be switched. In a second possible case, the UE has received a second active characteristic information set from the RAN network element or the application server in advance. In this case, before performing step 601, the UE may search the second active characteristic information set for characteristic information corresponding to the live media stream requested to be switched. If characteristic information corresponding to the live media stream exists, step 601 is performed, or if characteristic information corresponding to the live media stream does not exist, the UE requests the live media stream to be switched to from the application server via an application layer interaction process.

[0258] In a possible embodiment, when the UE supports the technique of dynamic adaptive network adjustment of media stream parameters, the terminal sends characteristic information corresponding to the adjusted live media stream parameters to the RAN based on the network condition. For example, when the resolution of the streaming media data set by a user on the live streaming application client is adaptive, the terminal dynamically adjusts the bit rate of the streaming media data based on the network condition information such as the packet loss rate and network throughput of the streaming media data, and then the UE sends characteristic information corresponding to the adjusted bit rate of the streaming media data to the RAN.

[0259] Case 1 Step 602: After receiving a switching request from the UE, the RAN side forwards the characteristic information in the switching request to the UPF network element.

[0260] Specifically, the RAN receives an uplink data packet with an RRC message or a PDCP layer extension bit from the UE, where the RRC message carries characteristic information, or the PDCP layer of the uplink data packet carries the characteristic information, and the RAN encapsulates the characteristic information in the GTP-U layer of the uplink data packet, and then sends the encapsulated uplink data packet to a UPF network element.

[0261] Step 603: After receiving an uplink data packet, the UPF determines whether the characteristic information in the uplink data packet is in a first active characteristic information set, and if the characteristic information is in the first active characteristic information set, replicates the live media data flow carrying the characteristic information.

[0262] Step 604: The UPF forwards the duplicated live media data flow to the corresponding QoS flow of the corresponding UE, and discards the media stream data packets that are in the QoS flow and are sent to the UE via the original N6 interface and carry the original characteristic information.

[0263] In a possible embodiment, the UPF modifies address information in the live media stream, specifically, replaces the original second address information in the data packets of the first live media stream with the first address information, and then sends the modified data packets of the live media stream to the UE.

[0264] In another possible embodiment, the UPF can alternatively change the original destination address information in the live media stream data packet to the UE's address information to ensure that the UE can receive the data packet correctly.

[0265] Case 2 Step 605: After receiving a switching request from the UE, the UPF side determines that the characteristic information does not exist in the first active characteristic information set, and the UPF sends a request response message to the UE via the RAN, where the request response message is to notify the UE that the switching has failed.

[0266] For example, the UPF does not find the characteristic information in the first active characteristic information set, or the UPF determines that there is no live media stream currently including the characteristic information, in which case the UPF sends a request response message to the UE.

[0267] Step 606: The UE requests the live media stream to be switched from the application server through an application layer interaction process.

[0268] In other words, the UE requests a live media stream from the application server via the existing application layer interaction process.

[0269] Case 3 Step 607: After receiving the characteristic information, the UPF determines that the characteristic information does not exist in the first active characteristic information set, and then the UPF encapsulates the characteristic information in the IP / transport / application layer (which is not particularly limited) of the uplink user plane data, and sends the encapsulated uplink data to the AF / AS side.

[0270] Step 608: After receiving the uplink user plane data carrying the characteristic information, the AF / AS side adjusts the live media data flow to be sent to the UE, and then sends a downlink live media stream that carries the characteristic information and corresponds to the characteristic information to the UE.

[0271] The following provides a specific example to illustrate the aforementioned media stream switching process.

[0272] It is assumed that UE1 to UE6 are VR glasses. There are six viewers in the live streaming room of the soccer game. The video of the soccer game played in the live streaming room is a 360-degree panoramic VR video. As shown in FIG. 6B, UE1 and UE2 access RAN1, UE2 to UE6 access RAN2, and UE1 to UE6 all access the same UPF network element. It is assumed that when the head of the viewer using UE1 rotates, the field of view of UE1 changes, and the field of view changes from the first field of view to the second field of view. If UE1 stores a second active characteristic information set, UE1 first searches the initial characteristic information set for an index value 002 corresponding to the live media stream of the second field of view. UE1 sends a switching request to RAN1, where the switching request includes the index value 002, and the switching request is for requesting the live media stream of the second field of view. After receiving the switching request, RAN1 notifies the request to the UPF network element by using a GTP indication, and the UPF network element adjusts the live media stream. Specifically, the UPF network element may first search for an index value 002 in the first active characteristic information set. It is assumed that the first active characteristic information set includes 002. In this case, the UPF duplicates the live media stream carrying the index value 002, modifies the address information in the live media stream data packet, and sends the modified live media stream to the RAN. The RAN forwards the modified live media stream to UE1, and discards the live media stream data packet sent to UE1 on the original interface. It can be found that according to this method, UE1 can timely receive and analyze the downlink live media stream corresponding to the second view from the RAN side, so as to effectively reduce the media stream switching delay.

[0273] In this embodiment of the present application, the UPF side establishes a mapping relationship between the user, the accessed live media stream, and the characteristic information. When the UE side initiates a live media stream switching request, the UPF switches and delivers the media stream, and modifies the IP / port information according to the characteristic information and the mapping relationship in the request. In this way, live media stream switching is implemented, and the media stream switching delay is effectively reduced.

[0274] EMBODIMENT 5 This embodiment of the present application is a live media stream switching process. Based on the delivery of the characteristic information of the live media stream in the session establishment process of embodiment 1, the RAN can directly determine the live media stream carrying the characteristic information in the currently transmitted live media stream based on the characteristic information in the switching request of the UE, duplicate the live media stream, and send the duplicated live media stream to the UE, so as to implement a fast live media stream switching. When the RAN determines that the live media stream carrying the characteristic information does not exist in the currently transmitted live media stream based on the characteristic information in the switching request of the UE, the RAN can send the characteristic information to the UPF network element. Then, the UPF network element can directly determine the live media stream carrying the characteristic information in the currently transmitted live media stream based on the characteristic information in the switching request of the UE, duplicate the live media stream, and send the duplicated live media stream to the UE, so as to implement a fast media stream switching.

[0275] 7A and 7B show a live media stream switching method according to an embodiment of the present application. Specifically, the method includes the following steps:

[0276] Step 701: A UE sends a switching request message to a RAN, where the switching request message includes characteristic information of a live media stream.

[0277] Specifically, the UE may carry the characteristic information of the live media stream requested to be switched in an RRC message or a PDCP layer extension of uplink data, and send the characteristic information of the live media stream to the RAN side. For the specific content of the characteristic information of the live media stream and the process of how the UE determines the characteristic information of the live media stream before sending, please refer to step 501. The details will not be described again here.

[0278] Case 1 Step 702: After receiving a switching request from the UE, the RAN side determines whether the characteristic information exists in a second active characteristic information set, and if the characteristic information exists, replicates the live media stream carrying the characteristic information.

[0279] Step 703: The RAN sends the replicated live media stream to the UE. In addition, before this step, the RAN can further determine first address information (e.g., an IP address and a port number) corresponding to the characteristic information based on the mapping relationship between the characteristic information and the address information, and send the first address information to the UE.

[0280] Specifically, the RAN forwards the live media data flow carrying the characteristic information to the UE's QoS flow, specifically, to the DRB corresponding to the UE's QoS flow, and discards the data sent to the QoS flow on the original interface.

[0281] Step 704: The UE receives live media stream data and first address information from the RAN, and the UE establishes a binding relationship between the first address information and the initially used second address information, and analyzes and applies the received live media stream based on the binding relationship.

[0282] Specifically, the UE establishes a binding relationship between the received IP / port information and the original IP / port information, and after receiving a live media stream data packet, parses the data packet based on the binding relationship, and transmits the media stream data in the received IP / port to an upper layer application corresponding to the original IP / port.

[0283] Case 2 Step 705: After the RAN side receives a switching request from the UE, the RAN side determines that the characteristic information does not exist in the second active characteristic information set, and forwards the characteristic information in the switching request to the UPF network element.

[0284] Specifically, the RAN receives an RRC message or an uplink data packet from the UE, where the RRC message carries the characteristic information, or the PDCP layer extension of the uplink data packet carries the characteristic information, and the RAN encapsulates the characteristic information in the GTP layer of the uplink data packet, and then sends the encapsulated uplink data packet to the UPF network element.

[0285] Step 706: After receiving the corresponding uplink data packet, the UPF determines based on the GTP layer characteristic information whether the characteristic information is in the first active characteristic information set, and if the characteristic information is in the first active characteristic information set, replicates the live media data flow carrying the characteristic information.

[0286] Step 707: The UPF network element forwards the duplicated live media data flow to the corresponding QoS flow of the UE, and discards the media stream data packets that are in the QoS flow and are sent to the UE via the original N6 interface and carry the original characteristic information.

[0287] In a possible embodiment, the UPF modifies address information in the live media stream, specifically, replaces the original second address information in the data packets of the first live media stream with the first address information, and then sends the modified data packets of the live media stream to the UE.

[0288] In another possible embodiment, the UPF can alternatively change the original destination address information in the live media stream data packet to the UE's address information to ensure that the UE can receive the data packet correctly.

[0289] Case 3 Step 708: After the RAN side receives a switching request from the UE, the RAN side determines that the characteristic information does not exist in the second active characteristic information set, and forwards the characteristic information in the switching request to the UPF network element.

[0290] Specifically, the RAN receives an RRC message or an uplink data packet from the UE, where the RRC message carries characteristic information, or the PDCP layer of the uplink data packet carries characteristic information. The RAN encapsulates the characteristic information in the GTP layer of the uplink data packet, and then sends the encapsulated uplink data packet to the UPF network element.

[0291] Step 709: After receiving a switching request from the UE, the UPF side determines that the characteristic information does not exist in the first active characteristic information set, and the UPF sends a request response message to the UE via the RAN, where the request response message is to notify the UE that the switching has failed.

[0292] For example, the UPF does not find the characteristic information in the first active characteristic information set, or the UPF determines that there is no live media stream currently including the characteristic information, in which case the UPF sends a request response message to the UE.

[0293] Step 710: The UE requests a live media stream to be switched from the application server through an application layer interaction process.

[0294] In other words, the UE requests a live media stream from the application server via the existing application layer interaction process.

[0295] Case 4 Step 711: After the RAN side receives a switching request from the UE, the RAN side determines that the characteristic information does not exist in the second active characteristic information set, and forwards the characteristic information in the switching request to the UPF network element.

[0296] Specifically, the RAN receives an RRC message or an uplink data packet from the UE, where the RRC message carries characteristic information, or the PDCP layer of the uplink data packet carries characteristic information. The RAN encapsulates the characteristic information in the GTP layer of the uplink data packet, and then sends the encapsulated uplink data packet to the UPF network element.

[0297] Step 712: After receiving the characteristic information, the UPF determines that the characteristic information does not exist in the first active characteristic information set, and then the UPF encapsulates the characteristic information in the IP / transport / application layer (which is not particularly limited) of the uplink user plane data, and sends the encapsulated uplink data to the AF / AS side.

[0298] Step 713: After receiving the uplink user plane data carrying the characteristic information, the AF / AS side adjusts the live media stream to be sent to the UE, and then sends a downlink live media stream that carries the characteristic information and corresponds to the characteristic information to the UE.

[0299] The following provides a specific example to illustrate the aforementioned media stream switching process.

[0300] It is assumed that UE1 to UE6 are VR glasses. There are six viewers in the live streaming room of the soccer game. The video of the soccer game played in the live streaming room is a 360-degree panoramic VR video. As shown in FIG. 6B, UE1 and UE2 access RAN1, UE3 to UE6 access RAN2, and UE1 to UE6 all access the same UPF network element. It is assumed that when the head of the viewer using UE1 rotates, the field of view of UE1 changes, and the field of view changes from the first field of view to the second field of view. If UE1 stores a second active characteristic information set, UE1 first searches the initial characteristic information set for an index value 002 corresponding to the live media stream of the second field of view. UE1 sends a switching request to RAN1, where the switching request includes an index value 002, and the switching request is for requesting the live media stream of the second field of view. After receiving the switching request, the RAN first searches the second active characteristic information set to determine whether the index value 002 exists. It is assumed that the second active characteristic information set includes 002. In this case, the RAN duplicates the live media stream carrying the index value 002, sends the duplicated live media stream to the UE1, and discards the live media stream data packet sent to the UE1 on the original interface. If the RAN1 finds that the index value 002 does not exist in the second active characteristic information set, the RAN1 notifies the UPF network element of the request by using a GTP indication, and the UPF network element adjusts the live media stream. Specifically, the UPF network element may first search for the index value 002 in the first active characteristic information set. It is assumed that the first active characteristic information set includes 002. In this case, the UPF duplicates the live media stream carrying the index value 002, modifies the address information in the live media stream data packet, and sends the modified live media stream to the RAN.The RAN forwards the modified live media stream to UE1, and discards the live media stream data packets sent to UE1 on the original interface. It can be seen that according to this method, UE1 can timely receive and analyze the downlink live media stream corresponding to the second view from the RAN side, so as to effectively reduce the media stream switching delay.

[0301] In this embodiment of the present application, the RAN and UPF side establish a mapping relationship between the user, the accessed live media stream, and the characteristic information. When the UE side initiates a live media stream switching request, the RAN and / or UPF switches and delivers the media stream, and modifies the IP / port information according to the characteristic information and the mapping relationship in the request. In this way, live media stream switching is implemented, and the media stream switching delay is effectively reduced.

[0302] For embodiment 1 to embodiment 5, the following should be noted: (1) embodiment 2 and embodiment 3 may be implemented separately in different scenarios, or may be implemented in combination in the same scenario; embodiment 2 and embodiment 4 may be implemented separately in different scenarios, or may be implemented in combination in the same scenario; embodiment 2 and embodiment 5 may be implemented separately in different scenarios, or may be implemented in combination in the same scenario. This is not particularly limited.

[0303] (2) The step numbers in the flowcharts described in the embodiments of the present application are merely examples of execution procedures and do not constitute limitations on the execution order of the steps. In the embodiments of the present application, there is no strict execution sequence between steps that do not have a time sequence dependency on each other.

[0304] It should be further noted that, with respect to embodiment 1 to embodiment 5, the above actions that can be performed by the UPF can be alternatively performed by an edge application server, and the edge application server can be understood as an application server that is deployed closer to the user side to reduce response time and burden on the transmission network. Therefore, the application server in the above embodiments can be a central application server. It can also be understood that in embodiment 1 to embodiment 5, to implement the media stream switching method, the UPF can be replaced by an edge application server, and the application server can be replaced by a central application server.

[0305] The above mainly describes the solutions provided in the embodiments of the present application from the perspective of the interaction between the network device and the terminal device. It can be understood that in order to implement the aforementioned functions, the network device or the terminal device may include corresponding hardware structures and / or software modules for performing each function. Those skilled in the art should easily recognize that the embodiments of the present application may be implemented by hardware or a combination of hardware and computer software, in combination with the example units and algorithm steps described in the embodiments disclosed herein. Whether the functions are performed by hardware or by hardware driven by computer software depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods to implement the functions described for each specific application, but the implementation form should not be considered to go beyond the scope of the present application.

[0306] In the embodiment of the present application, the division into functional units may be performed on the terminal device and the network device based on the above-mentioned method example. For example, the division into each functional unit may be based on each corresponding function, or two or more functions may be integrated into one unit. The integrated unit may be implemented in the form of hardware or in the form of a software functional unit.

[0307] When an integrated unit is used, FIG. 8 is a possible exemplary block diagram of an apparatus according to an embodiment of the present application. As shown in FIG. 8, the apparatus 800 may include a processing unit 802 and a communication unit 803. The processing unit 802 is configured to control and manage the operation of the apparatus 800. The communication unit 803 is configured to support communication between the apparatus 800 and another device. Optionally, the communication unit 803 may include a receiving unit and / or a transmitting unit, also referred to as a transceiver unit, configured to perform receiving and transmitting operations, respectively. The apparatus 800 may further include a storage unit 801 configured to store program codes and / or data of the apparatus 800.

[0308] The apparatus 800 may be a terminal device in any one of the above-mentioned embodiments, or may be a chip disposed in the terminal device. The processing unit 802 may support the apparatus 800 in performing the operations of the terminal device in the above-mentioned method examples. Alternatively, the processing unit 802 may mainly perform the internal operations of the terminal device in the method examples, and the communication unit 803 may support the communication between the apparatus 800 and the network device.

[0309] The apparatus 800 may be a network device in any one of the above-mentioned embodiments, or may be a chip disposed in the network device. The network device may refer to the above-mentioned access network device, user plane function network element, session management function network element, application server, etc. The processing unit 802 may support the apparatus 800 in performing the operation of the network device in the above-mentioned method example. Alternatively, the processing unit 802 may mainly perform the internal operation of the network device in the method example, and the communication unit 803 may support the communication between the apparatus 800 and the network device. For example, the processing unit 802 may be configured to perform the internal operation of the network device in the method example, and the communication unit 803 may be configured to support the communication between the apparatus 800 and the terminal device.

[0310] It should be understood that the division of units in the device is merely a logical division of functions. In actual implementation, all or some of the units may be integrated into one physical entity or may be physically separated. In addition, all units in the device may be implemented in a form in which the processing element calls software, or in a form of hardware, or some units may be implemented in a form in which the processing element calls software, and some units are implemented in a form of hardware. For example, the units may be separately arranged processing elements, or may be integrated into a chip of the device for implementation. In addition, the units may be stored in a memory in a program form and are called by the processing element of the device to execute the functions of the units. In addition, such units may be integrated together or implemented individually. The processing element in this specification may be referred to as a processor, and may be an integrated circuit having signal processing capabilities. In the process of the implementation, the steps of the above-mentioned method or the above-mentioned units may be implemented by using a hardware integrated logic circuit in the processing element, or may be implemented in a form in which the processing element calls software.

[0311] In one example, any one of the aforementioned units in the device may be one or more integrated circuits configured to implement the aforementioned method, such as one or more application specific integrated circuits (ASICs), one or more microprocessors (DSPs), one or more field programmable gate arrays (FPGAs), or a combination of at least two of these integrated circuit forms. In another example, when the unit in the device may be implemented in a form in which the processing element schedules a program, the processing element may be a processor, such as a general-purpose central processing unit (CPU), or another processor that can call a program. In yet another example, the unit may be integrated and implemented in a form of a system-on-a-chip (SOC).

[0312] Said unit configured to receive is an interface circuit of the device and is configured to receive a signal from another device. For example, when the device is implemented in the manner of a chip, the receiving unit is an interface circuit of the chip and configured to receive a signal from another chip or device. Said unit configured to transmit is an interface circuit of the device and is configured to transmit a signal to another device. For example, when the device is implemented in the manner of a chip, the transmitting unit is an interface circuit of the chip and configured to transmit a signal to another chip or device.

[0313] FIG. 9 is a schematic diagram of the structure of a terminal device according to an embodiment of the present application. The terminal device may be the terminal device in the aforementioned embodiment, and may be configured to implement the operation of the terminal device in the aforementioned embodiment. As shown in FIG. 9, the terminal device has an antenna 910, a radio frequency unit 920, and a signal processing unit 930. The antenna 910 is connected to the radio frequency unit 920. In the downlink direction, the radio frequency unit 920 receives information transmitted by the network device via the antenna 910, and transmits the information transmitted by the network device to the signal processing unit 930 for processing. In the uplink direction, the signal processing unit 930 processes the information of the terminal device and transmits the information to the radio frequency unit 920. The radio frequency unit 920 processes the information of the terminal device, and then transmits the processed information to the network device via the antenna 910.

[0314] The signal processing unit 930 may include a modem subsystem configured to implement data processing at each communication protocol layer, and may further include a central processing subsystem configured to process the operating system and application layers of the terminal device.

[0315] The modem subsystem may include one or more processing elements 931, for example, one main control CPU and another integrated circuit. In addition, the modem subsystem may further include a storage element 932 and an interface circuit 933. The storage element 932 is configured to store data and programs. However, the programs used to execute the methods performed by the terminal device in the above-mentioned methods may not be stored in the storage element 932, but may be stored in a memory external to the modem subsystem and loaded by the modem subsystem for use. The interface circuit 933 is configured to communicate with another subsystem.

[0316] The modem subsystem may be implemented by using a chip. The chip includes at least one processing element and an interface circuit. The processing element is configured to execute any method steps performed by the terminal device. The interface circuit is configured to communicate with other devices. In one embodiment, the units in the terminal device for implementing the steps of the aforementioned method may be implemented by a program scheduled by the processing element. For example, an apparatus used in a terminal device includes a processing element and a storage element. The processing element calls a program stored in the storage element to execute the method performed by the terminal device in the aforementioned method embodiments. The storage element may be a storage element located on the same chip as the processing element, i.e. an on-chip storage element.

[0317] In another implementation, the programs used to execute the methods performed by the terminal device in the above-mentioned methods may be in a storage element located on a different chip than the processing element, i.e. an off-chip storage element, in which case the processing element calls or loads the programs from the off-chip storage element to the on-chip storage element in order to call and execute the methods performed by the terminal device in the above-mentioned method embodiments.

[0318] In yet another implementation, the units in the terminal device for implementing the steps in the aforementioned method may be configured as one or more processing elements. The processing elements are located in the modem subsystem. The processing elements herein may be integrated circuits, for example, one or more ASICs, one or more DSPs, one or more FPGAs, or a combination of types of integrated circuits. These integrated circuits may be integrated together to form a chip.

[0319] The units in the terminal device for implementing the steps in the aforementioned method may be integrated together and implemented in the form of a SOC. The SOC chip is configured to implement the aforementioned method. At least one processing element and a storage element may be integrated into the chip, and the processing element calls a program stored in the storage element to implement the aforementioned method executed by the terminal device. Alternatively, at least one integrated circuit may be incorporated into the chip to implement the aforementioned method executed by the terminal device. Alternatively, referring to the aforementioned implementation form, the functions of some units may be implemented by a program called by the processing element, and the functions of some units are implemented by the integrated circuit.

[0320] It can be seen that the aforementioned apparatus used in the terminal device can include at least one processing element and an interface circuit. The at least one processing element is configured to be executed by the terminal device and execute any one of the methods provided in the aforementioned method embodiments. The processing element may execute some or all of the steps executed by the terminal device in a first manner, specifically by calling a program stored in a storage element, or may execute some or all of the steps executed by the terminal device in a second manner, specifically by using a hardware integrated logic circuit in the processing element in combination with an instruction, or may ensure execution of some or all of the steps executed by the terminal device by combining the first manner and the second manner.

[0321] The processing element here is the same as described above and may be implemented by using a processor. The functionality of the processing element may be the same as the functionality of the processing unit described in FIG. 8. For example, the processing element may be a general-purpose processor, e.g., a CPU, or may be one or more integrated circuits configured to implement the aforementioned method, e.g., one or more ASICs, one or more microprocessors DSPs, one or more FPGAs, or a combination of at least two of these types of integrated circuits. The storage element may be implemented by using a memory. The functionality of the storage element may be similar to the functionality of the storage unit described in FIG. 8. The storage element may be implemented by using a memory. The functionality of the storage element may be similar to the functionality of the storage unit described in FIG. 8. The storage element may be one memory or may be a general term for multiple memories.

[0322] The terminal device shown in Figure 9 can implement the processes related to the terminal device in the method embodiments shown in Figure 3, Figure 4A, Figure 5, Figure 6A, or Figure 7A and Figure 7B. The operations and / or functions of the modules in the terminal device shown in Figure 9 are intended to implement the corresponding procedures in the aforementioned method embodiments. For details, please refer to the descriptions in the aforementioned method embodiments. In order to avoid repetition, detailed descriptions are appropriately omitted here.

[0323] FIG. 10 is a schematic diagram of a structure of a network device according to an embodiment of the present application. The network device is configured to implement the operation of the network device in the aforementioned embodiment. As shown in FIG. 10, the network device includes an antenna 1001, a radio frequency device 1002, and a baseband device 1003. The antenna 1001 is connected to the radio frequency device 1002. In the uplink direction, the radio frequency device 1002 receives information transmitted by a terminal device via the antenna 1001, and transmits the information transmitted by the terminal device to the baseband device 1003 for processing. In the downlink direction, the baseband device 1003 processes the information of the terminal device and transmits the information to the radio frequency device 1002. The radio frequency device 1002 processes the information of the terminal device, and then transmits the processed information to the terminal device via the antenna 1001.

[0324] The baseband device 1003 may include one or more processing elements 10031, for example, a main control CPU and another integrated circuit. In addition, the baseband device 1003 may further include a storage element 10032 and an interface 10033. The storage element 10032 is configured to store programs and data. The interface 10033 is configured to exchange information with the radio frequency device 1002, and the interface is, for example, a common public radio interface (CPRI). The aforementioned devices used in the network device may be located in the baseband device 1003. For example, the aforementioned devices used in the network device may be chips in the baseband device 1003. The chip includes at least one processing element and an interface circuit. The processing element is configured to execute any method steps performed by the network device. The interface circuit is configured to communicate with other devices. In one implementation, the units in the network device for implementing the aforementioned method steps may be implemented by a program scheduled by the processing element. For example, the devices used in the network device include a processing element and a storage element. The processing element invokes a program stored in the storage element to execute the method performed by the network device in the above method embodiments. The storage element may be a storage element located on the same chip as the processing element, i.e., an on-chip storage element, or a storage element located on a different chip than the processing element, i.e., an off-chip storage element.

[0325] In another implementation, the units in the network device for implementing the steps in the above method may be configured as one or more processing elements. The processing elements are located in the baseband unit. The processing elements herein may be integrated circuits, such as one or more ASICs, one or more DSPs, one or more FPGAs, or a combination of types of integrated circuits. These integrated circuits may be integrated together to form a chip.

[0326] The units in the network device for implementing the steps in the aforementioned method may be integrated together and implemented in the form of a system-on-a-chip (SOC). For example, a baseband device includes a SOC chip and is configured to implement the aforementioned method. At least one processing element and a storage element may be integrated into the chip, and the processing element calls a program stored in the storage element to implement the aforementioned method executed by the network device. Alternatively, at least one integrated circuit may be incorporated into the chip to implement the aforementioned method executed by the network device. Alternatively, referring to the aforementioned implementation form, the functions of some units may be implemented by a program called by the processing element, and the functions of some units are implemented by the integrated circuit.

[0327] It can be seen that the aforementioned apparatus used in the network device may include at least one processing element and an interface circuit. The at least one processing element is configured to be executed by the network device and execute any one of the methods provided in the aforementioned method embodiments. The processing element may execute some or all of the steps executed by the network device in a first manner, specifically by calling a program stored in a storage element, or may execute some or all of the steps executed by the network device in a second manner, specifically by using a hardware integrated logic circuit in the processing element in combination with an instruction, or may combine the first manner and the second manner to ensure that some or all of the steps executed by the network device are executed.

[0328] The processing element here is the same as described above and may be implemented by using a processor. The functionality of the processing element may be the same as the functionality of the processing unit described in FIG. 10. For example, the processing element may be a general-purpose processor, e.g., a CPU, or may be one or more integrated circuits configured to implement the aforementioned method, e.g., one or more ASICs, one or more microprocessors DSPs, one or more FPGAs, or a combination of at least two of these types of integrated circuits. The storage element may be implemented by using a memory. The functionality of the storage element may be similar to the functionality of the storage unit described in FIG. 8. The storage element may be implemented by using a memory. The functionality of the storage element may be similar to the functionality of the storage unit described in FIG. 8. The storage element may be one memory or may be a general term for multiple memories.

[0329] The network device shown in Fig. 10 can implement the processes related to the network device in the aforementioned method embodiment. The operations and / or functions of the modules in the network device shown in Fig. 10 are intended to implement the corresponding procedures in the aforementioned method embodiment. For details, please refer to the descriptions in the aforementioned method embodiment. In order to avoid repetition, detailed descriptions are appropriately omitted here.

[0330] Those skilled in the art should understand that the embodiments of the present application may be provided as a method, a system, or a computer program product. Thus, the present application may use the form of a hardware-only embodiment, a software-only embodiment, or an embodiment having a combination of software and hardware. In addition, the present application may use the form of a computer program product embodied on one or more computer usable storage media (including, but not limited to, disk memory, CD-ROM, optical memory, etc.) containing computer usable program code.

[0331] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present application. It should be understood that computer program instructions can be used to implement each process and / or each block in the flowcharts and / or block diagrams, and combinations of processes and / or blocks in the flowcharts and / or block diagrams. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or another programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or another programmable data processing device generate an apparatus for implementing a particular function in one or more processes in the flowcharts and / or one or more blocks in the block diagrams.

[0332] These computer program instructions may alternatively be stored in a computer readable memory capable of instructing a computer or another programmable data processing device to operate in a particular manner to generate an artifact, the instructions stored in the computer readable memory including an instruction apparatus that implements a particular function in one or more processes in the flowcharts and / or one or more blocks in the block diagrams.

[0333] These computer program instructions may alternatively be loaded onto a computer or another programmable data processing device such that a sequence of operations and steps are performed on the computer or another programmable device, thereby generating a computer-implemented process. Thus, the instructions that run on the computer or another programmable device provide steps for implementing a particular function in one or more processes in the flowcharts and / or one or more blocks in the block diagrams.

[0334] It is obvious that those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. This application is intended to cover these modifications and variations of this application, provided that the following claims of this application fall within the scope of protection defined by the following claims of this application and their equivalent technologies. [Explanation of symbols]

[0335] 800 equipment 801 Storage Unit 802 Processing Unit 803 Communication Unit 910 Antenna 920 High Frequency Section 930 Signal Processing Unit 931 Processing Elements 932 Memory Element 933 Interface Circuit 1001 Antenna 1002 High Frequency Device 1003 Baseband Equipment 10031 Processing element 10032 Storage element 10033 Interface

Claims

1. 1. A method for switching media streams, comprising: receiving, by an access network device, characteristic information of a first live media stream from a terminal device, the characteristic information including a value of at least one type of parameter of a bit rate, a resolution, a frame rate, or a field of view of the first live media stream; determining, by the access network device, based on the characteristic information of the first live media stream, whether a second active characteristic information set includes the characteristic information of the first live media stream, the second active characteristic information set including characteristic information of live media streams of at least one terminal device served by the access network device, the characteristic information including values ​​of at least one type of parameters of bit rate, resolution, frame rate, or field of view of the live media streams of the at least one terminal device served by the access network device; when the access network device determines that the second active characteristic information set includes the characteristic information of the first live media stream, determining, by the access network device, among the live media streams monitored, a first live media stream that conveys the characteristic information of the first live media stream; switching, by the access network device, a live media stream transmitted to the terminal device from a second live media stream to the first live media stream; when the access network device determines that the second active characteristic information set does not include the characteristic information of the first live media stream, sending, by the access network device, a response message to the terminal device, the response message being for notifying the terminal device that a live media stream switching has failed; A media stream switching method comprising:

2. determining, by the access network device, first address information corresponding to the first live media stream, the first address information including at least one of an IP address and a port number of the first live media stream; sending, by the access network device, the first address information to the terminal device, the first address information being used to bind to second address information corresponding to the second live media stream, the second address information including at least one of an IP address and a port number of the second live media stream; The method of claim 1, further comprising:

3. determining, by the access network device, first address information corresponding to the first live media stream, the first address information including at least one of an IP address and a port number of the first live media stream, and second address information corresponding to the second live media stream, the second address information including at least one of an IP address and a port number of the second live media stream; replacing, by the access network device, the first address information in data packets carrying the first live media stream with the second address information; 2. The method of claim 1, comprising:

4. The step of determining, by the access network device, first address information corresponding to the first live media stream, further comprises: receiving, by the access network device, a message from a session management function network element or a user plane function network element, the message including the first address information corresponding to the first live media stream; determining, by the access network device, the first address information corresponding to the first live media stream based on the message; 4. The method of claim 2 or 3, comprising:

5. when the access network device determines that the second active characteristic information set does not include the characteristic information of the first live media stream, sending, by the access network device, the characteristic information of the first live media stream to an application server via a user plane function network element, the characteristic information of the first live media stream being for requesting the first live media stream; The method of claim 1, further comprising:

6. sending, by the access network device, a request message to establish a live session of the terminal device to a session management function network element; receiving, by the access network device, a live session establishment completion message and second indication information from the session management function network element; monitoring, by the access network device, the live media streams of the at least one terminal device served by the access network device based on the second indication information, and generating the second active characteristic information set; 6. The method of claim 1, further comprising:

7. The method of claim 6, further comprising the step of transmitting, by the access network device, the second set of active characteristic information to the terminal device.

Citation Information

Patent Citations

  • Content distribution methods, eNB and communication systems

    JP2015523017A

  • Data distribution method and distribution server

    JP2020537454A

  • System and method for video caching in wireless networks

    US20140280679A1

  • Minimizing unicast bandwidth in an adaptive bit rate system

    US20160294898A1

  • Scalable coding based video distribution

    US20190028743A1